/* ---------- Tokens ---------- */
:root {
  /* Palette pulled from logo: navy + warm coral on cream */
  --bg:           #FAF7F2;
  --surface:      #F2EADC;
  --ink:          #2A3B5A;       /* navy from logo */
  --ink-2:        #4A5973;
  --muted:        #6F7A8E;
  --line:         #E5DDCC;
  --accent:       #C68B6E;       /* warm coral from logo */
  --accent-dark:  #A56F55;
  --gold:         #B8893A;
  --dark-bg:      #1F2A40;
  --dark-bg-2:    #243049;

  --container: 1180px;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 1px 2px rgba(31,42,64,.06), 0 1px 3px rgba(31,42,64,.05);
  --shadow:    0 4px 16px rgba(31,42,64,.08), 0 2px 4px rgba(31,42,64,.04);
  --shadow-lg: 0 24px 48px rgba(31,42,64,.18), 0 6px 16px rgba(31,42,64,.10);

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body:    "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --t: 200ms cubic-bezier(.2,.8,.2,1);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img, picture, iframe { max-width: 100%; display: block; }
a { color: var(--accent-dark); text-decoration: none; transition: color var(--t); }
a:hover { color: var(--accent); }
button { font: inherit; }

.skip {
  position: absolute; left: -9999px; top: 0; padding: .75rem 1rem;
  background: var(--ink); color: #fff; z-index: 1000;
}
.skip:focus { left: 1rem; top: 1rem; }

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

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
  line-height: 1.1;
  margin: 0 0 .5em;
}
h1 { font-size: clamp(2.5rem, 5.5vw + .5rem, 4.75rem); font-weight: 600; line-height: 1.04; }
h1 em { font-style: italic; color: var(--accent); }
h2.section-title { font-size: clamp(2rem, 3vw + 1rem, 3rem); }
h3 { font-size: 1.4rem; }
h4 { font-size: 1rem; font-family: var(--font-body); font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--ink); margin-bottom: .75rem; }
p  { margin: 0 0 1em; }
.eyebrow {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: .8rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent-dark);
  margin: 0 0 1rem;
}
.eyebrow.on-dark { color: var(--accent); }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.section-lede {
  font-size: 1.1rem;
  color: var(--ink-2);
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
}
.section-lede.on-dark { color: rgba(255,255,255,.78); }
.on-dark { color: #fff !important; }
.link-on-dark { color: #fff; text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 4px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .8rem 1.5rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform var(--t), background var(--t), color var(--t), border-color var(--t), box-shadow var(--t);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.btn-primary { background: var(--ink); color: #fff; box-shadow: var(--shadow); }
.btn-primary:hover { background: var(--accent); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.btn-lg { padding: 1rem 2rem; font-size: 1.05rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 247, 242, .92);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
  transition: background var(--t);
}
/* Centered, two-row header:
     row 1: big logo centered
     row 2: nav links centered below
   Hamburger is absolutely positioned top-right on mobile only. */
.header-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding-top: 10px; padding-bottom: 6px;
}
.brand {
  display: flex; align-items: center; justify-content: center;
  color: var(--ink);
}
.brand img {
  height: 160px; width: auto; display: block;
  transition: height 260ms cubic-bezier(.2,.8,.2,1);
}
@media (min-width: 860px) {
  .brand img { height: 200px; }
}
.nav {
  /* max-height + opacity drive the collapse animation (max-height instead of
     height so it works without a known fixed value) */
  max-height: 60px;
  overflow: hidden;
  transition: max-height 260ms cubic-bezier(.2,.8,.2,1),
              opacity   200ms ease,
              padding   200ms ease;
}
.nav-toggle {
  position: absolute; top: 12px; right: 16px;
}

/* Sentinel sits at the very top of the document, before the header.
   1px tall in normal flow. Has no visible effect on layout. */
#scroll-sentinel {
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  pointer-events: none;
}

/* ---- Compact mode on scroll ----
   .scrolled toggled by IntersectionObserver in main.js (watches the sentinel).
   Logo shrinks, nav collapses, subtle shadow appears. */
