:root {
  --ink: #082544;
  --ink-soft: #33485d;
  --cream: #f5f0e7;
  --paper: #fffdf8;
  --red: #c93417;
  --red-dark: #8e2816;
  --gold: #ef8b1e;
  --sage: #667462;
  --line: #d8d0c1;
  --shadow: 0 24px 70px rgba(34, 29, 23, 0.14);
  --radius: 22px;
  --serif: Georgia, "Times New Roman", serif;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

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

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 14px;
  color: white;
  background: var(--ink);
  transform: translateY(-180%);
}

.skip-link:focus {
  transform: translateY(0);
}

.container {
  width: min(1160px, calc(100% - 40px));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid rgba(24, 32, 30, 0.12);
  background: rgba(245, 240, 231, 0.94);
  backdrop-filter: blur(16px);
}

.sponsor-strip {
  color: white;
  background: var(--red-dark);
}

.sponsor-shell {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding-block: 6px;
  text-align: center;
}

.sponsor-shell p {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 700;
}

.sponsor-shell strong {
  color: #ffd98f;
}

.sponsor-shell a {
  flex: 0 0 auto;
  color: white;
  font-size: 0.74rem;
  font-weight: 900;
  text-underline-offset: 3px;
}

.sponsor-mobile {
  display: none;
}

.nav-shell {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 11px;
  text-decoration: none;
}

.brand-logo {
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  border-radius: 7px;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.08;
}

.brand-copy strong {
  font-size: 0.9rem;
  letter-spacing: -0.02em;
}

.brand-copy small {
  margin-top: 3px;
  color: var(--ink-soft);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.site-nav a {
  color: var(--ink-soft);
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--red);
}

.nav-cta,
.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 10px 18px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.nav-cta,
.button-primary {
  color: white;
  background: var(--red);
  box-shadow: 0 10px 24px rgba(169, 67, 42, 0.24);
}

.button-secondary {
  border-color: var(--ink);
  background: transparent;
}

.button:hover,
.nav-cta:hover {
  transform: translateY(-2px);
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 62px 0 52px;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 86% 18%, rgba(216, 154, 58, 0.2), transparent 24%),
    linear-gradient(rgba(24, 32, 30, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(24, 32, 30, 0.045) 1px, transparent 1px);
  background-size: auto, 52px 52px, 52px 52px;
  mask-image: linear-gradient(to bottom, black 72%, transparent);
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(380px, 0.92fr);
  gap: 52px;
  align-items: center;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 20px;
  color: var(--red);
  font-size: 0.77rem;
  font-weight: 900;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: currentColor;
}

h1,
h2,
h3 {
  margin-top: 0;
  font-family: var(--serif);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.04;
}

h1 {
  max-width: 790px;
  margin-bottom: 20px;
  font-size: clamp(3rem, 6vw, 5.6rem);
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(2.25rem, 4.7vw, 4.4rem);
}

h3 {
  margin-bottom: 12px;
  font-size: 1.55rem;
}

.hero-lede {
  max-width: 690px;
  margin: 0 0 24px;
  color: var(--ink-soft);
  font-size: clamp(1.05rem, 1.7vw, 1.25rem);
}

.hero-actions,
.contractor-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-note {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  color: var(--ink-soft);
  font-size: 0.9rem;
  font-weight: 650;
}

.hero-note span {
  display: inline-grid;
  width: 25px;
  height: 25px;
  place-items: center;
  color: white;
  border-radius: 50%;
  background: var(--sage);
}

.roof-visual {
  position: relative;
  margin: 0;
  overflow: hidden;
  border: 8px solid white;
  border-radius: 30px;
  background: white;
  box-shadow: var(--shadow);
}

.roof-landscape {
  width: 100%;
  height: 410px;
  object-fit: cover;
  object-position: center;
}

.roof-place {
  position: absolute;
  top: 22px;
  left: 22px;
  display: flex;
  flex-direction: column;
  padding: 11px 14px;
  color: white;
  border-radius: 12px;
  background: rgba(8, 37, 68, 0.88);
  line-height: 1.25;
}

