/* GM Harvey Construction — Blue & Gold (WV) */

:root,
[data-theme='light'] {
  /* Brand — WV Blue & Gold */
  --color-brand-blue: #0a2a5e;        /* deep WV navy from logo */
  --color-brand-blue-dark: #061d44;
  --color-brand-blue-light: #1a4592;
  --color-brand-gold: #eaaa00;        /* WV gold */
  --color-brand-gold-dark: #c48d00;
  --color-brand-gold-light: #f7c948;

  /* Surfaces */
  --color-bg: #ffffff;
  --color-surface: #f7f9fc;
  --color-surface-2: #eef2f8;
  --color-surface-offset: #e6ebf3;
  --color-divider: #d9e0ec;
  --color-border: #c8d2e2;

  /* Text */
  --color-text: #0e1a30;
  --color-text-muted: #4a5670;
  --color-text-faint: #8893ab;
  --color-text-inverse: #ffffff;

  /* Semantic */
  --color-primary: var(--color-brand-blue);
  --color-primary-hover: var(--color-brand-blue-dark);
  --color-accent: var(--color-brand-gold);
  --color-accent-hover: var(--color-brand-gold-dark);

  /* Type scale */
  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --text-sm: clamp(0.875rem, 0.8rem + 0.35vw, 1rem);
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --text-lg: clamp(1.125rem, 1rem + 0.75vw, 1.5rem);
  --text-xl: clamp(1.5rem, 1.2rem + 1.25vw, 2.25rem);
  --text-2xl: clamp(2rem, 1.2rem + 2.5vw, 3.5rem);
  --text-3xl: clamp(2.5rem, 1rem + 4vw, 5rem);
  --text-hero: clamp(2.75rem, 1.5rem + 4vw, 5.5rem);

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* Radius / shadows */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-full: 9999px;

  --shadow-sm: 0 1px 2px rgba(10, 42, 94, 0.08);
  --shadow-md: 0 6px 18px rgba(10, 42, 94, 0.10);
  --shadow-lg: 0 18px 40px rgba(10, 42, 94, 0.15);

  --transition-interactive: 200ms cubic-bezier(0.16, 1, 0.3, 1);

  /* Widths */
  --content-narrow: 720px;
  --content-default: 1080px;
  --content-wide: 1280px;

  /* Fonts */
  --font-display: 'Bebas Neue', 'Oswald', Impact, sans-serif;
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ------- Base reset ------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  min-height: 100dvh;
  line-height: 1.6;
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--color-text);
  background-color: var(--color-bg);
}

img, picture, video, svg { display: block; max-width: 100%; height: auto; }

input, button, textarea, select { font: inherit; color: inherit; }

h1, h2, h3, h4, h5, h6 { text-wrap: balance; line-height: 1.15; letter-spacing: -0.01em; }

p, li { text-wrap: pretty; }

a { color: var(--color-primary); text-decoration: none; transition: color var(--transition-interactive); }
a:hover { color: var(--color-accent-hover); }

::selection { background: var(--color-brand-gold); color: var(--color-brand-blue-dark); }

:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 3px; border-radius: var(--radius-sm); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ------- Layout helpers ------- */
.container { width: 100%; max-width: var(--content-wide); margin-inline: auto; padding-inline: clamp(1rem, 4vw, 2rem); }
.container-narrow { max-width: var(--content-narrow); margin-inline: auto; padding-inline: clamp(1rem, 4vw, 2rem); }
.section { padding-block: clamp(var(--space-16), 8vw, var(--space-24)); }
.section-tight { padding-block: clamp(var(--space-12), 6vw, var(--space-20)); }

