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

:root {
  /* Colors - Coastal Roofing and Construction Official Red & Navy */
  --primary-hsl: 358, 82%, 48%; /* Official Brand Red #d91a22 */
  --primary-hover-hsl: 358, 85%, 40%;
  --accent-hsl: 218, 75%, 21%; /* Official Brand Navy Blue #0e2a56 */
  --bg-dark-hsl: 36, 25%, 94.5%; /* Warm sandy cream */
  --bg-dark-light-hsl: 218, 25%, 93%; /* Light navy-slate footer */
  --bg-light-hsl: 0, 0%, 100%; /* Pure White */
  --bg-light-alt-hsl: 216, 25%, 96%; /* Clean cool-gray alternate */
  --text-dark-hsl: 218, 55%, 12%; /* Dark navy-slate text #0d1e38 */
  --text-muted-hsl: 218, 20%, 32%; /* Dark charcoal slate for contrast */
  --text-light-hsl: 218, 55%, 12%;
  --text-light-muted-hsl: 218, 20%, 32%;
  --border-light-hsl: 214, 25%, 90%;
  --border-dark-hsl: 218, 20%, 82%;
  
  /* Color Hex Equivalents */
  --primary: hsl(var(--primary-hsl));
  --primary-hover: hsl(var(--primary-hover-hsl));
  --accent: hsl(var(--accent-hsl));
  --bg-dark: hsl(var(--bg-dark-hsl));
  --bg-dark-light: hsl(var(--bg-dark-light-hsl));
  --bg-light: hsl(var(--bg-light-hsl));
  --bg-light-alt: hsl(var(--bg-light-alt-hsl));
  --text-dark: hsl(var(--text-dark-hsl));
  --text-muted: hsl(var(--text-muted-hsl));
  --text-light: hsl(var(--text-light-hsl));
  --text-light-muted: hsl(var(--text-light-muted-hsl));
  --border-light: hsl(var(--border-light-hsl));
  --border-dark: hsl(var(--border-dark-hsl));
  
  --shadow-sm: 0 2px 4px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 10px 25px -5px rgba(15, 23, 42, 0.1), 0 8px 10px -6px rgba(15, 23, 42, 0.1);
  --shadow-lg: 0 20px 40px -15px rgba(15, 23, 42, 0.15);
  --shadow-glow: 0 0 25px rgba(217, 26, 34, 0.35);

  --font-headings: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base resets & global styles */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: hidden;
  width: 100%;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-light);
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
  width: 100%;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-headings);
  font-weight: 700;
  line-height: 1.25;
}

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

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

input, select, textarea, button {
  font-family: inherit;
  font-size: inherit;
  outline: none;
}

/* Utilities */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 8rem 0;
  position: relative;
}

/* Subtle fading separator line between sections */
.section:not(:last-of-type)::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--border-light), transparent);
}

.section-bg-alt {
  background-color: var(--bg-light-alt);
}

.section-bg-dark {
  background-color: var(--bg-dark);
  color: var(--text-light);
}

/* Deep Authority Coastal Navy Section */
.section-navy {
  background: linear-gradient(145deg, #07152b 0%, #0e2a56 50%, #091932 100%);
  color: #ffffff;
  position: relative;
  overflow: hidden;
}

.section-navy::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
}

.section-navy::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
}

.section-navy .section-title {
  color: #ffffff;
}

.section-navy .section-subtitle {
  color: rgba(255, 255, 255, 0.78);
}

.section-navy .badge {
  background-color: rgba(217, 26, 34, 0.18);
  color: #ff6b72;
  border: 1px solid rgba(217, 26, 34, 0.35);
}

.section-navy .badge-dark {
  background-color: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Owens Corning Advantage inside Navy Section */
.section-navy .owens-corning-badge-card,
.section-navy .certainteed-badge-card {
  background: rgba(8, 22, 44, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5);
}

.section-navy .owens-corning-benefit-item,
.section-navy .certainteed-benefit-item {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.5rem 1.75rem;
  border-radius: var(--radius-md);
  transition: var(--transition);
}

.section-navy .owens-corning-benefit-item:hover,
.section-navy .certainteed-benefit-item:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(217, 26, 34, 0.45);
  transform: translateX(4px);
}

.section-navy .owens-corning-benefit-item .benefit-icon,
.section-navy .certainteed-benefit-item .benefit-icon {
  background-color: rgba(217, 26, 34, 0.22);
  color: #ff6b72;
}

.section-navy .owens-corning-benefit-item h4,
.section-navy .certainteed-benefit-item h4 {
  color: #ffffff;
}

.section-navy .owens-corning-benefit-item p,
.section-navy .certainteed-benefit-item p {
  color: rgba(255, 255, 255, 0.78);
}

/* Projects / Gallery inside Navy Section */
.section-navy .filter-btn {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.85);
}

.section-navy .filter-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
}

.section-navy .filter-btn.active {
  background-color: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(217, 26, 34, 0.45);
}

/* FAQ inside Navy Section */
.section-navy .faq-item {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  margin-bottom: 1rem;
  padding: 0 1.75rem;
  transition: var(--transition);
}

.section-navy .faq-item:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.22);
}

.section-navy .faq-question {
  color: #ffffff;
}

.section-navy .faq-icon::before,
.section-navy .faq-icon::after {
  background-color: #ff6b72;
}

