/* =====================================
   Niagara Window Wells — Styles
   ===================================== */

:root {
  --primary: #1e6b3c;
  --primary-dark: #155430;
  --primary-light: #e8f5ee;
  --accent: #2a9d5c;
  --dark: #1a2218;
  --text: #252b22;
  --muted: #5a6655;
  --border: #d9e4d4;
  --bg-light: #f5f9f5;
  --bg-dark: #1a2218;
  --white: #ffffff;
  --radius: 8px;
  --shadow: 0 2px 16px rgba(30,107,60,0.08);
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: var(--radius);
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: none;
  font-size: 16px;
  transition: background 0.2s, transform 0.1s;
}

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

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}

.btn-header {
  background: var(--primary);
  color: var(--white);
  font-size: 14px;
  padding: 10px 20px;
}

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

.btn-submit {
  width: 100%;
  font-size: 18px;
  padding: 16px;
  margin-top: 8px;
}

/* Header */
.site-header {
  background: var(--white);
  border-bottom: 2px solid var(--border);
  padding: 16px 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 8px rgba(0,0,0,0.05);
}

.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 18px;
  color: var(--dark);
}

.logo-mark {
  color: var(--primary);
  font-size: 20px;
}

/* Hero */
.hero {
  background: linear-gradient(135deg, #1a2218 0%, #1e3d28 100%);
  color: var(--white);
  padding: 88px 0 80px;
}

.hero-eyebrow {
  color: var(--accent);
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 14px;
}

.hero h1 {
  font-size: clamp(28px, 4.5vw, 48px);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 20px;
}

.hero-sub {
  font-size: 18px;
  color: rgba(255,255,255,0.78);
  max-width: 580px;
  margin-bottom: 30px;
  line-height: 1.7;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 36px;
}

.badge {
  background: rgba(42,157,92,0.2);
  border: 1px solid rgba(42,157,92,0.4);
  color: var(--white);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
}

/* Problem / Solution */
.problem-solution {
  background: var(--white);
  padding: 72px 0;
}

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

.problem h2,
.solution h2 {
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 800;
  margin-bottom: 24px;
  color: var(--dark);
}

.problem-list {
  list-style: none;
  padding: 0;
}

.problem-list li {
  display: flex;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}

.problem-list li:last-child {
  border-bottom: none;
}

.prob-icon {
  font-size: 22px;
  flex-shrink: 0;
  margin-top: 2px;
}

.problem-list strong {
  display: block;
  font-size: 16px;
  color: var(--dark);
  margin-bottom: 4px;
}

.problem-list p {
  font-size: 14px;
  color: var(--muted);
  margin: 0;
}

.solution p {
  color: var(--muted);
  font-size: 16px;
  margin-bottom: 32px;
  line-height: 1.7;
}

.solution-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 32px;
}

.stat {
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  text-align: center;
}

.stat-num {
  font-size: 24px;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 4px;
}

.stat-label {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.4;
}

/* Sections */
section {
  padding: 72px 0;
}

section h2 {
  font-size: clamp(26px, 4vw, 36px);
  font-weight: 800;
  margin-bottom: 12px;
  color: var(--dark);
}

.section-sub {
  color: var(--muted);
  font-size: 17px;
  margin-bottom: 40px;
}

/* Services */
.services {
  background: var(--bg-light);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 40px;
}

.service-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.service-icon {
  font-size: 30px;
  margin-bottom: 14px;
}

.service-card h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--dark);
}

.service-card p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

/* Cover Types */
.cover-types {
  background: var(--white);
}

.type-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 40px;
}

.type-card {
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  position: relative;
}

.type-card.featured {
  border-color: var(--primary);
}

.type-header {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.type-icon {
  font-size: 24px;
}

.type-header h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--dark);
}

.type-badge {
  background: var(--primary);
  color: var(--white);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 3px 10px;
  border-radius: 10px;
}

.type-card ul {
  list-style: none;
  padding: 0;
  margin-bottom: 20px;
}

.type-card ul li {
  padding: 5px 0;
  font-size: 14px;
  color: var(--text);
}

