@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Poppins:wght@600;700;800&display=swap");

:root {
  --navy-900: #071f38;
  --navy-800: #0a3157;
  --navy-700: #0c4276;
  --navy-600: #0c5a9e;
  --navy-500: #1a6bb0;
  --navy-400: #4f8fc6;
  --navy-100: #dbe9f5;
  --navy-50: #f2f7fb;
  --cyan-600: #0089b3;
  --cyan-500: #009fcd;
  --cyan-400: #3db6dc;
  --cyan-100: #e2f5fb;
  --gold-500: #f2b705;
  --gray-900: #14181c;
  --gray-700: #3d4750;
  --gray-500: #6b7684;
  --gray-300: #c4cdd6;
  --gray-100: #eef2f6;
  --gray-50: #f7f9fb;
  --white: #ffffff;
  --color-success: #1a8a4a;
  --color-error: #d71821;
  --surface-page: var(--white);
  --surface-section-alt: var(--gray-50);
  --surface-section-tint: var(--navy-50);
  --surface-hero: var(--navy-600);
  --surface-card: var(--white);
  --surface-overlay-scrim: rgba(7, 31, 56, 0.55);
  --text-primary: var(--gray-900);
  --text-secondary: var(--gray-700);
  --text-muted: var(--gray-500);
  --text-on-brand: var(--white);
  --text-on-brand-muted: var(--navy-100);
  --text-kicker: var(--white);
  --text-kicker-on-light: var(--navy-600);
  --link-color: var(--navy-600);
  --link-hover: var(--cyan-600);
  --focus-ring: var(--cyan-500);
  --border-default: var(--gray-300);
  --border-subtle: var(--gray-100);
  --btn-primary-bg: var(--cyan-500);
  --btn-primary-bg-hover: var(--cyan-600);
  --btn-primary-text: var(--gray-900);
  --btn-secondary-bg: transparent;
  --btn-secondary-border: var(--white);
  --btn-secondary-text: var(--white);
  --font-display: "Poppins", system-ui, -apple-system, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
  --weight-regular: 400;
  --weight-medium: 500;
  --weight-semibold: 600;
  --weight-bold: 700;
  --weight-extrabold: 800;
  --text-display-xl: clamp(2.75rem, 4vw, 4rem);
  --text-display-l: clamp(2.25rem, 3vw, 3rem);
  --text-display-m: 1.75rem;
  --text-display-s: 1.375rem;
  --leading-display: 1.08;
  --tracking-display: -0.01em;
  --text-body-l: 1.125rem;
  --text-body-m: 1rem;
  --text-body-s: 0.9375rem;
  --text-caption: 0.8125rem;
  --text-kicker-size: 0.8125rem;
  --leading-body: 1.6;
  --tracking-kicker: 0.08em;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 14px;
  --shadow-md: 0 12px 28px -8px rgba(7, 31, 56, 0.16);
  --shadow-lg: 0 28px 56px -16px rgba(7, 31, 56, 0.22);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text-primary);
  background: var(--white);
  font-size: var(--text-body-m);
  line-height: var(--leading-body);
}

/* Never let the page itself scroll sideways on phones. Wide content (the
   comparison tables, the review strip) scrolls inside its own container
   instead. `clip` keeps position:fixed/sticky working; `hidden` is the
   fallback for older browsers. */
html,
body {
  overflow-x: hidden;
}
@supports (overflow-x: clip) {
  html,
  body {
    overflow-x: clip;
  }
}

body.mob-bar-visible {
  padding-bottom: 72px;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  margin: 0;
  line-height: var(--leading-display);
  letter-spacing: var(--tracking-display);
}

p {
  margin: 0;
}

a {
  color: var(--link-color);
  text-decoration: none;
}

a:hover {
  color: var(--link-hover);
}

img {
  max-width: 100%;
}

.crHeroGrid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}

.crSignsGrid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.crRevScroll {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 4px 4px 12px;
}

.crRevScroll::-webkit-scrollbar {
  display: none;
}

.crRevScroll > a {
  scroll-snap-align: start;
  flex: 0 0 min(85vw, 360px);
  text-decoration: none;
  display: block;
  color: inherit;
}

.crRevScroll > a:hover {
  color: inherit;
  text-decoration: none;
}

.crWhyGrid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: stretch;
}

.crWhyImg {
  height: 240px;
}

