/* === RESET & BASE === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --green:      #1B4332;
  --amber:      #D4A843;
  --cream:      #F8F5F0;
  --cream-dark: #EDE9E1;
  --charcoal:   #2C2C2C;
  --muted:      #6B6B6B;
  --white:      #FFFFFF;
}

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', system-ui, sans-serif;
  background: var(--cream);
  color: var(--charcoal);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* === TYPOGRAPHY === */
h1, h2, h3, h4 { font-family: 'Fraunces', Georgia, serif; font-weight: 700; line-height: 1.15; }
.section-headline { font-size: clamp(2rem, 4vw, 3rem); color: var(--green); }

/* === NAV === */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(248,245,240,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(27,67,50,0.08);
}
.nav-inner {
  max-width: 1200px; margin: 0 auto;
  padding: 1rem 2rem;
  display: flex; align-items: center;
}
.nav-logo {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.25rem; font-weight: 700;
  color: var(--green); text-decoration: none; letter-spacing: -0.01em;
}

/* === HERO === */
.hero {
  min-height: 100vh;
  display: flex; align-items: center;
  padding: 8rem 2rem 6rem;
  background:
    radial-gradient(ellipse 80% 60% at 70% 40%, rgba(212,168,67,0.12) 0%, transparent 70%),
    var(--cream);
  position: relative; overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; top: 0; right: -5%; width: 55%; height: 100%;
  background: linear-gradient(135deg, rgba(27,67,50,0.04) 0%, transparent 60%);
  pointer-events: none;
}
.hero-inner {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr auto;
  gap: 4rem; align-items: center;
}
.hero-text { max-width: 700px; }
.hero-headline {
  font-size: clamp(3rem, 7vw, 5.5rem);
  color: var(--green);
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}
.hero-sub {
  font-size: 1.2rem; color: var(--muted);
  max-width: 540px; line-height: 1.7;
  margin-bottom: 2.5rem;
}
.hero-tags {
  display: flex; flex-wrap: wrap; gap: 0.5rem;
  max-width: 280px; justify-content: flex-end;
}
.tag {
  background: var(--white);
  border: 1px solid rgba(27,67,50,0.15);
  color: var(--green);
  font-size: 0.75rem; font-weight: 600;
  padding: 0.4rem 0.9rem; border-radius: 100px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

/* === TRANSFORMATION === */
.transformation {
  background: var(--green);
  color: var(--cream);
  padding: 5rem 2rem;
}
.transformation-inner { max-width: 1200px; margin: 0 auto; }
.transformation-label {
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--amber);
  margin-bottom: 2.5rem;
}
.transformation-grid {
  display: grid; grid-template-columns: 1fr auto 1fr;
  gap: 2rem; align-items: center;
  margin-bottom: 4rem;
}
.transformation-block {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 12px; padding: 2rem;
}
.transformation-desc {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.5rem; font-weight: 600; margin-bottom: 0.5rem;
  color: var(--white);
}
.transformation-marker {
  font-size: 0.85rem; color: rgba(248,245,240,0.6);
}
.transformation-arrow { display: flex; justify-content: center; }
.transformation-arrow svg path { stroke: var(--amber); }

.transformation-stats {
  display: flex; align-items: stretch; gap: 0;
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 2.5rem;
}
.stat { flex: 1; text-align: center; padding: 0 2rem; }
.stat:first-child { padding-left: 0; }
.stat:last-child { padding-right: 0; }
.stat-value {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 2.5rem; font-weight: 700; color: var(--amber);
  display: block; line-height: 1;
}
.stat-label {
  font-size: 0.8rem; color: rgba(248,245,240,0.55);
  margin-top: 0.5rem; display: block;
}
.stat-divider {
  width: 1px; background: rgba(255,255,255,0.12);
  align-self: stretch;
}

/* === HOW IT WORKS === */
.how-it-works { padding: 7rem 2rem; background: var(--cream); }
.how-it-works-inner { max-width: 1200px; margin: 0 auto; }
.how-it-works .section-headline { margin-bottom: 4rem; }
.steps-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 2.5rem;
}
.step { position: relative; }
.step::before {
  content: ''; position: absolute;
  top: 2.5rem; left: 0; right: 0;
  height: 1px; background: rgba(27,67,50,0.1);
}
.step:last-child::before { display: none; }
.step-number {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 0.75rem; font-weight: 700;
  color: var(--amber); letter-spacing: 0.1em;
  margin-bottom: 1rem;
  position: relative; z-index: 1;
  background: var(--cream); display: inline-block;
  padding-right: 0.75rem;
}
.step-title {
  font-size: 1.2rem; color: var(--green);
  margin-bottom: 0.75rem;
}
.step-body { font-size: 0.9rem; color: var(--muted); line-height: 1.7; }

