/* ============================================================
   Lakeside Tent Co — site styles
   Palette + typography inherited from visualiser.html
   ============================================================ */

:root {
  /* Forest theme — slightly lifted from the splash; creamy-gold accent. */
  --bg:          #15322a;    /* forest green, lifted (was #0c2118) */
  --paper:       #1c3d33;    /* slightly lifted forest (card / section variant) */
  --paper-2:     #244a3e;    /* one notch lifted again (hover / nested) */
  --ink:         #f7efd9;    /* warm cream — primary text */
  --ink-soft:    #ebdfbf;    /* dimmer cream — secondary text */
  --muted:       #b3a380;    /* muted sand — captions, hints */
  --line:        #2f5544;    /* green hairline */
  --line-soft:   #244432;    /* fainter green divider */
  --accent:      #f7efd9;    /* brand cream — same as the wordmark */
  --accent-dk:   #e8dcbe;    /* slightly toned cream — hover */
  --accent-tn:   rgba(247, 239, 217, .14);
  --warn-ink:    #e8a05a;

  --maxw:       1180px;
  --radius:     8px;
  --shadow-sm:  0 2px 14px rgba(0, 0, 0, .25);
  --shadow:     0 18px 40px rgba(0, 0, 0, .42);
  --ease:       cubic-bezier(.22, .61, .36, 1);

  --font-serif: "Playfair Display", Georgia, serif;
  --font-body:  "Inter", -apple-system, BlinkMacSystemFont, "Helvetica Neue", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }

/* design.php — full-viewport iframe wrapper, no page scroll */
body.design-page { height: 100vh; overflow: hidden; }
html:has(body.design-page) { height: 100%; overflow: hidden; }

/* ---------- type ----------
   Playfair Display for display + headings (wedding-magazine serif),
   Inter for body and UI text. */
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 700;
  color: var(--ink);
  line-height: 1.12;
  letter-spacing: -0.005em;
}
h1 { font-size: clamp(2.8rem, 6vw, 4.8rem); font-weight: 700; }
h2 { font-size: clamp(2.4rem, 4.6vw, 3.6rem); font-weight: 700; }
h3 { font-size: 1.75rem; font-weight: 600; }
p  { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }
em.tag {
  display: inline-block;
  font-family: var(--font-body);
  font-style: normal;
  font-weight: 600;
  font-size: .82rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: .14em;
  margin-bottom: 14px;
}

/* ---------- layout ---------- */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }
.section { padding: clamp(72px, 9vw, 120px) 0; }
.section--paper { background: var(--paper); }
.center { text-align: center; }
.shead { max-width: 760px; }
.shead.center { margin: 0 auto; }
.shead p { margin-top: 14px; color: var(--muted); font-size: 1.08rem; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-body); font-weight: 500;
  font-size: 1.05rem;
  padding: 16px 30px;
  border: 1px solid transparent; border-radius: var(--radius);
  cursor: pointer; transition: transform .2s var(--ease), background .2s, color .2s, box-shadow .2s, border-color .2s;
}
.btn svg { width: 18px; height: 18px; }
.btn--primary { background: var(--accent); color: var(--bg); font-weight: 600; }
.btn--primary:hover { background: var(--accent-dk); color: var(--bg); transform: translateY(-2px); box-shadow: 0 10px 22px rgba(247, 239, 217, .32); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); transform: translateY(-2px); }
.btn--lg { padding: 18px 38px; font-size: 1.1rem; }
.btn--block { width: 100%; }

