/* ============================================================
   Olivia Megargle Homeopathy
   Tokens locked to the brand guide — do not hybridize.
   ============================================================ */

:root {
  --cream:     #E3DCD2;   /* brand accent — bands, edges */
  --base:      #EDE8DF;   /* page ground: brand cream, lifted — white bands must read against it */
  --cream-lift:#F5F2EC;   /* +3% lightness — separates panels without borders */
  --paper:     #F2EEE8;
  --white:     #FFFFFF;
  --sage:      #BCC0B4;
  --sage-deep: #8E9686;
  --tan:       #A28E71;
  --tan-deep:  #86745B;
  --charcoal:  #3B3B3B;
  --charcoal-soft: rgba(59,59,59,.68);
  --charcoal-faint: rgba(59,59,59,.14);

  --display: "Cormorant Garamond", Georgia, serif;
  --body: "Montserrat", -apple-system, BlinkMacSystemFont, sans-serif;

  --measure: 64ch;
  --gutter: clamp(24px, 5vw, 64px);
  --section: clamp(72px, 11vw, 152px);
  --shell: 1240px;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--base);
  color: var(--charcoal);
  font-family: var(--body);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.75;
  letter-spacing: .004em;
  -webkit-font-smoothing: antialiased;
}

/* Paper grain — kilobytes, keeps the flats from going dead ------------- */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: .085;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='260'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='260' height='260' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}

img { max-width: 100%; height: auto; display: block; }  /* height:auto so the HTML height attr can't beat aspect-ratio */

/* Type ---------------------------------------------------------------- */
h1, h2, h3 {
  font-family: var(--display);
  font-weight: 300;
  letter-spacing: -.012em;
  margin: 0;
  line-height: 1.08;
}
h1 { font-size: clamp(2.9rem, 7.2vw, 5.4rem); }
h2 { font-size: clamp(2.1rem, 4.6vw, 3.5rem); line-height: 1.14; }
h3 { font-size: clamp(1.3rem, 2.2vw, 1.6rem); line-height: 1.28; }

p { margin: 0 0 1.25em; max-width: var(--measure); }
p:last-child { margin-bottom: 0; }

em { font-style: italic; }

a { color: inherit; }

/* Eyebrow — the one letterspaced device, borrowed from her wordmark ---- */
.eyebrow {
  font-family: var(--body);
  font-size: .68rem;
  font-weight: 400;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: rgba(59,59,59,.5);
  margin: 0 0 1.4rem;
}

.lede {
  font-family: var(--display);
  font-size: clamp(1.35rem, 2.5vw, 1.85rem);
  line-height: 1.5;
  font-weight: 300;
  color: rgba(59,59,59,.88);
}

/* Layout -------------------------------------------------------------- */
.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
section { padding-block: var(--section); }

.rule {
  width: 56px;
  height: 1px;
  background: var(--tan);
  opacity: .55;
  margin: 0 0 2rem;
  border: 0;
}
.rule.center { margin-inline: auto; }

