/* Dunlap Collective site styles. Values come from tokens.css only. */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--c-canvas);
  color: var(--c-ink);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: var(--lh-body);
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
  padding-bottom: 88px; /* room for the phone call bar */
}
@media (min-width: 900px) { body { padding-bottom: 0; } }

h1, h2, h3, p, ol, ul, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }

.wrap { max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto; padding-inline: var(--gutter); }

.display {
  font-family: var(--font-display);
  font-weight: 800;
  font-stretch: var(--display-width);
  letter-spacing: var(--display-track);
  font-variant-numeric: tabular-nums;
  text-wrap: balance;
}
.accent { color: var(--c-accent); }
.muted { color: var(--c-muted); }

.skip {
  position: absolute; left: var(--gutter); top: -100px; z-index: 50;
  background: var(--c-surface-raised); color: var(--c-ink);
  padding: 12px 16px; border-radius: var(--r-control);
}
.skip:focus { top: 12px; }

/* Links */
.text-link {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: var(--tap);
  font-weight: 500;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 6px;
  text-decoration-color: var(--c-hairline);
  transition: text-decoration-color var(--dur-state) var(--ease);
}
.text-link svg { transition: transform var(--dur-state) var(--ease); }
.text-link:hover { text-decoration-color: currentColor; }
.text-link:hover svg { transform: translateX(4px); }
.text-link:active svg { transform: translateX(1px); }

:focus-visible { outline: 2px solid var(--c-accent); outline-offset: 3px; border-radius: 4px; }
.band :focus-visible { outline-color: var(--c-band-ink); }

/* Buttons: rounded rectangle, solid accent, one micro-interaction */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 28px;
  border: 0; border-radius: var(--r-control);
  background: var(--c-accent); color: var(--c-canvas);
  font: 500 var(--fs-body)/1 var(--font-body);
  text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: transform var(--dur-state) var(--ease), box-shadow var(--dur-state) var(--ease), opacity var(--dur-state) var(--ease);
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-raised); }
.btn:active { transform: translateY(0) scale(0.98); box-shadow: none; }
.btn:focus-visible { outline: 2px solid var(--c-accent); outline-offset: 3px; border-radius: var(--r-control); }
.band .btn:focus-visible { outline-color: var(--c-band-ink); }
.btn[aria-disabled="true"], .btn:disabled { opacity: 0.45; pointer-events: none; }
.btn[aria-busy="true"] { opacity: 0.7; cursor: progress; }
.btn--lg { min-height: 60px; padding: 0 32px; font-size: var(--fs-body-l); }
.btn--quiet { background: var(--c-surface-soft); color: var(--c-ink); }
.btn--block { display: flex; width: 100%; }

/* Header */
.site-header .wrap { display: flex; align-items: center; gap: 40px; min-height: 64px; }
.wordmark {
  font-family: var(--font-display); font-weight: 800; letter-spacing: -0.02em;
  font-size: 1.1875rem; text-decoration: none;
  display: inline-flex; align-items: center; min-height: var(--tap);
}
.nav-links, .nav-right { display: none; }
.nav-links a, .nav-right .nav-phone {
  display: inline-flex; align-items: center; min-height: var(--tap);
  font-weight: 500; text-decoration: underline; text-underline-offset: 6px;
  text-decoration-color: transparent;
  transition: text-decoration-color var(--dur-state) var(--ease);
}
.nav-links a:hover, .nav-right .nav-phone:hover, .nav-links a[aria-current="page"] { text-decoration-color: currentColor; }