.section-navy .faq-content {
  color: rgba(255, 255, 255, 0.8);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 1rem;
}

/* High-Impact Trust & Credibility Ribbon */
.impact-ribbon {
  background: linear-gradient(135deg, #d91a22 0%, #b8141b 100%);
  color: white;
  padding: 2.25rem 0;
  box-shadow: 0 10px 30px rgba(217, 26, 34, 0.25);
  position: relative;
  z-index: 2;
}

.impact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  align-items: center;
}

.impact-item {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.impact-icon {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  backdrop-filter: blur(4px);
}

.impact-icon svg {
  color: #ffffff;
}

.impact-number {
  display: block;
  font-family: var(--font-headings);
  font-size: 1.45rem;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.impact-label {
  display: block;
  font-size: 0.85rem;
  opacity: 0.92;
  font-weight: 500;
  margin-top: 0.25rem;
}

/* Rapid Callout Action Ribbon */
.callout-ribbon {
  background: linear-gradient(135deg, #07152b 0%, #0e2a56 100%);
  color: white;
  padding: 2.75rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.callout-ribbon-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.callout-ribbon-text h3 {
  font-family: var(--font-headings);
  font-size: 1.75rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 0.35rem 0;
  letter-spacing: -0.02em;
}

.callout-ribbon-text p {
  color: rgba(255, 255, 255, 0.8);
  margin: 0;
  font-size: 1rem;
}

.callout-ribbon-actions {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-shrink: 0;
}

@media (max-width: 992px) {
  .impact-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
  .callout-ribbon-content {
    flex-direction: column;
    text-align: center;
    justify-content: center;
  }
}

@media (max-width: 600px) {
  .impact-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
}

.text-center { text-align: center; }
.text-primary { color: var(--primary); }
.text-accent { color: var(--accent); }

.badge {
  display: inline-block;
  padding: 0.5rem 1.25rem;
  background-color: hsla(var(--primary-hsl), 0.1);
  color: var(--primary);
  border-radius: var(--radius-full);
  font-family: var(--font-headings);
  font-weight: 600;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1.5rem;
}

.badge-dark {
  background-color: hsla(var(--primary-hsl), 0.08);
  color: var(--primary);
  border: 1px solid hsla(var(--primary-hsl), 0.15);
}

.section-title {
  font-size: 2.75rem;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 4.5rem;
}

.section-bg-dark .section-subtitle {
  color: var(--text-light-muted);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 2rem;
  font-family: var(--font-headings);
  font-weight: 600;
  border-radius: var(--radius-md);
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  gap: 0.5rem;
}

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

.btn-primary:hover {
  background-color: var(--primary-hover);
  box-shadow: var(--shadow-glow);
  transform: translateY(-2px);
}

.btn-outline {
  background-color: transparent;
  border-color: var(--border-light);
  color: var(--text-dark);
}

.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-2px);
}

.btn-outline-dark {
  background-color: transparent;
  border-color: rgba(15, 23, 42, 0.2);
  color: var(--text-light);
}

.btn-outline-dark:hover {
  border-color: var(--primary);
  background-color: hsla(var(--primary-hsl), 0.05);
  color: var(--primary);
  transform: translateY(-2px);
}

/* Header & Navigation */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: var(--transition);
  background-color: #ffffff;
  border-bottom: 1px solid var(--border-light);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.03);
  color: var(--text-dark);
}

.header.scrolled {
  background-color: #ffffff;
  border-bottom: 1px solid var(--border-light);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.05);
}

.header.scrolled-light {
  background-color: #ffffff;
  border-bottom: 1px solid var(--border-light);
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 5.5rem;
  transition: var(--transition);
}

.logo-container {
  display: flex;
  align-items: center;
  transition: var(--transition);
}

.logo-container:hover {
  transform: translateY(-1px);
}

.logo-img {
  height: 4.5rem;
  width: auto;
  max-height: 75px;
  object-fit: contain;
  display: block;
  transition: var(--transition);
}

.footer-logo {
  height: 5.5rem;
  width: auto;
  max-height: 90px;
  object-fit: contain;
  display: block;
  transition: var(--transition);
}

.nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  font-family: var(--font-headings);
  font-weight: 600;
  font-size: 0.825rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  position: relative;
  padding: 0.4rem 0;
  opacity: 0.9;
  color: var(--text-dark);
  transition: var(--transition);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary);
  transition: var(--transition);
}

.nav-link:hover {
  opacity: 1;
  color: var(--primary);
}

.nav-link:hover::after {
  width: 100%;
}

.header-cta {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.phone-link {
  font-family: var(--font-headings);
  font-weight: 600;
  font-size: 0.825rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-dark);
  transition: var(--transition);
}

.phone-link:hover {
  color: var(--primary);
}

.phone-link svg {
  color: var(--primary);
}

/* Mobile Navigation Menu - Hidden on Desktop */
.mobile-menu {
  display: none;
}

.menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 2rem;
  height: 2rem;
  position: relative;
  z-index: 1001;
}

.menu-btn span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: currentColor;
  margin: 6px 0;
  transition: var(--transition);
}

/* Hero Section */
.hero {
  height: 100vh;
  min-height: 700px;
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  background-color: var(--text-dark); /* Deeper fallback */
  color: #ffffff; /* Uniform white text for the dark hero fold */
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-bg::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    rgba(14, 42, 86, 0.90) 0%,
    rgba(14, 42, 86, 0.76) 48%,
    rgba(10, 25, 47, 0.42) 85%,
    rgba(10, 25, 47, 0.30) 100%
  );
  z-index: 2;
}