/* Nav ----------------------------------------------------------------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--white);
  border-bottom: 1px solid rgba(59,59,59,.10);
}
.nav__in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 78px;
}
.nav__mark img {
  width: clamp(178px, 22vw, 246px);  /* cream card knocked out to transparent, so it sits on any ground */
}
.nav__links {
  display: flex;
  gap: clamp(20px, 3.4vw, 44px);
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav__links a {
  text-decoration: none;
  font-size: .72rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  font-weight: 400;
  padding-block: 6px;
  color: var(--charcoal-soft);
  border-bottom: 1px solid transparent;
  transition: color .25s ease, border-color .25s ease;
}
.nav__links a:hover,
.nav__links a[aria-current="page"] {
  color: var(--charcoal);
  border-bottom-color: var(--tan);
}

/* Hero ---------------------------------------------------------------- */
.hero { padding-block: clamp(56px, 8vw, 104px) clamp(56px, 8vw, 104px); }
.hero__grid {
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  gap: clamp(40px, 6vw, 84px);
  align-items: center;
}
.hero h1 em { font-style: italic; }
.hero__sub {
  margin-top: 2.2rem;
  max-width: 46ch;
  color: rgba(59,59,59,.86);
}
.hero__figure { position: relative; margin: 0; justify-self: end; width: 100%; max-width: 500px; }
.hero__figure img {
  width: 100%;
  aspect-ratio: 4 / 5;
  max-height: min(68vh, 600px);
  object-fit: cover;
  object-position: center 78%;   /* the cards sit low in the frame */
  filter: saturate(.88) contrast(1.02);
}
.hero__figure img.hero__branch {
  position: absolute;
  bottom: -30px;
  left: -40px;
  width: clamp(84px, 9vw, 124px);
  max-height: none;
  aspect-ratio: auto;
  object-fit: contain;
  mix-blend-mode: multiply;  /* kills the white box on the mark */
  opacity: .72;
  pointer-events: none;
}

/* Buttons ------------------------------------------------------------- */
.btn {
  display: inline-block;
  font-family: var(--body);
  font-size: .72rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  font-weight: 400;
  text-decoration: none;
  padding: 17px 34px;
  background: var(--charcoal);
  color: var(--cream);
  border: 1px solid var(--charcoal);
  cursor: pointer;
  transition: background .28s ease, color .28s ease;
}
.btn:hover { background: transparent; color: var(--charcoal); }
.btn--quiet { background: transparent; color: var(--charcoal); }
.btn--quiet:hover { background: var(--charcoal); color: var(--cream); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 2.4rem; }

/* Quote band ---------------------------------------------------------- */
.band { background: var(--sage); color: var(--charcoal); }
.band .shell { max-width: 940px; text-align: center; }
.band blockquote {
  margin: 0;
  font-family: var(--display);
  font-weight: 300;
  font-style: italic;
  font-size: clamp(1.5rem, 3.3vw, 2.5rem);
  line-height: 1.36;
}
.band cite {
  display: block;
  margin-top: 2rem;
  font-family: var(--body);
  font-style: normal;
  font-size: .69rem;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: rgba(59,59,59,.72);
}

/* Two-column feature -------------------------------------------------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 7vw, 96px);
  align-items: center;
}
.split--flip .split__media { order: 2; }
.split__media img {
  width: 100%;
  max-width: 440px;
  aspect-ratio: 1 / 1;      /* her portrait is a square source — don't force a crop */
  object-fit: cover;
  object-position: center 32%;
  filter: saturate(.9);
}
.split--flip .split__media { justify-self: center; }

/* Heading left, content right — keeps wide sections from stranding */
.duo {
  display: grid;
  grid-template-columns: .82fr 1.18fr;
  gap: clamp(32px, 6vw, 88px);
  align-items: start;
}
.duo .tags { margin-top: 0; max-width: none; }

/* Panels — separated by whitespace + lightness, never borders ---------- */
.panels {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3px;
  margin-top: clamp(40px, 6vw, 68px);
}
.panel {
  background: var(--white);
  padding: clamp(30px, 3.6vw, 46px);
}
.panel h3 { margin-bottom: .8rem; }
.panel p { font-size: .94rem; color: rgba(59,59,59,.84); }
.panel__num { display: none; }

/* Lists --------------------------------------------------------------- */
.tags {
  list-style: none;
  margin: 2.4rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  max-width: var(--measure);
}
.tags li {
  background: var(--white);
  box-shadow: inset 0 0 0 1px rgba(59,59,59,.05);
  padding: 11px 20px;
  font-size: .82rem;
  letter-spacing: .05em;
  color: rgba(59,59,59,.8);
}

.phases {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  max-width: var(--measure);
}
.phases li {
  padding: 15px 0;
  border-bottom: 1px solid var(--charcoal-faint);
  display: flex;
  gap: 20px;
  align-items: baseline;
  font-size: .97rem;
}
.phases li:first-child { border-top: 1px solid var(--charcoal-faint); }
.phases span {
  font-family: var(--display);
  font-size: 1.05rem;
  color: var(--tan);
  min-width: 34px;
}

/* Contact ------------------------------------------------------------- */
.contact { background: var(--white); border-block: 1px solid rgba(59,59,59,.09); }
.contact__grid {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: clamp(44px, 7vw, 96px);
}
.contact__detail {
  margin: 0 0 1.9rem;
}
.contact__detail dt {
  font-size: .67rem;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--tan-deep);
  margin-bottom: .5rem;
}
.contact__detail dd {
  margin: 0;
  font-family: var(--display);
  font-size: 1.28rem;
  line-height: 1.4;
}
.contact__detail dd a { text-decoration: none; border-bottom: 1px solid var(--charcoal-faint); }
.contact__detail dd a:hover { border-bottom-color: var(--tan); }

