/* =====================================================================
   UNITED GROUP — Roofing & Exterior Solutions
   Design system: "Premium Contractor" — elevated cinematic edition
   Fonts: Domine (serif headings) / Karla (sans body)
   ===================================================================== */

/* ---------- Design tokens ---------- */
:root {
  /* Brand */
  --charcoal: #161616;
  --charcoal-soft: #1c1b1b;
  --navy: #1b263b;
  --navy-deep: #131c2e;
  --amber: #e28e00;
  --amber-bright: #f5a623;
  --amber-dim: #b87200;

  /* Neutrals */
  --surface: #f8f9fa;
  --surface-alt: #f0f1f2;
  --surface-container: #edeeef;
  --white: #ffffff;
  --on-surface: #191c1d;
  --slate: #5e5e5e;
  --stone: #919191;
  --outline: #c4c7c7;
  --line-dark: rgba(255, 255, 255, 0.12);

  /* Typography */
  --font-serif: 'Domine', Georgia, 'Times New Roman', serif;
  --font-sans: 'Karla', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Rhythm */
  --container: 1240px;
  --gutter: 24px;
  --radius: 4px;
  --radius-lg: 8px;
  --section-lg: 120px;
  --section-md: 88px;

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow-soft: 0 20px 45px -20px rgba(22, 22, 22, 0.18);
  --shadow-lift: 0 30px 60px -25px rgba(22, 22, 22, 0.28);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--on-surface);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
ul { list-style: none; margin: 0; padding: 0; }

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

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section { padding: var(--section-lg) 0; }
.section--tight { padding: var(--section-md) 0; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--amber);
}
.eyebrow::before {
  content: '';
  width: 26px;
  height: 2px;
  background: var(--amber);
  display: inline-block;
}

.section-head { max-width: 640px; margin: 0 auto 64px; text-align: center; }
.section-head .eyebrow { justify-content: center; }
.section-head h2 { font-size: clamp(30px, 4vw, 44px); margin: 18px 0 16px; }
.section-head p { color: var(--slate); font-size: 18px; margin: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 28px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.02em;
  border: 2px solid transparent;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease),
    background 0.3s var(--ease), color 0.3s var(--ease);
  will-change: transform;
}
.btn svg { transition: transform 0.35s var(--ease); }
.btn:hover svg { transform: translateX(5px); }

.btn--primary {
  background: var(--amber);
  color: var(--charcoal);
  box-shadow: 0 14px 30px -12px rgba(226, 142, 0, 0.65);
}
.btn--primary:hover {
  background: var(--amber-bright);
  transform: translateY(-3px);
  box-shadow: 0 22px 40px -14px rgba(226, 142, 0, 0.75);
}

.btn--ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.55);
}
.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #fff;
  transform: translateY(-3px);
}

.btn--dark {
  background: var(--charcoal);
  color: #fff;
  border-color: var(--charcoal);
}
.btn--dark:hover { background: var(--navy); border-color: var(--navy); transform: translateY(-3px); }

