/* Elite Roofing — Design System */
:root {
  --er-black: #1a1a1a;
  --er-charcoal: #333333;
  --er-charcoal-light: #444444;
  --er-red: #bb3a3a;
  --er-red-dark: #a03028;
  --er-red-hover: #c04037;
  --er-white: #ffffff;
  --er-off-white: #f7f7f7;
  --er-grey-100: #cccccc;
  --er-grey-200: #999999;
  --er-text: #333333;
  --er-green: #22c55e;
  --er-container: 1200px;
  --er-radius-sm: 4px;
  --er-radius-md: 8px;
  --er-radius-lg: 12px;
  --er-radius-xl: 16px;
  --er-radius-2xl: 24px;
  --er-shadow-soft: 0 4px 24px rgba(0, 0, 0, 0.08);
  --er-shadow-card: 0 8px 32px rgba(0, 0, 0, 0.12);
  --er-font: "Montserrat", system-ui, sans-serif;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--er-font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--er-text);
  background: var(--er-white);
  -webkit-font-smoothing: antialiased;
  padding-bottom: env(safe-area-inset-bottom);
}

@media (max-width: 1023px) {
  body {
    padding-bottom: 56px;
  }
}

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

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

ul {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* Skip link */
.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 9999;
  background: var(--er-white);
  color: var(--er-black);
  padding: 12px 20px;
  border-radius: var(--er-radius-md);
  font-weight: 700;
  box-shadow: var(--er-shadow-card);
}

.skip-link:focus {
  top: 16px;
}

/* Container */
.container {
  width: 100%;
  max-width: var(--er-container);
  margin: 0 auto;
  padding: 0 24px;
}

/* Eyebrow */
.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--er-red);
  margin-bottom: 12px;
}

.section-dark .eyebrow {
  color: var(--er-red-hover);
}

/* Section headings */
.section-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--er-black);
  margin-bottom: 16px;
}

.section-dark .section-title {
  color: var(--er-white);
}

.section-subtitle {
  font-size: 18px;
  line-height: 1.6;
  color: var(--er-grey-200);
  max-width: 640px;
}

.section-light .section-subtitle {
  color: #666;
}

.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-header .section-subtitle {
  margin: 0 auto;
}

/* Sections */
.section {
  padding: 80px 0;
}

@media (min-width: 768px) {
  .section {
    padding: 112px 0;
  }
}

.section-light {
  background: var(--er-white);
}

.section-off-white {
  background: var(--er-off-white);
}

.section-dark {
  background: var(--er-black);
  color: var(--er-white);
}

.section-red {
  background: var(--er-red);
  color: var(--er-white);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  font-size: 15px;
  font-weight: 700;
  border-radius: var(--er-radius-md);
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

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

.btn-red:hover {
  background: var(--er-red-dark);
}

.btn-dark {
  background: var(--er-black);
  color: var(--er-white);
}

.btn-dark:hover {
  background: var(--er-charcoal);
}

.btn-outline {
  background: transparent;
  color: var(--er-white);
  border: 2px solid var(--er-white);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
}

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

.btn-white:hover {
  background: var(--er-off-white);
}

.btn-lg {
  padding: 16px 32px;
  font-size: 16px;
}

.btn-icon svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* Header */
.site-header {
  background: var(--er-black);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
  max-width: var(--er-container);
  margin: 0 auto;
}

.site-header__logo img {
  height: 48px;
  width: auto;
}

@media (min-width: 768px) {
  .site-header__logo img {
    height: 56px;
  }
}

/* Hero */
.hero-section {
  background: var(--er-white);
  padding: 32px 0 64px;
}

@media (min-width: 768px) {
  .hero-section {
    padding: 48px 0 80px;
  }
}

.hero-panel {
  background: var(--er-red);
  border-radius: var(--er-radius-2xl);
  padding: 32px 24px;
}

@media (min-width: 768px) {
  .hero-panel {
    padding: 48px 40px;
  }
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: start;
}

@media (min-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr 440px;
    gap: 48px;
  }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--er-black);
  color: var(--er-white);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 8px 16px;
  border-radius: 999px;
  margin-bottom: 24px;
}