/* ------- Header / Nav ------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-divider);
  transition: box-shadow var(--transition-interactive);
}
.site-header.scrolled { box-shadow: var(--shadow-sm); }

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
  padding-block: var(--space-3);
}

.nav-brand { display: flex; align-items: center; gap: var(--space-3); }
.nav-brand img { height: 56px; width: auto; }

.nav-links {
  display: flex;
  list-style: none;
  gap: var(--space-6);
  align-items: center;
}
.nav-links a {
  color: var(--color-text);
  font-weight: 500;
  font-size: var(--text-sm);
  letter-spacing: 0.02em;
  padding: var(--space-2) 0;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 2px;
  background: var(--color-accent);
  transition: width var(--transition-interactive);
}
.nav-links a:hover, .nav-links a.active { color: var(--color-primary); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }

.nav-cta {
  background: var(--color-accent);
  color: var(--color-brand-blue-dark) !important;
  padding: var(--space-3) var(--space-5);
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: var(--text-sm);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.nav-cta:hover { background: var(--color-accent-hover); color: var(--color-brand-blue-dark) !important; }
.nav-cta::after { display: none; }

.nav-phone {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--color-brand-blue) !important;
  font-weight: 700;
  font-size: var(--text-sm);
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.nav-phone:hover { color: var(--color-accent-hover) !important; }
.nav-phone::after { display: none; }
.nav-phone svg { color: var(--color-accent); }
@media (max-width: 900px) { .nav-phone { color: var(--color-brand-blue) !important; } }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-2);
  color: var(--color-primary);
}

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    padding: var(--space-4);
    gap: var(--space-2);
    border-bottom: 1px solid var(--color-divider);
    transform: translateY(-10px);
    opacity: 0;
    pointer-events: none;
    transition: all var(--transition-interactive);
  }
  .nav-links.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav-links a { padding: var(--space-3); border-radius: var(--radius-sm); }
  .nav-links a:hover { background: var(--color-surface); }
}

/* ------- Buttons ------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: var(--text-sm);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition-interactive);
  text-decoration: none;
}
.btn-primary { background: var(--color-accent); color: var(--color-brand-blue-dark); }
.btn-primary:hover { background: var(--color-accent-hover); color: var(--color-brand-blue-dark); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-secondary { background: var(--color-primary); color: #fff; }
.btn-secondary:hover { background: var(--color-primary-hover); color: #fff; transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-outline { border-color: var(--color-primary); color: var(--color-primary); background: transparent; }
.btn-outline:hover { background: var(--color-primary); color: #fff; }
.btn-ghost-light { border-color: rgba(255,255,255,0.6); color: #fff; background: transparent; }
.btn-ghost-light:hover { background: #fff; color: var(--color-brand-blue-dark); }

/* ------- Hero ------- */
.hero {
  position: relative;
  min-height: 78vh;
  display: flex;
  align-items: center;
  color: #fff;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background-image: url('../assets/hero-bg.jpg');
  background-size: cover;
  background-position: center;
  z-index: 0;
}
.hero-bg::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(6,29,68,0.92) 0%, rgba(10,42,94,0.78) 50%, rgba(10,42,94,0.55) 100%);
}
.hero-content { position: relative; z-index: 1; padding-block: clamp(var(--space-20), 10vw, var(--space-32)); }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: var(--space-2);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-brand-gold);
  margin-bottom: var(--space-4);
}
.hero-eyebrow::before {
  content: '';
  width: 32px; height: 2px; background: var(--color-brand-gold);
}
.hero h1 {
  font-family: var(--font-display);
  font-size: var(--text-hero);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: 0.01em;
  max-width: 14ch;
  margin-bottom: var(--space-5);
}
.hero h1 .gold { color: var(--color-brand-gold); }
.hero-sub {
  font-size: var(--text-lg);
  max-width: 56ch;
  color: rgba(255,255,255,0.92);
  margin-bottom: var(--space-8);
}
.hero-actions { display: flex; gap: var(--space-3); flex-wrap: wrap; }
.hero-trust {
  display: flex; gap: var(--space-6); flex-wrap: wrap;
  margin-top: var(--space-10);
  padding-top: var(--space-6);
  border-top: 1px solid rgba(255,255,255,0.18);
}
.trust-item { display: flex; align-items: center; gap: var(--space-2); font-size: var(--text-sm); color: rgba(255,255,255,0.85); }
.trust-item svg { color: var(--color-brand-gold); flex-shrink: 0; }

/* ------- Section headings ------- */
.section-head { text-align: center; margin-bottom: var(--space-12); }
.section-head.left { text-align: left; }
.eyebrow {
  display: inline-block;
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-3);
}
.section-head h2 {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--color-brand-blue);
  margin-bottom: var(--space-3);
}
.section-head .lead {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  max-width: 64ch;
  margin-inline: auto;
}
.section-head.left .lead { margin-inline: 0; }

