/* Intersect Acquisitions
   Layout concept: one strict left edge, wide margins, a 12-column grid, a full-bleed
   cinematic hero with the address bar, and a single path to the offer form.
   Single deliberate light theme; every color comes from the tokens below. */

@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-var.woff2") format("woff2");
  font-weight: 400 700;
  font-stretch: 100% 125%;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Libre Caslon Display";
  src: url("../fonts/libre-caslon-display.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #f2f3ef;
  --stone: #e5e8e2;
  --white: #ffffff;
  --ink: #18211d;
  --ink-soft: #4a5550;
  --rule: #c9cfc8;
  --field: #7f8a84;
  --green: #1e3a2f;
  --green-deep: #13261f;
  --green-hover: #2a4e3f;
  --patina: #3f7563;
  --placeholder: #66716b;
  --on-dark: #f2f3ef;
  --on-dark-soft: #b9c5be;
  --on-dark-line: rgba(242, 243, 239, 0.32);
  --error: #a3341f;
  --shade: rgba(10, 16, 13, 0.82);

  --font-display: "Libre Caslon Display", "Libre Caslon Text", Georgia, "Times New Roman", serif;
  --font-text: "Archivo", "Helvetica Neue", Arial, system-ui, sans-serif;

  --gutter: clamp(1.25rem, 4.5vw, 3.5rem);
  --section-pad: clamp(4.5rem, 2.5rem + 7vw, 9rem);
  color-scheme: light;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: 1.125rem;
  line-height: 1.6;
  font-weight: 400;
  font-stretch: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
@media (min-width: 64rem) { body { font-size: 1.1875rem; } }
img, video, svg { display: block; max-width: 100%; }
img, video { height: auto; }
p { margin: 0; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--patina); outline-offset: 3px; }
.hero :focus-visible,
.site-header:not(.is-fixed) :focus-visible,
.offer-copy :focus-visible { outline-color: var(--on-dark); }
.nowrap, a[href^="tel:"] { white-space: nowrap; }
::selection { background: rgba(63, 117, 99, 0.25); }
[id] { scroll-margin-top: 5rem; }

h1, h2 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
h2 { font-size: clamp(2.125rem, 1.35rem + 2.6vw, 3.75rem); line-height: 1.04; }
h3 {
  margin: 0;
  font-family: var(--font-text);
  font-weight: 600;
  font-stretch: 104%;
  font-size: 1.1875rem;
  line-height: 1.3;
  text-wrap: balance;
}
.lede {
  font-size: clamp(1.1875rem, 1.05rem + 0.45vw, 1.4375rem);
  line-height: 1.5;
  color: var(--ink-soft);
  max-width: 34em;
}

.wrap {
  width: 100%;
  max-width: 78rem;
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(1.5rem, 3.5vw, 4rem);
  row-gap: clamp(2rem, 4vw, 3.5rem);
}
.grid > * { grid-column: 1 / -1; min-width: 0; }
.section { padding-block: var(--section-pad); }

