:root {
  --primary: #d92129;
  --secondary: #111;
  --dark: #0a0a0a;
  --light: #f6f6f8;
  --text: #1f2327;
  --accent: #f6c90e;
  --border-radius: 16px;
  font-size: 16px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  color: var(--text);
  background: #ffffff;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.top-banner {
  background: var(--dark);
  color: #ffffff;
  font-size: 0.875rem;
}

.top-banner__content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.25rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.top-banner__btn {
  background: var(--primary);
  color: #ffffff;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  font-weight: 600;
}

.site-header {
  background: rgba(17, 17, 17, 0.95);
  color: #ffffff;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.2);
}

.site-header__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 2rem;
}

.brand {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.brand__logo {
  font-size: 1.75rem;
  font-weight: 700;
  color: #ffffff;
}

.brand__tagline {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
}

.site-nav {
  display: flex;
  gap: 1.5rem;
  margin-left: auto;
}

.site-nav a {
  font-weight: 500;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.8);
  position: relative;
  padding-bottom: 0.25rem;
  transition: color 0.2s ease;
}

.site-nav a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--primary);
  transform: scaleX(0);
  transform-origin: center;
  opacity: 0;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.site-nav a:hover::after {
  transform: scaleX(1);
  opacity: 1;
}

.site-nav a:hover {
  color: #ffffff;
}

.page-residential .nav-link[data-page='residential'],
.page-commercial .nav-link[data-page='commercial'],
.page-gutters .nav-link[data-page='gutters'],
.page-services .nav-link[data-page='services'],
.page-contact .nav-link[data-page='contact'] {
  color: #ffffff;
}

.page-residential .nav-link[data-page='residential']::after,
.page-commercial .nav-link[data-page='commercial']::after,
.page-gutters .nav-link[data-page='gutters']::after,
.page-services .nav-link[data-page='services']::after,
.page-contact .nav-link[data-page='contact']::after {
  transform: scaleX(1);
  opacity: 1;
}

.header-actions {
  display: flex;
  gap: 0.75rem;
  margin-left: 1.5rem;
}

.primary-btn,
.secondary-btn,
.ghost-btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  border-radius: 999px;
  padding: 0.65rem 1.6rem;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.primary-btn {
  background: var(--primary);
  color: #ffffff;
  box-shadow: 0 12px 24px rgba(217, 33, 41, 0.35);
}

.primary-btn:hover {
  transform: translateY(-2px);
}

.secondary-btn {
  background: #ffffff;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.secondary-btn:hover {
  transform: translateY(-2px);
}

.ghost-btn {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.24);
}

.hero {
  position: relative;
  min-height: 540px;
  background: url('https://images.unsplash.com/photo-1582719478250-c89cae4dc85b?auto=format&fit=crop&w=1600&q=80') center/cover no-repeat;
  display: flex;
  align-items: center;
  color: #ffffff;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(17, 17, 17, 0.85), rgba(17, 17, 17, 0.55));
}

.hero__content {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 1.5rem;
}

.badge {
  display: inline-block;
  background: var(--primary);
  color: #ffffff;
  padding: 0.35rem 1.25rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hero h1 {
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  max-width: 25ch;
  margin: 1rem 0 0.5rem;
}

.hero__subtitle {
  font-size: 1rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 2rem;
  color: rgba(255, 255, 255, 0.85);
}

.hero__actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.75rem;
}

.hero__features {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  padding: 0;
  margin: 0;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
}