.btn--outline-dark {
  background: transparent;
  color: var(--charcoal);
  border-color: var(--charcoal);
}
.btn--outline-dark:hover { background: var(--charcoal); color: #fff; transform: translateY(-3px); }

.btn--block { width: 100%; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background 0.4s var(--ease), box-shadow 0.4s var(--ease),
    padding 0.4s var(--ease), border-color 0.4s var(--ease);
  padding: 20px 0;
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background: rgba(248, 249, 250, 0.9);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  box-shadow: 0 8px 30px -20px rgba(0, 0, 0, 0.3);
  padding: 12px 0;
  border-bottom-color: var(--outline);
}

/* transparent-over-hero variant (dark hero pages) */
.site-header.on-dark:not(.is-scrolled) { color: #fff; }
.site-header.on-dark:not(.is-scrolled) .nav-links a { color: rgba(255, 255, 255, 0.85); }
.site-header.on-dark:not(.is-scrolled) .brand { color: #fff; }
.site-header.on-dark:not(.is-scrolled) .nav-phone { color: #fff; }
.site-header.on-dark:not(.is-scrolled) .nav-toggle span { background: #fff; }

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--charcoal);
}
.brand__mark {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  background: var(--charcoal);
  border-radius: var(--radius);
  flex-shrink: 0;
}
.brand__mark svg { width: 22px; height: 22px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 34px;
  margin-left: auto;
}
.nav-links a {
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 600;
  color: var(--on-surface);
  position: relative;
  padding: 4px 0;
}
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 2px;
  background: var(--amber);
  transition: width 0.3s var(--ease);
}
.nav-links a:hover::after,
.nav-links a[aria-current="page"]::after { width: 100%; }
.nav-links a[aria-current="page"] { color: var(--amber); }

.nav-actions { display: flex; align-items: center; gap: 22px; }
.nav-phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 15px;
  color: var(--charcoal);
  white-space: nowrap;
}
.nav-phone svg { width: 16px; height: 16px; color: var(--amber); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none; border: none;
  padding: 6px;
}
.nav-toggle span {
  width: 24px; height: 2px;
  background: var(--charcoal);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  color: #fff;
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: -10% 0 0 0;
  height: 120%;
  background: var(--navy-deep);
  background-size: cover;
  background-position: center;
  z-index: 0;
  will-change: transform;
}
.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(100deg, rgba(15, 20, 30, 0.92) 0%, rgba(20, 28, 44, 0.7) 42%, rgba(20, 28, 44, 0.25) 100%),
    linear-gradient(0deg, rgba(10, 12, 18, 0.85) 0%, rgba(10, 12, 18, 0) 55%);
}
.hero .container { position: relative; z-index: 2; }
.hero__inner { max-width: 680px; padding: 120px 0; }
.hero h1 {
  font-size: clamp(38px, 6vw, 68px);
  line-height: 1.04;
  margin: 22px 0;
}
.hero p {
  font-size: clamp(17px, 2vw, 20px);
  color: rgba(255, 255, 255, 0.82);
  max-width: 540px;
  margin: 0 0 36px;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 16px; }
.hero__scroll {
  position: absolute;
  bottom: 34px; left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  font-size: 11px; letter-spacing: 0.25em; text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
}
.hero__scroll .mouse {
  width: 24px; height: 38px;
  border: 2px solid rgba(255, 255, 255, 0.45);
  border-radius: 14px;
  position: relative;
}
.hero__scroll .mouse::after {
  content: '';
  position: absolute;
  top: 7px; left: 50%;
  width: 3px; height: 7px;
  background: #fff; border-radius: 2px;
  transform: translateX(-50%);
  animation: scrollWheel 1.8s var(--ease) infinite;
}
@keyframes scrollWheel {
  0% { opacity: 0; transform: translate(-50%, 0); }
  40% { opacity: 1; }
  80% { opacity: 0; transform: translate(-50%, 12px); }
}

/* Sub-hero (interior pages) */
.subhero {
  position: relative;
  background: var(--charcoal);
  color: #fff;
  padding: 180px 0 90px;
  overflow: hidden;
}
.subhero__bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0.35;
}
.subhero::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(22,22,22,0.6), rgba(22,22,22,0.9));
}
.subhero .container { position: relative; z-index: 2; }
.subhero h1 { font-size: clamp(34px, 5vw, 56px); margin: 20px 0 18px; max-width: 720px; }
.subhero p { color: rgba(255,255,255,0.8); font-size: 18px; max-width: 560px; margin: 0; }
.subhero__actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 34px; }

/* ---------- Trust bar ---------- */
.trustbar {
  background: var(--navy);
  color: #fff;
}
.trustbar__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
.trustbar__item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 30px 32px;
  border-left: 1px solid var(--line-dark);
}
.trustbar__item:first-child { border-left: none; }
.trustbar__item svg { width: 30px; height: 30px; color: var(--amber); flex-shrink: 0; }
.trustbar__item strong { display: block; font-family: var(--font-serif); font-size: 17px; }
.trustbar__item span { font-size: 13.5px; color: rgba(255, 255, 255, 0.7); }