.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--paper); color: var(--ink);
  padding: 0.6rem 1rem; font-weight: 600;
}
.skip-link:focus { top: 1rem; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 3.25rem;
  padding: 0.85rem 1.6rem;
  border: 1px solid transparent;
  border-radius: 2px;
  font: inherit;
  font-weight: 600;
  font-stretch: 108%;
  font-size: 1.0625rem;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.btn:hover { text-decoration: none; }
.btn-light { background: var(--paper); color: var(--green); }
.btn-light:hover { background: var(--white); }
.btn-ghost { color: var(--on-dark); border-color: rgba(242, 243, 239, 0.6); }
.btn-ghost:hover { border-color: var(--on-dark); background: rgba(242, 243, 239, 0.1); }
.btn-dark { background: var(--green); color: var(--on-dark); }
.btn-dark:hover { background: var(--green-hover); }
.btn-dark:disabled { opacity: 0.7; cursor: progress; }
.btn-small { min-height: 2.5rem; padding: 0.5rem 1.05rem; font-size: 0.9375rem; }
.btn-on-dark { background: var(--paper); color: var(--green); }
.btn-on-dark:hover { background: var(--white); }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: absolute; top: 0; left: 0; right: 0; z-index: 20;
  color: var(--on-dark);
  padding-top: env(safe-area-inset-top, 0px);
}
.header-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem; min-height: 4.5rem;
}
.wordmark {
  display: inline-flex; align-items: center; gap: 0.65rem;
  color: inherit; text-decoration: none; white-space: nowrap;
  font-weight: 600; font-stretch: 114%; font-size: 1.0625rem; letter-spacing: 0.01em;
}
.wordmark .mark { flex: none; }
.site-nav { display: none; gap: 2rem; font-size: 0.9375rem; font-weight: 500; font-stretch: 106%; }
.site-nav a { text-decoration: none; }
.site-nav a:hover { text-decoration: underline; }
.header-actions { display: flex; align-items: center; gap: 1.25rem; }
.header-phone {
  display: none; text-decoration: none; white-space: nowrap;
  font-weight: 500; font-stretch: 106%; font-size: 0.9375rem; font-variant-numeric: tabular-nums;
}
.header-phone:hover { text-decoration: underline; }
@media (min-width: 48rem) { .header-phone { display: inline; } }
@media (min-width: 66rem) { .site-nav { display: flex; } }
@media (max-width: 26rem) {
  .header-row { gap: 0.75rem; }
  .wordmark { gap: 0.5rem; font-size: 0.9375rem; }
  .header-actions .btn-small { padding-inline: 0.85rem; }
}
@media (max-width: 24rem) {
  .header-row { gap: 0.5rem; }
  .wordmark { gap: 0.45rem; font-size: 0.875rem; font-stretch: 100%; letter-spacing: 0; }
  .header-actions .btn-small { padding-inline: 0.8rem; font-size: 0.875rem; }
}

.js .site-header.is-fixed {
  position: fixed;
  top: 0;
  color: var(--ink);
  background: var(--paper);
  background: color-mix(in srgb, var(--paper) 95%, transparent);
  -webkit-backdrop-filter: saturate(1.2) blur(10px);
  backdrop-filter: saturate(1.2) blur(10px);
  box-shadow: 0 1px 0 var(--rule);
  animation: header-in 0.28s ease both;
}
.js .site-header.is-fixed .btn-on-dark { background: var(--green); color: var(--on-dark); }
.js .site-header.is-fixed .btn-on-dark:hover { background: var(--green-hover); }
@keyframes header-in { from { transform: translateY(-100%); } to { transform: translateY(0); } }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  isolation: isolate;
  display: flex; align-items: flex-end;
  min-height: clamp(36rem, 92vh, 60rem);
  min-height: clamp(36rem, 92svh, 60rem);
  overflow: hidden;
  color: var(--on-dark);
  background: var(--green-deep);
}
.hero-media { position: absolute; inset: 0; z-index: -2; }
/* Invisible marker site.js watches to know when the hero has scrolled away. */
.hero-sentinel { position: absolute; left: 0; bottom: 80px; width: 1px; height: 1px; pointer-events: none; }
.hero-media picture,
.hero-poster,
.hero-video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.hero-poster { object-position: 50% 45%; }
.hero-video { opacity: 0; transition: opacity 1.2s ease; }
.hero-video.is-playing { opacity: 1; }
.hero::before {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(10, 16, 13, 0.5) 0%, rgba(10, 16, 13, 0.18) 55%, rgba(10, 16, 13, 0) 100%),
    linear-gradient(180deg,
      rgba(10, 16, 13, 0.66) 0%,
      rgba(10, 16, 13, 0.22) 18%,
      rgba(10, 16, 13, 0.2) 36%,
      rgba(10, 16, 13, 0.58) 64%,
      var(--shade) 100%);
}
@media (max-width: 47.99rem) {
  .hero::before {
    background: linear-gradient(180deg,
      rgba(10, 16, 13, 0.66) 0%,
      rgba(10, 16, 13, 0.38) 22%,
      rgba(10, 16, 13, 0.55) 45%,
      rgba(10, 16, 13, 0.78) 70%,
      rgba(10, 16, 13, 0.88) 100%);
  }
}
.hero-content { padding-block: 9rem clamp(3rem, 8vh, 5.5rem); }
.hero h1 {
  font-size: clamp(2.75rem, 1.3rem + 5.4vw, 6rem);
  line-height: 0.98;
  max-width: 11.5em;
}
.hero-lede {
  margin-top: 1.6rem;
  max-width: 35em;
  font-size: clamp(1.125rem, 1rem + 0.5vw, 1.375rem);
  line-height: 1.5;
  color: var(--on-dark);
  text-shadow: 0 1px 18px rgba(10, 16, 13, 0.45);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem 1rem; margin-top: 2.25rem; }