.hero-bg img,
.hero-bg video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
}

.hero .container {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 4rem;
  align-items: center;
}

.hero-content {
  max-width: 650px;
}

.hero .badge-dark {
  background-color: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-title {
  font-size: 4rem;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  letter-spacing: -0.03em;
  color: #ffffff;
}

.hero-description {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.8); /* Highly legible light-muted description */
  margin-bottom: 2.5rem;
  max-width: 550px;
}

.hero-actions {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
  margin-bottom: 3.5rem;
}

.hero .btn-outline-dark {
  border-color: rgba(255, 255, 255, 0.3);
  color: #ffffff;
}

.hero .btn-outline-dark:hover {
  border-color: var(--primary);
  background-color: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.hero-badges {
  display: flex;
  gap: 2.5rem;
  align-items: center;
}

.hero-badge {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.hero-badge-icon {
  width: 2.5rem;
  height: 2.5rem;
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
}

.hero-badge-text {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.3;
}

.hero-badge-text strong {
  display: block;
  color: #ffffff;
}

.hero-badge-rating {
  display: flex;
  color: var(--accent);
  margin-bottom: 0.125rem;
}

/* Info Strips */
.trust-strip {
  background-color: #ffffff;
  padding: 1.25rem 0;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  overflow: hidden;
  width: 100%;
  max-width: 100%;
}

/* Logo Marquee Ticker */
.logo-marquee {
  overflow: hidden;
  width: 100%;
  max-width: 100%;
  display: block;
}

.logo-marquee-track {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  width: max-content;
  animation: marquee 25s linear infinite;
}

.logo-marquee-group {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: 8rem;
  padding-right: 8rem;
  flex-shrink: 0;
}

.logo-marquee-item {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-marquee-item img {
  height: 4rem;
  width: auto;
  object-fit: contain;
  transition: var(--transition);
}

.logo-marquee-item img:hover {
  transform: scale(1.05);
}

@keyframes marquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.trust-item svg {
  color: var(--primary);
}

.trust-item-title {
  color: var(--text-light);
  font-weight: 600;
  font-family: var(--font-headings);
}

/* Services */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

/* Symmetrical 5-card layout: Row 1 has 3 equal cards, Row 2 has 2 equal wide cards */
.services-5-grid,
.services-grid:has(> .service-card:nth-child(5)) {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 2rem;
}

.services-5-grid > .service-card:nth-child(1),
.services-5-grid > .service-card:nth-child(2),
.services-5-grid > .service-card:nth-child(3),
.services-grid:has(> .service-card:nth-child(5)) > .service-card:nth-child(1),
.services-grid:has(> .service-card:nth-child(5)) > .service-card:nth-child(2),
.services-grid:has(> .service-card:nth-child(5)) > .service-card:nth-child(3) {
  grid-column: span 2;
}

.services-5-grid > .service-card:nth-child(4),
.services-5-grid > .service-card:nth-child(5),
.services-grid:has(> .service-card:nth-child(5)) > .service-card:nth-child(4),
.services-grid:has(> .service-card:nth-child(5)) > .service-card:nth-child(5) {
  grid-column: span 3;
}

.service-card {
  background-color: white;
  border-radius: var(--radius-md);
  border: 1px solid rgba(14, 42, 86, 0.08);
  box-shadow: 0 4px 20px rgba(14, 42, 86, 0.06);
  padding: 3rem 2.5rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transform: scaleX(0);
  transform-origin: left;
  transition: var(--transition);
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-icon {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: var(--radius-md);
  background-color: rgba(249, 115, 22, 0.08);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2rem;
  transition: var(--transition);
}

.service-card:hover .service-icon {
  background-color: var(--primary);
  color: white;
}

.service-title {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
}

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

.service-list {
  list-style: none;
  margin-bottom: 2rem;
  padding: 0;
}

.service-list-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.9rem;
  color: var(--text-dark);
  margin-bottom: 0.75rem;
  line-height: 1.4;
}

.service-list-item svg {
  color: var(--primary);
  flex-shrink: 0;
  margin-top: 0.15rem;
}

.service-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  color: var(--primary);
  font-size: 0.95rem;
  margin-top: auto;
}

.service-link svg {
  transition: var(--transition);
}

.service-card:hover .service-link svg {
  transform: translateX(4px);
}

/* Before / After Slider */
.slider-wrapper {
  background-color: var(--bg-dark-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  padding: 3rem;
  border: 1px solid var(--border-dark);
  box-shadow: var(--shadow-lg);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.slider-info h3 {
  font-size: 2.25rem;
  margin-bottom: 1.25rem;
  letter-spacing: -0.015em;
}

.slider-info p {
  color: var(--text-light-muted);
  margin-bottom: 2rem;
}

.slider-bullets {
  list-style: none;
  margin-bottom: 2.5rem;
}

.slider-bullets li {
  position: relative;
  padding-left: 2rem;
  margin-bottom: 1rem;
  font-weight: 500;
}

.slider-bullets li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1.25rem;
  height: 1.25rem;
  background-color: rgba(249, 115, 22, 0.15);
  border-radius: 50%;
}

.slider-bullets li::after {
  content: '✓';
  position: absolute;
  left: 0.35rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--primary);
  font-size: 0.875rem;
  font-weight: 700;
}

.slider-container {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  user-select: none;
}

.slider-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.slider-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.img-before {
  z-index: 10;
}

.img-after {
  z-index: 5;
}

.slider-handle {
  position: absolute;
  top: 0;
  left: 50%;
  width: 4px;
  height: 100%;
  background-color: var(--primary);
  z-index: 20;
  cursor: ew-resize;
  transform: translateX(-50%);
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.slider-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background-color: var(--primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 15px rgba(15, 23, 42, 0.4);
  pointer-events: none;
}

.slider-label {
  position: absolute;
  bottom: 1.5rem;
  padding: 0.5rem 1rem;
  background-color: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(8px);
  color: white;
  border-radius: var(--radius-sm);
  font-family: var(--font-headings);
  font-weight: 600;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  pointer-events: none;
  z-index: 15;
}

.label-before {
  left: 1.5rem;
}

.label-after {
  right: 1.5rem;
}

/* Owens Corning Accreditation Section */
.owens-corning-layout,
.certainteed-layout {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 4.5rem;
  align-items: center;
}

.owens-corning-badge-card,
.certainteed-badge-card {
  background-color: var(--text-dark);
  color: rgba(255, 255, 255, 0.9);
  border-radius: var(--radius-lg);
  padding: 4rem 3rem;
  text-align: center;
  position: relative;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.badge-card-accent {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: linear-gradient(90deg, var(--primary), var(--primary-hover));
  border-top-left-radius: var(--radius-lg);
  border-top-right-radius: var(--radius-lg);
}

.owens-corning-large-badge,
.certainteed-large-badge {
  max-width: 250px;
  height: auto;
  margin: 0 auto 1.75rem;
  display: block;
  background: #ffffff;
  padding: 0.85rem 1.5rem;
  border-radius: var(--radius-md);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
}

.badge-card-title {
  font-family: var(--font-headings);
  font-weight: 800;
  font-size: 1.75rem;
  color: white;
  margin: 0 0 0.25rem;
  letter-spacing: -0.5px;
}

.badge-card-subtitle {
  color: var(--primary);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin: 0 0 1.5rem;
}

.badge-card-divider {
  width: 4rem;
  height: 2px;
  background-color: rgba(255, 255, 255, 0.15);
  margin: 0 auto 1.5rem;
}

.badge-card-text {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.925rem;
  line-height: 1.6;
  margin: 0 0 1.5rem;
}

.owens-corning-text-column,
.certainteed-text-column {
  display: flex;
  flex-direction: column;
}

.owens-corning-benefits-grid,
.certainteed-benefits-grid {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  margin-top: 2rem;
}

.owens-corning-benefit-item,
.certainteed-benefit-item {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}

.owens-corning-benefit-item .benefit-icon,
.certainteed-benefit-item .benefit-icon {
  width: 3.25rem;
  height: 3.25rem;
  border-radius: var(--radius-full);
  background-color: rgba(249, 115, 22, 0.08);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.owens-corning-benefit-item h4,
.certainteed-benefit-item h4 {
  font-family: var(--font-headings);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--text-dark);
  margin: 0 0 0.5rem 0;
}

.owens-corning-benefit-item p,
.certainteed-benefit-item p {
  color: var(--text-muted);
  font-size: 0.925rem;
  line-height: 1.55;
  margin: 0;
}

/* Insurance & Financing Section */
.financing-layout {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem;
  align-items: stretch;
}

.financing-card {
  background-color: white;
  border-radius: var(--radius-lg);
  padding: 3rem;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.financing-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}

.financing-card.insurance-card:hover {
  border-color: var(--text-dark);
}

.financing-icon-header {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

.financing-icon {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: var(--radius-full);
  background-color: rgba(249, 115, 22, 0.1);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.insurance-card .financing-icon {
  background-color: rgba(30, 41, 59, 0.08);
  color: var(--text-dark);
}

.financing-card-title {
  font-family: var(--font-headings);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--text-dark);
  margin: 0;
}

.financing-card-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 2rem;
  flex-grow: 0;
}

.financing-features {
  list-style: none;
  padding: 0;
  margin: 0 0 2.5rem 0;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  flex-grow: 1;
}

.financing-features li {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.feature-bullet {
  width: 1.5rem;
  height: 1.5rem;
  border-radius: var(--radius-full);
  background-color: rgba(249, 115, 22, 0.08);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 0.125rem;
}

.insurance-card .feature-bullet {
  background-color: rgba(30, 41, 59, 0.06);
  color: var(--text-dark);
}

.financing-features strong {
  display: block;
  font-family: var(--font-headings);
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0.25rem;
  font-size: 0.95rem;
}

.financing-features p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.4;
  margin: 0;
}

/* Portfolio / Project Gallery */
.gallery-filters {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3.5rem;
}

.filter-btn {
  background: none;
  border: 1px solid var(--border-light);
  color: var(--text-dark);
  padding: 0.625rem 1.5rem;
  border-radius: var(--radius-full);
  font-family: var(--font-headings);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition);
}

.section-bg-dark .filter-btn {
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--text-light-muted);
}

.filter-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.section-bg-dark .filter-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.filter-btn.active {
  background-color: var(--primary);
  color: white;
  border-color: var(--primary);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.gallery-item {
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  aspect-ratio: 4 / 3;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-slow);
}

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.9) 10%, rgba(15, 23, 42, 0.2) 70%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2rem;
  opacity: 0;
  transition: var(--transition);
}