.type-card ul li.minor {
  color: var(--muted);
}

.type-price {
  font-size: 15px;
  font-weight: 700;
  color: var(--primary);
  border-top: 1px solid var(--border);
  padding-top: 16px;
}

/* How It Works */
.how-it-works {
  background: var(--bg-light);
}

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  margin-top: 40px;
}

.step {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px 24px;
  border: 1px solid var(--border);
}

.step-number {
  width: 44px;
  height: 44px;
  background: var(--primary);
  color: var(--white);
  border-radius: 50%;
  font-size: 18px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.step h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--dark);
}

.step p {
  color: var(--muted);
  font-size: 14px;
}

/* Reviews */
.reviews {
  background: var(--white);
}

.review-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 40px;
}

.review-card {
  background: var(--bg-light);
  border-radius: var(--radius);
  padding: 28px 24px;
  border: 1px solid var(--border);
}

.stars {
  color: #f5a623;
  font-size: 18px;
  margin-bottom: 12px;
  letter-spacing: 2px;
}

.review-card p {
  color: var(--text);
  font-style: italic;
  margin-bottom: 14px;
  font-size: 15px;
  line-height: 1.7;
}

.reviewer {
  font-size: 13px;
  color: var(--muted);
  font-weight: 600;
}

/* Service Area */
.service-area {
  background: var(--bg-light);
}

.service-area p {
  color: var(--muted);
  max-width: 680px;
  margin-bottom: 28px;
  font-size: 16px;
  line-height: 1.7;
}

.area-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.area-tags span {
  background: var(--white);
  border: 1px solid var(--border);
  padding: 7px 16px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
}

/* Quote Form */
.quote-form {
  background: var(--primary);
  color: var(--white);
}

.quote-form h2 {
  color: var(--white);
}

.form-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.form-copy p {
  color: rgba(255,255,255,0.8);
  font-size: 17px;
  margin-bottom: 28px;
}

.form-assurances {
  list-style: none;
  padding: 0;
  margin-bottom: 24px;
}

.form-assurances li {
  color: rgba(255,255,255,0.85);
  padding: 6px 0;
  font-size: 15px;
}

.urgency-note {
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: var(--radius);
  padding: 14px 18px;
  font-size: 14px;
  color: rgba(255,255,255,0.9);
  line-height: 1.5;
}

.lead-form {
  background: var(--white);
  border-radius: 12px;
  padding: 36px 32px;
  box-shadow: 0 4px 32px rgba(0,0,0,0.15);
}

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

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

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  font-size: 15px;
  color: var(--text);
  transition: border-color 0.2s;
  font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
}

.form-privacy {
  text-align: center;
  font-size: 12px;
  color: var(--muted);
  margin-top: 12px;
}

/* Footer */
.site-footer {
  background: var(--bg-dark);
  color: #7a8a78;
  padding: 48px 0 32px;
}

.footer-content {
  margin-bottom: 24px;
}

.footer-content .logo-text {
  color: var(--white);
  font-weight: 700;
  font-size: 18px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.footer-content p {
  font-size: 14px;
  color: #6a7a68;
  margin-bottom: 6px;
  max-width: 440px;
}

.footer-hours {
  font-size: 14px;
  color: #5a6a58;
}

.footer-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.footer-links a {
  color: #7a8a78;
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s;
}

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

.footer-legal {
  font-size: 13px;
  color: #3a4a38;
  border-top: 1px solid #2a3a28;
  padding-top: 20px;
}

/* Responsive */
@media (max-width: 900px) {
  .ps-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

@media (max-width: 768px) {
  .form-wrapper {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .solution-stats {
    grid-template-columns: 1fr;
  }

  .site-header .btn-header {
    display: none;
  }

  section {
    padding: 48px 0;
  }

  .problem-solution {
    padding: 48px 0;
  }
}

@media (max-width: 480px) {
  .hero-badges {
    flex-direction: column;
    align-items: flex-start;
  }

  .steps {
    grid-template-columns: 1fr;
  }

  .type-grid {
    grid-template-columns: 1fr;
  }
}