.hero-phone {
  margin-top: 1.25rem;
  max-width: calc(100% - 3.5rem);
  font-size: 0.9375rem;
  color: var(--on-dark-soft);
}
.hero-phone a { color: var(--on-dark); font-weight: 500; white-space: nowrap; }
.video-toggle {
  position: absolute;
  right: var(--gutter);
  bottom: clamp(3rem, 8vh, 5.5rem);
  width: 2.75rem; height: 2.75rem;
  display: grid; place-items: center;
  padding: 0;
  border: 1px solid rgba(242, 243, 239, 0.55);
  border-radius: 50%;
  background: rgba(10, 16, 13, 0.35);
  color: var(--on-dark);
  cursor: pointer;
}
.video-toggle:hover { background: rgba(10, 16, 13, 0.55); }
.video-toggle svg { fill: currentColor; }
.video-toggle .i-play { display: none; }
.video-toggle[data-state="paused"] .i-pause { display: none; }
.video-toggle[data-state="paused"] .i-play { display: inline; }

/* ---------- Hero address bar ---------- */
.hero-start { margin-top: 2.25rem; max-width: 42rem; }
.hero-start-label { margin-bottom: 0.6rem; font-weight: 600; font-stretch: 106%; font-size: 1rem; color: var(--on-dark); }
.hero-start-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 7rem auto;
  gap: 0.4rem;
  padding: 0.4rem;
  background: var(--white);
  border-radius: 4px;
  box-shadow: 0 12px 40px rgba(10, 16, 13, 0.28);
}
.hero-start input {
  width: 100%;
  min-height: 3.25rem;
  padding: 0.75rem 0.9rem;
  border: 0;
  border-radius: 2px;
  background: var(--white);
  color: var(--ink);
  font: inherit;
  font-size: 1.0625rem;
}
.hero-start input::placeholder { color: var(--placeholder); opacity: 1; }
.hero-start #h-zip { border-left: 1px solid var(--rule); border-radius: 0; }
.hero-start input:focus-visible { outline: 2px solid var(--patina); outline-offset: -2px; }
.hero-start .btn { min-height: 3.25rem; }
@media (max-width: 40rem) {
  .hero-start-row { grid-template-columns: minmax(0, 1fr) 6.25rem; }
  .hero-start-row .btn { grid-column: 1 / -1; }
}