.menu { margin-left: auto; position: static; }
.menu summary {
  list-style: none; width: var(--tap); height: var(--tap);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; border-radius: var(--r-control); margin-right: -10px;
}
.menu summary::-webkit-details-marker { display: none; }
.menu .icon-close { display: none; }
.menu[open] .icon-open { display: none; }
.menu[open] .icon-close { display: block; }
.menu-panel {
  position: absolute; left: var(--gutter); right: var(--gutter); top: 64px; z-index: 30;
  background: var(--c-surface-raised); border: 1px solid var(--c-hairline);
  border-radius: var(--r-frame); box-shadow: var(--shadow-raised);
  padding: 8px 20px;
}
.menu-panel a {
  display: flex; align-items: center; min-height: 56px;
  font-family: var(--font-display); font-weight: 700; font-size: var(--fs-lead);
  text-decoration: none; border-top: 1px solid var(--c-hairline);
}
.menu-panel a:first-child { border-top: 0; }

@media (min-width: 900px) {
  .site-header .wrap { min-height: 80px; }
  .wordmark { font-size: 1.3125rem; }
  .nav-links { display: flex; gap: 32px; }
  .nav-right { display: flex; align-items: center; gap: 28px; margin-left: auto; }
  .menu { display: none; }
}

/* Photo frames and labelled placeholders */
.frame {
  position: relative; overflow: hidden;
  border-radius: var(--r-frame);
  background: var(--c-hairline);
}
.frame--fade::after { content: ""; position: absolute; inset: 45% 0 0 0; background: var(--fade-photo); }
.frame-media { position: absolute; inset: 0; }
.frame-media img { width: 100%; height: 100%; object-fit: cover; }
.placeholder-label {
  position: absolute; top: 16px; left: 18px; right: 18px; z-index: 1;
  font-size: var(--fs-caption); font-weight: 500; line-height: 1.4; color: var(--c-muted);
}
figcaption { font-size: var(--fs-body); color: var(--c-muted); margin-top: 12px; }

/* Page head (h1 + sub) */
.page-head { padding-top: clamp(2.5rem, 1.4rem + 4.5vw, 6rem); }
.page-head h1 { font-size: var(--fs-xl); line-height: var(--lh-xl); max-width: 1120px; }
.page-head .lead-hero { font-size: var(--fs-lead-hero); line-height: var(--lh-lead); letter-spacing: -0.01em; }
.hero-grid { display: grid; gap: 40px; margin-top: var(--space-group); }
.hero-grid .btn { margin-top: 28px; }
.frame--hero { aspect-ratio: 4 / 5; }
@media (min-width: 900px) {
  .hero-grid { grid-template-columns: 5fr 7fr; gap: 48px; align-items: start; margin-top: 80px; }
  .hero-grid .btn { margin-top: 40px; }
  .frame--hero { aspect-ratio: auto; height: 600px; }
}

/* Spec rows: numbered, no boxes */
.rows { padding-top: var(--space-section); }
.row { display: grid; gap: 12px; padding-block: 32px; }
.row-num { font-family: var(--font-display); font-weight: 700; font-size: var(--fs-body-l); color: var(--c-muted); }
.row h2 { font-size: var(--fs-m); line-height: var(--lh-display); }
.row p { font-size: var(--fs-body-l); line-height: 1.5; max-width: 62ch; }
@media (min-width: 900px) {
  .row { grid-template-columns: 96px 5fr 6fr; gap: 40px; padding-block: 40px; align-items: baseline; }
  .row--plain { grid-template-columns: 5fr 6fr; }
}

/* Proof strip */
.proof { background: var(--c-surface-soft); margin-top: var(--space-section); padding-block: clamp(5rem, 3.9rem + 4.5vw, 8rem); }
.proof h2 { font-size: var(--fs-l); line-height: 1; margin-bottom: var(--space-group); }
.proof-card {
  background: var(--c-surface-raised); border: 1px solid var(--c-hairline);
  border-radius: var(--r-frame); box-shadow: var(--shadow-raised);
  padding: 28px;
}
.proof-grid { display: grid; gap: 12px; }
.proof-card { display: flex; flex-direction: column; justify-content: space-between; }
.proof-card .figure-line { font-size: var(--fs-m); line-height: 1.04; }
.proof-card .context { font-size: var(--fs-body); color: var(--c-muted); margin-top: 16px; }
.proof .text-link { margin-top: 20px; }
@media (min-width: 900px) {
  .proof-card { padding: 56px 64px; }
  .proof-grid { grid-template-columns: 7fr 5fr; gap: 24px; }
  .proof-card .context { font-size: var(--fs-body-l); margin-top: 24px; }
  .proof .text-link { margin-top: 32px; }
}

