/* ===========================================================================
   Cafardini — Base: fonts, reset, typography, primitives, header, CTA
   =========================================================================== */

/* ---- Fonts (self-hosted) --------------------------------------------- */
@font-face {
  font-family: 'Cormorant Garamond'; font-style: normal; font-weight: 300 600;
  font-display: swap;
  src: url('../fonts/CormorantGaramond-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: 'Cormorant Garamond'; font-style: normal; font-weight: 300 600;
  font-display: swap;
  src: url('../fonts/CormorantGaramond-latinext.woff2') format('woff2');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face { font-family:'Manrope'; font-style:normal; font-weight:200; font-display:swap; src:url('../fonts/Manrope-Thin.woff2') format('woff2'); }
@font-face { font-family:'Manrope'; font-style:normal; font-weight:300; font-display:swap; src:url('../fonts/Manrope-Light.woff2') format('woff2'); }
@font-face { font-family:'Manrope'; font-style:normal; font-weight:400; font-display:swap; src:url('../fonts/Manrope-Regular.woff2') format('woff2'); }

/* ---- Reset ----------------------------------------------------------- */
*,*::before,*::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overscroll-behavior: none; background: var(--bg-dark); }
body { overscroll-behavior: none; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  font-family: var(--font-sans);
  font-weight: 400;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img,svg,video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input,select,textarea { font: inherit; color: inherit; }
ul { list-style: none; padding: 0; }
::selection { background: var(--c-ink); color: var(--c-ivory); }

/* ---- Typography ------------------------------------------------------ */
.display {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: .98;
  letter-spacing: var(--track-tight);
}
h1.display { font-size: clamp(2.9rem, 8.5vw, 7.4rem); }
h2.display { font-size: clamp(2.2rem, 5.2vw, 4.3rem); }
h3.display { font-size: clamp(1.7rem, 3vw, 2.5rem); line-height: 1.05; }

.eyebrow {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: .70rem;
  letter-spacing: var(--track-label);
  text-transform: uppercase;
  color: var(--text-muted);
}
.eyebrow--on-dark { color: var(--on-dark-soft); }

.lede { font-size: clamp(1.02rem, 1.5vw, 1.22rem); color: var(--text-soft); font-weight: 300; }
.body { color: var(--text-soft); font-weight: 400; }
.muted { color: var(--text-muted); }

/* ---- Layout primitives ----------------------------------------------- */
.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(72px, 11vw, 168px); }
.section--tight { padding-block: clamp(52px, 7vw, 104px); }
.section--dark { background: var(--bg-dark); color: var(--on-dark); }
.section--alt  { background: var(--bg-alt); }
.rule { height: 1px; background: var(--hairline); border: 0; }

.stack-sm > * + * { margin-top: .9rem; }
.stack > * + * { margin-top: 1.5rem; }
.stack-lg > * + * { margin-top: 2.4rem; }

/* section header lockup */
.sec-head { display: flex; flex-direction: column; gap: 1.1rem; max-width: var(--maxw-text); }
.sec-head .eyebrow { display: flex; align-items: center; gap: .8rem; }
.sec-head .eyebrow::before { content:""; width: 30px; height: 1px; background: currentColor; opacity: .5; }

/* ---- Buttons --------------------------------------------------------- */
.btn {
  --_fg: var(--c-ivory); --_bg: var(--c-ink); --_bd: var(--c-ink);
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  font-family: var(--font-sans); font-weight: 400;
  font-size: .74rem; letter-spacing: var(--track-label); text-transform: uppercase;
  padding: 1.05em 1.9em; border-radius: var(--radius);
  color: var(--_fg); background: var(--_bg);
  border: 1px solid var(--_bd);
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease),
              border-color var(--dur) var(--ease), opacity var(--dur) var(--ease);
}
.btn:hover { --_bg: transparent; --_fg: var(--c-ink); }
.btn--ghost { --_bg: transparent; --_fg: var(--c-ink); --_bd: var(--a-ink-55); }
.btn--ghost:hover { --_bg: var(--c-ink); --_fg: var(--c-ivory); --_bd: var(--c-ink); }
.btn--on-dark { --_bg: var(--c-ivory); --_fg: var(--c-ink); --_bd: var(--c-ivory); }
.btn--on-dark:hover { --_bg: transparent; --_fg: var(--c-ivory); }
.btn--ghost-dark { --_bg: transparent; --_fg: var(--c-ivory); --_bd: var(--a-ivory-40); }
.btn--ghost-dark:hover { --_bg: var(--c-ivory); --_fg: var(--c-ink); --_bd: var(--c-ivory); }

