/* ─── Graham Studio — Global Styles ────────────────────────────────────────────── */

/* Fonts */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;1,300;1,400&family=DM+Sans:wght@300;400;500&display=swap');

/* ─── Reset ───────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }

/* Respect the OS-level "reduce motion" setting — turns every transition/
   animation on the site into an effectively instant snap instead of removing
   the underlying interaction. Must stay ahead of the rules it overrides only
   in the sense that it's !important; position in the file doesn't matter. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
body {
  font-family: 'DM Sans', sans-serif;
  font-weight: 400; /* was 300 — a touch bolder for readability; DM Sans 400 is already loaded above */
  background: #F7F4EC;
  color: #4F5A3A;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ─── Tokens ─────────────────────────────────────────────────────────────── */
:root {
  --cream:    #F7F4EC;
  --sand:     #F2EDDF;   /* between cream and ivory: selected cards, completed steps */
  --ivory:    #ECE5D6;
  --border:   #DED3B3;
  --olive-lt: #A9B18A;
  --sage:     #7F8A6B;
  --olive:    #4F5A3A;
  --nav-h:    72px;
}

/* ─── Nav ────────────────────────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 100;
  height: var(--nav-h);
  background: rgba(247, 244, 236, 0.9);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 clamp(20px, 5vw, 48px);
}
.nav-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px; font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--olive);
}
.nav-links { display: flex; align-items: center; gap: clamp(14px, 3vw, 36px); }
.nav-links a {
  position: relative;
  font-size: 13px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--sage);
  transition: color 0.2s;
  padding-bottom: 4px;
}
.nav-links a:hover { color: var(--olive); }
.nav-links a.active { color: var(--olive); }
/* Underline grows in from the left on hover/active, rather than just a flat
   color swap — small, but it's the difference between "styled" and "designed". */
.nav-links a:not(.btn-book)::after {
  content: '';
  position: absolute; left: 0; bottom: 0;
  width: 100%; height: 1px; background: var(--olive);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.25s ease;
}
.nav-links a:not(.btn-book):hover::after,
.nav-links a:not(.btn-book).active::after { transform: scaleX(1); }

/* Wraps nav-links + the hamburger button together so .nav itself only ever
   has to space-between two things (logo, everything-else) — the toggle is
   invisible (display:none) above the mobile breakpoint, so this is a no-op
   on desktop. */
.nav-right { display: flex; align-items: center; }

/* Hidden until .nav-toggle{display:flex} kicks in below 900px. */
.nav-toggle {
  display: none;
  width: 40px; height: 40px;
  align-items: center; justify-content: center; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 8px;
}
.nav-toggle span {
  display: block; width: 22px; height: 2px; background: var(--olive);
  transition: transform 0.25s ease, opacity 0.2s ease;
}
/* Hamburger → X, driven off the same aria-expanded the JS already has to set
   for accessibility — no separate "open" class needed just for the icon. */
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* WRITTEN AS `.nav-links a.btn-book`, NOT `.btn-book`, ON PURPOSE.
   `.nav-links a` above sets `padding-bottom: 4px` to make room for the
   hover underline on the plain text links, and at specificity (0,1,1) it
   outranks a bare `.btn-book` (0,1,0) — so it was overriding the shorthand
   here and leaving 11px of padding above the text and 4px below it. The
   label sat 5px low in a 36px button. (0,2,1) puts the button back in
   charge of its own padding.

   THE RIGHT PADDING IS SHORT BY ONE LETTER-SPACE, also on purpose. CSS adds
   letter-spacing after the FINAL character as well as between characters,
   so "BOOK NOW" carries an invisible ~2px gap after the W. With equal
   padding either side, that gap sits inside the box and the text reads as
   left-of-centre. Trimming the same amount off the right padding cancels it
   without changing the button's width. */
.nav-links a.btn-book {
  background: var(--olive);
  padding: 11px calc(26px - 0.16em) 11px 26px;
  font-size: 12px; font-weight: 500;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--cream); cursor: pointer;
  border: none; transition: opacity 0.2s, transform 0.2s;
}

/* Kept for the mobile menu and anywhere else .btn-book appears outside
   .nav-links, where the specificity clash above does not apply. */
.btn-book {
  background: var(--olive);
  padding: 11px calc(26px - 0.16em) 11px 26px;
  font-size: 12px; font-weight: 500;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--cream); cursor: pointer;
  border: none; transition: opacity 0.2s, transform 0.2s;
}
.btn-book:hover { opacity: 0.85; transform: translateY(-1px); }
.btn-book:active { transform: translateY(0) scale(0.97); }

/* ─── Utilities ──────────────────────────────────────────────────────────── */
.label {
  font-size: 12px; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--sage);
}
.heading-serif {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  color: var(--olive);
}
.divider { height: 1px; background: var(--border); }

/* ─── Buttons ────────────────────────────────────────────────────────────── */
.btn-primary {
  /* justify-content + text-align are for the WRAPPED case. "Book a standard
     session" is long enough to break onto two lines in a narrow card on a
     phone, and without these the two lines sit hard against the left padding
     while every shorter button on the page looks centred. Nothing changes for
     a button whose label fits on one line. */
  display: inline-flex; align-items: center; justify-content: center; gap: 14px;
  text-align: center;
  background: var(--olive); padding: 17px 46px;
  font-size: 13px; font-weight: 500;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--cream); cursor: pointer;
  border: none; transition: opacity 0.2s, transform 0.2s;
}
.btn-primary:hover { opacity: 0.85; transform: translateY(-1px); }
.btn-primary:active:not(:disabled) { transform: translateY(0) scale(0.98); }
.btn-primary:disabled { opacity: 0.4; cursor: not-allowed; }

/* Secondary call to action: the same footprint as .btn-primary (17px + the
   1px border = 18px, so the two line up when they sit side by side) but
   outlined rather than filled. Used for the Mini session, where the
   prototype keeps the filled green button for the Standard session as the
   one emphasised choice — this still reads as a button, which a bare
   .btn-ghost text link did not. */
.btn-outline {
  display: inline-flex; align-items: center; justify-content: center; gap: 14px;
  text-align: center;
  background: none; border: 1px solid var(--olive); padding: 16px 45px;
  font-size: 13px; font-weight: 500;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--olive); cursor: pointer;
  transition: background 0.2s, color 0.2s, transform 0.2s;
}
.btn-outline:hover { background: var(--olive); color: var(--cream); transform: translateY(-1px); }
.btn-outline:active { transform: translateY(0) scale(0.98); }

.btn-ghost {
  display: inline-flex; align-items: center; gap: 10px;
  background: none; border: none; padding: 10px 0; margin: -10px 0;
  font-size: 13px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--sage);
  cursor: pointer;
}
.btn-ghost:hover { color: var(--olive); }
/* A small nudge on the arrow glyph in ghost links ("See the work →", "← Back")
   — a cheap cue that these go somewhere, rather than static text. */