form { display: grid; gap: 22px; }
.field { display: grid; gap: 9px; }
.field label {
  font-size: .67rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: rgba(59,59,59,.72);
}
.field input,
.field textarea {
  font-family: var(--body);
  font-weight: 300;
  font-size: 1rem;
  color: var(--charcoal);
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(59,59,59,.28);
  padding: 11px 2px;
  border-radius: 0;
  transition: border-color .25s ease;
}
.field input:focus,
.field textarea:focus {
  outline: none;
  border-bottom-color: var(--tan);
}
.field textarea { resize: vertical; min-height: 128px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.form-note {
  font-size: .78rem;
  color: rgba(59,59,59,.6);
  max-width: 44ch;
}
.form-status {
  font-size: .86rem;
  color: var(--tan-deep);
  min-height: 1.2em;
}

/* Appointments -------------------------------------------------------- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(268px, 1fr));
  gap: 4px;
  margin-top: clamp(40px, 6vw, 64px);
}
.card {
  background: var(--white);
  padding: clamp(32px, 3.8vw, 48px);
  display: flex;
  flex-direction: column;
}
.card--feature { background: var(--sage); }
.card__price {
  font-family: var(--display);
  font-size: 2.4rem;
  line-height: 1;
  margin: 1.6rem 0 .4rem;
}
.card__meta {
  font-size: .68rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: rgba(59,59,59,.68);
}
.card ul {
  list-style: none;
  margin: 1.9rem 0 0;
  padding: 0;
  font-size: .93rem;
  color: rgba(59,59,59,.8);
}
.card ul li {
  padding: 9px 0 9px 20px;
  position: relative;
}
.card ul li::before {
  content: "";
  position: absolute;
  left: 0; top: 18px;
  width: 6px; height: 1px;
  background: var(--tan);
}
.card .btn { margin-top: auto; align-self: flex-start; }
.card--feature .btn { border-color: var(--charcoal); }

.steps { counter-reset: s; margin-top: clamp(40px, 6vw, 64px); }
.step {
  display: grid;
  grid-template-columns: 78px 1fr;
  gap: 24px;
  padding: 30px 0;
  border-top: 1px solid var(--charcoal-faint);
  align-items: start;
}
.step:last-child { border-bottom: 1px solid var(--charcoal-faint); }
.step__n {
  font-family: var(--display);
  font-size: 1.7rem;
  color: var(--tan);
  line-height: 1;
}
.step h3 { margin-bottom: .5rem; }
.step p { font-size: .95rem; color: rgba(59,59,59,.84); }

/* Footer -------------------------------------------------------------- */
.footer {
  background: var(--charcoal);
  color: rgba(227,220,210,.82);
  padding-block: clamp(56px, 7vw, 88px);
}
.footer a { color: inherit; text-decoration: none; }
.footer a:hover { color: var(--cream); }
.footer__in {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: space-between;
  align-items: flex-start;
}
.footer__mark {
  font-family: var(--display);
  font-size: 1.5rem;
  color: var(--cream);
  letter-spacing: .04em;
}
.footer__mark small {
  display: block;
  font-family: var(--body);
  font-size: .64rem;
  letter-spacing: .34em;
  text-transform: uppercase;
  color: rgba(227,220,210,.6);
  margin-top: .5rem;
}
.footer__col { font-size: .86rem; line-height: 2; }
.footer__legal {
  margin-top: clamp(40px, 6vw, 64px);
  padding-top: 26px;
  border-top: 1px solid rgba(227,220,210,.16);
  font-size: .74rem;
  color: rgba(227,220,210,.5);
  max-width: 70ch;
}

/* Motion — one orchestrated entrance, then quiet scroll reveals -------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .62s cubic-bezier(.22,.61,.36,1), transform .62s cubic-bezier(.22,.61,.36,1);
}
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .07s; }
.reveal.d2 { transition-delay: .14s; }
.reveal.d3 { transition-delay: .21s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* Responsive ---------------------------------------------------------- */
@media (max-width: 900px) {
  .hero__grid,
  .split,
  .duo,
  .contact__grid { grid-template-columns: 1fr; }
  .split--flip .split__media { order: 0; }
  .panels { grid-template-columns: 1fr; }
  .hero__figure { max-width: 460px; }
  .hero__branch { left: -22px; bottom: -22px; }
}
@media (max-width: 620px) {
  body { font-size: 16px; }
  .nav__in { min-height: 66px; flex-wrap: wrap; padding-block: 12px; }
  .nav__links { gap: 18px; }
  .field-row { grid-template-columns: 1fr; }
  .step { grid-template-columns: 48px 1fr; gap: 14px; }
}

/* ============================================================
   Simplified pages — About & Appointments.
   Fewer devices, more page. Prose does the work.
   ============================================================ */

.page-head { padding-block: clamp(48px, 7vw, 96px) clamp(36px, 5vw, 60px); }
.page-head h1 { font-size: clamp(2.6rem, 6vw, 4.4rem); }

/* One column of readable text, like a letter -------------------------- */
.article { max-width: 660px; margin-inline: auto; }
.article p { max-width: none; margin-bottom: 1.5em; }

.article__role {
  font-size: .78rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(59,59,59,.55);
  margin-top: 1.4rem;
}
.article__portrait {
  width: 100%;
  aspect-ratio: 5 / 4;
  object-fit: cover;
  object-position: center 30%;
  margin-top: clamp(32px, 4.5vw, 52px);
  filter: saturate(.9);
}
.article__open {
  font-family: var(--display);
  font-size: clamp(1.3rem, 2.3vw, 1.7rem);
  line-height: 1.5;
  margin-bottom: 1.8rem;
}
.article__todo {
  background: var(--white);
  box-shadow: inset 0 0 0 1px rgba(59,59,59,.08);
  padding: 22px 26px;
  font-size: .9rem;
  color: rgba(59,59,59,.6);
}
.article__sign {
  margin-top: clamp(40px, 5vw, 64px);
  padding-top: 28px;
  border-top: 1px solid var(--charcoal-faint);
  font-size: .95rem;
}
.article__sign a {
  text-decoration: none;
  border-bottom: 1px solid var(--tan);
  padding-bottom: 2px;
}
.article__sign a:hover { border-bottom-color: var(--charcoal); }
.article__sign span { color: rgba(59,59,59,.5); margin-inline: .5rem; }

.narrow { max-width: 760px; margin-inline: auto; }

/* Consultations as a plain list, not a card grid ---------------------- */
.menu { list-style: none; margin: 0; padding: 0; }
.menu__item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px 32px;
  align-items: baseline;
  padding: 30px 0;
  border-bottom: 1px solid var(--charcoal-faint);
}
.menu__item:first-child { border-top: 1px solid var(--charcoal-faint); }
.menu__item h2 {
  font-size: clamp(1.5rem, 2.6vw, 1.95rem);
  margin-bottom: .55rem;
}
.menu__item p {
  font-size: .95rem;
  color: rgba(59,59,59,.8);
  margin: 0;
  max-width: 52ch;
}
.menu__meta {
  font-size: .72rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(59,59,59,.55);
  white-space: nowrap;
}

