/* Butter Bouquet — palette pulled from the logo (butter gold, leaf sage, cream)
   and the client's cakes (caramel cocoa, blush piping). */
:root {
  --cocoa: #3B271D;
  --cocoa-2: #563B2C;
  --butter: #E2A72E;
  --butter-soft: #F7E3A8;
  --cream: #FBF4E2;
  --paper: #FFFBF1;
  --sage: #6E7B45;
  --sage-soft: #E4E7CF;
  --blush: #F3D9CF;
  --ink: #3B271D;
  --ink-2: #6F5747;
  --line: #E8DAB8;

  --display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --body: "Outfit", "Avenir Next", system-ui, sans-serif;

  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: 1.6rem;
  --step-3: clamp(2rem, 4.2vw, 2.8rem);
  --step-4: clamp(2.6rem, 6.6vw, 4.6rem);

  --pad: clamp(18px, 4vw, 40px);
}

* { box-sizing: border-box; }
/* Root size 88.25% takes body text from 17px to 15px and scales everything set in rem with it. */
html { scroll-padding-top: 72px; font-size: 88.25%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 var(--step-0)/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 {
  font-family: var(--display); font-weight: 500; margin: 0;
  font-variation-settings: "SOFT" 100;
  letter-spacing: -0.01em; text-wrap: balance;
}
p { margin: 0; }
.wrap {
  max-width: 1180px; margin: 0 auto;
  padding-left: max(var(--pad), env(safe-area-inset-left));
  padding-right: max(var(--pad), env(safe-area-inset-right));
}
:focus-visible { outline: 3px solid var(--butter); outline-offset: 3px; border-radius: 4px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 600 1rem/1 var(--body); text-decoration: none; cursor: pointer;
  padding: 15px 24px; border-radius: 999px; border: 1.5px solid transparent; white-space: nowrap;
  transition: background-color .15s, color .15s, border-color .15s;
}
.btn-butter { background: var(--butter); color: var(--cocoa); }
.btn-butter:hover { background: #EDB93F; }
.btn-ghost { color: var(--cream); border-color: rgba(251, 244, 226, .45); }
.btn-ghost:hover { border-color: var(--cream); }
.btn-cocoa { background: var(--cocoa); color: var(--cream); }
.btn-cocoa:hover { background: var(--cocoa-2); }
.btn-line { background: transparent; color: var(--cocoa); border-color: var(--cocoa); }
.btn-line:hover { background: rgba(59, 39, 29, .06); }
.ico { width: 20px; height: 20px; flex: none; }
.ico-lg { width: 34px; height: 34px; }

/* Header */
.site-head {
  position: sticky; top: 0; z-index: 20; background: var(--cocoa); color: var(--cream);
  border-bottom: 1px solid rgba(251, 244, 226, .1);
}
.head-row { display: flex; align-items: center; gap: 24px; min-height: 60px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; margin-right: auto; }
.brand img { width: 40px; height: auto; }
.brand span { font: 500 1.25rem/1 var(--display); font-variation-settings: "SOFT" 100; white-space: nowrap; }
@media (max-width: 440px) { .brand span { font-size: 1.08rem; } .brand img { width: 34px; } .head-row { gap: 10px; min-height: 54px; } .head-cta { padding: 8px 14px; font-size: .9rem; } }
nav { display: flex; gap: 26px; }
nav a { text-decoration: none; font-size: .98rem; color: rgba(251, 244, 226, .82); }
nav a:hover { color: var(--cream); }
.head-cta { padding: 9px 18px; }
.menu-btn { display: none; }
@media (max-width: 880px) {
  /* Mobile: nav becomes a drop-down panel under the header, opened by the menu button */
  .menu-btn {
    /* sits at the far left, before the logo; the icon is small but the tap area stays 40px */
    order: -1; margin-left: -10px; margin-right: -4px;
    display: grid; place-items: center; width: 40px; height: 40px; padding: 0;
    border: 0; background: none; color: var(--cream); cursor: pointer; border-radius: 10px;
  }
  .menu-lines, .menu-lines::before, .menu-lines::after {
    display: block; width: 18px; height: 1.75px; border-radius: 2px; background: currentColor;
    transition: transform .25s ease, background-color .2s;
  }
  .menu-lines { position: relative; }
  .menu-lines::before, .menu-lines::after { content: ""; position: absolute; left: 0; }
  .menu-lines::before { top: -5.5px; }
  .menu-lines::after { top: 5.5px; }
  .menu-btn[aria-expanded="true"] .menu-lines { background: transparent; }
  .menu-btn[aria-expanded="true"] .menu-lines::before { transform: translateY(5.5px) rotate(45deg); }
  .menu-btn[aria-expanded="true"] .menu-lines::after { transform: translateY(-5.5px) rotate(-45deg); }

  nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; gap: 0; background: var(--cocoa);
    padding: 8px max(var(--pad), env(safe-area-inset-left)) 20px;
    border-bottom: 1px solid rgba(251, 244, 226, .1);
    box-shadow: 0 18px 30px rgba(30, 19, 13, .25);
    max-height: calc(100dvh - 60px); overflow-y: auto;
  }
  nav.is-open { display: flex; }
  nav a { padding: 14px 0; font-size: 1.15rem; color: var(--cream); border-bottom: 1px solid rgba(251, 244, 226, .1); }
  nav a:last-child { border-bottom: 0; }
}
@media (max-width: 880px) and (prefers-reduced-motion: no-preference) {
  nav.is-open { animation: navIn .2s ease-out; }
  @keyframes navIn { from { opacity: 0; transform: translateY(-8px); } }
}
@media (max-width: 350px) { .brand span { display: none; } }

/* Hero */
.hero { position: relative; isolation: isolate; background: var(--cocoa); color: var(--cream); overflow: hidden; }
/* Phones: the video layer fills the banner behind the text and doesn't take taps. */
.hero-media { position: absolute; inset: 0; pointer-events: none; }
.hero-video {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%;
  object-fit: cover; object-position: 50% 50%;
}
.hero::after {
  /* phones: tint over the video so the text stays easy to read */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(42, 27, 20, .5) 0%, rgba(42, 27, 20, .3) 40%, rgba(42, 27, 20, .55) 100%);
}
@media (max-width: 820px) {
  /* phones: the banner takes the video's own tall shape, so the whole video fits without heavy cropping */
  .hero .hero-grid { min-height: min(calc(100vw * 16 / 9), 92svh); }
  .hero h1, .hero-lede, .hero-place, .hero-facts { text-shadow: 0 1px 14px rgba(30, 19, 13, .7); }
  .hero .hero-lede { color: rgba(251, 244, 226, .92); }
}
.hero-grid {
  display: grid; grid-template-columns: minmax(0, 1fr); align-items: center;
  min-height: min(78svh, 720px);
  padding-top: clamp(56px, 8vw, 104px); padding-bottom: clamp(56px, 8vw, 104px);
}
@media (min-width: 821px) {
  /* Wider screens: a shorter banner on a dark cocoa gradient. The video (a full-resolution wide crop,
     so it stays sharp) fills the right three-quarters and melts into the gradient on the left,
     where the words sit. */
  .hero {
    background:
      radial-gradient(ellipse 45% 70% at 15% 40%, rgba(226, 167, 46, .16), rgba(226, 167, 46, 0) 70%),
      linear-gradient(100deg, var(--cocoa) 0%, var(--cocoa-2) 45%, #74503B 100%);
  }
  .hero-media { inset: 0 0 0 auto; width: 72%; }
  .hero-media .hero-video {
    object-position: 50% 18%; opacity: 1;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, .55) 16%, #000 38%);
            mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, .55) 16%, #000 38%);
  }
  .hero::after {
    /* a soft shade at the top and bottom edges, and a little behind the words */
    background:
      linear-gradient(90deg, rgba(59, 39, 29, .45) 0%, rgba(59, 39, 29, 0) 55%),
      linear-gradient(180deg, rgba(59, 39, 29, .25) 0%, rgba(59, 39, 29, 0) 22%, rgba(59, 39, 29, 0) 78%, rgba(59, 39, 29, .3) 100%);
  }
  .hero h1, .hero-lede, .hero-place, .hero-facts { text-shadow: 0 1px 12px rgba(30, 19, 13, .5); }
  .hero-grid {
    min-height: clamp(460px, 62vh, 580px);
    padding-top: clamp(48px, 6vw, 80px); padding-bottom: clamp(48px, 6vw, 80px);
  }
  .hero-copy { max-width: 36rem; }
  .hero .hero-lede { max-width: 40ch; }
  .hero .hero-facts { margin-top: 32px; }
  .hero .hero-copy h1 { font-size: clamp(2.4rem, 3.8vw, 3.6rem); max-width: 15ch; }
}
@media (min-width: 821px) and (max-width: 1100px) {
  /* narrower screens: the words overlap more of the video, so shade behind them a little more */
  .hero::after {
    background:
      linear-gradient(90deg, rgba(36, 23, 15, .75) 0%, rgba(36, 23, 15, .35) 50%, rgba(36, 23, 15, 0) 75%),
      linear-gradient(180deg, rgba(36, 23, 15, .35) 0%, rgba(36, 23, 15, 0) 22%, rgba(36, 23, 15, 0) 78%, rgba(36, 23, 15, .4) 100%);
  }
}
.hero-place { color: var(--butter-soft); font-size: var(--step-0); margin-bottom: 18px; }
.hero h1 { font-size: var(--step-4); line-height: 1.02; font-weight: 400; max-width: 13ch; }
.hero-lede { margin-top: 24px; max-width: 46ch; color: rgba(251, 244, 226, .8); font-size: 1.12rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-facts {
  list-style: none; padding: 0; margin: 40px 0 0; display: flex; flex-wrap: wrap; gap: 14px 36px;
  color: rgba(251, 244, 226, .72); font-size: .98rem;
}
.hero-facts strong { color: var(--butter); font-weight: 600; }

/* Sections */
.section { padding-block: clamp(64px, 9vw, 112px); }
.section-butter { background: var(--cream); }
.section-blush { background: var(--blush); }
.section-cream { background: var(--cream); }
.section-head { max-width: 62ch; margin-bottom: clamp(32px, 4vw, 52px); }
.section-head h2 { font-size: var(--step-3); line-height: 1.08; }
.section-head p { margin-top: 14px; color: var(--ink-2); }

/* Products */
.products { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 36px); }
.product img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 18px; }
.product h3 { font-size: var(--step-2); margin-top: 20px; }
.product p { color: var(--ink-2); margin-top: 8px; }
/* Cards are columns so the price row sits at the bottom, level across cards whatever the blurb length */
.product { display: flex; flex-direction: column; }
.product-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 16px; }
.product-from { font-weight: 600; }
.product-from span { font-weight: 400; color: var(--ink-2); }
.product .btn { padding: 11px 18px; font-size: .95rem; }
.carousel-dots { display: none; }
@media (max-width: 820px) {
  /* Swipeable row: cards snap into place and the next one peeks in from the right */
  .products {
    display: flex; gap: 14px; overflow-x: auto; overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory; scrollbar-width: none;
    margin-inline: calc(-1 * max(var(--pad), env(safe-area-inset-left)));
    padding-inline: max(var(--pad), env(safe-area-inset-left));
    scroll-padding-inline: max(var(--pad), env(safe-area-inset-left));
  }
  .products::-webkit-scrollbar { display: none; }
  .product { flex: 0 0 min(80%, 340px); scroll-snap-align: start; }
  .carousel-dots { display: flex; justify-content: center; gap: 4px; margin-top: 18px; }
  .carousel-dots button { width: 28px; height: 28px; padding: 0; border: 0; background: none; cursor: pointer; display: grid; place-items: center; }
  .carousel-dots button::before { content: ""; width: 8px; height: 8px; border-radius: 999px; background: rgba(59, 39, 29, .25); transition: width .2s, background-color .2s; }
  .carousel-dots button[aria-current="true"]::before { width: 22px; background: var(--cocoa); }
}

