/* =========================================================================
   Dr. Rahiba Noor, MD — Practice website
   Design system: deep pine + antique gold on warm paper,
   Fraunces display / Instrument Sans body, continuity-of-care throughline.
   ========================================================================= */

/* ----- Tokens ----------------------------------------------------------- */
:root {
  /* Color */
  --ink:        #15302A;        /* deepest text / near-black pine */
  --pine:       #215243;        /* primary brand green */
  --pine-deep:  #183C31;        /* darker pine for large fields */
  --sage:       #7E9C8E;        /* muted secondary */
  --sage-soft:  #DCE6DF;        /* pale green wash */
  --gold:       #B08238;        /* antique gold accent */
  --gold-soft:  #E9D9BC;        /* pale gold wash */
  --paper:      #F7F5EF;        /* warm paper background */
  --paper-2:    #FCFAF4;        /* lifted card surface */
  --white:      #FFFFFF;
  --line:       #E4E0D4;        /* hairline borders */
  --muted:      #5C6B63;        /* muted body text */

  /* Type */
  --display: "Fraunces", Georgia, "Times New Roman", serif;
  --body: "Instrument Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Scale & rhythm */
  --measure: 66ch;
  --radius: 4px;
  --shadow: 0 1px 2px rgba(21,48,42,.05), 0 12px 32px -12px rgba(21,48,42,.14);
  --shadow-sm: 0 1px 2px rgba(21,48,42,.06), 0 4px 14px -8px rgba(21,48,42,.12);

  /* Motion */
  --ease: cubic-bezier(.2,.7,.2,1);
}

/* ----- Reset ------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; font-family: var(--display); font-weight: 500; line-height: 1.08; letter-spacing: -.01em; }
p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

/* ----- Layout helpers --------------------------------------------------- */
.wrap { width: min(1120px, 92vw); margin-inline: auto; }
.wrap--narrow { width: min(760px, 92vw); margin-inline: auto; }
.section { padding: clamp(3.5rem, 8vw, 7rem) 0; }
.eyebrow {
  font-size: .74rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
  color: var(--gold); margin: 0 0 1rem; display: inline-flex; align-items: center; gap: .6rem;
}
.eyebrow::before { content: ""; width: 26px; height: 1px; background: var(--gold); display: inline-block; }
.lede { font-size: clamp(1.15rem, 2.4vw, 1.4rem); line-height: 1.5; color: var(--muted); max-width: var(--measure); }

/* ----- Buttons ---------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--body); font-size: .95rem; font-weight: 600; letter-spacing: .01em;
  padding: .82rem 1.35rem; border-radius: var(--radius); border: 1px solid transparent;
  text-decoration: none; cursor: pointer; transition: transform .25s var(--ease), background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.btn svg { width: 17px; height: 17px; }
.btn--primary { background: var(--pine); color: var(--paper-2); }
.btn--primary:hover { background: var(--pine-deep); transform: translateY(-2px); }
.btn--ghost { background: transparent; color: var(--pine); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--pine); transform: translateY(-2px); }
.btn--light { background: var(--paper-2); color: var(--pine-deep); }
.btn--light:hover { background: var(--white); transform: translateY(-2px); }
.btn--outline-light { background: transparent; color: var(--paper-2); border-color: rgba(247,245,239,.4); }
.btn--outline-light:hover { border-color: var(--paper-2); transform: translateY(-2px); }

/* ----- Header ----------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(247,245,239,.85); backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .85rem 0; }
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--ink); }
.brand__mark {
  width: 40px; height: 40px; border-radius: 50%; flex: none;
  background: var(--pine); color: var(--paper-2);
  display: grid; place-items: center; font-family: var(--display); font-weight: 600; font-size: 1.02rem; letter-spacing: .02em;
  border: 1px solid var(--pine-deep);
}
.brand__text { line-height: 1.05; }
.brand__name { font-family: var(--display); font-weight: 500; font-size: 1.08rem; }
.brand__role { font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); font-weight: 600; }

.nav__links { display: flex; align-items: center; gap: .3rem; list-style: none; margin: 0; padding: 0; }
.nav__links a {
  text-decoration: none; color: var(--ink); font-size: .93rem; font-weight: 500;
  padding: .5rem .8rem; border-radius: var(--radius); position: relative; transition: color .2s var(--ease);
}
.nav__links a:hover { color: var(--pine); }
.nav__links a[aria-current="page"] { color: var(--pine); }
.nav__links a[aria-current="page"]::after {
  content: ""; position: absolute; left: .8rem; right: .8rem; bottom: .28rem; height: 2px; background: var(--gold); border-radius: 2px;
}
.nav__cta { margin-left: .4rem; }

.nav__toggle {
  display: none; background: none; border: 1px solid var(--line); border-radius: var(--radius);
  width: 44px; height: 44px; cursor: pointer; padding: 0; color: var(--pine);
}
.nav__toggle svg { width: 22px; height: 22px; margin: auto; }

/* ----- Hero ------------------------------------------------------------- */
.hero { position: relative; overflow: hidden; }
.hero__grid {
  display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center;
  padding: clamp(3rem, 7vw, 6rem) 0 clamp(3rem, 6vw, 5rem);
}
.hero__specialty { }
.hero__title { font-size: clamp(2.6rem, 6.5vw, 4.4rem); font-weight: 400; letter-spacing: -.02em; margin: 0 0 .3rem; }
.hero__title em { font-style: italic; color: var(--pine); }
.hero__sub { font-size: clamp(1rem, 2vw, 1.18rem); color: var(--muted); max-width: 46ch; margin: 0 0 2rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .8rem; }
.hero__meta { margin-top: 2.4rem; display: flex; flex-wrap: wrap; gap: 1.8rem; padding-top: 1.6rem; border-top: 1px solid var(--line); }
.hero__meta div { }
.hero__meta dt { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); font-weight: 600; margin-bottom: .25rem; }
.hero__meta dd { margin: 0; font-size: .98rem; font-weight: 500; }

