/* Direct Home Offers: shared styles for index.html and proof.html */

:root {
  --bg: #f7f3ec;
  --sand: #efe8dc;
  --surface: #ffffff;
  --ink: #13233f;
  --ink-2: #4a5570;
  --line: #e2d9c9;
  --line-strong: #cfc4b1;
  --blue: #1a6fd6;
  --blue-dark: #155bb5;
  --blue-deep: #10488f;
  --blue-tint: #e8f0fb;
  --amber: #e8a317;
  --on-ink: #f7f3ec;
  --on-ink-2: #c9d3e6;
  --radius: 14px;
  --radius-sm: 10px;
  --wrap: 1120px;
  --gutter: 20px;
  --head-h: 64px;
  --bar-btn: 52px;
  --bar-pad: 10px;
  --bar-h: calc(var(--bar-btn) + 2 * var(--bar-pad));
  --tap: 44px;
  --blue-light: #9cc2f5;
  --focus: var(--blue);
  --line-on-ink: rgba(201, 211, 230, .2);
  --font-head: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Public Sans", "Helvetica Neue", Arial, sans-serif;
  --shadow: 0 1px 2px rgba(19, 35, 63, .06), 0 8px 24px -12px rgba(19, 35, 63, .18);
}

*, *::before, *::after { box-sizing: border-box; }

/* Smooth scroll is switched on by site.js after load. If it is on during the initial
   #fragment jump, the GHL embed script restores the pre-jump scroll position (0) when the
   calendar iframe initialises, which drops the visitor back at the top of the page. */
@media (prefers-reduced-motion: no-preference) {
  html.smooth { scroll-behavior: smooth; }
}
html {
  scroll-padding-top: calc(var(--head-h) + 12px);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  padding-bottom: calc(var(--bar-h) + env(safe-area-inset-bottom, 0px));
}

img, video, iframe { max-width: 100%; display: block; }

h1, h2, h3 {
  font-family: var(--font-head);
  font-stretch: 112%;
  line-height: 1.12;
  letter-spacing: -.015em;
  margin: 0 0 .5em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.05rem, 5.2vw + 1rem, 3.5rem); font-weight: 750; }
h2 { font-size: clamp(1.65rem, 2.6vw + 1rem, 2.5rem); font-weight: 720; }
h3 { font-size: 1.3rem; font-weight: 700; line-height: 1.25; }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--blue-dark); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--blue-deep); text-decoration-thickness: 2px; }

:focus-visible {
  outline: 3px solid;
  outline-color: var(--focus);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--ink); color: var(--on-ink); padding: 10px 16px; border-radius: 8px;
}
.skip:focus { top: 12px; color: var(--on-ink); }

.inline-tap { display: inline-block; padding: 10px 2px; }

/* Header */
.site-head {
  position: sticky; top: 0; z-index: 40;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.site-head .wrap {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: var(--head-h);
}
.logo {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-head); font-stretch: 112%; font-weight: 750; font-size: 1.12rem;
  color: var(--ink); text-decoration: none; min-height: var(--tap); letter-spacing: -.01em;
}
.logo:hover { color: var(--ink); }
.logo svg { width: 28px; height: 28px; flex: none; }
.head-links { display: flex; align-items: center; gap: 20px; }
.head-links a { font-weight: 600; min-height: var(--tap); display: inline-flex; align-items: center; }
.head-links .head-phone { display: none; text-decoration: none; }
.head-phone svg { width: 18px; height: 18px; margin-right: 8px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 14px 26px;
  border-radius: 999px; border: 2px solid transparent;
  font-family: var(--font-body); font-weight: 700; font-size: 1.0625rem; line-height: 1.2;
  text-decoration: none; text-align: center; cursor: pointer;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-dark); color: #fff; }
