/* ==========================================================================
   Lumière Med Spa — porcelain, sage & blush
   Marcellus (display) + Jost light (body). Airy, arched, hairline-divided.
   ========================================================================== */

:root {
  --porcelain: #faf7f2;
  --porcelain-deep: #f3eee6;
  --ink: #3a423c;          /* deep sage-ink, body text — contrast-safe on porcelain */
  --ink-soft: #59635c;
  --sage: #7d8f80;
  --sage-deep: #54675a;    /* accessible accent on porcelain */
  --sage-wash: #e6ebe5;
  --blush: #e8d5cc;
  --blush-deep: #a4756a;   /* accessible blush for small text */
  --hairline: rgba(84, 103, 90, 0.28);
  --arch-radius: 50% 50% 0 0;
  --measure: 62ch;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: auto;
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--porcelain);
  color: var(--ink);
  font-family: "Jost", system-ui, sans-serif;
  font-weight: 300;
  font-size: 1.0625rem;
  line-height: 1.75;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: "Marcellus", Georgia, serif;
  font-weight: 400;
  color: var(--ink);
  letter-spacing: 0.015em;
  margin: 0 0 1.25rem;
}

h1 { font-size: clamp(2.1rem, 5.5vw, 3.4rem); line-height: 1.18; }
h2 { font-size: clamp(1.7rem, 3.8vw, 2.4rem); line-height: 1.25; }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1.1rem; max-width: var(--measure); }
ul { margin: 0; }
a { color: var(--sage-deep); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--ink); }

/* ---- Focus & skip link ------------------------------------------------- */

:focus-visible {
  outline: 2px solid var(--sage-deep);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  background: var(--ink);
  color: var(--porcelain);
  padding: 0.6rem 1.2rem;
  border-radius: 0 0 0.5rem 0.5rem;
  text-decoration: none;
  transition: none;
}

.skip-link:focus {
  top: 0;
}

/* ---- Shared section scaffolding ---------------------------------------- */

.section-inner {
  max-width: 70rem;
  margin: 0 auto;
  padding: clamp(4.5rem, 10vw, 8.5rem) clamp(1.25rem, 5vw, 3rem);
}

.section-narrow { max-width: 52rem; }

.hairline {
  border: none;
  border-top: 1px solid var(--hairline);
  max-width: 70rem;
  margin: 0 auto;
  width: calc(100% - 2.5rem);
}

.eyebrow {
  font-size: 0.8rem;
  letter-spacing: 0.32em;
  text-transform: lowercase;
  color: var(--sage-deep);
  margin-bottom: 1.5rem;
}

.section-lede {
  color: var(--ink-soft);
  margin-bottom: 3.5rem;
}

/* ---- Header & nav ------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 247, 242, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--hairline);
}

.header-inner {
  max-width: 70rem;
  margin: 0 auto;
  padding: 0.9rem clamp(1.25rem, 5vw, 3rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--sage-deep);
}

.brand-name {
  font-family: "Marcellus", Georgia, serif;
  font-size: 1.3rem;
  color: var(--ink);
  letter-spacing: 0.06em;
}

.brand-sub {
  font-family: "Jost", sans-serif;
  font-weight: 300;
  font-size: 0.85rem;
  letter-spacing: 0.28em;
  color: var(--sage-deep);
}

.primary-nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: clamp(1rem, 2.5vw, 2.2rem);
  padding: 0;
  margin: 0;
  align-items: center;
}

.primary-nav a {
  text-decoration: none;
  font-size: 0.95rem;
  letter-spacing: 0.14em;
  text-transform: lowercase;
  color: var(--ink-soft);
  padding: 0.35rem 0;
  border-bottom: 1px solid transparent;
}

.primary-nav a:hover {
  color: var(--ink);
  border-bottom-color: var(--sage-deep);
}

.nav-cta {
  border: 1px solid var(--sage-deep) !important;
  border-radius: 999px;
  padding: 0.35rem 1.2rem !important;
  color: var(--sage-deep) !important;
}

.nav-cta:hover {
  background: var(--sage-deep);
  color: var(--porcelain) !important;
}

/* Mobile nav toggle — display:none at desktop widths unconditionally;
   shown only on small screens once JS has booted (html.js). No-JS visitors
   keep the full inline nav and never see the button. */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 0.5rem;
  background: none;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  padding: 0.4rem 1.1rem;
  font-family: "Jost", sans-serif;
  font-weight: 300;
  font-size: 0.9rem;
  letter-spacing: 0.18em;
  color: var(--ink);
  cursor: pointer;
}