.site-header.scrolled {
  background: rgba(250, 247, 242, .96);
  box-shadow: 0 2px 12px rgba(31,42,64,.06);
}
.site-header.scrolled .brand img { height: 48px; }
@media (min-width: 860px) {
  .site-header.scrolled .brand img { height: 52px; }
}
.site-header.scrolled .nav {
  max-height: 0; opacity: 0; padding-top: 0; padding-bottom: 0; pointer-events: none;
}
.site-header.scrolled .header-inner {
  padding-top: 6px; padding-bottom: 6px;
}
.nav a {
  color: var(--ink); font-weight: 500; font-size: .95rem;
  position: relative;
}
.nav a + a { margin-left: 2rem; }
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px;
  background: var(--accent); transform: scaleX(0); transform-origin: left;
  transition: transform var(--t);
}
.nav a:hover { color: var(--accent-dark); }
.nav a:hover::after { transform: scaleX(1); }
.nav-toggle {
  background: transparent; border: 1px solid var(--line);
  border-radius: 12px; padding: .5rem; cursor: pointer; color: var(--ink);
  display: inline-flex;
}
.mobile-nav {
  display: flex; flex-direction: column; gap: 0;
  border-top: 1px solid var(--line);
  padding: .5rem 24px 1rem;
  background: var(--bg);
}
/* Respect the [hidden] attribute that JS toggles. Without this rule the
   author 'display: flex' above wins over the user-agent 'hidden' style. */
.mobile-nav[hidden] { display: none; }
.mobile-nav a {
  padding: .9rem .25rem;
  border-bottom: 1px solid var(--line);
  color: var(--ink); font-weight: 500;
}
.mobile-nav a:last-child { border-bottom: 0; }
.mobile-call { color: var(--accent-dark) !important; font-weight: 600 !important; }

/* Mobile: hide desktop nav, show hamburger.
   Desktop: show nav, hide hamburger. */