.crWhenGrid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.crStepsWrap {
  position: relative;
}

.crStepsGrid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  position: relative;
}

.crStepLine {
  display: none;
  position: absolute;
  top: 24px;
  left: 12.5%;
  right: 12.5%;
  height: 3px;
  background: var(--gray-100);
  border-radius: 2px;
  overflow: hidden;
}

.crStepLine > span {
  display: block;
  height: 100%;
  width: 0;
  background: var(--cyan-500);
  transition: width 1.8s cubic-bezier(0.4, 0, 0.2, 1) 0.2s;
}

.crStepsWrap.crDrawn .crStepLine > span {
  width: 100%;
}

.crStep {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
}

.crStepDot {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--white);
  border: 3px solid var(--gray-100);
  color: var(--navy-600);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: var(--weight-bold);
  font-size: 1.1rem;
  position: relative;
  z-index: 1;
  transition: background 0.4s ease, border-color 0.4s ease, color 0.4s ease;
  transition-delay: var(--d, 0ms);
}

.crStepsWrap.crDrawn .crStepDot {
  background: var(--navy-600);
  border-color: var(--cyan-500);
  color: var(--white);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-weight: var(--weight-semibold);
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  line-height: 1.2;
  text-align: center;
  appearance: none;
  -webkit-appearance: none;
}

.btn:hover {
  text-decoration: none;
}

.btn-md {
  min-height: 48px;
  padding: 12px 18px;
  font-size: var(--text-body-s);
}

.btn-lg {
  min-height: 54px;
  padding: 14px 22px;
  font-size: var(--text-body-m);
}

.btn-primary {
  background: var(--btn-primary-bg);
  color: var(--btn-primary-text);
}

.btn-primary:hover {
  background: var(--btn-primary-bg-hover);
  color: var(--btn-primary-text);
}

.btn-secondary {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
}

.btn-navy {
  background: var(--navy-600);
  color: var(--white);
}

.btn-navy:hover {
  background: var(--navy-700);
  color: var(--white);
}

.btn-full {
  width: 100%;
  min-height: 52px;
}

.lead-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  box-shadow: var(--shadow-lg);
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field label {
  font-size: var(--text-caption);
  font-weight: var(--weight-semibold);
  color: var(--text-primary);
}

.field input {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--border-default);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  font: inherit;
  color: var(--text-primary);
  background: var(--white);
}

.field input:focus {
  outline: 2px solid var(--focus-ring);
  outline-offset: 1px;
}

.consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: var(--text-caption);
  color: var(--text-muted);
  line-height: 1.5;
}

.consent input {
  margin-top: 3px;
  flex-shrink: 0;
}

.stars {
  display: inline-flex;
  gap: 2px;
  color: var(--gold-500);
  font-size: 16px;
  letter-spacing: 1px;
  line-height: 1;
}

.kicker {
  display: block;
  font-size: var(--text-kicker-size);
  letter-spacing: var(--tracking-kicker);
  text-transform: uppercase;
  font-weight: var(--weight-semibold);
  color: var(--text-kicker-on-light);
}

.check-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: var(--text-body-s);
  color: var(--text-secondary);
  line-height: var(--leading-body);
}

.check-item svg {
  flex-shrink: 0;
  color: var(--cyan-500);
  margin-top: 2px;
}

.review-card {
  background: var(--white);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-md);
  min-height: 100%;
}

.review-card p {
  font-size: var(--text-body-s);
  color: var(--text-secondary);
  line-height: var(--leading-body);
  margin: 10px 0 14px;
}

.review-card strong {
  display: block;
  font-size: var(--text-body-s);
  color: var(--text-primary);
}