.cta-grid {
  max-width: 1200px;
  margin: -4rem auto 0;
  padding: 0 1.5rem 4rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.cta-card {
  background: #ffffff;
  border-radius: var(--border-radius);
  padding: 2rem 2.25rem;
  box-shadow: 0 18px 40px rgba(15, 22, 34, 0.12);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: relative;
}

.cta-card h2 {
  margin: 0;
  font-size: 1.5rem;
}

.cta-card p {
  margin: 0;
  color: #4a4f57;
}

.styled-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.styled-form input,
.styled-form select,
.styled-form textarea {
  padding: 0.85rem 1rem;
  border-radius: 12px;
  border: 1px solid #dde1e7;
  font-family: inherit;
  background: #f9fafc;
}

.styled-form input:focus,
.styled-form select:focus,
.styled-form textarea:focus {
  outline: 2px solid rgba(217, 33, 41, 0.35);
  border-color: var(--primary);
}

.styled-form button {
  border: none;
}

.guide-preview {
  background: linear-gradient(135deg, rgba(217, 33, 41, 0.9), rgba(17, 17, 17, 0.9));
  border-radius: 16px;
  height: 160px;
}

.metrics {
  background: linear-gradient(180deg, #16191f, #0d1016);
  color: #ffffff;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 2rem;
  padding: 3rem 1.5rem;
  justify-items: center;
  text-align: center;
}

.metric__value {
  font-size: 2.5rem;
  font-weight: 700;
  display: block;
}

.metric__label {
  color: rgba(255, 255, 255, 0.7);
}

.logos {
  background: #ffffff;
  padding: 2rem 1.5rem 3rem;
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  filter: grayscale(60%);
}

.logos img {
  max-height: 56px;
  object-fit: contain;
  padding: 0.5rem 1rem;
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid #e5e8ef;
}

.section-heading {
  text-align: center;
  margin-bottom: 2.5rem;
}

.section-subtitle {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
}

.services {
  background: #f3f5f9;
  padding: 4rem 1.5rem 5rem;
}

.services h2 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  margin: 0.5rem 0 0;
}

.services__grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.service-card {
  background: #ffffff;
  border-radius: var(--border-radius);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(12, 18, 28, 0.08);
}

.service-card__badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: var(--primary);
  color: #ffffff;
  font-size: 0.75rem;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  text-transform: uppercase;
  font-weight: 600;
}

.service-card__image {
  height: 160px;
  border-radius: 14px;
  background-size: cover;
  background-position: center;
}

.service-card__image--residential {
  background-image: url('https://images.unsplash.com/photo-1600607687920-4e2a09cf159d?auto=format&fit=crop&w=800&q=80');
}

.service-card__image--gutters {
  background-image: url('https://images.unsplash.com/photo-1541976590-713941681591?auto=format&fit=crop&w=800&q=80');
}

.service-card__image--repairs {
  background-image: url('https://images.unsplash.com/photo-1503387762-592deb58ef4e?auto=format&fit=crop&w=800&q=80');
}

.service-card__image--commercial {
  background-image: url('https://images.unsplash.com/photo-1503389152951-9f343605f61e?auto=format&fit=crop&w=800&q=80');
}

.testimonials {
  padding: 4rem 1.5rem 5rem;
  background: #ffffff;
}

.testimonials__meta {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 2rem;
  color: #5a5f66;
}

.rating-badge {
  background: rgba(217, 33, 41, 0.12);
  color: var(--primary);
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  font-weight: 600;
}

.testimonials__grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.testimonial-card {
  background: #ffffff;
  border-radius: var(--border-radius);
  padding: 1.75rem;
  box-shadow: 0 14px 32px rgba(15, 22, 34, 0.08);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.testimonial-card__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}

.testimonial-card h3 {
  margin: 0;
  font-size: 1.1rem;
}

.testimonial-card p {
  margin: 0;
  color: #4a4f57;
}

.verified {
  background: rgba(69, 214, 128, 0.15);
  color: #25a064;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  text-transform: uppercase;
}

.time {
  font-size: 0.75rem;
  color: #838993;
}

/* -------- Subpage Layouts -------- */

.hero--sub {
  min-height: 420px;
}

.hero--residential {
  background-image: url('https://images.unsplash.com/photo-1503387762-592deb58ef4e?auto=format&fit=crop&w=1600&q=80');
}

.hero--commercial {
  background-image: url('https://images.unsplash.com/photo-1497366216548-37526070297c?auto=format&fit=crop&w=1600&q=80');
}

.hero--services {
  background-image: url('https://images.unsplash.com/photo-1519710164239-da123dc03ef4?auto=format&fit=crop&w=1600&q=80');
}

.hero--gutters {
  background-image: url('https://images.unsplash.com/photo-1523419409543-0c1df022bdd7?auto=format&fit=crop&w=1600&q=80');
}

.hero--contact {
  background-image: url('https://images.unsplash.com/photo-1489515217757-5fd1be406fef?auto=format&fit=crop&w=1600&q=80');
}

.subpage-section {
  padding: 4rem 1.5rem;
}

.subpage-section--muted {
  background: #f3f5f9;
}

.subpage-section--dark {
  background: linear-gradient(135deg, #11141c, #0b0f15);
  color: #ffffff;
}

.subpage-section--dark a {
  color: inherit;
}

.content-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  gap: 2.5rem;
}

.content-grid.two-column {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  align-items: start;
}