.roof-place strong {
  font-size: 0.86rem;
}

.roof-place span {
  font-size: 0.7rem;
}

.proof-bar {
  border-block: 1px solid var(--line);
  background: var(--paper);
}

.proof-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.proof-item {
  min-height: 116px;
  padding: 22px 30px;
  border-right: 1px solid var(--line);
}

.proof-item:last-child {
  border-right: 0;
}

.proof-item strong {
  display: block;
  margin-bottom: 5px;
  font-family: var(--serif);
  font-size: 2.25rem;
  line-height: 1;
}

.proof-item span {
  color: var(--ink-soft);
  font-size: 0.88rem;
}

.section {
  padding: 78px 0;
}

.section-dark {
  color: white;
  background: var(--ink);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 44px;
}

.section-heading p:last-child {
  max-width: 660px;
  color: var(--ink-soft);
  font-size: 1.05rem;
}

.section-dark .section-heading p:last-child {
  color: rgba(255, 255, 255, 0.7);
}

.section-dark .eyebrow {
  color: var(--gold);
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.category-card {
  position: relative;
  min-height: 252px;
  display: flex;
  flex-direction: column;
  padding: 24px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.category-card::after {
  content: "↗";
  position: absolute;
  top: 24px;
  right: 24px;
  color: var(--red);
  font-size: 1.35rem;
  font-weight: 800;
}

.category-card:hover {
  transform: translateY(-5px);
  border-color: var(--red);
  box-shadow: 0 20px 45px rgba(34, 29, 23, 0.1);
}

.card-number {
  margin-bottom: 34px;
  color: var(--red);
  font-family: var(--serif);
  font-size: 1rem;
  font-weight: 700;
}

.category-card h3 {
  max-width: 270px;
}

.category-card p {
  margin: 0 0 20px;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.match-name {
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.principles-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 64px;
  align-items: start;
}

.principle-list {
  display: grid;
  gap: 14px;
}

.principle {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 18px;
  padding: 22px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.principle:first-child {
  padding-top: 0;
}

.principle-number {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  color: var(--gold);
  font-family: var(--serif);
  font-weight: 700;
}

.principle h3 {
  margin-bottom: 5px;
  font-family: var(--sans);
  font-size: 1rem;
  letter-spacing: -0.01em;
}

.principle p {
  margin: 0;
  color: rgba(255, 255, 255, 0.67);
  font-size: 0.9rem;
}

.local-card {
  padding: 34px;
  border: 1px solid rgba(255, 255, 255, 0.17);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
}

.local-card .map-shape {
  position: relative;
  height: 170px;
  margin-bottom: 28px;
  overflow: hidden;
  border-radius: 15px;
  background: var(--cream);
}

.map-shape::before {
  content: "";
  position: absolute;
  width: 170px;
  height: 220px;
  top: -28px;
  left: 50%;
  background: var(--red);
  clip-path: polygon(31% 0, 80% 4%, 72% 35%, 100% 45%, 80% 100%, 27% 93%, 0 38%);
  transform: translateX(-50%) rotate(4deg);
}

.map-shape::after {
  content: "St. George";
  position: absolute;
  left: 50%;
  bottom: 21px;
  padding: 5px 9px;
  color: white;
  border-radius: 999px;
  background: var(--ink);
  font-size: 0.72rem;
  font-weight: 850;
  transform: translateX(-50%);
}

.local-card h3 {
  font-size: 2rem;
}

.local-card p {
  color: rgba(255, 255, 255, 0.72);
}

.site-footer {
  padding: 36px 0;
  border-top: 1px solid var(--line);
  background: var(--paper);
}

.footer-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  color: var(--ink-soft);
  font-size: 0.82rem;
}

.footer-shell p {
  margin: 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.footer-links a {
  font-weight: 750;
  text-decoration: none;
}

.service-hero {
  padding: 70px 0 64px;
}

.offer-hero {
  padding: 76px 0 70px;
}

.offer-grid {
  display: grid;
  grid-template-columns: 1fr 0.72fr;
  gap: 72px;
  align-items: center;
}

.offer-card {
  padding: 36px;
  color: white;
  border-radius: var(--radius);
  background: var(--ink);
  box-shadow: var(--shadow);
}

.offer-price {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  margin: 8px 0 22px;
}

.offer-price strong {
  font-family: var(--serif);
  font-size: 5.6rem;
  line-height: 0.9;
}

.offer-price span {
  margin-top: 12px;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 750;
}

.offer-list {
  list-style: none;
  margin: 24px 0 28px;
  padding: 0;
}

.offer-list li {
  position: relative;
  padding: 11px 0 11px 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.78);
}

.offer-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--gold);
  font-weight: 900;
}

.offer-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.offer-step {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.offer-step span {
  display: block;
  margin-bottom: 26px;
  color: var(--red);
  font-family: var(--serif);
  font-weight: 700;
}

.offer-step p {
  margin: 0;
  color: var(--ink-soft);
}

.application-grid {
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  gap: 64px;
  align-items: start;
}

#banner-application {
  scroll-margin-top: 84px;
}

.application-grid .section-heading {
  margin-bottom: 0;
}

.form-fallback {
  font-size: 0.86rem !important;
}

.form-fallback a {
  color: var(--red-dark);
  font-weight: 800;
}

.application-form {
  position: relative;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: 0 18px 48px rgba(34, 29, 23, 0.08);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 22px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.form-group-full {
  grid-column: 1 / -1;
}

.form-group label {
  font-size: 0.78rem;
  font-weight: 850;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 10px;
  outline: 0;
  background: white;
  font: inherit;
}

.form-group textarea {
  min-height: 112px;
  resize: vertical;
}

.form-group input:focus-visible,
.form-group textarea:focus-visible {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(223, 61, 28, 0.14);
}

.honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.application-form button:disabled {
  cursor: wait;
  opacity: 0.65;
}

.form-status {
  min-height: 1.5rem;
  margin: 14px 0 0;
  color: var(--ink-soft);
  font-size: 0.86rem;
  font-weight: 700;
}

.form-status.success {
  color: #3c6c3f;
}

.form-status.error {
  color: var(--red-dark);
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 48px;
  color: var(--ink-soft);
  font-size: 0.78rem;
  font-weight: 750;
}

.breadcrumbs a {
  color: var(--red);
  text-decoration: none;
}

.service-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.72fr);
  gap: 70px;
  align-items: start;
}

