/* ============================================================
   EasyRoofEstimate — style.css
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy:        #0F1C2E;
  --navy-mid:    #1A2F47;
  --navy-light:  #243B57;
  --blue:        #3B82F6;
  --blue-light:  #EFF6FF;
  --blue-mid:    #BFDBFE;
  --accent:      #38BDF8;
  --green:       #22C55E;
  --red-soft:    #FEE2E2;
  --red-text:    #991B1B;
  --text:        #0F172A;
  --text-mid:    #475569;
  --text-soft:   #94A3B8;
  --border:      #E2E8F0;
  --bg:          #F8FAFC;
  --white:       #FFFFFF;
  --r:           14px;
  --rs:          8px;
  --shadow:      0 4px 24px rgba(15,28,46,0.08);
  --shadow-lg:   0 8px 40px rgba(15,28,46,0.14);
}

html { scroll-behavior: smooth; }
body { font-family: 'Plus Jakarta Sans', system-ui, sans-serif; background: var(--bg); color: var(--text); line-height: 1.6; -webkit-font-smoothing: antialiased; }

/* ── NAV ── */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 100; padding: 0 24px; background: rgba(15,28,46,0.92); backdrop-filter: blur(12px); border-bottom: 1px solid rgba(255,255,255,0.06); }
.nav-inner { max-width: 1100px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; height: 60px; }
.logo { font-family: 'Playfair Display', Georgia, serif; font-size: 18px; font-weight: 700; color: #fff; text-decoration: none; letter-spacing: -0.3px; }
.logo span { color: var(--accent); }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { font-size: 14px; color: rgba(255,255,255,0.7); text-decoration: none; font-weight: 500; transition: color 0.15s; }
.nav-links a:hover { color: #fff; }
.nav-cta { background: var(--accent) !important; color: var(--navy) !important; padding: 8px 18px; border-radius: 6px; font-weight: 600 !important; }
.nav-cta:hover { background: #7DD3FC !important; }

/* ── HERO ── */
.hero { position: relative; background: var(--navy); min-height: 100vh; padding: 100px 24px 80px; display: flex; flex-direction: column; align-items: center; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; display: flex; align-items: flex-end; justify-content: center; pointer-events: none; }
.roof-svg { width: 100%; max-width: 900px; height: auto; opacity: 0.7; }
.hero-content { position: relative; text-align: center; max-width: 660px; margin-bottom: 40px; }
.hero-badge { display: inline-flex; align-items: center; gap: 8px; background: rgba(56,189,248,0.1); border: 1px solid rgba(56,189,248,0.2); color: var(--accent); font-size: 13px; font-weight: 500; padding: 6px 16px; border-radius: 20px; margin-bottom: 24px; letter-spacing: 0.2px; }
.hero h1 { font-family: 'Playfair Display', Georgia, serif; font-size: clamp(36px, 6vw, 62px); font-weight: 700; color: #fff; line-height: 1.1; letter-spacing: -1.5px; margin-bottom: 20px; }
.hero h1 em { font-style: italic; font-weight: 400; color: var(--accent); }
.hero > .hero-content > p { font-size: 17px; color: rgba(255,255,255,0.65); max-width: 520px; margin: 0 auto; line-height: 1.7; }

/* ── FORM CARD ── */
.form-card { position: relative; background: var(--white); border-radius: var(--r); padding: 32px; width: 100%; max-width: 560px; box-shadow: var(--shadow-lg); }
.form-card h2 { font-family: 'Playfair Display', Georgia, serif; font-size: 24px; font-weight: 700; color: var(--text); margin-bottom: 20px; }
.form-card h2 em { font-style: italic; font-weight: 400; color: var(--blue); }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 13px; font-weight: 600; color: var(--text-mid); margin-bottom: 6px; letter-spacing: 0.1px; }
.form-group input, .form-group select { width: 100%; height: 46px; border: 1.5px solid var(--border); border-radius: var(--rs); padding: 0 14px; font-family: 'Plus Jakarta Sans', sans-serif; font-size: 15px; color: var(--text); background: var(--bg); outline: none; transition: border-color 0.15s; -webkit-appearance: none; appearance: none; }
.form-group input:focus, .form-group select:focus { border-color: var(--blue); background: var(--white); }
.form-group input::placeholder { color: var(--text-soft); }
.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 d='M1 1l5 5 5-5' stroke='%2394A3B8' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; }
.form-error { display: none; background: var(--red-soft); border: 1px solid #FECACA; border-radius: var(--rs); color: var(--red-text); font-size: 13px; padding: 10px 14px; margin-bottom: 12px; }
.form-error.visible { display: block; }
.btn-estimate { display: block; width: 100%; height: 52px; background: var(--navy); color: #fff; border: none; border-radius: var(--rs); font-family: 'Plus Jakarta Sans', sans-serif; font-size: 15px; font-weight: 600; cursor: pointer; transition: background 0.15s, opacity 0.15s; letter-spacing: 0.1px; }
.btn-estimate:hover { background: var(--navy-mid); }
.btn-estimate:disabled { opacity: 0.6; cursor: not-allowed; }
.btn-estimate.inline { display: inline-block; width: auto; padding: 0 32px; line-height: 52px; text-decoration: none; text-align: center; }
.form-trust { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 12px; font-size: 12px; color: var(--text-soft); flex-wrap: wrap; }
.form-trust .dot { color: var(--border); }

/* ── LOADING ── */
.loading-card { display: none; background: var(--white); border-radius: var(--r); padding: 40px 32px; width: 100%; max-width: 560px; box-shadow: var(--shadow-lg); text-align: center; }
.loading-card.visible { display: block; }
.spinner { width: 36px; height: 36px; border: 3px solid var(--blue-mid); border-top-color: var(--blue); border-radius: 50%; animation: spin 0.75s linear infinite; margin: 0 auto 14px; }
@keyframes spin { to { transform: rotate(360deg); } }
.loading-card p { font-size: 14px; color: var(--text-soft); }

/* ── RESULT CARD ── */
.result-card { display: none; background: var(--white); border-radius: var(--r); padding: 28px; width: 100%; max-width: 560px; box-shadow: var(--shadow-lg); }
.result-card.visible { display: block; }
.result-address-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 24px; flex-wrap: wrap; }
.result-address { flex: 1; }
.result-label { display: block; font-size: 11px; font-weight: 600; color: var(--text-soft); letter-spacing: 0.5px; text-transform: uppercase; margin-bottom: 3px; }
.result-address strong { font-size: 15px; font-weight: 600; color: var(--text); }
.result-pills { display: flex; gap: 6px; flex-wrap: wrap; }
.result-pill { background: var(--blue-light); color: #1D4ED8; font-size: 12px; font-weight: 500; padding: 4px 10px; border-radius: 20px; white-space: nowrap; }
.result-pill.fallback { background: #FEF3C7; color: #92400E; }

.estimate-range { display: grid; grid-template-columns: 1fr 1.2fr 1fr; gap: 8px; margin-bottom: 20px; background: var(--bg); border-radius: var(--rs); padding: 16px; }
.range-col { text-align: center; }
.range-col.center { border-left: 1px solid var(--border); border-right: 1px solid var(--border); padding: 0 8px; }
.range-label { font-size: 11px; font-weight: 600; color: var(--text-soft); letter-spacing: 0.4px; text-transform: uppercase; margin-bottom: 6px; }
.range-value { font-size: 22px; font-weight: 700; color: var(--text); font-family: 'Playfair Display', Georgia, serif; }
.range-value.highlight { font-size: 28px; color: var(--navy); }
.range-bar-wrap { margin-top: 8px; }
.range-bar { height: 4px; background: var(--blue-mid); border-radius: 2px; position: relative; }
.range-fill { position: absolute; left: 0; top: 0; height: 100%; width: 60%; background: var(--blue); border-radius: 2px; }
.range-pin { position: absolute; top: -5px; left: 60%; transform: translateX(-50%); width: 14px; height: 14px; background: var(--navy); border: 2px solid var(--white); border-radius: 50%; box-shadow: 0 0 0 2px var(--blue); }

.result-details { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 16px; }
.detail-item { background: var(--bg); border-radius: var(--rs); padding: 10px 12px; display: flex; flex-direction: column; gap: 3px; }
.detail-label { font-size: 10px; font-weight: 600; color: var(--text-soft); letter-spacing: 0.4px; text-transform: uppercase; }
.detail-item span:last-child { font-size: 13px; font-weight: 500; color: var(--text); }
.result-disclaimer { font-size: 12px; color: var(--text-soft); line-height: 1.6; margin-bottom: 16px; padding-top: 12px; border-top: 1px solid var(--border); }
.btn-quote { display: block; width: 100%; height: 52px; background: var(--blue); color: #fff; border: none; border-radius: var(--rs); font-family: 'Plus Jakarta Sans', sans-serif; font-size: 15px; font-weight: 600; cursor: pointer; transition: background 0.15s; margin-bottom: 8px; }
.btn-quote:hover { background: #2563EB; }
.result-subtext { font-size: 12px; color: var(--text-soft); text-align: center; }

/* ── LEAD CARD ── */
.lead-card { display: none; background: var(--white); border-radius: var(--r); padding: 28px; width: 100%; max-width: 560px; box-shadow: var(--shadow-lg); }
.lead-card.visible { display: block; }
.lead-card h2 { font-family: 'Playfair Display', Georgia, serif; font-size: 24px; font-weight: 700; color: var(--text); margin-bottom: 6px; }
.lead-card h2 em { font-style: italic; font-weight: 400; color: var(--blue); }
.lead-card > p { font-size: 14px; color: var(--text-mid); margin-bottom: 20px; }
.lead-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.privacy-note { font-size: 12px; color: var(--text-soft); text-align: center; margin-top: 10px; }

/* ── SUCCESS CARD ── */
.success-card { display: none; background: var(--white); border-radius: var(--r); padding: 48px 28px; width: 100%; max-width: 560px; box-shadow: var(--shadow-lg); text-align: center; }
.success-card.visible { display: block; }
.success-check { width: 56px; height: 56px; background: #DCFCE7; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 22px; color: var(--green); margin-bottom: 16px; }
.success-card h2 { font-family: 'Playfair Display', Georgia, serif; font-size: 26px; font-weight: 700; color: var(--text); margin-bottom: 10px; }
.success-card p { font-size: 15px; color: var(--text-mid); max-width: 360px; margin: 0 auto; }

/* ── SECTIONS ── */
.section-inner { max-width: 1000px; margin: 0 auto; padding: 0 24px; }
.section-title { font-family: 'Playfair Display', Georgia, serif; font-size: clamp(30px, 5vw, 46px); font-weight: 700; color: var(--text); text-align: center; margin-bottom: 12px; letter-spacing: -0.5px; }
.section-title em { font-style: italic; font-weight: 400; color: var(--blue); }
.section-sub { font-size: 16px; color: var(--text-mid); text-align: center; margin-bottom: 48px; max-width: 520px; margin-left: auto; margin-right: auto; }

/* ── PAIN SECTION ── */
.pain-section { padding: 80px 0; background: var(--bg); }
.pain-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.pain-card { background: var(--white); border: 1px solid var(--border); border-left: 3px solid var(--blue); border-radius: var(--r); padding: 24px; }
.pain-icon { font-size: 28px; margin-bottom: 12px; }
.pain-card h3 { font-size: 16px; font-weight: 600; color: var(--text); margin-bottom: 8px; line-height: 1.4; }
.pain-card p { font-size: 14px; color: var(--text-mid); line-height: 1.6; }

/* ── HOW IT WORKS ── */
.how-section { padding: 80px 0; background: var(--white); }
.steps-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.step-card { padding: 28px; background: var(--bg); border-radius: var(--r); border: 1px solid var(--border); }
.step-icon-wrap { width: 52px; height: 52px; background: var(--blue-light); border-radius: 12px; display: flex; align-items: center; justify-content: center; color: var(--blue); margin-bottom: 16px; }
.step-num { font-size: 11px; font-weight: 600; color: var(--blue); letter-spacing: 1px; text-transform: uppercase; margin-bottom: 8px; }
.step-card h3 { font-size: 16px; font-weight: 600; color: var(--text); margin-bottom: 8px; }
.step-card p { font-size: 14px; color: var(--text-mid); line-height: 1.6; }

/* ── STATS BAR ── */
.stats-bar { background: var(--navy); padding: 48px 24px; }
.stats-inner { max-width: 900px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 32px; text-align: center; }
.stat-num { font-family: 'Playfair Display', Georgia, serif; font-size: 40px; font-weight: 700; color: var(--accent); line-height: 1; margin-bottom: 8px; }
.stat-label { font-size: 12px; font-weight: 500; color: rgba(255,255,255,0.5); letter-spacing: 0.5px; text-transform: uppercase; }

/* ── COMPARISON ── */
.compare-section { padding: 80px 0; background: var(--navy); }
.compare-section .section-title { color: #fff; }
.compare-section .section-title em { color: var(--accent); }
.compare-table { background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08); border-radius: var(--r); overflow: hidden; }
.compare-header { display: grid; grid-template-columns: 1.5fr 1fr 1fr; background: rgba(255,255,255,0.06); padding: 14px 20px; font-size: 13px; font-weight: 600; letter-spacing: 0.3px; }
.compare-col.ours { color: var(--accent); text-align: center; }
.compare-col.theirs { color: rgba(255,255,255,0.4); text-align: center; }
.compare-row { display: grid; grid-template-columns: 1.5fr 1fr 1fr; padding: 16px 20px; border-top: 1px solid rgba(255,255,255,0.06); align-items: center; }
.compare-col-label { font-size: 14px; color: rgba(255,255,255,0.6); }
.compare-row .compare-col.ours { font-size: 14px; font-weight: 600; color: #fff; text-align: center; }
.compare-row .compare-col.theirs { font-size: 14px; color: rgba(255,255,255,0.35); text-align: center; }
.check { color: var(--green); margin-right: 4px; }
.cross { color: rgba(255,255,255,0.25); margin-right: 4px; }

/* ── FAQ ── */
.faq-section { padding: 80px 0; background: var(--bg); }
.faq-list { max-width: 720px; margin: 0 auto; display: flex; flex-direction: column; gap: 8px; }
.faq-item { background: var(--white); border: 1px solid var(--border); border-radius: var(--r); overflow: hidden; }
.faq-q { width: 100%; display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; font-size: 15px; font-weight: 600; color: var(--text); background: none; border: none; cursor: pointer; text-align: left; gap: 12px; transition: background 0.15s; }
.faq-q:hover { background: var(--bg); }
.faq-arrow { font-size: 16px; color: var(--text-soft); transition: transform 0.2s; flex-shrink: 0; }
.faq-q.open .faq-arrow { transform: rotate(180deg); }
.faq-a { display: none; padding: 0 20px 18px; font-size: 14px; color: var(--text-mid); line-height: 1.7; border-top: 1px solid var(--border); padding-top: 16px; }
.faq-a.visible { display: block; }

/* ── CITIES ── */
.cities-section { padding: 80px 0; background: var(--white); }
.cities-wrap { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.city-pill { background: var(--bg); border: 1px solid var(--border); border-radius: 20px; padding: 8px 18px; font-size: 14px; color: var(--text-mid); font-weight: 500; }

/* ── CTA ── */
.cta-section { padding: 80px 24px; background: var(--navy); text-align: center; }
.cta-section h2 { font-family: 'Playfair Display', Georgia, serif; font-size: clamp(28px, 5vw, 44px); font-weight: 700; color: #fff; margin-bottom: 12px; }
.cta-section h2 em { font-style: italic; font-weight: 400; color: var(--accent); }
.cta-section p { font-size: 16px; color: rgba(255,255,255,0.6); margin-bottom: 28px; max-width: 440px; margin-left: auto; margin-right: auto; }
.cta-section .btn-estimate { background: var(--accent); color: var(--navy); max-width: 300px; margin: 0 auto; font-weight: 700; }
.cta-section .btn-estimate:hover { background: #7DD3FC; }

/* ── FOOTER ── */
.footer { background: #080F19; padding: 56px 24px 0; }
.footer-inner { max-width: 1000px; margin: 0 auto; display: grid; grid-template-columns: 1.5fr 1fr; gap: 48px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,0.08); }
.footer-brand .logo { margin-bottom: 12px; font-size: 16px; }
.footer-brand p { font-size: 13px; color: rgba(255,255,255,0.4); line-height: 1.7; max-width: 280px; }
.footer-links { display: flex; gap: 48px; }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col-title { font-size: 11px; font-weight: 600; color: rgba(255,255,255,0.4); letter-spacing: 0.8px; text-transform: uppercase; margin-bottom: 4px; }
.footer-col a { font-size: 14px; color: rgba(255,255,255,0.55); text-decoration: none; transition: color 0.15s; }
.footer-col a:hover { color: #fff; }
.footer-bottom { max-width: 1000px; margin: 0 auto; padding: 16px 0 24px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; font-size: 12px; color: rgba(255,255,255,0.25); }

/* ── MOBILE ── */
@media (max-width: 600px) {
  .nav-links a:not(.nav-cta) { display: none; }
  .hero { padding: 90px 16px 60px; }
  .form-card, .result-card, .lead-card, .loading-card, .success-card { padding: 20px; }
  .lead-row { grid-template-columns: 1fr; }
  .estimate-range { grid-template-columns: 1fr; }
  .range-col.center { border: none; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 12px 0; }
  .compare-header, .compare-row { grid-template-columns: 1fr 1fr; }
  .compare-col-label { display: none; }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .footer-links { gap: 32px; }
  .footer-bottom { flex-direction: column; }
}


/* ── PROCESS SECTION ── */
.process-section { padding: 80px 0; background: var(--white); }
.process-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.process-text h2 { font-family: 'Playfair Display', Georgia, serif; font-size: clamp(26px, 4vw, 38px); font-weight: 700; color: var(--text); margin-bottom: 20px; line-height: 1.2; letter-spacing: -0.5px; }
.process-text h2 em { font-style: italic; font-weight: 400; color: var(--blue); }
.process-text p { font-size: 15px; color: var(--text-mid); line-height: 1.8; margin-bottom: 16px; }
.btn-process { display: inline-block; height: 46px; line-height: 46px; padding: 0 24px; background: var(--navy); color: #fff; border-radius: var(--rs); font-size: 14px; font-weight: 600; text-decoration: none; margin-top: 8px; transition: background 0.15s; }
.btn-process:hover { background: var(--navy-mid); }
.process-checklist { background: var(--bg); border-radius: var(--r); border: 1px solid var(--border); padding: 28px; }
.checklist-title { font-size: 12px; font-weight: 600; color: var(--text-soft); letter-spacing: 0.5px; text-transform: uppercase; margin-bottom: 16px; }
.checklist { list-style: none; display: flex; flex-direction: column; gap: 12px; margin-bottom: 20px; }
.checklist li { font-size: 15px; color: var(--text); display: flex; align-items: center; gap: 10px; }
.checklist li::before { content: '✓'; color: var(--green); font-weight: 700; font-size: 14px; flex-shrink: 0; }
.checklist-note { font-size: 13px; color: var(--text-soft); padding-top: 16px; border-top: 1px solid var(--border); line-height: 1.6; }
.consent-row { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 16px; padding: 14px; background: var(--bg); border-radius: var(--rs); border: 1px solid var(--border); }
.consent-row input[type="checkbox"] { width: 16px; height: 16px; flex-shrink: 0; margin-top: 2px; accent-color: var(--navy); cursor: pointer; }
.consent-row label { font-size: 13px; color: var(--text-mid); line-height: 1.5; cursor: pointer; }
.pain-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
@media (max-width: 700px) {
  .process-grid { grid-template-columns: 1fr; gap: 32px; }
  .pain-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .steps-grid { grid-template-columns: 1fr; }
}
