/*
 * roofing.css — Columbus Roofing Cost landing theme
 * ═══════════════════════════════════════════════════════════
 * PATH: public/css/roofing.css
 * ROLE: Roofing funnel styling — navbar, hero (3D shingle overlay),
 *       trust bar, cost guide cards, why-us, lead form, footer.
 *       Ported from /home/numb1/roof-template-src/columbus-roofing-cost-template-v2.html
 */

:root {
  /* Brand DNA */
  --ispec-teal:        #57C1B6;
  --ispec-teal-hover:  #3DA89E;
  --ispec-teal-light:  #E0F5F2;
  --ispec-teal-dark:   #1A4F4A;
  --ispec-teal-700:    #2B7A72;
  --ispec-charcoal:    #212529;
  --ispec-dark:        #343A40;
  --ispec-warm-white:  #FAF4F4;
  --ispec-black:       #010101;
  --ispec-gray:        #6C757D;
  --ispec-light:       #F8F9FA;
  --cta-orange:        #D4793C;
  --cta-orange-hover:  #B8612E;
  --cta-orange-light:  #FDF0E6;
  --section-alt:       #F4F6F5;
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

body.roofing-site {
  font-family: var(--font-body);
  color: var(--ispec-charcoal);
  background: #fff;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.roofing-site h1,
body.roofing-site h2,
body.roofing-site h3,
body.roofing-site .display-heading {
  font-family: var(--font-display);
  color: var(--ispec-charcoal);
}

.text-teal     { color: var(--ispec-teal) !important; }
.text-teal-dk  { color: var(--ispec-teal-dark) !important; }
.bg-teal-light { background-color: var(--ispec-teal-light) !important; }
.bg-section    { background-color: var(--section-alt) !important; }

.hr-accent {
  border: 0;
  border-top: 3px solid var(--ispec-teal);
  border-radius: 5px;
  width: 4rem;
  margin: 1rem auto;
  opacity: 1;
}

/* ── Navbar ───────────────────────────────────────── */
.navbar-funnel {
  background-color: var(--ispec-charcoal);
  padding: 0.65rem 0;
  transition: box-shadow 0.3s ease;
}
.navbar-funnel.scrolled { box-shadow: 0 2px 24px rgba(0,0,0,0.18); }
.navbar-funnel .navbar-brand {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--ispec-warm-white);
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.navbar-funnel .navbar-brand span {
  display: block;
  font-size: 0.68rem;
  font-weight: 400;
  color: var(--ispec-gray);
  letter-spacing: 0.04em;
  margin-top: -2px;
}
.navbar-funnel .nav-link {
  color: rgba(250,244,244,0.8);
  font-size: 0.88rem;
  font-weight: 500;
  padding: 0.4rem 0.9rem;
  transition: color 0.2s;
}
.navbar-funnel .nav-link:hover,
.navbar-funnel .nav-link:focus,
.navbar-funnel .nav-link.active { color: var(--ispec-teal); }
.btn-nav-cta {
  background-color: var(--ispec-teal);
  color: #fff;
  font-weight: 600;
  font-size: 0.85rem;
  padding: 0.45rem 1.2rem;
  border: none;
  border-radius: 50px;
  transition: background-color 0.2s, transform 0.15s;
}
.btn-nav-cta:hover {
  background-color: var(--ispec-teal-hover);
  color: #fff;
  transform: translateY(-1px);
}
.navbar-funnel .navbar-toggler {
  border-color: rgba(250,244,244,0.25);
  padding: 0.3rem 0.55rem;
}
.navbar-funnel .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(250,244,244,0.85)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Offset body so fixed-top navbar doesn't cover content on non-hero pages */
body.roofing-site.has-fixed-nav { padding-top: 64px; }
body.roofing-site.landing-page  { padding-top: 0; }

/* ── Hero ─────────────────────────────────────────── */
.hero-section {
  position: relative;
  background-color: var(--ispec-charcoal);
  /* roof photo behind an even dark scrim (content is centered, so contrast is
     uniform) plus a top/bottom vignette to seat the navbar and trust bar */
  background-image:
    linear-gradient(180deg,
      rgba(10, 20, 18, 0.62) 0%,
      rgba(10, 20, 18, 0.46) 32%,
      rgba(10, 20, 18, 0.46) 64%,
      rgba(10, 20, 18, 0.70) 100%),
    url('../images/landing-hero.jpg');
  background-size: cover;
  background-position: center 45%;
  background-repeat: no-repeat;
  min-height: 540px;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 108px 0 72px;
}
.hero-section::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 35%;
  background: linear-gradient(to top, var(--ispec-charcoal) 0%, transparent 100%);
  z-index: 1;
  pointer-events: none;
}
.hero-content { position: relative; z-index: 2; }
.hero-section h1 {
  color: #fff;
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 1.25rem;
}
.hero-section h1 em { color: var(--ispec-teal); font-style: italic; }
.hero-section .lead {
  color: rgba(255,255,255,0.82);
  font-size: 1.1rem;
  line-height: 1.65;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

/* ── CTA buttons ──────────────────────────────────── */
.btn-cta-primary {
  background-color: var(--cta-orange);
  color: #fff;
  font-weight: 700;
  font-size: 1.05rem;
  padding: 0.85rem 2.2rem;
  border: none;
  border-radius: 6px;
  transition: all 0.25s ease;
  box-shadow: 0 4px 16px rgba(212,121,60,0.3);
}
.btn-cta-primary:hover {
  background-color: var(--cta-orange-hover);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(212,121,60,0.4);
}
.btn-cta-secondary {
  background: transparent;
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.75rem 1.8rem;
  border: 2px solid rgba(255,255,255,0.35);
  border-radius: 6px;
  transition: all 0.25s ease;
}
.btn-cta-secondary:hover {
  border-color: var(--ispec-teal);
  color: var(--ispec-teal);
  background: rgba(87,193,182,0.08);
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  margin-top: 2rem;
}
.hero-badges .badge-item {
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 50px;
  padding: 0.35rem 1rem;
  font-size: 0.76rem;
  font-weight: 500;
  color: rgba(255,255,255,0.8);
  letter-spacing: 0.02em;
}

/* ── Trust bar / stats ────────────────────────────── */
.trust-bar {
  background-color: var(--ispec-light);
  border-bottom: 1px solid #e9ecef;
}
.stat-item { text-align: center; padding: 1.5rem 0.5rem; }
.stat-number {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--ispec-charcoal);
  line-height: 1;
  margin-bottom: 0.3rem;
}
.stat-number::after {
  content: '';
  display: block;
  width: 28px; height: 3px;
  background: var(--ispec-teal);
  border-radius: 3px;
  margin: 0.45rem auto 0;
}
.stat-label {
  font-size: 0.82rem;
  color: var(--ispec-gray);
  font-weight: 500;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

/* ── Cost guide cards ─────────────────────────────── */
.guide-card {
  background: #fff;
  border: 1px solid #e9ecef;
  border-radius: 10px;
  padding: 1.75rem;
  transition: all 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
}
.guide-card:hover {
  border-color: var(--ispec-teal);
  box-shadow: 0 8px 32px rgba(87,193,182,0.12);
  transform: translateY(-4px);
  color: inherit;
}
.guide-card .card-icon {
  width: 64px; height: 64px;
  background: var(--ispec-teal-light);
  border: 2px solid var(--ispec-teal);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.1rem;
  transition: background 0.3s, border-color 0.3s;
}
.guide-card .card-icon svg {
  width: 32px; height: 32px;
  stroke: var(--ispec-teal-dark);
  color: var(--ispec-teal-dark);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
  transition: stroke 0.3s, color 0.3s;
}
.guide-card:hover .card-icon {
  background: var(--ispec-teal);
  border-color: var(--ispec-teal-hover);
}
.guide-card:hover .card-icon svg { stroke: #fff; color: #fff; }
.guide-card h3 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.15rem;
  margin-bottom: 0.25rem;
}
.guide-card .price-range {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--ispec-teal-dark);
  margin-bottom: 0.5rem;
}
.guide-card p {
  color: var(--ispec-gray);
  font-size: 0.9rem;
  line-height: 1.55;
  flex-grow: 1;
}
.guide-card .card-link {
  color: var(--ispec-teal);
  font-weight: 600;
  font-size: 0.88rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.75rem;
}
.guide-card:hover .card-link { gap: 0.6rem; }

/* ── Why section ──────────────────────────────────── */
.why-section { background-color: var(--ispec-teal-light); }
.why-section h2 { color: var(--ispec-teal-dark); }
.why-item { padding: 1.5rem; }
.why-item h4 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--ispec-charcoal);
  margin-bottom: 0.5rem;
}
.why-item p {
  font-size: 0.92rem;
  color: var(--ispec-dark);
  line-height: 1.6;
}