.hover-card {
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.hover-card:hover {
  background: var(--navy-50);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(12, 90, 158, 0.14);
}

.service-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.service-link:hover {
  color: inherit;
  text-decoration: none;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-bg.flip {
  transform: scaleX(-1);
}

.hero-scrim {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(20, 24, 28, 0.4) 0%, transparent 42%),
    linear-gradient(90deg, rgba(20, 24, 28, 0.88) 0%, rgba(20, 24, 28, 0.55) 42%, rgba(20, 24, 28, 0.18) 100%);
}

.hero-copy {
  color: #fff;
}

.hero-copy .hero-muted {
  color: rgba(255, 255, 255, 0.92);
}

.crMobBar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  background: var(--navy-900);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  box-shadow: 0 -4px 16px rgba(7, 31, 56, 0.3);
  opacity: 0;
  pointer-events: none;
  transform: translateY(100%);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.crMobBar.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.crMobBar-reviews {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  color: var(--white);
  text-decoration: none;
  font-size: var(--text-caption);
  line-height: 1;
}

.crMobBar-reviews:hover {
  color: var(--white);
  text-decoration: none;
}

.crMobBar-reviews .star {
  color: var(--gold-500);
  font-size: 14px;
  line-height: 1;
}

.crMobBar-reviews strong {
  font-weight: var(--weight-bold);
  line-height: 1;
}

.crMobBar-reviews .count {
  color: rgba(255, 255, 255, 0.85);
  line-height: 1;
}

.crMobBar-call {
  flex-shrink: 0;
  text-decoration: none;
  background: var(--btn-primary-bg);
  color: var(--btn-primary-text);
  font-weight: var(--weight-semibold);
  font-size: var(--text-body-s);
  padding: 13px 18px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  line-height: 1;
}

.crMobBar-call:hover {
  background: var(--btn-primary-bg-hover);
  color: var(--btn-primary-text);
  text-decoration: none;
}

.map-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 16px;
  display: block;
  background: var(--navy-50);
}

.logo-mulehide {
  height: 56px;
  width: auto;
  display: block;
}

.rev-nav {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border-default);
  background: var(--white);
  color: var(--navy-600);
  font-size: 18px;
  cursor: pointer;
}

@media (min-width: 640px) {
  .crWhenGrid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 800px) {
  .crStepsGrid {
    grid-template-columns: repeat(4, 1fr);
  }
  .crStepLine {
    display: block;
  }
  .crStep {
    text-align: center;
    align-items: center;
  }
}

@media (min-width: 960px) {
  .crWhyGrid {
    grid-template-columns: 5fr 6fr;
  }
  .crWhyImg {
    height: 100%;
    min-height: 480px;
  }
  .crHeroGrid {
    grid-template-columns: 1fr 420px;
  }
  .crMobBar {
    display: none !important;
  }
  body.mob-bar-visible {
    padding-bottom: 0;
  }
}

@media (min-width: 1000px) {
  .crWhenGrid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 640px) {
  .crEyebrow {
    display: none !important;
  }
}

/* Append to the design's component stylesheet. */

/* Server-side form feedback (submit.php redirects back with ?sent=0&msg=) */
.lead-form__alert {
  padding: 12px 14px;
  text-align: center;
  border: 1px solid #ddd;
}
.lead-form__alert--error {
  background: #fdecec;
  border-color: #f2b8b8;
  color: #8a1c1c;
}
.lead-form__alert--ok {
  background: #eaf7ee;
  border-color: #b9e2c5;
  color: #1f6b3a;
}

/* Honeypot: hidden from humans, filled by bots. Off-screen rather than
   display:none because some bots skip display:none fields. */
.hp-wrap {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Added with the wildfire-roofing page (design export 2026-09-24) */
.field select {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--border-default);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  font: inherit;
  color: var(--text-primary);
  background: var(--white);
}

.field select:focus {
  outline: 2px solid var(--focus-ring);
  outline-offset: 1px;
}

.status-pill {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--navy-50);
  color: var(--navy-600);
  font-size: var(--text-caption);
  font-weight: var(--weight-semibold);
  margin: 0 0 14px;
}

.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  max-width: 100%;
  min-width: 0; /* as a grid/flex child, don't let the table widen the column */
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-body-s);
  color: var(--text-secondary);
  line-height: var(--leading-body);
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.data-table th {
  text-align: left;
  font-family: var(--font-display);
  font-weight: var(--weight-bold);
  color: var(--white);
  background: var(--navy-600);
  padding: 12px 16px;
}

.data-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-subtle);
  vertical-align: top;
}

.data-table tbody tr:last-child td {
  border-bottom: none;
}

.doc-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-subtle);
  font-size: var(--text-body-s);
  color: var(--text-secondary);
  line-height: var(--leading-body);
}

.doc-row:last-of-type {
  border-bottom: none;
}

.doc-row > span:first-child {
  font-family: var(--font-display);
  font-weight: var(--weight-bold);
  color: var(--cyan-600);
  flex-shrink: 0;
}