.nudge-right, .nudge-left { display: inline-block; transition: transform 0.2s ease; }
.btn-ghost:hover .nudge-right { transform: translateX(4px); }
.btn-ghost:hover .nudge-left  { transform: translateX(-4px); }

/* The travel-buffer heads-up is the one filled notice in the prototype. */
#travel-buffer-notice {
  background: var(--sand); padding: 14px 18px;
  font-size: 13.5px; color: var(--olive);
}

/* Arrow SVGs */
.arrow-right::after {
  content: '';
  display: inline-block;
  width: 20px; height: 8px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 8'%3E%3Cline x1='0' y1='4' x2='17' y2='4' stroke='%23F7F4EC' stroke-width='1'/%3E%3Cpolyline points='13,1 17,4 13,7' stroke='%23F7F4EC' stroke-width='1' fill='none'/%3E%3C/svg%3E") center/contain no-repeat;
}

/* ─── Form fields ─────────────────────────────────────────────────────────── */
/* :not([hidden]) — an unconditional `display` here beats the browser's own
   [hidden]{display:none}, since author CSS always outranks the UA
   stylesheet regardless of specificity. Without this guard, a .field that
   JS hides via the hidden attribute (the gift recipient name on step 2)
   stays on screen. Same trap as .admin-login and .pp-sticky-bar below. */
.field:not([hidden]) { display: flex; flex-direction: column; }
.field-label {
  font-size: 12px; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--sage);
  margin-bottom: 12px;
}
.field input, .field textarea, .field select {
  font-family: 'DM Sans', sans-serif;
  font-size: 15px; font-weight: 300; color: var(--olive);
  background: #FDFBF6; border: 1px solid var(--border);
  padding: 14px 16px; outline: none;
  appearance: none; -webkit-appearance: none;
  width: 100%;
}
.field input::placeholder,
.field textarea::placeholder { color: var(--olive-lt); }
.field textarea { resize: vertical; }
.field input:focus, .field textarea:focus {
  border-color: var(--sage);
}
.field-checkbox { border: 1px solid var(--border); padding: 18px 22px; margin: 28px 0; }
.field-checkbox .field { margin-top: 16px; }
.field-hint { font-size: 12.5px; color: var(--olive-lt); margin-top: 8px; line-height: 1.6; }
.checkbox-label {
  display: flex; align-items: center; gap: 10px;
  font-size: 15px; font-weight: 300; color: var(--olive);
  cursor: pointer;
}
.checkbox-label input[type="checkbox"] {
  width: 16px; height: 16px; accent-color: var(--olive);
  cursor: pointer;
}

/* ─── Cards / selection ───────────────────────────────────────────────────── */
.card-select {
  border: 1px solid var(--border);
  padding: 20px 24px; cursor: pointer;
  transition: border-color 0.15s, transform 0.2s, box-shadow 0.2s;
}
.card-select:hover { border-color: var(--sage); transform: translateY(-2px); box-shadow: 0 10px 24px -18px rgba(79,90,58,0.4); }
.card-select.selected { border: 2px solid var(--olive); }

/* ─── Stripe Elements container ──────────────────────────────────────────── */
#stripe-card-element {
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}

/* ─── Contact CTA (About page) ───────────────────────────────────────────── */
.contact-cta { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.email-plain {
  /* Vertical padding for the same reason as .foot-social a: this is a button
     that copies the address, and an 18px-tall target beside a 55px button is
     a miss waiting to happen. Negative margin keeps the layout identical. */
  background: none; border: none; padding: 11px 0; margin: -11px 0;
  font-family: 'DM Sans', sans-serif; font-size: 14px; color: var(--sage);
  text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--border);
  cursor: pointer; transition: color 0.2s ease;
}
.email-plain:hover { color: var(--olive); }

