/* Madame Wedding Design — site styles.
   Values are taken from the validated handoff mockups (design_handoff_…/*.dc.html).
   Page-specific layout lives inline in the generated pages, as in the mockups;
   everything shared (tokens, masthead, navigation, footer, buttons, lists,
   questions, the enquiry card and form) lives here. Square corners throughout. */

:root {
  --ivory: #F7F4EE;
  --sand: #EAE3D6;
  --ink: #26201A;
  --ink-85: rgba(38, 32, 26, .85);
  --ink-78: rgba(38, 32, 26, .78);
  --ink-70: rgba(38, 32, 26, .70);
  --rule: rgba(38, 32, 26, .16);
  --hunter: #2C352B;
  --sage: #3D4A3A;
  --night: #1A1611;
  --alert: #7A3B2E;
  --display: 'Cormorant Garamond', Georgia, serif;
  --body: 'EB Garamond', Georgia, serif;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { background: var(--ivory); color: var(--ink); font-family: var(--body); font-size: 17.5px; line-height: 1.75; -webkit-font-smoothing: antialiased; overflow-x: clip; }
a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--sage); }
img, video { display: block; max-width: 100%; }
picture { display: contents; }
picture > source { display: none; }
img { height: auto; }
button, input, textarea, select { font: inherit; color: inherit; }
::selection { background: var(--sage); color: var(--ivory); }
:focus-visible { outline: 1px solid var(--sage); outline-offset: 4px; }
summary::-webkit-details-marker { display: none; }
[hidden] { display: none !important; }