.nav { display: none; }
@media (min-width: 860px) {
  .nav { display: flex; }
  .nav-toggle { display: none; }
  .mobile-nav { display: none !important; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: clamp(520px, 78vh, 720px);
  display: flex; align-items: center;
  overflow: hidden;
  isolation: isolate;
}
.hero-bg {
  position: absolute; inset: 0; z-index: -1;
  width: 100%; height: 100%;
}
/* picture is inline by default — without an explicit display:block
   width/height the inner img can fail to fill on narrow viewports. */
.hero-bg picture { display: block; width: 100%; height: 100%; }
.hero-bg img {
  width: 100%; height: 100%; object-fit: cover; object-position: center center;
}
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(31,42,64,.15) 0%, rgba(31,42,64,.55) 60%, rgba(31,42,64,.78) 100%),
    linear-gradient(90deg, rgba(31,42,64,.45) 0%, rgba(31,42,64,0) 60%);
}
.hero-inner {
  position: relative; z-index: 1; color: #fff;
  padding: 5rem 24px 3rem;
  max-width: 760px;
}
.hero .eyebrow { color: rgba(255,255,255,.85); }
.hero h1 { color: #fff; }
.hero h1 em { color: #F1B59B; }
.hero-sub {
  font-size: clamp(1.05rem, 1vw + .9rem, 1.3rem);
  color: rgba(255,255,255,.92);
  margin: 1rem 0 2rem;
  max-width: 36rem;
}
.hero-cta {
  display: flex; flex-wrap: wrap; gap: .85rem;
}
.hero-cta .btn-primary { background: #fff; color: var(--ink); }
.hero-cta .btn-primary:hover { background: var(--accent); color: #fff; }
.hero-cta .btn-ghost { color: #fff; border-color: rgba(255,255,255,.7); background: rgba(255,255,255,.06); }
.hero-cta .btn-ghost:hover { background: #fff; color: var(--ink); }
.hero-fineprint { margin-top: 1.5rem; font-size: .85rem; color: rgba(255,255,255,.7); letter-spacing: .04em; }

/* ---------- Sections ---------- */
.section {
  padding: clamp(4rem, 8vw, 7rem) 0;
}
.section-warm { background: var(--surface); }
.section-dark {
  background: linear-gradient(180deg, var(--dark-bg) 0%, var(--dark-bg-2) 100%);
  color: #fff;
}
.section-dark .section-title,
.section-dark h3 { color: #fff; }

/* ---------- Services ---------- */
.services-grid {
  margin-top: 2.5rem;
  display: grid; gap: 1rem;
  grid-template-columns: 1fr;
}
@media (min-width: 720px) {
  .services-grid { grid-template-columns: repeat(3, 1fr); }
}
.service-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 2rem 1.75rem;
  text-align: center;
  position: relative;
  transition: transform var(--t), box-shadow var(--t), border-color var(--t);
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--accent); }
.service-card.featured { border-color: var(--accent); box-shadow: var(--shadow-sm); }
.service-card.featured::before {
  content: "Most popular";
  position: absolute; top: -.7rem; left: 50%; transform: translateX(-50%);
  background: var(--accent); color: #fff; font-size: .7rem;
  letter-spacing: .12em; text-transform: uppercase; font-weight: 600;
  padding: .25rem .8rem; border-radius: 999px;
}
.service-icon {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--surface);
  color: var(--accent-dark);
  display: grid; place-items: center;
  margin: 0 auto 1.25rem;
}
.service-card h3 { margin-bottom: .35rem; }
.service-desc { color: var(--ink-2); font-size: .98rem; margin: 0 0 1.25rem; min-height: 2.6em; }
.price {
  font-family: var(--font-display); font-weight: 600; font-size: 3rem;
  color: var(--ink); margin: 0;
  line-height: 1;
}
.price .dollar { font-size: 1.4rem; vertical-align: top; margin-right: .12em; color: var(--accent-dark); }
.price.small { font-size: 1.6rem; padding: .9rem 0; }

/* ---------- Callout ---------- */
.callout {
  margin: 2.5rem auto 0;
  max-width: 720px;
  display: flex; gap: 1rem; align-items: flex-start;
  padding: 1.4rem 1.6rem;
  background: #fff;
  border: 1px dashed var(--accent);
  border-radius: var(--radius);
}
.callout-icon { color: var(--accent-dark); flex-shrink: 0; padding-top: 2px; }
.callout-title { font-weight: 600; color: var(--ink); margin: 0 0 .25rem; font-size: 1.05rem; }
.callout-body { margin: 0; color: var(--ink-2); }

/* ---------- About ---------- */
.about-grid {
  display: grid; gap: 2.5rem;
  grid-template-columns: 1fr;
  align-items: center;
}
@media (min-width: 860px) {
  .about-grid { grid-template-columns: 5fr 7fr; gap: 4rem; }
}
.about-photo img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  width: 100%;
  height: 400px;            /* mobile */
  object-fit: cover;
  object-position: center 20%;  /* keep the figure's head/face visible */
  display: block;
}
@media (min-width: 860px) {
  .about-photo img { height: 800px; } /* desktop */
}
.about-bullets { list-style: none; padding: 0; margin: 1.5rem 0 0; }
.about-bullets li {
  padding: .6rem 0 .6rem 1.6rem;
  border-bottom: 1px solid var(--line);
  position: relative;
}
.about-bullets li::before {
  content: "✓"; position: absolute; left: 0; color: var(--accent-dark); font-weight: 700;
}
.about-bullets li:last-child { border-bottom: 0; }

/* ---------- Gallery ---------- */
.gallery {
  margin-top: 2.5rem;
  display: grid; gap: 12px;
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 720px) { .gallery { grid-template-columns: repeat(3, 1fr); gap: 16px; } }
@media (min-width: 1000px) { .gallery { grid-template-columns: repeat(4, 1fr); } }
.gallery-item {
  background: var(--line);
  border: 0; padding: 0; cursor: pointer;
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  aspect-ratio: 3 / 4;
  transition: transform var(--t), box-shadow var(--t);
}
.gallery-item:hover { transform: scale(1.02); box-shadow: var(--shadow); }
.gallery-item:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.gallery-item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 600ms cubic-bezier(.2,.8,.2,1);
}
.gallery-item:hover img { transform: scale(1.05); }

/* ---------- Service Area ---------- */
.area-grid {
  display: grid; gap: 2.5rem;
  grid-template-columns: 1fr;
  align-items: start;
}
@media (min-width: 860px) {
  .area-grid { grid-template-columns: 1fr 1fr; gap: 4rem; }
}
.area-list {
  list-style: none; padding: 0; margin: 1.5rem 0;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: .25rem 1rem;
}
.area-list li {
  padding: .35rem 0;
  position: relative; padding-left: 1.25rem;
  color: var(--ink-2);
}
.area-list li::before {
  content: "";
  position: absolute; left: 0; top: .85em;
  width: 6px; height: 6px; border-radius: 50%; background: var(--accent);
}
.map-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 4 / 3;
  background: var(--line);
}
.map-wrap iframe { width: 100%; height: 100%; border: 0; }

/* ---------- Booking ---------- */
.book-inner { max-width: 880px; margin: 0 auto; }
.calendly-placeholder {
  margin-top: 2.5rem;
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 1rem;
  box-shadow: var(--shadow-lg);
  position: relative;
  min-height: 700px;
}
.calendly-fallback {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center; padding: 2rem;
  color: var(--ink);
  pointer-events: none;
}
.calendly-fallback p { margin: .5rem 0; }
.calendly-fallback .btn { pointer-events: auto; margin: .75rem 0; }
/* Hide fallback once Calendly widget loads (it injects an iframe) */
.calendly-placeholder:has(iframe) .calendly-fallback { display: none; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: rgba(255,255,255,.85);
  padding: 4rem 0 1.5rem;
}
.site-footer h4 { color: #fff; }
.site-footer a { color: #fff; text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.2); }
.site-footer a:hover { border-color: var(--accent); color: var(--accent); }
.site-footer .muted { color: rgba(255,255,255,.6); }
.footer-grid {
  display: grid; gap: 2rem;
  grid-template-columns: 1fr;
}
@media (min-width: 720px) {
  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem; }
}
/* PNG color logo on navy footer needs a cream pad so the navy text reads. */
.footer-brand img {
  height: auto;
  width: 140px;
  margin-bottom: .9rem;
  background: var(--bg);
  padding: 12px 16px;
  border-radius: 14px;
  display: block;
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12);
  margin-top: 3rem; padding-top: 1.5rem;
  text-align: center;
}

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(15,20,32,.95);
  display: flex; align-items: center; justify-content: center;
  padding: 1rem;
}
.lightbox[hidden] { display: none; }
.lightbox-img {
  max-width: min(94vw, 1400px);
  max-height: 90vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 30px 80px rgba(0,0,0,.5);
}
.lightbox-close, .lightbox-prev, .lightbox-next {
  position: absolute;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.2);
  color: #fff;
  width: 48px; height: 48px;
  border-radius: 50%;
  display: grid; place-items: center;
  cursor: pointer;
  transition: background var(--t), transform var(--t);
}
.lightbox-close { top: 1.5rem; right: 1.5rem; }
.lightbox-prev  { left: 1.5rem; }
.lightbox-next  { right: 1.5rem; }
.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover {
  background: rgba(255,255,255,.18);
}
@media (max-width: 720px) {
  .lightbox-prev, .lightbox-next { bottom: 1.5rem; top: auto; }
  .lightbox-prev { left: 30%; transform: translateX(-50%); }
  .lightbox-next { right: 30%; transform: translateX(50%); }
}

/* ---------- Print ---------- */
@media print {
  .site-header, .nav-toggle, .lightbox, .calendly-placeholder { display: none; }
  body { color: #000; background: #fff; }
}