/* White = the surface you act on. Contact block, booking calendar.
   Full-bleed so the page reads tan -> white -> tan. --------------------- */
.band-white {
  background: var(--white);
  border-block: 1px solid rgba(59,59,59,.09);
  padding-block: clamp(56px, 8vw, 104px);
}

/* Booking slot — honest placeholder, not a fake widget ---------------- */
.slot {
  padding: clamp(36px, 5vw, 64px) clamp(24px, 4vw, 48px);
  box-shadow: inset 0 0 0 1px rgba(59,59,59,.11);
  text-align: center;
}
.slot p {
  margin-inline: auto;
  font-family: var(--display);
  font-size: 1.45rem;
  line-height: 1.4;
  max-width: 24ch;
}
.slot__note {
  font-family: var(--body) !important;
  font-size: .88rem !important;
  color: rgba(59,59,59,.65);
  margin-top: 1rem !important;
  max-width: 40ch !important;
}
.slot .btn { margin-top: 2rem; }

@media (max-width: 620px) {
  .menu__item { grid-template-columns: 1fr; gap: 10px; }
}

/* Booking type switcher ----------------------------------------------- */
.bk-tabs {
  display: flex;
  gap: 3px;
  margin-bottom: clamp(28px, 3.5vw, 40px);
  justify-content: center;
}
.bk-tab {
  font-family: var(--body);
  font-weight: 300;
  font-size: .95rem;
  color: rgba(59,59,59,.7);
  background: var(--base);
  border: 0;
  box-shadow: inset 0 0 0 1px rgba(59,59,59,.09);
  padding: 15px 26px;
  cursor: pointer;
  display: flex;
  align-items: baseline;
  gap: 10px;
  transition: background .25s ease, color .25s ease, box-shadow .25s ease;
}
.bk-tab span {
  font-size: .68rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(59,59,59,.5);
}
.bk-tab:hover { color: var(--charcoal); }
.bk-tab.is-on {
  background: var(--charcoal);
  color: var(--cream);
  box-shadow: none;
}
.bk-tab.is-on span { color: rgba(227,220,210,.72); }

@media (max-width: 560px) {
  .bk-tabs { flex-direction: column; }
  .bk-tab { justify-content: center; }
}
