/* ============================================================
   Niagara Insulation Pros — styles.css
   Pure CSS, no external dependencies, no JavaScript required
   System fonts only, mobile-first, flexbox/grid layout
   ============================================================ */

/* ── RESET & BASE ────────────────────────────────────────── */

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

:root {
  --copper:    #c85a00;
  --copper-dk: #a04800;
  --copper-lt: #e8742a;
  --white:     #ffffff;
  --near-black:#1a1a1a;
  --alt-bg:    #f7f3ef;
  --mid-grey:  #666666;
  --light-grey:#e8e0d8;
  --border:    #ddd4c8;
  --font:      -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.10);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.12);
  --radius:    8px;
  --radius-lg: 14px;
  --transition: 0.18s ease;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--near-black);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a   { color: var(--copper); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── LAYOUT UTILITY ─────────────────────────────────────── */

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ── TYPOGRAPHY ─────────────────────────────────────────── */

h1, h2, h3 {
  line-height: 1.25;
  font-weight: 700;
  color: var(--near-black);
}

h1 { font-size: clamp(1.75rem, 4vw, 2.75rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); }
h3 { font-size: 1.15rem; }

.section-title {
  text-align: center;
  margin-bottom: 0.6rem;
}

.section-sub {
  text-align: center;
  color: var(--mid-grey);
  max-width: 640px;
  margin: 0 auto 2.5rem;
  font-size: 1.05rem;
}

/* ── BUTTONS ────────────────────────────────────────────── */

.btn {
  display: inline-block;
  padding: 0.7rem 1.5rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.95rem;
  font-family: var(--font);
  cursor: pointer;
  transition: background var(--transition), color var(--transition), transform var(--transition), box-shadow var(--transition);
  text-decoration: none;
  border: 2px solid transparent;
  line-height: 1.3;
}

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

.btn-primary:hover {
  background: var(--copper-dk);
  border-color: var(--copper-dk);
  color: var(--white);
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(200,90,0,0.30);
}

.btn-outline {
  background: transparent;
  color: var(--copper);
  border-color: var(--copper);
}

.btn-outline:hover {
  background: var(--copper);
  color: var(--white);
  text-decoration: none;
  transform: translateY(-1px);
}

.btn-large {
  padding: 0.85rem 2rem;
  font-size: 1.05rem;
  border-radius: 8px;
}

.btn-submit {
  width: 100%;
  text-align: center;
  padding: 1rem 2rem;
  font-size: 1.1rem;
  letter-spacing: 0.02em;
}

/* ── STICKY HEADER ──────────────────────────────────────── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 2px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.15rem;
  color: var(--near-black);
  text-decoration: none;
}

.logo-mark {
  color: var(--copper);
  font-size: 1.4rem;
  line-height: 1;
}

.logo-text strong {
  color: var(--copper);
}

/* ── HERO ───────────────────────────────────────────────── */

#hero {
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2010 60%, #3d2a0e 100%);
  color: var(--white);
  padding: 5rem 0 4rem;
}

.hero-inner {
  display: flex;
  gap: 3rem;
  align-items: flex-start;
  flex-wrap: wrap;
}

.hero-content {
  flex: 1 1 340px;
}

.hero-content h1 {
  color: var(--white);
  margin-bottom: 1rem;
}

.hero-sub {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.82);
  margin-bottom: 1.8rem;
  max-width: 520px;
}

.trust-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 2rem;
}

.badge {
  display: inline-block;
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.25);
  color: var(--white);
  padding: 0.35rem 0.8rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
}

.hero-callout {
  flex: 0 1 280px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.callout-box {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(200,90,0,0.40);
  border-left: 4px solid var(--copper);
  border-radius: var(--radius);
  padding: 1rem 1.2rem;
}

.callout-number {
  font-size: 2rem;
  font-weight: 800;
  color: var(--copper-lt);
  line-height: 1;
  margin-bottom: 0.25rem;
}

.callout-label {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.75);
  line-height: 1.4;
}

/* ── REBATE ─────────────────────────────────────────────── */

#rebate {
  background: var(--copper);
  color: var(--white);
  padding: 3.5rem 0;
}

.rebate-inner {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  flex-wrap: wrap;
}

.rebate-badge {
  font-size: 3.5rem;
  flex-shrink: 0;
  line-height: 1;
}

.rebate-content {
  flex: 1 1 300px;
}

