/* ── Residential Roofing Hero ── */
.hero--residential {
  position: relative;
  min-height: 48vh;
  display: flex;
  align-items: center;
  background: url('https://images.unsplash.com/photo-1600596542815-ffad4c1539a9?auto=format&fit=crop&w=1920&q=80') center/cover no-repeat;
  padding: calc(var(--navbar-height) + var(--space-3xl)) 0 var(--space-2xl);
}
.hero--residential::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(150deg, rgba(var(--color-primary-rgb), 0.78) 0%, rgba(var(--color-primary-dark-rgb), 0.65) 50%, rgba(var(--color-primary-rgb), 0.52) 100%);
  z-index: 1;
}
.hero--residential::after {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  z-index: 1;
  pointer-events: none;
}
.hero--residential .container {
  position: relative;
  z-index: 2;
  max-width: 840px;
  text-align: center;
}
.hero--residential h1 {
  color: #fff;
  font-size: var(--fs-h1);
  margin-bottom: var(--space-md);
  text-wrap: balance;
}
.hero--residential .hero-answer {
  color: rgba(255, 255, 255, 0.88);
  max-width: 58ch;
  margin: 0 auto var(--space-xl);
  font-size: var(--font-size-lg);
  line-height: 1.7;
}
.hero--residential .hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--color-accent);
  margin-bottom: var(--space-lg);
  background: rgba(var(--color-accent-rgb), 0.14);
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-md);
}
.hero--residential .breadcrumb {
  margin-bottom: var(--space-md);
  font-size: var(--font-size-sm);
  color: rgba(255, 255, 255, 0.55);
}
.hero--residential .breadcrumb a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.hero--residential .breadcrumb a:hover { color: var(--color-accent); }
.hero--residential .breadcrumb-sep { margin: 0 var(--space-sm); }
.hero--residential .hero-actions {
  display: flex;
  justify-content: center;
  gap: var(--space-md);
  flex-wrap: wrap;
}
.hero--residential .trust-badges {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--space-lg);
  margin-top: var(--space-xl);
  padding-top: var(--space-lg);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}
.hero--residential .trust-badge {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: rgba(255, 255, 255, 0.75);
}
.hero--residential .trust-badge i,
.hero--residential .trust-badge svg { width: 18px; height: 18px; color: var(--color-accent); }

/* ── SVG Dividers ── */
.divider-res-1 svg { fill: var(--color-bg); }
.divider-res-2 svg { fill: var(--color-bg-alt); }
.divider-res-3 svg { fill: var(--color-bg); }
.divider-res-4 svg { fill: var(--color-bg-alt); }

/* ── Full-Service Overview ── */
.res-overview {
  background: var(--color-bg);
  padding: var(--section-pad);
}
.res-overview .grid-asym {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: var(--space-3xl);
  align-items: center;
}
.res-overview h2 {
  font-size: var(--fs-h2);
  color: var(--color-primary);
  margin-bottom: var(--space-md);
  text-wrap: balance;
}
.res-overview .answer-block {
  color: var(--color-text-light);
  font-size: var(--font-size-lg);
  line-height: 1.7;
  margin-bottom: var(--space-lg);
  padding-left: var(--space-md);
  border-left: 3px solid var(--color-accent);
}
.res-overview .prose { line-height: 1.7; color: var(--color-text); max-width: var(--content-width); }
.res-material-chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-top: var(--space-xl);
}
.res-chip {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: var(--space-sm) var(--space-md);
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: var(--color-primary);
  transition: background var(--transition-base, 0.3s ease), border-color var(--transition-base, 0.3s ease);
}
.res-chip:hover {
  background: rgba(var(--color-accent-rgb), 0.08);
  border-color: var(--color-accent);
}
.res-chip i,
.res-chip svg { width: 16px; height: 16px; color: var(--color-accent); }
.res-img-stack {
  position: relative;
}
.res-img-primary {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.res-img-primary img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}
.res-img-badge {
  position: absolute;
  bottom: -16px;
  right: -16px;
  background: var(--color-accent);
  color: #fff;
  padding: var(--space-md) var(--space-lg);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  text-align: center;
}
.res-img-badge .badge-number {
  font-family: var(--font-heading);
  font-size: var(--fs-h2);
  font-weight: 800;
  display: block;
  line-height: 1;
}
.res-img-badge .badge-label {
  font-size: var(--font-size-xs);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ── HOA & Insurance Split ── */
.res-hoa {
  background: var(--color-bg-alt);
  padding: var(--section-pad);
}
.res-hoa .split-reverse {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: var(--space-3xl);
  align-items: center;
}
.res-hoa h2 {
  font-size: var(--fs-h2);
  color: var(--color-primary);
  margin-bottom: var(--space-md);
  text-wrap: balance;
}
.res-hoa .answer-block {
  color: var(--color-text-light);
  font-size: var(--font-size-lg);
  line-height: 1.7;
  margin-bottom: var(--space-lg);
  padding-left: var(--space-md);
  border-left: 3px solid var(--color-accent);
}
.res-hoa .prose { line-height: 1.7; color: var(--color-text); max-width: var(--content-width); }
.res-hoa-img {
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.res-hoa-img img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.res-hoa-img::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(var(--color-primary-rgb), 0.15) 0%, transparent 40%);
  pointer-events: none;
}
.res-checklist {
  margin-top: var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}
.res-checklist li {
  list-style: none;
  padding-left: var(--space-lg);
  position: relative;
  font-size: var(--font-size-base);
  color: var(--color-text);
  line-height: 1.55;
}
.res-checklist li::before {
  content: '\2713';
  color: var(--color-accent);
  font-weight: 700;
  position: absolute;
  left: 0;
}

