/* ==========================================================================
   Homepage hero (Module 03). Implements DESIGN_SYSTEM.md (Module 02) tokens.
   Scoped to .hero-s so the rest of the site is unaffected until it is migrated.
   Fonts: Barlow + Barlow Condensed, self-hosted (SIL Open Font License).
   ========================================================================== */

@font-face { font-family: 'Barlow'; font-style: normal; font-weight: 400; font-display: swap; src: url('/fonts/barlow-400.woff2') format('woff2'); }
@font-face { font-family: 'Barlow'; font-style: normal; font-weight: 500; font-display: swap; src: url('/fonts/barlow-500.woff2') format('woff2'); }
@font-face { font-family: 'Barlow'; font-style: normal; font-weight: 600; font-display: swap; src: url('/fonts/barlow-600.woff2') format('woff2'); }
@font-face { font-family: 'Barlow Condensed'; font-style: normal; font-weight: 700; font-display: swap; src: url('/fonts/barlow-condensed-700.woff2') format('woff2'); }

.hero-s {
  /* colour tokens (Module 02, section 3) */
  --ds-ink-900: #14181C;
  --ds-ink-800: #1E252B;
  --ds-accent: #FFB400;
  --ds-accent-hover: #E6A100;
  --ds-bg: #FFFFFF;
  --ds-bg-alt: #F2F0EB;
  --ds-border: #D9D5CB;
  --ds-text: #1E252B;
  --ds-text-soft: #4A545C;
  --ds-on-dark: #F6F4EF;
  --ds-on-dark-soft: #B8C1C8;
  /* spacing scale (4px base) */
  --ds-sp-1: 4px; --ds-sp-2: 8px; --ds-sp-3: 12px; --ds-sp-4: 16px;
  --ds-sp-5: 24px; --ds-sp-6: 32px; --ds-sp-7: 48px; --ds-sp-8: 64px;
  /* radius and shadow */
  --ds-r-btn: 6px; --ds-r-card: 8px; --ds-r-field: 6px;
  --ds-shadow-md: 0 8px 20px rgba(20, 24, 28, 0.14);
  --ds-font-head: 'Barlow Condensed', 'Arial Narrow', Arial, sans-serif;
  --ds-font-body: 'Barlow', Arial, sans-serif;

  position: relative;
  z-index: 2;
  isolation: isolate;
  background: var(--ds-ink-900);
  color: var(--ds-on-dark);
  font-family: var(--ds-font-body);
  padding: var(--ds-sp-5) 0 0;
}

/* background photo + ink overlay (Module 02, Part C) */
.hero-s__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: 50% 55%;
}
.hero-s::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(20, 24, 28, 0.84);
}

.hero-s__inner {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--ds-sp-4);
  display: grid;
  gap: var(--ds-sp-5);
}

/* ---------- copy column ---------- */
.hero-s .hero-s__title {
  font-family: var(--ds-font-head);
  font-weight: 700;
  font-size: 40px;
  line-height: 1.05;
  letter-spacing: 0;
  text-transform: uppercase;
  color: var(--ds-on-dark);
  margin: 0 0 var(--ds-sp-3);
  text-wrap: balance;
}
.hero-s .hero-s__sub {
  font-size: 17px;
  line-height: 1.6;
  color: var(--ds-on-dark);
  max-width: 36em;
  margin: 0 0 var(--ds-sp-5);
}
.hero-s__actions { display: grid; gap: var(--ds-sp-2); }

/* buttons (Module 02, button system) */
.hero-s a.hero-s__btn,
.hero-s button.hero-s__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 0 var(--ds-sp-5);
  border: 2px solid transparent;
  border-radius: var(--ds-r-btn);
  font-family: var(--ds-font-head);
  font-weight: 700;
  font-size: 19px;
  line-height: 1;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 150ms ease-out, color 150ms ease-out;
}
.hero-s a.hero-s__btn--primary,
.hero-s button.hero-s__btn--primary { background: var(--ds-accent); color: var(--ds-ink-900); }
.hero-s a.hero-s__btn--primary:hover,
.hero-s button.hero-s__btn--primary:hover { background: var(--ds-accent-hover); color: var(--ds-ink-900); }
.hero-s a.hero-s__btn--outline { border-color: var(--ds-on-dark); color: var(--ds-on-dark); background: transparent; }
.hero-s a.hero-s__btn--outline:hover { background: var(--ds-on-dark); color: var(--ds-ink-900); }
.hero-s button.hero-s__btn { width: 100%; }