.skip { position: absolute; left: -9999px; top: 8px; z-index: 400; background: var(--ivory); padding: 10px 16px; }
.skip:focus { left: 8px; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ── Type tokens ─────────────────────────────────────────────── */
.serif { font-family: var(--display); font-weight: 400; }
.eyebrow { font-size: 10.5px; letter-spacing: .32em; text-transform: uppercase; }
.eyebrow--sm { font-size: 10px; letter-spacing: .24em; }
.eyebrow--xs { font-size: 9.5px; letter-spacing: .24em; }
.muted { color: var(--ink-70); }
.sage { color: var(--sage); }
.balance { text-wrap: balance; }
.pretty { text-wrap: pretty; }

/* ── Masthead & navigation ───────────────────────────────────── */
.masthead { text-align: center; padding-top: 22px; }
.masthead--big { padding-top: 28px; }
.masthead__rule { border-top: 1px solid var(--ink); }
.masthead__rule--thin { border-top-color: rgba(38, 32, 26, .25); margin-top: 3px; }
.masthead__logo { display: inline-block; padding: 10px 20px 8px; }
.masthead__logo img { height: clamp(64px, 7vw, 88px); width: auto; }
.masthead--big .masthead__logo { padding: 14px 20px 0; }
.masthead--big .masthead__logo img { height: clamp(84px, 11vw, 132px); }
.masthead__tagline { font-size: 11px; letter-spacing: .3em; text-transform: uppercase; color: var(--ink-70); padding: 4px 20px 16px; }

.nav { position: sticky; top: 0; z-index: 100; background: rgba(247, 244, 238, .95); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.nav--open-bottom { border-bottom: 0; }
.nav__links { display: flex; justify-content: safe center; gap: 10px clamp(18px, 3.4vw, 54px); flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; white-space: nowrap; padding: 14px 20px; max-width: 1400px; margin: 0 auto; }
.nav__links::-webkit-scrollbar { display: none; }
.nav a { font-size: 11px; letter-spacing: .26em; text-transform: uppercase; padding: 6px 2px; min-height: 44px; display: inline-flex; align-items: center; margin: -6px 0; }
.nav a[aria-current="page"] { color: var(--sage); border-bottom: 1px solid var(--sage); }
.nav--compact { border-top: 0; }
.nav--compact .nav__row { display: flex; justify-content: space-between; align-items: center; gap: 12px 28px; padding: 12px clamp(20px, 4vw, 56px); max-width: 1400px; margin: 0 auto; }
.nav--compact .nav__links { gap: 8px clamp(16px, 2.6vw, 40px); padding: 0; margin: 0; max-width: none; justify-content: flex-start; min-width: 0; }
.nav__cipher { flex: none; }
.nav__cipher img { height: 26px; width: auto; }
@media (max-width: 719px) {
  .nav--compact .nav__row { padding-left: 16px; padding-right: 0; gap: 16px; }
  .nav--compact .nav__links { padding-right: 16px; }
  .nav__links { justify-content: flex-start; }
}

.trail { font-size: 10.5px; letter-spacing: .22em; text-transform: uppercase; color: var(--ink-70); }
.trail a { color: var(--ink-70); display: inline-block; padding: 15px 4px; margin: -15px -4px; }
.trail span[aria-hidden] { padding: 0 8px; }

/* ── "↑ Menu" and the phone enquiry bar ─────────────────────── */
.to-top { position: fixed; left: clamp(14px, 2vw, 28px); bottom: clamp(14px, 2vw, 28px); z-index: 90; display: flex; align-items: center; gap: 12px; background: var(--ivory); border: 1px solid rgba(38, 32, 26, .35); color: var(--ink); padding: 12px 18px; min-height: 44px; cursor: pointer; font-family: var(--body); font-size: 10.5px; letter-spacing: .32em; text-transform: uppercase; opacity: 0; pointer-events: none; transform: translateY(12px); transition: opacity .4s ease, transform .4s ease, border-color .3s; }
.to-top span { font-size: 14px; letter-spacing: 0; }
.to-top:hover { border-color: var(--ink); }
.to-top.is-on { opacity: 1; pointer-events: auto; transform: none; }

.mobile-cta { display: none; }
@media (max-width: 719px) {
  .mobile-cta { display: block; position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 120; text-align: center; background: var(--hunter); color: var(--ivory); font-size: 11px; letter-spacing: .3em; text-transform: uppercase; padding: 17px 20px; transition: transform .45s ease, opacity .45s ease; }
  .mobile-cta:hover { color: var(--ivory); }
  /* With scripts, the bar waits until the first screen has been read and steps
     aside when the enquiry card, the form or the footer is in view. */
  .js .mobile-cta { transform: translateY(140%); opacity: 0; pointer-events: none; }
  .js .mobile-cta.is-on { transform: none; opacity: 1; pointer-events: auto; }
  body:has(.mobile-cta.is-on) .to-top, html:not(.js) body:has(.mobile-cta) .to-top { bottom: 84px; }
}

/* ── Footer ──────────────────────────────────────────────────── */
.footer { padding-top: 16vh; }
.footer__cipher { text-align: center; margin-bottom: 22px; }
.footer__cipher img { height: 34px; width: auto; display: inline-block; }
.footer__rule { border-top: 1px solid var(--ink); }
.footer__row { max-width: 1160px; margin: 0 auto; padding: 30px 28px 110px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 14px 26px; font-size: 10.5px; letter-spacing: .24em; text-transform: uppercase; color: var(--ink-70); }
.footer__links { display: flex; gap: 6px 22px; flex-wrap: wrap; }
.footer a { color: var(--ink-70); display: inline-block; padding: 13px 0; margin: -13px 0; }
.footer a:hover { color: var(--sage); }

/* ── Links & buttons ─────────────────────────────────────────── */
.link-line { display: inline-block; font-size: 11px; letter-spacing: .32em; text-transform: uppercase; color: var(--ink); border-bottom: 1px solid rgba(38, 32, 26, .35); padding: 6px 0; min-height: 44px; line-height: 32px; transition: border-color .3s; }
.link-line:hover { border-color: var(--ink); }
.link-line--soft { letter-spacing: .26em; border-bottom-color: var(--rule); padding: 10px 0 5px; }
.btn-line { display: inline-block; font-size: 11px; letter-spacing: .3em; text-transform: uppercase; border: 1px solid var(--ink); padding: 15px 34px; transition: background .3s, color .3s; }
.btn-line:hover { background: var(--ink); color: var(--ivory); }
.btn-ivory-line { display: inline-block; font-size: 11px; letter-spacing: .3em; text-transform: uppercase; border: 1px solid var(--ivory); color: var(--ivory); padding: 14px 30px; transition: background .3s, color .3s; }
.btn-ivory-line:hover { background: var(--ivory); color: var(--ink); }
.btn { display: inline-block; background: var(--hunter); color: var(--ivory); border: 1px solid var(--hunter); font-size: 11px; letter-spacing: .3em; text-transform: uppercase; padding: 16px 32px; cursor: pointer; }
.btn:hover { color: var(--ivory); background: var(--sage); }
.inline-link { border-bottom: 1px solid var(--rule); }
.inline-link:hover { border-color: var(--sage); }
/* A 44px tap area around a link set inside a line of small text, without moving the text. */
.tap { display: inline-block; padding: 15px 2px; margin: -15px -2px; }

/* ── Fact lists (label / value) ─────────────────────────────── */
.facts { border-top: 1px solid var(--ink); }
.facts > div { display: flex; flex-wrap: wrap; gap: 4px 16px; padding: 18px 0; border-bottom: 1px solid var(--rule); }
.facts dt { flex: 0 0 140px; font-size: 10px; letter-spacing: .32em; text-transform: uppercase; color: var(--sage); padding-top: 5px; }
.facts dd { flex: 1 1 220px; min-width: 0; font-size: 17px; line-height: 1.55; }
.band { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr)); border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); }
.band > div { padding: 20px 18px 20px 0; }
.band dt { font-size: 9.5px; letter-spacing: .24em; text-transform: uppercase; color: var(--sage); }
.band dd { margin-top: 6px; font-size: 16px; line-height: 1.5; }
@media (max-width: 719px) {
  .facts dt { flex-basis: 100%; }
  .band > div { padding-right: 0; border-bottom: 1px solid var(--rule); }
  .band > div:last-child { border-bottom: 0; }
}

