/* ── Flat Roof Hero ── */
.hero--flat {
  position: relative;
  min-height: 48vh;
  display: flex;
  align-items: center;
  background: url('https://images.unsplash.com/photo-1600607687939-ce8a6c25118c?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--flat::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, 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--flat::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--flat .container {
  position: relative;
  z-index: 2;
  max-width: 820px;
  text-align: center;
}
.hero--flat h1 {
  color: #fff;
  font-size: var(--fs-h1);
  margin-bottom: var(--space-md);
  text-wrap: balance;
}
.hero--flat .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--flat .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--flat .breadcrumb {
  margin-bottom: var(--space-md);
  font-size: var(--font-size-sm);
  color: rgba(255, 255, 255, 0.55);
}
.hero--flat .breadcrumb a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.hero--flat .breadcrumb a:hover { color: var(--color-accent); }
.hero--flat .breadcrumb-sep { margin: 0 var(--space-sm); }
.hero--flat .hero-actions {
  display: flex;
  justify-content: center;
  gap: var(--space-md);
  flex-wrap: wrap;
}
.hero--flat .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--flat .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--flat .trust-badge i,
.hero--flat .trust-badge svg { width: 18px; height: 18px; color: var(--color-accent); }

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

/* ── Materials Overview ── */
.flat-materials {
  background: var(--color-bg);
  padding: var(--section-pad);
}
.flat-materials h2 {
  font-size: var(--fs-h2);
  color: var(--color-primary);
  text-align: center;
  margin-bottom: var(--space-md);
  text-wrap: balance;
}
.flat-materials .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);
}
.flat-mat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
  max-width: var(--max-width);
  margin: 0 auto;
}
.flat-mat-card {
  background: var(--color-bg-alt);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl) var(--space-lg) var(--space-lg);
  position: relative;
  border: 1px solid var(--color-border);
  transition: transform var(--transition-base, 0.3s ease), box-shadow var(--transition-base, 0.3s ease);
  text-align: center;
}
.flat-mat-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}
.flat-mat-card .mat-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(var(--color-accent-rgb), 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-md);
  color: var(--color-accent);
}
.flat-mat-card .mat-icon i,
.flat-mat-card .mat-icon svg { width: 24px; height: 24px; }
.flat-mat-card h3 {
  font-family: var(--font-heading);
  font-size: var(--fs-h3);
  color: var(--color-primary);
  margin-bottom: var(--space-xs);
}
.flat-mat-card .mat-tag {
  display: inline-block;
  font-family: var(--font-accent);
  color: var(--color-accent);
  font-size: var(--font-size-lg);
  margin-bottom: var(--space-md);
}
.flat-mat-card p {
  color: var(--color-text-light);
  font-size: var(--font-size-base);
  line-height: 1.6;
  margin-bottom: var(--space-md);
}
.flat-mat-card ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  text-align: left;
  border-top: 1px solid var(--color-border);
  padding-top: var(--space-md);
}
.flat-mat-card ul li {
  font-size: var(--font-size-sm);
  color: var(--color-text);
  padding-left: var(--space-lg);
  position: relative;
  line-height: 1.55;
}
.flat-mat-card ul li::before {
  content: '';
  width: 7px;
  height: 7px;
  background: var(--color-accent);
  border-radius: 50%;
  position: absolute;
  left: 2px;
  top: 7px;
}

/* ── Ponding & Commercial Split ── */
.flat-solutions {
  background: var(--color-bg-alt);
  padding: var(--section-pad);
}
.flat-solutions .grid-asym {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: var(--space-3xl);
  align-items: center;
}
.flat-solutions h2 {
  font-size: var(--fs-h2);
  color: var(--color-primary);
  margin-bottom: var(--space-md);
  text-wrap: balance;
}
.flat-solutions .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);
}
.flat-solutions .prose {
  line-height: 1.7;
  color: var(--color-text);
  max-width: var(--content-width);
}
.flat-sol-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
}
.flat-sol-image img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.flat-sol-image .stat-overlay {
  position: absolute;
  bottom: var(--space-lg);
  left: var(--space-lg);
  background: rgba(var(--color-primary-rgb), 0.92);
  backdrop-filter: blur(8px);
  border-radius: var(--radius-md);
  padding: var(--space-md) var(--space-lg);
  color: #fff;
}
.flat-sol-image .stat-overlay .stat-number {
  font-family: var(--font-heading);
  font-size: var(--fs-h2);
  font-weight: 800;
  color: var(--color-accent);
  display: block;
}
.flat-sol-image .stat-overlay .stat-label {
  font-size: var(--font-size-sm);
  color: rgba(255, 255, 255, 0.8);
}