.link-underline {
  display: inline-flex; align-items: center; gap: .55em;
  font-size: .74rem; letter-spacing: var(--track-label); text-transform: uppercase;
  padding-bottom: 3px; border-bottom: 1px solid currentColor;
  transition: gap var(--dur) var(--ease), opacity var(--dur) var(--ease);
}
.link-underline:hover { gap: 1em; }

/* placeholder badge — marks where cinematic media will live (Phase 2) */
.ph-badge {
  position: absolute; z-index: 3; top: 16px; right: 16px;
  display: inline-flex; align-items: center; gap: .5em;
  font-family: var(--font-sans); font-weight: 400;
  font-size: .58rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--a-ivory-88);
  padding: .5em .8em; border: 1px solid var(--a-ivory-40);
  border-radius: var(--radius); background: rgba(20,17,14,.35);
  backdrop-filter: blur(4px);
}
.ph-badge::before { content:""; width: 6px; height: 6px; border-radius: 50%; background: var(--c-ivory); opacity: .8; }
.ph-badge--dark { color: var(--a-ink-72); border-color: var(--a-ink-14); background: var(--a-ink-06); }
.ph-badge--dark::before { background: var(--c-ink); }

/* ---- Header ---------------------------------------------------------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 60; height: var(--header-h);
  display: flex; align-items: center;
  color: var(--on-dark);
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease),
              border-color var(--dur) var(--ease), height var(--dur) var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; width: 100%; gap: 1.5rem; }
.brand { font-family: var(--font-display); font-weight: 500; font-size: 1.6rem; letter-spacing: .16em; text-transform: uppercase; }
.nav { display: flex; align-items: center; gap: clamp(1.1rem, 2vw, 2.1rem); }
.nav a { font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; opacity: .82; transition: opacity var(--dur) var(--ease); }
.nav a:hover { opacity: 1; }
.header-cta { display: inline-flex; }

.site-header.is-solid {
  background: var(--bg); color: var(--text);
  height: 68px; border-bottom-color: var(--hairline);
}
.site-header.is-solid .btn--on-dark { --_bg: var(--c-ink); --_fg: var(--c-ivory); --_bd: var(--c-ink); }
.site-header.is-solid .btn--on-dark:hover { --_bg: transparent; --_fg: var(--c-ink); }

.nav-toggle { display: none; }

@media (max-width: 900px) {
  .nav, .header-cta { display: none; }
  .nav-toggle {
    display: inline-flex; flex-direction: column; gap: 5px; padding: 8px; margin-right: -8px;
  }
  .nav-toggle span { width: 24px; height: 1.5px; background: currentColor; transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease); }
  .nav.is-open {
    display: flex; position: fixed; inset: var(--header-h) 0 0 0; z-index: 55;
    flex-direction: column; align-items: center; justify-content: center; gap: 1.8rem;
    background: var(--bg-dark); color: var(--on-dark);
  }
  .nav.is-open a { font-size: 1.1rem; opacity: .9; }
  .nav.is-open .header-cta { display: inline-flex; margin-top: .6rem; }
}

/* ---- Sticky floating CTA (conversion thread) ------------------------- */
.sticky-cta {
  position: fixed; z-index: 50; right: clamp(16px, 3vw, 34px); bottom: clamp(16px, 3vw, 34px);
  opacity: 0; transform: translateY(14px); pointer-events: none;
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.sticky-cta.is-shown { opacity: 1; transform: none; pointer-events: auto; }
/* floats over both light and dark sections — keep it legible on either */
.sticky-cta .btn { box-shadow: var(--shadow-soft); border-color: var(--a-ivory-40); }
.sticky-cta .btn:hover { --_bg: var(--c-ivory); --_fg: var(--c-ink); --_bd: var(--c-ivory); }
@media (prefers-reduced-motion: reduce) {
  .sticky-cta { transition: opacity .001s; transform: none; }
}

/* ---- Header right cluster + contact trigger -------------------------- */
.header-right { display: flex; align-items: center; gap: clamp(.8rem, 1.6vw, 1.4rem); }
.header-contact {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: 50%; color: inherit;
  border: 1px solid transparent;
  transition: opacity var(--dur) var(--ease), border-color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.header-contact:hover { border-color: currentColor; }
.header-contact svg { width: 19px; height: 19px; }

/* ---- Styled checkbox (.check) — replaces native box ------------------ */
.check { display: flex; align-items: flex-start; gap: .7rem; cursor: pointer; }
.check input { position: absolute; width: 1px; height: 1px; opacity: 0; margin: 0; }
.check__box {
  flex: 0 0 auto; width: 19px; height: 19px; margin-top: 1px;
  border: 1px solid var(--a-ivory-40); border-radius: var(--radius);
  display: grid; place-items: center;
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.check__box svg { width: 12px; height: 12px; stroke: var(--c-ink); opacity: 0; transform: scale(.5); transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease); }
.check input:checked + .check__box { background: var(--c-ivory); border-color: var(--c-ivory); }
.check input:checked + .check__box svg { opacity: 1; transform: none; }
.check input:focus-visible + .check__box { outline: 2px solid var(--c-ivory); outline-offset: 2px; }
.check__label { font-size: .82rem; font-weight: 300; color: var(--on-dark-soft); line-height: 1.5; }
/* on light surfaces */
.check--on-light .check__box { border-color: var(--a-ink-55); }
.check--on-light input:checked + .check__box { background: var(--c-ink); border-color: var(--c-ink); }
.check--on-light .check__box svg { stroke: var(--c-ivory); }
.check--on-light .check__label { color: var(--text-soft); }

/* ---- Contact drawer (right, full-height) ----------------------------- */
.drawer {
  position: fixed; top: 0; right: 0; z-index: 90; height: 100svh;
  width: min(440px, 92vw); background: var(--bg-dark); color: var(--on-dark);
  transform: translateX(100%); transition: transform .55s var(--ease);
  overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain;
  box-shadow: -40px 0 80px -40px rgba(0,0,0,.7);
}
.drawer.is-open { transform: none; }
.drawer__inner { min-height: 100%; display: flex; flex-direction: column; gap: .7rem; padding: clamp(24px, 3.4vw, 40px); }
.drawer__close {
  align-self: flex-end; width: 40px; height: 40px; display: grid; place-items: center;
  border: 1px solid var(--a-ivory-40); border-radius: 50%; color: var(--on-dark);
  transition: background var(--dur) var(--ease); margin-bottom: .4rem;
}
.drawer__close:hover { background: var(--a-ivory-08); }
.drawer__close svg { width: 17px; height: 17px; }
/* id selector to beat h2.display specificity; sized to stay on one line at
   both the fixed 440px desktop drawer and the 92vw mobile drawer */
#drawer-title { font-size: clamp(2.2rem, 8.5vw, 3rem); line-height: 1.04; letter-spacing: -.01em; white-space: nowrap; overflow-wrap: normal; hyphens: none; }
.drawer__intro { color: var(--on-dark-soft); font-weight: 300; font-size: .92rem; margin-top: .2rem; margin-bottom: .4rem; }
.drawer__locs { display: flex; flex-direction: column; }
.drawer .loc { padding: .9rem 0; }
.drawer .loc__city { font-size: 1.35rem; }
.drawer .loc__row { margin-top: .25rem; font-size: .85rem; }
.drawer__foot { margin-top: auto; padding-top: 1.4rem; display: flex; align-items: center; gap: 1.4rem; flex-wrap: wrap; }
.drawer-overlay {
  position: fixed; inset: 0; z-index: 89; border: 0; cursor: pointer;
  background: rgba(20,17,14,.5); backdrop-filter: blur(2px);
  opacity: 0; visibility: hidden; transition: opacity .4s var(--ease), visibility .4s var(--ease);
}
.drawer-overlay.is-open { opacity: 1; visibility: visible; }
.drawer-overlay[hidden] { display: block; }
@media (prefers-reduced-motion: reduce){ .drawer { transition: none; } .drawer-overlay { transition: none; } }

/* skip link */
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--c-ink); color: var(--c-ivory); padding: 10px 16px; border-radius: var(--radius); }

/* focus visibility */
:focus-visible { outline: 2px solid var(--c-ink); outline-offset: 3px; }
.section--dark :focus-visible, .site-header:not(.is-solid) :focus-visible { outline-color: var(--c-ivory); }