.gallery-item:hover img {
  transform: scale(1.08);
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-title {
  font-family: var(--font-headings);
  font-weight: 700;
  font-size: 1.25rem;
  color: white;
  margin-bottom: 0.25rem;
}

.gallery-category {
  font-size: 0.875rem;
  color: var(--primary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Lightbox Modal */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(15, 23, 42, 0.95);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.lightbox-content {
  position: relative;
  max-width: 900px;
  width: 100%;
}

.lightbox-img {
  width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: var(--radius-sm);
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.6);
}

.lightbox-close {
  position: absolute;
  top: -3rem;
  right: 0;
  background: none;
  border: none;
  color: white;
  font-size: 2.5rem;
  cursor: pointer;
}

/* Testimonials Carousel */
.testimonial-container {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}

.testimonial-track {
  display: flex;
  transition: var(--transition-slow);
}

.testimonial-slide {
  min-width: 100%;
  padding: 0 1rem;
}

.testimonial-card-item {
  background-color: white;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 4rem;
  text-align: center;
  box-shadow: var(--shadow-md);
  position: relative;
}

.testimonial-card-item::before {
  content: '"';
  position: absolute;
  top: 1.5rem;
  left: 3rem;
  font-size: 8rem;
  font-family: var(--font-headings);
  font-weight: 900;
  color: rgba(249, 115, 22, 0.08);
  line-height: 1;
}

.testimonial-rating {
  color: #FBBC04; /* Official Google Review Gold */
  margin-bottom: 2rem;
  display: flex;
  justify-content: center;
  gap: 0.35rem;
  font-size: 1.25rem;
}

.testimonial-text {
  font-size: 1.25rem;
  color: var(--text-dark);
  font-style: italic;
  margin-bottom: 2.5rem;
  line-height: 1.7;
}

.testimonial-author {
  font-family: var(--font-headings);
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--text-dark);
  margin-bottom: 0.25rem;
}

.testimonial-location {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.testimonial-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  margin-top: 3rem;
}

.carousel-btn {
  background: white;
  border: 1px solid var(--border-light);
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.carousel-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  box-shadow: var(--shadow-md);
}

.carousel-dots {
  display: flex;
  gap: 0.5rem;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--border-light);
  cursor: pointer;
  transition: var(--transition);
}