/* ── Questions (details/summary) ────────────────────────────── */
.qa { border-top: 1px solid var(--ink); }
.qa details { border-bottom: 1px solid var(--rule); padding: 22px 0; }
.qa summary { font-family: var(--display); font-size: clamp(20px, 2vw, 25px); line-height: 1.3; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: baseline; gap: 24px; min-height: 44px; }
.qa summary::after { content: '+'; font-family: var(--body); font-weight: 300; font-size: 24px; line-height: 1; color: var(--sage); flex: none; transition: transform .3s ease; }
.qa details[open] summary::after { transform: rotate(45deg); }
.qa details p { margin-top: 12px; font-size: 17px; line-height: 1.8; color: var(--ink-85); max-width: 64ch; text-wrap: pretty; }
.qa--sm details { padding: 20px 0; }
.qa--sm summary { font-size: 22px; }
.qa--sm details p { margin-top: 10px; color: var(--ink); }

/* ── Photo framing ───────────────────────────────────────────── */
.cover { width: 100%; height: 100%; object-fit: cover; }
.sand-frame { background: var(--sand); display: flex; align-items: center; justify-content: center; }
.sand-frame img { max-width: 100%; max-height: 100%; width: auto; height: auto; }
.cap { margin-top: 10px; font-size: 10.5px; letter-spacing: .22em; text-transform: uppercase; color: var(--ink-70); }
.cap-italic { margin-top: 12px; font-size: 14px; font-style: italic; color: var(--ink-78); }
.credit { font-size: 10px; letter-spacing: .24em; text-transform: uppercase; color: var(--ink-70); }
.credit-over { position: absolute; right: 14px; bottom: 12px; margin: 0; font-size: 10px; letter-spacing: .24em; text-transform: uppercase; color: var(--ivory); text-shadow: 0 1px 6px rgba(26, 22, 17, .55); pointer-events: none; }

