/* ===================================================
   Sri Sai Wellness Center — Stylesheet
   Design language: warm clinical trust.
   Palette drawn from the clinic's own teal curtain
   and Republic-Day marigold garlands in their photos.
   =================================================== */

:root {
  /* Color */
  --ink:        #17302D;
  --ink-soft:   #3F5552;
  --teal:       #0E5C56;
  --teal-deep:  #093F3B;
  --teal-mist:  #E7F0EE;
  --marigold:   #E08A2A;
  --marigold-deep: #C06F18;
  --cream:      #FBF6EC;
  --paper:      #FFFFFF;
  --line:       #DCE3DD;
  --line-soft:  #EAEFE9;

  /* Type */
  --font-display: "Fraunces", "Georgia", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Layout */
  --max-w: 1180px;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow-card: 0 4px 18px rgba(23, 48, 45, 0.07);
  --shadow-lift: 0 14px 38px rgba(23, 48, 45, 0.14);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

/* Inline SVG icons should never exceed their intended box —
   without this, icons used directly in flex rows (breadcrumbs,
   buttons, contact rows) can render at native viewBox size. */
.breadcrumb svg,
.btn svg,
.contact-row .icon svg,
.nav-cta svg,
.credential-list .tick svg,
.testimonial-stars svg {
  width: 1em;
  height: 1em;
  flex-shrink: 0;
}
.breadcrumb svg { width: 14px; height: 14px; }
.btn svg { width: 16px; height: 16px; }
.contact-row .icon svg { width: 22px; height: 22px; }
.credential-list .tick svg { width: 20px; height: 20px; }
.phone-link svg { width: 16px; height: 16px; flex-shrink: 0; }

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  margin: 0 0 0.4em;
  font-weight: 600;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.1rem, 4.4vw, 3.4rem); line-height: 1.08; font-weight: 700; }
h2 { font-size: clamp(1.6rem, 2.8vw, 2.3rem); line-height: 1.15; }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1em; color: var(--ink-soft); }

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--marigold-deep);
  font-weight: 600;
  margin-bottom: 14px;
}
.eyebrow::before {
  content: "";
  width: 18px;
  height: 1px;
  background: var(--marigold-deep);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.2s ease, color 0.2s ease;
  font-family: var(--font-body);
  white-space: nowrap;
}
.btn-primary {
  background: var(--marigold);
  color: var(--paper);
  box-shadow: 0 8px 20px rgba(224, 138, 42, 0.32);
}
.btn-primary:hover { background: var(--marigold-deep); transform: translateY(-2px); }

.btn-outline {
  background: transparent;
  border-color: var(--paper);
  color: var(--paper);
}
.btn-outline:hover { background: rgba(255,255,255,0.12); transform: translateY(-2px); }

.btn-ghost {
  background: transparent;
  border-color: var(--teal);
  color: var(--teal);
}
.btn-ghost:hover { background: var(--teal); color: var(--paper); }

.btn-block { width: 100%; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251, 246, 236, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  max-width: var(--max-w);
  margin: 0 auto;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand-mark {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text .name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.12rem;
  color: var(--teal-deep);
}
.brand-text .tag {
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--marigold-deep);
  font-weight: 600;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink-soft);
  position: relative;
  padding: 6px 0;
}
.nav-links a:hover { color: var(--teal-deep); }
.nav-links a.active { color: var(--teal-deep); font-weight: 600; }
.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--marigold);
  border-radius: 2px;
}

.nav-cta { display: flex; align-items: center; gap: 14px; }
.nav-cta .phone-link {
  display: none;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--teal-deep);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--ink);
  margin: 5px 0;
  transition: 0.2s;
}

@media (min-width: 880px) {
  .nav-cta .phone-link { display: inline-flex; align-items: center; gap: 6px; }
}

