/* === RESET & BASE === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: 'Inter', system-ui, sans-serif; color: #1c2b3a; background: #f8f6f1; line-height: 1.6; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* === TOKENS === */
:root {
  --navy: #1a2e4a;
  --navy-dark: #111f33;
  --gold: #c9a84c;
  --gold-hover: #b8972e;
  --cream: #f8f6f1;
  --cream-alt: #f0ede5;
  --text: #1c2b3a;
  --text-muted: #5a6a7a;
  --border: #ddd9d0;
  --white: #ffffff;
  --green: #2d7a4e;
  --radius: 10px;
  --shadow: 0 4px 24px rgba(26,46,74,0.10);
  --shadow-lg: 0 8px 40px rgba(26,46,74,0.15);
}

/* === CONTAINER === */
.container { max-width: 1160px; margin: 0 auto; padding: 0 24px; }

/* === BUTTONS === */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: inherit; font-weight: 600; font-size: 0.95rem;
  padding: 12px 24px; border-radius: 8px; border: 2px solid transparent;
  cursor: pointer; transition: all 0.2s ease; text-decoration: none; white-space: nowrap;
}
.btn-lg { padding: 15px 32px; font-size: 1rem; }
.btn-full { width: 100%; }
.btn-primary { background: var(--navy); color: var(--white); border-color: var(--navy); }
.btn-primary:hover { background: var(--navy-dark); border-color: var(--navy-dark); transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-outline { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: var(--white); transform: translateY(-1px); }
.btn-gold { background: var(--gold); color: var(--navy); border-color: var(--gold); font-weight: 700; }
.btn-gold:hover { background: var(--gold-hover); border-color: var(--gold-hover); transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-nav { padding: 9px 20px; font-size: 0.875rem; }

/* === NAV === */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: var(--white); border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 8px rgba(0,0,0,0.06);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px; max-width: 1160px; margin: 0 auto; padding: 0 24px;
}
.nav-logo { display: flex; align-items: center; gap: 10px; }
.nav-logo-text { font-weight: 700; font-size: 1rem; color: var(--navy); }
.nav-links { display: flex; align-items: center; gap: 28px; list-style: none; }
.nav-links a { font-size: 0.9rem; color: var(--text-muted); font-weight: 500; transition: color 0.15s; }
.nav-links a:hover { color: var(--navy); }
.nav-hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 4px; }
.nav-hamburger span { display: block; width: 22px; height: 2px; background: var(--navy); border-radius: 2px; transition: all 0.2s; }
.nav-mobile { display: none; flex-direction: column; gap: 4px; padding: 12px 24px 16px; border-top: 1px solid var(--border); background: var(--white); }
.nav-mobile a { padding: 10px 0; font-size: 0.95rem; font-weight: 500; color: var(--text); border-bottom: 1px solid var(--border); }
.nav-mobile .btn { margin-top: 8px; }
.nav-mobile.open { display: flex; }

/* === HERO === */
.hero {
  background: linear-gradient(160deg, var(--navy) 0%, #0f1f35 100%);
  color: var(--white); padding: 96px 0 80px; text-align: center;
}
.hero-badge {
  display: inline-block; background: rgba(201,168,76,0.15); color: var(--gold);
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.12em;
  padding: 6px 16px; border-radius: 100px; border: 1px solid rgba(201,168,76,0.3);
  margin-bottom: 24px; text-transform: uppercase;
}
.hero-headline {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: clamp(2.2rem, 5vw, 3.6rem); line-height: 1.15;
  color: var(--white); margin-bottom: 20px;
}
.hero-sub { font-size: 1.15rem; color: rgba(255,255,255,0.8); max-width: 560px; margin: 0 auto 28px; }
.hero-trust { display: flex; align-items: center; justify-content: center; gap: 24px; margin-bottom: 36px; flex-wrap: wrap; }
.hero-trust span { font-size: 0.875rem; color: rgba(255,255,255,0.75); font-weight: 500; }
.hero-ctas { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* === STATS BAR === */
.stats-bar { background: var(--navy-dark); padding: 32px 0; }
.stats-inner { display: flex; justify-content: center; gap: 64px; flex-wrap: wrap; }
.stat { text-align: center; }
.stat-num { display: block; font-family: 'DM Serif Display', serif; font-size: 2.4rem; color: var(--gold); line-height: 1.1; }
.stat-label { font-size: 0.875rem; color: rgba(255,255,255,0.65); margin-top: 4px; }

/* === SECTIONS === */
.section { padding: 80px 0; }
.section-alt { background: var(--cream-alt); }
.section-header { text-align: center; margin-bottom: 56px; }
.section-header h2 {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: clamp(1.8rem, 3vw, 2.4rem); color: var(--navy); margin-bottom: 12px;
}
.section-header p { font-size: 1.05rem; color: var(--text-muted); max-width: 500px; margin: 0 auto; }

/* === HOW IT WORKS === */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.step {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 36px 28px; position: relative; box-shadow: var(--shadow);
}
.step-num {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--navy); color: var(--white);
  font-family: 'DM Serif Display', serif; font-size: 1.2rem;
  display: flex; align-items: center; justify-content: center; margin-bottom: 20px;
}
.step h3 { font-size: 1.1rem; font-weight: 700; color: var(--navy); margin-bottom: 10px; }
.step p { color: var(--text-muted); font-size: 0.95rem; }

/* === PROPERTY CARDS === */
.property-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; max-width: 800px; margin: 0 auto; }
.property-card {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 40px 36px; box-shadow: var(--shadow);
}
.property-card-commercial { background: var(--navy); color: var(--white); border-color: var(--navy); position: relative; }
.card-badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--gold); color: var(--navy); font-size: 0.7rem; font-weight: 800;
  letter-spacing: 0.1em; padding: 4px 14px; border-radius: 100px; white-space: nowrap;
}
.property-card h3 { font-family: 'DM Serif Display', serif; font-size: 1.6rem; margin-bottom: 20px; }
.property-card ul { list-style: none; margin-bottom: 32px; }
.property-card ul li { padding: 8px 0; border-bottom: 1px solid rgba(0,0,0,0.07); font-size: 0.95rem; }
.property-card-commercial ul li { border-bottom-color: rgba(255,255,255,0.15); }
.property-card ul li::before { content: '→ '; color: var(--gold); font-weight: 700; }