.hero-badge__dot {
  width: 8px;
  height: 8px;
  background: var(--er-green);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.hero-title {
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--er-black);
  margin-bottom: 24px;
}

.hero-stars {
  display: flex;
  gap: 4px;
  margin-bottom: 12px;
}

.hero-stars svg {
  width: 18px;
  height: 18px;
  fill: var(--er-black);
}

.hero-quote {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--er-black);
  margin-bottom: 8px;
  font-style: italic;
}

.hero-attribution {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(26, 26, 26, 0.7);
  margin-bottom: 28px;
}

.hero-checklist {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 28px;
}

.hero-checklist li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  color: var(--er-black);
}

.hero-checklist svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--er-black);
}

.hero-call-note {
  font-size: 13px;
  color: rgba(26, 26, 26, 0.7);
  margin-top: 8px;
}

/* Quote form */
.quote-form-card {
  background: var(--er-white);
  border-radius: var(--er-radius-xl);
  padding: 28px 24px;
  box-shadow: var(--er-shadow-card);
}

@media (min-width: 768px) {
  .quote-form-card {
    padding: 32px 28px;
  }
}

.quote-form-card__title {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--er-black);
  margin-bottom: 8px;
}

.quote-form-card__subtitle {
  font-size: 14px;
  color: #666;
  margin-bottom: 24px;
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--er-black);
  margin-bottom: 6px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  font-family: inherit;
  font-size: 16px;
  border: 1px solid #ddd;
  border-radius: var(--er-radius-lg);
  background: var(--er-white);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--er-red);
  box-shadow: 0 0 0 3px rgba(187, 58, 58, 0.15);
}

.form-group input.error,
.form-group textarea.error {
  border-color: #dc2626;
}

.form-error {
  font-size: 13px;
  color: #dc2626;
  margin-top: 4px;
  display: none;
}

.form-error.visible {
  display: block;
}

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

.form-submit {
  width: 100%;
  margin-top: 8px;
}

.trust-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 16px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid #eee;
}

.trust-chip {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: #666;
}

.trust-chip svg {
  width: 14px;
  height: 14px;
  color: var(--er-red);
}

.form-success {
  display: none;
  text-align: center;
  padding: 32px 16px;
}

.form-success.visible {
  display: block;
}

.form-success svg {
  width: 48px;
  height: 48px;
  color: var(--er-green);
  margin: 0 auto 16px;
}

.form-success h3 {
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 8px;
  color: var(--er-black);
}

.form-success p {
  color: #666;
  margin-bottom: 16px;
}

/* Reviews */
.reviews-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 768px) {
  .reviews-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .reviews-grid--six {
    grid-template-columns: repeat(3, 1fr);
  }
}

.review-card {
  background: var(--er-charcoal);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--er-radius-xl);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
}

.review-card__header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.review-card__avatar {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--er-red);
  color: var(--er-white);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.02em;
  border-radius: 50%;
}

.review-card__author {
  font-size: 14px;
  font-weight: 700;
  color: var(--er-white);
  margin-bottom: 4px;
}

.review-card__stars {
  display: flex;
  gap: 2px;
}

.review-card__stars svg {
  width: 14px;
  height: 14px;
  fill: var(--er-red);
}

.review-card__text {
  font-size: 15px;
  line-height: 1.65;
  color: var(--er-grey-100);
  margin-bottom: 16px;
  flex: 1;
}

.review-card__footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.review-card__meta {
  font-size: 12px;
  font-weight: 600;
  color: var(--er-grey-200);
}

.review-card__badge {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--er-red-hover);
  background: rgba(187, 58, 58, 0.15);
  padding: 4px 10px;
  border-radius: 999px;
}

.review-card__badge--muted {
  color: var(--er-grey-100);
  background: rgba(255, 255, 255, 0.08);
}