/* Portrait medallion (placeholder — swap in a real photo per README) */
.portrait { position: relative; justify-self: center; width: min(360px, 78vw); aspect-ratio: 1; }
.portrait__ring { position: absolute; inset: 0; border-radius: 50%; border: 1px solid var(--line); }
.portrait__ring::after {
  content: ""; position: absolute; inset: -14px; border-radius: 50%; border: 1px dashed var(--sage);
  opacity: .5;
}
.portrait__disc {
  position: absolute; inset: 18px; border-radius: 50%; overflow: hidden;
  background:
    radial-gradient(120% 120% at 30% 20%, #2a6250 0%, var(--pine) 45%, var(--pine-deep) 100%);
  display: grid; place-items: center; box-shadow: var(--shadow);
}
.portrait__disc img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.portrait__mono { font-family: var(--display); font-size: clamp(3.5rem, 12vw, 6rem); color: var(--gold-soft); font-weight: 500; letter-spacing: .02em; }
.portrait__badge {
  position: absolute; bottom: 6%; right: -2%; background: var(--paper-2); border: 1px solid var(--line);
  border-radius: 100px; padding: .55rem 1rem; box-shadow: var(--shadow-sm); font-size: .8rem; font-weight: 600;
  display: flex; align-items: center; gap: .5rem;
}
.portrait__badge span { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); }

/* ----- Section headings ------------------------------------------------- */
.head { max-width: 62ch; margin-bottom: clamp(2rem, 5vw, 3.2rem); }
.head h2 { font-size: clamp(1.9rem, 4.5vw, 2.9rem); font-weight: 400; letter-spacing: -.02em; }
.head p { margin-top: 1rem; color: var(--muted); font-size: 1.08rem; }

/* ----- Feature / info cards -------------------------------------------- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1.1rem; }
.card {
  background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.6rem 1.5rem; transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); border-color: var(--sage); }
.card__icon {
  width: 42px; height: 42px; border-radius: 10px; background: var(--sage-soft); color: var(--pine);
  display: grid; place-items: center; margin-bottom: 1.1rem;
}
.card__icon svg { width: 22px; height: 22px; }
.card h3 { font-size: 1.22rem; font-weight: 500; margin-bottom: .5rem; }
.card p { color: var(--muted); font-size: .96rem; margin: 0; }

/* ----- Throughline / timeline (signature element) ---------------------- */
.throughline { position: relative; padding-left: 2.2rem; }
.throughline::before {
  content: ""; position: absolute; left: 7px; top: .4rem; bottom: .4rem; width: 2px;
  background: linear-gradient(var(--sage), var(--sage-soft));
}
.tl-item { position: relative; padding: 0 0 2rem; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before {
  content: ""; position: absolute; left: calc(-2.2rem + 1px); top: .35rem; width: 14px; height: 14px;
  border-radius: 50%; background: var(--paper); border: 2px solid var(--pine); box-shadow: 0 0 0 4px var(--paper);
}
.tl-item--gold::before { border-color: var(--gold); }
.tl-item__year { font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); font-weight: 600; }
.tl-item h3 { font-size: 1.2rem; font-weight: 500; margin: .2rem 0 .25rem; }
.tl-item p { color: var(--muted); margin: 0; font-size: .97rem; }

/* ----- Split / band panels --------------------------------------------- */
.band { background: var(--pine-deep); color: var(--paper); position: relative; overflow: hidden; }
.band::after {
  content: ""; position: absolute; right: -80px; top: -80px; width: 340px; height: 340px; border-radius: 50%;
  border: 1px solid rgba(233,217,188,.16);
}
.band .eyebrow { color: var(--gold-soft); }
.band .eyebrow::before { background: var(--gold-soft); }
.band h2 { color: var(--paper); font-size: clamp(1.9rem, 4.5vw, 2.8rem); font-weight: 400; }
.band p { color: rgba(247,245,239,.82); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }

/* ----- Q&A / lists ------------------------------------------------------ */
.qa { border-top: 1px solid var(--line); }
.qa__item { border-bottom: 1px solid var(--line); padding: 1.5rem 0; }
.qa__item h3 { font-size: 1.18rem; font-weight: 500; margin-bottom: .5rem; color: var(--pine-deep); }
.qa__item p { color: var(--muted); margin: 0; }