/* ── The hunter enquiry card ─────────────────────────────────── */
.enq-card { margin-top: 18vh; padding: 0 clamp(20px, 4vw, 64px); color: var(--ivory); }
.enq-card__board { max-width: 920px; margin: 0 auto; background: var(--hunter); padding: clamp(14px, 1.8vw, 22px); box-shadow: 0 30px 60px -30px rgba(38, 32, 26, .35); }
.enq-card__frame { border: 1px solid rgba(247, 244, 238, .55); padding: 7px; }
.enq-card__inner { position: relative; border: 1px solid rgba(247, 244, 238, .3); padding: 10vh clamp(24px, 4vw, 56px) 7vh; text-align: center; }
.enq-card h2, .enq-card p, .enq-card span { color: var(--ivory); }
.enq-card__actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 16px 20px; margin-top: 6vh; }
.enq-card__actions a { display: inline-block; min-width: min(260px, 100%); padding: 20px 34px; font-size: 11.5px; letter-spacing: .32em; text-transform: uppercase; border: 1px solid var(--ivory); transition: background .3s; }
.enq-card__actions .solid { background: var(--ivory); color: var(--hunter); }
.enq-card__actions .solid:hover { background: var(--sand); border-color: var(--sand); color: var(--hunter); }
.enq-card__actions .ghost { color: var(--ivory); }
.enq-card__actions .ghost:hover { background: rgba(247, 244, 238, .12); color: var(--ivory); }

/* ── Editorial scroll (Home 3p) ─────────────────────────────── */
.scroll { position: relative; padding: 0 clamp(16px, 2.4vw, 40px) 30vh clamp(52px, 5vw, 84px); }
.scroll__rail { position: sticky; top: 0; height: 100svh; margin-bottom: -100svh; pointer-events: none; z-index: 2; margin-left: calc(-1 * clamp(52px, 5vw, 84px)); }
.scroll__rail span:first-child { position: absolute; left: clamp(14px, 1.6vw, 26px); top: 50%; transform: translateY(-50%) rotate(180deg); writing-mode: vertical-rl; font-size: 9.5px; letter-spacing: .42em; text-transform: uppercase; color: var(--sage); white-space: nowrap; }
.scroll__rail span:last-child { position: absolute; left: clamp(30px, 2.8vw, 46px); top: 14vh; bottom: 14vh; border-left: 1px solid rgba(38, 32, 26, .18); }
.scroll figure { position: relative; z-index: 1; width: max(var(--w), min(300px, 86%)); margin-left: min(var(--ml), calc(100% - max(var(--w), min(300px, 86%)))); margin-top: var(--mt); }
.scroll figure img { width: 100%; height: auto; }
.scroll figcaption { margin-top: 14px; display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.scroll figcaption .c { font-family: var(--display); font-style: italic; font-size: clamp(19px, 1.6vw, 23px); }
.scroll figcaption .p { font-size: 9.5px; letter-spacing: .26em; text-transform: uppercase; }
@media (max-width: 719px) {
  .scroll figure { width: 100%; margin-left: 0; margin-top: calc(var(--mt) * .4 + 6vh); }
}

/* ── Film ────────────────────────────────────────────────────── */
.film-wrap { padding: 0 clamp(16px, 9vw, 240px); }
.film { position: relative; height: 76svh; min-height: 520px; background: var(--night); overflow: hidden; }
.film video, .film > picture img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.film__shade { position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(26, 22, 17, .18) 0%, rgba(26, 22, 17, 0) 35%, rgba(26, 22, 17, .55) 100%); pointer-events: none; }
.film__bar { position: absolute; left: 0; right: 0; bottom: 0; padding: 0 clamp(22px, 5vw, 72px) clamp(28px, 6vh, 64px); display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; color: var(--ivory); }
.film__bar p { color: var(--ivory); }
.film__ctl { display: flex; align-items: center; gap: 18px; }
.film__sound { background: none; border: none; border-bottom: 1px solid rgba(247, 244, 238, .6); color: var(--ivory); font-size: 10.5px; letter-spacing: .32em; text-transform: uppercase; padding: 6px 0; min-height: 44px; cursor: pointer; }
.film__play { background: none; border: 1px solid rgba(247, 244, 238, .6); color: var(--ivory); width: 44px; height: 44px; border-radius: 50%; font-size: 12px; cursor: pointer; }
@media (max-width: 719px) { .film-wrap { padding: 0 16px; } }