/* ---------- Why ---------- */
.why { background: var(--paper); }
.why h2 { max-width: 14em; }
.why-grid {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  display: grid; grid-template-columns: minmax(0, 1fr);
  column-gap: clamp(2rem, 4vw, 4rem);
}
@media (min-width: 40rem) { .why-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 64rem) { .why-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.why-item { display: grid; gap: 0.6rem; align-content: start; padding-block: 1.6rem 2.25rem; border-top: 1px solid var(--ink); }
.why-item p { color: var(--ink-soft); }

/* ---------- Photo band ---------- */
.band { margin: 0; background: var(--green-deep); }
.band img { width: 100%; height: clamp(16rem, 40vw, 34rem); object-fit: cover; object-position: 50% 55%; }

/* ---------- Offer ---------- */
.offer { background: var(--green); color: var(--on-dark); }
.offer-copy { display: grid; gap: 2rem; align-content: start; }
.offer-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.5rem; }
.offer-steps li { display: grid; grid-template-columns: 2.6rem minmax(0, 1fr); gap: 1rem; align-items: start; }
.offer-steps .step-num {
  display: grid; place-items: center;
  width: 2.6rem; height: 2.6rem;
  border: 1px solid var(--on-dark-line);
  border-radius: 50%;
  font-family: var(--font-display);
  font-size: 1.375rem; line-height: 1;
}
.offer-steps h3 { padding-top: 0.35rem; color: var(--on-dark); }
.offer-steps p { color: var(--on-dark-soft); }
.offer-call { color: var(--on-dark-soft); }
.offer-call a { color: var(--on-dark); font-weight: 500; }
.form-card {
  background: var(--white);
  color: var(--ink);
  border-radius: 4px;
  padding: clamp(1.5rem, 3.5vw, 2.75rem);
}
@media (min-width: 60rem) {
  .offer-copy { grid-column: 1 / span 5; position: sticky; top: 7rem; align-self: start; }
  .form-card { grid-column: 7 / -1; }
}
.lead-form { display: grid; gap: 1.25rem; }
.field { display: grid; gap: 0.4rem; min-width: 0; align-content: start; }
.field-row { display: grid; gap: 1.25rem; align-items: start; }
@media (min-width: 40rem) { .field-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.lead-form .field-row-address { grid-template-columns: minmax(0, 1fr) 7.5rem; row-gap: 0.4rem; }
.field-row-hint { grid-column: 1 / -1; }
.lead-form label { font-weight: 600; font-stretch: 104%; font-size: 1rem; line-height: 1.35; }
.lead-form .optional { font-weight: 400; color: var(--ink-soft); }
.lead-form input[type="text"],
.lead-form input[type="tel"],
.lead-form input[type="email"],
.lead-form select {
  width: 100%;
  min-height: 3.15rem;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--field);
  border-radius: 2px;
  background: var(--white);
  color: var(--ink);
  font: inherit;
  font-size: 1.0625rem;
}
.lead-form select { appearance: none; -webkit-appearance: none; padding-right: 2.5rem;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%);
  background-position: calc(100% - 1.25rem) 55%, calc(100% - 0.9rem) 55%;
  background-size: 0.36rem 0.36rem, 0.36rem 0.36rem;
  background-repeat: no-repeat;
}
.lead-form input:focus-visible,
.lead-form select:focus-visible { outline: 2px solid var(--patina); outline-offset: 1px; border-color: var(--patina); }
.lead-form [aria-invalid="true"] { border-color: var(--error); }
.hint { font-size: 0.9375rem; color: var(--ink-soft); }
.field-error { font-size: 0.9375rem; font-weight: 500; color: var(--error); }
.hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.consent {
  display: grid; gap: 0.75rem;
  padding: 1rem 1.1rem;
  background: var(--paper);
  border-radius: 2px;
  font-size: 0.875rem; line-height: 1.5;
  color: var(--ink-soft);
}
.check { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0.75rem; align-items: start; }
.check input { width: 1.25rem; height: 1.25rem; margin: 0.1rem 0 0; accent-color: var(--green); }
.lead-form .check label { font-weight: 400; font-stretch: 100%; font-size: 0.875rem; line-height: 1.5; color: var(--ink-soft); }
.form-note { font-size: 0.875rem; color: var(--ink-soft); }
.form-error { color: var(--error); font-weight: 500; }
.form-error:focus { outline: none; }
.form-success { display: grid; gap: 1rem; }
.form-success h3 { font-family: var(--font-display); font-weight: 400; font-stretch: 100%; font-size: clamp(1.75rem, 1.4rem + 1vw, 2.25rem); line-height: 1.1; }
.form-success p { color: var(--ink-soft); }
.form-success a, .lead-form a { color: var(--green); }

