/* ==========================================================================
   Compass Roofing Services — Theme Variables
   ========================================================================== */

:root {
  --red: #e2231a;
  --red-dark: #b81a13;
  --green: #2fae56;

  --font-heading: "Poppins", "Segoe UI", Helvetica, Arial, sans-serif;
  --font-body: "Inter", "Segoe UI", Helvetica, Arial, sans-serif;

  --nav-height: 84px;
  --nav-height-mobile: 72px;

  --transition-fast: 0.2s ease;
  --transition-med: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Dark mode (default) */
:root,
:root[data-theme="dark"] {
  --bg: #0b0a0a;
  --bg-elevated: #141212;
  --surface: #1a1717;
  --text: #f5f2f0;
  --text-muted: #b8b0ad;
  --border: rgba(255, 255, 255, 0.08);
  --nav-bg: #0b0a0a;
  --nav-bg-glass: rgba(11, 10, 10, 0.72);
  --sky-tint: #0b1633;
  --star-opacity: 1;
  --about-bg: #150f0d;
}

/* Light mode */
:root[data-theme="light"] {
  --bg: #f7f5f4;
  --bg-elevated: #ffffff;
  --surface: #ffffff;
  --text: #17130f;
  --text-muted: #5c5450;
  --border: rgba(17, 12, 10, 0.08);
  --nav-bg: #ffffff;
  --nav-bg-glass: rgba(255, 255, 255, 0.72);
  --sky-tint: #ffffff;
  --star-opacity: 0;
  --about-bg: #f6ede4;
}

* {
  box-sizing: border-box;
  transition: background-color var(--transition-med), color var(--transition-med), border-color var(--transition-med);
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  transition: background-color var(--transition-med), color var(--transition-med);
}

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

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
}

/* ==========================================================================
   Skip link
   ========================================================================== */

.skip-link {
  position: fixed;
  top: -100%;
  left: 1rem;
  z-index: 2000;
  background: var(--red);
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.75rem 1.25rem;
  border-radius: 4px;
  transition: top var(--transition-fast);
}

.skip-link:focus {
  top: 1rem;
}

/* ==========================================================================
   Navbar
   ========================================================================== */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  z-index: 1000;
  background: var(--nav-bg);
  transition: background-color var(--transition-med), border-color var(--transition-med), backdrop-filter var(--transition-med);
}

.navbar.is-scrolled {
  background: var(--nav-bg-glass);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
}

/* iOS 26 Safari tints the top toolbar by sampling the background color of
   whatever fixed/sticky element sits at the viewport's top edge. It can't
   resolve our semi-transparent, blurred glass navbar into a clean color,
   so the toolbar stops updating on theme switches. Force a solid,
   sampleable background on iOS Safari only -- desktop and Android keep
   the glass effect. @supports (-webkit-touch-callout: none) is only ever
   true in Safari/WebKit on iOS. */
@supports (-webkit-touch-callout: none) {
  @media (max-width: 768px) {
    .navbar,
    .navbar.is-scrolled {
      background: var(--nav-bg);
      backdrop-filter: none;
      -webkit-backdrop-filter: none;
    }
  }
}

.navbar__inner {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 3rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

/* Logo */

.navbar__logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.navbar__logo img {
  height: 48px;
  width: auto;
}

.navbar__logo .logo-dark {
  display: block;
}

.navbar__logo .logo-light {
  display: none;
}

[data-theme="light"] .navbar__logo .logo-dark {
  display: none;
}

[data-theme="light"] .navbar__logo .logo-light {
  display: block;
}

/* Right-hand group: links + actions, kept tight against the right edge */

.navbar__right {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 1.6vw, 1.5rem);
}

/* Desktop nav links */

.navbar__links {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 1.6vw, 1.5rem);
  list-style: none;
  margin: 0;
  padding: 0;
}

.navbar__link {
  position: relative;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--text);
  padding: 0.4rem 0.1rem;
  transition: color var(--transition-fast);
}

.navbar__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 2px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--transition-med);
}

.navbar__link:hover {
  color: var(--red);
}

.navbar__link:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* Theme toggle */

.theme-toggle {
  position: relative;
  width: 48px;
  height: 48px;
  border-radius: 0;
  border: none;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.theme-toggle__icon {
  position: absolute;
  width: 34px;
  height: 34px;
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.35s ease;
}

.theme-toggle__icon--sun {
  opacity: 1;
  transform: rotate(0deg) scale(1);
}

.theme-toggle__icon--moon {
  opacity: 0;
  transform: rotate(-90deg) scale(0.4);
}

[data-theme="light"] .theme-toggle__icon--sun {
  opacity: 0;
  transform: rotate(90deg) scale(0.4);
}

[data-theme="light"] .theme-toggle__icon--moon {
  opacity: 1;
  transform: rotate(0deg) scale(1);
}

/* Call Now button */

.btn-call {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  color: #fff;
  background: var(--red);
  padding: 0.7rem 1.4rem;
  border-radius: 4px;
  border: 1px solid transparent;
  transition: background-color var(--transition-fast);
  white-space: nowrap;
}

.btn-call:hover {
  background: var(--red-dark);
}

.btn-call__icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  filter: brightness(0) invert(1);
}

/* Hamburger (mobile) */

.hamburger {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--surface);
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
  z-index: 1100;
}

.hamburger__bars {
  position: relative;
  width: 20px;
  height: 14px;
}

.hamburger__bars span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform var(--transition-med), opacity var(--transition-med), background-color var(--transition-fast);
}

.hamburger__bars span:nth-child(1) { top: 0; }
.hamburger__bars span:nth-child(2) { top: 6px; }
.hamburger__bars span:nth-child(3) { top: 12px; }