/* ── Process Section ── */
.flat-process {
  background: var(--color-bg);
  padding: var(--section-pad);
  text-align: center;
}
.flat-process h2 {
  font-size: var(--fs-h2);
  color: var(--color-primary);
  margin-bottom: var(--space-md);
  text-wrap: balance;
}
.flat-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;
}
.flat-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
  max-width: var(--max-width);
  margin: 0 auto;
  counter-reset: flat-step;
}
.flat-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);
}
.flat-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);
}
.flat-step h3 {
  font-family: var(--font-heading);
  font-size: var(--fs-h4);
  color: var(--color-primary);
  margin-bottom: var(--space-sm);
}
.flat-step p {
  color: var(--color-text-light);
  font-size: var(--font-size-sm);
  line-height: 1.6;
}

/* ── Why Choose Section ── */
.flat-why {
  background: var(--color-bg-alt);
  padding: var(--section-pad);
}
.flat-why h2 {
  font-size: var(--fs-h2);
  color: var(--color-primary);
  text-align: center;
  margin-bottom: var(--space-md);
  text-wrap: balance;
}
.flat-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);
}
.flat-why-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-lg);
  max-width: var(--max-width);
  margin: 0 auto;
}
.flat-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);
}
.flat-why-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.flat-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);
}
.flat-why-card .icon-wrap i,
.flat-why-card .icon-wrap svg { width: 22px; height: 22px; }
.flat-why-card h3 {
  font-family: var(--font-heading);
  font-size: var(--fs-h4);
  color: var(--color-primary);
  margin-bottom: var(--space-xs);
}
.flat-why-card p {
  font-size: var(--font-size-sm);
  color: var(--color-text-light);
  line-height: 1.6;
}

/* ── FAQ Section ── */
.flat-faq {
  background: var(--color-bg);
  padding: var(--section-pad);
}
.flat-faq h2 {
  font-size: var(--fs-h2);
  color: var(--color-primary);
  text-align: center;
  margin-bottom: var(--space-2xl);
  text-wrap: balance;
}
.flat-faq .faq-list {
  max-width: 780px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}
.flat-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);
}
.flat-faq .faq-item:hover { box-shadow: var(--shadow-sm); }
.flat-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);
}
.flat-faq .faq-item summary::-webkit-details-marker { display: none; }
.flat-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;
}
.flat-faq .faq-item[open] summary::after {
  content: '\2212';
  transform: rotate(180deg);
}
.flat-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-flat {
  text-align: center;
  background: linear-gradient(140deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
  padding: var(--section-pad);
}
.cta-flat::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 70% 80%, rgba(var(--color-accent-rgb), 0.16) 0%, transparent 55%);
  pointer-events: none;
}
.cta-flat .container { position: relative; z-index: 1; }
.cta-flat h2 { color: #fff; font-size: var(--fs-h2); margin-bottom: var(--space-md); text-wrap: balance; }
.cta-flat 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-flat .hero-actions {
  display: flex;
  justify-content: center;
  gap: var(--space-md);
  flex-wrap: wrap;
}

/* ── Related Services ── */
.related-flat {
  background: var(--color-bg-alt);
  padding: var(--section-pad);
}
.related-flat 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) {
  .flat-mat-grid { grid-template-columns: 1fr; max-width: 500px; margin: 0 auto; }
  .flat-solutions .grid-asym { grid-template-columns: 1fr; gap: var(--space-xl); }
  .flat-steps { grid-template-columns: repeat(2, 1fr); }
  .flat-why-grid { grid-template-columns: 1fr; }
}
@media (max-width: 767px) {
  .hero--flat .hero-actions { flex-direction: column; }
  .hero--flat .hero-actions .btn-primary,
  .hero--flat .hero-actions .btn-secondary--white { width: 100%; text-align: center; }
  .flat-steps { grid-template-columns: 1fr; }
}