/* ---------- Service cards ---------- */
.grid { display: grid; gap: 28px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }

.service-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease);
  display: flex;
  flex-direction: column;
}
.service-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lift); }
.service-card__media {
  aspect-ratio: 16 / 10;
  background: var(--navy-deep) center/cover no-repeat;
  position: relative;
  overflow: hidden;
}
.service-card__media::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 55%, rgba(0,0,0,0.35));
}
.service-card__media img,
.service-card__media > span {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.8s var(--ease);
  display: block;
}
.service-card:hover .service-card__media img,
.service-card:hover .service-card__media > span { transform: scale(1.06); }
.service-card__badge {
  position: absolute; top: 14px; left: 14px; z-index: 2;
  background: rgba(22,22,22,0.72);
  color: #fff;
  font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 6px 12px; border-radius: var(--radius);
  backdrop-filter: blur(4px);
}
.service-card__body { padding: 30px 30px 34px; flex: 1; display: flex; flex-direction: column; }
.service-card__body h3 { font-size: 23px; margin-bottom: 12px; }
.service-card__body p { color: var(--slate); font-size: 15.5px; margin: 0 0 20px; }
.service-card__link {
  margin-top: auto;
  font-weight: 700; font-size: 14px; color: var(--amber);
  display: inline-flex; align-items: center; gap: 7px;
  letter-spacing: 0.03em;
}
.service-card__link svg { width: 15px; transition: transform 0.3s var(--ease); }
.service-card:hover .service-card__link svg { transform: translateX(4px); }

/* checkmark feature list */
.feature-list { display: grid; gap: 10px; margin: 0 0 22px; }
.feature-list li {
  display: flex; align-items: center; gap: 10px;
  font-size: 14.5px; color: var(--on-surface);
}
.feature-list svg { width: 18px; height: 18px; color: var(--amber); flex-shrink: 0; }

/* ---------- Split feature ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.split--reverse .split__media { order: 2; }
.split__media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--navy-deep) center/cover no-repeat;
  box-shadow: var(--shadow-lift);
}
.split__body h2 { font-size: clamp(28px, 3.6vw, 40px); margin: 18px 0 20px; }
.split__body p { color: var(--slate); font-size: 17px; margin: 0 0 18px; }

/* ---------- Stats ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.stat { text-align: center; padding: 12px; }
.stat__num {
  font-family: var(--font-serif);
  font-size: clamp(38px, 5vw, 54px);
  font-weight: 700;
  color: var(--amber);
  line-height: 1;
}
.stat__label {
  margin-top: 10px;
  font-size: 14px;
  color: rgba(255,255,255,0.72);
  letter-spacing: 0.02em;
}

/* ---------- Section variants ---------- */
.section--dark {
  background: var(--charcoal);
  color: #fff;
  position: relative;
}
.section--dark .section-head p { color: rgba(255,255,255,0.72); }
.section--navy { background: var(--navy); color: #fff; }
.section--navy .section-head p { color: rgba(255,255,255,0.72); }
.section--alt { background: var(--surface-alt); }

/* ---------- Testimonials ---------- */
.testimonial {
  background: var(--navy);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 38px 34px;
  position: relative;
  height: 100%;
  box-shadow: var(--shadow-soft);
}
.testimonial__quote {
  font-family: var(--font-serif);
  font-size: 19px;
  line-height: 1.5;
  margin: 0 0 24px;
}
.testimonial__stars { color: var(--amber); letter-spacing: 3px; margin-bottom: 18px; font-size: 15px; }
.testimonial__author { display: flex; align-items: center; gap: 14px; }
.testimonial__avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--amber); color: var(--charcoal);
  display: grid; place-items: center; font-weight: 700; font-family: var(--font-serif);
  flex-shrink: 0;
}
.testimonial__author strong { display: block; font-size: 15px; }
.testimonial__author span { font-size: 13px; color: rgba(255,255,255,0.6); }