/* ── Lead form ────────────────────────────────────── */
.form-section {
  background-color: var(--ispec-dark);
  color: var(--ispec-warm-white);
}
.form-section h2 { color: #fff; }
.form-card {
  background: #fff;
  border-radius: 12px;
  padding: 2.25rem;
  max-width: 520px;
  margin: 0 auto;
  box-shadow: 0 12px 48px rgba(0,0,0,0.15);
}
.form-card label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ispec-charcoal);
  margin-bottom: 0.3rem;
}
.form-card .form-control,
.form-card .form-select {
  border: 1.5px solid #dee2e6;
  border-radius: 6px;
  padding: 0.7rem 0.9rem;
  font-size: 0.92rem;
  transition: border-color 0.2s;
}
.form-card .form-control:focus,
.form-card .form-select:focus {
  border-color: var(--ispec-teal);
  box-shadow: 0 0 0 3px rgba(87,193,182,0.15);
}
.btn-form-submit {
  background-color: var(--cta-orange);
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  padding: 0.8rem;
  border: none;
  border-radius: 6px;
  width: 100%;
  transition: background-color 0.25s, transform 0.15s;
}
.btn-form-submit:hover {
  background-color: var(--cta-orange-hover);
  color: #fff;
  transform: translateY(-1px);
}
.form-micro {
  font-size: 0.78rem;
  color: var(--ispec-gray);
  text-align: center;
  margin-top: 0.75rem;
}
.trust-checks {
  list-style: none;
  padding: 0;
  margin: 1.5rem auto 0;
  max-width: 520px;
}
.trust-checks li {
  color: rgba(250,244,244,0.75);
  font-size: 0.85rem;
  padding: 0.25rem 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.trust-checks li .check-icon { color: var(--ispec-teal); font-weight: 700; }
.form-success { display: none; text-align: center; padding: 2rem 1rem; }
.form-success.show { display: block; }
.form-success .success-icon {
  width: 56px; height: 56px;
  background: var(--ispec-teal-light);
  color: var(--ispec-teal-dark);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

/* ── Footer ───────────────────────────────────────── */
.footer-funnel {
  background-color: var(--ispec-black);
  color: var(--ispec-warm-white);
  padding: 2.5rem 0 1.5rem;
}
.footer-funnel a {
  color: var(--ispec-teal);
  text-decoration: none;
  transition: opacity 0.2s;
}
.footer-funnel a:hover { opacity: 0.8; color: var(--ispec-teal); }
.footer-brand { font-weight: 700; font-size: 1.05rem; margin-bottom: 0.35rem; }
.footer-sub { font-size: 0.82rem; color: rgba(250,244,244,0.55); line-height: 1.6; }
.footer-links h6 {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: rgba(250,244,244,0.4);
  margin-bottom: 0.75rem;
}
.footer-links a {
  display: block;
  font-size: 0.88rem;
  color: rgba(250,244,244,0.7);
  padding: 0.2rem 0;
}
.footer-links a:hover { color: var(--ispec-teal); }
.footer-bottom {
  border-top: 1px solid rgba(250,244,244,0.08);
  padding-top: 1.25rem;
  margin-top: 2rem;
  font-size: 0.76rem;
  color: rgba(250,244,244,0.35);
}

/* ── Fade-in animation ────────────────────────────── */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* ── Responsive ───────────────────────────────────── */
@media (max-width: 767.98px) {
  .hero-section { min-height: 440px; padding-top: 90px; padding-bottom: 2rem; }
  .hero-section h1 { font-size: 1.85rem; }
  .hero-section .lead { font-size: 0.98rem; }
  .stat-number { font-size: 1.6rem; }
  .form-card { padding: 1.5rem; }
  .hero-badges { gap: 0.4rem; }
  .hero-badges .badge-item { font-size: 0.7rem; padding: 0.3rem 0.75rem; }
}
@media (min-width: 768px) and (max-width: 991.98px) {
  .hero-section h1 { font-size: 2.4rem; }
}

/* ── Small purpose-named utilities (replace one-off inline styles) ── */
.hero-eyebrow {
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  color: var(--ispec-teal);
}
.section-intro {
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
  color: var(--ispec-gray);
  font-size: 0.95rem;
}
.section-intro--on-dark {
  max-width: 480px;
  color: rgba(250, 244, 244, 0.65);
}
.fade-up--delay-1 { transition-delay: 0.1s; }
.fade-up--delay-2 { transition-delay: 0.2s; }
.fade-up--delay-3 { transition-delay: 0.3s; }
.lead-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.consent-label {
  font-size: 0.82rem;
  color: var(--ispec-gray);
  font-weight: 400;
}
.form-success-title {
  color: var(--ispec-charcoal);
}
.form-success-text {
  color: var(--ispec-gray);
  font-size: 0.92rem;
}
.text-link-teal {
  color: var(--ispec-teal);
  font-weight: 600;
}
#leadForm.is-submitted { display: none; }

/* Hero copy stays light + legible over the roof photo, regardless of cascade order. */
body.roofing-site .hero-section h1 {
  color: #fff;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.55), 0 1px 3px rgba(0, 0, 0, 0.4);
}
body.roofing-site .hero-section h1 em { color: #7fded3; }
body.roofing-site .hero-section .lead {
  color: rgba(255, 255, 255, 0.94);
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.5);
}
body.roofing-site .hero-section .hero-eyebrow {
  color: #8fe3d9;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.55);
}
body.roofing-site .hero-section .hero-badges .badge-item {
  background: rgba(0, 0, 0, 0.28);
  border-color: rgba(255, 255, 255, 0.22);
  color: #fff;
}