.reviews-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 32px;
  font-size: 14px;
  font-weight: 700;
  color: var(--er-white);
  padding: 10px 20px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  transition: background 0.2s;
}

.reviews-badge:hover {
  background: rgba(255, 255, 255, 0.14);
}

.reviews-header {
  text-align: center;
  margin-bottom: 48px;
}

.reviews-header .reviews-badge-wrap {
  display: flex;
  justify-content: center;
  margin-top: 16px;
}

/* Stats bar */
.stats-section {
  padding: 48px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  align-items: center;
}

@media (min-width: 768px) {
  .stats-grid {
    grid-template-columns: repeat(4, 1fr) auto;
    gap: 32px;
  }
}

.stat-item {
  text-align: center;
}

.stat-item__value {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 900;
  color: var(--er-white);
  line-height: 1.1;
}

.stat-item__label {
  font-size: 13px;
  font-weight: 600;
  color: var(--er-grey-200);
  margin-top: 4px;
}

.stats-photo {
  display: none;
}

@media (min-width: 768px) {
  .stats-photo {
    display: block;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--er-red);
  }
}

/* Feature grid */
.feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 640px) {
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .feature-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.feature-card {
  padding: 28px 24px;
  border-radius: var(--er-radius-xl);
  background: var(--er-off-white);
  border: 1px solid rgba(0, 0, 0, 0.06);
  transition: box-shadow 0.2s, transform 0.2s;
}

.section-dark .feature-card {
  background: var(--er-charcoal);
  border-color: rgba(255, 255, 255, 0.08);
}

.feature-card:hover {
  box-shadow: var(--er-shadow-soft);
  transform: translateY(-2px);
}

.feature-card__icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(187, 58, 58, 0.1);
  border-radius: var(--er-radius-md);
  margin-bottom: 16px;
  color: var(--er-red);
}

.feature-card__icon svg {
  width: 22px;
  height: 22px;
}

.feature-card__title {
  font-size: 1.125rem;
  font-weight: 800;
  margin-bottom: 8px;
  color: var(--er-black);
}

.section-dark .feature-card__title {
  color: var(--er-white);
}

.feature-card__text {
  font-size: 15px;
  line-height: 1.6;
  color: #666;
}

.section-dark .feature-card__text {
  color: var(--er-grey-100);
}

/* Service cards */
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 640px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.service-card {
  display: block;
  background: var(--er-white);
  border-radius: var(--er-radius-xl);
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.06);
  transition: box-shadow 0.2s, transform 0.2s;
}

.service-card:hover {
  box-shadow: var(--er-shadow-card);
  transform: translateY(-4px);
}

.service-card__image {
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.service-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.service-card:hover .service-card__image img {
  transform: scale(1.05);
}

.service-card__body {
  padding: 24px;
}

.service-card__title {
  font-size: 1.125rem;
  font-weight: 800;
  margin-bottom: 8px;
  color: var(--er-black);
}

.service-card__text {
  font-size: 14px;
  line-height: 1.6;
  color: #666;
  margin-bottom: 12px;
}

.service-card__link {
  font-size: 14px;
  font-weight: 700;
  color: var(--er-red);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.service-card__link svg {
  width: 16px;
  height: 16px;
  transition: transform 0.2s;
}

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

/* Process steps */
.process-steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  counter-reset: step;
}

@media (min-width: 768px) {
  .process-steps {
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
  }
}

.process-step {
  text-align: center;
  position: relative;
}

.process-step__number {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--er-red);
  color: var(--er-white);
  font-size: 1.5rem;
  font-weight: 900;
  border-radius: 50%;
  margin: 0 auto 20px;
}

.process-step__title {
  font-size: 1.125rem;
  font-weight: 800;
  margin-bottom: 8px;
  color: var(--er-black);
}

.process-step__text {
  font-size: 15px;
  color: #666;
}

/* Timeline */
.timeline {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  position: relative;
}

@media (min-width: 768px) {
  .timeline {
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
  }
}