.dot.active {
  background-color: var(--primary);
  width: 24px;
  border-radius: var(--radius-full);
}

/* FAQ Accordion */
.faq-layout {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 1rem;
}

.faq-header {
  padding: 1.5rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  user-select: none;
}

.faq-question {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-dark);
}

.faq-icon {
  width: 1.5rem;
  height: 1.5rem;
  position: relative;
  transition: var(--transition);
}

.faq-icon::before,
.faq-icon::after {
  content: '';
  position: absolute;
  background-color: var(--text-dark);
  transition: var(--transition);
}

.faq-icon::before {
  top: 50%;
  left: 0;
  width: 100%;
  height: 2px;
  transform: translateY(-50%);
}

.faq-icon::after {
  top: 0;
  left: 50%;
  width: 2px;
  height: 100%;
  transform: translateX(-50%);
}

.faq-item.active .faq-icon::after {
  transform: translateX(-50%) rotate(90deg);
  opacity: 0;
}

.faq-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out;
}

.faq-content {
  padding-bottom: 1.5rem;
  color: var(--text-muted);
  font-size: 0.975rem;
}

/* Contact Section & Form */
.contact-layout {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 4rem;
  align-items: start;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.contact-card {
  display: flex;
  gap: 1.25rem;
}

.contact-icon {
  width: 3rem;
  height: 3rem;
  border-radius: var(--radius-md);
  background-color: rgba(249, 115, 22, 0.08);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-card-title {
  font-family: var(--font-headings);
  font-weight: 700;
  font-size: 1.125rem;
  margin-bottom: 0.25rem;
}

.contact-card-detail {
  color: var(--text-muted);
}

.contact-card-detail a:hover {
  color: var(--primary);
}

.contact-form-container {
  background-color: white;
  border-radius: var(--radius-lg);
  padding: 4rem;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-light);
  position: relative;
}

.form-title {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
}

.form-subtitle {
  color: var(--text-muted);
  margin-bottom: 3rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.form-group {
  position: relative;
  margin-bottom: 1.5rem;
}

.form-group.full-width {
  grid-column: 1 / span 2;
}

.form-input {
  width: 100%;
  padding: 1.125rem 1.25rem;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  background-color: var(--bg-light-alt);
  color: var(--text-dark);
  transition: var(--transition);
}

.form-input:focus {
  border-color: var(--primary);
  background-color: white;
  box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.1);
}

.form-group label {
  position: absolute;
  top: 1.125rem;
  left: 1.25rem;
  color: var(--text-muted);
  transition: var(--transition);
  pointer-events: none;
  font-weight: 500;
}

/* Floating Label Animations */
.form-input:focus ~ label,
.form-input:not(:placeholder-shown) ~ label {
  top: -0.625rem;
  left: 0.75rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--primary);
  background-color: white;
  padding: 0 0.5rem;
  border-radius: var(--radius-sm);
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
}