/* ── Entry threshold (Home) ──────────────────────────────────── */
.threshold { display: none; }
html.show-threshold .threshold { position: fixed; inset: 0; z-index: 300; background: var(--hunter); color: var(--ivory); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 20px; transition: opacity 1.8s ease; }
.threshold p { color: var(--ivory); }
.threshold img { width: min(520px, 82vw); height: auto; margin: -4vh 0 -3vh; }
.threshold__line { font-family: var(--display); font-style: italic; font-weight: 300; font-size: clamp(26px, 4.2vw, 42px); line-height: 1.25; margin: 26px 0 10px; }
.threshold button { margin-top: 54px; background: none; border: 1px solid rgba(247, 244, 238, .55); color: var(--ivory); font-size: 11px; letter-spacing: .34em; text-transform: uppercase; padding: 17px 56px; cursor: pointer; transition: background .3s, color .3s; }
.threshold button:hover { background: var(--ivory); color: var(--hunter); }
.threshold.is-fading { opacity: 0; pointer-events: none; }

/* ── Enquiry form ────────────────────────────────────────────── */
.form-progress { height: 1px; background: var(--rule); margin-bottom: 50px; position: relative; }
.form-progress i { position: absolute; left: 0; top: 0; height: 1px; background: var(--sage); width: 20%; transition: width .7s ease; }
.step-label { font-size: 10.5px; letter-spacing: .32em; text-transform: uppercase; color: var(--sage); margin-bottom: 32px; }
.f-label { display: block; font-size: 10.5px; letter-spacing: .22em; text-transform: uppercase; color: var(--ink-70); }
.f-label + .f-input, .f-label + textarea { margin-top: 0; }
.f-gap { margin-top: 28px; }
.f-gap-lg { margin-top: 32px; }
.f-input { width: 100%; background: transparent; border: none; border-bottom: 1px solid var(--rule); font-family: var(--body); font-size: 18px; color: var(--ink); padding: 10px 0; border-radius: 0; outline: none; }
.f-input:focus { border-bottom-color: var(--sage); }
textarea.f-input { min-height: 90px; resize: vertical; }
.f-input[aria-invalid="true"] { border-bottom-color: var(--alert); }
.f-err { font-size: 14.5px; color: var(--alert); margin-top: 8px; font-style: italic; min-height: 4px; }
.f-note { font-size: 14.5px; color: var(--ink-70); font-style: italic; }
.chips { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 12px; border: 0; }
.chips--col { flex-direction: column; align-items: flex-start; gap: 2px; }
.chip { position: relative; display: inline-block; }
.chip input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.chip span { display: inline-block; border-bottom: 1px solid transparent; font-size: 16px; color: var(--ink-70); padding: 10px 2px 6px; cursor: pointer; min-height: 44px; }
.chip input:checked + span { border-bottom-color: var(--sage); color: var(--sage); }
.chip input:focus-visible + span { outline: 1px solid var(--sage); outline-offset: 4px; }
.tiers { display: flex; flex-direction: column; border-bottom: 1px solid var(--rule); border-left: 0; border-right: 0; border-top: 0; }
.tier { position: relative; border-top: 1px solid var(--rule); }
.tier input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.tier span { display: flex; justify-content: space-between; align-items: baseline; padding: 18px 4px; font-family: var(--display); font-size: 21px; color: var(--ink-70); }
.tier span i { font-style: normal; font-family: var(--body); font-size: 10px; letter-spacing: .24em; text-transform: uppercase; opacity: 0; }
.tier input:checked + span { color: var(--sage); }
.tier input:checked + span i { opacity: .7; }
.tier input:focus-visible + span { outline: 1px solid var(--sage); outline-offset: -2px; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 15.5px; color: var(--ink-70); cursor: pointer; }
.check input { width: 18px; height: 18px; margin-top: 4px; accent-color: var(--sage); flex: none; }
.form-nav { display: flex; justify-content: space-between; align-items: baseline; margin-top: 50px; }
.form-nav button { font-size: 11px; letter-spacing: .3em; text-transform: uppercase; cursor: pointer; padding: 15px 34px; min-height: 44px; }
.form-back { background: none; border: none; color: var(--ink-70); padding-left: 0 !important; }
.form-next { background: none; border: 1px solid var(--ink); color: var(--ink); transition: background .3s, color .3s; }
.form-next:hover { background: var(--ink); color: var(--ivory); }
.js .step:not(.is-current) { display: none; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* ── Motion preferences ──────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; scroll-behavior: auto !important; }
}