@media (max-width: 880px) {
  .nav-links {
    position: fixed;
    top: 73px;
    left: 0; right: 0;
    background: var(--paper);
    flex-direction: column;
    gap: 0;
    padding: 8px 0;
    border-bottom: 1px solid var(--line);
    transform: translateY(-110%);
    opacity: 0;
    transition: transform 0.25s ease, opacity 0.25s ease;
    pointer-events: none;
  }
  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .nav-links a { width: 100%; padding: 14px 24px; }
  .nav-links a.active::after { display: none; }
  .nav-links a.active { background: var(--teal-mist); }
  .menu-toggle { display: block; }
  .nav-cta .btn { padding: 11px 18px; font-size: 0.88rem; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: linear-gradient(165deg, var(--teal-deep) 0%, var(--teal) 62%, #137067 100%);
  color: var(--paper);
  overflow: hidden;
  padding: 86px 0 0;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 40px;
  align-items: center;
  position: relative;
  z-index: 2;
  padding-bottom: 70px;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.22);
  padding: 7px 16px;
  border-radius: 100px;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 22px;
}
.hero-eyebrow .star { color: var(--marigold); }
.hero h1 { color: var(--paper); }
.hero h1 .accent { color: var(--marigold); }
.hero-sub {
  color: rgba(255,255,255,0.82);
  font-size: 1.08rem;
  max-width: 480px;
  margin-bottom: 30px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 36px; }
.hero-stats { display: flex; gap: 34px; flex-wrap: wrap; }
.hero-stat .num {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--marigold);
  display: block;
}
.hero-stat .label {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.72);
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
}
.hero-portrait-card {
  position: relative;
  background: var(--paper);
  border-radius: 22px;
  padding: 14px;
  box-shadow: var(--shadow-lift);
  transform: rotate(1.2deg);
  max-width: 360px;
}
.hero-portrait-card img {
  border-radius: 16px;
  width: 100%;
  height: 380px;
  object-fit: cover;
}
.hero-badge {
  position: absolute;
  bottom: -18px;
  left: -22px;
  background: var(--paper);
  border-radius: 14px;
  padding: 12px 16px;
  box-shadow: var(--shadow-lift);
  display: flex;
  align-items: center;
  gap: 10px;
  transform: rotate(-2deg);
}
.hero-badge .icon { width: 30px; height: 30px; flex-shrink: 0; }
.hero-badge .t1 { font-size: 0.72rem; color: var(--ink-soft); }
.hero-badge .t2 { font-size: 0.92rem; font-weight: 700; color: var(--teal-deep); font-family: var(--font-display); }

.hero-wave {
  display: block;
  width: 100%;
  position: relative;
  z-index: 1;
  margin-top: -2px;
}

/* ---------- Pulse divider (signature motif) ---------- */
.pulse-divider {
  width: 100%;
  height: 46px;
  display: block;
}
.pulse-divider path {
  stroke: var(--marigold);
  stroke-width: 2.4;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- Sections ---------- */
.section { padding: 88px 0; }
.section-tight { padding: 64px 0; }
.section-cream { background: var(--cream); }
.section-paper { background: var(--paper); }
.section-teal {
  background: linear-gradient(160deg, var(--teal-deep), var(--teal));
  color: var(--paper);
}
.section-teal p { color: rgba(255,255,255,0.82); }
.section-teal h2 { color: var(--paper); }

.section-head { max-width: 620px; margin-bottom: 48px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* ---------- Service cards ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.service-card {
  background: var(--paper);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow-card);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lift);
}
.service-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--teal-mist);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.service-icon svg { width: 26px; height: 26px; }
.service-card h3 { margin-bottom: 10px; }
.service-card p { margin-bottom: 0; font-size: 0.95rem; }

/* ---------- About split ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 56px;
  align-items: center;
}
.about-photo-stack { position: relative; }
.about-photo-main {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}
.about-photo-main img { height: 420px; object-fit: cover; }
.about-photo-float {
  position: absolute;
  bottom: -28px;
  right: -28px;
  width: 46%;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 5px solid var(--paper);
  box-shadow: var(--shadow-lift);
}
.about-photo-float img { height: 150px; object-fit: cover; }

.credential-list { list-style: none; padding: 0; margin: 26px 0; }
.credential-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 10px 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: 0.96rem;
  color: var(--ink-soft);
}
.credential-list li:last-child { border-bottom: none; }
.credential-list .tick {
  width: 20px; height: 20px;
  flex-shrink: 0;
  color: var(--teal);
  margin-top: 2px;
}

/* ---------- Stat strip ---------- */
.stat-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 56px;
}
.stat-box { text-align: center; }
.stat-box .num {
  font-family: var(--font-display);
  font-size: 2.1rem;
  font-weight: 700;
  color: var(--marigold);
}
.stat-box .label { font-size: 0.85rem; color: rgba(255,255,255,0.75); }

/* ---------- Gallery ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.gallery-grid figure {
  margin: 0;
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  position: relative;
}
.gallery-grid img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.gallery-grid figure:hover img { transform: scale(1.06); }
.gallery-grid figcaption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(180deg, transparent, rgba(9,63,59,0.85));
  color: var(--paper);
  font-size: 0.78rem;
  padding: 24px 12px 10px;
}

/* ---------- Testimonial ---------- */
.testimonial-card {
  background: var(--paper);
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--line-soft);
}
.testimonial-stars { color: var(--marigold); font-size: 1rem; margin-bottom: 12px; letter-spacing: 2px; }
.testimonial-card p { font-style: italic; color: var(--ink); font-size: 1.02rem; }
.testimonial-author { display: flex; align-items: center; gap: 12px; margin-top: 18px; }
.testimonial-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--teal-mist);
  color: var(--teal-deep);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  font-family: var(--font-display);
}
.testimonial-name { font-weight: 600; font-size: 0.92rem; }
.testimonial-meta { font-size: 0.78rem; color: var(--ink-soft); }

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--marigold);
  color: var(--paper);
  border-radius: 22px;
  padding: 52px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
}
.cta-band h2 { color: var(--paper); margin-bottom: 6px; }
.cta-band p { color: rgba(255,255,255,0.9); margin-bottom: 0; }
.cta-band .btn-primary { background: var(--paper); color: var(--marigold-deep); box-shadow: none; }
.cta-band .btn-primary:hover { background: var(--teal-deep); color: var(--paper); }