/* ------- Trust / Owner band ------- */
.owner-band {
  background: var(--color-brand-blue);
  color: #fff;
  padding-block: var(--space-12);
}
.owner-band .badge-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-8);
  align-items: center;
  text-align: center;
}
.badge {
  display: flex; flex-direction: column; align-items: center; gap: var(--space-2);
}
.badge svg { color: var(--color-brand-gold); }
.badge strong { font-family: var(--font-display); font-size: var(--text-lg); letter-spacing: 0.04em; color: #fff; }
.badge span { font-size: var(--text-sm); color: rgba(255,255,255,0.78); }

/* ------- Services grid ------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-6);
}
.service-card {
  background: #fff;
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  transition: all var(--transition-interactive);
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute; top: 0; left: 0;
  width: 4px; height: 100%;
  background: var(--color-accent);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform var(--transition-interactive);
}
.service-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); border-color: var(--color-brand-blue); }
.service-card:hover::before { transform: scaleY(1); }
.service-icon {
  width: 56px; height: 56px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--color-brand-blue), var(--color-brand-blue-light));
  color: var(--color-brand-gold);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-5);
}
.service-card h3 {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--color-brand-blue);
  margin-bottom: var(--space-3);
}
.service-card p { color: var(--color-text-muted); font-size: var(--text-base); }
.service-card ul { margin-top: var(--space-3); list-style: none; }
.service-card ul li {
  position: relative;
  padding-left: var(--space-5);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-1);
}
.service-card ul li::before {
  content: '';
  position: absolute; left: 0; top: 0.55em;
  width: 8px; height: 8px;
  background: var(--color-accent);
  border-radius: 50%;
}

/* Service card photo — breaks out of card padding, sits flush at top */
.service-card.has-photo { padding-top: 0; }
.service-photo {
  margin: 0 calc(-1 * var(--space-8)) var(--space-6);
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--color-surface-2);
}
.service-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform var(--transition-interactive);
}
.service-card.has-photo:hover .service-photo img { transform: scale(1.04); }

/* ------- Brand mark (full logo feature) ------- */
.brand-mark {
  display: flex;
  justify-content: center;
  margin-bottom: var(--space-6);
}
.brand-mark img {
  width: 180px;
  max-width: 100%;
  height: auto;
  filter: drop-shadow(0 4px 16px rgba(0,0,0,0.45));
}
@media (min-width: 768px) {
  .brand-mark img { width: 220px; }
}
.page-header .brand-mark { margin-bottom: var(--space-4); }
.page-header .brand-mark img { width: 140px; }
@media (min-width: 768px) {
  .page-header .brand-mark img { width: 170px; }
}

/* ------- Carports / Eagle Carports section ------- */
.eagle-hero {
  position: relative;
  background: linear-gradient(135deg, var(--color-brand-blue-dark) 0%, var(--color-brand-blue) 60%, var(--color-brand-blue-light) 100%);
  color: #fff;
  padding: var(--space-20) 0;
  overflow: hidden;
}
.eagle-hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(6,29,68,0.78), rgba(10,42,94,0.78)), url('../assets/carport-hero.jpg');
  background-size: cover; background-position: center;
  z-index: 0;
}
.eagle-hero .container { position: relative; z-index: 1; }
.eagle-hero .eyebrow { color: var(--color-brand-gold); }
.eagle-hero h1 { color: #fff; }
.eagle-hero h1 .gold { color: var(--color-brand-gold); }
.eagle-hero p.lead { color: rgba(255,255,255,0.9); max-width: 60ch; }
.dealer-badge {
  display: inline-flex; align-items: center; gap: var(--space-2);
  background: var(--color-brand-gold);
  color: var(--color-brand-blue-dark);
  padding: var(--space-2) var(--space-4);
  border-radius: 999px;
  font-family: var(--font-display, var(--font-heading));
  font-size: var(--text-sm);
  letter-spacing: 0.08em;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: var(--space-5);
}
.dealer-badge svg { stroke: var(--color-brand-blue-dark); }

.eagle-types {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-5);
  margin-top: var(--space-10);
}
.eagle-type {
  background: #fff;
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-md);
  padding: var(--space-6);
  text-align: center;
  transition: all var(--transition-interactive);
}
.eagle-type:hover {
  border-color: var(--color-brand-blue);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.eagle-type .icon {
  width: 48px; height: 48px;
  margin: 0 auto var(--space-3);
  color: var(--color-brand-blue);
}
.eagle-type h4 {
  font-family: var(--font-heading);
  color: var(--color-brand-blue);
  font-size: var(--text-base);
  font-weight: 700;
  margin-bottom: var(--space-2);
}
.eagle-type p { font-size: var(--text-sm); color: var(--color-text-muted); }

.config-callout {
  background: var(--color-brand-blue);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: var(--space-10);
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: var(--space-8);
  align-items: center;
}
@media (max-width: 800px) {
  .config-callout { grid-template-columns: 1fr; padding: var(--space-8); }
}
.config-callout h2 { color: #fff; margin-bottom: var(--space-3); }
.config-callout h2 .gold { color: var(--color-brand-gold); }
.config-callout p { color: rgba(255,255,255,0.88); margin-bottom: var(--space-5); }
.config-callout .actions { display: flex; flex-wrap: wrap; gap: var(--space-3); }
.config-visual {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 4px solid var(--color-brand-gold);
}
.config-visual img { width: 100%; height: 100%; object-fit: cover; display: block; }

.carport-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-5);
  margin-top: var(--space-8);
}
.carport-gallery figure { margin: 0; }
.carport-gallery img {
  width: 100%; aspect-ratio: 16/9; object-fit: cover;
  border-radius: var(--radius-md);
  display: block;
}
.carport-gallery figcaption {
  margin-top: var(--space-2);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  text-align: center;
}