/* ---------- header / nav ---------- */
.header {
  position: sticky; top: 0; z-index: 30;
  background: rgba(21, 50, 42, .85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-soft);
  transition: box-shadow .25s;
}
.header.scrolled { box-shadow: var(--shadow-sm); }
.header .container { display: flex; align-items: center; justify-content: space-between; min-height: 76px; }
.brand {
  font-family: var(--font-serif);
  font-size: 1.6rem; letter-spacing: .02em; color: var(--ink);
  font-weight: 500;
}
.brand .amp { color: var(--accent); font-style: italic; padding: 0 4px; }
.nav { display: flex; align-items: center; gap: 32px; }
.nav a {
  font-family: var(--font-body); font-size: .98rem; color: var(--muted);
  padding: 6px 0; position: relative; transition: color .2s;
}
.nav a:hover { color: var(--ink); }
.nav a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; width: 0; height: 2px;
  background: var(--accent); transition: width .25s var(--ease);
}
.nav a:hover::after { width: 100%; }
.header__cta { display: flex; align-items: center; gap: 14px; }
.burger {
  display: none; background: none; border: 0; cursor: pointer;
  width: 44px; height: 44px; flex-direction: column; gap: 6px; align-items: center; justify-content: center;
}
.burger span { width: 26px; height: 2px; background: var(--ink); border-radius: 1px; transition: .25s; }
.burger.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- hero ---------- */
.hero {
  position: relative;
  overflow: hidden;          /* clip the panning background image */
  min-height: clamp(580px, 78vh, 900px);  /* taller hero — pushes the next section's green bar down so more photo shows */
  padding: clamp(80px, 12vw, 156px) 0 clamp(20px, 3vw, 28px);
  display: flex;             /* sit the text block low in the tall hero */
  align-items: flex-end;
  background:
    radial-gradient(ellipse at 50% 110%, rgba(247, 239, 217, .14) 0%, transparent 60%),
    radial-gradient(ellipse at 15% 0%, rgba(247, 239, 217, .07) 0%, transparent 55%),
    linear-gradient(180deg, var(--bg) 0%, #0e2820 100%);
}
/* Hero photo background — slow horizontal pan, alternating direction.
   One image (hero.jpg) at all sizes; mobile uses background-size:cover so the
   full photo height shows (sky to the top bar). */
.hero__bg {
  position: absolute; inset: 0;
  background-image: url('/assets/images/hero.jpg?v=34');   /* fallback for browsers without image-set */
  background-image: image-set(url('/assets/images/hero.webp?v=34') type('image/webp'), url('/assets/images/hero.jpg?v=34') type('image/jpeg'));
  background-size: 115% auto;        /* zoomed out a touch (more of the photo); still room to pan */
  background-position: 0% 56%;       /* more tables in view, fewer ceiling braces */
  background-repeat: no-repeat;
  z-index: 0;
  animation: hero-pan 36s ease-in-out infinite alternate;
}
.hero__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(14,40,32,0.40) 0%, rgba(14,40,32,0.78) 100%);
  z-index: 1;
  pointer-events: none;
}
.hero > .container { position: relative; z-index: 2; width: 100%; }
@keyframes hero-pan {
  0%   { background-position:   0% 56%; }
  100% { background-position: 100% 56%; }
}
@media (max-width: 768px) {
  /* Shorter header on phones so the hero + both CTA buttons fit on one screen. */
  .header .container { min-height: 56px; }
  /* Gentle horizontal drift on phones (subtle range so the wide crop doesn't sweep too far). */
  @keyframes hero-pan-mobile { 0% { background-position: 28% 72%; } 100% { background-position: 58% 72%; } }
  /* On phones the photo is zoomed a touch taller than the hero so there's room
     to drop the view down onto the tables (less blue sky). Static (no pan) so
     the crop holds. Knobs: raise the height % to crop more sky; the Y in
     background-position moves the view up(0%)/down(100%); the X nudges
     left/right. */
  .hero__bg {
    background-image: url('/assets/images/hero-mobile.jpg?v=34');   /* smaller file for phones (LCP) */
    background-image: image-set(url('/assets/images/hero-mobile.webp?v=34') type('image/webp'), url('/assets/images/hero-mobile.jpg?v=34') type('image/jpeg'));
    background-size: auto 135%; background-position: 40% 72%; animation: hero-pan-mobile 40s ease-in-out infinite alternate;
  }
  /* Lighter overlay on phones so the (naturally shaded) tent + tables aren't
     too dark — the desktop gradient bottoms out at 0.78. */
  .hero__overlay { background: linear-gradient(180deg, rgba(14,40,32,0.35) 0%, rgba(14,40,32,0.50) 100%); }
  /* Anchor the text up top and push smaller, centred buttons + scroll cue to
     the bottom, so the hero photo stays visible behind them on phones. */
  .hero { align-items: stretch; min-height: calc(100svh - 56px); padding-top: 24px; padding-bottom: 40px; }
  .hero > .container { display: flex; flex-direction: column; }
  .hero__inner { display: flex; flex-direction: column; flex: 1; }
  .hero__actions {
    margin-top: auto;
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }
  .hero__actions .btn--lg { padding: 11px 22px; font-size: .92rem; }
  .hero__scrollcue { margin-top: 26px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero__bg { animation: none; background-position: 50% 56%; }
}
.hero__inner { max-width: 880px; }
.hero h1 { margin-bottom: 24px; color: #fdfaf4; }                        /* light on photo */
.hero h1 .em { font-style: italic; color: var(--accent); }
.hero p.lead { font-size: 1.22rem; color: rgba(253, 250, 244, .92); max-width: 620px; margin-bottom: 36px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__scrollcue {
  margin-top: 60px; display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-body); font-style: normal; font-weight: 500;
  text-transform: uppercase; letter-spacing: .12em;
  font-size: .78rem; color: var(--muted);
}
.hero__scrollcue svg { width: 14px; height: 14px; animation: bounceY 2s infinite ease-in-out; }
@keyframes bounceY {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(5px); }
}

/* ---------- how it works ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(20px, 3vw, 40px);
  counter-reset: step;
  margin-top: 48px;
}
/* (legacy 4-card .step styling kept as a fallback for reduced-motion) */
.step {
  position: relative;
  padding: 32px 26px 30px;
  background: var(--paper);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  text-align: center;
}
.step__illust {
  display: block;
  width: 100%; max-width: 180px;
  height: 110px;
  margin: 0 auto 22px;
  color: var(--accent);
}
.step__illust svg { width: 100%; height: 100%; display: block; }
.step h3 { font-size: 1.4rem; margin-bottom: 10px; letter-spacing: -0.005em; }
.step p { color: var(--ink-soft); font-size: 1.02rem; line-height: 1.55; }

/* ---------- animated how-it-works (the "moving video") ----------
   Single cycling stage: each .scene fades in for ~3.4s then out, total
   cycle 16s. Sub-elements have their own keyframes that fire while the
   scene is visible. */
.how-anim {
  position: relative;
  max-width: 880px;
  margin: 48px auto 0;
  aspect-ratio: 16 / 9;
  background: var(--paper);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.scene {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center;
  padding: clamp(28px, 5vw, 56px);
  opacity: 0;
  animation: sceneCycle 16s infinite ease-in-out;
  color: var(--accent);   /* drives the SVG currentColor */
}
.scene-1 { animation-delay: 0s; }
.scene-2 { animation-delay: 4s; }
.scene-3 { animation-delay: 8s; }
.scene-4 { animation-delay: 12s; }

@keyframes sceneCycle {
  0%   { opacity: 0; }
  2%   { opacity: 1; }   /* fade in ≈ 0.3s */
  23%  { opacity: 1; }   /* hold to ≈ 3.7s */
  25%  { opacity: 0; }   /* fade out ≈ 4s */
  100% { opacity: 0; }
}

.scene h3 {
  font-family: var(--font-serif);
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  color: var(--ink);
  font-weight: 700;
  margin-bottom: 8px;
}
.scene__copy {
  color: var(--muted);
  font-size: 1rem;
  max-width: 380px;
  margin-top: 14px;
}
.scene__art {
  width: 100%;
  max-width: 380px;
  height: clamp(160px, 22vw, 240px);
  margin: 12px 0 8px;
}
.scene__art svg { width: 100%; height: 100%; display: block; }

/* ----- per-scene sub-animations (only run while the scene is visible) ----- */

/* Scene 1 — guests: persons stagger-in, then a count caption fades in */
.scene-1 .person {
  opacity: 0;
  animation: pop 16s infinite ease-out;
}
.scene-1 .p1 { animation-delay: 0.5s; }
.scene-1 .p2 { animation-delay: 0.8s; }
.scene-1 .p3 { animation-delay: 1.1s; }
.scene-1 .p4 { animation-delay: 1.4s; }
.scene-1 .p5 { animation-delay: 1.7s; }
.scene-1 .caption {
  opacity: 0;
  animation: fadeOnly 16s infinite ease-out;
  animation-delay: 2.2s;
}

/* Scene 2 — tables: the tent outline draws, then tables pop in */
.scene-2 .tent-outline {
  stroke-dasharray: 480;
  stroke-dashoffset: 480;
  animation: drawIn 16s infinite ease-out;
  animation-delay: 4.3s;
}
.scene-2 .table-r {
  opacity: 0; transform: scale(.6);
  transform-box: fill-box; transform-origin: center;
  animation: tablePop 16s infinite ease-out;
}
.scene-2 .t1 { animation-delay: 5.0s; }
.scene-2 .t2 { animation-delay: 5.25s; }
.scene-2 .t3 { animation-delay: 5.5s; }
.scene-2 .t4 { animation-delay: 5.75s; }
.scene-2 .t5 { animation-delay: 6.0s; }

/* Scene 3 — lights: string draws in, then bulbs light up in sequence */
.scene-3 .swag {
  stroke-dasharray: 280;
  stroke-dashoffset: 280;
  animation: drawIn 16s infinite ease-out;
  animation-delay: 8.3s;
}
.scene-3 .bulb {
  opacity: 0;
  animation: bulb 16s infinite ease-out;
}
.scene-3 .bulb:nth-child(2)  { animation-delay: 9.2s; }
.scene-3 .bulb:nth-child(3)  { animation-delay: 9.4s; }
.scene-3 .bulb:nth-child(4)  { animation-delay: 9.6s; }
.scene-3 .bulb:nth-child(5)  { animation-delay: 9.8s; }
.scene-3 .bulb:nth-child(6)  { animation-delay: 10.0s; }

/* Scene 4 — envelope: settles in, then the check badge bounces */
.scene-4 .envelope {
  opacity: 0; transform: translateY(20px);
  animation: settle 16s infinite ease-out;
  animation-delay: 12.4s;
}
.scene-4 .check-badge {
  opacity: 0; transform: scale(.4);
  transform-box: fill-box; transform-origin: center;
  animation: bouncePop 16s infinite cubic-bezier(.34, 1.56, .64, 1);
  animation-delay: 13.0s;
}

@keyframes pop {
  0%, 2%   { opacity: 0; transform: translateY(8px); }
  6%, 23%  { opacity: 1; transform: translateY(0); }
  25%, 100%{ opacity: 0; }
}
@keyframes fadeOnly {
  0%, 12%  { opacity: 0; }
  17%, 23% { opacity: 1; }
  25%, 100%{ opacity: 0; }
}
@keyframes drawIn {
  0%, 26%  { stroke-dashoffset: 480; }
  35%, 48% { stroke-dashoffset: 0; }
  50%, 100%{ stroke-dashoffset: 0; }
}
@keyframes tablePop {
  0%, 30%   { opacity: 0; transform: scale(.6); }
  34%, 48%  { opacity: 1; transform: scale(1); }
  50%, 100% { opacity: 0; }
}
@keyframes bulb {
  0%, 56%  { opacity: 0; }
  60%, 73% { opacity: 1; }
  75%, 100%{ opacity: 0; }
}
@keyframes settle {
  0%, 75%  { opacity: 0; transform: translateY(20px); }
  80%, 98% { opacity: 1; transform: translateY(0); }
  100%     { opacity: 0; }
}
@keyframes bouncePop {
  0%, 80%   { opacity: 0; transform: scale(.4); }
  85%, 98%  { opacity: 1; transform: scale(1); }
  100%      { opacity: 0; }
}

/* progress dots */
.how-dots {
  display: flex; justify-content: center; gap: 12px;
  margin-top: 24px;
}
.how-dots .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--line);
  animation: dotPulse 16s infinite ease-in-out;
}
.how-dots .dot-1 { animation-delay: 0s; }
.how-dots .dot-2 { animation-delay: 4s; }
.how-dots .dot-3 { animation-delay: 8s; }
.how-dots .dot-4 { animation-delay: 12s; }