.navbar.is-open .hamburger__bars span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
  background: var(--red);
}
.navbar.is-open .hamburger__bars span:nth-child(2) {
  opacity: 0;
}
.navbar.is-open .hamburger__bars span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
  background: var(--red);
}

/* Mobile accordion dropdown (separate from the desktop inline links) */

.navbar__mobile-menu {
  display: none;
}

/* ==========================================================================
   Mobile
   ========================================================================== */

@media (max-width: 900px) {
  .navbar {
    height: auto;
    flex-direction: column;
    align-items: stretch;
  }

  .navbar__logo img {
    height: 38px;
  }

  .navbar__inner {
    height: var(--nav-height-mobile);
    flex-shrink: 0;
  }

  .contact {
    scroll-margin-top: var(--nav-height-mobile);
  }

  .navbar__right .navbar__nav,
  .navbar__right .btn-call {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .navbar__mobile-menu {
    display: block;
    max-height: 0;
    overflow: hidden;
    overflow-y: auto;
    background: var(--bg-elevated);
    border-top: 1px solid transparent;
    transition: max-height var(--transition-med), background-color var(--transition-med), border-color var(--transition-med);
  }

  .navbar.is-open .navbar__mobile-menu {
    max-height: 480px;
    border-top-color: var(--border);
  }

  .navbar__mobile-links {
    list-style: none;
    margin: 0;
    padding: 0.5rem clamp(1.25rem, 6vw, 3rem) 0;
  }

  .navbar__mobile-links li {
    border-bottom: 1px solid var(--border);
  }

  .navbar__mobile-links .navbar__link {
    display: block;
    width: 100%;
    padding: 1rem 0.1rem;
    font-size: 1.15rem;
  }

  .navbar__mobile-links .navbar__link::after {
    display: none;
  }

  .navbar__mobile-menu .btn-call {
    display: flex;
    justify-content: center;
    margin: 1.25rem clamp(1.25rem, 6vw, 3rem);
    padding: 0.9rem 1.4rem;
    font-size: 1.05rem;
  }
}

/* ==========================================================================
   Buttons (shared)
   ========================================================================== */

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  color: #fff;
  background: transparent;
  padding: 0.7rem 1.4rem;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  transition: background-color var(--transition-fast), border-color var(--transition-fast);
  white-space: nowrap;
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: #fff;
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  position: relative;
  padding-top: calc(var(--nav-height) + 4.5rem);
  padding-bottom: 5rem;
  overflow: hidden;
  color: #fff;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__bg-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(115deg, rgba(6, 5, 5, 0.88) 5%, rgba(6, 5, 5, 0.5) 45%, rgba(6, 5, 5, 0.86) 100%),
    linear-gradient(0deg, rgba(6, 5, 5, 0.42), rgba(6, 5, 5, 0.42));
}

.hero__inner {
  position: relative;
  z-index: 1;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 3rem);
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2.5rem, 5vw, 4rem);
  align-items: center;
}

/* Content */

.hero__content {
  max-width: 640px;
}

.hero__ratings {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.hero__rating {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.hero__rating-icon {
  height: 22px;
  width: auto;
}

.hero__stars {
  display: inline-flex;
  gap: 2px;
}

.hero__stars svg {
  width: 20px;
  height: 20px;
  fill: #ffc107;
}

.hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(2.25rem, 4.2vw, 3.5rem);
  line-height: 1.12;
  font-weight: 700;
  margin: 0 0 1.25rem;
  letter-spacing: -0.01em;
}

.text-red {
  color: var(--red);
}

.hero__content p {
  font-size: clamp(1.05rem, 1.3vw, 1.2rem);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.85);
  margin: 0 0 2rem;
}

.hero__cta {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero__cta .btn-call,
.hero__cta .btn-outline {
  padding: 0.9rem 1.75rem;
  font-size: 1.05rem;
}

/* Form */

.hero__form-wrap {
  display: flex;
  justify-content: center;
}

.hero-form {
  width: 100%;
  max-width: 540px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: clamp(1.5rem, 2.5vw, 2rem);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  color: var(--text);
}

.hero-form h2 {
  font-family: var(--font-heading);
  font-size: 1.55rem;
  font-weight: 600;
  margin: 0 0 0.35rem;
  color: var(--text);
}

.hero-form__subtitle {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0 0 1.1rem;
  line-height: 1.5;
}

.hero-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem;
}

.hero-form__field {
  min-width: 0;
  margin-bottom: 0.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.hero-form__field label {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
}

.hero-form__field input,
.hero-form__field select,
.hero-form__field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0.65rem 0.9rem;
  transition: background-color var(--transition-med), color var(--transition-med), border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.hero-form__field textarea {
  resize: vertical;
  min-height: 90px;
}

.hero-form__field input::placeholder,
.hero-form__field textarea::placeholder {
  color: var(--text-muted);
  opacity: 0.7;
}

.hero-form__field input:focus,
.hero-form__field select:focus,
.hero-form__field textarea:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(226, 35, 26, 0.18);
}

.hero-form__field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b8b0ad' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
  background-size: 16px;
  padding-right: 2.5rem;
}

.btn-submit {
  width: 100%;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.05rem;
  color: #fff;
  background: var(--red);
  border: none;
  border-radius: 4px;
  padding: 0.9rem 1.4rem;
  margin-top: 0.5rem;
  transition: background-color var(--transition-fast);
}

.btn-submit:hover {
  background: var(--red-dark);
}

