/* ═══════════════════════════════════════════════════════════
   NORTH STAR ROOFING SYSTEMS — style.css
   Brand: Royal blue, navy, steel gray
   Font: Work Sans (Google Fonts)
═══════════════════════════════════════════════════════════ */

/* ── DESIGN TOKENS ─────────────────────────────────────── */
:root,
[data-theme='light'] {
  --color-bg: #f4f6fa;
  --color-surface: #ffffff;
  --color-surface-2: #eef2f8;
  --color-border: #cfd6e0;
  --color-text: #0f1a2e;
  --color-text-muted: #475569;
  --color-text-faint: #64748b;
  --color-text-inverse: #ffffff;

  /* Brand: Royal Blue (logo) + Steel Gray secondary */
  --color-navy: #1E5BBF;
  --color-navy-dark: #14438f;
  --color-navy-light: #3b7adb;
  --color-blue: #1E5BBF;
  --color-blue-hover: #14438f;
  --color-steel: #475569;
  --color-steel-hover: #334155;
  --color-steel-light: #94a3b8;
  /* Keep red token only for the in-logo crimson accent if ever needed */
  --color-red: #C01818;
  --color-red-hover: #a30f0f;

  --color-primary: var(--color-blue);
  --color-primary-hover: var(--color-blue-hover);
  --color-secondary: var(--color-steel);
  --color-secondary-hover: var(--color-steel-hover);

  --font-body: 'Work Sans', 'Helvetica Neue', Arial, sans-serif;
  --font-display: 'Work Sans', 'Helvetica Neue', Arial, sans-serif;

  --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);

  --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;

  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1.25rem;

  --shadow-sm: 0 1px 3px rgba(13,58,92,0.08);
  --shadow-md: 0 4px 16px rgba(13,58,92,0.10);
  --shadow-lg: 0 12px 40px rgba(13,58,92,0.14);

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

  --content-default: 1320px;
  --header-h: 72px;
}

[data-theme='dark'] {
  --color-bg: #0b1220;
  --color-surface: #131c2e;
  --color-surface-2: #1a2540;
  --color-border: #3b4a66;
  --color-text: #e6edf7;
  --color-text-muted: #b8c4d6;
  --color-text-faint: #94a3b8;
  --color-text-inverse: #0b1220;
  --color-navy: #3b7adb;
  --color-navy-dark: #1E5BBF;
  --color-navy-light: #5b95e6;
  --color-blue: #3b7adb;
  --color-blue-hover: #5b95e6;
  --color-steel: #94a3b8;
  --color-steel-hover: #cbd5e1;
  --color-secondary: var(--color-steel);
  --color-secondary-hover: var(--color-steel-hover);
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.3);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.35);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.45);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --color-bg: #0d1117;
    --color-surface: #161b22;
    --color-surface-2: #1c2330;
    --color-border: #2d3748;
    --color-text: #e2e8f0;
    --color-text-muted: #8892a4;
    --color-text-faint: #4a5568;
  }
}

/* ── RESET & BASE ───────────────────────────────────────── */
*, *::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: var(--header-h);
}
body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.65;
  overflow-x: hidden;
}
img, video { display: block; max-width: 100%; height: auto; }
ul[role='list'] { list-style: none; }
input, button, textarea, select { font: inherit; color: inherit; }
h1,h2,h3,h4,h5,h6 { text-wrap: balance; line-height: 1.15; font-family: var(--font-display); }
p, li { text-wrap: pretty; max-width: 72ch; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; background: none; border: none; }

::selection {
  background: rgba(30,91,191,0.22);
  color: var(--color-text);
}
:focus-visible {
  outline: 2px solid var(--color-primary);
  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;
  }
}

/* ── UTILITY ───────────────────────────────────────────── */
.container {
  max-width: var(--content-default);
  margin: 0 auto;
  padding: 0 var(--space-6);
}
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border-width: 0;
}
.section-label {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: var(--space-3);
}
.section-heading {
  font-size: var(--text-2xl);
  font-weight: 800;
  color: var(--color-text);
  margin-bottom: var(--space-4);
  line-height: 1.1;
}
.section-sub {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  max-width: 58ch;
  margin-bottom: var(--space-12);
}