.rebate-content h2 {
  color: var(--white);
  margin-bottom: 0.8rem;
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
}

.rebate-content p {
  color: rgba(255,255,255,0.90);
  margin-bottom: 1.2rem;
  font-size: 1.05rem;
}

.rebate-list {
  list-style: none;
  margin-bottom: 1.5rem;
}

.rebate-list li {
  color: rgba(255,255,255,0.92);
  padding: 0.3rem 0;
  font-size: 0.98rem;
  font-weight: 500;
}

#rebate .btn-primary {
  background: var(--white);
  color: var(--copper);
  border-color: var(--white);
}

#rebate .btn-primary:hover {
  background: var(--alt-bg);
  border-color: var(--alt-bg);
  color: var(--copper-dk);
}

/* ── SERVICES ───────────────────────────────────────────── */

#services {
  background: var(--white);
  padding: 5rem 0;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 1.5rem;
}

.service-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), transform var(--transition);
}

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

.service-icon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
  line-height: 1;
}

.service-card h3 {
  color: var(--near-black);
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.service-card p {
  color: var(--mid-grey);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ── HOW IT WORKS ───────────────────────────────────────── */

#how-it-works {
  background: var(--alt-bg);
  padding: 5rem 0;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  position: relative;
}

.step {
  text-align: center;
  padding: 1.5rem 1rem;
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--copper);
  color: var(--white);
  font-size: 1.4rem;
  font-weight: 800;
  margin: 0 auto 1rem;
}

.step h3 {
  margin-bottom: 0.6rem;
  font-size: 1.05rem;
}

.step p {
  color: var(--mid-grey);
  font-size: 0.93rem;
  line-height: 1.6;
}

/* ── REVIEWS ────────────────────────────────────────────── */

#reviews {
  background: var(--white);
  padding: 5rem 0;
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.review-card {
  background: var(--alt-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.review-stars {
  color: #f5a623;
  font-size: 1.2rem;
  letter-spacing: 2px;
}

.review-card blockquote {
  font-style: italic;
  color: #333;
  font-size: 0.97rem;
  line-height: 1.7;
  flex: 1;
  border: none;
  padding: 0;
  margin: 0;
}

.review-card blockquote::before {
  content: '\201C';
  font-size: 2rem;
  color: var(--copper);
  line-height: 0;
  vertical-align: -0.45em;
  margin-right: 4px;
}

.review-attribution {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.review-attribution strong {
  font-size: 0.95rem;
  color: var(--near-black);
}

.review-location {
  font-size: 0.83rem;
  color: var(--copper);
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

/* ── PRICING ────────────────────────────────────────────── */

#pricing {
  background: var(--alt-bg);
  padding: 5rem 0;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 1.5rem;
  margin-bottom: 1.5rem;
  align-items: start;
}

.pricing-card {
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  position: relative;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition);
}

.pricing-card:hover {
  box-shadow: var(--shadow-md);
}

.pricing-card--featured {
  border-color: var(--copper);
  box-shadow: 0 0 0 1px var(--copper), var(--shadow-md);
}

.pricing-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--copper);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.9rem;
  border-radius: 20px;
  white-space: nowrap;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.pricing-service {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--near-black);
  margin-top: 0.5rem;
}

.pricing-from {
  font-size: 0.82rem;
  color: var(--mid-grey);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.pricing-price {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--copper);
  line-height: 1;
}

.pricing-detail {
  font-size: 0.93rem;
  color: var(--mid-grey);
  line-height: 1.55;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}

.pricing-includes {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 0.5rem;
  flex: 1;
}

.pricing-includes li {
  font-size: 0.9rem;
  color: #444;
}

.pricing-note {
  text-align: center;
  font-size: 0.85rem;
  color: var(--mid-grey);
  font-style: italic;
  margin-top: 0.5rem;
}

/* ── SERVICE AREA ───────────────────────────────────────── */

#service-area {
  background: var(--white);
  padding: 4.5rem 0;
}

.area-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.area-tag {
  background: var(--alt-bg);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 0.45rem 1.1rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--near-black);
  transition: background var(--transition), border-color var(--transition), color var(--transition);
}

.area-tag:hover {
  background: var(--copper);
  border-color: var(--copper);
  color: var(--white);
  cursor: default;
}