/* focus (Module 02, section 10): accent ring on dark, ink ring on the white card */
.hero-s :focus-visible { outline: 3px solid var(--ds-accent); outline-offset: 2px; }
.hero-s__card :focus-visible { outline-color: var(--ds-ink-900); }

/* trust micro-row (verified items only) */
.hero-s__trust {
  list-style: none;
  margin: var(--ds-sp-5) 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: var(--ds-sp-2) var(--ds-sp-4);
}
.hero-s__trust li {
  display: inline-flex;
  align-items: center;
  gap: var(--ds-sp-2);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--ds-on-dark);
}
.hero-s__trust svg {
  flex: none;
  width: 20px;
  height: 20px;
  display: block;
  fill: none;
  stroke: var(--ds-accent);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- quote card ---------- */
.hero-s__card-wrap { scroll-margin-top: 96px; }
.hero-s__card {
  position: relative;
  /* reserved height: the real embed (GHL or other) must fit inside without layout shift */
  min-height: 460px;
  scroll-margin-top: 96px;
  background: var(--ds-bg);
  color: var(--ds-text);
  border: 1px solid var(--ds-border);
  border-radius: var(--ds-r-card);
  box-shadow: var(--ds-shadow-md);
  padding: var(--ds-sp-5);
  margin-bottom: calc(-1 * var(--ds-sp-6));
}
.hero-s .hero-s__card-title {
  font-family: var(--ds-font-head);
  font-weight: 700;
  font-size: 26px;
  line-height: 1.2;
  letter-spacing: 0;
  color: var(--ds-ink-900);
  margin: 0 0 var(--ds-sp-4);
}
.hero-s__field { margin: 0 0 var(--ds-sp-4); }
.hero-s__field label {
  display: block;
  margin: 0 0 var(--ds-sp-3);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--ds-text);
}
.hero-s__req { font-weight: 400; color: var(--ds-text-soft); }
.hero-s__field input {
  display: block;
  width: 100%;
  height: 56px;
  padding: 0 var(--ds-sp-4);
  background: var(--ds-bg-alt);
  border: 1px solid var(--ds-border);
  border-radius: var(--ds-r-field);
  font-family: var(--ds-font-body);
  font-size: 17px;
  line-height: 1.4;
  color: var(--ds-text);
}
.hero-s__field input:focus { border-color: var(--ds-ink-900); }
.hero-s .hero-s__fine {
  margin: var(--ds-sp-3) 0 0;
  font-size: 14px;
  line-height: 1.4;
  color: var(--ds-text-soft);
}
.hero-s .hero-s__fine a { color: var(--ds-ink-900); text-decoration: underline; }
.hero-s .hero-s__fine a:hover { color: var(--ds-ink-900); }

/* "Get a Quote" scroll button: mobile only (form is visible from 768px) */
@media (min-width: 768px) {
  .hero-s__quote-btn { display: none !important; }
  .hero-s__inner { padding: 0 var(--ds-sp-5); }
  .hero-s__card { max-width: 560px; }
  .hero-s__actions { display: flex; }
}

/* desktop: two columns, form to the right, no card overlap */
@media (min-width: 1024px) {
  .hero-s { padding: var(--ds-sp-8) 0; }
  .hero-s::before { background: linear-gradient(90deg, rgba(20, 24, 28, 0.86) 0%, rgba(20, 24, 28, 0.86) 62%, rgba(20, 24, 28, 0.5) 100%); }
  .hero-s__inner { padding: 0 var(--ds-sp-6); grid-template-columns: 7fr 5fr; gap: var(--ds-sp-7); align-items: center; }
  .hero-s .hero-s__title { font-size: 64px; line-height: 1; }
  .hero-s .hero-s__sub { font-size: 18px; }
  .hero-s__card-wrap { justify-self: end; width: 100%; max-width: 480px; }
  .hero-s__card { max-width: none; margin-bottom: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-s a.hero-s__btn, .hero-s button.hero-s__btn { transition: none; }
}

/* ==========================================================================
   Module 04: hero propagation. Same tokens, same components; layout variants only.
   ========================================================================== */

/* eyebrow (Module 02 type scale) */
.hero-s .hero-s__eyebrow {
  margin: 0 0 var(--ds-sp-2);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ds-on-dark-soft);
}
.hero-s .hero-s__eyebrow a { color: inherit; text-decoration: underline; }
.hero-s .hero-s__eyebrow a:hover { color: var(--ds-on-dark); }