/* Live demo video — matches the video's actual aspect ratio so nothing gets cropped. */
.how-video {
  margin: 40px auto 0;
  max-width: 920px;
  aspect-ratio: 1280 / 698;       /* matches the encoded video exactly */
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(60,50,40,0.16), 0 6px 14px rgba(60,50,40,0.08);
  background: #0e2820;            /* deep green fallback while the bytes arrive */
}
.how-video {
  position: relative;            /* so the sound button can absolute-position inside */
}
.how-video video {
  width: 100%; height: 100%;
  display: block; object-fit: contain;   /* never crop, even if a future encode has a different aspect */
}

/* Tap-to-unmute button — bottom-right of the video, YouTube/Instagram pattern.
   Starts in muted state (icon shows speaker-with-slash); click toggles. */
.how-video__sound {
  position: absolute;
  right: 14px; bottom: 14px;
  width: 40px; height: 40px;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(14, 40, 32, 0.72);     /* matches the page palette */
  color: #fff;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: 0 2px 10px rgba(0,0,0,0.25);
  transition: background 140ms ease, transform 140ms ease;
}
.how-video__sound:hover  { background: rgba(14, 40, 32, 0.92); transform: scale(1.05); }
.how-video__sound svg    { width: 18px; height: 18px; }
.how-video__play {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 72px; height: 72px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(21, 50, 42, 0.82); color: #fff; border: 0; cursor: pointer;
  box-shadow: 0 4px 18px rgba(0,0,0,0.3);
  transition: background 140ms ease, transform 140ms ease;
}
.how-video__play:hover { background: rgba(21, 50, 42, 0.95); transform: translate(-50%, -50%) scale(1.06); }
.how-video__play svg { width: 34px; height: 34px; margin-left: 3px; }
.how-video__play[hidden] { display: none; }
.how-video__label {
  position: absolute; left: 50%; top: calc(50% + 52px); transform: translateX(-50%);
  color: #fff; font-family: var(--font-body); font-size: .9rem; font-weight: 600;
  letter-spacing: .02em; text-shadow: 0 1px 6px rgba(0,0,0,.55);
  pointer-events: none; white-space: nowrap;
}
.how-video.is-playing .how-video__play,
.how-video.is-playing .how-video__label { display: none; }
.how-video__sound .ic-unmuted { display: none; }
.how-video__sound.is-on .ic-muted   { display: none; }
.how-video__sound.is-on .ic-unmuted { display: block; }
@media (prefers-reduced-motion: reduce) {
  .how-video video { /* let the browser show the first frame; respects user motion preferences */ }
}
@keyframes dotPulse {
  0%   { background: var(--line); transform: scale(1); }
  2%   { background: var(--accent); transform: scale(1.3); }
  23%  { background: var(--accent); transform: scale(1.3); }
  25%  { background: var(--line); transform: scale(1); }
  100% { background: var(--line); transform: scale(1); }
}