/* ------- Owner spotlight ------- */
.owner-spotlight {
  background: var(--color-surface);
  position: relative;
  overflow: hidden;
}
.owner-spotlight::before {
  content: '';
  position: absolute;
  top: -120px; right: -120px;
  width: 480px; height: 480px;
  background: radial-gradient(circle, rgba(234,170,0,0.10), transparent 70%);
  z-index: 0;
}
.owner-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: center;
  position: relative;
  z-index: 1;
}
@media (max-width: 800px) {
  .owner-grid { grid-template-columns: 1fr; gap: var(--space-10); }
}
.owner-image-wrap {
  position: relative;
}
.owner-image-wrap .frame {
  background: linear-gradient(135deg, var(--color-brand-blue), var(--color-brand-blue-dark));
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  box-shadow: var(--shadow-lg);
}
.owner-image-wrap .frame img { border-radius: var(--radius-md); width: 100%; aspect-ratio: 4/5; object-fit: cover; }
.owner-image-wrap .stamp {
  position: absolute;
  bottom: -24px; right: -24px;
  background: var(--color-accent);
  color: var(--color-brand-blue-dark);
  padding: var(--space-5) var(--space-6);
  border-radius: var(--radius-md);
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.04em;
  box-shadow: var(--shadow-md);
  text-align: center;
  line-height: 1.1;
}
.owner-image-wrap .stamp small { display: block; font-size: var(--text-xs); letter-spacing: 0.16em; opacity: 0.7; margin-bottom: var(--space-1); }
.owner-image-wrap .stamp strong { font-size: var(--text-xl); }
.owner-text .eyebrow { color: var(--color-accent); }
.owner-text h2 {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  color: var(--color-brand-blue);
  margin-bottom: var(--space-5);
}
.owner-text p { font-size: var(--text-base); color: var(--color-text); margin-bottom: var(--space-4); max-width: 56ch; }
.owner-credentials {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4);
  margin-top: var(--space-6);
  padding-top: var(--space-6);
  border-top: 2px solid var(--color-divider);
}
.cred {
  display: flex;
  gap: var(--space-3);
  align-items: flex-start;
}
.cred svg { color: var(--color-accent); flex-shrink: 0; margin-top: 2px; }
.cred strong { display: block; color: var(--color-brand-blue); font-size: var(--text-sm); font-weight: 700; }
.cred span { color: var(--color-text-muted); font-size: var(--text-sm); }

/* ------- Projects ------- */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-6);
}
.project-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
  cursor: pointer;
  box-shadow: var(--shadow-md);
}
.project-card img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 600ms cubic-bezier(0.16, 1, 0.3, 1);
}
.project-card:hover img { transform: scale(1.06); }
.project-card .overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(6,29,68,0.92) 0%, rgba(6,29,68,0.25) 50%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--space-6);
  color: #fff;
}
.project-card .tag {
  display: inline-block;
  background: var(--color-accent);
  color: var(--color-brand-blue-dark);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: var(--space-3);
  align-self: flex-start;
}
.project-card h3 { font-family: var(--font-heading); font-size: var(--text-lg); font-weight: 700; margin-bottom: var(--space-1); }
.project-card p { color: rgba(255,255,255,0.85); font-size: var(--text-sm); }