/* ─── FAQ accordion ──────────────────────────────────────────────────────── */
.faq-list { border-top: 1px solid var(--border); max-width: 900px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-q {
  display: flex; justify-content: space-between; align-items: center;
  gap: 16px; width: 100%;
  background: none; border: none; padding: 20px 4px;
  cursor: pointer; text-align: left;
  font-family: 'DM Sans', sans-serif; font-size: 15.5px; color: var(--olive);
}
.faq-chev {
  font-size: 18px; color: var(--olive-lt); flex: none;
  transition: transform 0.25s ease;
}
.faq-item.open .faq-chev { transform: rotate(45deg); }
.faq-a {
  overflow: hidden;
  font-size: 14.5px; line-height: 1.65; color: var(--sage);
  max-height: 0; opacity: 0; padding: 0 40px 0 4px;
  transition: max-height 0.35s ease, opacity 0.3s ease, padding 0.35s ease;
}
.faq-item.open .faq-a { max-height: 300px; opacity: 1; padding: 0 40px 22px 4px; }

/* ─── Notice / info box ──────────────────────────────────────────────────── */
.notice {
  padding: 20px 24px;
  background: none;
  border: 1px solid var(--border);
  font-size: 14px; color: var(--sage); line-height: 1.7;
}

/* ─── Toast ───────────────────────────────────────────────────────────────── */
.toast {
  position: fixed; bottom: 32px; left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: var(--olive); color: var(--cream);
  padding: 14px 28px; font-size: 13px;
  opacity: 0; transition: all 0.3s ease;
  pointer-events: none; z-index: 9999;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ─── Lightbox (portfolio.html) ──────────────────────────────────────────── */
/* Shows a clicked portfolio photo close to its full resolution — object-fit:
   contain, so nothing is cropped, unlike the gallery thumbnails' box crop. */
.lightbox {
  position: fixed; inset: 0; z-index: 2000;
  background: rgba(38,42,26,0.94);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 18px; padding: 60px 40px;
  opacity: 0; pointer-events: none;
  transition: opacity 0.25s ease;
}
.lightbox.open { opacity: 1; pointer-events: auto; }
.lightbox-img {
  max-width: 90vw; max-height: 74vh;
  object-fit: contain;
  box-shadow: 0 24px 64px rgba(0,0,0,0.45);
  cursor: zoom-in;
  transition: transform 0.35s ease;
  touch-action: pan-y;
}
/* Click-to-zoom toggle — see the click handler in portfolio.js. */
.lightbox-img.zoomed { transform: scale(1.7); cursor: zoom-out; }

.lightbox-meta { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.lightbox-caption {
  font-size: 13px; letter-spacing: 0.08em; color: rgba(247,244,236,0.7);
  text-align: center;
}
.lightbox-counter {
  font-size: 11px; letter-spacing: 0.1em; color: rgba(247,244,236,0.45);
  text-transform: uppercase;
}
.lightbox-cta {
  margin-top: 4px; border-color: rgba(247,244,236,0.4); color: var(--cream);
}
.lightbox-cta:hover { border-color: var(--cream); color: var(--cream); }

.lightbox-close {
  position: absolute; top: 22px; right: 30px;
  background: none; border: none; color: var(--cream);
  font-size: 34px; font-weight: 300; line-height: 1;
  padding: 10px; cursor: pointer; transition: opacity 0.2s;
}
.lightbox-close:hover { opacity: 0.7; }

.lightbox-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: none; border: none; color: var(--cream);
  font-size: 28px; line-height: 1; padding: 14px;
  cursor: pointer; opacity: 0.75; transition: opacity 0.2s;
}
.lightbox-arrow:hover { opacity: 1; }
.lightbox-arrow:disabled { opacity: 0.2; cursor: default; }
.lightbox-prev { left: 8px; }
.lightbox-next { right: 8px; }

@media (max-width: 600px) {
  .lightbox { padding: 40px 20px; }
  .lightbox-close { top: 12px; right: 16px; }
  .lightbox-arrow { font-size: 22px; padding: 10px; }
  .lightbox-prev { left: 0; }
  .lightbox-next { right: 0; }
}

/* ─── Featured Work filmstrip (index.html) ──────────────────────────────── */
/* Horizontal-scroll strip of admin-flagged "featured" portfolio photos —
   see public/js/home-filmstrip.js and HANDOFF.md §3. Falls back to the
   first 12 visible photos (round-robin across categories) when nothing is
   flagged, so the section never has to hide itself just because Miros
   hasn't starred anything yet. */
.filmstrip-wrap {
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  background: var(--ivory); padding: 28px 0;
}
.filmstrip-label { margin: 0 0 18px; padding: 0 clamp(20px, 5vw, 48px); }
.filmstrip {
  display: flex; gap: 14px; overflow-x: auto;
  padding: 0 clamp(20px, 5vw, 48px) 12px;
  scroll-snap-type: x proximity;
  scrollbar-width: thin; scrollbar-color: var(--border) transparent;
}
.filmstrip::-webkit-scrollbar { height: 6px; }
.filmstrip::-webkit-scrollbar-thumb { background: var(--border); }
.filmstrip-item {
  flex: none; scroll-snap-align: start; cursor: pointer;
}
.filmstrip-item img {
  display: block; height: 280px; width: auto; object-fit: cover;
  transition: opacity 0.25s ease, filter 0.5s ease;
}
.filmstrip-item:hover img { opacity: 0.85; }
.filmstrip-item img.blur-up { opacity: 0; filter: blur(12px); }
.filmstrip-item img.blur-up.is-loaded { opacity: 1; filter: blur(0); }

/* ── Marquee mode ────────────────────────────────────────────────────────────
   Added by home-filmstrip.js once the photos have loaded and their real
   widths are known, which is also why none of this is the default: if the
   script never runs, or the reader has asked for reduced motion, the strip
   stays the plain hand-scrollable row above and nothing looks broken.

   HOW THE LOOP IS SEAMLESS
     The track holds the same run of photos two or more times over. It slides
     left by the width of exactly one run and then snaps back to the start —
     and because what is on screen at that moment is pixel-identical to what
     was there at the start, the snap is invisible. --shift (one run, plus the
     gap that follows it) and --marquee-duration are both measured and set in
     JS, so the speed stays the same whether there are six photos or sixty. */
.filmstrip.is-marquee {
  overflow: hidden;
  scroll-snap-type: none;
  /* Edge to edge on purpose: an inset marquee has a visible start and stop,
     which is the opposite of the "this goes on forever" impression. */
  padding-left: 0;
  padding-right: 0;
  padding-bottom: 0;
}
.filmstrip-track {
  display: flex;
  gap: 14px;
  width: max-content;
  /* flex: none on both the track and each group because .filmstrip is itself a
     flex container: without it the track is squeezed to the width of the strip
     and every measurement taken from it is the strip's width, not the photos'.
     That silently gave a group 1184px wide when its photos added up to 2842. */
  flex: none;
}
.filmstrip.is-marquee .filmstrip-track {
  animation: filmstrip-scroll var(--marquee-duration, 60s) linear infinite;
  will-change: transform;
}
.filmstrip-group { display: flex; gap: 14px; flex: none; }

/* Stop when someone is actually looking at a photo — hovering to see it, or
   tabbing onto its link. Chasing a moving target with the mouse is the usual
   way these things become annoying. */
.filmstrip.is-marquee:hover .filmstrip-track,
.filmstrip.is-marquee:focus-within .filmstrip-track { animation-play-state: paused; }

@keyframes filmstrip-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(calc(-1 * var(--shift, 0px))); }
}

@media (max-width: 900px) {
  .filmstrip-item img { height: 200px; }
}

/* Session tiles on Home wrap in a plain link now (→ /portfolio.html
   pre-filtered by category) — undo the default link color/underline so
   they read exactly like the un-linked tiles did before. */
a.tile-link { display: block; }
a.tile-link:hover .tile-name { color: var(--sage); }

/* ─── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .nav { padding: 0 24px; }
  .nav-right { gap: 14px; }
  .nav-links { gap: 20px; }
  .nav-links a:not(.btn-book) { display: none; }
  .nav-toggle { display: flex; }

  /* Portfolio/Services/About were completely unreachable on mobile before
     this — the bar only ever showed the Book Now button. Opened by
     nav-toggle's click handler in nav.js, which toggles this class and
     flips aria-expanded (driving the hamburger→X animation above). */
  .nav-links.open {
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--cream);
    border: 1px solid var(--border); border-top: none;
    box-shadow: 0 16px 32px rgba(38,42,26,0.12);
  }
  .nav-links.open a:not(.btn-book) {
    display: block;
    padding: 16px 24px;
    border-top: 1px solid var(--border);
  }
  .nav-links.open .btn-book {
    display: block;
    margin: 16px 20px;
    text-align: center;
  }
}

/* ─── Booking flow ──────────────────────────────────────────────────────────
   Layout mirrors the Claude Design prototype (Graham Studio v2.dc.html's
   "BOOK" screen): the whole flow sits in one centered 1240px column, the
   progress row is centered circles rather than a full-bleed bar, and the
   summary sidebar is a light bordered card that only appears from step 2
   on desktop ("280px 1fr"). */
.booking-wrap {
  max-width: 1240px; margin: 0 auto;
  padding: clamp(36px, 6vw, 56px) clamp(20px, 5vw, 48px) 88px;
}

/* :not([hidden]) — initReschedule() in booking.js hides the whole progress
   row (a reschedule only ever uses step 1), and a bare `display:flex`
   would override the hidden attribute. */