/* ── Process Section ── */
.res-process {
  background: var(--color-bg);
  padding: var(--section-pad);
  text-align: center;
}
.res-process h2 {
  font-size: var(--fs-h2);
  color: var(--color-primary);
  margin-bottom: var(--space-md);
  text-wrap: balance;
}
.res-process .answer-block {
  color: var(--color-text-light);
  font-size: var(--font-size-lg);
  line-height: 1.7;
  max-width: 60ch;
  margin: 0 auto var(--space-2xl);
  padding-left: var(--space-md);
  border-left: 3px solid var(--color-accent);
  text-align: left;
}
.res-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
  max-width: var(--max-width);
  margin: 0 auto;
}
.res-step {
  position: relative;
  background: var(--color-bg-alt);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl) var(--space-lg) var(--space-lg);
  text-align: center;
  border: 1px solid var(--color-border);
}
.res-step-num {
  position: absolute;
  top: -18px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--color-accent);
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: var(--font-size-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
}
.res-step h3 {
  font-family: var(--font-heading);
  font-size: var(--fs-h4);
  color: var(--color-primary);
  margin-bottom: var(--space-sm);
}
.res-step p {
  color: var(--color-text-light);
  font-size: var(--font-size-sm);
  line-height: 1.6;
}

/* ── Why Choose ── */
.res-why {
  background: var(--color-bg-alt);
  padding: var(--section-pad);
}
.res-why h2 {
  font-size: var(--fs-h2);
  color: var(--color-primary);
  text-align: center;
  margin-bottom: var(--space-md);
  text-wrap: balance;
}
.res-why .answer-block {
  color: var(--color-text-light);
  font-size: var(--font-size-lg);
  line-height: 1.7;
  max-width: 60ch;
  margin: 0 auto var(--space-2xl);
  padding-left: var(--space-md);
  border-left: 3px solid var(--color-accent);
}
.res-why-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-lg);
  max-width: var(--max-width);
  margin: 0 auto;
}
.res-why-card {
  display: flex;
  gap: var(--space-md);
  padding: var(--space-xl);
  background: var(--color-bg);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  transition: transform var(--transition-base, 0.3s ease), box-shadow var(--transition-base, 0.3s ease);
}
.res-why-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.res-why-card .icon-wrap {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: rgba(var(--color-accent-rgb), 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent);
}
.res-why-card .icon-wrap i,
.res-why-card .icon-wrap svg { width: 22px; height: 22px; }
.res-why-card h3 {
  font-family: var(--font-heading);
  font-size: var(--fs-h4);
  color: var(--color-primary);
  margin-bottom: var(--space-xs);
}
.res-why-card p {
  font-size: var(--font-size-sm);
  color: var(--color-text-light);
  line-height: 1.6;
}

/* ── FAQ Section ── */
.res-faq {
  background: var(--color-bg);
  padding: var(--section-pad);
}
.res-faq h2 {
  font-size: var(--fs-h2);
  color: var(--color-primary);
  text-align: center;
  margin-bottom: var(--space-2xl);
  text-wrap: balance;
}
.res-faq .faq-list {
  max-width: 780px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}
.res-faq .faq-item {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--color-bg);
  transition: box-shadow var(--transition-base, 0.3s ease);
}
.res-faq .faq-item:hover { box-shadow: var(--shadow-sm); }
.res-faq .faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-lg);
  cursor: pointer;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: var(--font-size-lg);
  color: var(--color-primary);
  list-style: none;
  gap: var(--space-md);
}
.res-faq .faq-item summary::-webkit-details-marker { display: none; }
.res-faq .faq-item summary::after {
  content: '+';
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--color-accent);
  flex-shrink: 0;
  transition: transform 0.3s ease;
}
.res-faq .faq-item[open] summary::after {
  content: '\2212';
  transform: rotate(180deg);
}
.res-faq .faq-answer {
  padding: 0 var(--space-lg) var(--space-lg);
  color: var(--color-text-light);
  line-height: 1.7;
  font-size: var(--font-size-base);
}

/* ── CTA Banner ── */
.cta-res {
  text-align: center;
  background: linear-gradient(130deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
  padding: var(--section-pad);
}
.cta-res::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 80% 20%, rgba(var(--color-accent-rgb), 0.18) 0%, transparent 55%);
  pointer-events: none;
}
.cta-res .container { position: relative; z-index: 1; }
.cta-res h2 { color: #fff; font-size: var(--fs-h2); margin-bottom: var(--space-md); text-wrap: balance; }
.cta-res p {
  color: rgba(255, 255, 255, 0.85);
  max-width: 52ch;
  margin: 0 auto var(--space-xl);
  font-size: var(--font-size-lg);
  line-height: 1.65;
}
.cta-res .hero-actions {
  display: flex;
  justify-content: center;
  gap: var(--space-md);
  flex-wrap: wrap;
}

/* ── Related Services ── */
.related-res {
  background: var(--color-bg-alt);
  padding: var(--section-pad);
}
.related-res h2 {
  font-size: var(--fs-h2);
  color: var(--color-primary);
  text-align: center;
  margin-bottom: var(--space-2xl);
  text-wrap: balance;
}

/* ── Responsive ── */
@media (max-width: 1023px) {
  .res-overview .grid-asym,
  .res-hoa .split-reverse { grid-template-columns: 1fr; gap: var(--space-xl); }
  .res-steps { grid-template-columns: repeat(2, 1fr); }
  .res-why-grid { grid-template-columns: 1fr; }
}
@media (max-width: 767px) {
  .hero--residential .hero-actions { flex-direction: column; }
  .hero--residential .hero-actions .btn-primary,
  .hero--residential .hero-actions .btn-secondary--white { width: 100%; text-align: center; }
  .res-steps { grid-template-columns: 1fr; }
  .res-material-chips { justify-content: center; }
}