/* ------- Partner band (Kitchen & Bath) ------- */
.partner-band {
  background: linear-gradient(135deg, var(--color-brand-blue-dark), var(--color-brand-blue));
  color: #fff;
  position: relative;
  overflow: hidden;
}
.partner-band::before {
  content: '';
  position: absolute;
  bottom: -200px; left: -200px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(234,170,0,0.18), transparent 70%);
}
.partner-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-12);
  align-items: center;
  position: relative;
  z-index: 1;
}
@media (max-width: 800px) { .partner-grid { grid-template-columns: 1fr; } }
.partner-text h2 {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  color: #fff;
  margin-bottom: var(--space-5);
}
.partner-text h2 .gold { color: var(--color-brand-gold); }
.partner-text p { color: rgba(255,255,255,0.88); margin-bottom: var(--space-5); max-width: 52ch; }
.partner-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
}
.partner-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--space-4);
  transition: all var(--transition-interactive);
  text-decoration: none;
  color: #fff;
}
.partner-card:hover { background: rgba(234,170,0,0.10); border-color: var(--color-brand-gold); color: #fff; }
.partner-card .name { font-family: var(--font-heading); font-size: var(--text-lg); font-weight: 700; margin-bottom: var(--space-1); color: #fff; }
.partner-card .sub { font-size: var(--text-sm); color: rgba(255,255,255,0.72); }
.partner-card .arrow {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--color-brand-gold);
  color: var(--color-brand-blue-dark);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: transform var(--transition-interactive);
}
.partner-card:hover .arrow { transform: translateX(4px); }

/* ------- Testimonials ------- */
.testimonials {
  background: var(--color-surface);
}
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-6);
}
.testimonial {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  border: 1px solid var(--color-divider);
  position: relative;
}
.testimonial .stars { color: var(--color-accent); margin-bottom: var(--space-4); font-size: var(--text-lg); letter-spacing: 2px; }
.testimonial blockquote { font-size: var(--text-base); color: var(--color-text); margin-bottom: var(--space-5); font-style: italic; line-height: 1.7; }
.testimonial cite { display: block; font-style: normal; }
.testimonial cite strong { display: block; font-family: var(--font-heading); color: var(--color-brand-blue); font-size: var(--text-base); }
.testimonial cite span { font-size: var(--text-sm); color: var(--color-text-muted); }

/* ------- CTA band ------- */
.cta-band {
  background: var(--color-brand-blue);
  color: #fff;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-band::before, .cta-band::after {
  content: '';
  position: absolute;
  width: 360px; height: 360px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(234,170,0,0.20), transparent 70%);
}
.cta-band::before { top: -180px; left: -180px; }
.cta-band::after { bottom: -180px; right: -180px; }
.cta-band > .container { position: relative; z-index: 1; }
.cta-band h2 {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  color: #fff;
  margin-bottom: var(--space-4);
}
.cta-band p { max-width: 60ch; margin: 0 auto var(--space-8); color: rgba(255,255,255,0.88); font-size: var(--text-lg); }
.cta-band .actions { display: flex; gap: var(--space-4); justify-content: center; flex-wrap: wrap; }

/* ------- Contact / Form ------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: var(--space-12);
  align-items: start;
}
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; gap: var(--space-8); } }
.contact-info h3 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  color: var(--color-brand-blue);
  margin-bottom: var(--space-4);
}
.contact-info p { color: var(--color-text-muted); margin-bottom: var(--space-6); }
.contact-list { list-style: none; }
.contact-list li {
  display: flex;
  gap: var(--space-4);
  align-items: flex-start;
  padding: var(--space-4) 0;
  border-top: 1px solid var(--color-divider);
}
.contact-list li:first-child { border-top: none; padding-top: 0; }
.contact-list .icon {
  width: 44px; height: 44px; flex-shrink: 0;
  background: var(--color-brand-blue);
  color: var(--color-accent);
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
}
.contact-list strong { display: block; color: var(--color-brand-blue); margin-bottom: 2px; font-size: var(--text-sm); letter-spacing: 0.06em; text-transform: uppercase; }
.contact-list a, .contact-list .val { color: var(--color-text); font-size: var(--text-base); }
.contact-list a:hover { color: var(--color-accent-hover); }

.form-card {
  background: #fff;
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-lg);
  padding: clamp(var(--space-6), 4vw, var(--space-10));
  box-shadow: var(--shadow-md);
}
.form-card h3 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  color: var(--color-brand-blue);
  margin-bottom: var(--space-2);
}
.form-card .form-intro { color: var(--color-text-muted); margin-bottom: var(--space-6); font-size: var(--text-sm); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }
.form-field { margin-bottom: var(--space-4); }
.form-field label {
  display: block;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-brand-blue);
  margin-bottom: var(--space-2);
  letter-spacing: 0.02em;
}
.form-field label .req { color: #c0392b; }
.form-field input, .form-field select, .form-field textarea {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: #fff;
  font-size: var(--text-base);
  transition: all var(--transition-interactive);
}
.form-field textarea { resize: vertical; min-height: 130px; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(234,170,0,0.18);
}
.form-actions { display: flex; align-items: center; gap: var(--space-4); flex-wrap: wrap; margin-top: var(--space-4); }
.form-status {
  font-size: var(--text-sm);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md);
  margin-top: var(--space-4);
  display: none;
}
.form-status.show { display: block; }
.form-status.success { background: #e8f6ee; color: #1f6f3a; border: 1px solid #b6dec5; }
.form-status.error { background: #fdecea; color: #a8281c; border: 1px solid #f3b8b1; }
.honeypot { position: absolute; left: -9999px; opacity: 0; pointer-events: none; }

/* ------- Footer ------- */
.site-footer {
  background: var(--color-brand-blue-dark);
  color: rgba(255,255,255,0.78);
  padding-top: var(--space-16);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: var(--space-10);
  padding-bottom: var(--space-12);
}
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 500px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-wordmark {
  display: flex; align-items: baseline; gap: var(--space-2);
  font-family: var(--font-display);
  font-size: var(--text-xl);
  letter-spacing: 0.03em;
  color: #fff;
  margin-bottom: var(--space-4);
  line-height: 1;
}
.footer-wordmark .gold { color: var(--color-brand-gold); }
.footer-wordmark .sub {
  display: block;
  font-family: var(--font-body);
  font-size: var(--text-xs);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-brand-gold);
  font-weight: 600;
  margin-top: var(--space-2);
}
.footer-brand p { font-size: var(--text-sm); max-width: 36ch; line-height: 1.6; }
.footer-col h4 {
  font-family: var(--font-display);
  color: var(--color-brand-gold);
  font-size: var(--text-base);
  letter-spacing: 0.08em;
  margin-bottom: var(--space-4);
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: var(--space-2); }
.footer-col a { color: rgba(255,255,255,0.78); font-size: var(--text-sm); }
.footer-col a:hover { color: var(--color-brand-gold); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-block: var(--space-5);
  display: flex; justify-content: space-between; gap: var(--space-4);
  flex-wrap: wrap;
  font-size: var(--text-sm);
}
.footer-bottom .badges { display: flex; gap: var(--space-4); }
.footer-bottom .badges span { color: var(--color-brand-gold); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; font-size: var(--text-xs); }