/* ---------- Gallery ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 200px;
  gap: 16px;
}
.gallery__item {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--navy-deep) center/cover no-repeat;
  position: relative;
}
.gallery__item span {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  transition: transform 0.7s var(--ease);
}
.gallery__item:hover span { transform: scale(1.08); }
.gallery__item--wide { grid-column: span 2; }
.gallery__item--tall { grid-row: span 2; }

/* ---------- Incentive / rebate band ---------- */
.rebate {
  background: linear-gradient(120deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 52px 56px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 32px;
  position: relative;
  overflow: hidden;
}
.rebate::before {
  content: '';
  position: absolute; top: -60px; right: -40px;
  width: 260px; height: 260px;
  background: radial-gradient(circle, rgba(226,142,0,0.35), transparent 70%);
}
.rebate__tag {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--amber); color: var(--charcoal);
  font-weight: 700; font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 7px 14px; border-radius: var(--radius); margin-bottom: 18px;
}
.rebate h2 { font-size: clamp(26px, 3.4vw, 38px); margin-bottom: 12px; position: relative; }
.rebate p { color: rgba(255,255,255,0.8); margin: 0; max-width: 520px; position: relative; }

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--charcoal);
  color: #fff;
  text-align: center;
  padding: var(--section-md) 0;
  position: relative;
  overflow: hidden;
}
.cta-band::after {
  content: '';
  position: absolute; bottom: -120px; left: 50%; transform: translateX(-50%);
  width: 600px; height: 300px;
  background: radial-gradient(ellipse, rgba(226,142,0,0.22), transparent 70%);
}
.cta-band h2 { font-size: clamp(30px, 4.4vw, 48px); margin-bottom: 18px; position: relative; }
.cta-band p { color: rgba(255,255,255,0.72); font-size: 18px; max-width: 560px; margin: 0 auto 34px; position: relative; }
.cta-band .btn { position: relative; }

/* ---------- Forms ---------- */
.form-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-lift);
}
.form-card h3 { font-size: 26px; margin-bottom: 8px; }
.form-card > p { color: var(--slate); margin: 0 0 26px; font-size: 15px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { margin-bottom: 18px; }
.field label {
  display: block; font-size: 12px; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--slate); margin-bottom: 7px;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 13px 15px;
  border: 1px solid var(--outline);
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: 15px;
  color: var(--on-surface);
  background: var(--surface);
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(27, 38, 59, 0.12);
  background: #fff;
}
.field textarea { min-height: 120px; resize: vertical; }

/* ---------- Contact info panel ---------- */
.info-panel {
  background: var(--navy);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 40px;
}
.info-panel h3 { font-size: 22px; margin-bottom: 26px; }
.info-row { display: flex; gap: 16px; padding: 18px 0; border-top: 1px solid var(--line-dark); }
.info-row:first-of-type { border-top: none; }
.info-row svg { width: 22px; height: 22px; color: var(--amber); flex-shrink: 0; margin-top: 2px; }
.info-row .label { font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255,255,255,0.55); }
.info-row .value { font-size: 16px; font-weight: 600; }

/* ---------- Values / pillars ---------- */
.pillar {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 34px 30px;
  box-shadow: var(--shadow-soft);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
  height: 100%;
}
.pillar:hover { transform: translateY(-6px); box-shadow: var(--shadow-lift); }
.pillar__icon {
  width: 52px; height: 52px; border-radius: var(--radius);
  background: rgba(226,142,0,0.12);
  display: grid; place-items: center; margin-bottom: 20px;
}
.pillar__icon svg { width: 26px; height: 26px; color: var(--amber); }
.pillar h3 { font-size: 21px; margin-bottom: 10px; }
.pillar p { color: var(--slate); font-size: 15px; margin: 0; }