/* ---------- FAQ ---------- */
.faq { background: var(--paper); }
.faq-intro { display: grid; gap: 1.25rem; align-content: start; }
.faq-intro p { color: var(--ink-soft); max-width: 24em; }
.faq-intro a { color: var(--green); font-weight: 500; overflow-wrap: anywhere; }
.faq-list { border-top: 1px solid var(--ink); }
.faq-list details { border-bottom: 1px solid var(--rule); }
.faq-list summary {
  display: flex; justify-content: space-between; align-items: baseline; gap: 1.5rem;
  padding: 1.3rem 0;
  list-style: none;
  cursor: pointer;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary h3 { font-size: 1.1875rem; }
.faq-list summary::after {
  content: "";
  flex: none;
  width: 0.8rem; height: 0.8rem;
  color: var(--patina);
  background:
    linear-gradient(currentColor, currentColor) center / 100% 1.5px no-repeat,
    linear-gradient(currentColor, currentColor) center / 1.5px 100% no-repeat;
  transition: transform 0.2s ease;
}
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list summary:hover h3 { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
.faq-list details p { padding-bottom: 1.5rem; max-width: 40em; color: var(--ink-soft); }
.faq-list details a { color: var(--green); }
@media (min-width: 60rem) {
  .faq-intro { grid-column: 1 / span 4; position: sticky; top: 7rem; align-self: start; }
  .faq-list { grid-column: 6 / -1; }
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--stone);
  color: var(--ink);
  padding-block: clamp(3.5rem, 6vw, 5rem) clamp(2rem, 4vw, 3rem);
}
.footer-grid { display: grid; gap: 2rem; }
@media (min-width: 48rem) { .footer-grid { grid-template-columns: 2fr 1fr 1fr; } }
.footer-about p { margin-top: 1rem; color: var(--ink-soft); max-width: 30em; }
.footer-label { margin-bottom: 0.4rem; font-weight: 600; font-stretch: 108%; font-size: 0.9375rem; }
.footer-contact a, .footer-links a { text-decoration: none; overflow-wrap: anywhere; }
.footer-contact a:hover, .footer-links a:hover { text-decoration: underline; }
.disclosure {
  margin-top: 2.5rem; padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
  max-width: 62em;
  font-size: 0.875rem; line-height: 1.55;
  color: var(--ink-soft);
}
.copyright { margin-top: 1rem; font-size: 0.875rem; color: var(--ink-soft); }

/* ---------- Mobile call to action ---------- */
.mobile-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  padding: 0.75rem var(--gutter) calc(0.75rem + env(safe-area-inset-bottom, 0px));
  background: var(--paper);
  background: color-mix(in srgb, var(--paper) 95%, transparent);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: 0 -1px 0 var(--rule);
  transform: translateY(110%);
  transition: transform 0.3s ease;
}
.mobile-cta.is-visible { transform: translateY(0); }
@media (min-width: 48rem) { .mobile-cta { display: none; } }
@media (max-width: 47.99rem) { .site-footer { padding-bottom: calc(clamp(2rem, 4vw, 3rem) + 4.5rem); } }

/* ---------- Legal pages ---------- */
.legal-header { position: sticky; top: 0; color: var(--ink); background: var(--paper); box-shadow: 0 1px 0 var(--rule); }
.legal-header .btn-on-dark { background: var(--green); color: var(--on-dark); }
.legal { padding-block: clamp(3rem, 6vw, 5.5rem) var(--section-pad); }
.legal-body { max-width: 44rem; }
.legal-body h1 { font-size: clamp(2.5rem, 1.6rem + 3vw, 4rem); line-height: 1.02; }
.legal-body h2 { margin-top: 2.75rem; font-size: clamp(1.5rem, 1.25rem + 0.8vw, 2rem); line-height: 1.15; }
.legal-body h3 { margin-top: 1.75rem; }
.legal-body p, .legal-body ul, .legal-body ol { margin-top: 1rem; }
.legal-body ul, .legal-body ol { padding-left: 1.25rem; }
.legal-body li + li { margin-top: 0.4rem; }
.legal-body .updated { margin-top: 1rem; color: var(--ink-soft); }
.legal-body a { color: var(--green); }

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