/* ------- Page header (interior pages) ------- */
.page-header {
  background: linear-gradient(135deg, var(--color-brand-blue-dark), var(--color-brand-blue));
  color: #fff;
  padding-block: clamp(var(--space-16), 10vw, var(--space-24));
  position: relative;
  overflow: hidden;
}
.page-header::before {
  content: '';
  position: absolute;
  top: -150px; right: -150px;
  width: 420px; height: 420px;
  background: radial-gradient(circle, rgba(234,170,0,0.18), transparent 70%);
}
.page-header > .container { position: relative; z-index: 1; }
.page-header h1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 1.5rem + 3vw, 4.5rem);
  letter-spacing: 0.02em;
  margin-bottom: var(--space-3);
}
.page-header h1 .gold { color: var(--color-brand-gold); }
.page-header p { font-size: var(--text-lg); max-width: 62ch; color: rgba(255,255,255,0.88); }
.breadcrumb {
  display: flex; gap: var(--space-2); align-items: center;
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.7);
  margin-bottom: var(--space-4);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.breadcrumb a { color: var(--color-brand-gold); }
.breadcrumb a:hover { color: #fff; }

/* ------- Content prose (about, etc) ------- */
.prose {
  max-width: 68ch;
}
.prose p { margin-bottom: var(--space-5); font-size: var(--text-base); color: var(--color-text); }
.prose h2 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  color: var(--color-brand-blue);
  margin-top: var(--space-10);
  margin-bottom: var(--space-4);
  letter-spacing: 0.02em;
}
.prose h3 {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  color: var(--color-brand-blue);
  margin-top: var(--space-6);
  margin-bottom: var(--space-3);
}
.prose ul, .prose ol { margin-bottom: var(--space-5); padding-left: var(--space-6); }
.prose li { margin-bottom: var(--space-2); }
.prose blockquote {
  border-left: 4px solid var(--color-accent);
  padding-left: var(--space-5);
  margin: var(--space-6) 0;
  font-style: italic;
  color: var(--color-text-muted);
}

/* ------- Process steps ------- */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-6);
  counter-reset: step;
}
.step {
  position: relative;
  padding: var(--space-8) var(--space-6);
  background: #fff;
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-lg);
}
.step::before {
  counter-increment: step;
  content: "0" counter(step);
  position: absolute;
  top: -16px; left: var(--space-6);
  background: var(--color-accent);
  color: var(--color-brand-blue-dark);
  font-family: var(--font-display);
  font-size: var(--text-lg);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-md);
  letter-spacing: 0.04em;
}
.step h3 {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  color: var(--color-brand-blue);
  margin-bottom: var(--space-3);
  margin-top: var(--space-2);
}
.step p { color: var(--color-text-muted); font-size: var(--text-sm); }