.service-hero h1 {
  font-size: clamp(3rem, 6.2vw, 5.8rem);
}

.service-summary {
  max-width: 720px;
  color: var(--ink-soft);
  font-size: 1.15rem;
}

.contractor-card {
  position: sticky;
  top: 108px;
  padding: 30px;
  color: white;
  border-radius: var(--radius);
  background: var(--ink);
  box-shadow: var(--shadow);
}

.contractor-card .match-label {
  margin: 0 0 30px;
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.contractor-card h2 {
  margin-bottom: 12px;
  font-size: 2.4rem;
}

.locality {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 23px;
  color: rgba(255, 255, 255, 0.72);
  font-weight: 650;
}

.locality::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #78b778;
  box-shadow: 0 0 0 4px rgba(120, 183, 120, 0.14);
}

.rating-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 0 0 6px;
}

.rating-row strong {
  color: var(--gold);
  font-family: var(--serif);
  font-size: 2rem;
}

.rating-row span {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.82rem;
}

.snapshot {
  margin: 0 0 24px;
  color: rgba(255, 255, 255, 0.54);
  font-size: 0.72rem;
}

.contractor-card .button-primary {
  background: var(--red);
}

.contractor-card .button-secondary {
  color: white;
  border-color: rgba(255, 255, 255, 0.45);
}

.source-link {
  display: inline-block;
  margin-top: 22px;
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.76rem;
  font-weight: 700;
}

.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
}

.evidence-list,
.question-list {
  list-style: none;
  margin: 30px 0 0;
  padding: 0;
}