/* Numbered steps */
.steps { padding-top: var(--space-section); }
.steps h2 { font-size: var(--fs-l); line-height: 1; margin-bottom: var(--space-group); }
.steps li { display: grid; grid-template-columns: 40px 1fr; gap: 12px; padding-block: 24px; border-top: 1px solid var(--c-hairline); }
.steps .row-num { padding-top: 2px; }
.steps p { font-size: var(--fs-lead); line-height: 1.4; max-width: 46ch; }
@media (min-width: 900px) { .steps li { grid-template-columns: 96px 1fr; gap: 40px; padding-block: 48px; } }

/* The one dark band */
.band { background: var(--c-band); color: var(--c-band-ink); margin-top: var(--space-section); padding-block: clamp(6rem, 5rem + 4vw, 8.75rem); }
.band h2 { font-size: var(--fs-xl); line-height: var(--lh-xl); max-width: 1000px; }
.band h2.band-h2--l { font-size: var(--fs-l); line-height: 1; }
.band p { font-size: var(--fs-body-l); line-height: 1.55; max-width: 60ch; margin-top: 24px; }
.band .btn { margin-top: 40px; }

/* Signature: the closing screen carries Caleb's own cell, the number that called the visitor */
.band-actions { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-tight); margin-top: 40px; }
.band-actions .btn { margin-top: 0; }
.band-phone {
  display: inline-flex; align-items: center; min-height: var(--tap);
  font-size: var(--fs-m); line-height: 1; color: var(--c-band-ink);
  text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 10px;
  text-decoration-color: transparent;
  transition: text-decoration-color var(--dur-state) var(--ease);
}
.band-phone:hover { text-decoration-color: currentColor; }
@media (min-width: 900px) {
  .band-actions { flex-direction: row; align-items: center; justify-content: space-between; margin-top: 56px; }
  .band-phone { font-size: var(--fs-l); }
}

.proof + .band { margin-top: 0; }

/* Plain closing action */
.closer { padding-top: var(--space-section); }

/* Results page */
.results { padding-top: var(--space-section); }
.page-head + .results { padding-top: var(--space-group); }
.section-h2 { font-size: var(--fs-l); line-height: 1; margin-bottom: var(--space-group); }
.result { display: grid; gap: var(--space-tight); }
.result + .result { margin-top: var(--space-group); }
.result-card {
  background: var(--c-surface-raised); border: 1px solid var(--c-hairline);
  border-radius: var(--r-frame); box-shadow: var(--shadow-raised);
  padding: 28px; align-self: start;
}
.result-card .figure-line { font-size: var(--fs-lead); line-height: 1.2; font-stretch: 87.5%; letter-spacing: -0.01em; }
.result-card .context { margin-top: 16px; color: var(--c-muted); }
.frame--receipt { aspect-ratio: 1194 / 768; }
.frame--texts { aspect-ratio: 1290 / 1030; }
@media (min-width: 900px) {
  .result { grid-template-columns: 5fr 7fr; gap: 24px; }
  .result-card { padding: 48px; }
}

.audits { background: var(--c-surface-soft); margin-top: var(--space-section); padding-block: clamp(5rem, 3.9rem + 4.5vw, 8rem); }
.audits .section-h2 { margin-bottom: 12px; }
.audits .audits-sub { font-size: var(--fs-lead); line-height: 1.35; color: var(--c-muted); }
.audit { margin-top: var(--space-group); padding-top: var(--space-group); border-top: 1px solid var(--c-hairline); }
.audit-pair { display: grid; gap: 12px; }
.frame--ad { aspect-ratio: 4 / 5; background: var(--c-hairline); }
.audit-caption { font-weight: 500; margin-top: 20px; }
.audit-why { font-size: var(--fs-body-l); line-height: 1.55; max-width: 62ch; margin-top: 8px; }
@media (min-width: 700px) { .audit-pair { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; } }
@media (min-width: 900px) { .audit-pair { max-width: 960px; } }