/* reduced-motion: hide the animation, show the fallback */
@media (prefers-reduced-motion: reduce) {
  .how-anim, .how-dots { display: none; }
  .steps-fallback { display: grid; }
}
.steps-fallback { display: none; }  /* hidden by default; shown only via media query */

/* connector arrow between steps on desktop */
.step + .step::before {
  content: "";
  position: absolute;
  left: -28px; top: 50%;
  width: 22px; height: 1px;
  background: var(--line);
}
.step + .step::after {
  content: "";
  position: absolute;
  left: -16px; top: calc(50% - 4px);
  width: 8px; height: 8px;
  border-top: 1px solid var(--line);
  border-right: 1px solid var(--line);
  transform: rotate(45deg);
}

/* ---------- cta band (creamy-gold pop against the deep forest) ---------- */
.cta-band {
  background: var(--accent);
  color: var(--bg);
  text-align: center;
  padding: clamp(72px, 9vw, 110px) 0;
}
.cta-band h2 { color: var(--bg); margin-bottom: 14px; }
.cta-band p { color: rgba(21, 50, 42, .82); font-size: 1.15rem; margin-bottom: 30px; }
.cta-band .btn--primary { background: var(--bg); color: var(--accent); }
.cta-band .btn--primary:hover { background: #0e2820; color: var(--accent); }
.cta-band em.tag { color: rgba(21, 50, 42, .75) !important; }

/* ---------- modal ---------- */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(0, 0, 0, .68);
  display: none; align-items: center; justify-content: center;
  padding: 20px;
  opacity: 0; transition: opacity .25s var(--ease);
}
.modal-backdrop.open { display: flex; opacity: 1; }
.modal {
  background: var(--paper);
  border-radius: var(--radius);
  width: 100%; max-width: 480px;
  padding: 40px 36px 36px;
  box-shadow: var(--shadow);
  transform: translateY(20px); opacity: 0;
  transition: transform .3s var(--ease), opacity .3s var(--ease);
}
.modal-backdrop.open .modal { transform: none; opacity: 1; }
.modal h3 { font-family: var(--font-serif); font-size: 1.8rem; margin-bottom: 8px; }
.modal p.subtle { color: var(--muted); font-size: .98rem; margin-bottom: 24px; }
.modal__close {
  position: absolute; top: 14px; right: 14px;
  background: none; border: 0; cursor: pointer;
  color: var(--muted); padding: 8px;
}
.modal__close:hover { color: var(--ink); }