.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: .9rem; }
.checklist li { display: flex; gap: .8rem; align-items: flex-start; color: var(--muted); }
.checklist li::before {
  content: ""; flex: none; margin-top: .35rem; width: 18px; height: 18px; border-radius: 50%;
  background: var(--sage-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23215243' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center/11px no-repeat;
}
.checklist li strong { color: var(--ink); font-weight: 600; }

/* ----- Contact ---------------------------------------------------------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.info-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.4rem; }
.info-list li { display: flex; gap: 1rem; align-items: flex-start; }
.info-list__icon {
  flex: none; width: 44px; height: 44px; border-radius: 10px; background: var(--paper-2); border: 1px solid var(--line);
  display: grid; place-items: center; color: var(--pine);
}
.info-list__icon svg { width: 20px; height: 20px; }
.info-list dt { font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); font-weight: 600; margin-bottom: .2rem; }
.info-list dd { margin: 0; font-weight: 500; }
.info-list a { color: var(--pine); text-decoration: none; border-bottom: 1px solid transparent; transition: border-color .2s; }
.info-list a:hover { border-color: var(--pine); }

.map-card { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--paper-2); }
.map-card iframe { display: block; width: 100%; height: 340px; border: 0; filter: saturate(.92); }
.map-card__foot { padding: 1rem 1.25rem; display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.map-card__foot p { margin: 0; font-size: .9rem; color: var(--muted); }

/* Simple contact form */
.form { display: grid; gap: 1rem; }
.form__row { display: grid; gap: 1rem; grid-template-columns: 1fr 1fr; }
.field { display: grid; gap: .35rem; }
.field label { font-size: .82rem; font-weight: 600; letter-spacing: .02em; }
.field input, .field textarea, .field select {
  font-family: var(--body); font-size: 1rem; color: var(--ink); background: var(--paper-2);
  border: 1px solid var(--line); border-radius: var(--radius); padding: .8rem .9rem; transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--pine); box-shadow: 0 0 0 3px rgba(33,82,67,.12);
}
.field textarea { resize: vertical; min-height: 130px; }
.form__note { font-size: .82rem; color: var(--muted); margin: 0; }

/* ----- Callout strip ---------------------------------------------------- */
.strip { display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap;
  background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.6rem, 4vw, 2.4rem); }
.strip h2 { font-size: clamp(1.5rem, 3.5vw, 2.1rem); font-weight: 400; }
.strip p { color: var(--muted); margin: .5rem 0 0; max-width: 48ch; }
.strip__actions { display: flex; gap: .8rem; flex-wrap: wrap; }

/* ----- Footer ----------------------------------------------------------- */
.site-footer { background: var(--pine-deep); color: rgba(247,245,239,.8); padding: clamp(3rem, 6vw, 4.5rem) 0 2rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2.5rem; }
.site-footer .brand__name { color: var(--paper); }
.footer-col h4 { font-family: var(--body); font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-soft); font-weight: 700; margin-bottom: 1rem; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.footer-col a { color: rgba(247,245,239,.8); text-decoration: none; font-size: .95rem; transition: color .2s; }
.footer-col a:hover { color: var(--paper); }
.footer-about p { font-size: .95rem; max-width: 40ch; margin-top: 1rem; }
.footer-bottom { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid rgba(247,245,239,.14);
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: .84rem; color: rgba(247,245,239,.62); }
.footer-bottom p { margin: 0; }
.disclaimer { font-size: .8rem; line-height: 1.5; color: rgba(247,245,239,.55); max-width: 70ch; margin-top: .5rem; }

/* ----- Reveal-on-scroll ------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* ----- Focus visibility ------------------------------------------------- */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 2px solid var(--gold); outline-offset: 2px; border-radius: 3px;
}
.skip-link {
  position: absolute; left: -999px; top: 0; background: var(--pine); color: var(--paper-2);
  padding: .6rem 1rem; border-radius: 0 0 var(--radius) 0; z-index: 100; text-decoration: none; font-weight: 600;
}
.skip-link:focus { left: 0; }

/* ----- Responsive ------------------------------------------------------- */
@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .portrait { grid-row: 1; }
  .split, .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-about { grid-column: 1 / -1; }
}
@media (max-width: 680px) {
  .nav__links {
    position: fixed; inset: 64px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper-2); border-bottom: 1px solid var(--line); padding: .5rem 6vw 1.2rem;
    box-shadow: var(--shadow); transform: translateY(-120%); transition: transform .35s var(--ease); z-index: 55;
  }
  .nav__links.is-open { transform: translateY(0); }
  .nav__links a { padding: .9rem .4rem; border-bottom: 1px solid var(--line); }
  .nav__links a[aria-current="page"]::after { display: none; }
  .nav__cta { margin: .8rem 0 0; }
  .nav__toggle { display: grid; place-items: center; }
  .form__row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero__meta { gap: 1.2rem; }
}