/* === CALCULATOR === */
.calculator-wrap {
  max-width: 860px; margin: 0 auto;
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 40px 40px; box-shadow: var(--shadow-lg);
}
.calc-input-row { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.calc-btn { width: 100%; margin-bottom: 10px; font-size: 1.05rem; }
.calc-disclaimer { font-size: 0.8rem; color: var(--text-muted); text-align: center; }
.spinner {
  width: 18px; height: 18px; border: 2px solid rgba(255,255,255,0.4);
  border-top-color: white; border-radius: 50%; animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* RESULTS */
.calc-results { margin-top: 32px; border-top: 1px solid var(--border); padding-top: 28px; }
.results-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; flex-wrap: wrap; gap: 12px; }
.results-address { font-weight: 600; font-size: 1rem; color: var(--navy); }
.results-badge { background: #e8f5ee; color: var(--green); font-size: 0.8rem; font-weight: 700; padding: 4px 12px; border-radius: 100px; }
.results-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-bottom: 28px; }
.result-box {
  background: var(--cream); border: 1px solid var(--border); border-radius: 8px;
  padding: 20px; display: flex; flex-direction: column; gap: 6px;
}
.result-box-highlight { background: #eef7f2; border-color: #a8d5b8; }
.result-label { font-size: 0.8rem; color: var(--text-muted); font-weight: 500; text-transform: uppercase; letter-spacing: 0.06em; }
.result-value { font-family: 'DM Serif Display', serif; font-size: 1.8rem; color: var(--navy); }
.result-savings { color: var(--green); font-size: 2rem; }
.results-cta { text-align: center; }
.results-cta p { color: var(--text-muted); margin-bottom: 16px; font-size: 0.95rem; }

/* ERROR */
.calc-error { margin-top: 24px; background: #fff8f0; border: 1px solid #f0d8b8; border-radius: 8px; padding: 24px; text-align: center; }
.error-icon { font-size: 1.8rem; margin-bottom: 8px; }
.calc-error p { color: var(--text-muted); font-size: 0.95rem; }
.calc-error a { color: var(--navy); text-decoration: underline; }

/* === DEADLINES TABLE === */
.deadlines-table-wrap { overflow-x: auto; }
.deadlines-table { width: 100%; border-collapse: collapse; background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.deadlines-table thead { background: var(--navy); color: var(--white); }
.deadlines-table th { padding: 14px 20px; text-align: left; font-size: 0.85rem; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; }
.deadlines-table td { padding: 14px 20px; border-bottom: 1px solid var(--border); font-size: 0.95rem; }
.deadlines-table tr:last-child td { border-bottom: none; }
.badge { display: inline-block; padding: 4px 12px; border-radius: 100px; font-size: 0.78rem; font-weight: 700; }
.badge-open { background: #e8f5ee; color: var(--green); }
.badge-later { background: #fff3cd; color: #856404; }
.badge-next { background: #e8eef5; color: var(--navy); }

/* === GET STARTED === */
.getstarted-inner { display: grid; grid-template-columns: 1fr 1.4fr; gap: 64px; align-items: start; }
.getstarted-left h2 {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(1.8rem, 2.5vw, 2.2rem); color: var(--navy); margin-bottom: 16px;
}
.getstarted-left p { color: var(--text-muted); margin-bottom: 24px; }
.getstarted-features { list-style: none; margin-bottom: 32px; }
.getstarted-features li { padding: 6px 0; color: var(--text-muted); font-size: 0.95rem; }
.contact-info p { font-size: 0.95rem; color: var(--text-muted); }
.contact-info a { color: var(--navy); font-weight: 600; text-decoration: underline; }

/* FORM */
.intake-form { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 36px; box-shadow: var(--shadow-lg); }
.form-section-label { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-muted); padding-bottom: 12px; border-bottom: 1px solid var(--border); margin-bottom: 20px; margin-top: 8px; }
.form-section-label:first-child { margin-top: 0; }
.form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.form-group label { font-size: 0.875rem; font-weight: 600; color: var(--text); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.req { color: #c0392b; }
input[type=text], input[type=email], input[type=tel], input[type=number], select, textarea {
  font-family: inherit; font-size: 0.95rem; color: var(--text);
  border: 1.5px solid var(--border); border-radius: 8px; padding: 11px 14px;
  background: var(--white); transition: border-color 0.15s, box-shadow 0.15s; width: 100%;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(26,46,74,0.1); }
textarea { resize: vertical; }
.input-prefix-wrap { position: relative; }
.input-prefix { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--text-muted); font-weight: 600; pointer-events: none; }
.input-prefix-wrap input { padding-left: 28px; }
.field-hint { font-size: 0.78rem; color: var(--text-muted); margin-top: 4px; }
.radio-group { display: flex; flex-direction: column; gap: 10px; }
.radio-label { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; }
.radio-label input { margin-top: 3px; width: 16px; height: 16px; accent-color: var(--navy); flex-shrink: 0; }
.radio-label span { font-size: 0.9rem; }
.radio-label small { display: block; color: var(--text-muted); font-size: 0.78rem; }
.checkbox-label { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; }
.checkbox-label input { margin-top: 3px; width: 16px; height: 16px; accent-color: var(--navy); flex-shrink: 0; }
.checkbox-label span { font-size: 0.82rem; color: var(--text-muted); line-height: 1.5; }
.checkbox-label a { color: var(--navy); text-decoration: underline; }
.form-legal { font-size: 0.75rem; color: var(--text-muted); margin-top: 12px; text-align: center; line-height: 1.5; }
.form-success { text-align: center; padding: 32px 20px; }
.success-icon { font-size: 2.5rem; color: var(--green); margin-bottom: 12px; }
.form-success h3 { font-size: 1.2rem; color: var(--navy); margin-bottom: 8px; }
.form-success p { color: var(--text-muted); font-size: 0.95rem; }

/* === FAQ === */
.faq-list { max-width: 760px; margin: 0 auto; }
.faq-item { border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 10px; background: var(--white); overflow: hidden; }
.faq-item summary {
  padding: 18px 20px; font-weight: 600; font-size: 0.95rem; cursor: pointer;
  list-style: none; display: flex; justify-content: space-between; align-items: center; color: var(--navy);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; font-size: 1.3rem; font-weight: 300; color: var(--text-muted); flex-shrink: 0; margin-left: 16px; }
.faq-item[open] summary::after { content: '−'; }
.faq-item p { padding: 0 20px 20px; font-size: 0.93rem; color: var(--text-muted); line-height: 1.7; }

/* === URGENCY BANNER === */
.urgency-banner { background: var(--navy-dark); padding: 56px 0; }
.urgency-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.urgency-banner h2 { font-family: 'DM Serif Display', serif; font-size: 1.8rem; color: var(--white); margin-bottom: 8px; }
.urgency-banner p { color: rgba(255,255,255,0.7); font-size: 0.95rem; }

/* === FOOTER === */
.footer { background: var(--navy); color: rgba(255,255,255,0.75); padding: 56px 0 0; }
.footer-inner { display: flex; gap: 64px; flex-wrap: wrap; padding-bottom: 48px; }
.footer-brand { display: flex; gap: 12px; align-items: flex-start; flex-shrink: 0; }
.footer-logo-text { font-weight: 700; font-size: 1rem; color: var(--white); }
.footer-sub { font-size: 0.8rem; color: rgba(255,255,255,0.5); margin-top: 2px; }
.footer-links { display: flex; gap: 48px; flex-wrap: wrap; flex: 1; }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col-title { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255,255,255,0.4); margin-bottom: 4px; }
.footer-col a { font-size: 0.875rem; color: rgba(255,255,255,0.65); transition: color 0.15s; }
.footer-col a:hover { color: var(--white); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding: 20px 24px; max-width: 1160px; margin: 0 auto; }
.footer-bottom p { font-size: 0.78rem; color: rgba(255,255,255,0.4); line-height: 1.7; }
.footer-bottom a { color: rgba(255,255,255,0.55); text-decoration: underline; }

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .steps { grid-template-columns: 1fr; }
  .property-cards { grid-template-columns: 1fr; }
  .getstarted-inner { grid-template-columns: 1fr; gap: 32px; }
  .results-grid { grid-template-columns: 1fr; }
  .stats-inner { gap: 32px; }
  .footer-inner { gap: 32px; }
  .footer-links { gap: 32px; }
  .calc-input-row { flex-direction: column; }
  .calculator-wrap { padding: 24px 20px; }
  .intake-form { padding: 24px 20px; }
  .form-row { grid-template-columns: 1fr; }
  .urgency-inner { flex-direction: column; text-align: center; }
}