.progress:not([hidden]) {
  display: flex; justify-content: center; flex-wrap: wrap;
  gap: clamp(12px, 2.5vw, 38px);
  margin-bottom: clamp(28px, 5vw, 52px);
}
.progress-step { display: flex; align-items: center; gap: 10px; white-space: nowrap; }
.progress-num {
  width: 26px; height: 26px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0; font-size: 12px; transition: all 0.25s ease;
  border: 1px solid var(--border); color: var(--olive-lt);
}
.progress-label {
  font-size: 11.5px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--olive-lt);
}
.progress-step.active .progress-num { background: var(--olive); border-color: var(--olive); color: var(--cream); }
.progress-step.active .progress-label { color: var(--olive); }
.progress-step.complete .progress-num { background: var(--sand); border-color: var(--olive); color: var(--olive); }

.booking-grid { display: grid; grid-template-columns: 1fr; gap: 56px; align-items: start; }
.booking-grid.has-sidebar { grid-template-columns: 280px 1fr; }
.booking-main { min-width: 0; }
.booking-step { transition: opacity 0.22s ease, transform 0.22s ease; }
/* public/js/booking.js's goToStep() adds/removes these to crossfade between
   steps instead of the instant snap a plain [hidden] toggle would give. */
.booking-step.step-leave, .booking-step.step-enter { opacity: 0; transform: translateY(10px); }
.step-eyebrow { font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--olive-lt); }
.step-title { font-family: 'Cormorant Garamond', serif; font-weight: 300; font-size: clamp(27px, 4vw, 36px);
              color: var(--olive); margin: 6px 0 8px; }
.step-sub { font-size: 14.5px; color: var(--sage); margin-bottom: 36px; }
.step-nav { display: flex; align-items: center; justify-content: space-between;
            margin-top: 36px; gap: 16px; }

/* Sidebar summary — a light bordered card that sticks below the nav as the
   step content scrolls, per the prototype (not the full-height olive panel
   this used to be). */
.booking-sidebar {
  border: 1px solid var(--border); padding: 32px;
  position: sticky; top: calc(var(--nav-h) + 20px);
}
.sb-eyebrow { font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase;
              color: var(--olive-lt); margin-bottom: 6px; }
.sb-title { font-family: 'Cormorant Garamond', serif; font-size: 24px; font-weight: 300;
            color: var(--olive); margin-bottom: 22px; }
.sb-block { margin-bottom: 16px; }
.sb-label { font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
            color: var(--olive-lt); margin-bottom: 3px; }
.sb-value { font-size: 14px; color: var(--olive); }
.sb-note { font-size: 13px; color: var(--sage); line-height: 1.6; }
.sb-price { font-family: 'Cormorant Garamond', serif; font-size: 26px; color: var(--olive); }
.sb-fine { font-size: 12.5px; color: var(--olive-lt); line-height: 1.65; margin-top: 6px; }

/* Calendar
   Square bordered cells matching the Claude Design prototype (Graham
   Studio v2.dc.html's calCells styling) — a plain 1px-bordered square per
   day, not a small circle floating inside a taller box, and no
   strikethrough on unavailable dates (just a muted, borderless square). */
.cal-layout { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: start; }
.cal-panel { border: 1px solid var(--border); padding: 26px; min-width: 0; }
.cal-head { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; flex-wrap: wrap; }
.cal-month { font-family: 'Cormorant Garamond', serif; font-size: 22px; font-weight: 400; color: var(--olive); }
/* margin-left:auto parks the note at the far right of the calendar box,
   with the month and its arrows grouped together on the left. */
.cal-synced { font-size: 12px; font-style: italic; color: var(--olive-lt); margin-left: auto; }
.cal-nav { display: flex; gap: 8px; }
.cal-nav button {
  width: 38px; height: 38px; border: 1px solid var(--border);
  background: none; cursor: pointer; color: var(--sage);
  font-size: 14px; line-height: 1; font-family: inherit;
}
.cal-nav button:hover { border-color: var(--sage); color: var(--olive); }
.cal-dow { display: grid; grid-template-columns: repeat(7, 1fr); text-align: center;
           gap: 4px; margin-bottom: 8px; }
.cal-dow span { font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--olive-lt); }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal-cell {
  aspect-ratio: 1/1; display: flex; align-items: center; justify-content: center;
  font-size: 13.5px; font-weight: 300; color: var(--olive);
  border: 1px solid transparent; transition: all 0.15s;
}
.cal-cell.empty { visibility: hidden; }
.cal-cell.available { border-color: var(--border); cursor: pointer; }
.cal-cell.available:hover { border-color: var(--sage); background: var(--ivory); }
.cal-cell.busy { background: var(--ivory); color: var(--olive-lt); cursor: not-allowed; }
.cal-cell.selected { background: var(--olive); border-color: var(--olive); color: var(--cream); font-weight: 500; }

/* Time slots */
.slots-panel { border: 1px solid var(--border); padding: 26px; min-height: 200px; min-width: 0; }
.slot-date { font-family: 'Cormorant Garamond', serif; font-size: clamp(20px, 4vw, 24px); color: var(--olive); margin-bottom: 4px; }
/* The real sunrise/sunset line for the selected date — see getSunSummary()
   in server/lib/suntimes.js and renderTimeSlots() in booking.js. */
.sun-summary { font-size: 12px; color: var(--sage); margin-bottom: 20px; }
.slot-group-label { font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase;
                    color: var(--olive-lt); border-bottom: 1px solid var(--ivory);
                    padding-bottom: 4px; margin: 16px 0 4px; }
.slot-group-label:first-child { margin-top: 0; }
.slot-item {
  border: 1px solid var(--border); padding: 13px 18px;
  display: flex; align-items: center; justify-content: space-between;
  cursor: pointer; transition: all 0.15s; margin-top: 8px;
}
.slot-item:not(.booked):hover { border-color: var(--sage); transform: translateX(3px); }
.slot-time { font-size: 14px; color: var(--olive); }
.slot-sub  { font-size: 13px; color: var(--olive-lt); }
.slot-item.selected { background: var(--olive); border-color: var(--olive); }
.slot-item.selected .slot-time { color: var(--cream); font-weight: 400; }
.slot-item.selected .slot-sub  { color: rgba(247,244,236,0.6); }
.slot-item.booked { background: var(--ivory); border-color: var(--ivory); cursor: not-allowed; }
.slot-item.booked .slot-time { color: var(--olive-lt); text-decoration: line-through; }
.slot-item.booked .slot-sub  { color: var(--olive-lt); }
.no-date-msg { font-size: 14px; color: var(--olive-lt); font-style: italic;
               text-align: center; margin: 40px 0; }