.nav-toggle-bar {
  position: relative;
  display: block;
  width: 16px;
  height: 1px;
  background: var(--ink);
}

.nav-toggle-bar::before,
.nav-toggle-bar::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--ink);
}

.nav-toggle-bar::before { top: -5px; }
.nav-toggle-bar::after { top: 5px; }

/* The hairline burger drifts into a ✕ while the veil is down */
.nav-toggle[aria-expanded="true"] .nav-toggle-bar { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::before {
  transform: translateY(5px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::after {
  transform: translateY(-5px) rotate(-45deg);
}

@media (prefers-reduced-motion: no-preference) {
  .nav-toggle-bar,
  .nav-toggle-bar::before,
  .nav-toggle-bar::after {
    transition: transform 0.3s ease, background-color 0.3s ease;
  }
}

@media (max-width: 720px) {
  .js .nav-toggle:not([hidden]) { display: inline-flex; }

  /* A serene veil: the menu drifts down from beneath the header,
     finishing in the site's arch motif (inverted, as a soft bottom edge). */
  .js .primary-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: linear-gradient(180deg, var(--porcelain) 0%, var(--porcelain-deep) 100%);
    border-bottom: 1px solid var(--hairline);
    border-radius: 0 0 50% 50% / 0 0 2.75rem 2.75rem;
    box-shadow: 0 24px 44px -20px rgba(58, 66, 60, 0.3);
    padding: 1.75rem clamp(1.25rem, 5vw, 3rem) 3.25rem;
    visibility: hidden;
    opacity: 0;
    transform: translateY(-0.75rem);
  }

  .js .primary-nav.is-open {
    visibility: visible;
    opacity: 1;
    transform: none;
  }

  .js .primary-nav ul {
    flex-direction: column;
    align-items: center;
    gap: 1.1rem;
  }

  .js .primary-nav a {
    font-size: 1rem;
    letter-spacing: 0.3em; /* generous tracking inside the veil */
  }

  .js .primary-nav li { opacity: 0; }
  .js .primary-nav.is-open li { opacity: 1; }
}

/* Slow, serene motion (≥400ms); the links fade in sequence. Under
   prefers-reduced-motion the veil simply appears and disappears. */
@media (max-width: 720px) and (prefers-reduced-motion: no-preference) {
  .js .primary-nav {
    transition: opacity 0.45s ease, transform 0.45s ease, visibility 0s linear 0.45s;
  }

  .js .primary-nav.is-open {
    transition: opacity 0.45s ease, transform 0.45s ease, visibility 0s;
  }

  .js .primary-nav li { transition: opacity 0.5s ease; }
  .js .primary-nav.is-open li:nth-child(1) { transition-delay: 0.12s; }
  .js .primary-nav.is-open li:nth-child(2) { transition-delay: 0.2s; }
  .js .primary-nav.is-open li:nth-child(3) { transition-delay: 0.28s; }
  .js .primary-nav.is-open li:nth-child(4) { transition-delay: 0.36s; }
  .js .primary-nav.is-open li:nth-child(5) { transition-delay: 0.44s; }
}

/* ---- Hero ---------------------------------------------------------------- */

.hero-inner {
  max-width: 70rem;
  margin: 0 auto;
  padding: clamp(4.5rem, 11vw, 9rem) clamp(1.25rem, 5vw, 3rem) clamp(4rem, 9vw, 7.5rem);
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  gap: clamp(2.5rem, 6vw, 5.5rem);
  align-items: center;
}

.hero-lede {
  color: var(--ink-soft);
  font-size: 1.125rem;
  margin: 1.5rem 0 2.5rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.75rem;
}

.hero-facts {
  font-size: 0.92rem;
  letter-spacing: 0.05em;
  color: var(--ink-soft);
  border-top: 1px solid var(--hairline);
  padding-top: 1.25rem;
}

.button {
  display: inline-block;
  padding: 0.85rem 2rem;
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.95rem;
  letter-spacing: 0.12em;
  text-transform: lowercase;
  border: 1px solid var(--sage-deep);
}

.button-solid {
  background: var(--sage-deep);
  color: var(--porcelain);
}

.button-solid:hover { background: var(--ink); border-color: var(--ink); color: var(--porcelain); }

.button-ghost { color: var(--sage-deep); background: transparent; }
.button-ghost:hover { background: var(--sage-wash); color: var(--ink); }

/* Arched decorative panel */
.hero-arch {
  position: relative;
  min-height: 22rem;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.arch {
  position: absolute;
  bottom: 0;
  border-radius: var(--arch-radius);
}

.arch-sage {
  width: 78%;
  height: 92%;
  right: 0;
  background: linear-gradient(180deg, var(--sage-wash) 0%, #dfe6dd 100%);
}

.arch-blush {
  width: 52%;
  height: 64%;
  left: 4%;
  background: linear-gradient(180deg, #f2e3dc 0%, var(--blush) 100%);
}

.hero-sprig {
  position: relative;
  width: clamp(90px, 11vw, 130px);
  color: var(--sage-deep);
  margin-bottom: 2.5rem;
}

/* ---- Services ------------------------------------------------------------ */

.service-grid {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
  gap: clamp(1.5rem, 3vw, 2.5rem);
  margin-top: 3rem;
}

.service-card {
  background: #fffdf9;
  border: 1px solid var(--hairline);
  border-radius: 9rem 9rem 1rem 1rem; /* soft top-arch motif */
  padding: 3.25rem 2rem 2.25rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.service-card p { max-width: 34ch; }

.service-card-note {
  background: linear-gradient(180deg, #f4ece6 0%, var(--blush) 130%);
}

.service-icon {
  width: 44px;
  height: 44px;
  color: var(--sage-deep);
  margin-bottom: 1.4rem;
}

.service-price {
  font-family: "Marcellus", Georgia, serif;
  font-size: 1.5rem;
  color: var(--blush-deep);
  margin-bottom: 1rem;
}

.service-price span {
  font-family: "Jost", sans-serif;
  font-weight: 300;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  color: var(--ink-soft);
}

.service-card > p:last-child {
  color: var(--ink-soft);
  font-size: 0.97rem;
  margin-bottom: 0;
}

.services-note {
  margin-top: 3.25rem;
  padding: 1.4rem 0 1.4rem 1.75rem;
  border-left: 1px solid var(--sage-deep);
  color: var(--ink-soft);
  font-size: 0.98rem;
}

.services-note strong {
  font-weight: 500;
  color: var(--ink);
}

/* ---- About / medical director -------------------------------------------- */

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}

.portrait-arch {
  background: linear-gradient(180deg, var(--sage-wash) 0%, var(--porcelain-deep) 100%);
  border: 1px solid var(--hairline);
  border-radius: var(--arch-radius);
  padding: clamp(2rem, 4vw, 3rem);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  aspect-ratio: 4 / 5;
}

.portrait-arch svg {
  width: 70%;
  color: var(--sage-deep);
}

.about-credentials {
  list-style: none;
  padding: 0;
  margin-top: 2rem;
  border-top: 1px solid var(--hairline);
}

.about-credentials li {
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--hairline);
  color: var(--ink-soft);
  font-size: 0.98rem;
}

.about-credentials li::before {
  content: "·";
  color: var(--blush-deep);
  margin-right: 0.75rem;
}

/* ---- FAQ ------------------------------------------------------------------ */

.faq-list {
  margin: 3rem 0 0;
}

.faq-item {
  border-top: 1px solid var(--hairline);
  padding: 1.9rem 0;
}

.faq-item:last-child { border-bottom: 1px solid var(--hairline); }

.faq-item dt {
  font-family: "Marcellus", Georgia, serif;
  font-size: 1.18rem;
  margin-bottom: 0.7rem;
}

.faq-item dd {
  margin: 0;
  color: var(--ink-soft);
  max-width: var(--measure);
}

/* Accordion enhancement — these rules only matter once script.js has wrapped
   each question in a <button>. Without JS every answer stays visible. */
.faq-item dt button {
  all: unset;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1.5rem;
  width: 100%;
  font: inherit;
  color: inherit;
  cursor: pointer;
}

.faq-item dt button:hover {
  color: var(--sage-deep);
}

.faq-item dt button:focus-visible {
  outline: 2px solid var(--sage-deep);
  outline-offset: 4px;
  border-radius: 2px;
}

.faq-item dt button::after {
  content: "+";
  flex: none;
  font-family: "Jost", sans-serif;
  font-weight: 300;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--sage-deep);
}

.faq-item dt button[aria-expanded="true"]::after {
  content: "\2212"; /* minus sign */
}

.js .faq-item dd {
  padding-top: 0.7rem;
}

.js .faq-item dd[hidden] {
  display: none;
}

@media (prefers-reduced-motion: no-preference) {
  .js .faq-item dd {
    animation: faq-open 0.25s ease both;
  }

  @keyframes faq-open {
    from { opacity: 0; transform: translateY(-4px); }
    to   { opacity: 1; transform: none; }
  }
}

/* ---- Visit ----------------------------------------------------------------- */

.visit-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: clamp(1.5rem, 3vw, 2.5rem);
  margin-top: 3rem;
}

.visit-card {
  border-top: 1px solid var(--sage-deep);
  padding-top: 1.75rem;
}

.visit-card h3 {
  text-transform: lowercase;
  letter-spacing: 0.18em;
  font-size: 0.95rem;
  font-family: "Jost", sans-serif;
  font-weight: 400;
  color: var(--sage-deep);
}

.visit-card p { color: var(--ink-soft); font-size: 0.98rem; }

.hours-list {
  list-style: none;
  padding: 0;
  margin-bottom: 1rem;
}

.hours-list li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--hairline);
  font-size: 0.98rem;
}

/* ---- Contact ----------------------------------------------------------------- */

.contact-panel {
  text-align: center;
  background: linear-gradient(180deg, var(--porcelain) 0%, var(--porcelain-deep) 100%);
  border: 1px solid var(--hairline);
  border-radius: var(--arch-radius);
  margin-top: clamp(4.5rem, 10vw, 8.5rem);
  margin-bottom: clamp(4.5rem, 10vw, 8.5rem);
}

.contact-panel p { margin-left: auto; margin-right: auto; }

.contact-sun {
  width: 52px;
  height: 52px;
  color: var(--blush-deep);
  margin-bottom: 1.5rem;
}

.contact-phone {
  font-family: "Marcellus", Georgia, serif;
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  margin: 1.5rem 0 0.75rem;
}

.contact-phone a { text-decoration: none; color: var(--sage-deep); }
.contact-phone a:hover { color: var(--ink); text-decoration: underline; }

.contact-sub {
  font-size: 0.92rem;
  letter-spacing: 0.05em;
  color: var(--ink-soft);
}

/* ---- Footer --------------------------------------------------------------------- */

.site-footer {
  border-top: 1px solid var(--hairline);
  background: var(--porcelain-deep);
}

.footer-inner {
  max-width: 70rem;
  margin: 0 auto;
  padding: 3.5rem clamp(1.25rem, 5vw, 3rem);
  text-align: center;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.footer-brand {
  font-family: "Marcellus", Georgia, serif;
  font-size: 1.25rem;
  color: var(--ink);
  letter-spacing: 0.08em;
}

.footer-brand span {
  font-family: "Jost", sans-serif;
  font-weight: 300;
  font-size: 0.8rem;
  letter-spacing: 0.28em;
  color: var(--sage-deep);
}

.footer-fine {
  margin-top: 1.75rem;
  font-size: 0.85rem;
  color: var(--ink-soft);
}

/* ---- Reveal animation (motion-safe only; visible by default without JS) ---- */

@media (prefers-reduced-motion: no-preference) {
  .js .reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.7s ease, transform 0.7s ease;
  }

  .js .reveal.is-visible {
    opacity: 1;
    transform: none;
  }
}

/* ---- Responsive ------------------------------------------------------------ */

@media (max-width: 880px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }

  .hero-arch {
    min-height: 16rem;
    max-width: 26rem;
    margin: 0 auto;
    width: 100%;
  }

  .about-grid {
    grid-template-columns: 1fr;
  }

  .about-portrait {
    max-width: 20rem;
    margin: 0 auto;
    width: 100%;
  }
}