.btn-submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.hero-form__honeypot {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.hero-form__error {
  font-size: 0.85rem;
  color: var(--red);
  margin: -0.3rem 0 0.8rem;
}

/* ==========================================================================
   Hero — Estimate Form Success State
   ========================================================================== */

.hero-form__success[hidden] {
  display: none;
}

.hero-form__success {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1.5rem 0.5rem;
}

.hero-form__success.is-visible {
  animation: hero-form-success-in 0.5s ease both;
}

.hero-form__success h3 {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--text);
  margin: 1rem 0 0.5rem;
}

.hero-form__success p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0;
  max-width: 32ch;
}

.hero-form__check {
  width: 72px;
  height: 72px;
  flex-shrink: 0;
}

.hero-form__check-circle {
  stroke: var(--green, #2fae56);
  stroke-width: 2;
  stroke-miterlimit: 10;
  stroke-dasharray: 151;
  stroke-dashoffset: 151;
  animation: hero-form-check-circle 0.5s ease-out forwards;
}

.hero-form__check-mark {
  stroke: var(--green, #2fae56);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 36;
  stroke-dashoffset: 36;
  animation: hero-form-check-mark 0.35s 0.45s ease-out forwards;
}

@keyframes hero-form-success-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes hero-form-check-circle {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes hero-form-check-mark {
  to {
    stroke-dashoffset: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-form__success.is-visible,
  .hero-form__check-circle,
  .hero-form__check-mark {
    animation: none;
    stroke-dashoffset: 0;
    opacity: 1;
    transform: none;
  }
}

/* ==========================================================================
   Hero — Mobile
   ========================================================================== */

@media (max-width: 1000px) {
  .hero__inner {
    grid-template-columns: 1fr;
  }

  .hero__content {
    max-width: none;
    text-align: left;
  }

  .hero__ratings {
    justify-content: flex-start;
  }

  .hero__cta {
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  .hero {
    padding-top: calc(var(--nav-height-mobile) + 2.5rem);
    padding-bottom: 3rem;
    background:
      radial-gradient(circle at 15% 0%, rgba(226, 35, 26, 0.06), transparent 55%),
      radial-gradient(circle at 100% 100%, rgba(226, 35, 26, 0.025), transparent 55%),
      #0b0a0a;
  }

  .hero__bg {
    display: none;
  }

  .hero__cta {
    flex-direction: column;
    align-items: stretch;
  }

  .hero__cta .btn-call,
  .hero__cta .btn-outline {
    justify-content: center;
  }
}

/* ==========================================================================
   Trust Strip
   ========================================================================== */

.trust {
  position: relative;
  padding-top: clamp(2rem, 4vw, 3.5rem);
  background: linear-gradient(to bottom, var(--sky-tint), var(--bg) 75%);
  overflow: hidden;
  transition: background var(--transition-med);
}

.trust__sky {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  opacity: var(--star-opacity);
  transition: opacity var(--transition-med);
}

.trust__stars {
  position: absolute;
  inset: 0;
  background-repeat: repeat;
  background-size: 100% 100%;
}

.trust__stars--1 {
  background-image:
    radial-gradient(2.6px 2.6px at 8% 15%, #fff, transparent 60%),
    radial-gradient(2px 2px at 22% 42%, #fff, transparent 60%),
    radial-gradient(2.8px 2.8px at 38% 8%, #fff, transparent 60%),
    radial-gradient(2px 2px at 52% 30%, #fff, transparent 60%),
    radial-gradient(2.6px 2.6px at 68% 18%, #fff, transparent 60%),
    radial-gradient(2px 2px at 80% 45%, #fff, transparent 60%),
    radial-gradient(2.8px 2.8px at 92% 12%, #fff, transparent 60%),
    radial-gradient(2px 2px at 12% 60%, #fff, transparent 60%),
    radial-gradient(2.6px 2.6px at 45% 55%, #fff, transparent 60%),
    radial-gradient(2px 2px at 62% 65%, #fff, transparent 60%),
    radial-gradient(2.8px 2.8px at 85% 60%, #fff, transparent 60%);
  animation: twinkle-bright 3.5s ease-in-out infinite;
}

.trust__stars--2 {
  background-image:
    radial-gradient(2px 2px at 15% 28%, #fff, transparent 60%),
    radial-gradient(2.3px 2.3px at 30% 50%, #fff, transparent 60%),
    radial-gradient(2px 2px at 48% 12%, #fff, transparent 60%),
    radial-gradient(2.3px 2.3px at 58% 38%, #fff, transparent 60%),
    radial-gradient(2px 2px at 72% 55%, #fff, transparent 60%),
    radial-gradient(2.3px 2.3px at 88% 30%, #fff, transparent 60%),
    radial-gradient(2px 2px at 5% 45%, #fff, transparent 60%),
    radial-gradient(2.3px 2.3px at 95% 50%, #fff, transparent 60%);
  animation: twinkle-mid 5s ease-in-out infinite -2s;
}

.trust__stars--3 {
  background-image:
    radial-gradient(1.7px 1.7px at 18% 10%, #fff, transparent 60%),
    radial-gradient(1.7px 1.7px at 35% 35%, #fff, transparent 60%),
    radial-gradient(1.7px 1.7px at 50% 20%, #fff, transparent 60%),
    radial-gradient(1.7px 1.7px at 65% 48%, #fff, transparent 60%),
    radial-gradient(1.7px 1.7px at 78% 22%, #fff, transparent 60%),
    radial-gradient(1.7px 1.7px at 90% 40%, #fff, transparent 60%);
  animation: twinkle-dim 2.8s ease-in-out infinite -1.2s;
}

@keyframes twinkle-bright {
  0%, 100% { opacity: 0.1; }
  15% { opacity: 1; }
  32% { opacity: 0.15; }
  50% { opacity: 1; }
  68% { opacity: 0.15; }
  85% { opacity: 0.95; }
}

@keyframes twinkle-mid {
  0%, 100% { opacity: 0.05; }
  20% { opacity: 0.95; }
  42% { opacity: 0.1; }
  60% { opacity: 1; }
  80% { opacity: 0.1; }
}

@keyframes twinkle-dim {
  0%, 100% { opacity: 0.03; }
  25% { opacity: 0.85; }
  55% { opacity: 0.06; }
  78% { opacity: 1; }
}

.trust__inner {
  position: relative;
  z-index: 1;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 3rem);
}

.trust__heading {
  font-family: var(--font-heading);
  font-size: clamp(2.25rem, 5vw, 4rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--text);
  text-align: center;
  margin: 0 auto;
  max-width: 1250px;
}

.trust__subtext {
  font-family: var(--font-body);
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  line-height: 1.6;
  color: var(--text-muted);
  text-align: center;
  max-width: 680px;
  margin: 1.5rem auto 0;
}

.trust__cta {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
}

.trust__cta .btn-call {
  padding: 0.9rem 2.25rem;
  font-size: 1.05rem;
}

.trust__roof {
  position: relative;
  z-index: 1;
  margin-top: clamp(1rem, 2vw, 1.5rem);
  width: 100%;
  line-height: 0;
}

.trust__roof-img {
  width: 100%;
  aspect-ratio: 800 / 335;
  object-fit: cover;
  object-position: bottom;
  display: block;
}

@media (max-width: 640px) {
  .trust__heading {
    text-align: left;
  }

  .trust__subtext {
    text-align: left;
    margin-left: 0;
  }

  .trust__cta {
    justify-content: flex-start;
  }
}

/* ==========================================================================
   Testimonials
   ========================================================================== */

.testimonials {
  padding: clamp(3.5rem, 7vw, 6.5rem) 0;
  background: var(--bg);
  overflow: hidden;
}

.testimonials__inner {
  max-width: 1000px;
  margin: 0 auto clamp(2.5rem, 4vw, 3.5rem);
  padding: 0 clamp(1.25rem, 4vw, 3rem);
  text-align: center;
}

.testimonials__eyebrow {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 0.75rem;
}

.testimonials__heading {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 3.6vw, 2.75rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--text);
  margin: 0 0 0.85rem;
}

.testimonials__subtext {
  font-size: clamp(1rem, 1.2vw, 1.1rem);
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto;
}

/* Conveyor rows */

.testimonials__marquee {
  display: flex;
  flex-direction: column;
  gap: clamp(1rem, 2vw, 1.5rem);
}

.testimonials__row {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent);
}

.testimonials__track {
  display: flex;
  align-items: stretch;
  gap: clamp(1rem, 1.6vw, 1.25rem);
  width: max-content;
  list-style: none;
  margin: 0;
  padding: 0 clamp(0.5rem, 1.6vw, 0.625rem);
}

.testimonials__track--left {
  animation: testimonials-scroll-left 55s linear infinite;
}

.testimonials__track--right {
  animation: testimonials-scroll-right 65s linear infinite;
}

@keyframes testimonials-scroll-left {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@keyframes testimonials-scroll-right {
  from { transform: translateX(-50%); }
  to { transform: translateX(0); }
}

@media (prefers-reduced-motion: reduce) {
  .testimonials__track {
    animation: none;
  }

  .testimonials__row {
    overflow-x: auto;
  }
}

/* Card */

.testimonial-card {
  position: relative;
  flex: 0 0 auto;
  width: clamp(280px, 32vw, 360px);
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.5rem;
}

.testimonial-card__mark {
  position: absolute;
  top: 0.5rem;
  right: 1.1rem;
  font-family: var(--font-heading);
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1;
  color: var(--red);
  opacity: 0.65;
  pointer-events: none;
}

.testimonial-card__header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.testimonial-card__avatar {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--red);
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
}

.testimonial-card__meta {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.testimonial-card__name {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  color: var(--text);
}

.testimonial-card__sub {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.testimonial-card__source {
  height: 17px;
  width: auto;
}

.testimonial-card__stars {
  display: inline-flex;
  gap: 2px;
}

.testimonial-card__stars svg {
  width: 14px;
  height: 14px;
  fill: #ffc107;
}

.testimonial-card__quote {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-muted);
  display: -webkit-box;
  -webkit-line-clamp: 6;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* CTA */

.testimonials__cta {
  margin-top: clamp(2.5rem, 4vw, 3.5rem);
  padding: 0 clamp(1.25rem, 4vw, 3rem);
  text-align: center;
}

.testimonials__cta-text {
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  color: var(--text-muted);
  margin: 0 0 1.25rem;
}

.testimonials__cta .btn-call {
  padding: 0.9rem 2.25rem;
  font-size: 1.05rem;
}

@media (max-width: 640px) {
  .testimonial-card {
    width: clamp(250px, 78vw, 320px);
    padding: 1.25rem;
  }

  .testimonials__track--left {
    animation-duration: 38s;
  }

  .testimonials__track--right {
    animation-duration: 45s;
  }
}

/* ==========================================================================
   About
   ========================================================================== */

.about {
  background: var(--about-bg);
  padding: clamp(3.5rem, 7vw, 6.5rem) 0;
  transition: background-color var(--transition-med);
}

.about__inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 3rem);
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}

/* Media */

.about__media {
  position: relative;
}

.about__media::before {
  content: "";
  position: absolute;
  top: -1rem;
  left: -1rem;
  width: 100%;
  height: 100%;
  background: var(--red);
  border-radius: 4px;
}

.about__img {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 4px;
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.25);
}

.about__badge {
  position: absolute;
  bottom: -2.75rem;
  right: -2.25rem;
  width: clamp(150px, 18vw, 220px);
  height: auto;
  filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.35));
}

/* Content */

.about__eyebrow {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 0.75rem;
}

.about__heading {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 3.6vw, 2.75rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--text);
  margin: 0 0 1.25rem;
}

.about__text {
  font-size: clamp(1rem, 1.2vw, 1.1rem);
  line-height: 1.7;
  color: var(--text-muted);
  margin: 0;
}

.about__badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.5rem;
  margin: 1.75rem 0 2rem;
}

.about__badge-img {
  height: 90px;
  width: auto;
}

.about__badge-img--years {
  height: 110px;
}

.about__badge-img--licensed {
  height: 75px;
}

.about__badge-img--trusted {
  height: 100px;
}

.about__cta .btn-call {
  padding: 0.9rem 2.25rem;
  font-size: 1.05rem;
}

/* ==========================================================================
   About — Mobile
   ========================================================================== */

@media (max-width: 900px) {
  .about__inner {
    grid-template-columns: 1fr;
  }

  .about__media {
    max-width: 420px;
    margin: 0 auto;
  }
}

@media (max-width: 480px) {
  .about__badge {
    width: 130px;
    bottom: -1.75rem;
    right: -1rem;
  }
}

/* Our Story */

.about__story {
  margin-top: clamp(3.5rem, 7vw, 6rem);
  padding-top: clamp(2.5rem, 5vw, 4rem);
  border-top: 1px solid var(--border);
}

.about__story-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 3rem);
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}

.about__story-heading {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  color: var(--text);
  margin: 0 0 1.25rem;
}

.about__story-text {
  font-size: clamp(1rem, 1.2vw, 1.1rem);
  line-height: 1.7;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 0 1.1rem;
}

.about__story-text:last-child {
  margin-bottom: 0;
}

.about__story-img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 4px;
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.25);
}

@media (max-width: 900px) {
  .about__story-inner {
    grid-template-columns: 1fr;
  }

  .about__story-media {
    max-width: 420px;
    margin: 0 auto;
  }
}

/* ==========================================================================
   Services
   ========================================================================== */

.services {
  padding: clamp(3.5rem, 7vw, 6.5rem) 0;
  background: var(--bg);
}

.services__inner {
  max-width: 1400px;
  margin: 0 auto clamp(2.5rem, 4vw, 3.5rem);
  padding: 0 clamp(1.25rem, 4vw, 3rem);
  text-align: left;
}

.services__eyebrow {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 0.75rem;
}

.services__heading {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 3.6vw, 2.75rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--text);
  margin: 0 0 0.85rem;
}

.services__subtext {
  font-size: clamp(1rem, 1.2vw, 1.1rem);
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 640px;
  margin: 0;
}

/* Grid */

.services__grid {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 3rem);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1.25rem, 2vw, 1.75rem);
}

/* Card */

.service-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}

.service-card__media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.service-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card:has(.service-card__cta:hover) .service-card__img {
  transform: scale(1.06);
}

.service-card__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 1.4rem;
}

.service-card__title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--text);
  margin: 0 0 0.5rem;
}

.service-card__text {
  flex: 1;
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--text-muted);
  margin: 0 0 1.25rem;
}

.service-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  align-self: flex-start;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  color: #fff;
  background: var(--red);
  border: 1px solid transparent;
  border-radius: 4px;
  padding: 0.6rem 1.1rem;
  transition: background-color var(--transition-fast);
}

.service-card__cta-arrow {
  transition: transform var(--transition-fast);
}

.service-card__cta:hover {
  background: var(--red-dark);
}

.service-card__cta:hover .service-card__cta-arrow {
  transform: translateX(3px);
}

/* ==========================================================================
   Services — Mobile
   ========================================================================== */

@media (max-width: 1100px) {
  .services__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .services__grid {
    grid-template-columns: 1fr;
    max-width: 440px;
  }
}

/* Estimate form highlight, triggered when a service CTA scrolls the form into view */

.hero-form.is-highlighted {
  animation: hero-form-pulse 1.2s ease;
}

@keyframes hero-form-pulse {
  0% { box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45), 0 0 0 0 rgba(226, 35, 26, 0.55); }
  30% { box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45), 0 0 0 8px rgba(226, 35, 26, 0.22); }
  100% { box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45), 0 0 0 0 rgba(226, 35, 26, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-form.is-highlighted {
    animation: none;
  }
}

/* ==========================================================================
   Buttons — Outline Red (used on light/dark section backgrounds alike)
   ========================================================================== */

.btn-outline-red {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  color: var(--bg);
  background: var(--text);
  padding: 0.7rem 1.4rem;
  border-radius: 4px;
  border: 1px solid transparent;
  transition: background-color var(--transition-med), color var(--transition-med);
  white-space: nowrap;
}

.btn-outline-red:hover {
  background: var(--red);
  color: #fff;
}

/* ==========================================================================
   Contact
   ========================================================================== */

.contact {
  padding: 1rem 0 clamp(3.5rem, 7vw, 6.5rem);
  background: var(--bg);
  scroll-margin-top: var(--nav-height);
}

.contact__inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 3rem);
}

.contact__intro {
  max-width: 640px;
  margin: 0 0 clamp(2.5rem, 4vw, 3.5rem);
}

.contact__eyebrow {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 0.75rem;
}

.contact__heading {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 3.6vw, 2.75rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--text);
  margin: 0 0 0.85rem;
}

.contact__subtext {
  font-size: clamp(1rem, 1.2vw, 1.1rem);
  line-height: 1.6;
  color: var(--text-muted);
  margin: 0;
}

/* Grid */

.contact__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: clamp(2rem, 4vw, 3rem);
  align-items: stretch;
}

/* Info card */

.contact__info {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: clamp(1.5rem, 2.5vw, 2.25rem);
}

.contact__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.contact__item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--border);
}

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

.contact__item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.contact__icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact__icon svg {
  width: 20px;
  height: 20px;
}

.contact__icon-img {
  width: auto;
  height: 18px;
}

.contact__icon-img--location {
  height: 20px;
}

.contact__icon-img--clock {
  filter: brightness(0) invert(1);
}

.contact__item-body {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 0;
  padding-top: 0.35rem;
}

.contact__item-label {
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.contact__item-value {
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--text);
  line-height: 1.4;
  transition: color var(--transition-fast);
}

a.contact__item-value:hover {
  color: var(--red);
}

.contact__cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-top: 1.75rem;
}

/* Map */

.contact__map {
  position: relative;
  min-height: 320px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.contact__map iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* ==========================================================================
   Contact — Mobile
   ========================================================================== */

@media (max-width: 900px) {
  .contact__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .contact__map {
    min-height: 340px;
  }
}

@media (max-width: 480px) {
  .contact__cta {
    flex-direction: column;
    align-items: stretch;
  }

  .contact__cta .btn-call,
  .contact__cta .btn-outline-red {
    justify-content: center;
  }
}

/* ==========================================================================
   Legal Pages (Privacy Policy, Accessibility Statement)
   ========================================================================== */

.legal {
  padding: calc(var(--nav-height) + 3.5rem) 0 clamp(3.5rem, 7vw, 6rem);
  background: var(--bg);
}

.legal__inner {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 3rem);
}

.legal__back {
  display: flex;
  align-items: center;
  width: fit-content;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 2rem;
  transition: color var(--transition-fast);
}

.legal__back:hover {
  color: var(--red);
}

.legal__eyebrow {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 0.75rem;
}

.legal__heading {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 3.6vw, 2.75rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--text);
  margin: 0 0 0.75rem;
}