/* Session / package / location cards */
.card-grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 18px; margin-bottom: 36px; }
.card-grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 16px; margin-bottom: 28px; }
.session-card { border: 1px solid var(--border); padding: 22px; cursor: pointer;
                position: relative; transition: border-color 0.15s, transform 0.2s, box-shadow 0.2s; }
.session-card:hover { border-color: var(--sage); transform: translateY(-2px); box-shadow: 0 10px 24px -18px rgba(79,90,58,0.4); }
.session-card.selected { border-color: var(--olive); background: var(--sand); }
.session-name { font-family: 'Cormorant Garamond', serif; font-size: 22px;
                font-weight: 400; color: var(--olive); margin-bottom: 6px; }
.session-desc { font-size: 13.5px; color: var(--sage); line-height: 1.7; }
.package-row {
  border: 1px solid var(--border); padding: 18px 22px; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; margin-bottom: 10px; position: relative;
  transition: border-color 0.15s, transform 0.2s, box-shadow 0.2s;
}
.package-row:hover { border-color: var(--sage); transform: translateY(-2px); box-shadow: 0 10px 24px -18px rgba(79,90,58,0.4); }
.package-row.selected { border-color: var(--olive); background: var(--sand); }
.package-row + .package-row { margin-top: 14px; }
.package-name { font-size: 15px; font-weight: 500; color: var(--olive); margin-bottom: 3px; }
.package-desc { font-size: 13.5px; color: var(--sage); }
.package-price { font-family: 'Cormorant Garamond', serif; font-size: 26px; font-weight: 300; color: var(--olive); }
.chip {
  position: absolute; top: -11px; left: 18px; background: var(--olive);
  /* 11.5px, not 11: below about 11.5 this reads as a smudge on a phone
     rather than as words, and "Most Popular" is doing real work here. */
  padding: 4px 12px; font-size: 11.5px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--cream);
}
.loc-name { font-size: 14px; font-weight: 500; color: var(--olive); margin-bottom: 4px; }
.loc-sub  { font-size: 13.5px; color: var(--sage); }

/* Review table */
.review-table { border-top: 1px solid var(--border); margin-bottom: 36px; }
/* :not([hidden]) — the gift row is shown only for a gift booking (see
   renderReview() in booking.js), and a bare `display:flex` here would beat
   the browser's [hidden]{display:none}. */
.review-row:not([hidden]) { display: grid; grid-template-columns: 180px 1fr auto;
              align-items: baseline; padding: 16px 0;
              border-bottom: 1px solid var(--border); gap: 20px; }
.review-row:last-child { border-bottom: none; }
.review-row dt { font-size: 12px; letter-spacing: 0.16em;
                 text-transform: uppercase; color: var(--olive-lt); }
.review-row dd { font-size: 14.5px; color: var(--olive); margin: 0; }
.review-edit { font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase;
               color: var(--sage); border: none; cursor: pointer; background: none;
               font-family: inherit; padding: 0; }
.review-edit:hover { color: var(--olive); }

@media (max-width: 1000px) {
  .card-grid-3, .card-grid-2 { grid-template-columns: 1fr; }
  .review-row { flex-wrap: wrap; }
  .review-row dt { flex: 0 0 100%; }
}

/* 780px is the prototype's own breakpoint: below it the calendar stacks
   above the slot list, and the running-summary sidebar is dropped entirely
   rather than pushing the step you're filling in off-screen below it (see
   HANDOFF.md §9). The review step still repeats everything the sidebar
   showed, so nothing is actually lost. */
@media (max-width: 780px) {
  .cal-layout { grid-template-columns: 1fr; gap: 24px; }
  .booking-grid.has-sidebar { grid-template-columns: 1fr; }
  .booking-sidebar { display: none; }
}

/* ─── Booking progress on narrow screens ─────────────────────────────────── */
/* Measured, not guessed: the five labelled steps sit in one 26px row down to
   940px, and at 900px they wrap into three ragged, centre-justified rows 75px
   tall — over 100px of the top of a phone screen, spent saying something the
   "Step 1 of 5" line directly underneath already said.

   So below that width the labels come off and the numbered circles stretch
   into a single row joined by a hairline. That keeps the one thing the labels
   were really carrying — five steps, you are on the first, there are four to
   go — and the NAME of the current step moves into .progress-now underneath,
   written by goToStep() in booking.js. It replaces the per-step "Step N of 5"
   eyebrow rather than stacking above it, so nothing is said twice. */
@media (max-width: 940px) {
  .progress:not([hidden]) {
    flex-wrap: nowrap; justify-content: space-between;
    gap: 0; margin-bottom: 14px;
  }
  /* Every step except the last grows, and the hairline inside it fills
     whatever that growth left over. That is what spaces the circles evenly at
     any width between 320px and 940px without a single magic number. */
  .progress-step { flex: 0 0 auto; gap: 0; }
  .progress-step:not(:last-child) { flex: 1 1 auto; }
  .progress-step:not(:last-child)::after {
    content: ''; flex: 1 1 auto; height: 1px; background: var(--border); margin: 0 8px;
  }
  .progress-step.complete:not(:last-child)::after { background: var(--sage); }
  .progress-label { display: none; }
  .progress-num { width: 28px; height: 28px; }

  .step-eyebrow { display: none; }
  /* :not([hidden]) again — initReschedule() sets the hidden attribute on this
     as well as on .progress, and a bare `display:block` would ignore it. */
  .progress-now:not([hidden]) { display: block; }
}
/* Hidden above 940px: up there the labels are in the row itself and each step
   section carries its own "Step N of 5" eyebrow. */
.progress-now { display: none; }
.progress-now:not([hidden]) {
  font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--olive-lt); margin-bottom: 6px;
}
.progress-now b { font-weight: 400; color: var(--olive); }

/* ─── Social icon rows ────────────────────────────────────────────────────── */
/* Used in three places: the "Follow Along" band on Home, the contact block on
   About, and (as text, below) every footer. The URLs and the glyph paths are
   generated from server/lib/socials.js — run `npm run socials` to print the
   markup rather than retyping it, and the startup preflight complains if a
   page drifts out of step with that file.

   :not([hidden]) on the flex rule. An unconditional `display:flex` beats the
   browser's own [hidden]{display:none}, and this project has been caught by
   that five times now. Nothing hides these rows today; the guard is so that
   nothing has to remember about it on the day something does. */
.social-icons:not([hidden]) {
  display: flex; flex-wrap: wrap; gap: 14px; align-items: center;
}
.social-icons a {
  width: 42px; height: 42px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--border); color: var(--olive-lt);
  transition: color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.social-icons a:hover,
.social-icons a:focus-visible { color: var(--olive); border-color: var(--olive); transform: translateY(-2px); }
/* 24×24 viewBox from socials.js; fill follows the link colour so the hover
   above moves the glyph and the ring together. */
.social-icons svg { width: 17px; height: 17px; fill: currentColor; display: block; }