/* ---------- Forms ---------- */
.form-card {
  background: var(--paper);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  border: 1px solid var(--line-soft);
  padding: 38px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 7px;
}
.form-group .req { color: var(--marigold-deep); }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.95rem;
  background: var(--cream);
  color: var(--ink);
  transition: border-color 0.15s ease, background 0.15s ease;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--teal);
  background: var(--paper);
}
.form-group textarea { resize: vertical; min-height: 100px; }
.form-hint { font-size: 0.78rem; color: var(--ink-soft); margin-top: 6px; }

.alert {
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  margin-bottom: 24px;
  font-size: 0.92rem;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.alert-success { background: #E5F4EE; color: #0B6B4E; border: 1px solid #BFE6D5; }
.alert-error { background: #FBEAEA; color: #A52A2A; border: 1px solid #F1C7C7; }

.field-error { color: #C0392B; font-size: 0.78rem; margin-top: 5px; }
.form-group input.invalid,
.form-group select.invalid,
.form-group textarea.invalid { border-color: #C0392B; background: #FBEAEA; }

/* ---------- Contact page ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 40px;
  align-items: start;
}
.contact-info-card {
  background: var(--teal-deep);
  color: var(--paper);
  border-radius: var(--radius);
  padding: 36px;
}
.contact-info-card h3 { color: var(--paper); }
.contact-row {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px 0;
  border-bottom: 1px solid rgba(255,255,255,0.15);
}
.contact-row:last-child { border-bottom: none; }
.contact-row .icon { width: 22px; height: 22px; flex-shrink: 0; color: var(--marigold); margin-top: 2px; }
.contact-row .ct-label { font-size: 0.78rem; color: rgba(255,255,255,0.65); margin-bottom: 3px; }
.contact-row .ct-val { font-size: 0.95rem; font-weight: 500; }
.map-embed-wrap {
  margin-top: 20px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.18);
}
.map-embed-wrap iframe { width: 100%; height: 200px; border: 0; display: block; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--teal-deep);
  color: rgba(255,255,255,0.78);
  padding: 64px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.footer-brand { display: flex; gap: 12px; align-items: center; margin-bottom: 16px; }
.footer-brand .name { font-family: var(--font-display); font-weight: 700; color: var(--paper); font-size: 1.1rem; }
.footer-col h4 {
  color: var(--paper);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 18px;
  font-family: var(--font-body);
  font-weight: 600;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 11px; font-size: 0.92rem; }
.footer-col a:hover { color: var(--paper); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  font-size: 0.82rem;
  flex-wrap: wrap;
  gap: 10px;
}

/* ---------- Page hero (subpages) ---------- */
.page-hero {
  background: linear-gradient(160deg, var(--teal-deep), var(--teal));
  color: var(--paper);
  padding: 130px 0 70px;
  text-align: center;
}
.page-hero h1 { color: var(--paper); margin-bottom: 12px; }
.page-hero p { color: rgba(255,255,255,0.82); max-width: 560px; margin: 0 auto; }
.breadcrumb {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.65);
  margin-bottom: 18px;
}
.breadcrumb svg { display: inline-block; vertical-align: middle; }
.breadcrumb a:hover { color: var(--paper); }

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; padding-bottom: 50px; }
  .hero-visual { order: -1; margin-bottom: 10px; }
  .hero-portrait-card { max-width: 280px; }
  .about-grid { grid-template-columns: 1fr; }
  .about-photo-main img { height: 320px; }
  .services-grid { grid-template-columns: 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-strip { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
  .form-row { grid-template-columns: 1fr; }
  .cta-band { padding: 36px 28px; text-align: center; justify-content: center; flex-direction: column; }
}

@media (max-width: 540px) {
  .hero { padding-top: 78px; }
  .section { padding: 60px 0; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 22px; }
  .form-card { padding: 26px 20px; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
  html { scroll-behavior: auto; }
}

/* ---------- Focus visibility ---------- */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 2.5px solid var(--marigold);
  outline-offset: 2px;
}