/* textarea for the full contact form (same field style as inputs) */
.hero-s__field textarea {
  display: block;
  width: 100%;
  min-height: 120px;
  padding: var(--ds-sp-3) var(--ds-sp-4);
  background: var(--ds-bg-alt);
  border: 1px solid var(--ds-border);
  border-radius: var(--ds-r-field);
  font-family: var(--ds-font-body);
  font-size: 17px;
  line-height: 1.4;
  color: var(--ds-text);
  resize: vertical;
}
.hero-s__field textarea:focus { border-color: var(--ds-ink-900); }

/* no approved photo available: ink background only */
.hero-s--plain .hero-s__bg { display: none; }

/* about: CTA block instead of an in-hero form (button visible at every width) */
.hero-s--cta { padding-bottom: var(--ds-sp-7); }
.hero-s.hero-s--cta .hero-s__quote-btn { display: inline-flex !important; }
.hero-s--cta .hero-s__inner { grid-template-columns: 1fr; }
.hero-s--cta .hero-s__copy { max-width: 720px; }

/* contact: tall form, two columns from tablet width so the whole form stays above the fold */
@media (min-width: 768px) {
  .hero-s--tall { padding-bottom: var(--ds-sp-6); }
  .hero-s--tall .hero-s__inner { grid-template-columns: 1fr 1fr; align-items: start; gap: var(--ds-sp-5); }
  .hero-s--tall .hero-s__card { max-width: none; margin-bottom: 0; }
}
@media (min-width: 1024px) {
  .hero-s--tall { padding-bottom: var(--ds-sp-8); }
  .hero-s--tall .hero-s__inner { grid-template-columns: 7fr 5fr; align-items: center; gap: var(--ds-sp-7); }
}

/* "Get a free quote" button that replaces the duplicate form further down the page */
.quote-cta { display: block; }
.quote-cta a.quote-cta__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 0 24px;
  border: 2px solid transparent;
  border-radius: 6px;
  background: #FFB400;
  color: #14181C;
  font-family: 'Barlow Condensed', 'Arial Narrow', Arial, sans-serif;
  font-weight: 700;
  font-size: 19px;
  line-height: 1;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background-color 150ms ease-out;
}
.quote-cta a.quote-cta__btn:hover { background: #E6A100; color: #14181C; }
.quote-cta a.quote-cta__btn:focus-visible { outline: 3px solid #FFB400; outline-offset: 2px; }
@media (max-width: 639.98px) { .quote-cta a.quote-cta__btn { width: 100%; } }
@media (prefers-reduced-motion: reduce) { .quote-cta a.quote-cta__btn { transition: none; } }

/* ==========================================================================
   Homepage Service Overview (Pattern 1: full copy in cards). Module 02 tokens.
   Service card = image card (B3): 3:2 image, H3, existing copy, text link.
   ========================================================================== */
.svc-s {
  --ds-ink-900: #14181C;
  --ds-accent-text: #8A5A00;
  --ds-bg: #FFFFFF;
  --ds-bg-alt: #F2F0EB;
  --ds-border: #D9D5CB;
  --ds-text: #1E252B;
  --ds-text-soft: #4A545C;
  --ds-sp-2: 8px; --ds-sp-3: 12px; --ds-sp-4: 16px; --ds-sp-5: 24px; --ds-sp-6: 32px; --ds-sp-7: 48px; --ds-sp-8: 64px; --ds-sp-9: 96px;
  --ds-font-head: 'Barlow Condensed', 'Arial Narrow', Arial, sans-serif;
  --ds-font-body: 'Barlow', Arial, sans-serif;
  background: var(--ds-bg-alt);
  color: var(--ds-text);
  font-family: var(--ds-font-body);
  padding: var(--ds-sp-7) 0;
}
.svc-s__inner { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 var(--ds-sp-4); }
.svc-s__head { max-width: 720px; margin: 0 0 var(--ds-sp-6); }
.svc-s .svc-s__eyebrow {
  margin: 0 0 var(--ds-sp-2);
  font-size: 13px; font-weight: 600; line-height: 1.3; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ds-accent-text);
}
.svc-s .svc-s__title {
  margin: 0 0 var(--ds-sp-3);
  font-family: var(--ds-font-head); font-weight: 700; font-size: 30px; line-height: 1.1; letter-spacing: 0;
  color: var(--ds-ink-900);
}
.svc-s .svc-s__intro { margin: 0; font-size: 17px; line-height: 1.6; color: var(--ds-text-soft); max-width: 36em; }

.svc-s__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr; gap: var(--ds-sp-4); }
.svc-s__card {
  position: relative;
  display: flex; flex-direction: column;
  background: var(--ds-bg);
  border: 1px solid var(--ds-border);
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(20, 24, 28, 0.10);
  overflow: hidden;
  transition: box-shadow 200ms ease-out, transform 200ms ease-out;
}
.svc-s__img { aspect-ratio: 3 / 2; overflow: hidden; background: var(--ds-bg-alt); }
.svc-s__img img { display: block; width: 100%; height: 100%; max-width: none; object-fit: cover; }
.svc-s__body { display: flex; flex-direction: column; flex: 1; padding: var(--ds-sp-4); }
.svc-s .svc-s__name {
  margin: 0 0 var(--ds-sp-2);
  font-family: var(--ds-font-head); font-weight: 600; font-size: 22px; line-height: 1.2; letter-spacing: 0;
  color: var(--ds-ink-900);
}
.svc-s .svc-s__body p { margin: 0 0 var(--ds-sp-4); font-size: 17px; line-height: 1.6; color: var(--ds-text); }
.svc-s .svc-s__body p a { position: relative; z-index: 2; color: var(--ds-ink-900); text-decoration: underline; text-underline-offset: 3px; }
.svc-s .svc-s__body p a:hover { color: var(--ds-accent-text); }

