/* =========================================================
   Popli Homeopathy & Wellness Clinic — Design System v3
   Palette: blue · white · yellow (matches the clinic logo).
   Type: Cormorant Garamond (display serif) + Jost (body).
   Mobile-first & responsive.
   (Variable names kept from v2 for compatibility; values remapped.)
   ========================================================= */

:root {
  --forest: #0e3a63;   /* deep navy blue — headings, hero, footer */
  --green:  #1769b0;   /* primary blue — buttons, links, accents  */
  --sage:   #4f9bd9;   /* mid blue                                */
  --sage-soft: #a9cfee; /* light blue                             */
  --mist:   #eaf3fb;   /* very light blue tint — section bg       */
  --ivory:  #f6fafd;   /* near-white page background              */
  --cream:  #ffffff;   /* white — cards, forms                    */
  --gold:   #e8a900;   /* yellow accent (readable amber-yellow)   */
  --gold-soft: #ffd54a; /* bright yellow — fills on dark/badges    */
  --ink:    #13283c;   /* dark navy text                          */
  --ink-soft: #5a6b7c; /* muted blue-grey text                    */
  --line:   rgba(14, 58, 99, 0.14);
  --shadow-sm: 0 1px 3px rgba(14, 58, 99, 0.06);
  --shadow-md: 0 18px 48px rgba(14, 58, 99, 0.12);
  --radius: 4px;
  --radius-lg: 8px;
  --maxw: 1180px;
  --font-display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-body: "Jost", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--ivory);
  line-height: 1.7;
  font-weight: 400;
  font-size: 17px;
  letter-spacing: 0.005em;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--green); text-decoration: none; transition: color .2s; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.12;
  color: var(--forest);
  font-weight: 500;
  letter-spacing: 0.005em;
}

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }

.section { padding: 96px 0; }
.section--tint { background: var(--mist); }
.section--sand { background: var(--cream); }

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.72rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--green);
  font-weight: 600;
  margin-bottom: 18px;
}
/* thin gold rule under eyebrow when used as a heading kicker */
.eyebrow--rule::after {
  content: ""; display: block; width: 42px; height: 1px;
  background: var(--gold); margin-top: 14px;
}