/* Home — the "Follow Along" band. Deliberately the LAST band before the
   footer: these links send people off the site, and an exit placed above the
   pricing cards is an exit taken instead of a booking. */
.social-band .band-head { margin-bottom: 28px; }

/* About — under the email button in the contact block, divided from it by a
   rule so it reads as a second, quieter way to get in touch. */
.contact-social { margin-top: 34px; padding-top: 26px; border-top: 1px solid var(--border); }
.contact-social .label { margin-bottom: 14px; }

/* ─── Scroll reveal ───────────────────────────────────────────────────────── */
/* public/js/reveal.js adds .in-view via IntersectionObserver the first time an
   element scrolls into the viewport; it also adds .in-view to everything
   immediately if IntersectionObserver isn't available, so content is never
   stuck invisible for a browser that can't run the observer. */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.in-view { opacity: 1; transform: translateY(0); }
/* Staggered entrance for the direct children of a grid/group, so a row of
   cards doesn't all snap in at once. Cap the stagger at a handful of items —
   past that the last ones would lag noticeably behind the first. */
.reveal-group > .reveal:nth-child(2) { transition-delay: 0.08s; }
.reveal-group > .reveal:nth-child(3) { transition-delay: 0.16s; }
.reveal-group > .reveal:nth-child(4) { transition-delay: 0.24s; }
.reveal-group > .reveal:nth-child(5) { transition-delay: 0.32s; }

/* ─── Marketing pages ─────────────────────────────────────────────────────── */
.hero {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: clamp(28px, 5vw, 64px); align-items: center;
  max-width: 1240px; margin: 0 auto;
  padding: clamp(48px, 8vw, 88px) clamp(20px, 5vw, 48px);
}
.hero-copy { display: flex; flex-direction: column; justify-content: center; }
.hero-art  { aspect-ratio: 4/5; background: var(--ivory); position: relative; overflow: hidden; }
.hero h1 { font-family: 'Cormorant Garamond', serif; font-weight: 300; font-size: clamp(34px, 5.5vw, 52px);
           line-height: 1.12; color: var(--olive); margin: 14px 0 22px; }
.hero h1 em { font-style: italic; }
.hero p.lede { font-size: 16px; color: var(--sage); line-height: 1.8; max-width: 46ch; margin-bottom: 34px; }
.hero-actions { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }

.ph { background: var(--ivory); position: relative; overflow: hidden; }
.ph::after {
  content: attr(data-label);
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-size: 13.5px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--olive-lt);
  border: 1px dashed var(--border);
}
/* Once a real photo is synced in from Nextcloud (public/js/gallery.js adds
   this class), the image covers the placeholder box and its label is hidden. */
.ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block;
          transition: transform 0.7s ease; }
/* A slow, subtle zoom on hover — common in editorial photography sites, and
   restrained enough not to fight the rest of the page's stillness. */
.ph.has-photo:hover img { transform: scale(1.045); }
.ph.has-photo::after { content: none; }

/* Any band that is an in-page anchor target (currently #contact on About,
   linked from every footer) needs to clear the sticky nav when jumped to. */
.band[id] { scroll-margin-top: calc(var(--nav-h) + 16px); }

.band { max-width: 1240px; margin: 0 auto;
        padding: clamp(48px, 8vw, 88px) clamp(20px, 5vw, 48px); }
/* A tinted band keeps its background full-bleed but insets its content to the
   same 1240px column, via padding rather than a max-width on the children —
   a `> *` rule would override .band-head's own 60ch cap. */
.band.tint {
  background: var(--ivory); max-width: none;
  padding-left:  max(clamp(20px, 5vw, 48px), calc((100% - 1240px) / 2));
  padding-right: max(clamp(20px, 5vw, 48px), calc((100% - 1240px) / 2));
}
.band-head { max-width: 60ch; margin-bottom: 52px; }
.band h2 { font-family: 'Cormorant Garamond', serif; font-weight: 300; font-size: clamp(28px, 4.2vw, 38px);
           color: var(--olive); margin: 8px 0 16px; }
.band p.sub { font-size: 15px; color: var(--sage); line-height: 1.9; }

.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 28px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 40px; align-items: center; }
.tile-cap { font-size: 14px; color: var(--sage); margin-top: 6px; line-height: 1.7; }
.tile-name { font-family: 'Cormorant Garamond', serif; font-size: 24px;
             color: var(--olive); margin-top: 16px; }
/* The small "Locations" caption under each Services tile. */
.tile-meta-label { font-size: 11.5px; letter-spacing: 0.18em; text-transform: uppercase;
                   color: var(--olive-lt); margin: 12px 0 4px; }
.tile-meta { font-size: 13.5px; color: var(--sage); line-height: 1.7; }

.price-card { border: 1px solid var(--border); padding: 44px; background: var(--cream); position: relative;
              display: flex; flex-direction: column;
              transition: transform 0.25s ease, box-shadow 0.25s ease; }
.price-card:hover { transform: translateY(-4px); box-shadow: 0 16px 32px -20px rgba(79,90,58,0.4); }
.price-card.feature { border-color: var(--olive); background: var(--sand); }
.price-blurb { font-size: 14px; color: var(--sage); line-height: 1.75; margin-bottom: 28px; }
/* margin-top:auto pins the CTA to the bottom of the card, so two cards with
   different copy lengths still line their buttons up with each other. */
.price-card .btn-primary, .price-card .btn-outline, .price-card .btn-ghost { margin-top: auto; align-self: flex-start; }
.price-card .chip { top: -11px; left: 44px; }
.price-card h3 { font-family: 'Cormorant Garamond', serif; font-weight: 400; font-size: 26px; color: var(--olive); }
.price-amt { font-family: 'Cormorant Garamond', serif; font-size: clamp(32px, 5vw, 44px); font-weight: 300;
             color: var(--olive); margin: 14px 0 6px; }
.price-note { font-size: 13.5px; color: var(--olive-lt); margin-bottom: 28px; }
.price-list { list-style: none; margin-bottom: 32px; }
.price-list li { font-size: 14px; color: var(--sage); padding: 9px 0 9px 22px; position: relative; line-height: 1.6; }
.price-list li::before { content: '·'; position: absolute; left: 6px; color: var(--olive-lt); font-size: 18px; }

/* ─── Prep guide (prepare.html) ───────────────────────────────────────────────
   The page linked from the booking confirmation email. Reuses .band, .grid-2,
   .grid-3 and .notice; these three rules are only for the longer-form prose
   that page carries and nothing else on the site has. */