/* Social links (fictional .example profiles) */
.social-links { display: flex; gap: 1.2rem; list-style: none; justify-content: center; padding: 0 1.5rem; margin: 1.5rem auto 0; }
.social-links a { display: inline-flex; color: inherit; opacity: 0.85; }
.social-links a:hover, .social-links a:focus-visible { opacity: 1; }
.social-links svg { width: 1.3rem; height: 1.3rem; }


/* Anchor targets clear the sticky header instead of sliding under it */
[id] {
  scroll-margin-top: 83px;
}

/* The booking action takes the space the word "menu" used to waste:
   icon-only toggle, book pill beside it (small screens only). */
.header-book { display: none; }

@media (max-width: 720px) {
  .header-book {
    display: inline-block;
    background: #9aa68b;
    color: #fff;
    font-size: 0.85rem;
    letter-spacing: 0.18em;
    text-transform: lowercase;
    text-decoration: none;
    padding: 0.5rem 1.1rem;
    border-radius: 999px;
    margin-right: 0.7rem;
  }
}

@media (max-width: 720px) {
  .header-inner {
    flex-wrap: nowrap;
    gap: 0.6rem;
  }

  .header-inner .brand { margin-right: auto; }

  .brand-name { font-size: 1.05rem; }

  .header-book { margin-right: 0; }
}