/* ── BUTTONS ───────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0.02em;
  transition: background var(--transition), color var(--transition), transform var(--transition), box-shadow var(--transition);
  white-space: nowrap;
}
.btn-primary {
  background: var(--color-primary);
  color: #fff;
  box-shadow: 0 2px 8px rgba(30,91,191,0.32);
}
.btn-primary:hover {
  background: var(--color-primary-hover);
  box-shadow: 0 4px 16px rgba(30,91,191,0.42);
  transform: translateY(-1px);
}
.btn-ghost {
  background: rgba(255,255,255,0.12);
  color: #fff;
  border: 1.5px solid rgba(255,255,255,0.35);
  backdrop-filter: blur(8px);
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.22);
  border-color: rgba(255,255,255,0.6);
}
.btn-lg {
  padding: 1rem 2.25rem;
  font-size: var(--text-base);
  border-radius: var(--radius-lg);
}
.btn-full { width: 100%; }

/* ── HEADER ────────────────────────────────────────────── */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(13, 58, 92, 0.95);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  transition: background var(--transition), box-shadow var(--transition);
}
.site-header.scrolled {
  background: rgba(8, 43, 69, 0.98);
  box-shadow: 0 4px 24px rgba(0,0,0,0.3);
}
.header-inner {
  max-width: var(--content-default);
  margin: 0 auto;
  padding: 0 var(--space-6);
  height: 100%;
  display: flex;
  align-items: center;
  gap: var(--space-4);
}
.logo-link { flex-shrink: 0; display: flex; align-items: center; }
.logo-img {
  width: 152px;
  height: auto;
  filter: drop-shadow(0 2px 6px rgba(0,71,171,0.35));
}
.personal-logo-link {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  padding-left: var(--space-2);
  border-left: 1px solid rgba(255,255,255,0.18);
}
.personal-logo-img {
  width: clamp(116px, 10vw, 166px);
  height: auto;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.24));
}
.main-nav { display: flex; align-items: center; }
.main-nav ul {
  display: flex;
  gap: clamp(0.7rem, 1vw, 1.2rem);
  list-style: none;
  align-items: center;
  flex-wrap: nowrap;
}
.main-nav a {
  color: rgba(255,255,255,0.82);
  font-size: clamp(0.76rem, 0.7vw, 0.9rem);
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: color var(--transition);
  position: relative;
  white-space: nowrap;
}
.main-nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0; right: 0;
  height: 2px;
  background: var(--color-primary);
  transform: scaleX(0);
  transition: transform var(--transition);
  border-radius: 1px;
}
.main-nav a:hover { color: #fff; }
.main-nav a:hover::after { transform: scaleX(1); }
.header-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: var(--space-3);
}
.phone-link {
  color: rgba(255,255,255,0.9);
  font-size: clamp(0.76rem, 0.7vw, 0.9rem);
  font-weight: 700;
  letter-spacing: 0.03em;
  transition: color var(--transition);
}
.phone-link:hover { color: #fff; }
.social-icon-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  color: rgba(255,255,255,0.78);
  font-size: var(--text-sm);
  font-weight: 700;
  transition: color var(--transition), background var(--transition), border-color var(--transition), transform var(--transition);
}
.social-icon-link svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
  flex: 0 0 auto;
}
.header-social-link {
  width: 32px;
  height: 32px;
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: var(--radius-full);
  background: rgba(255,255,255,0.06);
}
.header-actions .btn {
  padding: 0.62rem 1rem;
  font-size: clamp(0.74rem, 0.65vw, 0.86rem);
}
.header-social-link:hover {
  color: #fff;
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.28);
  transform: translateY(-1px);
}
.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  border-radius: var(--radius-md);
  color: rgba(255,255,255,0.7);
  transition: color var(--transition), background var(--transition);
}
.theme-toggle:hover { color: #fff; background: rgba(255,255,255,0.1); }
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px; height: 36px;
  padding: 4px;
  border-radius: var(--radius-md);
  transition: background var(--transition);
}
.mobile-menu-btn:hover { background: rgba(255,255,255,0.1); }
.mobile-menu-btn span {
  display: block;
  height: 2px;
  background: rgba(255,255,255,0.85);
  border-radius: 1px;
  transition: transform var(--transition), opacity var(--transition);
}
.mobile-menu-btn.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.mobile-menu-btn.open span:nth-child(2) { opacity: 0; }
.mobile-menu-btn.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav */
.mobile-nav {
  display: none;
  background: var(--color-navy-dark);
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: var(--space-6);
}
.mobile-nav.open { display: block; }
.mobile-nav ul { list-style: none; display: flex; flex-direction: column; gap: var(--space-2); }
.mobile-nav-link {
  display: block;
  padding: var(--space-3) var(--space-4);
  color: rgba(255,255,255,0.85);
  font-size: var(--text-base);
  font-weight: 600;
  border-radius: var(--radius-md);
  transition: background var(--transition), color var(--transition);
}
.mobile-nav-link:hover { background: rgba(255,255,255,0.1); color: #fff; }
.mobile-phone { color: var(--color-primary) !important; }
.mobile-social-link { color: #fff !important; }
.mobile-cta { margin-top: var(--space-3); text-align: center; }

/* ── HERO ─────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-top: var(--header-h);
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 30%;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(8,43,69,0.88) 0%,
    rgba(13,58,92,0.72) 50%,
    rgba(8,43,69,0.5) 100%
  );
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: var(--content-default);
  margin: 0 auto;
  padding: var(--space-20) var(--space-6) var(--space-24);
  width: 100%;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background: rgba(30,91,191,0.22);
  border: 1px solid rgba(91,149,230,0.54);
  color: #cfe1ff;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.45rem 1rem;
  border-radius: var(--radius-full);
  margin-bottom: var(--space-6);
  backdrop-filter: blur(8px);
}
.badge-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--color-primary);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.85); }
}
.hero-heading {
  font-size: clamp(2.25rem, 3vw + 1.35rem, 5.1rem);
  font-weight: 900;
  color: #fff;
  line-height: 1.0;
  margin-bottom: var(--space-6);
  max-width: 15ch;
  letter-spacing: -0.02em;
}
.hero-heading .accent { color: var(--color-primary); }
.hero-sub {
  font-size: var(--text-lg);
  color: rgba(255,255,255,0.78);
  max-width: 66ch;
  margin-bottom: var(--space-5);
  line-height: 1.6;
  font-weight: 400;
}
.hero-partner-note {
  max-width: 760px;
  margin-bottom: var(--space-8);
  padding: var(--space-5) var(--space-6);
  border: 1px solid rgba(255,255,255,0.22);
  border-left: 4px solid var(--color-primary);
  border-radius: var(--radius-lg);
  background: rgba(9, 28, 52, 0.58);
  color: rgba(255,255,255,0.86);
  box-shadow: 0 14px 34px rgba(0,0,0,0.22);
  backdrop-filter: blur(10px);
}
.hero-partner-note strong {
  color: #ffffff;
  font-weight: 800;
}
.hero-ctas {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
  margin-bottom: var(--space-12);
}
.hero-stats {
  display: flex;
  gap: var(--space-8);
  flex-wrap: wrap;
  align-items: center;
  border-top: 1px solid rgba(255,255,255,0.18);
  padding-top: var(--space-8);
}
.stat { display: flex; flex-direction: column; gap: 2px; }
.stat strong {
  font-size: var(--text-xl);
  font-weight: 800;
  color: #fff;
  line-height: 1;
}
.stat span {
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.6);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.stat-divider {
  width: 1px;
  height: 36px;
  background: rgba(255,255,255,0.2);
  flex-shrink: 0;
}
.hero-scroll-hint {
  position: absolute;
  bottom: var(--space-8);
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.4);
  animation: bounce 2s ease-in-out infinite;
}
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* ── ACCENT STRIP ─────────────────────────────────────── */
.accent-strip {
  background: linear-gradient(90deg, var(--color-navy-dark), var(--color-blue), var(--color-steel));
  padding: var(--space-3) 0;
  overflow: hidden;
}
.accent-strip-inner {
  display: flex;
  gap: var(--space-6);
  white-space: nowrap;
  animation: marquee 22s linear infinite;
  width: max-content;
}
.accent-strip-inner span {
  color: rgba(255,255,255,0.92);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.strip-dot { color: rgba(255,255,255,0.5) !important; }
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ── SERVICES ─────────────────────────────────────────── */
.services {
  padding: clamp(var(--space-16), 8vw, var(--space-24)) 0;
  background: var(--color-bg);
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(520px, 1fr));
  gap: var(--space-8);
}
.service-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.service-img-wrap {
  position: relative;
  height: 220px;
  overflow: hidden;
  flex-shrink: 0;
}
.service-img-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.service-card:hover .service-img-wrap img { transform: scale(1.04); }
.service-img-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 60%;
  background: linear-gradient(to top, rgba(13,58,92,0.5), transparent);
  pointer-events: none;
}
.service-body {
  padding: var(--space-8);
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}
.service-icon {
  width: 44px; height: 44px;
  background: rgba(30,91,191,0.12);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.service-icon svg {
  width: 22px; height: 22px;
  stroke: var(--color-primary);
}
.service-body h3 {
  font-size: var(--text-lg);
  font-weight: 800;
  color: var(--color-text);
  line-height: 1.2;
}
.service-body p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.65;
}
.service-bullets {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-top: var(--space-2);
}
.service-bullets li {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  padding-left: 1.4rem;
  position: relative;
  max-width: 100%;
}
.service-bullets li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--color-primary);
  font-size: 0.8em;
  top: 0.15em;
}