.prep-h {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 400;
  font-size: 21px;
  color: var(--olive);
  margin-bottom: 10px;
}
.prep-p { font-size: 14.5px; color: var(--sage); line-height: 1.85; margin-bottom: 16px; }
.prep-p:last-child { margin-bottom: 0; }
.prep-list { list-style: none; margin: 0; }
.prep-list li {
  font-size: 14.5px; color: var(--sage); line-height: 1.75;
  padding: 7px 0 7px 20px; position: relative;
}
.prep-list li::before {
  content: '·'; position: absolute; left: 4px; top: 5px;
  color: var(--olive-lt); font-size: 18px;
}
/* .notice is a bordered box built for one short paragraph; on this page it
   holds a small heading too, so it needs a little more room to breathe. */
.band .notice .prep-h { margin-top: 0; }

/* ─── Testimonials (homepage) ──────────────────────────────────────────────────
   Rendered only when a real quote exists: the section stays hidden and each
   card removes itself otherwise (see public/js/gallery.js). Cream cards on
   the tinted band, matching the price cards' border weight so the page keeps
   one vocabulary of bordered boxes instead of gaining a second.

   FLEX, NOT .grid-3. There may be one testimonial or three, and a three-column
   grid holding a single card strands it in the left third of the band looking
   like a mistake. Flex with wrap and centring lays out whatever survives:
   three across, two centred, or one on its own. */
.tm-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 28px; }

/* :not([hidden]) because an unconditional `display` here would beat the
   browser's own [hidden] { display: none } — the bug this codebase has now hit
   five times. Nothing sets hidden on these cards today; the guard is here so
   that adding it later works. */
.tm-card:not([hidden]) {
  flex: 1 1 280px;
  max-width: 400px;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  background: var(--cream);
  padding: 40px 32px 30px;
}

.tm-quote {
  position: relative;
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: 19px;
  line-height: 1.75;
  color: var(--olive);
  margin-bottom: 24px;
}
/* The opening quotation mark as ornament: oversized, pale, and positioned out
   of the text flow so it can never shift the first line of the quote. */
.tm-quote::before {
  content: '\201C';
  position: absolute;
  top: -30px;
  left: -8px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 62px;
  line-height: 1;
  color: var(--border);
  pointer-events: none;
}

/* margin-top:auto pins the attribution to the bottom, so cards holding quotes
   of different lengths still line their names up with each other. */
.tm-name {
  margin-top: auto;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--olive-lt);
}
/* The big "01 / 02 / 03" numerals in the How It Works steps are olive-lt in
   the prototype, so they read as ornament rather than competing with the
   step headings. .price-amt is reused for them, hence the modifier. */
.price-amt.step-num { color: var(--olive-lt); }

.foot { border-top: 1px solid var(--border);
        max-width: 1360px; margin: 0 auto;
        padding: 36px clamp(20px, 5vw, 48px); display: flex;
        align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.foot-links { display: flex; gap: 28px; flex-wrap: wrap; }
/* Same tap-target padding as .foot-social a below, and the same negative
   margin so the row looks exactly as it did. Five 21px-tall words in a row at
   the very bottom of a phone is where a thumb is least accurate. */
.foot-links a {
  font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--sage);
  padding: 10px 0; margin: -10px 0;
}
.foot-links a:hover { color: var(--olive); }
.foot small { font-size: 12.5px; color: var(--olive-lt); }
.foot-social {
  display: flex; gap: 14px; margin-top: 10px;
  font-size: 11.5px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--olive-lt); flex-wrap: wrap; align-items: center;
}
/* The padding is a TAP TARGET, not spacing. As bare 11.5px text these links
   were 18px tall with 14px between them — four small words in a row at the
   very bottom of a phone screen, which is where a thumb is least accurate.
   The negative vertical margin pulls the row back to the height it looked
   before, so nothing moves; only the tappable area grows. */
.foot-social a {
  color: var(--olive-lt);
  padding: 11px 0; margin: -11px 0;
}
.foot-social a:hover { color: var(--olive); }

/* The hero, .band and .foot are all fluid (clamp padding + auto-fit grids),
   so they need no width-specific overrides — only the fixed-column grids do. */
@media (max-width: 900px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr; gap: 24px; }
}

@media (max-width: 480px) {
  .nav-logo { font-size: 19px; }
  .step-title { font-size: clamp(26px, 8vw, 32px); }
  .price-card { padding: 28px 24px; }
}

/* ─── Admin panel (/admin.html) ──────────────────────────────────────────────
   Internal tool, not a marketing page — same palette/type as the rest of the
   site so it doesn't feel like a different product, but denser and without
   the nav/footer chrome nobody needs here. */
.admin-body { background: var(--ivory); min-height: 100vh; }

/* :not([hidden]) rather than a plain display:flex — an unconditional
   `display` on an element also toggled via the [hidden] attribute (see
   public/js/admin.js's showLogin()/showApp()) beats the browser's own
   [hidden]{display:none} default, since author CSS always outranks the UA
   stylesheet regardless of selector specificity. Without this guard the
   login card stays visibly stacked on top of the app after a successful
   login. */
.admin-login:not([hidden]) {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  padding: 24px;
}
.admin-login-card {
  width: 100%; max-width: 360px;
  background: var(--cream); border: 1px solid var(--border);
  padding: 40px 32px;
}

.admin-bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 32px; background: var(--cream); border-bottom: 1px solid var(--border);
}
.admin-bar-title {
  font-family: 'Cormorant Garamond', serif; font-size: 20px;
  letter-spacing: 0.06em; color: var(--olive);
}

.admin-tabs {
  display: flex; gap: 4px; padding: 16px 32px 0; background: var(--cream);
  border-bottom: 1px solid var(--border);
}
.admin-tab {
  background: none; border: none; cursor: pointer;
  padding: 12px 20px; font-family: inherit; font-size: 13px;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--sage);
  border-bottom: 2px solid transparent; transition: color 0.15s, border-color 0.15s;
}
.admin-tab:hover { color: var(--olive); }
.admin-tab.active { color: var(--olive); border-bottom-color: var(--olive); }

.admin-panel { max-width: 860px; margin: 0 auto; padding: 32px; }

/* ── Bookings ── */
.admin-filters { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; }
.admin-select, .admin-search {
  font-family: inherit; font-size: 14px; color: var(--olive);
  background: var(--cream); border: 1px solid var(--border);
  padding: 10px 14px; outline: none;
}
.admin-select:focus, .admin-search:focus { border-color: var(--sage); }
.admin-search { flex: 1; min-width: 200px; }

.admin-empty { color: var(--sage); font-size: 14px; padding: 24px 0; }