/* ------- Reveal on scroll ------- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 700ms cubic-bezier(0.16, 1, 0.3, 1), transform 700ms cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.in { opacity: 1; transform: translateY(0); }

/* Clickable card wrappers (homepage service + project cards) */
.card-link { display: block; color: inherit; text-decoration: none; }
.card-link:hover, .card-link:focus { color: inherit; text-decoration: none; }
.card-link:focus-visible { outline: 3px solid var(--color-brand-gold); outline-offset: 4px; border-radius: var(--radius); }

/* ====== Atlas Shingles spotlight section ====== */
.atlas-section {
  background: linear-gradient(180deg, #f6f7fb 0%, #ffffff 100%);
}
.partner-tag {
  display: inline-block;
  margin: 0 0 var(--space-2) 0;
  padding: 4px 10px;
  background: var(--color-brand-blue);
  color: var(--color-brand-gold);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 999px;
  line-height: 1.4;
}
.card-link-prompt {
  margin-top: var(--space-3);
  font-size: 0.85rem;
  color: var(--color-brand-blue);
  font-weight: 600;
  opacity: 0.7;
}
.atlas-head {
  max-width: 760px;
  margin: 0 auto var(--space-10) auto;
  text-align: center;
}
.atlas-head .eyebrow {
  color: var(--color-brand-gold);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.78rem;
  margin-bottom: var(--space-3);
}
.atlas-head h2 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  margin: 0 0 var(--space-4) 0;
}
.atlas-head .lead {
  color: var(--color-text-muted, #4a5566);
  font-size: 1.05rem;
  line-height: 1.6;
}
.atlas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-5);
  margin-bottom: var(--space-10);
}
.atlas-line {
  position: relative;
  background: #fff;
  border: 1px solid #e4e7ee;
  border-radius: var(--radius);
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.atlas-line:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(10, 42, 94, 0.10);
  border-color: var(--color-brand-gold);
}
.atlas-line.featured {
  border: 2px solid var(--color-brand-gold);
  background: linear-gradient(180deg, #fffaef 0%, #ffffff 60%);
  box-shadow: 0 12px 30px rgba(234, 170, 0, 0.18);
}
.featured-flag {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-brand-gold);
  color: var(--color-brand-blue);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 999px;
  white-space: nowrap;
}
.atlas-line-head .eyebrow.gold-eye {
  color: var(--color-brand-gold);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 0.72rem;
  margin-bottom: var(--space-1);
}
.atlas-line h3 {
  font-size: 1.4rem;
  margin: 0 0 var(--space-2) 0;
  color: var(--color-brand-blue);
}
.atlas-line > p {
  color: var(--color-text-muted, #4a5566);
  line-height: 1.55;
  margin: 0;
  font-size: 0.95rem;
}
.atlas-feats {
  list-style: none;
  padding: 0;
  margin: var(--space-2) 0 0 0;
  display: grid;
  gap: var(--space-1);
}
.atlas-feats li {
  position: relative;
  padding-left: 22px;
  font-size: 0.9rem;
  color: var(--color-brand-blue);
  font-weight: 500;
}
.atlas-feats li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 5px;
  width: 14px;
  height: 14px;
  background: var(--color-brand-gold);
  border-radius: 50%;
  box-shadow: inset 0 0 0 3px #fff;
}
.atlas-system {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: var(--space-8);
  align-items: center;
  background: var(--color-brand-blue);
  color: #fff;
  border-radius: var(--radius);
  padding: var(--space-8);
  margin-bottom: var(--space-6);
}
.atlas-system-text h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin: var(--space-2) 0 var(--space-4) 0;
  color: #fff;
}
.atlas-system-text .eyebrow.gold-eye {
  color: var(--color-brand-gold);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 0.78rem;
}
.atlas-system-text p {
  line-height: 1.6;
  margin: 0 0 var(--space-5) 0;
  color: rgba(255, 255, 255, 0.85);
}
.atlas-system-text .btn-primary {
  background: var(--color-brand-gold);
  color: var(--color-brand-blue);
  border: none;
}
.atlas-system-text .btn-primary:hover {
  background: #fff;
  color: var(--color-brand-blue);
}
.atlas-system-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: var(--space-2);
}
.atlas-system-list li {
  position: relative;
  padding-left: 28px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.95rem;
}
.atlas-system-list li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--color-brand-gold);
  font-weight: 700;
  font-size: 1rem;
}
.atlas-system-list strong { color: #fff; font-weight: 700; }
.atlas-disclaimer {
  text-align: center;
  font-size: 0.8rem;
  color: var(--color-text-muted, #6b7280);
  margin: 0 auto;
  max-width: 720px;
  line-height: 1.5;
}
.atlas-disclaimer a {
  color: var(--color-brand-blue);
  text-decoration: underline;
}
@media (max-width: 768px) {
  .atlas-system {
    grid-template-columns: 1fr;
    padding: var(--space-6);
    gap: var(--space-5);
  }
}

.atlas-head h2 .gold { color: var(--color-brand-gold); }
.atlas-system-text h3 .gold { color: var(--color-brand-gold); }

/* ============================================
   Atlas Web Injector — native iframe frame
   ============================================ */
.atlas-injector-section {
  background: var(--color-surface);
}

.atlas-injector-frame {
  background: #fff;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(10, 42, 94, 0.08);
  box-shadow: 0 12px 40px rgba(10, 42, 94, 0.10);
  overflow: hidden;
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
}

.atlas-injector-body {
  width: 100%;
  position: relative;
  background: #fff;
}

.atlas-injector-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: 14px 20px;
  background: linear-gradient(180deg, #0a2a5e 0%, #07214c 100%);
  color: #fff;
  border-bottom: 3px solid var(--color-brand-gold);
}

.atlas-injector-bar-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.atlas-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  display: inline-block;
}

.atlas-dot:nth-child(2) { background: rgba(255, 255, 255, 0.25); }
.atlas-dot:nth-child(3) { background: rgba(234, 170, 0, 0.55); }

.atlas-injector-label {
  margin-left: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.92);
}