/* ── SERVICE AREAS / SEO CONTENT ─────────────────────── */
.service-areas {
  padding: clamp(var(--space-16), 8vw, var(--space-24)) 0;
  background: var(--color-surface-2);
}
.service-areas .section-heading {
  max-width: 980px;
  margin-left: auto;
  margin-right: auto;
}
.area-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-6);
  margin-top: var(--space-10);
}
.area-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-7, 1.75rem);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.area-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: rgba(59, 122, 219, 0.45);
}
.area-card h3 {
  color: var(--color-text);
  font-size: var(--text-base);
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: var(--space-3);
}
.area-card p {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  line-height: 1.65;
}
.keyword-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-3);
  margin-top: var(--space-10);
}
.keyword-strip span {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  background: var(--color-surface);
  color: var(--color-text-muted);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.55rem 0.9rem;
}
.cities-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-2);
  margin-top: var(--space-8);
}
.cities-list span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid rgba(59, 122, 219, 0.25);
  background: rgba(59, 122, 219, 0.08);
  color: var(--color-text);
  font-size: var(--text-xs);
  font-weight: 700;
  padding: 0.45rem 0.75rem;
}
.emergency-card {
  border-color: rgba(192, 24, 24, 0.45);
}

/* ── PROJECTS PAGE ───────────────────────────────────── */
.project-hero {
  padding: calc(var(--header-h) + var(--space-16)) 0 var(--space-16);
  min-height: auto;
  background:
    radial-gradient(circle at 20% 10%, rgba(59,122,219,0.28), transparent 28rem),
    linear-gradient(135deg, var(--color-navy-dark), #061b31);
}
.project-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.15fr);
  gap: var(--space-12);
  align-items: center;
}
.project-hero-copy .section-label,
.project-hero-copy .hero-heading,
.project-hero-copy .hero-sub {
  text-align: left;
  margin-left: 0;
  margin-right: 0;
}
.project-heading {
  color: #fff;
  font-size: clamp(2.4rem, 6vw, 5rem);
}
.project-hero-copy .hero-sub {
  color: rgba(255,255,255,0.78);
}
.project-hero-image img {
  display: block;
  width: 100%;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(255,255,255,0.18);
  box-shadow: var(--shadow-lg);
}
.project-proof {
  padding: clamp(var(--space-16), 8vw, var(--space-24)) 0;
  background: var(--color-bg);
}
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-6);
}
.project-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}
.project-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.project-card img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.project-card-body {
  padding: var(--space-6);
}
.project-card-body h3 {
  color: var(--color-text);
  font-size: var(--text-base);
  font-weight: 800;
  margin-bottom: var(--space-2);
}
.project-card-body p {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  line-height: 1.6;
}
.projects-preview {
  padding: clamp(var(--space-16), 8vw, var(--space-24)) 0;
  background: var(--color-surface-2);
}