/* Book page */
.book-body { margin-top: var(--space-tight); max-width: 34ch; }
.booking { margin-top: var(--space-group); }
/* Once the GHL widget is embedded, frame it as one raised surface */
.booking:has(iframe) {
  background: var(--c-surface-raised); border: 1px solid var(--c-hairline);
  border-radius: var(--r-frame); box-shadow: var(--shadow-raised);
  overflow: hidden;
}
.booking-slot-label { font-size: var(--fs-caption); font-weight: 500; color: var(--c-muted); }
.booked { margin-top: var(--space-tight); font-size: var(--fs-lead); line-height: 1.35; }
.booked[hidden] { display: none; }

/* Legal */
.legal { padding-top: clamp(2.5rem, 1.4rem + 4.5vw, 6rem); max-width: 760px; }
.legal h1 { font-size: var(--fs-l); line-height: 1; }
.legal .updated { margin-top: 16px; color: var(--c-muted); }
.legal h2 { font-family: var(--font-display); font-weight: 700; font-size: var(--fs-lead); line-height: 1.2; margin-top: 48px; }
.legal p, .legal li { font-size: var(--fs-body-l); line-height: 1.6; margin-top: 12px; max-width: 68ch; }
.legal ul { list-style: disc; padding-left: 1.25em; }

/* Footer */
.site-footer { margin-top: var(--space-section); padding-block: 40px; color: var(--c-muted); }
main:has(> .band:last-child) + .site-footer { margin-top: 0; }
.site-footer .wrap { display: flex; flex-direction: column; gap: 4px; }
.site-footer .wordmark { color: var(--c-ink); }
.site-footer a, .site-footer span { display: inline-flex; align-items: center; min-height: var(--tap); }
.site-footer a { text-underline-offset: 5px; text-decoration-color: var(--c-hairline); transition: text-decoration-color var(--dur-state) var(--ease); }
.site-footer a:hover { text-decoration-color: currentColor; }
.footer-legal { display: flex; gap: 24px; }
.footer-legal a { min-width: var(--tap); }
@media (min-width: 900px) {
  .site-footer { padding-block: 56px; }
  .site-footer .wrap { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 8px 32px; }
  .site-footer .wrap > .wordmark { flex-basis: 100%; margin-bottom: 8px; }
  .footer-legal { margin-left: auto; }
}

/* Phone call bar, thumb zone */
.callbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px;
  padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom));
  background: var(--c-surface-raised); border-top: 1px solid var(--c-hairline);
  box-shadow: var(--shadow-bar);
}
.callbar { transition: transform var(--dur-state) var(--ease), visibility 0s linear 0s; }
.js-io .callbar:not(.is-shown) {
  transform: translateY(calc(100% + 1px)); visibility: hidden;
  transition: transform var(--dur-state) var(--ease), visibility 0s linear var(--dur-state);
}
@media (min-width: 900px) { .callbar { display: none; } }

/* Motion: two signature moments only */
@keyframes settle { from { transform: scale(1.04); } to { transform: none; } }
.frame--settle .frame-media, .frame--settle .placeholder-fill { animation: settle 1400ms var(--ease) both; }
.placeholder-fill { position: absolute; inset: 0; background: var(--c-hairline); }

.js-motion .reveal { opacity: 0; transform: translateY(16px); transition: opacity var(--dur-enter) var(--ease), transform var(--dur-enter) var(--ease); }
.js-motion .reveal.is-in { opacity: 1; transform: none; }
.js-motion .reveal + .reveal { transition-delay: 120ms; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js-motion .reveal { opacity: 1; transform: none; }
}