.legal__updated {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0 0 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}

.legal p {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-muted);
  margin: 0 0 1.25rem;
}

.legal h2 {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--text);
  margin: 2.5rem 0 1rem;
}

.legal ul {
  margin: 0 0 1.25rem;
  padding-left: 1.25rem;
}

.legal li {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.legal__contact {
  list-style: none;
  padding: 0;
  margin: 0;
}

.legal__contact li {
  margin-bottom: 0.35rem;
}

.legal__contact a {
  color: var(--text-muted);
  transition: color var(--transition-fast);
}

.legal__contact a:hover {
  color: var(--red);
}

/* ==========================================================================
   Footer
   ========================================================================== */

.footer {
  background: var(--bg-elevated);
  transition: background-color var(--transition-med), border-color var(--transition-med);
}

.footer__top {
  padding: clamp(3rem, 6vw, 4.5rem) 0 clamp(2.5rem, 4vw, 3.5rem);
}

.footer__inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 3rem);
  display: grid;
  grid-template-columns: 1.3fr 0.8fr 1fr 1fr;
  gap: clamp(2rem, 4vw, 3rem);
}

/* Brand column */

.footer__brand {
  max-width: 320px;
}

.footer__logo {
  display: inline-flex;
  margin-bottom: 1.25rem;
}

