/* =============================================
   ALTHERIS HEALTHCARE — Shared Styles
   ============================================= */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary: #0d9488;
  --primary-dark: #0f766e;
  --primary-light: #99f6e4;
  --accent: #d97706;
  --slate-50: #f8fafc;
  --slate-100: #f1f5f9;
  --slate-200: #e2e8f0;
  --slate-300: #cbd5e1;
  --slate-400: #94a3b8;
  --slate-500: #64748b;
  --slate-600: #475569;
  --slate-700: #334155;
  --slate-800: #1e293b;
  --slate-900: #0f172a;
}

html { scroll-behavior: smooth; }
body { font-family: 'Inter', system-ui, -apple-system, sans-serif; color: var(--slate-900); line-height: 1.6; }

/* ─── Container ─── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }

/* ─── Scroll Animations ─── */
.scroll-animate {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.scroll-animate.from-left  { transform: translateX(-24px); }
.scroll-animate.from-right { transform: translateX(24px); }
.scroll-animate.from-scale { transform: scale(0.95); }
.scroll-animate.visible {
  opacity: 1;
  transform: translateY(0) translateX(0) scale(1);
}
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }

/* ─── Navbar ─── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255,255,255,0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--slate-100);
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.navbar-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--slate-900);
}
.navbar-brand svg { color: var(--primary); }
.navbar-links { display: flex; align-items: center; gap: 2rem; }
.navbar-links a {
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--slate-600);
  transition: color 0.2s;
}
.navbar-links a:hover, .navbar-links a.active { color: var(--primary); }
.btn-nav {
  background: var(--primary);
  color: #fff;
  padding: 0.55rem 1.2rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s;
}
.btn-nav:hover { background: var(--primary-dark); }

.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--slate-700);
  padding: 0.25rem;
}
.mobile-menu {
  display: none;
  flex-direction: column;
  padding: 1rem 1.5rem 1.5rem;
  border-top: 1px solid var(--slate-100);
  background: #fff;
  gap: 0.75rem;
}
.mobile-menu a {
  text-decoration: none;
  font-weight: 500;
  color: var(--slate-700);
  padding: 0.5rem 0;
  font-size: 1rem;
}
.mobile-menu .btn-nav { text-align: center; margin-top: 0.5rem; }

@media (max-width: 768px) {
  .navbar-links, .btn-nav { display: none; }
  .hamburger { display: block; }
  .mobile-menu.open { display: flex; }
}

/* ─── Buttons ─── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  color: #fff;
  padding: 0.85rem 2rem;
  border-radius: 0.5rem;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-1px); }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.12);
  color: #fff;
  padding: 0.85rem 2rem;
  border-radius: 0.5rem;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid rgba(255,255,255,0.25);
  backdrop-filter: blur(8px);
  transition: background 0.2s;
}
.btn-ghost:hover { background: rgba(255,255,255,0.22); }

.btn-outline-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
  font-size: 0.95rem;
  transition: gap 0.2s;
}
.btn-outline-primary:hover { gap: 0.75rem; }

/* ─── Hero ─── */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  padding-top: 68px;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 0;
}
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(15,23,42,0.92) 40%, rgba(15,23,42,0.5) 70%, rgba(15,23,42,0.15) 100%);
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 750px;
}
.hero-badge {
  display: inline-block;
  padding: 0.3rem 0.85rem;
  border-radius: 999px;
  background: rgba(13,148,136,0.2);
  border: 1px solid rgba(13,148,136,0.35);
  color: #99f6e4;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 1.25rem;
  backdrop-filter: blur(6px);
}
.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
}
.hero h1 span { color: #99f6e4; }
.hero p {
  font-size: 1.2rem;
  color: rgba(255,255,255,0.78);
  margin-bottom: 2rem;
  line-height: 1.7;
  max-width: 600px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; }

/* ─── Stats Bar ─── */
.stats-bar {
  background: #fff;
  border-bottom: 1px solid var(--slate-100);
  padding: 3.5rem 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
@media (max-width: 640px) { .stats-grid { grid-template-columns: repeat(2, 1fr); } }
.stat-item { text-align: center; padding: 0 1rem; }
.stat-value { font-size: 2.8rem; font-weight: 800; color: var(--primary); line-height: 1; margin-bottom: 0.4rem; }
.stat-label { font-size: 0.78rem; font-weight: 600; color: var(--slate-500); text-transform: uppercase; letter-spacing: 0.07em; }

/* ─── Section Shared ─── */
.section { padding: 5.5rem 0; }
.section-alt { background: var(--slate-50); }
.section-dark { background: var(--slate-900); color: #fff; }

.section-header { text-align: center; max-width: 680px; margin: 0 auto 3.5rem; }
.section-header h2 { font-size: clamp(1.75rem, 3.5vw, 2.6rem); font-weight: 800; color: var(--slate-900); margin-bottom: 0.75rem; letter-spacing: -0.01em; }
.section-dark .section-header h2 { color: #fff; }
.section-header p { font-size: 1.1rem; color: var(--slate-600); line-height: 1.7; }
.section-dark .section-header p { color: var(--slate-400); }

/* ─── Service Cards ─── */
.cards-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.5rem; }
.card {
  background: #fff;
  border: 1px solid var(--slate-100);
  border-radius: 1.25rem;
  padding: 2rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  transition: box-shadow 0.25s, transform 0.25s;
  cursor: pointer;
}
.card:hover { box-shadow: 0 8px 30px rgba(0,0,0,0.1); transform: translateY(-2px); }
.card-icon {
  width: 52px; height: 52px;
  background: rgba(13,148,136,0.1);
  border-radius: 0.875rem;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.25rem;
  color: var(--primary);
  transition: background 0.25s, color 0.25s, transform 0.25s;
}
.card:hover .card-icon { background: var(--primary); color: #fff; transform: scale(1.1); }
.card h3 { font-size: 1.15rem; font-weight: 700; color: var(--slate-900); margin-bottom: 0.6rem; }
.card p { color: var(--slate-600); font-size: 0.95rem; line-height: 1.65; margin-bottom: 1.25rem; }
.view-all-link { text-align: center; margin-top: 2.5rem; }

/* ─── Why Section ─── */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center; }
@media (max-width: 900px) { .two-col { grid-template-columns: 1fr; gap: 3rem; } }
.why-points { display: flex; flex-direction: column; gap: 1.75rem; margin-top: 1.5rem; }
.why-point { display: flex; gap: 1rem; }
.why-check { flex-shrink: 0; margin-top: 0.15rem; color: var(--primary); }
.why-point h3 { font-size: 1.1rem; font-weight: 700; color: var(--slate-900); margin-bottom: 0.35rem; }
.why-point p { color: var(--slate-600); font-size: 0.95rem; line-height: 1.6; }

.image-frame { position: relative; }
.image-frame img { width: 100%; border-radius: 1.5rem; display: block; object-fit: cover; aspect-ratio: 4/5; box-shadow: 0 20px 60px rgba(0,0,0,0.12); }
.testimonial-card {
  position: absolute;
  bottom: -2rem;
  left: -2rem;
  background: #fff;
  border-radius: 1rem;
  padding: 1.5rem;
  max-width: 300px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.14);
  border: 1px solid var(--slate-100);
}
.stars { display: flex; gap: 0.25rem; color: var(--accent); margin-bottom: 0.75rem; }
.testimonial-card blockquote { font-style: italic; color: var(--slate-800); font-weight: 500; font-size: 0.9rem; line-height: 1.6; margin-bottom: 0.75rem; }
.testimonial-card cite { font-size: 0.8rem; color: var(--slate-500); font-weight: 600; font-style: normal; }
@media (max-width: 640px) { .testimonial-card { left: 0.5rem; bottom: 0.5rem; max-width: 260px; padding: 1rem; } }

/* ─── CTA Section ─── */
.cta-section {
  background: var(--primary);
  padding: 6rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(255,255,255,0.08) 0%, transparent 70%);
}
.cta-section h2 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; color: #fff; margin-bottom: 1rem; position: relative; }
.cta-section p { font-size: 1.15rem; color: rgba(255,255,255,0.8); margin-bottom: 2.5rem; max-width: 540px; margin-left: auto; margin-right: auto; position: relative; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; position: relative; }
.btn-cta-white {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: #fff; color: var(--primary);
  padding: 1rem 2.25rem; border-radius: 0.5rem;
  font-size: 1rem; font-weight: 700;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s;
}
.btn-cta-white:hover { background: var(--slate-100); transform: translateY(-1px); }
.btn-cta-outline {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: transparent; color: #fff;
  padding: 1rem 2.25rem; border-radius: 0.5rem;
  font-size: 1rem; font-weight: 600;
  text-decoration: none;
  border: 1.5px solid rgba(255,255,255,0.35);
  transition: background 0.2s;
}
.btn-cta-outline:hover { background: rgba(255,255,255,0.1); }

/* ─── Footer ─── */
footer { background: var(--slate-900); color: #fff; padding: 5rem 0 2rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 3rem; margin-bottom: 3rem; }
@media (max-width: 768px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 1rem; font-weight: 700; font-size: 1.1rem; }
.footer-brand svg { color: #2dd4bf; }
.footer-desc { color: var(--slate-400); font-size: 0.92rem; line-height: 1.7; max-width: 320px; }
footer h4 { font-weight: 600; font-size: 0.95rem; margin-bottom: 1rem; }
footer ul { list-style: none; display: flex; flex-direction: column; gap: 0.6rem; }
footer ul a { color: var(--slate-400); text-decoration: none; font-size: 0.9rem; transition: color 0.2s; }
footer ul a:hover { color: #2dd4bf; }
footer ul li.text { color: var(--slate-400); font-size: 0.88rem; line-height: 1.6; }
.footer-bottom { border-top: 1px solid var(--slate-800); padding-top: 1.75rem; text-align: center; color: var(--slate-500); font-size: 0.85rem; }

/* ─── Page Headers ─── */
.page-header { background: var(--slate-50); border-bottom: 1px solid var(--slate-200); padding: 7rem 0 4rem; margin-top: 68px; }
.page-header h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); font-weight: 800; color: var(--slate-900); margin-bottom: 1rem; letter-spacing: -0.02em; }
.page-header p { font-size: 1.15rem; color: var(--slate-600); max-width: 680px; line-height: 1.75; }

/* ─── Services Page ─── */
.service-row { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
@media (max-width: 900px) { .service-row { grid-template-columns: 1fr; gap: 2.5rem; } }
.service-row.reverse { direction: rtl; }
.service-row.reverse > * { direction: ltr; }
.service-image { border-radius: 1.5rem; overflow: hidden; box-shadow: 0 15px 50px rgba(0,0,0,0.1); aspect-ratio: 4/3; }
.service-image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.service-info h2 { font-size: 2rem; font-weight: 800; color: var(--slate-900); margin-bottom: 1rem; letter-spacing: -0.01em; }
.service-info p { color: var(--slate-600); font-size: 1.05rem; line-height: 1.75; margin-bottom: 1.5rem; }
.feature-list { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem 1.5rem; list-style: none; margin-bottom: 2rem; }
.feature-list li { display: flex; align-items: center; gap: 0.6rem; color: var(--slate-700); font-weight: 500; font-size: 0.95rem; }
.feature-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--primary); flex-shrink: 0; }
.services-stack { display: flex; flex-direction: column; gap: 6rem; }

.additional-services { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
@media (max-width: 768px) { .additional-services { grid-template-columns: repeat(2, 1fr); } }
.dept-card {
  padding: 1.5rem;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 0.875rem;
  text-align: center;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--slate-300);
  transition: background 0.2s, color 0.2s;
}
.dept-card:hover { background: rgba(255,255,255,0.06); color: #fff; }

/* ─── About Page ─── */
.about-hero { background: #fff; padding: 7.5rem 0 4rem; margin-top: 68px; position: relative; overflow: hidden; }
.about-hero::after { content: ''; position: absolute; right: -10%; top: -20%; width: 60%; height: 150%; background: radial-gradient(circle, rgba(13,148,136,0.07) 0%, transparent 70%); pointer-events: none; }
.about-hero h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); font-weight: 800; color: var(--slate-900); line-height: 1.1; letter-spacing: -0.02em; max-width: 780px; margin-bottom: 1.25rem; }
.about-hero h1 span { color: var(--primary); }
.about-hero p { font-size: 1.15rem; color: var(--slate-600); max-width: 620px; line-height: 1.75; }

.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
@media (max-width: 900px) { .values-grid { grid-template-columns: 1fr; } }
.value-card { background: #fff; border: 1px solid var(--slate-200); border-radius: 1.25rem; padding: 2.25rem; box-shadow: 0 1px 4px rgba(0,0,0,0.04); }
.value-num { font-size: 3rem; font-weight: 900; color: rgba(13,148,136,0.15); line-height: 1; margin-bottom: 1rem; }
.value-card h3 { font-size: 1.35rem; font-weight: 800; color: var(--slate-900); margin-bottom: 0.75rem; }
.value-card p { color: var(--slate-600); line-height: 1.7; }

/* ─── Contact Page ─── */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-info-items { display: flex; flex-direction: column; gap: 1.75rem; margin-top: 2rem; }
.contact-item { display: flex; gap: 1rem; align-items: flex-start; }
.contact-icon { width: 50px; height: 50px; background: rgba(13,148,136,0.1); border-radius: 0.875rem; display: flex; align-items: center; justify-content: center; color: var(--primary); flex-shrink: 0; }
.contact-item h3 { font-size: 1rem; font-weight: 700; color: var(--slate-900); margin-bottom: 0.3rem; }
.contact-item p { color: var(--slate-600); font-size: 0.92rem; line-height: 1.65; }

.contact-form-card { background: #fff; border: 1px solid var(--slate-100); border-radius: 1.5rem; padding: 2.5rem; box-shadow: 0 20px 60px rgba(0,0,0,0.08); }
.contact-form-card h2 { font-size: 1.5rem; font-weight: 800; color: var(--slate-900); margin-bottom: 1.75rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
@media (max-width: 500px) { .form-row { grid-template-columns: 1fr; } }
.form-group { display: flex; flex-direction: column; gap: 0.4rem; margin-bottom: 1.25rem; }
.form-group label { font-size: 0.875rem; font-weight: 600; color: var(--slate-700); }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1.5px solid var(--slate-300);
  border-radius: 0.625rem;
  font-size: 0.95rem;
  color: var(--slate-900);
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
  font-family: inherit;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(13,148,136,0.12);
}
.form-group textarea { resize: none; }
.btn-submit {
  width: 100%;
  padding: 0.9rem;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 0.625rem;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}
.btn-submit:hover { background: var(--primary-dark); transform: translateY(-1px); }
.form-note { text-align: center; font-size: 0.78rem; color: var(--slate-500); margin-top: 0.75rem; }

.map-placeholder { height: 400px; background: var(--slate-200); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.75rem; color: var(--slate-500); }
.map-placeholder svg { opacity: 0.4; }
.map-placeholder strong { font-size: 1rem; font-weight: 600; }
.map-placeholder span { font-size: 0.875rem; }

/* ─── Responsive tweaks ─── */
@media (max-width: 768px) {
  .hero-actions { flex-direction: column; }
  .hero-actions a { text-align: center; }
  .section { padding: 3.5rem 0; }
  .stats-bar { padding: 2.5rem 0; }
  .image-frame { margin-bottom: 2.5rem; }
}