.btn-secondary { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-secondary:hover { background: var(--ink); color: var(--on-ink); }
.btn-row { display: flex; flex-direction: column; gap: 12px; margin-top: 28px; }

/* Sections */
.section { padding: 64px 0; }
.section-sand { background: var(--sand); }
.section-ink { background: var(--ink); color: var(--on-ink); --focus: var(--blue-light); }
.section-ink a { color: var(--blue-light); }
.section-ink a:hover { color: #fff; }
.section-ink .btn-primary, .section-ink .btn-primary:hover { color: #fff; } /* the link rule above outranks .btn-primary */
.section-intro { max-width: 40rem; color: var(--ink-2); font-size: 1.15rem; }
.section-head { max-width: 46rem; margin-bottom: 36px; }
.section-ink .section-intro { color: var(--on-ink-2); }

.eyebrow {
  display: inline-block; font-size: .95rem; font-weight: 600; color: var(--ink-2);
  border-left: 3px solid var(--blue); padding-left: 12px; margin-bottom: 22px; max-width: 34rem;
}

/* Hero */
.hero { padding: 44px 0 56px; }
.hero-grid { display: grid; gap: 40px; }
.hero-sub { font-size: 1.2rem; color: var(--ink-2); max-width: 38rem; }
.trust {
  list-style: none; margin: 32px 0 0; padding: 22px 0 0; border-top: 1px solid var(--line);
  display: grid; gap: 14px;
}
.trust li { display: flex; gap: 12px; align-items: flex-start; font-size: 1.02rem; font-weight: 600; }
.trust svg { width: 24px; height: 24px; flex: none; color: var(--blue); margin-top: 1px; }

/* Shared card surface */
.pull, .door, .case {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
}
.pull {
  margin: 0; padding: 28px 26px; box-shadow: var(--shadow);
  align-self: start;
}
.pull blockquote { margin: 14px 0 16px; }
.pull blockquote p {
  font-family: var(--font-head); font-stretch: 105%; font-weight: 600;
  font-size: clamp(1.3rem, 1.4vw + 1rem, 1.6rem); line-height: 1.3; letter-spacing: -.01em;
}
.pull figcaption { font-size: 1rem; color: var(--ink-2); font-weight: 600; }

.stars { display: inline-flex; gap: 3px; color: var(--amber); }
.stars svg { width: 20px; height: 20px; }

/* Sound familiar */
.lines { list-style: none; margin: 0; padding: 0; max-width: 44rem; }
.lines li {
  padding: 18px 0 18px 28px; border-top: 1px solid var(--line-strong); position: relative;
  font-size: 1.2rem;
}
.lines li::before {
  content: ""; position: absolute; left: 4px; top: 1.55em; width: 10px; height: 2px; background: var(--blue);
}
.lines li:last-child { border-bottom: 1px solid var(--line-strong); }
.closing { margin-top: 28px; font-family: var(--font-head); font-stretch: 105%; font-weight: 650; font-size: 1.35rem; line-height: 1.35; max-width: 40rem; }

/* Doors */
.doors { display: grid; gap: 24px; }
.door {
  padding: 28px 22px 24px; display: flex; flex-direction: column; gap: 18px;
}
.door-num {
  width: 44px; height: 56px; border: 2px solid var(--blue); border-bottom-width: 4px;
  border-radius: 22px 22px 3px 3px;
  display: grid; place-items: center; padding-top: 6px;
  font-family: var(--font-head); font-weight: 750; font-size: 1.2rem; color: var(--blue-dark);
}
.door h3 { margin: 0; font-size: 1.45rem; }
.door p { color: var(--ink-2); }
.door-proof { margin: auto 0 0; padding-top: 18px; border-top: 1px dashed var(--line-strong); display: grid; gap: 14px; }
.door-proof blockquote { margin: 0; }
.door-proof blockquote p { font-weight: 600; color: var(--ink); font-size: 1.05rem; }
.note {
  margin: 32px 0 0; max-width: 46rem; padding: 20px 22px;
  border-left: 3px solid var(--amber); background: var(--surface); border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.cta-center { margin-top: 36px; }

/* Review cards */
.card { margin: 0; break-inside: avoid; }
.card-btn {
  display: block; width: 100%; padding: 12px; margin: 0;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm);
  cursor: zoom-in; transition: border-color .15s ease, box-shadow .15s ease;
}
.card-btn:hover { border-color: var(--line-strong); box-shadow: var(--shadow); }
.card-btn img { width: 100%; height: auto; }
.card figcaption { font-size: .95rem; font-weight: 600; color: var(--ink-2); padding: 8px 4px 0; }
.card-sm .card-btn { padding: 8px; }

/* Video */
.video-block { display: grid; gap: 28px; align-items: start; }
.video-frame { margin: 0; }
.video-frame video {
  width: 100%; max-width: calc(80vh * 9 / 16);
  max-height: 80vh; aspect-ratio: 9 / 16; height: auto;
  margin-inline: auto; background: var(--ink); border-radius: var(--radius); object-fit: cover;
}
.video-frame figcaption { font-size: 1rem; color: var(--ink-2); margin-top: 14px; max-width: 34rem; }
.video-quote {
  font-family: var(--font-head); font-stretch: 105%; font-weight: 650;
  font-size: clamp(1.35rem, 1.6vw + 1rem, 1.75rem); line-height: 1.3; margin: 0 0 20px;
}
.card-strip { display: grid; gap: 18px; }
.more-link { margin-top: 28px; font-weight: 700; font-size: 1.1rem; }
.more-link a { display: inline-flex; align-items: center; min-height: var(--tap); }

/* Steps */
.steps-grid { display: grid; gap: 36px; }
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.steps li {
  counter-increment: step; position: relative; padding: 0 0 28px 64px; min-height: 48px;
}
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: -2px;
  width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--blue);
  display: grid; place-items: center; background: var(--surface);
  font-family: var(--font-head); font-weight: 750; color: var(--blue-dark);
}
.steps li::after {
  content: ""; position: absolute; left: 21px; top: 48px; bottom: 6px; width: 2px; background: var(--line-strong);
}
.steps li:last-child::after { display: none; }
.steps li:last-child { padding-bottom: 0; }
.steps strong { display: block; font-family: var(--font-head); font-stretch: 108%; }
.steps strong { font-size: 1.2rem; margin-bottom: 4px; }
.steps span { color: var(--ink-2); }

.box-ink {
  background: var(--ink); color: var(--on-ink); border-radius: var(--radius); padding: 28px 24px;
  align-self: start; --focus: var(--blue-light);
}
.box-ink h3 { color: #fff; }
.box-ink ul { list-style: none; margin: 0; padding: 0; }
.box-ink li { padding: 12px 0 12px 32px; position: relative; border-top: 1px solid rgba(201, 211, 230, .22); color: var(--on-ink-2); }
.box-ink li::before {
  content: ""; position: absolute; left: 4px; top: 1.15em; width: 14px; height: 14px;
  background:
    linear-gradient(45deg, transparent 43%, var(--amber) 43%, var(--amber) 57%, transparent 57%),
    linear-gradient(-45deg, transparent 43%, var(--amber) 43%, var(--amber) 57%, transparent 57%);
}
.after-btn { margin-top: 14px; color: var(--ink-2); font-size: 1rem; }

/* Who we are */
.who > * { max-width: 46rem; }
.who p { font-size: 1.2rem; }

/* FAQ */
.faq { max-width: 50rem; border-top: 1px solid var(--line-strong); }
.faq details { border-bottom: 1px solid var(--line-strong); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary {
  gap: 20px;
  padding: 20px 0; min-height: var(--tap);
  font-family: var(--font-head); font-stretch: 106%; font-weight: 650; font-size: 1.18rem; line-height: 1.35;
}
.faq summary:hover { color: var(--blue-dark); }
.pm { position: relative; width: 32px; height: 32px; flex: none; border: 2px solid var(--ink); border-radius: 50%; }
.pm::before, .pm::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; background: currentColor;
  transform: translate(-50%, -50%); transition: transform .2s ease;
}
.pm::after { transform: translate(-50%, -50%) rotate(90deg); }
details[open] .pm::after { transform: translate(-50%, -50%) rotate(0deg); }
.faq details[open] .pm { background: var(--ink); color: #fff; }
.faq .answer { padding: 0 0 24px; color: var(--ink-2); max-width: 44rem; }

/* Booking */
.book-head { max-width: 40rem; }
.book-meta {
  display: inline-block; font-size: .95rem; font-weight: 700; letter-spacing: .02em;
  color: var(--ink); background: var(--blue-tint); border-radius: 8px; padding: 6px 12px; margin: 8px 0 16px;
}
.booking { background: var(--surface); border-radius: var(--radius); padding: 8px; margin-top: 12px; }
.booking iframe { min-height: 900px; }
.book-after { margin-top: 20px; color: var(--on-ink-2); }
.book-fallback { font-size: 1rem; margin-top: 8px; }

/* Proof page */
.cases { display: grid; gap: 24px; }
.case {
  padding: 26px 22px;
  display: grid; gap: 22px;
}
.case dl { margin: 0; display: grid; gap: 14px; }
.case dt { font-size: .85rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--blue-dark); }
.case dd { margin: 2px 0 0; color: var(--ink-2); }
.case-link { font-weight: 700; display: inline-flex; min-height: var(--tap); align-items: center; }

.grid-cards { columns: 1; column-gap: 20px; }
.grid-cards .card { margin-bottom: 20px; display: inline-block; width: 100%; }
.grid-cards .card-more { display: none; }
.grid-cards.is-open .card-more { display: inline-block; }
.wall-more { display: flex; justify-content: center; margin: 12px 0 0; }

/* Footer */
.site-foot { background: var(--ink); color: var(--on-ink-2); padding: 48px 0 40px; font-size: 1rem; border-top: 1px solid var(--line-on-ink); --focus: var(--blue-light); }
.site-foot a { color: #fff; }
.disclaimer { font-size: .875rem; line-height: 1.6; max-width: 52rem; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line-on-ink); }
.copyright { font-size: .875rem; margin-top: 16px; }

/* Sticky mobile bar */
.mobile-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
  padding: var(--bar-pad) 12px calc(var(--bar-pad) + env(safe-area-inset-bottom, 0px));
  background: var(--surface); border-top: 1px solid var(--line);
  box-shadow: 0 -6px 20px -12px rgba(19, 35, 63, .3);
  transition: transform .2s ease;
}
.mobile-bar .btn { min-height: var(--bar-btn); padding: 10px 12px; white-space: nowrap; }
.mobile-bar.is-hidden { transform: translateY(110%); visibility: hidden; }

/* Lightbox: image at its natural 530px width; the inner box scrolls both ways when the viewport is narrower */
.lightbox:not([open]) { display: none; }
.lightbox {
  border: 0; padding: 0; margin: 0; background: transparent;
  width: 100vw; max-width: 100vw;
  height: 100vh; height: 100dvh;
  max-height: 100vh; max-height: 100dvh;
}
.lightbox::backdrop { background: rgba(10, 18, 34, .86); }
.lightbox-inner {
  width: 100%; height: 100%; overflow: auto;
  display: flex; padding: 72px 12px 24px;
}
.lightbox-figure { margin: auto; }
.lightbox img {
  width: 554px; max-width: none; height: auto;
  background: var(--surface); border-radius: var(--radius-sm); padding: 12px;
}
.lightbox-close {
  position: fixed; top: 12px; right: 12px; z-index: 1; min-width: 48px; min-height: 48px; padding: 10px 18px;
  border-radius: 999px; border: 0; background: var(--surface); color: var(--ink); font: 700 1rem var(--font-body); cursor: pointer;
}
.lightbox-cap { color: #fff; margin-top: 12px; font-weight: 600; }

@media (max-width: 767px) {
  html { scroll-padding-bottom: calc(var(--bar-h) + 12px); }
}
@media (max-width: 359px) {
  .mobile-bar { gap: 8px; padding-left: 8px; padding-right: 8px; }
  .mobile-bar .btn { font-size: .95rem; gap: 6px; padding: 10px 8px; }
  .mobile-bar .btn svg { width: 18px; height: 18px; }
}

/* Tablet */
@media (min-width: 600px) {
  :root { --gutter: 32px; }
  .booking iframe { min-height: 700px; }
  .btn-row { flex-direction: row; flex-wrap: wrap; }
  .grid-cards { columns: 2; }
  .card-strip { grid-template-columns: 1fr 1fr; align-items: start; }
  .trust { grid-template-columns: 1fr 1fr 1fr; gap: 20px; }
}

@media (min-width: 768px) {
  body { padding-bottom: 0; }
  .mobile-bar { display: none; }
  .head-links .head-phone { display: inline-flex; }
  .section { padding: 96px 0; }
  .hero { padding: 72px 0 88px; }
  .door { padding: 32px 28px 28px; }
  .case { padding: 32px; }
}

/* Desktop */
@media (min-width: 960px) {
  .hero-grid { grid-template-columns: 1.55fr 1fr; gap: 64px; align-items: center; }
  .doors { grid-template-columns: repeat(3, 1fr); }
  .video-block { grid-template-columns: 380px 1fr; gap: 56px; }
  .video-frame video { max-width: none; } /* fill the 380px column regardless of viewport height */
  .steps-grid { grid-template-columns: 1.4fr 1fr; gap: 64px; }
  .grid-cards { columns: 3; }
  .case { grid-template-columns: 1fr 1fr; align-items: start; gap: 32px; }
}

@media (prefers-reduced-motion: reduce) {
  /* !important is needed so this beats the more specific component transition rules */
  *, *::before, *::after { transition: none !important; }
}
.book-fallback a { word-break: break-all; }
.logo span { white-space: nowrap; }
@media (max-width: 479px) {
  .logo { font-size: 1rem; gap: 8px; }
}
@media (max-width: 479px) {
  .hero { padding: 20px 0 32px; }
  .hero .eyebrow { font-size: .9rem; line-height: 1.4; margin-bottom: 14px; }
  .hero h1 { font-size: 1.85rem; line-height: 1.1; margin-bottom: 12px; }
  .hero-sub { font-size: 1rem; line-height: 1.5; margin-bottom: 14px; }
  .hero .btn-row { margin-top: 0; }
}