.footer__logo img {
  height: 88px;
  width: auto;
}

.footer__logo .logo-dark {
  display: block;
}

.footer__logo .logo-light {
  display: none;
}

[data-theme="light"] .footer__logo .logo-dark {
  display: none;
}

[data-theme="light"] .footer__logo .logo-light {
  display: block;
}

.footer__tagline {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-muted);
  margin: 0 0 1.5rem;
}

.footer__call {
  padding: 0.65rem 1.25rem;
  font-size: 0.95rem;
}

/* Link columns */

.footer__heading {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text);
  margin: 0 0 1.25rem;
}

.footer__links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.footer__links a {
  font-size: 0.95rem;
  color: var(--text-muted);
  transition: color var(--transition-fast);
}

.footer__links a:hover {
  color: var(--red);
}

/* Contact column */

.footer__contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.footer__contact-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.95rem;
  line-height: 1.4;
  color: var(--text-muted);
}

.footer__contact-item a {
  color: var(--text-muted);
  transition: color var(--transition-fast);
}

.footer__contact-item a:hover {
  color: var(--red);
}

.footer__contact-icon {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--red);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.1rem;
}

.footer__contact-icon-img {
  width: auto;
  height: 15px;
}

.footer__contact-icon-img--location {
  height: 16px;
}