.form-success-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: white;
  border-radius: var(--radius-lg);
  z-index: 10;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem;
  text-align: center;
}

.success-icon {
  width: 5rem;
  height: 5rem;
  border-radius: 50%;
  background-color: rgba(16, 185, 129, 0.1);
  color: #10B981;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2rem;
  font-size: 2rem;
  animation: scaleUp 0.5s ease-out;
}

.success-title {
  font-family: var(--font-headings);
  font-weight: 700;
  font-size: 1.75rem;
  margin-bottom: 0.75rem;
}

.success-text {
  color: var(--text-muted);
}

/* Locations Map Area */
.locations-section {
  padding-bottom: 0;
}

.locations-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.locations-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.location-tag {
  background-color: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.22);
  padding: 0.65rem 1rem;
  border-radius: var(--radius-sm);
  text-align: center;
  font-size: 0.9rem;
  font-weight: 600;
  color: #ffffff;
  transition: var(--transition);
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.location-tag:hover {
  border-color: var(--primary);
  color: #ffffff;
  background-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(217, 26, 34, 0.4);
}

/* Light container override for services page */
.section:not(.section-navy) .location-tag {
  background-color: #ffffff;
  border: 1px solid var(--border-light);
  color: var(--text-dark);
  box-shadow: var(--shadow-sm);
}

.section:not(.section-navy) .location-tag:hover {
  background-color: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
}

/* Coverage Area / Locations Section Typography */
.locations-section {
  color: #ffffff;
}

.locations-section .section-title {
  color: #ffffff;
}

.locations-desc {
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.05rem;
  line-height: 1.7;
}