/* === FEATURES === */
.features {
  background: var(--cream-dark);
  padding: 7rem 2rem;
}
.features-inner {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 5rem; align-items: start;
}
.features-body {
  color: var(--muted); line-height: 1.8;
  margin-top: 1.5rem; font-size: 1.05rem;
}
.feature-item {
  display: grid; grid-template-columns: 44px 1fr;
  gap: 1rem; align-items: start;
  padding-bottom: 1.75rem; margin-bottom: 1.75rem;
  border-bottom: 1px solid rgba(27,67,50,0.08);
}
.feature-item:last-child { border-bottom: none; }
.feature-icon {
  width: 44px; height: 44px;
  background: rgba(212,168,67,0.12);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; margin-top: 0.1rem;
}
.feature-title {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1rem; font-weight: 600;
  color: var(--green); margin-bottom: 0.4rem;
}
.feature-desc { font-size: 0.875rem; color: var(--muted); line-height: 1.7; }

/* === ESTIMATOR PREVIEW === */
.estimator-preview {
  background: var(--green);
  color: var(--cream);
  padding: 7rem 2rem;
}
.estimator-inner { max-width: 1200px; margin: 0 auto; }
.estimator-badge {
  display: inline-block;
  background: rgba(212,168,67,0.2); color: var(--amber);
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase; padding: 0.4rem 1rem;
  border-radius: 100px; margin-bottom: 1.5rem;
}
.estimator-content { max-width: 700px; }
.estimator-content .section-headline { color: var(--cream); margin-bottom: 1rem; }
.estimator-body { color: rgba(248,245,240,0.7); font-size: 1.05rem; line-height: 1.8; margin-bottom: 2.5rem; }
.estimator-table {
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 10px; overflow: hidden;
  margin-bottom: 1rem;
}
.etable-row {
  display: grid; grid-template-columns: 2fr 1fr 1fr;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  font-size: 0.875rem;
}
.etable-row:last-child { border-bottom: none; }
.eheader { background: rgba(255,255,255,0.06); font-weight: 600; font-size: 0.75rem; letter-spacing: 0.06em; text-transform: uppercase; color: rgba(248,245,240,0.5); }
.etable-row:not(.eheader) { color: var(--cream); }
.estimator-note { font-size: 0.75rem; color: rgba(248,245,240,0.4); font-style: italic; }

/* === CLOSING === */
.closing {
  padding: 8rem 2rem;
  background: var(--cream);
  text-align: center;
}
.closing-inner { max-width: 800px; margin: 0 auto; }
.closing-headline {
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  color: var(--green);
  margin-bottom: 1.5rem;
  line-height: 1.2;
}
.closing-sub { font-size: 1.1rem; color: var(--muted); line-height: 1.8; max-width: 600px; margin: 0 auto; }

/* === FOOTER === */
.footer {
  background: var(--green);
  padding: 3rem 2rem;
}
.footer-inner {
  max-width: 1200px; margin: 0 auto;
  text-align: center;
}
.footer-logo {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.5rem; font-weight: 700;
  color: var(--cream); margin-bottom: 0.5rem;
}
.footer-tagline { font-size: 0.85rem; color: rgba(248,245,240,0.45); margin-bottom: 1.5rem; }
.footer-links { display: flex; justify-content: center; gap: 0.5rem; font-size: 0.8rem; color: rgba(248,245,240,0.4); }
.footer-sep { color: rgba(248,245,240,0.2); }

/* === RESPONSIVE === */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-tags { max-width: 100%; justify-content: flex-start; }
  .transformation-grid { grid-template-columns: 1fr; }
  .transformation-arrow { transform: rotate(90deg); }
  .steps-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .steps-grid .step::before { display: none; }
  .features-inner { grid-template-columns: 1fr; gap: 3rem; }
  .estimator-table .etable-row { grid-template-columns: 1fr; gap: 0.25rem; }
}
@media (max-width: 600px) {
  .hero { padding: 6rem 1.5rem 4rem; }
  .steps-grid { grid-template-columns: 1fr; }
  .transformation-stats { flex-direction: column; gap: 1.5rem; }
  .stat-divider { width: 100%; height: 1px; }
  .transformation, .how-it-works, .features, .estimator-preview, .closing, .footer { padding: 4rem 1.5rem; }
}