.footer__contact-icon-img--clock {
  filter: brightness(0) invert(1);
}

/* Social */

.footer__social {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.footer__social-link {
  display: inline-flex;
  transition: transform var(--transition-fast), opacity var(--transition-fast);
}

.footer__social-link:hover {
  transform: translateY(-2px);
  opacity: 0.85;
}

.footer__social-icon {
  width: 34px;
  height: 34px;
}

/* Bottom bar */

.footer__bottom {
  border-top: 1px solid var(--border);
}

.footer__bottom-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 1.5rem clamp(1.25rem, 4vw, 3rem);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
}

.footer__copyright,
.footer__credit {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0;
}

.footer__legal {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.footer__legal a {
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: color var(--transition-fast);
}

.footer__legal a:hover {
  color: var(--red);
}

.footer__credit-link {
  color: var(--text);
  transition: color var(--transition-fast);
}

.footer__credit-link:hover {
  color: var(--red);
}

/* ==========================================================================
   Footer — Mobile
   ========================================================================== */

@media (max-width: 900px) {
  .footer__inner {
    grid-template-columns: 1fr 1fr;
  }

  .footer__brand {
    grid-column: 1 / -1;
    max-width: none;
  }
}

@media (max-width: 640px) {
  .footer__inner {
    grid-template-columns: 1fr;
    text-align: left;
  }

  .footer__brand {
    grid-column: auto;
  }

  .footer__logo {
    display: flex;
  }

  .footer__bottom-inner {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
  }

  .footer__legal {
    gap: 1.25rem;
  }
}

/* ==========================================================================
   Testimonials Page
   ========================================================================== */

.page-banner {
  position: relative;
  padding: calc(var(--nav-height) + 3rem) 0 clamp(3rem, 6vw, 4.5rem);
  overflow: hidden;
  color: #fff;
  text-align: center;
}

.page-banner__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.page-banner__bg-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-banner__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(115deg, rgba(6, 5, 5, 0.88) 5%, rgba(6, 5, 5, 0.55) 45%, rgba(6, 5, 5, 0.88) 100%),
    linear-gradient(0deg, rgba(6, 5, 5, 0.45), rgba(6, 5, 5, 0.45));
}