.zip-codes-box {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.zip-codes-title {
  color: #ffffff;
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-family: var(--font-headings);
  font-weight: 700;
}

.zip-codes-text {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.8;
}

.zip-codes-text strong {
  color: #ffffff;
  font-weight: 600;
}

.map-container {
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: 400px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-dark);
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* Footer */
.footer {
  background-color: var(--bg-dark-light);
  color: var(--text-dark);
  padding: 6rem 0 3rem;
  border-top: 1px solid var(--border-dark);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr 1.2fr;
  gap: 4rem;
  margin-bottom: 4rem;
}

.footer-col h4 {
  font-size: 1.125rem;
  color: var(--text-dark);
  margin-bottom: 2rem;
  position: relative;
  padding-bottom: 0.75rem;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 2rem;
  height: 2px;
  background-color: var(--primary);
}

.footer-about p {
  color: var(--text-muted);
  margin-top: 1.5rem;
  margin-bottom: 2rem;
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-link {
  width: 2.5rem;
  height: 2.5rem;
  background-color: hsla(var(--primary-hsl), 0.05);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
}

.social-link:hover {
  background-color: var(--primary);
  color: white;
  transform: translateY(-2px);
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 1rem;
}

.footer-links a {
  color: var(--text-muted);
}

.footer-links a:hover {
  color: var(--primary);
  padding-left: 4px;
}

.footer-contact-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
  color: var(--text-muted);
}

.footer-contact-item svg {
  color: var(--primary);
  flex-shrink: 0;
}

.footer-contact-item strong {
  display: block;
  color: var(--text-dark);
}

.footer-badges {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

.footer-badge-img {
  max-height: 50px;
  opacity: 0.75;
  transition: var(--transition);
}

.footer-badge-img:hover {
  opacity: 1;
}

.footer-bottom {
  border-top: 1px solid var(--border-dark);
  padding-top: 2.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  color: var(--text-muted);
  font-size: 0.875rem;
}

.footer-bottom-links {
  display: flex;
  gap: 2rem;
}

.footer-bottom-links a {
  color: var(--text-muted);
}

.footer-bottom-links a:hover {
  color: var(--primary);
}

/* Animations Scroll Reveal */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Keyframe Animations */
@keyframes scaleUp {
  from { transform: scale(0.8); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

/* Responsiveness */
@media (max-width: 1024px) {
  .hero-title {
    font-size: 3rem;
  }
  .hero .container {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .hero-content {
    max-width: 100%;
  }
  .hero-badges {
    justify-content: flex-start;
  }
  .hero-bg::after {
    background: linear-gradient(
      180deg,
      rgba(14, 42, 86, 0.92) 0%,
      rgba(14, 42, 86, 0.82) 60%,
      rgba(10, 25, 47, 0.65) 100%
    );
  }
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .services-5-grid,
  .services-grid:has(> .service-card:nth-child(5)) {
    grid-template-columns: repeat(2, 1fr);
  }
  .services-5-grid > .service-card,
  .services-grid:has(> .service-card:nth-child(5)) > .service-card {
    grid-column: span 1;
  }
  .services-5-grid > .service-card:nth-child(5),
  .services-grid:has(> .service-card:nth-child(5)) > .service-card:nth-child(5) {
    grid-column: span 2;
  }
  .slider-wrapper {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .owens-corning-layout,
  .certainteed-layout {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .financing-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .locations-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .hero {
    height: auto;
    min-height: 100vh;
    padding: 130px 0 60px;
  }
  .section {
    padding: 5rem 0;
  }
  .section-title {
    font-size: 2.25rem;
  }
  .nav {
    display: none;
  }
  .header-cta {
    display: none;
  }
  .menu-btn {
    display: block;
  }
  
  /* Mobile Navigation Menu */
  .mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--bg-dark);
    z-index: 999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    transform: translateY(-100%);
    transition: var(--transition-slow);
  }
  
  .mobile-menu.active {
    transform: translateY(0);
  }
  
  .mobile-menu .nav-link {
    font-size: 1.5rem;
    color: white;
  }
  
  .services-grid,
  .services-5-grid,
  .services-grid:has(> .service-card:nth-child(5)) {
    grid-template-columns: 1fr;
  }
  .services-5-grid > .service-card,
  .services-grid:has(> .service-card:nth-child(5)) > .service-card {
    grid-column: span 1 !important;
  }
  .gallery-grid {
    grid-template-columns: 1fr;
  }
  .locations-list {
    grid-template-columns: repeat(2, 1fr);
  }
  .form-row {
    grid-template-columns: 1fr;
  }
  .form-group.full-width {
    grid-column: span 1;
  }
  .testimonial-card-item {
    padding: 2.5rem 1.5rem;
  }
  .testimonial-text {
    font-size: 1.125rem;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2.5rem;
  }
  .hero-actions {
    flex-direction: column;
    width: 100%;
  }
  .hero-actions .btn {
    width: 100%;
  }
  .hero-badges {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
  }
  .locations-list {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
  .footer-bottom-links {
    flex-direction: column;
    gap: 1rem;
  }
}

/* Google Reviews Summary & Styling overrides */
.google-reviews-summary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  margin: -1.5rem auto 4.5rem;
  background-color: white;
  padding: 1rem 2rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  max-width: fit-content;
  box-shadow: var(--shadow-sm);
  flex-wrap: wrap;
}

.google-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-headings);
  font-weight: 700;
  color: var(--text-dark);
}

.google-brand svg {
  color: #4285F4; /* Google Blue */
}

.google-rating-score {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.score-num {
  font-family: var(--font-headings);
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--text-dark);
}

.stars-gold {
  color: #FBBC04; /* Official Google Review Gold */
  font-weight: 700;
  letter-spacing: 2px;
}

.reviews-count {
  font-size: 0.95rem;
  color: var(--text-muted);
}

.google-badge-card {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 2.25rem;
  height: 2.25rem;
  background-color: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* FAQ Dark Section styling overrides */
.section-bg-dark .faq-question {
  color: var(--text-light);
}

.section-bg-dark .faq-icon::before,
.section-bg-dark .faq-icon::after {
  background-color: var(--text-light);
}

.section-bg-dark .faq-item {
  border-bottom-color: var(--border-dark);
}

.section-bg-dark .faq-content {
  color: var(--text-light-muted);
}

/* Locations Collapsible Styles */
.btn-toggle-locations {
  background: none;
  border: 1px solid var(--border-dark);
  color: var(--text-muted);
  padding: 0.625rem 1.5rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-headings);
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  margin-top: 1.5rem;
}

.btn-toggle-locations:hover {
  border-color: var(--primary);
  color: var(--primary);
  background-color: hsla(var(--primary-hsl), 0.05);
}

.btn-toggle-locations.active svg {
  transform: rotate(180deg);
}

.locations-collapsible {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out;
}

/* ==========================================================================
   Standalone Subpage Styling (Services, Our Work, FAQ, Contact)
   ========================================================================== */
.page-hero {
  padding: 8rem 0 4rem;
  background: linear-gradient(180deg, var(--bg-light-alt) 0%, var(--bg-light) 100%);
  border-bottom: 1px solid var(--border-light);
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, hsla(var(--primary-hsl), 0.08) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}

.breadcrumbs a {
  color: var(--primary);
  font-weight: 500;
}

.breadcrumbs a:hover {
  text-decoration: underline;
}

.breadcrumbs span.separator {
  color: var(--border-dark);
  user-select: none;
}

.breadcrumbs span.current {
  color: var(--text-dark);
  font-weight: 600;
}

.page-hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3rem;
  align-items: center;
}

.page-hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.page-hero-media {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-hero-image-frame {
  position: relative;
  width: 100%;
  max-width: 500px;
  height: 310px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 35px -10px rgba(15, 23, 42, 0.15), 0 0 0 1px var(--border-light);
  background-color: var(--bg-light-alt);
}

.page-hero-image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.page-hero-image-frame:hover img {
  transform: scale(1.05);
}

.page-hero-image-badge {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  background: rgba(15, 23, 42, 0.82);
  backdrop-filter: blur(8px);
  color: white;
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius-full);
  font-size: 0.775rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  pointer-events: none;
}

.page-hero-image-badge svg {
  color: var(--accent);
}

.page-hero-title {
  font-size: 2.85rem;
  margin-bottom: 0.85rem;
  color: var(--text-dark);
  letter-spacing: -0.02em;
}

.page-hero-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 1.75rem;
}

.page-hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
}

.subpage-cta-banner {
  background: linear-gradient(135deg, hsla(var(--primary-hsl), 0.08) 0%, hsla(var(--accent-hsl), 0.12) 100%);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 3.5rem 2.5rem;
  text-align: center;
  margin: 4rem auto 0;
  max-width: 900px;
}

.subpage-cta-banner h3 {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}

.subpage-cta-banner p {
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 2rem;
  font-size: 1.05rem;
}

.faq-help-card {
  background: white;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  padding: 2.5rem;
  text-align: center;
  margin-top: 4rem;
}