.content-grid.three-column {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.check-list {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.65rem;
}

.check-list li {
  position: relative;
  padding-left: 1.75rem;
  color: #3c4149;
  font-weight: 500;
}

.check-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.4rem;
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 50%;
  background: linear-gradient(120deg, var(--primary), #ff6a73);
  box-shadow: 0 0 0 3px rgba(217, 33, 41, 0.18);
}

.highlight-card {
  background: #ffffff;
  border-radius: var(--border-radius);
  padding: 2rem;
  box-shadow: 0 18px 38px rgba(12, 18, 28, 0.12);
  display: grid;
  gap: 1rem;
}

.subpage-section--dark .highlight-card {
  background: rgba(13, 16, 22, 0.65);
  box-shadow: none;
}

.stacked-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.75rem;
  color: inherit;
}

.stacked-list strong {
  color: var(--primary);
}

.info-card {
  background: #ffffff;
  border-radius: var(--border-radius);
  padding: 2rem;
  box-shadow: 0 14px 32px rgba(12, 18, 28, 0.1);
}

.subpage-section--dark .info-card {
  background: rgba(255, 255, 255, 0.08);
  color: inherit;
  box-shadow: none;
}

.process-steps {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.process-card {
  background: #ffffff;
  border-radius: var(--border-radius);
  padding: 1.75rem;
  box-shadow: 0 16px 36px rgba(12, 18, 28, 0.1);
  display: grid;
  gap: 0.75rem;
}

.process-card__step {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(217, 33, 41, 0.12);
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.subpage-section--dark .process-card {
  background: rgba(255, 255, 255, 0.08);
  color: inherit;
  box-shadow: none;
}

.callout {
  max-width: 960px;
  margin: 0 auto;
  background: rgba(0, 0, 0, 0.55);
  border-radius: var(--border-radius);
  padding: 3rem 2.5rem;
  display: grid;
  gap: 1.25rem;
  text-align: center;
}

.callout__actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.contact-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.contact-card {
  background: #ffffff;
  border-radius: var(--border-radius);
  padding: 2rem;
  box-shadow: 0 18px 40px rgba(12, 18, 28, 0.12);
  display: grid;
  gap: 1rem;
}

.contact-card--info {
  background: linear-gradient(135deg, rgba(217, 33, 41, 0.08), #ffffff);
}

.contact-card--map {
  background: #0d1118;
  color: #ffffff;
}

.contact-card--map a {
  color: #ffffff;
}

.contact-card hr {
  border: none;
  border-top: 1px solid rgba(12, 18, 28, 0.08);
}

.contact-card--map hr {
  border-top-color: rgba(255, 255, 255, 0.18);
}

.map-placeholder {
  height: 200px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(217, 33, 41, 0.8), rgba(12, 18, 28, 0.85));
}

.site-footer {
  background: #0d1016;
  color: rgba(255, 255, 255, 0.82);
}

.cta-footer {
  text-align: center;
  padding: 4rem 1.5rem 3rem;
  background: linear-gradient(120deg, rgba(217, 33, 41, 0.92), rgba(12, 12, 14, 0.95));
  color: #ffffff;
}

.cta-footer h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.85rem, 3vw, 2.5rem);
}

.cta-footer p {
  margin: 0 0 1.75rem;
  color: rgba(255, 255, 255, 0.85);
}

.cta-footer__actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.footer-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-brand {
  flex: 1 1 220px;
}

.footer-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 2rem;
  flex: 2 1 360px;
}

.footer-column h3 {
  margin: 0 0 0.75rem;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #ffffff;
}

.footer-column ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.5rem;
}

.footer-bottom {
  text-align: center;
  padding: 1.5rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.55);
}

@media (max-width: 960px) {
  .site-header__inner {
    flex-wrap: wrap;
    justify-content: space-between;
  }

  .site-nav {
    order: 3;
    width: 100%;
    justify-content: center;
    margin-left: 0;
  }

  .header-actions {
    margin-left: 0;
  }

  .hero {
    min-height: 480px;
  }

  .hero--sub {
    min-height: 360px;
  }

  .cta-grid {
    margin-top: -3rem;
  }

  .metrics {
    gap: 1.5rem;
  }

  .callout {
    padding: 2.5rem 2rem;
  }
}

@media (max-width: 640px) {
  .top-banner__content {
    flex-direction: column;
    gap: 0.25rem;
  }

  .header-actions {
    width: 100%;
    flex-direction: column;
  }

  .site-nav {
    gap: 0.75rem;
  }

  .hero__features {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .cta-grid {
    padding-bottom: 3rem;
  }

  .cta-card {
    padding: 1.75rem;
  }

  .services__grid,
  .testimonials__grid {
    gap: 1rem;
  }

  .cta-footer__actions {
    flex-direction: column;
  }

  .content-grid,
  .process-steps,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .callout {
    padding: 2rem 1.75rem;
  }
}