.page-banner__inner {
  position: relative;
  z-index: 1;
  max-width: 820px;
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 3rem);
}

.page-banner__back {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 1.5rem;
  transition: color var(--transition-fast);
}

.page-banner__back:hover {
  color: #fff;
}

.page-banner__eyebrow {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 0.75rem;
}

.page-banner__heading {
  font-family: var(--font-heading);
  font-size: clamp(2.25rem, 4.4vw, 3.25rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 1rem;
}

.page-banner__subtext {
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.85);
  max-width: 640px;
  margin: 0 auto;
}

.page-banner__ratings {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin: 1.5rem 0 0;
}

.page-banner__verified {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  margin-top: 1.25rem;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.9);
}

.page-banner__verified-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.page-banner__verified-icon img {
  width: 20px;
  height: 20px;
  filter: brightness(0) invert(1);
}

.page-banner__cta {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
}

.page-banner__cta .btn-call {
  padding: 0.9rem 2.25rem;
  font-size: 1.05rem;
}

@media (max-width: 640px) {
  .page-banner {
    text-align: left;
  }

  .page-banner__subtext {
    margin: 0;
  }

  .page-banner__back,
  .page-banner__ratings,
  .page-banner__verified,
  .page-banner__cta {
    justify-content: flex-start;
  }
}

/* Reviews grid */

.testimonials-page {
  padding: clamp(3rem, 6vw, 5rem) 0;
  background: var(--bg);
}

.testimonials-page__grid {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 3rem);
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.25rem, 2vw, 1.75rem);
}

.testimonials-page__grid .testimonial-card {
  width: auto;
}

.testimonials-page__grid .testimonial-card__quote {
  -webkit-line-clamp: unset;
  overflow: visible;
}

@media (max-width: 1100px) {
  .testimonials-page__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 680px) {
  .testimonials-page__grid {
    grid-template-columns: 1fr;
  }
}

/* Business info */

.testimonials-info {
  background: var(--about-bg);
  padding: clamp(3rem, 6vw, 5rem) 0;
}

.testimonials-info__inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 3rem);
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
  text-align: left;
}

.testimonials-info__media {
  position: relative;
}

.testimonials-info__media::before {
  content: "";
  position: absolute;
  top: -1rem;
  left: -1rem;
  width: 100%;
  height: 100%;
  background: var(--red);
  border-radius: 4px;
}

.testimonials-info__img {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 4px;
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.25);
}

.testimonials-info__eyebrow {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 0.75rem;
}

.testimonials-info__heading {
  font-family: var(--font-heading);
  font-size: clamp(1.85rem, 3.2vw, 2.5rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--text);
  margin: 0 0 1.1rem;
}

.testimonials-info__text {
  font-size: clamp(1rem, 1.2vw, 1.1rem);
  line-height: 1.7;
  color: var(--text-muted);
  margin: 0 0 1.1rem;
}

.testimonials-info__text:last-of-type {
  margin-bottom: 0;
}

.testimonials-info__badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 1.5rem;
  margin-top: 2rem;
}

.testimonials-info__badges img {
  height: 90px;
  width: auto;
}

@media (max-width: 900px) {
  .testimonials-info__inner {
    grid-template-columns: 1fr;
  }

  .testimonials-info__media {
    max-width: 480px;
    margin: 0 auto;
  }
}

/* Final CTA */

.testimonials-final-cta {
  padding: clamp(3rem, 6vw, 4.5rem) 0;
  background: var(--bg);
  text-align: center;
}

.testimonials-final-cta__inner {
  max-width: 700px;
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 3rem);
}

.testimonials-final-cta__heading {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  color: var(--text);
  margin: 0 0 0.85rem;
}

.testimonials-final-cta__text {
  font-size: clamp(1rem, 1.2vw, 1.1rem);
  line-height: 1.6;
  color: var(--text-muted);
  margin: 0 0 2rem;
}

.testimonials-final-cta__buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.testimonials-final-cta__buttons .btn-call,
.testimonials-final-cta__buttons .btn-outline-red {
  padding: 0.9rem 2rem;
  font-size: 1.05rem;
}

@media (max-width: 640px) {
  .testimonials-final-cta__buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .testimonials-final-cta__buttons .btn-call,
  .testimonials-final-cta__buttons .btn-outline-red {
    justify-content: center;
  }
}