.faq-help-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background-color: hsla(var(--primary-hsl), 0.1);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
}

@media (max-width: 992px) {
  .page-hero-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .page-hero-image-frame {
    max-width: 100%;
    height: 260px;
  }
}

@media (max-width: 768px) {
  .page-hero {
    padding: 6.5rem 0 3rem;
  }
  .page-hero-title {
    font-size: 2.15rem;
  }
  .subpage-cta-banner {
    padding: 2.5rem 1.5rem;
  }
}

/* Local Area Zip Code Tags */
.zip-tag {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-headings);
  transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease;
  user-select: all;
}

.zip-tag:hover {
  transform: translateY(-2px);
  background-color: var(--primary) !important;
  color: #ffffff !important;
}

/* ==========================================================================
   Dedicated Contact Intake Page
   ========================================================================== */
.contact-intake-section {
  padding: 8rem 0 5rem;
  background: radial-gradient(circle at 50% 0%, rgba(217, 26, 34, 0.05) 0%, transparent 55%),
              radial-gradient(circle at 85% 20%, rgba(14, 42, 86, 0.06) 0%, transparent 45%),
              var(--bg-light-alt);
  min-height: calc(100vh - 80px);
  position: relative;
}

.intake-header {
  text-align: center;
  max-width: 740px;
  margin: 0 auto 2.5rem;
}

.intake-title {
  font-size: 2.75rem;
  font-family: var(--font-headings);
  font-weight: 800;
  color: var(--text-dark);
  line-height: 1.15;
  margin: 0.75rem 0 1rem;
  letter-spacing: -0.02em;
}

.intake-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.intake-trust-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem 1.25rem;
  margin: 1.75rem 0 0;
}

.intake-trust-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
  background: rgba(14, 42, 86, 0.05);
  border: 1px solid rgba(14, 42, 86, 0.12);
  padding: 0.45rem 1rem;
  border-radius: var(--radius-full);
}

.intake-trust-pill svg {
  color: var(--primary);
  flex-shrink: 0;
}

.intake-card-wrapper {
  max-width: 780px;
  margin: 0 auto;
}

.intake-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 40px -15px rgba(14, 42, 86, 0.08), 0 0 1px rgba(14, 42, 86, 0.1);
  padding: 3rem;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
}

.intake-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
}

.intake-card-top {
  margin-bottom: 2rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.intake-card-top h2 {
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--text-dark);
  font-family: var(--font-headings);
  margin-bottom: 0.25rem;
}

.intake-card-top p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.intake-team-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: rgba(16, 185, 129, 0.1);
  color: #059669;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.intake-team-badge .pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10B981;
  animation: pulseGreen 2s infinite;
}

@keyframes pulseGreen {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.btn-submit-intake {
  width: 100%;
  padding: 1.15rem 2rem;
  font-size: 1.1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1rem;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(217, 26, 34, 0.3);
}

.btn-submit-intake:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(217, 26, 34, 0.4);
}

.privacy-assurance {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.825rem;
  color: var(--text-muted);
  margin-top: 1.25rem;
  text-align: center;
}

.privacy-assurance svg {
  color: #10B981;
  flex-shrink: 0;
}

.intake-emergency-notice {
  text-align: center;
  margin-top: 2rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  padding: 1rem;
  background: rgba(14, 42, 86, 0.03);
  border-radius: var(--radius-md);
  border: 1px dashed var(--border-dark);
}

.intake-emergency-notice a {
  color: var(--primary);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Success Overlay */
.intake-success-overlay {
  position: absolute;
  inset: 0;
  background: #ffffff;
  z-index: 25;
  display: none;
  opacity: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 3rem 2.5rem;
  border-radius: var(--radius-lg);
  transition: opacity 0.4s ease;
}

.intake-success-overlay.active {
  display: flex;
  opacity: 1;
}

.intake-success-icon {
  width: 5rem;
  height: 5rem;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.12);
  color: #10B981;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  font-size: 2.25rem;
  animation: scaleUp 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.intake-success-title {
  font-size: 2rem;
  font-family: var(--font-headings);
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 0.75rem;
}

.intake-success-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 540px;
  line-height: 1.6;
  margin-bottom: 1.75rem;
}

.intake-recap-box {
  background: var(--bg-light-alt);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.75rem;
  width: 100%;
  max-width: 500px;
  margin-bottom: 2rem;
  text-align: left;
}

.intake-recap-item {
  display: flex;
  justify-content: space-between;
  padding: 0.4rem 0;
  font-size: 0.9rem;
  color: var(--text-dark);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.intake-recap-item:last-child {
  border-bottom: none;
}

.intake-recap-label {
  color: var(--text-muted);
  font-weight: 500;
}

.intake-recap-val {
  font-weight: 600;
  color: var(--accent);
}

@media (max-width: 768px) {
  .contact-intake-section {
    padding: 6.5rem 0 3.5rem;
  }
  .intake-title {
    font-size: 2.1rem;
  }
  .intake-card {
    padding: 2rem 1.25rem;
  }
  .intake-card-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }
  .form-row {
    grid-template-columns: 1fr;
    gap: 1.25rem;
    margin-bottom: 1.25rem;
  }
  .form-group {
    margin-bottom: 1.25rem;
  }
}

@media (max-width: 992px) {
  .about-legacy-grid {
    grid-template-columns: 1fr !important;
    gap: 3rem !important;
  }
}