.timeline-item {
  background: var(--er-white);
  border-radius: var(--er-radius-xl);
  padding: 28px 24px;
  border-left: 4px solid var(--er-red);
}

.timeline-item--warning {
  border-left-color: #dc2626;
}

.timeline-item--danger {
  border-left-color: #991b1b;
  background: #fef2f2;
}

.timeline-item__stage {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--er-red);
  margin-bottom: 8px;
}

.timeline-item--warning .timeline-item__stage {
  color: #dc2626;
}

.timeline-item--danger .timeline-item__stage {
  color: #991b1b;
}

.timeline-item__title {
  font-size: 1.125rem;
  font-weight: 800;
  margin-bottom: 8px;
  color: var(--er-black);
}

.timeline-item__text {
  font-size: 15px;
  line-height: 1.6;
  color: #666;
}

.timeline-item__cost {
  display: inline-block;
  margin-top: 12px;
  font-size: 14px;
  font-weight: 700;
  color: var(--er-red);
  background: rgba(187, 58, 58, 0.08);
  padding: 6px 12px;
  border-radius: var(--er-radius-sm);
}

/* Area pills */
.areas-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.area-pill {
  display: inline-block;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 600;
  background: var(--er-white);
  color: var(--er-black);
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 999px;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.area-pill:hover {
  background: var(--er-red);
  color: var(--er-white);
  border-color: var(--er-red);
}

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

.faq-item {
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.faq-item:first-child {
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0;
  font-size: 16px;
  font-weight: 700;
  text-align: left;
  color: var(--er-black);
  transition: color 0.2s;
}

.faq-question:hover {
  color: var(--er-red);
}

.faq-question svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  transition: transform 0.3s;
  color: var(--er-red);
}

.faq-item.open .faq-question svg {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-answer__inner {
  padding: 0 0 20px;
  font-size: 15px;
  line-height: 1.7;
  color: #666;
}

/* Final CTA */
.final-cta {
  text-align: center;
}

.final-cta .section-title {
  color: var(--er-white);
}

.final-cta .section-subtitle {
  color: rgba(255, 255, 255, 0.85);
  margin: 0 auto 32px;
}

.final-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
}

/* Footer */
.site-footer {
  background: var(--er-charcoal);
  color: var(--er-grey-100);
  padding: 64px 0 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  margin-bottom: 48px;
}

@media (min-width: 640px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1.5fr repeat(3, 1fr);
  }
}

.footer-brand__link {
  display: inline-block;
  margin-bottom: 16px;
}

.footer-brand__logo {
  display: block;
  height: 56px;
  width: auto;
  max-width: 120px;
  object-fit: contain;
}

.footer-brand__text {
  font-size: 14px;
  line-height: 1.6;
  color: var(--er-grey-200);
}

.footer-col__title {
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--er-white);
  margin-bottom: 16px;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col a {
  font-size: 14px;
  color: var(--er-grey-200);
  transition: color 0.2s;
}

.footer-col a:hover {
  color: var(--er-red);
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 13px;
  color: var(--er-grey-200);
}

@media (min-width: 640px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
  }
}

.footer-legal {
  display: flex;
  gap: 16px;
}

.footer-legal button {
  font-size: 13px;
  color: var(--er-grey-200);
  transition: color 0.2s;
}

.footer-legal button:hover {
  color: var(--er-red);
}

/* Sticky mobile CTA */
.sticky-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 90;
  display: flex;
  background: var(--er-black);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  transform: translateY(100%);
  transition: transform 0.3s ease;
  padding-bottom: env(safe-area-inset-bottom);
}

.sticky-cta.visible {
  transform: translateY(0);
}

@media (min-width: 1024px) {
  .sticky-cta {
    display: none;
  }
}

.sticky-cta__btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px;
  font-size: 14px;
  font-weight: 700;
  color: var(--er-white);
  transition: background 0.2s;
}

.sticky-cta__btn--call {
  background: var(--er-charcoal);
}

.sticky-cta__btn--call:hover {
  background: var(--er-charcoal-light);
}