/* ==========================================================================
   About Page
   ========================================================================== */

/* Page banner badges (About page) */

.page-banner__badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 1.75rem;
  margin: 1.75rem 0 0;
}

.page-banner__badge-img {
  height: 80px;
  width: auto;
}

.page-banner__badge-img--years {
  height: 96px;
}

.page-banner__badge-img--licensed {
  height: 66px;
}

.page-banner__badge-img--trusted {
  height: 88px;
}

@media (max-width: 640px) {
  .page-banner__badges {
    justify-content: flex-start;
  }
}

/* Our Story — split with fading image */

.story-split {
  position: relative;
  background: var(--about-bg);
  overflow: hidden;
  transition: background-color var(--transition-med);
}

.story-split__inner {
  max-width: 1600px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(320px, 44%) 1fr;
  align-items: stretch;
  min-height: clamp(480px, 55vw, 640px);
}

.story-split__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(3rem, 6vw, 5rem) clamp(1.5rem, 5vw, 4.5rem);
  position: relative;
  z-index: 2;
}

.story-split__eyebrow {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 0.75rem;
}

.story-split__heading {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 3.4vw, 2.6rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--text);
  margin: 0 0 1.25rem;
}

.story-split__text {
  font-size: clamp(1rem, 1.15vw, 1.05rem);
  line-height: 1.7;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 0 1.1rem;
}

.story-split__text:last-of-type {
  margin-bottom: 0;
}

.story-split__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.75rem;
}

/* .btn-outline defaults to white for photo-backed sections like the hero;
   the story panel sits on a flat theme color, so it needs theme-aware ink. */
.story-split__cta .btn-outline {
  color: var(--text);
  border-color: var(--border);
}

.story-split__cta .btn-outline:hover {
  background: var(--border);
  border-color: var(--text-muted);
}

.story-split__media {
  position: relative;
  min-height: 320px;
}

.story-split__media::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to right, var(--about-bg) 0%, rgba(0, 0, 0, 0) 42%);
  pointer-events: none;
  transition: background-color var(--transition-med);
}

.story-split__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: grayscale(1);
}

@media (max-width: 900px) {
  .story-split__inner {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .story-split__media {
    min-height: 320px;
    order: -1;
  }

  .story-split__media::before {
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 60%, var(--about-bg) 100%);
  }

  .story-split__text {
    max-width: none;
  }
}

/* Values / Why Choose Compass */

.values {
  padding: clamp(3.5rem, 7vw, 6.5rem) 0;
  background: var(--bg);
}

.values__inner {
  max-width: 1400px;
  margin: 0 auto clamp(2.5rem, 4vw, 3.5rem);
  padding: 0 clamp(1.25rem, 4vw, 3rem);
  text-align: left;
}

.values__eyebrow {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 0.75rem;
}

.values__heading {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 3.6vw, 2.75rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--text);
  margin: 0 0 0.85rem;
}

.values__subtext {
  font-size: clamp(1rem, 1.2vw, 1.1rem);
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 640px;
  margin: 0;
}

.values__grid {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 3rem);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1.25rem, 2vw, 1.75rem);
}

.value-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: clamp(1.75rem, 2.5vw, 2.25rem) 1.5rem;
  text-align: center;
}

.value-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--red);
  margin-bottom: 1.25rem;
}

.value-card__icon img {
  width: 24px;
  height: 24px;
  filter: brightness(0) invert(1);
}

.value-card__title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--text);
  margin: 0 0 0.6rem;
}

.value-card__text {
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--text-muted);
  margin: 0;
}

@media (max-width: 1100px) {
  .values__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .values__grid {
    grid-template-columns: 1fr;
    max-width: 440px;
  }
}

/* About final CTA */

.about-cta {
  padding: clamp(3rem, 6vw, 4.5rem) 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
  text-align: center;
}

.about-cta__inner {
  max-width: 700px;
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 3rem);
}

.about-cta__heading {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  color: var(--text);
  margin: 0 0 0.85rem;
}

.about-cta__text {
  font-size: clamp(1rem, 1.2vw, 1.1rem);
  line-height: 1.6;
  color: var(--text-muted);
  margin: 0 0 2rem;
}

.about-cta__buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.about-cta__buttons .btn-call,
.about-cta__buttons .btn-outline-red {
  padding: 0.9rem 2rem;
  font-size: 1.05rem;
}

@media (max-width: 640px) {
  .about-cta__buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .about-cta__buttons .btn-call,
  .about-cta__buttons .btn-outline-red {
    justify-content: center;
  }
}

/* ==========================================================================
   Scroll Reveal Animations
   ========================================================================== */

.reveal,
.reveal-left,
.reveal-right {
  opacity: 0;
  transition:
    opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.7s cubic-bezier(0.16, 1, 0.3, 1),
    background-color var(--transition-med),
    color var(--transition-med),
    border-color var(--transition-med);
}

.reveal {
  transform: translateY(32px);
}

.reveal-left {
  transform: translateX(-40px);
}

.reveal-right {
  transform: translateX(40px);
}

.reveal.is-visible,
.reveal-left.is-visible,
.reveal-right.is-visible {
  opacity: 1;
  transform: none;
}

.reveal--d1 {
  transition-delay: 0.12s;
}

.reveal--d2 {
  transition-delay: 0.24s;
}

.reveal--d3 {
  transition-delay: 0.36s;
}

/* Service cards reveal together as one group, not one-by-one */

.services__grid .service-card {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.services__grid.is-visible .service-card {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .reveal-left,
  .reveal-right,
  .services__grid .service-card {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}