.evidence-list li,
.question-list li {
  position: relative;
  padding: 20px 0 20px 40px;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
}

.evidence-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 18px;
  display: grid;
  width: 25px;
  height: 25px;
  place-items: center;
  color: white;
  border-radius: 50%;
  background: var(--sage);
  font-size: 0.74rem;
  font-weight: 900;
}

.question-list {
  counter-reset: questions;
}

.question-list li {
  counter-increment: questions;
}

.question-list li::before {
  content: counter(questions, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 19px;
  color: var(--red);
  font-family: var(--serif);
  font-weight: 700;
}

.service-guide-section {
  padding-top: 0;
}

.service-guide-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.service-guide-card {
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.service-guide-card h2 {
  font-size: clamp(2rem, 3.8vw, 3.2rem);
}

.service-guide-list {
  margin: 26px 0 0;
  padding-left: 20px;
  color: var(--ink-soft);
}

.service-guide-list li {
  padding: 9px 0 9px 8px;
  border-top: 1px solid var(--line);
}

.source-panel {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  gap: 50px;
  align-items: center;
}

.source-panel p {
  color: rgba(255, 255, 255, 0.7);
}

.source-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.source-buttons .button-secondary {
  color: white;
  border-color: rgba(255, 255, 255, 0.38);
}

.more-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.more-link {
  min-height: 130px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--paper);
  font-family: var(--serif);
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.18;
  text-decoration: none;
}

.more-link span {
  color: var(--red);
  font-family: var(--sans);
  font-size: 1rem;
}

.not-found {
  min-height: 72vh;
  display: grid;
  place-items: center;
  padding: 80px 0;
  text-align: center;
}

.not-found h1 {
  margin-inline: auto;
}

.not-found p {
  max-width: 540px;
  margin: 0 auto 30px;
  color: var(--ink-soft);
}

@media (max-width: 960px) {
  .hero-grid,
  .service-hero-grid,
  .principles-grid,
  .source-panel,
  .offer-grid,
  .application-grid {
    grid-template-columns: 1fr;
  }

  .roof-visual {
    width: min(640px, 100%);
    margin-inline: auto;
  }

  .roof-landscape {
    height: 360px;
  }

  .category-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .more-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .contractor-card {
    position: static;
  }
}

@media (max-width: 700px) {
  .container {
    width: min(100% - 28px, 1160px);
  }

  .nav-shell {
    min-height: 60px;
  }

  .brand-logo {
    width: 38px;
    height: 38px;
  }

  .brand-copy strong {
    max-width: 104px;
    font-size: 0.82rem;
  }

  .brand-copy small {
    display: none;
  }

  .site-nav {
    display: none;
  }

  .nav-cta {
    min-height: 42px;
    padding: 9px 13px;
    font-size: 0.75rem;
  }

  .hero {
    padding: 44px 0 38px;
  }

  h1,
  .service-hero h1 {
    font-size: clamp(2.4rem, 11.5vw, 3.5rem);
  }

  .roof-visual {
    border-width: 5px;
    border-radius: 20px;
  }

  .roof-landscape {
    height: 280px;
  }

  .roof-place {
    top: 16px;
    left: 16px;
  }

  .proof-grid,
  .detail-grid,
  .offer-steps,
  .service-guide-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .form-group-full {
    grid-column: auto;
  }

  .proof-item {
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .proof-item:last-child {
    border-bottom: 0;
  }

  .section {
    padding: 58px 0;
  }

  .category-grid {
    grid-template-columns: 1fr;
  }

  .more-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .more-link {
    min-height: 110px;
    padding: 16px;
    font-size: 1rem;
  }

  .sponsor-shell {
    align-items: center;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: space-between;
    gap: 8px;
    min-height: 38px;
    padding-block: 5px;
    text-align: left;
  }

  .sponsor-desktop {
    display: none;
  }

  .sponsor-mobile {
    display: inline;
  }

  .sponsor-shell p,
  .sponsor-shell a {
    font-size: 0.7rem;
  }

  .category-card {
    min-height: 225px;
  }

  .footer-shell {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