.video-library {
  padding: clamp(var(--space-16), 8vw, var(--space-24)) 0;
  background: var(--color-bg);
}

.video-library-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-6);
}

.video-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-5);
  box-shadow: var(--shadow-sm);
}

.video-card video {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  border-radius: var(--radius-lg);
  background: #000;
  margin-bottom: var(--space-4);
}

.video-card:nth-child(5) video {
  aspect-ratio: 16 / 9;
}

.video-card h3 {
  font-size: var(--text-lg);
  margin-bottom: var(--space-3);
  color: var(--color-text);
}

.video-card p {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
}

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

.latest-note {
  padding: clamp(var(--space-16), 8vw, var(--space-24)) 0;
  background: linear-gradient(135deg, var(--color-navy-dark), var(--color-navy));
  color: var(--color-text-inverse);
}

.latest-note-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.9fr);
  gap: var(--space-8);
  align-items: center;
}

.latest-note .section-label,
.latest-note .section-heading,
.latest-note p {
  color: var(--color-text-inverse);
}

.latest-note-card {
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  box-shadow: var(--shadow-md);
}

.latest-note-card p {
  margin-bottom: var(--space-6);
}

@media (max-width: 768px) {
  .latest-note-grid {
    grid-template-columns: 1fr;
  }
}
.projects-preview-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: var(--space-12);
  align-items: center;
}
.projects-preview-copy .section-heading,
.projects-preview-copy .section-label {
  text-align: left;
  margin-left: 0;
  margin-right: 0;
}
.projects-preview-copy p {
  color: var(--color-text-muted);
  font-size: var(--text-base);
  line-height: 1.7;
  margin-bottom: var(--space-6);
}
.projects-preview-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
}
.projects-preview-images img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-xl);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-md);
}
.emergency-showcase {
  padding: clamp(var(--space-16), 8vw, var(--space-24)) 0;
  background: var(--color-surface-2);
}
.emergency-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: var(--space-12);
  align-items: center;
}
.emergency-grid .section-heading,
.emergency-grid .section-label {
  text-align: left;
  margin-left: 0;
  margin-right: 0;
}
.emergency-grid p {
  color: var(--color-text-muted);
  font-size: var(--text-base);
  line-height: 1.7;
  margin-bottom: var(--space-5);
}
.emergency-grid img {
  width: 100%;
  display: block;
  border-radius: var(--radius-xl);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-lg);
}
.emergency-list {
  margin-bottom: var(--space-6);
}
.project-cities {
  background: var(--color-bg);
}
@media (max-width: 900px) {
  .project-hero-grid,
  .emergency-grid,
  .projects-preview-grid {
    grid-template-columns: 1fr;
  }
  .project-hero-copy .section-label,
  .project-hero-copy .hero-heading,
  .project-hero-copy .hero-sub,
  .projects-preview-copy .section-heading,
  .projects-preview-copy .section-label,
  .emergency-grid .section-heading,
  .emergency-grid .section-label {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 1160px) {
  .header-social-link,
  .theme-toggle {
    display: none;
  }
  .main-nav ul {
    gap: 0.65rem;
  }
  .logo-img {
    width: 138px;
  }
}

/* ── WHY CHOOSE US ────────────────────────────────────── */
.why-us {
  padding: clamp(var(--space-16), 8vw, var(--space-24)) 0;
  background: var(--color-navy-dark);
  background-image: linear-gradient(135deg, var(--color-navy-dark) 0%, #0a2d48 100%);
}
.why-us .section-label { color: #f4a39b; }
.why-us .section-heading { color: #fff; }
.why-us .section-sub { color: rgba(255,255,255,0.65); }
.creds-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: var(--space-6);
}
.cred-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  transition: background var(--transition), transform var(--transition);
  backdrop-filter: blur(8px);
}
.cred-card:hover {
  background: rgba(255,255,255,0.1);
  transform: translateY(-2px);
}
.cred-icon {
  width: 48px; height: 48px;
  background: rgba(30,91,191,0.18);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-5);
}
.cred-icon svg {
  width: 24px; height: 24px;
  stroke: #f4a39b;
}
.cred-card h3 {
  font-size: var(--text-base);
  font-weight: 700;
  color: #fff;
  margin-bottom: var(--space-3);
}
.cred-card p {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.6);
  line-height: 1.6;
  max-width: 100%;
}