/* ---------- forms ---------- */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.field label {
  font-family: var(--font-serif); font-style: italic;
  font-size: .95rem; color: var(--muted);
}
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px;
  background: var(--paper-2);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 1rem;
  transition: border-color .2s, box-shadow .2s;
}
.field input::placeholder, .field textarea::placeholder { color: var(--muted); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(247, 239, 217, .22);
}
.field textarea { resize: vertical; min-height: 100px; line-height: 1.5; }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field-grid .field.full { grid-column: 1 / -1; }
.form-error, .form-success {
  display: none;
  border-radius: var(--radius);
  padding: 14px 18px; margin-bottom: 18px; font-size: .98rem;
}
.form-error.show, .form-success.show { display: block; }
.form-error { background: #ffffff; border: 1px solid #aedbe6; color: #0e7490; font-weight: 600; }
.form-success { background: var(--accent-tn); border: 1px solid #c5d6bf; color: var(--accent-dk); }

/* legal / policy pages */
.legal h2 { font-family: var(--font-serif); color: var(--accent); font-size: 1.3rem; margin: 32px 0 10px; }
.legal p, .legal ul { margin: 0 0 14px; color: var(--ink-soft); }
.legal ul { padding-left: 22px; }
.legal li { margin-bottom: 6px; }
.legal a { color: var(--accent); text-decoration: underline; }
.honeypot { position: absolute; left: -9999px; visibility: hidden; }

/* ---------- design page (iframe wrapper) ---------- */
.design-wrap {
  position: relative;
  height: 100vh;
  background: var(--bg);
}
.design-wrap iframe {
  width: 100%; height: 100%;
  border: 0; display: block;
}
/* Floating quote CTA on the design page — mirrors the visualizer's .btn-quote look. */
.design-quote-btn {
  position: fixed;
  right: 56px; bottom: 80px;        /* sits in the negative space between the summary bar and the right edge */
  z-index: 50;
  background: #2f5743;                /* visualizer --accent */
  color: #fff;
  border: 0;
  padding: 10px 22px;
  border-radius: 9px;                 /* visualizer --radius */
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.3px;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 3px 10px rgba(60,50,40,0.10);
  transition: background 140ms ease, box-shadow 140ms ease, transform 140ms ease;
}
.design-quote-btn:hover { background: #244536; transform: translateY(-1px); box-shadow: 0 5px 16px rgba(60,50,40,0.18); }  /* visualizer --accent-dark */
.design-quote-btn:active { transform: translateY(0); }

/* "View Pricing" floating button on /design — top-right corner, lighter weight than Request Quote. */
.design-pricing-btn {
  position: fixed;
  right: 24px; top: 24px;
  z-index: 50;
  background: rgba(253, 250, 244, 0.96);
  color: #1a1611;
  border: 1px solid #d9d0c0;
  padding: 9px 18px;
  border-radius: 9px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.3px;
  cursor: pointer;
  box-shadow: 0 3px 10px rgba(60,50,40,0.08);
  transition: background 140ms ease, transform 140ms ease, box-shadow 140ms ease;
}
.design-pricing-btn:hover { background: #fff; transform: translateY(-1px); box-shadow: 0 5px 14px rgba(60,50,40,0.14); }

/* Pricing modal — wider than the lead modal because of the table. */
.pricing-modal-backdrop .modal--wide {
  max-width: 720px;
  width: min(92vw, 720px);
  max-height: 84vh;
  overflow-y: auto;
}
.pricing-modal-backdrop table.pricing-table {
  width: 100%;
  border-collapse: collapse;
  margin: 6px 0 0;
}
.pricing-modal-backdrop table.pricing-table td {
  padding: 11px 8px;
  border-bottom: 1px solid #ece4d4;
  vertical-align: top;
}
.pricing-modal-backdrop table.pricing-table tr:last-child td { border-bottom: 0; }
.pricing-modal-backdrop table.pricing-table td:last-child {
  text-align: right;
  white-space: nowrap;
  font-weight: 500;
  color: var(--ink);
}

/* ---------- quote page ---------- */
.quote-grid {
  display: grid; grid-template-columns: 1.05fr .95fr;
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
}
.quote-summary {
  background: var(--paper);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 32px 30px;
}
.quote-summary h2 {
  font-size: 1.6rem; margin-bottom: 20px; padding-bottom: 16px;
  border-bottom: 1px dashed var(--line);
}
.summary-row {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 9px 0; border-bottom: 1px solid var(--line-soft);
  font-size: 1rem;
}
.summary-row:last-of-type { border-bottom: 0; }
.summary-row dt { color: var(--muted); font-family: var(--font-serif); font-style: italic; }
.summary-row dd { color: var(--ink); font-weight: 500; }

.price-table { margin-top: 28px; border-top: 2px solid var(--ink); }
.price-row {
  display: flex; justify-content: space-between; padding: 12px 0;
  border-bottom: 1px solid var(--line-soft); font-size: 1rem;
}
.price-row.total { padding-top: 18px; font-size: 1.25rem; border-bottom: 0; border-top: 2px solid var(--ink); margin-top: 8px; }
.price-row.total .label { font-family: var(--font-serif); font-style: italic; color: var(--accent-dk); }
.price-row.total .amount { font-weight: 500; }

.quote-form {
  background: var(--paper);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 32px 30px;
}
.quote-form h2 {
  font-size: 1.6rem; margin-bottom: 8px;
}
.quote-form .form-intro {
  color: var(--muted); font-size: .98rem; margin-bottom: 22px;
}

/* ---------- pricing page ---------- */
.pricing-intro { text-align: center; max-width: 640px; margin: 0 auto 48px; }
.pricing-intro .badge {
  display: inline-block;
  background: var(--accent-tn);
  color: var(--accent-dk);
  padding: 6px 16px; border-radius: 50px;
  font-family: var(--font-serif); font-style: italic; font-size: .95rem;
  margin-bottom: 18px;
}
.price-list {
  max-width: 720px; margin: 0 auto;
  background: var(--paper);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  overflow: hidden;
}
.price-list h3 {
  font-family: var(--font-serif);
  background: var(--accent-tn);
  color: var(--accent-dk);
  padding: 14px 24px;
  margin: 0;
  font-size: 1.15rem;
  font-style: italic;
}
.price-list table { width: 100%; border-collapse: collapse; }
.price-list td {
  padding: 14px 24px;
  border-bottom: 1px solid var(--line-soft);
  font-size: 1rem;
}
.price-list tr:last-child td { border-bottom: 0; }
.price-list td:last-child { text-align: right; color: var(--accent-dk); font-weight: 500; white-space: nowrap; }

/* ---------- gallery placeholder ---------- */
.gallery-placeholder {
  text-align: center; max-width: 560px; margin: 80px auto;
  padding: 60px 28px;
  background: var(--paper);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
}
.gallery-placeholder em.tag { margin-bottom: 20px; }
.gallery-placeholder h2 { margin-bottom: 14px; }
.gallery-placeholder p { color: var(--muted); }

/* ---------- gallery grid + lightbox ---------- */
.gallery-group { margin-bottom: 56px; }
/* Masonry via CSS columns: photos keep their natural aspect (portrait + landscape
   both show in full — no cropping). break-inside keeps each tile whole. */
.gallery-grid {
  column-count: 3;
  column-gap: 14px;
}
.gallery-item {
  display: block; width: 100%; padding: 0; border: 0; cursor: pointer;
  border-radius: 10px; overflow: hidden; background: var(--paper);
  margin: 0 0 14px;
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
}
.gallery-item img {
  width: 100%; height: auto; display: block;
  transition: transform .45s var(--ease);
}
.gallery-item:hover img { transform: scale(1.04); }
@media (max-width: 900px) { .gallery-grid { column-count: 2; } }
@media (max-width: 540px) { .gallery-grid { column-count: 2; column-gap: 10px; }
  .gallery-item { margin-bottom: 10px; } }
.lightbox {
  position: fixed; inset: 0; z-index: 100; display: none;
  background: rgba(14, 40, 32, .93);
  flex-direction: column; padding: 18px;
}
.lightbox.open { display: flex; }
.lightbox__stage {
  flex: 1 1 auto; position: relative; min-height: 0;
  display: flex; align-items: center; justify-content: center;
}
.lightbox__img {
  max-width: 96vw; max-height: 100%; border-radius: 6px;
  box-shadow: 0 12px 44px rgba(0, 0, 0, .5);
}
.lightbox__strip {
  flex: 0 0 auto; display: flex; gap: 8px;
  overflow-x: auto; overflow-y: hidden;
  padding: 12px 4px 4px; scrollbar-width: thin;
}
.lightbox__thumb {
  flex: 0 0 auto; height: 62px; width: auto; max-width: 110px;
  object-fit: cover; border-radius: 4px; cursor: pointer;
  opacity: .5; transition: opacity .2s var(--ease);
}
.lightbox__thumb:hover { opacity: .85; }
.lightbox__thumb.is-active { opacity: 1; outline: 2px solid #fff; outline-offset: -2px; }
@media (max-width: 540px) { .lightbox__thumb { height: 48px; } }
.lightbox__close {
  position: absolute; top: 14px; right: 20px;
  background: none; border: 0; color: #fff;
  font-size: 2.6rem; line-height: 1; cursor: pointer;
  z-index: 2;
}
.lightbox__nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 56px; height: 56px; border-radius: 50%;
  background: rgba(0, 0, 0, .38); border: 0; color: #fff;
  font-size: 2.4rem; line-height: 1; cursor: pointer; z-index: 2;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s var(--ease);
}
.lightbox__nav:hover { background: rgba(0, 0, 0, .65); }
.lightbox__prev { left: 16px; }
.lightbox__next { right: 16px; }
@media (max-width: 540px) {
  .lightbox__nav { width: 44px; height: 44px; font-size: 2rem; }
  .lightbox__prev { left: 8px; } .lightbox__next { right: 8px; }
}

/* ---------- setup-service section ---------- */
.setup-story { max-width: 720px; margin: 30px auto 0; text-align: center; }
.setup-story p { color: var(--ink-soft); font-size: 1.08rem; line-height: 1.75; margin: 0 0 18px; }
.setup-story p em { font-style: italic; opacity: .9; }
.setup-tagline {
  font-family: var(--font-serif); font-style: italic;
  color: var(--accent); font-size: 1.35rem; margin-top: 6px !important;
}

/* ---------- faq accordion ---------- */
.faq-list { max-width: 760px; margin: 36px auto 0; }
.faq-item { border-bottom: 1px solid var(--line-soft); }
.faq-item summary {
  cursor: pointer; padding: 20px 4px; list-style: none;
  font-family: var(--font-body); font-size: 1.1rem; font-weight: 600; color: #fdfaf4;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; color: var(--accent); font-size: 1.5rem; line-height: 1; }
.faq-item[open] summary::after { content: "\2212"; }
.faq-item .faq-a { padding: 0 4px 22px; color: #fdfaf4; line-height: 1.7; }
.faq-item .faq-a p { margin: 0 0 12px; }
.faq-item .faq-a a { color: var(--accent); text-decoration: underline; }

/* ---------- footer ---------- */
.footer {
  background: #0e2620;            /* deepest forest, slightly darker than --bg */
  color: var(--ink-soft);
  padding: 56px 0 32px;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 36px;
}
.footer h4 {
  font-family: var(--font-body);
  color: var(--ink);
  font-size: 1.05rem;
  margin-bottom: 18px;
  font-weight: 600;
}
.footer ul li { margin-bottom: 10px; }
.footer a { color: var(--ink-soft); transition: color .2s; }
.footer a:hover { color: var(--accent); }
.footer .brand-block p {
  font-size: .95rem;
  color: var(--muted);
  margin-top: 12px;
}
.footer__bottom {
  margin-top: 48px;
  padding-top: 22px;
  border-top: 1px solid rgba(247, 239, 217, .14);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  text-align: center;
  font-size: .88rem;
  color: var(--muted);
}
.footer__tagline {
  font-family: var(--font-body); color: var(--accent);
  font-size: .92rem; line-height: 1.5; margin: 14px 0 0;
}

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .steps { grid-template-columns: repeat(2, 1fr); }
  .step + .step::before, .step + .step::after { display: none; }
  .quote-grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .nav {
    position: fixed; inset: 76px 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: 8px 0;
    /* Move up by the menu's own height PLUS the 76px header offset, so a short
       2-item nav is fully hidden when closed (a flat -130% left it peeking
       down into the banner). */
    transform: translateY(calc(-100% - 80px)); transition: transform .3s var(--ease);
  }
  .nav.open { transform: none; }
  .nav a { padding: 14px 28px; border-bottom: 1px solid var(--line-soft); }
  .nav a::after { display: none; }
  .burger { display: flex; }
  .header__cta .btn--cta-desktop { display: none; }
}
@media (max-width: 540px) {
  .steps { grid-template-columns: 1fr; }
  .field-grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .hero__actions .btn { width: auto; }
}
