/* ============================================================
   BASE — reset, type, buttons, forms and the shared chrome
   (header, footer, lead form, modal, lightbox). Values come from
   tokens.css. Homepage section styles are in sections.css.
   ============================================================ */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: var(--head-h); }
body {
  font-family: var(--body);
  background: var(--cream);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  line-height: var(--lh-body);
  font-size: var(--fs-body);
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* [to confirm] marker — anything still waiting on the owner. Must be gone before launch. */
.tbc {
  display: inline-block; font-family: var(--mono); font-size: 0.72em; font-weight: 500;
  letter-spacing: 0; text-transform: none; font-style: normal; line-height: 1.3;
  background: var(--tbc-bg); color: var(--tbc-ink); padding: 1px 6px; border-radius: 4px;
  vertical-align: middle;
}

/* ---- type helpers ---- */
.eyebrow {
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--accent); font-weight: 500;
}
.display {
  font-family: var(--display); font-weight: 500; line-height: var(--lh-display);
  letter-spacing: -0.01em; color: var(--ink);
}
h1.display { font-size: var(--fs-h1); }
h2.display { font-size: var(--fs-h2); }
.lead { font-size: var(--fs-lead); color: var(--ink-2); max-width: 46ch; }
em.accent { color: var(--accent); font-style: italic; }
.stars { color: var(--gold); letter-spacing: 2px; font-size: 16px; }

/* ---- buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  border: none; border-radius: var(--r-pill);
  font-weight: 700; font-size: 15px; letter-spacing: 0.01em;
  padding: 13px 24px; text-align: center;
  transition: transform .15s ease, background .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.btn-primary { background: var(--accent); color: var(--on-accent); box-shadow: 0 8px 22px var(--accent-glow); }
.btn-primary:hover { background: var(--accent-deep); transform: translateY(-1px); }
.btn-primary:disabled { opacity: .7; transform: none; cursor: progress; }
.btn-ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--line-2); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-wa { background: var(--wa); color: var(--on-wa); font-weight: 800; box-shadow: 0 8px 22px oklch(0.7 0.18 150 / 0.28); }
.btn-wa:hover { background: var(--wa-deep); transform: translateY(-1px); }
.btn-wa .wa-ico { flex: none; }
.btn-lg { padding: 17px 32px; font-size: 17px; }
.btn-block { width: 100%; }

/* ---- image placeholder (used until a real photo is set) ---- */
.ph {
  position: relative; border-radius: var(--r); overflow: hidden;
  background: repeating-linear-gradient(135deg, var(--placeholder-a) 0 14px, var(--placeholder-b) 14px 28px);
  border: 1px solid var(--line);
  display: grid; place-items: center;
}
.ph .ph-label {
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em;
  color: var(--ink-3); background: var(--paper);
  padding: 6px 12px; border-radius: var(--r-pill); border: 1px solid var(--line);
}
.ph.has-photo img { width: 100%; height: 100%; object-fit: cover; }

/* ---- section scaffold (every homepage block sits in one of these) ---- */
section.band { padding: var(--section-y) 0; }
.band.sand { background: var(--sand); }
.band.flush-top { padding-top: 0; }
.sec-head { max-width: 620px; margin-bottom: 52px; }
.sec-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.sec-head .eyebrow { margin-bottom: 16px; display: block; }
.sec-head h2 { margin-bottom: 16px; }
.sec-head p { color: var(--ink-2); font-size: 18px; }

/* ============================================================
   HEADER
   ============================================================ */
.site-head {
  position: sticky; top: 0; z-index: 40;
  background: var(--head-bg); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-head .wrap { display: flex; align-items: center; gap: 32px; height: var(--head-h); }
.brand { display: flex; align-items: center; gap: 11px; flex: none; }
.brand-logo { width: auto; height: 30px; flex: none; }
.brand .word { font-family: var(--display); font-weight: 600; font-size: 25px; letter-spacing: 0.04em; color: var(--ink); }
.nav { display: flex; gap: 30px; margin-left: auto; }
.nav a { font-size: 15px; font-weight: 600; color: var(--ink-2); padding: 6px 0; position: relative; white-space: nowrap; }
.nav a:hover { color: var(--ink); }
.nav a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 0;
  background: var(--accent); transition: width .25s ease;
}
.nav a:hover::after { width: 100%; }
.head-cta { white-space: nowrap; flex: none; }
.head-cta .short { display: none; }

/* ============================================================
   LEAD FORM (shared by the hero card and the popup)
   ============================================================ */