.admin-list { display: flex; flex-direction: column; gap: 10px; }
.admin-card { background: var(--cream); border: 1px solid var(--border); }
.admin-card-summary {
  width: 100%; display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  background: none; border: none; cursor: pointer; text-align: left;
  padding: 16px 20px; font-family: inherit;
}
.admin-card-date { font-size: 13px; color: var(--sage); min-width: 168px; }
.admin-card-name { font-size: 15px; color: var(--olive); font-weight: 500; flex: 1; }
.admin-status {
  font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 5px 10px; white-space: nowrap; background: var(--ivory); color: var(--sage);
}
.admin-status-confirmed        { background: var(--olive); color: var(--cream); }
.admin-status-pending          { background: var(--border); color: var(--olive); }
.admin-status-cancelled,
.admin-status-expired          { background: var(--ivory); color: var(--olive-lt); }
.admin-status-needs_attention  { background: #C77B4B; color: var(--cream); }

.admin-card-details {
  padding: 4px 20px 20px; border-top: 1px solid var(--border);
  font-size: 14px; line-height: 1.9;
}
.admin-card-details p { padding-top: 12px; }
.admin-card-details strong { color: var(--olive); font-weight: 500; }

.admin-card-actions { display: flex; gap: 20px; margin-top: 16px; flex-wrap: wrap; }
.admin-action-btn { font-size: 12px; }
.admin-action-danger { color: #B14A3A; }
.admin-action-danger:hover { color: #8f3a2d; }

/* ── Site & Photos ── */
.admin-section {
  background: var(--cream); border: 1px solid var(--border);
  padding: 28px 24px; margin-bottom: 24px;
}
.admin-section h3 {
  font-family: 'Cormorant Garamond', serif; font-weight: 500;
  font-size: 20px; color: var(--olive); margin-bottom: 8px;
}
.admin-hint { font-size: 13px; color: var(--sage); line-height: 1.7; margin-bottom: 20px; }
.admin-section textarea { line-height: 1.6; }

.focal-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 20px; margin-bottom: 8px;
}
.focal-item { display: flex; flex-direction: column; gap: 8px; }
.focal-label { font-size: 12px; color: var(--sage); line-height: 1.5; }
.focal-box {
  position: relative; aspect-ratio: 4/5; background: var(--ivory);
  overflow: hidden; cursor: crosshair;
}
.focal-box img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.focal-empty {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 12px; font-size: 12px; color: var(--olive-lt); cursor: default;
}
/* The crosshair marking the current focal point — a ring so it reads against
   both light and dark parts of any photo underneath it. */
.focal-marker {
  position: absolute; width: 22px; height: 22px;
  border: 2px solid var(--cream); border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(38,42,26,0.5), 0 2px 6px rgba(38,42,26,0.4);
  transform: translate(-50%, -50%); pointer-events: none;
}

/* ── Portfolio Photos tab ── */
.admin-panel-photos { padding-bottom: 96px; } /* clears the sticky bar so the last row isn't hidden behind it */

.pp-rail { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 24px; }
.pp-rail button {
  border: 1px solid var(--border); background: var(--cream); cursor: pointer;
  padding: 9px 18px; font-family: inherit; font-size: 12px;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--sage);
  transition: all 0.15s;
}
.pp-rail button:hover { border-color: var(--sage); color: var(--olive); }
.pp-rail button.active { background: var(--olive); border-color: var(--olive); color: var(--cream); }
.pp-rail .count { opacity: 0.7; font-size: 11.5px; margin-left: 2px; }

.pp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 18px; }

.pp-card {
  position: relative; background: var(--cream); border: 1px solid var(--border);
  cursor: grab; user-select: none;
}
.pp-card.dragging { opacity: 0.4; }
.pp-card.drag-over { border-color: var(--sage); box-shadow: inset 0 0 0 2px var(--sage); }

.pp-thumb { position: relative; aspect-ratio: 4/5; background: var(--ivory); overflow: hidden; }
.pp-thumb img { width: 100%; height: 100%; object-fit: cover; }

.pp-badge {
  position: absolute; top: 8px; left: 8px; z-index: 2;
  background: rgba(38,42,26,0.75); color: var(--cream);
  font-size: 11px; letter-spacing: 0.04em; padding: 3px 8px;
}

.pp-hidden-overlay {
  position: absolute; inset: 0; z-index: 1;
  background: rgba(38,42,26,0.55); color: var(--cream);
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
  pointer-events: none;
}

.pp-toolbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 10px; gap: 6px; border-top: 1px solid var(--border);
}
.pp-toolbar-group { display: flex; align-items: center; gap: 2px; }
.pp-icon-btn {
  background: none; border: none; cursor: pointer; padding: 6px;
  font-size: 14px; line-height: 1; color: var(--sage); transition: color 0.15s;
}
.pp-icon-btn:hover { color: var(--olive); }
.pp-icon-btn:disabled { color: var(--border); cursor: default; }
.pp-icon-btn.pp-star.active { color: #C77B4B; }
.pp-icon-btn.pp-hide.active { color: var(--olive); }

.pp-caption-input {
  width: 100%; border: none; border-top: 1px solid var(--border);
  padding: 8px 10px; font-family: inherit; font-size: 12px; color: var(--olive);
  background: var(--cream); outline: none;
}
.pp-caption-input:focus { background: var(--ivory); }

/* Where the photo was taken, for the gallery's location filter. Sits directly
   under the caption and shares its borderless-row look so the card stays a
   card rather than turning into a form. */
.pp-location-select {
  width: 100%; border: none; border-top: 1px solid var(--border);
  padding: 8px 10px; font-family: inherit; font-size: 12px; color: var(--olive);
  background: var(--cream); outline: none; cursor: pointer;
  appearance: none; -webkit-appearance: none;
}
.pp-location-select:focus { background: var(--ivory); }
/* Untagged is the normal state for most of the gallery, so it is styled as
   quiet placeholder text rather than as something wrong. */
.pp-location-select.is-untagged { color: var(--olive-lt); font-style: italic; }

/* :not([hidden]) — same reason as .admin-login above: an unconditional
   `display` here would beat the browser's [hidden]{display:none} default,
   since author CSS always outranks the UA stylesheet. Without this guard
   the bar stays visible (and floating over the Bookings/Fixed Photo Spots
   tabs) even when its own tab isn't the active one. */
.pp-sticky-bar:not([hidden]) {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  background: var(--olive); color: var(--cream);
  padding: 16px 32px; box-shadow: 0 -4px 16px rgba(0,0,0,0.12);
}
.pp-summary { font-size: 13px; letter-spacing: 0.02em; }
.pp-sticky-bar .btn-primary { background: var(--cream); color: var(--olive); border-color: var(--cream); }
.pp-sticky-bar .btn-primary:hover { background: var(--ivory); }

@media (max-width: 640px) {
  .admin-bar, .admin-tabs, .admin-panel { padding-left: 20px; padding-right: 20px; }
  .admin-card-summary { padding: 14px 16px; }
  .admin-card-details { padding: 4px 16px 16px; }
  .pp-sticky-bar { padding: 14px 20px; flex-wrap: wrap; }
}
