/* Goff Heating Offers — Static Site Styles */

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

:root {
  --goff-red: #C8373E;
  --goff-red-dark: #a62d33;
  --goff-dark: #2d2d2d;
}

body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; background: #fff; color: #333; }

/* ── HERO ──────────────────────────────── */
.hero { position: relative; height: 100vh; overflow: hidden; }
.hero-bg { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; display: block; }
.hero-overlay { position: absolute; inset: 0; background: rgba(0,0,0,.5); }

.google-badge {
  position: absolute; top: 1rem; right: 1rem; z-index: 10;
  display: block; border-radius: 50%; overflow: hidden;
  width: 5rem; height: 5rem; transition: transform .2s;
  box-shadow: 0 4px 16px rgba(0,0,0,.3);
}
.google-badge:hover { transform: scale(1.05); }
.google-badge img { width: 100%; height: 100%; object-fit: cover; }

@media(min-width:768px) {
  .google-badge { width: 6rem; height: 6rem; top: 1.25rem; right: 1.25rem; }
}

/* Hero Form */
.hero-form-wrap {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  width: 90%; max-width: 48rem;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  align-items: center;
}
@media(min-width:768px) { .hero-grid { grid-template-columns: 1.5fr 1fr; gap: 2rem; } }

.hero-offer { text-align: center; padding-top: 4rem; }
@media(min-width:768px) { .hero-offer { text-align: left; padding-top: 0; } }

.hero-logo { width: 12rem; margin-bottom: 1rem; filter: drop-shadow(0 2px 8px rgba(0,0,0,.4)); }
@media(min-width:768px) { .hero-logo { width: 16rem; } }