.atlas-injector-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'Inter', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--color-brand-gold);
  text-decoration: none;
  padding: 6px 10px;
  border-radius: 6px;
  transition: background 0.2s ease;
}

.atlas-injector-link:hover {
  background: rgba(234, 170, 0, 0.12);
  color: #fff;
}

.atlas-injector-link svg {
  flex-shrink: 0;
}

#atlas-web-injector {
  display: block;
  width: 100% !important;
  height: 2400px;
  min-height: 2400px;
  border: 0;
  background: #fff;
}

/* Tablet / mobile: let the iframe break out of container padding and fill the viewport edge-to-edge */
@media (max-width: 900px) {
  .atlas-injector-section .container {
    padding-left: 0;
    padding-right: 0;
  }
  .atlas-injector-section .atlas-head,
  .atlas-injector-section .atlas-disclaimer {
    padding-left: var(--space-6);
    padding-right: var(--space-6);
  }
  .atlas-injector-frame {
    border-radius: 0;
    border-left: 0;
    border-right: 0;
    max-width: 100%;
    box-shadow: 0 8px 24px rgba(10, 42, 94, 0.08);
  }
  .atlas-injector-bar {
    padding: 12px 16px;
  }
  .atlas-injector-label {
    font-size: 0.72rem;
  }
  .atlas-injector-link {
    font-size: 0.74rem;
    padding: 4px 6px;
  }
  #atlas-web-injector {
    height: 3600px;
    min-height: 3600px;
  }
}

@media (max-width: 480px) {
  #atlas-web-injector {
    height: 4400px;
    min-height: 4400px;
  }
}


/* ------- TooFast credit (matches Buffalo Trail) ------- */
.footer-bottom { align-items: center; flex-wrap: wrap; }
.footer-bottom .tf-credit {
  flex: 0 0 100%;
  width: 100%;
  order: 3;
  margin: var(--space-3) 0 0 0;
  padding-top: var(--space-4);
  border-top: 1px solid rgba(255,255,255,0.08);
  text-align: center;
  font-size: 11px;
  letter-spacing: 0.05em;
  color: rgba(255,255,255,0.30);
  text-transform: uppercase;
}
.tf-credit a {
  text-decoration: none;
  display: inline-block;
  vertical-align: baseline;
}
.footer-bottom .tf-credit .tf-mark {
  font-family: 'Satoshi', 'Inter', system-ui, sans-serif;
  font-weight: 900;
  font-size: 14px;
  letter-spacing: -0.01em;
  text-transform: lowercase;
  color: rgba(255,255,255,0.75);
  transition: color 0.2s;
}
.footer-bottom .tf-credit .tf-mark .tf-dot {
  color: #FF5026 !important;
  font-weight: 900;
}
.footer-bottom .tf-credit a:hover .tf-mark { color: #ffffff; }
.footer-bottom .tf-credit a:hover .tf-mark .tf-dot { color: #FF5026 !important; }
