/* Brand refinements and responsive layout corrections. */
:root {
  --ink: #030504;
  --charcoal: #0d100e;
  --panel: #161a17;
  --green: #83f000;
  --green-dark: #367d0b;
  --cream: #eef0ed;
  --muted: #aeb5b0;
  --silver: #cbd0d2;
  --steel: #858d90;
  --line: rgba(203, 208, 210, .19);
}

html, body { max-width: 100%; overflow-x: clip; }
body { background: linear-gradient(180deg, #f5f6f4 0%, #e8ebe8 100%); }
.reveal.hero-content { opacity: 1; transform: none; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 4px;
}

/* Header */
.header-inner { min-width: 0; }
.brand-logo { flex: 0 0 auto; width: 118px; height: 78px; overflow: visible; }
.brand-logo img { width: 100%; height: 100%; object-fit: contain; }
.site-header .brand-logo { margin: 3px 8px 0 0; }
.site-header.scrolled { border-bottom-color: rgba(203, 208, 210, .2); }
.site-nav { min-width: 0; }

/* Hero */
.hero {
  height: auto;
  max-height: none;
  min-height: min(900px, 100svh);
  padding: 124px 0 58px;
  align-items: center;
}
.hero-content {
  width: min(var(--wrap), calc(100% - 48px));
  padding: 0 clamp(360px, 37vw, 545px) 0 0;
}
.hero h1 {
  max-width: 760px;
  font-size: clamp(3.55rem, 4.45vw, 5.35rem);
  line-height: .94;
  overflow-wrap: normal;
}
.hero h1 span, .hero h1 em { display: block; }
.hero h1 em { margin-top: .08em; }
.hero-logo {
  position: absolute;
  z-index: 2;
  top: 48%;
  right: -6px;
  width: clamp(345px, 35vw, 520px);
  height: auto;
  transform: translateY(-50%);
  filter: drop-shadow(0 24px 34px rgba(0, 0, 0, .52));
}
.hero-shade { background: linear-gradient(90deg,rgba(2,4,3,.97) 0%,rgba(3,7,4,.84) 47%,rgba(3,7,4,.46) 78%),linear-gradient(0deg,rgba(2,4,3,.68),transparent 48%); }
.hero-copy { max-width: 650px; margin: 24px 0 28px; color: var(--silver); }
.hero-actions { flex-wrap: wrap; row-gap: 12px; }
.trust-row { max-width: 760px; margin-top: 46px; gap: 18px 30px; flex-wrap: wrap; color: #c2c7c4; }
.trust-row span { min-width: 0; }
@media (min-width: 1081px) {
  .trust-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* Body layout safeguards */
.split > *, .section-top > *, .commercial > *, .quote-grid > *, .footer-grid > * { min-width: 0; }
.section-heading h2, .section-top h2, .commercial-copy h2, .quote-copy h2, .contact-strip h2 { overflow-wrap: break-word; }
.direct-contact strong, .footer-column a { overflow-wrap: anywhere; }
.service-grid { align-items: stretch; }
.service-card { min-height: 270px; background: #0e120f; }
.service-card:hover { background: #172018; }
.service-card:not(.feature) { display: flex; flex-direction: column; justify-content: flex-end; }
.service-card.feature div { bottom: 36px; }
.service-card.feature h3 { max-width: 360px; }
.commercial { background: linear-gradient(135deg, #eef1ed, #cfd4d0); }
.commercial-note { padding-top: 20px; border-top: 1px solid #bdc8ba; }
.commercial-note strong { display: block; margin-bottom: 4px; color: var(--ink); }
.image-badge { box-shadow: inset 0 1px 0 rgba(255,255,255,.55); }
.quote-form { border: 1px solid rgba(203,208,210,.16); box-shadow: 0 24px 60px rgba(0,0,0,.25); }
.button { box-shadow: inset 0 1px 0 rgba(255,255,255,.55); }
.required-note { margin: 0 0 22px; color: #b6beb8; font-size: .76rem; }
.required-note span { color: var(--green); }
.consent-field { display: flex !important; align-items: flex-start; gap: 12px; margin: 2px 0 24px; color: #dce1dd; font-size: .82rem !important; font-weight: 500 !important; line-height: 1.55; text-transform: none !important; letter-spacing: normal !important; cursor: pointer; }
.consent-field input { flex: 0 0 20px; width: 20px; height: 20px; margin: 2px 0 0; padding: 0; accent-color: var(--green); }
.consent-field span { color: inherit !important; }
.form-note { max-width: 600px; line-height: 1.55; }

/* Footer */
footer { padding: 72px 0 24px; }
.footer-grid {
  display: grid;
  grid-template-columns: minmax(220px, 1.35fr) minmax(120px, .55fr) minmax(210px, 1fr) minmax(220px, .9fr);
  gap: 36px clamp(28px, 4vw, 64px);
  align-items: start;
}
.footer-brand-block { min-width: 0; }
.footer-logo { width: min(230px, 100%); height: auto; aspect-ratio: 3 / 2; margin: -28px 0 4px; }
.footer-brand-block p { max-width: 290px; margin: 0; color: #8f9991; font-size: .86rem; }
.footer-column { min-width: 0; }
.footer-grid h3 { margin: 0 0 18px; color: var(--green); }
.footer-column a, .footer-column > span { display: block; margin: 9px 0; color: #aeb6b0; font-size: .86rem; }
.footer-hours > span { margin-bottom: 12px; }
.footer-hours b, .footer-hours i { display: block; font-style: normal; font-weight: 500; }
.footer-hours b { color: #f2f4f2; font-size: .78rem; }
.footer-hours i { color: #9fa8a1; font-size: .8rem; }
.copyright { gap: 24px; margin-top: 52px; color: #89958c; font-size: .75rem; }
.copyright #year { display: inline; }

/* Form confirmation page */
.thanks-page { min-height: 100svh; padding: 48px 24px; background: radial-gradient(circle at 75% 20%, #1a2a19 0, #07100b 42%, #030504 100%); color: #fff; display: grid; place-items: center; }
.thanks-card { width: min(680px, 100%); padding: clamp(32px, 6vw, 64px); border: 1px solid var(--line); background: rgba(7, 12, 8, .88); box-shadow: 0 28px 80px rgba(0,0,0,.36); }
.thanks-card > img { width: 190px; height: auto; margin: -34px 0 22px; }
.thanks-card h1 { margin: 0; font: 600 clamp(3.4rem, 9vw, 6rem)/1 Oswald; text-transform: uppercase; }
.thanks-card > p:not(.eyebrow) { color: #c5cdc7; }
.thanks-card .thanks-note { padding-top: 16px; border-top: 1px solid var(--line); font-size: .82rem; color: #909a92 !important; }
.thanks-card .hero-actions { margin-top: 30px; }

@media (min-width: 721px) and (max-width: 1080px) {
  .header-inner { gap: 20px; }
  .brand-logo { width: 104px; height: 70px; }
  .site-nav { gap: 15px; }
  .site-nav a { font-size: .78rem; }
  .hero { min-height: 780px; padding-top: 112px; }
  .hero-content { padding-right: clamp(300px, 42vw, 350px); }
  .hero-logo { right: -8px; width: clamp(300px, 43vw, 350px); }
  .hero h1 { font-size: clamp(3rem, 6.2vw, 4.05rem); }
  .hero-copy { font-size: 1rem; }
  .trust-row { margin-top: 38px; gap: 14px 24px; }
  .footer-grid { grid-template-columns: minmax(220px, 1fr) 1fr 1fr; }
  .footer-brand-block { grid-row: span 2; }
  .footer-hours { grid-column: 2 / -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 22px; }
  .footer-hours h3 { grid-column: 1 / -1; }
}

@media (max-width: 720px) {
  .wrap { width: min(100% - 32px, var(--wrap)); }
  .header-inner { height: 76px; }
  .brand-logo { width: 88px; height: 60px; }
  .site-header .brand-logo { margin: 0; }
  .nav-toggle { position: absolute; right: 12px; top: 16px; margin-left: 0; }
  .hero { min-height: 0; padding: 96px 0 74px; align-items: flex-start; }
  .hero-content { width: min(100% - 32px, var(--wrap)); padding: 0; }
  .hero .eyebrow { margin-bottom: 14px; font-size: .66rem; letter-spacing: .14em; }
  .hero-logo { position: static; width: min(270px, 80vw); margin: 0 auto 22px; transform: none; }
  .hero h1 { max-width: 100%; font-size: clamp(2.55rem, 11.4vw, 3.15rem); line-height: .94; }
  .hero h1 span, .hero h1 em { max-width: 100%; }
  .hero-copy { margin: 22px 0 26px; font-size: 1rem; }
  .hero-actions { align-items: stretch; gap: 10px; }
  .hero-actions .button { width: fit-content; }
  .trust-row { margin-top: 34px; gap: 10px; flex-direction: column; align-items: flex-start; }
  .trust-row span { width: 100%; }
  .section-heading h2, .section-top h2, .commercial-copy h2, .quote-copy h2 { font-size: clamp(2.35rem, 10.8vw, 3.35rem); }
  .contact-strip h2 { font-size: clamp(2rem, 9vw, 3rem); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 38px 24px; }
  .footer-brand-block { grid-column: 1 / -1; }
  .footer-logo { width: 190px; margin: -20px 0 2px; }
  .footer-brand-block p { max-width: 330px; }
  .footer-hours { grid-column: 1 / -1; padding-top: 6px; border-top: 1px solid var(--line); }
  .footer-hours > span { display: grid; grid-template-columns: 90px 1fr; gap: 12px; margin: 10px 0; }
  .footer-hours b, .footer-hours i { font-size: .8rem; }
  .copyright { display: flex; flex-direction: column; gap: 2px; margin-top: 38px; padding-bottom: 60px; }
  .thanks-page { padding: 24px 16px; }
  .thanks-card > img { width: 155px; margin-top: -18px; }
}

@media (max-width: 420px) {
  .hero { padding-top: 90px; }
  .hero-logo { width: min(220px, 70vw); margin-bottom: 12px; }
  .hero h1 { font-size: clamp(2.2rem, 10.6vw, 2.58rem); }
  .hero-copy { margin: 18px 0 20px; font-size: .96rem; }
  .hero-actions { flex-direction: row; align-items: center; flex-wrap: nowrap; gap: 10px; }
  .hero-actions .button { width: auto; min-height: 50px; padding: 0 18px; white-space: nowrap; }
  .text-link { width: auto; padding: 10px 0; font-size: .9rem; white-space: nowrap; }
  .trust-row { margin-top: 22px; gap: 6px; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .footer-brand-block, .footer-hours { grid-column: auto; }
  .footer-hours > span { grid-template-columns: 88px 1fr; }
  .footer-column { padding-top: 2px; }
  .thanks-card .hero-actions { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 350px) {
  .hero-actions { flex-direction: column; align-items: flex-start; }
  .hero-actions .button { width: 100%; }
}