/* ── ABOUT ────────────────────────────────────────────── */
.about {
  padding: clamp(var(--space-16), 8vw, var(--space-24)) 0;
  background: var(--color-surface-2);
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: center;
}
.about-img-stack {
  position: relative;
}
.about-main-img {
  width: 100%;
  height: 520px;
  object-fit: cover;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
}
.about-badge-card {
  position: absolute;
  bottom: var(--space-6);
  right: calc(-1 * var(--space-8));
  background: var(--color-primary);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: var(--space-5) var(--space-6);
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-1);
  min-width: 130px;
}
.about-badge-card strong {
  font-size: var(--text-2xl);
  font-weight: 900;
  line-height: 1;
}
.about-badge-card span {
  font-size: var(--text-xs);
  font-weight: 600;
  opacity: 0.9;
  text-align: center;
  line-height: 1.3;
}
.about-text-col { display: flex; flex-direction: column; gap: var(--space-5); }
.about-text-col .section-heading { margin-bottom: 0; }
.about-text-col p {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  line-height: 1.7;
  max-width: 100%;
}
.about-highlights {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-top: var(--space-2);
}
.highlight {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text);
}
.highlight svg {
  width: 20px; height: 20px;
  stroke: var(--color-primary);
  flex-shrink: 0;
}