/* text link; its ::after stretches over the whole card so the card is one tap target */
.svc-s a.svc-s__link {
  margin-top: auto;
  display: inline-flex; align-items: center; gap: var(--ds-sp-2);
  min-height: 48px;
  font-size: 17px; font-weight: 600; line-height: 1.3;
  color: var(--ds-ink-900); text-decoration: underline; text-underline-offset: 3px;
  transition: color 150ms ease-out;
}
.svc-s a.svc-s__link::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.svc-s a.svc-s__link:hover { color: var(--ds-accent-text); }
.svc-s a.svc-s__link svg { flex: none; width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.svc-s a.svc-s__link:focus-visible { outline: 3px solid var(--ds-ink-900); outline-offset: 2px; }
.svc-s .svc-s__body p a:focus-visible { outline: 3px solid var(--ds-ink-900); outline-offset: 2px; }
.svc-s__card:has(a.svc-s__link:focus-visible) { outline: 3px solid var(--ds-ink-900); outline-offset: 2px; }

@media (min-width: 640px) {
  .svc-s__list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--ds-sp-5); }
  .svc-s__body { padding: var(--ds-sp-5); }
}
@media (min-width: 768px) {
  .svc-s { padding: var(--ds-sp-8) 0; }
  .svc-s__inner { padding: 0 var(--ds-sp-5); }
}
@media (min-width: 1024px) {
  .svc-s { padding: var(--ds-sp-9) 0; }
  .svc-s__inner { padding: 0 var(--ds-sp-6); }
  .svc-s .svc-s__title { font-size: 40px; }
  .svc-s .svc-s__name { font-size: 26px; }
  .svc-s__list { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (hover: hover) and (min-width: 1024px) {
  .svc-s__card:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(20, 24, 28, 0.14); }
}
@media (prefers-reduced-motion: reduce) {
  .svc-s__card, .svc-s a.svc-s__link { transition: none; }
  .svc-s__card:hover { transform: none; }
}

/* ==========================================================================
   GoHighLevel form container (single-iframe policy). The embed renders its own
   card, so this wrapper adds no chrome: it only reserves height (no layout
   shift) and sets the width. Measured embed heights: 586px desktop, 590px
   tablet, 615px mobile. The iframe and script are never altered.
   ========================================================================== */
.hero-s .contact-form-section { scroll-margin-top: 96px; }
.hero-s .contact-form-section .hero-s__card-title { color: var(--ds-on-dark); margin: 0 0 var(--ds-sp-3); }
.hero-s .contact-form-wrapper { min-height: 630px; }
.hero-s .contact-form-wrapper iframe { display: block; width: 100%; max-width: none; border: 0; }
@media (min-width: 768px) {
  .hero-s .contact-form-section { max-width: 560px; }
  .hero-s .contact-form-wrapper { min-height: 600px; }
}
@media (min-width: 1024px) {
  .hero-s .contact-form-section { max-width: 480px; }
}
/* the embed carries ~48px of its own transparent top padding: pull the heading down against its card */
.hero-s .contact-form-section .hero-s__card-title { margin: 0 0 -24px; position: relative; z-index: 1; }