.hero-headline { font-size: 1.875rem; font-weight: 700; color: #fff; line-height: 1.2; filter: drop-shadow(0 1px 3px rgba(0,0,0,.5)); }
@media(min-width:768px) { .hero-headline { font-size: 3rem; } }

.hero-dollar { font-size: 3.75rem; white-space: nowrap; }
@media(min-width:768px) { .hero-dollar { font-size: 5rem; } }

.hero-subline { font-size: 1.5rem; }
@media(min-width:768px) { .hero-subline { font-size: 2.25rem; } }

/* Lead Form Box */
.lead-form-box {
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(4px);
  padding: 1.5rem;
  border-radius: .75rem;
  box-shadow: 0 20px 60px rgba(0,0,0,.3);
}
@media(min-width:768px) { .lead-form-box { padding: 2rem; } }

.lead-form-box input {
  width: 100%; padding: .65rem .75rem; margin-bottom: .5rem;
  border: 1px solid #d1d5db; border-radius: .375rem;
  font-size: .9375rem; background: #fff; outline: none;
  transition: border-color .2s;
}
.lead-form-box input:focus { border-color: var(--goff-red); }

.btn-claim {
  width: 100%; padding: .875rem 1.5rem;
  background: var(--goff-red); color: #fff;
  font-size: 1.0625rem; font-weight: 600;
  border: none; border-radius: .375rem; cursor: pointer;
  transition: background .2s; margin-top: .25rem;
}
.btn-claim:hover { background: var(--goff-red-dark); }
.btn-claim:disabled { opacity: .7; cursor: not-allowed; }
@media(min-width:768px) { .btn-claim { font-size: 1.125rem; padding: 1rem 1.5rem; } }

.g-recaptcha { margin-bottom: .5rem; }

/* Success State */
.form-success { text-align: center; padding: 2rem; }
.success-icon { width: 4rem; height: 4rem; background: #d1fae5; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 1rem; }
.success-icon svg { width: 2rem; height: 2rem; color: #059669; stroke: #059669; }
.form-success h3 { font-size: 1.5rem; font-weight: 700; margin-bottom: .5rem; }
.form-success p { color: #6b7280; }
.btn-close { margin-top: 1rem; padding: .5rem 1.5rem; background: var(--goff-red); color: #fff; border: none; border-radius: .375rem; cursor: pointer; font-size: .9375rem; }
.btn-close:hover { background: var(--goff-red-dark); }
.spin { display: inline-block; width: 1.25rem; height: 1.25rem; border: 2px solid rgba(255,255,255,.5); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; vertical-align: middle; margin-right: .5rem; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ── TAGLINE BAR ──────────────────────── */
.tagline-bar { background: #fff; padding: 2rem 1rem; text-align: center; }
.tagline { font-size: 1.875rem; font-weight: 700; color: var(--goff-red); font-style: italic; }
@media(min-width:768px) { .tagline { font-size: 2.5rem; } }
@media(min-width:1024px) { .tagline { font-size: 3rem; } }

/* ── SERVICES BAR ─────────────────────── */
.services-bar { background: #fff; border-top: 1px solid #f3f4f6; border-bottom: 1px solid #f3f4f6; padding: 1.5rem 1rem; }
.services-inner { max-width: 56rem; margin: 0 auto; }
.services-flex { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 1.5rem; }
@media(min-width:768px) { .services-flex { gap: 3rem; } }
.service-item { display: flex; align-items: center; gap: .5rem; font-weight: 500; color: #1f2937; }
.service-item .icon { width: 1.5rem; height: 1.5rem; stroke: var(--goff-red); }
.svc-divider { display: none; width: 1px; height: 1.5rem; background: #d1d5db; }
@media(min-width:768px) { .svc-divider { display: block; } }

/* ── COUPONS ──────────────────────────── */
.coupons-section { background: #f9fafb; padding: 3rem 1rem; }
.section-inner { max-width: 72rem; margin: 0 auto; }
.section-title { font-size: 1.875rem; font-weight: 700; text-align: center; color: #111827; margin-bottom: 1rem; }
@media(min-width:768px) { .section-title { font-size: 2.25rem; } }
.section-sub { text-align: center; color: #6b7280; margin-bottom: 2.5rem; }
.coupons-grid { display: grid; gap: 1.5rem; }
@media(min-width:768px) { .coupons-grid { grid-template-columns: repeat(3,1fr); } }
.coupon-disclaimer { font-size: .75rem; color: #9ca3af; text-align: center; margin-top: 2rem; max-width: 56rem; margin-left: auto; margin-right: auto; }

/* Coupon Card */
.coupon-card {
  cursor: pointer; border: 2px dashed var(--goff-red);
  border-radius: .5rem; overflow: hidden; background: #fff;
  box-shadow: 0 4px 16px rgba(0,0,0,.1);
  transition: transform .2s, box-shadow .2s;
}
.coupon-card:hover { transform: translateY(-4px) scale(1.02); box-shadow: 0 8px 32px rgba(0,0,0,.15); }
.coupon-card:active { transform: scale(.98); }
.coupon-head { background: var(--goff-red); color: #fff; padding: .75rem 1rem; text-align: center; }
.coupon-head h3 { font-weight: 700; font-size: 1.0625rem; text-transform: uppercase; letter-spacing: .05em; }
.coupon-body { padding: 1.5rem; text-align: center; min-height: 20rem; display: flex; flex-direction: column; justify-content: center; }
.coupon-rows { display: flex; flex-direction: column; gap: 1.5rem; }
.coupon-row { display: flex; align-items: center; justify-content: center; gap: .75rem; }
.coupon-amount { color: var(--goff-red); font-size: 1.875rem; font-weight: 900; }
.coupon-detail { font-size: .875rem; color: #374151; text-align: left; }
.coupon-detail strong { color: var(--goff-red); }
.coupon-big { color: var(--goff-red); font-size: 3rem; font-weight: 900; padding: .5rem 0; }
.coupon-desc { color: #374151; margin-bottom: .75rem; }
.coupon-subdesc { font-size: .875rem; color: #6b7280; }
.coupon-benef-title { font-weight: 600; color: #1f2937; margin-bottom: .5rem; }
.coupon-benef-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .25rem; font-size: .8125rem; color: #4b5563; }
.coupon-cta { background: #f9fafb; border-top: 1px solid #e5e7eb; padding: .75rem 1rem; text-align: center; }
.coupon-cta span { color: var(--goff-red); font-weight: 600; font-size: .8125rem; text-transform: uppercase; letter-spacing: .05em; }

/* ── RED CTA BAR ──────────────────────── */
.cta-bar { background: var(--goff-red); padding: 1rem; }
.cta-bar-inner { max-width: 80rem; margin: 0 auto; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1rem; color: #fff; }
@media(min-width:768px) { .cta-bar-inner { flex-direction: row; gap: 1.5rem; } }
.cta-bar h3 { font-size: 1.125rem; font-weight: 700; }
@media(min-width:768px) { .cta-bar h3 { font-size: 1.25rem; } }
.cta-phone { display: flex; align-items: center; gap: .5rem; color: #fff; text-decoration: none; transition: opacity .2s; }
.cta-phone:hover { opacity: .8; }
.cta-phone-icon { width: 2.5rem; height: 2.5rem; background: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.cta-phone-icon svg { width: 1.25rem; height: 1.25rem; stroke: var(--goff-red); }
.cta-phone-num { font-size: 1.25rem; font-weight: 700; }
@media(min-width:768px) { .cta-phone-num { font-size: 1.5rem; } }

/* ── REVIEWS ──────────────────────────── */
.reviews-section { padding: 3rem 1rem; background: #fff; overflow: hidden; }
.reviews-inner { max-width: 80rem; margin: 0 auto; }
.reviews-sub { text-align: center; color: #6b7280; margin-bottom: 2rem; }
.reviews-track-wrap { overflow: hidden; position: relative; }
.reviews-track {
  display: flex; gap: 1.5rem;
  animation: scroll-reviews 40s linear infinite;
  width: max-content;
}
.reviews-track:hover { animation-play-state: paused; }
.review-card {
  flex-shrink: 0; width: 22rem; background: #fff;
  border: 1px solid #e5e7eb; border-radius: .5rem;
  padding: 1.5rem; box-shadow: 0 2px 8px rgba(0,0,0,.08);
  transition: box-shadow .2s; text-decoration: none; color: inherit; display: block;
}
.review-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,.14); }
.review-stars { display: flex; gap: .25rem; margin-bottom: .75rem; }
.review-stars svg { width: 1.25rem; height: 1.25rem; fill: #facc15; stroke: #facc15; }
.review-text { color: #374151; line-height: 1.6; margin-bottom: 1rem; }
.review-name { font-weight: 600; color: #111827; }
@keyframes scroll-reviews {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ── FOOTER ───────────────────────────── */
.footer { background: var(--goff-dark); padding: 1.5rem 1rem; }
.footer-inner { max-width: 80rem; margin: 0 auto; }
.footer-flex { display: flex; flex-direction: column; gap: 1rem; }
@media(min-width:768px) { .footer-flex { flex-direction: row; justify-content: space-between; align-items: center; } }
.footer-logo-link { display: inline-block; transition: opacity .2s; }
.footer-logo-link:hover { opacity: .8; }
.footer-logo { height: 2.5rem; width: auto; }
.footer-services { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 1rem; color: #fff; }
@media(min-width:768px) { .footer-services { gap: 1.5rem; } }
.footer-service-item { display: flex; align-items: center; gap: .5rem; font-size: .875rem; }
@media(min-width:768px) { .footer-service-item { font-size: 1rem; } }
.footer-service-item .icon { width: 1.25rem; height: 1.25rem; stroke: #fff; }
.footer-divider { display: none; width: 1px; height: 1.25rem; background: #6b7280; }
@media(min-width:768px) { .footer-divider { display: block; } }

/* ── MODAL ────────────────────────────── */
.modal-overlay {
  display: none; position: fixed; inset: 0; z-index: 50;
  background: rgba(0,0,0,.6); align-items: center; justify-content: center;
  padding: 1rem;
}
.modal-overlay.open { display: flex; }
.modal-box {
  background: #fff; border-radius: .75rem; padding: 1.5rem;
  max-width: 28rem; width: 100%; max-height: 90vh; overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0,0,0,.3);
}
.modal-title { color: var(--goff-red); font-size: 1.25rem; font-weight: 700; text-align: center; margin-bottom: .5rem; }
.modal-value { font-size: 1.5rem; font-weight: 700; text-align: center; }
.modal-desc { text-align: center; font-size: .875rem; color: #6b7280; margin-top: .25rem; margin-bottom: 1rem; }
.modal-form label { display: block; font-size: .875rem; font-weight: 500; margin-bottom: .25rem; margin-top: .75rem; }
.modal-form input { width: 100%; padding: .6rem .75rem; border: 1px solid #d1d5db; border-radius: .375rem; font-size: .9375rem; outline: none; transition: border-color .2s; }
.modal-form input:focus { border-color: var(--goff-red); }
.modal-disclaimer { font-size: .75rem; color: #9ca3af; text-align: center; margin-top: 1rem; }
.modal-close-btn { display: block; width: 100%; text-align: right; font-size: 1.5rem; background: none; border: none; cursor: pointer; color: #6b7280; margin-bottom: .5rem; line-height: 1; }
.modal-close-btn:hover { color: #111; }