.sticky-cta__btn--quote {
  background: var(--er-red);
}

.sticky-cta__btn--quote:hover {
  background: var(--er-red-dark);
}

.sticky-cta__btn svg {
  width: 18px;
  height: 18px;
}

/* Cookie popup */
.cookie-popup {
  position: fixed;
  bottom: 16px;
  right: 16px;
  left: 16px;
  max-width: 420px;
  margin-left: auto;
  z-index: 200;
  background: linear-gradient(135deg, var(--er-charcoal) 0%, var(--er-black) 100%);
  border: 1px solid rgba(187, 58, 58, 0.4);
  border-radius: var(--er-radius-xl);
  padding: 24px;
  box-shadow: var(--er-shadow-card);
  transform: translateY(calc(100% + 32px));
  transition: transform 0.4s ease;
}

.cookie-popup.visible {
  transform: translateY(0);
}

@media (min-width: 520px) {
  .cookie-popup {
    left: auto;
  }
}

.cookie-popup p {
  font-size: 14px;
  line-height: 1.5;
  color: var(--er-grey-100);
  margin-bottom: 16px;
}

.cookie-popup a {
  color: var(--er-red-hover);
  text-decoration: underline;
}

.cookie-popup a:hover {
  color: var(--er-white);
}

.cookie-popup__actions {
  display: flex;
  gap: 12px;
}

.cookie-popup__actions .btn {
  flex: 1;
  padding: 10px 16px;
  font-size: 14px;
}

/* Legal modals */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}

.modal-backdrop.open {
  opacity: 1;
  visibility: visible;
}

.modal-panel {
  background: var(--er-charcoal);
  border: 1px solid rgba(187, 58, 58, 0.3);
  border-radius: var(--er-radius-xl);
  max-width: 640px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
  padding: 32px;
  color: var(--er-grey-100);
  transform: translateY(20px);
  transition: transform 0.3s;
}

.modal-backdrop.open .modal-panel {
  transform: translateY(0);
}

.modal-panel h2 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--er-white);
  margin-bottom: 16px;
}

.modal-panel h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--er-white);
  margin: 20px 0 8px;
}

.modal-panel p {
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 12px;
}

.modal-close {
  margin-top: 24px;
  width: 100%;
}

/* Scroll animations */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .hero-badge__dot {
    animation: none;
  }
}

/* Mid-section CTA */
.section-cta {
  text-align: center;
  margin-top: 48px;
}

/* Long-form content (service/location pages) */
.content-prose {
  max-width: 760px;
  margin: 0 auto 48px;
}

.content-prose p {
  font-size: 17px;
  line-height: 1.75;
  color: #555;
  margin-bottom: 20px;
}

.content-prose--legal .section-title {
  margin-bottom: 24px;
}

.content-prose--legal a {
  color: var(--er-red);
  font-weight: 600;
}

.content-prose--legal a:hover {
  text-decoration: underline;
}

.feature-grid--six {
  margin-top: 16px;
}

@media (min-width: 1024px) {
  .feature-grid--six {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* 4-step process on service pages */
@media (min-width: 768px) {
  .process-steps--four {
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
  }
}

/* Area pills as links */
a.area-pill {
  text-decoration: none;
}

.area-pill--active,
a.area-pill.area-pill--active {
  background: var(--er-red);
  color: var(--er-white);
  border-color: var(--er-red);
}

/* Contact page panel */
.contact-panel {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
  background: var(--er-off-white);
  border-radius: var(--er-radius-xl);
  padding: 48px 32px;
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.contact-panel__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  margin-bottom: 32px;
}

.contact-panel__list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
  max-width: 360px;
  margin: 0 auto;
}

.contact-panel__list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  color: var(--er-text);
}

.contact-panel__list svg {
  width: 18px;
  height: 18px;
  color: var(--er-red);
  flex-shrink: 0;
}

.footer-legal a {
  font-size: 13px;
  color: var(--er-grey-200);
  transition: color 0.2s;
}

.footer-legal a:hover {
  color: var(--er-red);
}