.area-note {
  text-align: center;
  color: var(--mid-grey);
  font-size: 0.92rem;
  font-style: italic;
}

/* ── QUOTE FORM ─────────────────────────────────────────── */

#quote-form {
  background: var(--alt-bg);
  padding: 5rem 0;
}

.form-wrapper {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 3.5rem;
  align-items: start;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 3rem;
}

.form-intro h2 {
  margin-bottom: 1rem;
  font-size: clamp(1.3rem, 2.5vw, 1.7rem);
}

.form-intro p {
  color: var(--mid-grey);
  margin-bottom: 1.5rem;
  font-size: 1rem;
  line-height: 1.6;
}

.form-promises {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.form-promises li {
  font-size: 0.95rem;
  color: #333;
  font-weight: 500;
}

.lead-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.form-group--full {
  grid-column: 1 / -1;
}

.form-group label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--near-black);
  letter-spacing: 0.01em;
}

.required {
  color: var(--copper);
}

.form-group input,
.form-group select,
.form-group textarea {
  font-family: var(--font);
  font-size: 0.97rem;
  color: var(--near-black);
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 0.65rem 0.9rem;
  width: 100%;
  transition: border-color var(--transition), box-shadow var(--transition);
  -webkit-appearance: none;
  appearance: none;
}

.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23666' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
  padding-right: 2.2rem;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--copper);
  box-shadow: 0 0 0 3px rgba(200,90,0,0.12);
}

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

/* ── FOOTER ─────────────────────────────────────────────── */

.site-footer {
  background: var(--near-black);
  color: rgba(255,255,255,0.75);
  padding: 2.5rem 0;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  text-align: center;
}

.site-footer .logo {
  color: var(--white);
}

.footer-contact {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-contact a {
  color: var(--copper-lt);
  font-weight: 600;
  font-size: 0.97rem;
}

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

.footer-areas {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.55);
  max-width: 680px;
  line-height: 1.6;
}

.footer-areas strong {
  color: rgba(255,255,255,0.75);
}

.footer-copy {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.40);
  margin-top: 0.5rem;
}

/* ── SECTION SPACING & ALTERNATING BACKGROUNDS ──────────── */

/* All sections get consistent vertical padding via their own rules above.
   This ensures the hero → rebate → services → how-it-works → reviews
   → pricing → service-area → quote-form alternation works correctly. */

/* ── RESPONSIVE ─────────────────────────────────────────── */

/* Tablet */
@media (max-width: 900px) {
  .hero-inner {
    flex-direction: column;
    gap: 2.5rem;
  }

  .hero-callout {
    flex-direction: row;
    flex: 1 1 100%;
    flex-wrap: wrap;
  }

  .callout-box {
    flex: 1 1 180px;
  }

  .form-wrapper {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 2rem;
  }

  .lead-form {
    grid-template-columns: 1fr;
  }
}

/* Mobile */
@media (max-width: 600px) {
  .site-header .btn {
    font-size: 0.85rem;
    padding: 0.55rem 1rem;
  }

  .logo-text {
    font-size: 1rem;
  }

  #hero {
    padding: 3rem 0 2.5rem;
  }

  .hero-callout {
    flex-direction: column;
  }

  .callout-box {
    flex: 1 1 100%;
  }

  #rebate {
    padding: 2.5rem 0;
  }

  .rebate-inner {
    flex-direction: column;
    gap: 1.2rem;
  }

  .rebate-badge {
    font-size: 2.5rem;
  }

  #services,
  #how-it-works,
  #reviews,
  #pricing,
  #service-area,
  #quote-form {
    padding: 3.5rem 0;
  }

  .services-grid,
  .steps-grid,
  .reviews-grid,
  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .form-wrapper {
    padding: 1.5rem;
    border-radius: var(--radius);
  }

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

  .area-tags {
    gap: 0.5rem;
  }

  .area-tag {
    font-size: 0.88rem;
    padding: 0.4rem 0.9rem;
  }

  .pricing-price {
    font-size: 2rem;
  }

  h1 { font-size: 1.65rem; }
  h2 { font-size: 1.35rem; }
}

/* Very small screens */
@media (max-width: 380px) {
  .container {
    padding: 0 14px;
  }

  .btn-large {
    padding: 0.75rem 1.25rem;
    font-size: 0.97rem;
  }

  .hero-content h1 {
    font-size: 1.45rem;
  }
}