/* ── TESTIMONIALS ─────────────────────────────────────── */
.testimonials {
  padding: clamp(var(--space-16), 8vw, var(--space-24)) 0;
  background: var(--color-bg);
}
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: var(--space-6);
}
.testimonial-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  transition: box-shadow var(--transition), transform var(--transition);
}
.testimonial-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.stars { color: #f59e0b; font-size: 1.1rem; letter-spacing: 2px; }
.testimonial-card p {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  line-height: 1.7;
  font-style: italic;
  flex: 1;
  max-width: 100%;
}
.testimonial-card footer {
  display: flex;
  flex-direction: column;
  gap: 2px;
  border-top: 1px solid var(--color-border);
  padding-top: var(--space-4);
}
.testimonial-card footer strong {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--color-text);
}
.testimonial-card footer span {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
}

/* ── CONTACT ─────────────────────────────────────────── */
.contact {
  padding: clamp(var(--space-16), 8vw, var(--space-24)) 0;
  background: var(--color-surface-2);
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: var(--space-16);
  align-items: start;
}
.contact-info { display: flex; flex-direction: column; gap: var(--space-6); }
.contact-info p {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  max-width: 100%;
  line-height: 1.7;
}
.contact-details {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  margin-top: var(--space-2);
}
.contact-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
}
.contact-icon {
  width: 44px; height: 44px;
  background: rgba(30,91,191,0.12);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact-icon svg {
  width: 20px; height: 20px;
  stroke: var(--color-primary);
}
.contact-item > div {
  display: flex; flex-direction: column; gap: 3px;
}
.contact-item strong {
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
}
.contact-item a, .contact-item span {
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--color-text);
  transition: color var(--transition);
}
.contact-item a:hover { color: var(--color-primary); }