.lead-card {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 30px; box-shadow: var(--shadow-lg);
}
.lead-card h3 { font-family: var(--display); font-weight: 600; font-size: 28px; line-height: 1.1; margin-bottom: 4px; }
.lead-card .sub { font-size: 14px; color: var(--ink-3); margin-bottom: 22px; }
.field { margin-bottom: 16px; }
.fl, .field > .group-label {
  display: block; font-size: 12px; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--ink-3); margin-bottom: 9px;
}
.fl .muted { text-transform: none; letter-spacing: 0; font-weight: 600; }
fieldset.field { border: 0; min-width: 0; }
fieldset.field legend { padding: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 9px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip span {
  display: inline-block; border: 1.5px solid var(--line-2); background: var(--paper);
  border-radius: var(--r-sm); padding: 10px 15px; font-size: 14px; font-weight: 700;
  color: var(--ink-2); transition: all .15s ease; cursor: pointer;
}
.chip:hover span { border-color: var(--ink-3); }
.chip input:checked + span { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.chip input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.input, .select {
  width: 100%; border: 1.5px solid var(--line-2); background: var(--paper);
  border-radius: var(--r-sm); padding: 13px 15px; font-size: 15px; font-family: inherit;
  color: var(--ink); transition: border .15s ease, box-shadow .15s ease;
}
.select { appearance: auto; }
.input::placeholder { color: var(--ink-3); }
.input:focus, .select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.input.err { border-color: var(--warn); }
.err-msg { display: block; font-size: 12px; color: var(--warn); margin-top: 6px; }
.hide { display: none !important; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.phone-wrap { display: grid; grid-template-columns: 84px 1fr; gap: 10px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.consent {
  display: flex; align-items: flex-start; gap: 10px; margin: 4px 0 6px;
  font-size: 13px; color: var(--ink-2); cursor: pointer;
}
.consent input { width: 17px; height: 17px; margin-top: 1px; accent-color: var(--accent); flex: none; }
.form-status {
  font-size: 13px; line-height: 1.5; color: var(--warn); background: oklch(0.97 0.02 30);
  border: 1px solid oklch(0.85 0.06 30); border-radius: var(--r-sm); padding: 12px 14px; margin: 12px 0;
}
.form-status a { text-decoration: underline; font-weight: 700; }
.form-actions { display: grid; gap: 10px; margin-top: 14px; }
.fineprint { font-size: 12px; color: var(--ink-3); text-align: center; margin-top: 13px; }
.fineprint a { color: var(--accent); font-weight: 600; }
.form-success { text-align: center; padding: 30px 8px; outline: none; }
.form-success .ok {
  width: 56px; height: 56px; border-radius: 50%; margin: 0 auto 16px; display: grid; place-items: center;
  background: var(--ok); color: var(--paper); font-size: 26px; font-weight: 800;
}
.form-success h3 { font-family: var(--display); font-size: 30px; font-weight: 600; margin-bottom: 8px; }
.form-success p { color: var(--ink-2); font-size: 15px; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-foot { padding: 72px 0 40px; border-top: 1px solid var(--line); }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 48px; }
.foot-grid .blurb { color: var(--ink-2); font-size: 15px; max-width: 34ch; margin-top: 16px; }
.foot-grid .group { font-size: 13px; color: var(--ink-3); margin-top: 14px; }
.foot-grid .group a { color: var(--accent); font-weight: 600; }
.foot-col h5 { font-family: var(--mono); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 16px; font-weight: 500; }
.foot-col a, .foot-col span { display: block; font-size: 15px; color: var(--ink-2); margin-bottom: 11px; font-weight: 600; }
.foot-col a:hover { color: var(--accent); }
.foot-contact { margin-top: 18px; }
.foot-address { font-style: normal; font-size: 14px; color: var(--ink-3); max-width: 34ch; line-height: 1.5; }
.foot-bot { display: flex; justify-content: space-between; align-items: center; padding-top: 26px; border-top: 1px solid var(--line); font-size: var(--fs-small); color: var(--ink-3); flex-wrap: wrap; gap: 12px; }
.foot-bot a:hover { color: var(--accent); }

/* ============================================================
   POPUP MODAL
   ============================================================ */
.modal-scrim {
  position: fixed; inset: 0; z-index: 100; background: var(--scrim);
  backdrop-filter: blur(3px); display: grid; place-items: center; padding: 24px;
  opacity: 0; visibility: hidden; transition: opacity .3s ease, visibility .3s ease;
}
.modal-scrim.open { opacity: 1; visibility: visible; }
.modal {
  width: min(960px, 100%); max-height: 92vh; overflow: hidden;
  background: var(--paper); border-radius: var(--r-xl); box-shadow: var(--shadow-lg);
  display: grid; grid-template-columns: 1fr 1.05fr; position: relative;
  transform: translateY(16px) scale(0.98); transition: transform .35s cubic-bezier(.2,.8,.25,1);
}
.modal-scrim.open .modal { transform: none; }
.modal-close {
  position: absolute; top: 16px; right: 16px; z-index: 5;
  width: 38px; height: 38px; border-radius: 50%; border: none;
  background: var(--paper); color: var(--ink); font-size: 18px;
  display: grid; place-items: center; box-shadow: var(--shadow);
}
.modal-creative {
  position: relative; padding: 30px; color: var(--on-dark);
  background-color: var(--dark); background-size: cover; background-position: center;
  display: flex; flex-direction: column;
}
.modal-creative .brand .word { color: var(--on-dark); }
.mc-body { margin-top: auto; }
.mc-kicker {
  display: inline-block; font-family: var(--mono); font-size: 11px; letter-spacing: 0.18em;
  text-transform: uppercase; background: var(--gold); color: var(--ink);
  padding: 6px 12px; border-radius: var(--r-pill); font-weight: 500; margin-bottom: 16px;
}
.mc-body .big { font-family: var(--display); font-weight: 700; font-size: 64px; line-height: 0.95; }
.mc-body .big small { display: block; font-size: 22px; font-weight: 600; letter-spacing: 0.02em; opacity: 0.95; margin-top: 6px; }
.mc-body .deadline { margin-top: 18px; font-size: 14px; font-weight: 600; }
.mc-body .deadline b { color: var(--gold); }
.mc-badges { display: flex; gap: 8px; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--glass-line); }
.mc-badges .b { flex: 1; font-size: 12px; font-weight: 700; line-height: 1.25; }
.mc-badges .b .bi { font-family: var(--mono); font-size: 16px; color: var(--gold); display: block; margin-bottom: 6px; }
.mc-tc { font-size: 10px; opacity: 0.7; margin-top: 16px; font-family: var(--mono); }
.modal-form { padding: 34px 36px; overflow-y: auto; max-height: 92vh; }
.modal-form h3 { font-family: var(--display); font-weight: 600; font-size: 32px; line-height: 1.05; margin-bottom: 22px; padding-right: 36px; }
.modal-form h3 b { color: var(--accent); font-weight: 700; }

/* ============================================================
   LIGHTBOX (gallery photos)
   ============================================================ */
.lightbox { border: 0; padding: 0; background: transparent; max-width: 94vw; max-height: 92vh; margin: auto; }
.lightbox::backdrop { background: var(--scrim); backdrop-filter: blur(3px); }
.lightbox img { max-width: 94vw; max-height: 84vh; border-radius: var(--r); box-shadow: var(--shadow-lg); }
.lightbox p { color: var(--on-dark); font-size: 14px; text-align: center; margin-top: 10px; }
.lightbox .modal-close { position: fixed; top: 20px; right: 20px; }
.lightbox .lb-nav {
  position: fixed; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%;
  border: 0; background: var(--paper); color: var(--ink); font-size: 20px; box-shadow: var(--shadow);
}
.lightbox .lb-prev { left: 16px; }
.lightbox .lb-next { right: 16px; }

/* ============================================================
   ARTICLE PAGES (privacy policy)
   ============================================================ */
.article { max-width: 760px; }
.article .crumb { font-size: var(--fs-small); color: var(--ink-3); margin-bottom: 18px; }
.article .crumb a { color: var(--accent); font-weight: 600; }
.article h1 { margin: 12px 0 8px; }
.article h2 { font-family: var(--display); font-size: 30px; font-weight: 600; margin: 34px 0 10px; }
.article p, .article li { color: var(--ink-2); margin-bottom: 12px; }
.article ul { padding-left: 22px; }
.article a { color: var(--accent); font-weight: 600; }
.article .updated { font-size: var(--fs-small); color: var(--ink-3); margin-bottom: 28px; }

/* ============================================================
   RESPONSIVE (shared chrome)
   ============================================================ */
@media (max-width: 1180px) {
  .site-head .wrap { gap: 22px; }
  .nav { gap: 20px; }
  .nav a { font-size: 14px; }
}
@media (max-width: 980px) {
  .nav { display: none; }
  .site-head .wrap { justify-content: space-between; gap: 12px; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-grid > :first-child { grid-column: 1 / -1; }
  .modal { grid-template-columns: 1fr; }
  .modal-creative { display: none; }
}
@media (max-width: 600px) {
  :root { --gutter: var(--gutter-mobile); --section-y: var(--section-y-mobile); --head-h: 64px; }
  .brand .word { font-size: 17px; letter-spacing: 0.02em; }
  .head-cta { padding: 10px 16px; font-size: 14px; }
  .head-cta .long { display: none; }
  .head-cta .short { display: inline; }
  .lead-card { padding: 22px 18px; }
  .row-2 { grid-template-columns: 1fr; }
  .modal-scrim { padding: 10px; align-items: end; }
  .modal-form { padding: 26px 20px; }
  .modal-form h3 { font-size: 26px; }
  .foot-grid { grid-template-columns: 1fr; }
  .lightbox .lb-nav { top: auto; bottom: 16px; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}