.section-title { font-size: clamp(2rem, 4.6vw, 3.1rem); margin-bottom: 20px; font-weight: 500; }
.section-lead { color: var(--ink-soft); font-size: 1.12rem; max-width: 660px; font-weight: 400; }
.center { text-align: center; }
.center .section-lead { margin: 0 auto; }
.center .eyebrow--rule::after { margin-left: auto; margin-right: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 15px 34px; border-radius: var(--radius);
  font-family: var(--font-body); font-weight: 400; font-size: 0.82rem;
  letter-spacing: 0.16em; text-transform: uppercase; cursor: pointer;
  border: 1px solid transparent; transition: all .25s ease;
}
.btn--primary { background: var(--forest); color: #fff; }
.btn--primary:hover { background: var(--green); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn--ghost { background: transparent; color: var(--forest); border-color: var(--gold); }
.btn--ghost:hover { background: var(--gold); color: #fff; border-color: var(--gold); }
.btn--whatsapp { background: #25D366; color: #fff; }
.btn--whatsapp:hover { background: #1da851; transform: translateY(-1px); }
.btn--block { width: 100%; justify-content: center; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(250, 248, 242, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; padding: 18px 28px; max-width: var(--maxw); margin: 0 auto; }
.brand { display: flex; align-items: center; gap: 13px; }
.brand__logo { height: 46px; width: auto; display: block; flex: 0 0 auto; }
.footer-logo { height: 54px; width: auto; margin-bottom: 18px; opacity: .95; }
.brand__mark {
  width: 46px; height: 46px; border-radius: 50%;
  background: transparent; color: var(--forest);
  border: 1px solid var(--gold);
  display: grid; place-items: center; font-family: var(--font-display);
  font-weight: 500; font-size: 1.5rem; flex: 0 0 auto;
}
.brand__name { font-family: var(--font-display); font-weight: 600; color: var(--forest); font-size: 1.3rem; line-height: 1.05; letter-spacing: .01em; }
.brand__tag { display: block; font-family: var(--font-body); font-size: .64rem; color: var(--ink-soft); font-weight: 400; letter-spacing: .22em; text-transform: uppercase; margin-top: 2px; }

.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; }
/* scope text styling to plain links only — never override the button's own colour */
.nav-links a:not(.btn) {
  padding: 9px 18px; color: var(--ink);
  font-size: .86rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 400;
  position: relative;
}
/* nav button: keep white text, sized to match the link row */
.nav-links a.btn { color: #fff; font-size: .78rem; }
.nav-links a.btn:hover { color: #fff; }
.nav-links a:not(.btn)::after {
  content: ""; position: absolute; left: 18px; right: 18px; bottom: 4px;
  height: 1px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .25s;
}
.nav-links a:not(.btn):hover::after, .nav-links a.active:not(.btn)::after { transform: scaleX(1); }
.nav-links a.active:not(.btn) { color: var(--forest); }
.nav-cta { margin-left: 10px; }

.nav-toggle {
  display: none; background: none; border: 0; cursor: pointer;
  width: 44px; height: 44px; flex-direction: column; gap: 5px;
  justify-content: center; align-items: center;
}
.nav-toggle span { width: 24px; height: 1.5px; background: var(--forest); transition: .25s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(900px 500px at 80% -10%, rgba(124,152,133,.28), transparent 60%),
    linear-gradient(160deg, var(--forest), var(--green));
  color: #fff; padding: 124px 0;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 56px 56px; opacity: .5; pointer-events: none;
}
.hero__inner { position: relative; z-index: 2; max-width: 760px; }
.hero .eyebrow { color: var(--gold-soft); }
.hero h1 { color: #fff; font-size: clamp(2.6rem, 6.5vw, 4.4rem); margin-bottom: 24px; font-weight: 500; line-height: 1.05; }
.hero p { font-size: 1.22rem; color: rgba(255,255,255,.9); margin-bottom: 38px; font-weight: 400; max-width: 600px; }
.hero__actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero .btn--ghost { color: #fff; border-color: rgba(216,196,163,.7); }
.hero .btn--ghost:hover { background: var(--gold); color: #fff; border-color: var(--gold); }

/* ---------- Cards / Services ---------- */
.grid { display: grid; gap: 28px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--cream); border-radius: var(--radius-lg);
  padding: 42px 34px; box-shadow: var(--shadow-sm);
  border: 1px solid var(--line); transition: transform .3s, box-shadow .3s;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.card__icon {
  width: 56px; height: 56px; border-radius: 50%; background: var(--mist);
  border: 1px solid var(--gold-soft);
  display: grid; place-items: center; margin-bottom: 22px; font-size: 1.5rem;
}
.card h3 { font-size: 1.6rem; margin-bottom: 12px; font-weight: 500; }
.card p { color: var(--ink-soft); font-size: 1rem; }

/* ---------- Find Us / info blocks ---------- */
.info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.info-block { padding: 20px 0; border-bottom: 1px solid var(--line); }
.info-block:last-of-type { border-bottom: 0; }
.info-block h3 { font-size: 1.05rem; margin-bottom: 8px; font-family: var(--font-body); font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--green); display: flex; align-items: center; gap: 10px; }
.info-block p { color: var(--ink-soft); }
.map-embed { width: 100%; height: 380px; border: 0; border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); filter: saturate(.85); }

/* ---------- Forms ---------- */
.form-card { background: var(--cream); border-radius: var(--radius-lg); padding: 52px 48px; box-shadow: var(--shadow-md); max-width: 640px; margin: 0 auto; border: 1px solid var(--line); }
.field { margin-bottom: 24px; }
.field label { display: block; font-weight: 400; margin-bottom: 9px; font-size: .76rem; letter-spacing: .14em; text-transform: uppercase; color: var(--green); }
.field .req { color: var(--gold); }
.field input, .field select {
  width: 100%; padding: 14px 4px; border: 0; border-bottom: 1px solid var(--line);
  border-radius: 0; font-size: 1.05rem; font-family: var(--font-body); font-weight: 300;
  background: transparent; transition: border .2s; color: var(--ink);
}
.field input:focus, .field select:focus { outline: none; border-bottom-color: var(--gold); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.field small { color: var(--ink-soft); font-size: .82rem; }
.error-text { color: #a5462f; font-size: .82rem; margin-top: 6px; display: none; }
.field.invalid input, .field.invalid select { border-bottom-color: #a5462f; }
.field.invalid .error-text { display: block; }

.form-note { font-size: .85rem; color: var(--ink-soft); margin-top: 20px; text-align: center; }
.form-card .btn { margin-top: 8px; }

.alert { padding: 18px 20px; border-radius: var(--radius); margin-bottom: 24px; font-size: .96rem; display: none; }
.alert--ok { background: #edf4ee; color: #28583c; border: 1px solid var(--sage-soft); }
.alert--err { background: #f8ece8; color: #8f3b27; border: 1px solid #e3bdb1; }
.alert.show { display: block; }

/* ---------- Appointment: Google Calendar booking cards ---------- */
.booking-modes { max-width: 1000px; margin: 0 auto; }
.booking-card { text-align: center; display: flex; flex-direction: column; align-items: center; }
.booking-card .card__icon { margin-left: auto; margin-right: auto; }
.booking-card p { flex: 1 1 auto; }
.booking-btn { margin-top: 20px; min-height: 44px; display: flex; justify-content: center; align-items: center; }
/* Google injects its own button; give it room and round corners to match */
.booking-btn button { cursor: pointer; }

/* ---------- Appointment: mode toggle + Cal.com embed (legacy) ---------- */
.mode-toggle { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; max-width: 720px; margin: 0 auto 32px; }
.mode-btn {
  background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 20px 24px; cursor: pointer; text-align: left; font-family: var(--font-body);
  transition: border-color .2s, box-shadow .2s, transform .2s; display: flex; flex-direction: column; gap: 4px;
}
.mode-btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.mode-btn.is-active { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold) inset; }
.mode-btn__title { font-family: var(--font-display); font-size: 1.3rem; color: var(--forest); font-weight: 500; }
.mode-btn__sub { font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); }

.cal-wrap { max-width: 980px; margin: 0 auto; }
.cal-pane {
  background: var(--cream); border: 1px solid var(--line);
  border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm);
}
.cal-pane[hidden] { display: none; }
/* Inline Google Calendar booking iframe */
.gcal-frame { display: block; width: 100%; height: 720px; border: 0; }
@media (max-width: 600px) {
  .gcal-frame { height: 640px; }
}

/* In-clinic notice card (walk-in / call — no online booking) */
.clinic-notice {
  text-align: center;
  padding: 56px 28px;
  background: var(--mist);
}
.clinic-notice__icon { font-size: 2.6rem; line-height: 1; display: block; margin-bottom: 14px; }
.clinic-notice h3 { color: var(--forest); font-size: 1.7rem; margin: 0 0 14px; }
.clinic-notice p { color: var(--ink-soft); max-width: 520px; margin: 0 auto 16px; font-size: 1rem; line-height: 1.6; }
.clinic-notice strong { color: var(--ink); }
.clinic-notice__hours { font-weight: 500; color: var(--ink); }
.clinic-notice .btn { margin: 6px auto 18px; }
.clinic-notice__addr { font-size: .9rem; margin-bottom: 8px; }
.clinic-notice__map { display: inline-block; font-weight: 500; font-size: .92rem; color: var(--green); border-bottom: 1px solid var(--gold); padding-bottom: 1px; }
.clinic-notice__map:hover { color: var(--forest); }

@media (max-width: 600px) {
  .mode-toggle { grid-template-columns: 1fr; }
}

/* ---------- FAQ accordion ---------- */
.faq-list { max-width: 820px; margin: 0 auto; }
.faq-item { background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 14px; overflow: hidden; }
.faq-q {
  width: 100%; text-align: left; background: none; border: 0; cursor: pointer;
  padding: 24px 26px; font-size: 1.3rem; font-weight: 500; color: var(--forest);
  display: flex; justify-content: space-between; align-items: center; gap: 16px; font-family: var(--font-display);
}
.faq-q::after { content: "+"; font-size: 1.5rem; color: var(--gold); transition: transform .25s; flex: 0 0 auto; font-family: var(--font-body); font-weight: 300; }
.faq-q[aria-expanded="true"]::after { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq-a-inner { padding: 0 26px 24px; color: var(--ink-soft); }

/* ---------- Doctor / about ---------- */
.doctor { display: grid; grid-template-columns: 340px 1fr; gap: 56px; align-items: center; }
.doctor__photo {
  background: linear-gradient(150deg, var(--sage), var(--green));
  border-radius: var(--radius-lg); aspect-ratio: 4/5; display: grid; place-items: center;
  color: rgba(255,255,255,.85); font-family: var(--font-display); font-size: 5.5rem; font-weight: 500;
  box-shadow: var(--shadow-md); border: 1px solid var(--gold-soft);
}
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.chip { background: transparent; color: var(--green); border: 1px solid var(--gold-soft); padding: 7px 18px; border-radius: 50px; font-size: .76rem; letter-spacing: .1em; text-transform: uppercase; }
.lead-list { list-style: none; margin-top: 18px; }
.lead-list li { padding: 9px 0 9px 30px; position: relative; color: var(--ink-soft); }
.lead-list li::before { content: "—"; position: absolute; left: 0; color: var(--gold); }

/* ---------- CTA band ---------- */
.cta-band {
  background:
    radial-gradient(700px 400px at 50% 120%, rgba(124,152,133,.25), transparent 60%),
    linear-gradient(160deg, var(--green), var(--forest));
  color: #fff; text-align: center; padding: 88px 0;
}
.cta-band .eyebrow { color: var(--gold-soft); }
.cta-band h2 { color: #fff; font-size: clamp(2rem,4.6vw,3rem); margin-bottom: 16px; font-weight: 500; }
.cta-band p { color: rgba(255,255,255,.85); margin-bottom: 32px; font-weight: 300; }

/* ---------- Footer ---------- */
.site-footer { background: var(--forest); color: rgba(255,255,255,.7); padding: 72px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 48px; }
.site-footer h4 { color: #fff; font-family: var(--font-display); font-size: 1.4rem; margin-bottom: 18px; font-weight: 500; }
.footer-contact h4, .footer-links + * h4 { }
.site-footer a { color: rgba(255,255,255,.7); }
.site-footer a:hover { color: var(--gold-soft); }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 11px; font-size: .92rem; letter-spacing: .04em; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.14); margin-top: 44px; padding-top: 24px; font-size: .82rem; text-align: center; color: rgba(255,255,255,.5); letter-spacing: .04em; }
.footer-contact p { margin-bottom: 9px; font-size: .92rem; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--ivory); padding: 12px 24px 24px;
    box-shadow: var(--shadow-md); display: none; border-bottom: 1px solid var(--line);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 15px 6px; }
  .nav-links a:not(.btn)::after { display: none; }
  .nav-cta { margin: 12px 0 0; }
  .nav-cta .btn { width: 100%; justify-content: center; }
  .grid--3, .grid--2, .info-grid, .doctor, .footer-grid { grid-template-columns: 1fr; }
  .doctor__photo { max-width: 280px; margin: 0 auto; }
  .section { padding: 64px 0; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
}
@media (max-width: 480px) {
  body { font-size: 16px; }
  .form-card { padding: 32px 22px; }
  .hero { padding: 80px 0; }
  .container { padding: 0 20px; }
}