/* Form */
.contact-form {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-10);
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.form-group label {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text-muted);
}
.form-group input,
.form-group select,
.form-group textarea {
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-bg);
  color: var(--color-text);
  font-size: var(--text-sm);
  transition: border-color var(--transition), box-shadow var(--transition);
  appearance: auto;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(30,91,191,0.18);
}
.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--color-text-faint);
}
.form-group textarea { resize: vertical; }
.form-success {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4);
  background: rgba(67, 122, 34, 0.12);
  border: 1px solid rgba(67, 122, 34, 0.3);
  border-radius: var(--radius-md);
  color: #437a22;
  font-size: var(--text-sm);
  font-weight: 600;
}
[data-theme='dark'] .form-success { color: #6daa45; }
.form-success svg { width: 20px; height: 20px; stroke: currentColor; flex-shrink: 0; }

/* ── FOOTER ──────────────────────────────────────────── */
.site-footer {
  background: var(--color-navy-dark);
  color: rgba(255,255,255,0.65);
  padding: var(--space-16) 0 var(--space-8);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: var(--space-10);
  padding-bottom: var(--space-10);
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand { display: flex; flex-direction: column; gap: var(--space-4); }
.footer-logo { height: 40px; width: auto; }
.footer-brand p {
  font-size: var(--text-sm);
  line-height: 1.6;
  max-width: 32ch;
  color: rgba(255,255,255,0.55);
}
.footer-contact-quick {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-top: var(--space-2);
}
.footer-contact-quick a {
  font-size: var(--text-sm);
  font-weight: 600;
  color: rgba(255,255,255,0.75);
  transition: color var(--transition);
}
.footer-contact-quick a:hover { color: #fff; }
.footer-socials {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}
.footer-socials .social-icon-link {
  width: fit-content;
  padding: 0.5rem 0.75rem;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: var(--radius-full);
  background: rgba(255,255,255,0.06);
}
.footer-socials .social-icon-link:hover {
  color: #fff;
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.24);
}
.footer-links h4 {
  font-size: var(--text-sm);
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-5);
}
.footer-links ul { list-style: none; display: flex; flex-direction: column; gap: var(--space-3); }
.footer-links a {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.55);
  transition: color var(--transition);
}
.footer-links a:hover { color: rgba(255,255,255,0.9); }
.footer-credentials h4 {
  font-size: var(--text-sm);
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-5);
}
.cred-badges {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}
.cred-badge {
  padding: 0.35rem 0.8rem;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 600;
  color: rgba(255,255,255,0.7);
  white-space: nowrap;
}
.footer-bottom {
  padding-top: var(--space-8);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-3);
}
.footer-bottom p {
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.4);
  max-width: none;
}
.footer-bottom a {
  color: rgba(255,255,255,0.6);
  transition: color var(--transition);
}
.footer-bottom a:hover { color: #fff; }

/* ── RESPONSIVE ──────────────────────────────────────── */
@media (max-width: 900px) {
  :root { --header-h: 64px; }
  .main-nav, .phone-link { display: none; }
  .mobile-menu-btn { display: flex; }

  .hero-heading { font-size: clamp(2rem, 7vw, 3.5rem); }
  .hero-sub { font-size: var(--text-base); }

  .services-grid { grid-template-columns: 1fr; }
  .creds-grid { grid-template-columns: 1fr 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .about-img-col { order: 0; }
  .about-badge-card { right: var(--space-4); bottom: var(--space-4); }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  .hero-stats { gap: var(--space-5); }
  .stat-divider { display: none; }
  .stat strong { font-size: var(--text-lg); }
  .hero-ctas { flex-direction: column; }
  .hero-ctas .btn { width: 100%; text-align: center; justify-content: center; }
  .creds-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .about-badge-card { right: var(--space-2); bottom: var(--space-2); }
  .service-img-wrap { height: 180px; }
}

/* ── FOOTER LOGO — fix stretched aspect ratio ─────────── */
.footer-logo {
  height: auto !important;
  width: 220px;
  max-width: 100%;
  display: block;
  object-fit: contain;
  aspect-ratio: 994 / 330;
}

/* ── HEADER LOGO — keep aspect ratio ──────────────────── */
.logo-img {
  width: 152px;
  height: auto;
  max-width: 100%;
  object-fit: contain;
  aspect-ratio: 994 / 330;
}

/* ── PARTNERS / "FOR ROOFERS" SECTION ─────────────────── */
.partners {
  background: linear-gradient(180deg, var(--color-bg) 0%, var(--color-surface-2) 100%);
  padding: var(--space-24) 0;
  position: relative;
}
.partners::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--color-primary) 0%, var(--color-secondary) 100%);
}
.partners-sub {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  margin-bottom: var(--space-12);
}
.partners-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: var(--space-10);
  align-items: start;
}
@media (max-width: 900px) {
  .partners-grid { grid-template-columns: 1fr; gap: var(--space-8); }
}
.partner-text { color: var(--color-text); }
.partners-lead {
  font-size: var(--text-lg);
  font-weight: 500;
  line-height: 1.5;
  color: var(--color-text);
  margin-bottom: var(--space-4);
}
.partner-text p { line-height: 1.7; margin-bottom: var(--space-4); color: var(--color-text-muted); }
.partners-promise {
  border-left: 4px solid var(--color-primary);
  padding: var(--space-3) var(--space-5);
  background: var(--color-surface);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin: var(--space-6) 0 var(--space-8);
  color: var(--color-text);
}
.partners-promise strong { color: var(--color-primary); }
.partners-subhead {
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--color-text);
  margin-top: var(--space-8);
  margin-bottom: var(--space-3);
}
.partners-bullets {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--space-6);
}
.partners-bullets li {
  position: relative;
  padding: var(--space-2) 0 var(--space-2) var(--space-6);
  line-height: 1.55;
  color: var(--color-text-muted);
  border-bottom: 1px solid var(--color-border);
}
.partners-bullets li:last-child { border-bottom: none; }
.partners-bullets li::before {
  content: "▸";
  position: absolute;
  left: 0;
  top: 0.65rem;
  color: var(--color-primary);
  font-weight: 700;
}
.partners-bullets li strong { color: var(--color-text); font-weight: 700; }
.partners-cta-line {
  font-style: italic;
  font-weight: 500;
  color: var(--color-text);
  margin: var(--space-6) 0 var(--space-4);
}

/* Promise card */
.partners-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  box-shadow: var(--shadow-md);
  position: sticky;
  top: calc(var(--header-h) + 16px);
}
.partners-card h3 {
  font-size: var(--text-xl);
  margin: 0 0 var(--space-5);
  color: var(--color-primary);
  font-weight: 800;
  line-height: 1.2;
}
.partners-promise-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.partners-promise-list li {
  display: grid;
  grid-template-columns: 22px 1fr;
  align-items: start;
  gap: var(--space-3);
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--color-border);
  color: var(--color-text);
  font-size: var(--text-base);
  line-height: 1.45;
}
.partners-promise-list li > *:not(.check) {
  /* keep all text content in second grid column, inline */
}
.partners-promise-list li {
  /* normalize: text content lives in implicit second column */
}
.partners-promise-list li:last-child { border-bottom: none; }
.partners-promise-list li strong {
  font-weight: 800;
  color: var(--color-primary);
}
.partners-promise-list .check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--color-primary);
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 800;
  margin-top: 2px;
}