/* ---------- Process steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.step { position: relative; }
.step__num {
  font-family: var(--font-serif);
  font-size: 52px; font-weight: 700;
  color: rgba(226,142,0,0.25);
  line-height: 1; margin-bottom: 14px;
}
.step h3 { font-size: 19px; margin-bottom: 8px; }
.step p { color: var(--slate); font-size: 14.5px; margin: 0; }
.section--dark .step p { color: rgba(255,255,255,0.65); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--charcoal);
  color: rgba(255,255,255,0.65);
  padding: 72px 0 0;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 48px;
  padding-bottom: 56px;
}
.footer__brand { display: flex; align-items: center; gap: 12px; color: #fff; margin-bottom: 18px; font-family: var(--font-serif); font-size: 22px; font-weight: 700; }
.footer__col p { font-size: 14.5px; line-height: 1.7; margin: 0 0 20px; }
.footer__col h4 {
  font-family: var(--font-sans);
  font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: #fff; margin-bottom: 18px;
}
.footer__col ul li { margin-bottom: 11px; }
.footer__col ul a { font-size: 14.5px; transition: color 0.25s var(--ease); }
.footer__col ul a:hover { color: var(--amber); }
.footer__contact-item { display: flex; gap: 10px; margin-bottom: 14px; font-size: 14.5px; }
.footer__contact-item svg { width: 17px; color: var(--amber); flex-shrink: 0; margin-top: 2px; }
.footer__socials { display: flex; gap: 12px; margin-top: 4px; }
.footer__socials a {
  width: 38px; height: 38px; border-radius: var(--radius);
  border: 1px solid var(--line-dark);
  display: grid; place-items: center;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease);
}
.footer__socials a:hover { background: var(--amber); border-color: var(--amber); color: var(--charcoal); }
.footer__socials svg { width: 18px; }
.footer__bar {
  border-top: 1px solid var(--line-dark);
  padding: 24px 0;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  font-size: 13px;
}

/* ---------- Scroll reveal (GSAP-driven; graceful default) ---------- */
.reveal { opacity: 0; transform: translateY(38px); }
.reveal-stagger > * { opacity: 0; transform: translateY(38px); }
.js-ready .reveal,
.js-ready .reveal-stagger > * { will-change: opacity, transform; }

/* When JS/animation is off, show everything */
.no-js .reveal,
.no-js .reveal-stagger > * { opacity: 1; transform: none; }

/* ---------- Mobile menu panel ---------- */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 99;
  background: var(--charcoal);
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  padding: 40px;
  transform: translateX(100%);
  transition: transform 0.45s var(--ease);
}
.mobile-menu.is-open { transform: translateX(0); }
.mobile-menu a {
  font-family: var(--font-serif);
  font-size: 30px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line-dark);
}
.mobile-menu .btn { margin-top: 26px; }
.mobile-menu__close {
  position: absolute; top: 26px; right: 26px;
  background: none; border: none; color: #fff;
  font-size: 34px; line-height: 1;
}

/* =====================================================================
   Responsive
   ===================================================================== */
@media (max-width: 1024px) {
  :root { --section-lg: 90px; --section-md: 70px; }
  .split { gap: 40px; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 40px; }
}

@media (max-width: 860px) {
  .nav-links, .nav-phone { display: none; }
  .nav-toggle { display: flex; }
  .grid--3, .grid--2 { grid-template-columns: 1fr; }
  .trustbar__grid { grid-template-columns: 1fr; }
  .trustbar__item { border-left: none; border-top: 1px solid var(--line-dark); }
  .trustbar__item:first-child { border-top: none; }
  .split { grid-template-columns: 1fr; }
  .split--reverse .split__media { order: 0; }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 32px 16px; }
  .steps { grid-template-columns: repeat(2, 1fr); gap: 34px 24px; }
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 160px; }
  .rebate { grid-template-columns: 1fr; padding: 40px 32px; }
  .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  :root { --gutter: 16px; }
  .hero__inner { padding: 100px 0; }
  .hero__actions { flex-direction: column; }
  .hero__actions .btn { width: 100%; }
  .stats { grid-template-columns: 1fr 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .form-card, .info-panel { padding: 28px 22px; }
  .gallery { grid-template-columns: 1fr; }
  .gallery__item--wide { grid-column: span 1; }
}

/* ---------- Accessibility: reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .reveal, .reveal-stagger > * { opacity: 1 !important; transform: none !important; }
  .hero__bg { transform: none !important; }
}

/* Focus visibility */
a:focus-visible, button:focus-visible,
input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 2px;
}