/* Builder */
.builder { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: clamp(28px, 4vw, 56px); align-items: start; }
@media (max-width: 960px) { .builder { grid-template-columns: minmax(0, 1fr); } }
.builder-form { display: grid; gap: 34px; min-width: 0; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
fieldset[hidden] { display: none; }
legend { font: 500 var(--step-1)/1.2 var(--display); font-variation-settings: "SOFT" 100; padding: 0; margin-bottom: 14px; }
.hint { color: var(--ink-2); font-size: .94rem; }
legend + .hint { margin: -6px 0 14px; }
.chips { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.chips-lg { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.chip { position: relative; min-width: 0; }
.chip input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.chip-face {
  display: grid; gap: 2px; height: 100%; padding: 13px 16px 13px 44px; position: relative;
  background: var(--paper); border: 1.5px solid var(--line); border-radius: 14px;
  transition: border-color .15s, background-color .15s;
}
.chip-face::before {
  content: ""; position: absolute; left: 16px; top: 16px; width: 16px; height: 16px;
  border: 1.5px solid #C9B58A; border-radius: 50%; background: var(--paper);
}
.chip input[type="checkbox"] + .chip-face::before { border-radius: 5px; }
.chip-t { font-weight: 600; line-height: 1.3; }
.chip-s { color: var(--ink-2); font-size: .9rem; }
.chip:hover .chip-face { border-color: var(--sage); }
.chip input:checked + .chip-face { border-color: var(--sage); background: var(--sage-soft); }
.chip input:checked + .chip-face::before { border-color: var(--sage); background: var(--sage); box-shadow: inset 0 0 0 3px var(--sage-soft); }
.chip input[type="checkbox"]:checked + .chip-face::before { box-shadow: none; background: var(--sage) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/12px no-repeat; }
.chip input:focus-visible + .chip-face { outline: 3px solid var(--butter); outline-offset: 2px; }
.chip.is-off .chip-face { opacity: .45; border-style: dashed; }
.chip.is-off input { cursor: not-allowed; }
.chip.is-off:hover .chip-face { border-color: var(--line); }
.hint:empty { display: none; }
.ticket-note { margin-top: 8px; font-size: .9rem; color: var(--ink-2); text-align: right; }

.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-bottom: 14px; }
@media (max-width: 560px) { .fields { grid-template-columns: 1fr; } }
.field { display: grid; gap: 6px; align-content: start; font-weight: 500; font-size: .95rem; min-width: 0; }
.field.wide { grid-column: 1 / -1; }
.opt { color: var(--ink-2); font-weight: 400; }
.field input {
  font: inherit; font-weight: 400; color: var(--ink); background: var(--paper);
  border: 1.5px solid var(--line); border-radius: 12px; padding: 0 14px; width: 100%; height: 50px;
}
.field input:focus-visible { outline: 3px solid var(--butter); outline-offset: 1px; border-color: var(--sage); }
.field input[aria-invalid="true"] { border-color: #B4483A; }
.field-err { color: #A23E31; font-size: .88rem; font-weight: 500; min-height: 0; }
.field-err:empty { display: none; }
.field-note { color: var(--sage); font-size: .88rem; font-weight: 500; }
.field-note:empty { display: none; }

/* The quote ticket: scalloped top and bottom like a bakery docket */
.quote-col { position: sticky; top: 96px; display: grid; gap: 18px; min-width: 0; }
@media (max-width: 960px) { .quote-col { position: static; max-width: 460px; width: 100%; margin-inline: auto; } }
.ticket-shadow { filter: drop-shadow(0 14px 30px rgba(59, 39, 29, .14)); }
.ticket {
  --r: 9px;
  background: var(--paper); padding: 30px 30px 26px; text-align: left;
  -webkit-mask:
    radial-gradient(circle var(--r) at 50% 0, #0000 97%, #000) 50% 0 / calc(var(--r) * 2.6) 51% repeat-x,
    radial-gradient(circle var(--r) at 50% 100%, #0000 97%, #000) 50% 100% / calc(var(--r) * 2.6) 51% repeat-x;
          mask:
    radial-gradient(circle var(--r) at 50% 0, #0000 97%, #000) 50% 0 / calc(var(--r) * 2.6) 51% repeat-x,
    radial-gradient(circle var(--r) at 50% 100%, #0000 97%, #000) 50% 100% / calc(var(--r) * 2.6) 51% repeat-x;
}
.ticket-logo { width: 96px; height: auto; margin: 6px auto 10px; }
.ticket h3 { text-align: center; font-size: 1.5rem; }
.ticket-rows { margin: 20px 0 0; display: grid; }
.ticket-rows div {
  display: flex; justify-content: space-between; gap: 16px; padding: 9px 0;
  border-bottom: 1.5px dashed var(--line); font-size: .96rem;
}
.ticket-rows dt { color: var(--ink-2); flex: none; }
.ticket-rows dd { margin: 0; text-align: right; font-weight: 500; min-width: 0; overflow-wrap: anywhere; }
.ticket-rows dd small { display: block; color: var(--ink-2); font-weight: 400; font-size: .85rem; }
.ticket-total { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-top: 18px; }
.ticket-total span { font-weight: 500; }
.ticket-total strong {
  font: 500 3rem/1 var(--display); font-variation-settings: "SOFT" 100;
  font-variant-numeric: lining-nums tabular-nums; color: var(--cocoa);
}
.ticket-total strong.bump { animation: bump .35s ease-out; }
@keyframes bump { 40% { color: var(--sage); transform: translateY(-2px); } }
@media (prefers-reduced-motion: reduce) { .ticket-total strong.bump { animation: none; } }
.ticket-ref {
  margin-top: 18px; padding: 10px 12px; border-radius: 10px; background: var(--sage-soft);
  font-size: .86rem; color: var(--ink-2); text-align: center;
}
.ticket-ref span { color: var(--ink); font-weight: 600; letter-spacing: .04em; }

.quote-actions { display: grid; gap: 10px; }
.quote-actions .btn { width: 100%; }
.status { font-size: .92rem; color: var(--sage); font-weight: 500; min-height: 1.4em; text-align: center; }
.status.is-error { color: #A23E31; }
.send { background: var(--paper); border: 1.5px solid var(--line); border-radius: 18px; padding: 20px; display: grid; gap: 8px; }
.send[hidden] { display: none; }
.send-h { font: 500 var(--step-1)/1.2 var(--display); font-variation-settings: "SOFT" 100; }
.send-links { display: grid; gap: 8px; margin-top: 6px; }
.send-links .btn { width: 100%; }
.fineprint { font-size: .86rem; color: var(--ink-2); }

/* How ordering works: a numbered strip inside the price section (it is a real sequence) */
.how {
  background: var(--paper); border: 1.5px solid var(--line); border-radius: 18px;
  padding: clamp(20px, 3vw, 28px); margin-bottom: clamp(36px, 5vw, 52px);
}
.how-h { font: 500 var(--step-1)/1.2 var(--display); font-variation-settings: "SOFT" 100; margin-bottom: 18px; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px clamp(18px, 2.5vw, 32px); counter-reset: step; }
.steps li { counter-increment: step; display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 12px; align-content: start; }
.steps li::before {
  content: counter(step); grid-row: span 2; width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center; background: var(--butter); color: var(--cocoa);
  font: 500 1.05rem/1 var(--display); font-variation-settings: "SOFT" 100;
}
.steps h4 { margin: 0; font-size: 1rem; font-weight: 600; line-height: 1.3; padding-top: 6px; }
.steps p { color: var(--ink-2); margin-top: 4px; font-size: .93rem; line-height: 1.5; }
@media (max-width: 960px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) {
  /* Phones: titles only in a tight 2 x 2 grid, so the builder starts sooner */
  .how { padding: 14px 16px; margin-bottom: 28px; border-radius: 14px; }
  .how-h { font-size: 1.05rem; margin-bottom: 12px; }
  .steps { gap: 10px 12px; }
  .steps li { column-gap: 8px; align-items: center; }
  .steps li::before { width: 26px; height: 26px; font-size: .9rem; grid-row: auto; }
  .steps h4 { font-size: .9rem; padding-top: 0; }
  .steps p { display: none; }
  #price.section { padding-top: 48px; }
  #price .section-head { margin-bottom: 20px; }
}

/* Gallery */
.gallery-head { display: flex; justify-content: space-between; align-items: end; gap: 20px 32px; flex-wrap: wrap; margin-bottom: clamp(24px, 3vw, 36px); }
.gallery-head .section-head { margin-bottom: 0; }
.gallery-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.gallery-tab {
  font: 500 .95rem/1 var(--body); color: var(--cocoa); cursor: pointer;
  padding: 10px 16px; border-radius: 999px; border: 1.5px solid rgba(59, 39, 29, .25); background: transparent;
  transition: background-color .15s, border-color .15s;
}
.gallery-tab:hover { border-color: var(--cocoa); }
.gallery-tab[aria-pressed="true"] { background: var(--cocoa); border-color: var(--cocoa); color: var(--cream); }
.gallery-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(10px, 1.6vw, 18px); }
.gallery-item { display: block; width: 100%; padding: 0; border: 0; background: var(--cream); border-radius: 14px; overflow: hidden; cursor: zoom-in; }
.gallery-item img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; transition: transform .4s ease; }
@media (hover: hover) { .gallery-item:hover img { transform: scale(1.04); } }
.gallery-foot { display: flex; justify-content: center; align-items: center; gap: 16px 28px; flex-wrap: wrap; margin-top: clamp(24px, 3vw, 36px); }
.btn-outline { color: var(--cocoa); border-color: var(--cocoa); background: transparent; }
.btn-outline:hover { background: var(--cocoa); color: var(--cream); }
.gallery-ig { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; color: var(--cocoa); }
.gallery-ig .ico { color: var(--cocoa); }
@media (max-width: 820px) { .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Lightbox */
dialog.lightbox { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; border-radius: 0; background: rgba(30, 19, 13, .94); color: var(--cream); padding: 0; }
dialog.lightbox[open] { display: grid; place-items: center; }
dialog.lightbox::backdrop { background: transparent; }
.lightbox figure { margin: 0; display: grid; gap: 12px; justify-items: center; padding: 56px 64px 24px; max-height: 100dvh; }
.lightbox img { max-width: min(92vw, 900px); max-height: calc(100dvh - 140px); width: auto; border-radius: 10px; }
.lightbox figcaption { font-size: .95rem; color: rgba(251, 244, 226, .8); text-align: center; max-width: 60ch; }
.lb-btn { position: absolute; width: 48px; height: 48px; border-radius: 50%; border: 0; cursor: pointer; background: rgba(251, 244, 226, .14); color: var(--cream); font: 400 2rem/1 var(--body); display: grid; place-items: center; }
.lb-btn:hover { background: rgba(251, 244, 226, .26); }
.lb-close { top: 14px; right: 14px; }
.lb-prev { left: 14px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 14px; top: 50%; transform: translateY(-50%); }
@media (max-width: 560px) {
  .lightbox figure { padding: 64px 12px 84px; }
  .lb-prev, .lb-next { top: auto; bottom: 18px; transform: none; }
  .lb-prev { left: calc(50% - 60px); } .lb-next { right: calc(50% - 60px); }
}

/* About */
.about { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(28px, 6vw, 88px); align-items: center; }
.about-photo { margin: 0; }
.about-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 26px 26px 999px 999px; }
.about-copy h2 { font-size: var(--step-3); line-height: 1.08; }
.about-copy p { margin-top: 18px; max-width: 56ch; color: var(--ink-2); }
.about-list { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 10px; }
.about-list li { display: flex; gap: 12px; align-items: baseline; font-weight: 500; }
.about-list li::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--sage); flex: none; transform: translateY(-1px); }
@media (max-width: 820px) { .about { grid-template-columns: 1fr; } .about-photo { max-width: 420px; } }

/* FAQ */
.faq-wrap { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(24px, 5vw, 72px); align-items: start; }
.faq-wrap h2 { font-size: var(--step-3); line-height: 1.08; }
@media (max-width: 820px) { .faq-wrap { grid-template-columns: 1fr; } }
.faq details { border-bottom: 1.5px solid var(--line); }
.faq details:first-child { border-top: 1.5px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none; padding: 20px 40px 20px 0; position: relative;
  font-weight: 600; font-size: 1.08rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 6px; top: 50%; width: 10px; height: 10px; margin-top: -7px;
  border-right: 2px solid var(--sage); border-bottom: 2px solid var(--sage); transform: rotate(45deg); transition: transform .2s;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq details p { padding: 0 0 22px; color: var(--ink-2); max-width: 62ch; }

/* Footer */
.site-foot { background: var(--cocoa); color: var(--cream); padding-top: 24px; padding-bottom: max(24px, env(safe-area-inset-bottom)); }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 36px; }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr; } }
.foot-brand img { width: 92px; height: auto; margin-bottom: 14px; }
.foot-brand p { color: rgba(251, 244, 226, .75); max-width: 34ch; }
.foot-h { font: 500 var(--step-1)/1.2 var(--display); font-variation-settings: "SOFT" 100; margin-bottom: 14px; }
.social { display: grid; gap: 10px; }
.social a { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: rgba(251, 244, 226, .85); width: fit-content; }
.social a:hover { color: var(--butter); }
.link-btn { font: inherit; background: none; border: 0; padding: 0; color: rgba(251, 244, 226, .85); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.link-btn:hover { color: var(--butter); }
.foot-base { font-size: .88rem; color: rgba(251, 244, 226, .6); }

/* Quote checker dialog */
dialog { border: 0; border-radius: 20px; padding: 0; width: min(460px, calc(100% - 32px)); background: var(--paper); color: var(--ink); }
dialog::backdrop { background: rgba(59, 39, 29, .55); }
.check { padding: 28px; display: grid; gap: 14px; }
.check h2 { font-size: 1.6rem; }
.check-out:empty { display: none; }
.check-out { border-radius: 12px; padding: 14px 16px; background: var(--sage-soft); font-size: .95rem; }
.check-out.bad { background: #F6DCD6; color: #7C2E24; }
.check-out dl { margin: 8px 0 0; display: grid; gap: 4px; }
.check-out dl div { display: flex; justify-content: space-between; gap: 12px; }
.check-out dt { color: var(--ink-2); }
.check-out dd { margin: 0; text-align: right; font-weight: 500; }
.check-actions { display: flex; gap: 10px; flex-wrap: wrap; }
