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

:root {
  --bg: #faf8f5;
  --bg-alt: #f0ebe0;
  --fg: #1c1c1e;
  --fg-muted: #6b6b70;
  --accent: #c47d1a;
  --accent-dark: #9e6412;
  --green: #2a5247;
  --green-light: #3a7567;
  --white: #ffffff;
  --border: #e0d9cc;
}

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

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

/* ===== NAV ===== */
.nav {
  padding: 1.25rem 2rem;
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  font-family: 'DM Serif Display', serif;
  font-size: 1.35rem;
  color: var(--green);
  letter-spacing: -0.01em;
}
.nav-tagline {
  font-size: 0.8rem;
  color: var(--fg-muted);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  font-weight: 500;
}

/* ===== HERO ===== */
.hero {
  padding: 5rem 2rem 4rem;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
.hero-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 3rem;
  align-items: center;
}
.hero-overline {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 1rem;
}
.hero-headline {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  line-height: 1.12;
  color: var(--fg);
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}
.hero-headline em {
  font-style: italic;
  color: var(--green);
}
.hero-sub {
  font-size: 1.05rem;
  color: var(--fg-muted);
  max-width: 520px;
  line-height: 1.7;
}

/* Stack Diagram */
.stack-diagram {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.25rem;
  min-width: 240px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}
.stack-layer {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.01em;
}
.layer-top { background: #e8f0ec; color: var(--green); }
.layer-mid { background: #f5ede0; color: var(--accent-dark); }
.layer-bottom { background: #ece8e0; color: #5a4a35; }
.layer-icon { flex-shrink: 0; display: flex; }

/* ===== STATS ===== */
.stats {
  padding: 2.5rem 2rem;
  background: var(--green);
  color: var(--white);
}
.stats-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
}
.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.5rem 3rem;
  text-align: center;
}
.stat-value {
  font-family: 'DM Serif Display', serif;
  font-size: 2rem;
  line-height: 1;
  margin-bottom: 0.25rem;
}
.stat-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.75;
}
.stat-divider {
  width: 1px;
  height: 40px;
  background: rgba(255,255,255,0.25);
}

/* ===== PROBLEMS ===== */
.problems {
  padding: 5rem 2rem;
  background: var(--bg-alt);
}
.problems-inner {
  max-width: 780px;
  margin: 0 auto;
}
.problems-headline {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  line-height: 1.25;
  color: var(--fg);
  margin-bottom: 1.5rem;
  letter-spacing: -0.01em;
}
.problems-sub {
  font-size: 1rem;
  color: var(--fg-muted);
  line-height: 1.8;
  margin-bottom: 1.25rem;
}
.problems-sub--accent {
  color: var(--fg);
  font-weight: 500;
  font-size: 1.05rem;
  padding: 1.25rem 1.5rem;
  border-left: 3px solid var(--accent);
  background: #faf5ec;
  border-radius: 0 6px 6px 0;
}

/* ===== SERVICES ===== */
.services {
  padding: 5rem 2rem;
  background: var(--bg);
}
.services-inner {
  max-width: 1100px;
  margin: 0 auto;
}
.section-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 0.75rem;
}
.services-headline {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  line-height: 1.2;
  color: var(--fg);
  margin-bottom: 3rem;
  letter-spacing: -0.02em;
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5px;
  background: var(--border);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}
.service-card {
  background: var(--bg);
  padding: 2rem 1.75rem;
}
.service-icon {
  width: 44px;
  height: 44px;
  background: var(--bg-alt);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green);
  margin-bottom: 1.25rem;
  border: 1px solid var(--border);
}
.service-title {
  font-family: 'DM Serif Display', serif;
  font-size: 1.15rem;
  color: var(--fg);
  margin-bottom: 0.75rem;
  line-height: 1.3;
}
.service-desc {
  font-size: 0.88rem;
  color: var(--fg-muted);
  line-height: 1.7;
  margin-bottom: 1rem;
}
.service-image-block {
  margin-top: 1.25rem;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border);
}
.service-image-block img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}
.service-image-headline {
  font-family: 'DM Serif Display', serif;
  font-size: 0.95rem;
  color: var(--fg);
  padding: 0.75rem 0.75rem 0.25rem;
  line-height: 1.3;
}
.service-image-sub {
  font-size: 0.78rem;
  color: var(--fg-muted);
  padding: 0 0.75rem 0.75rem;
  line-height: 1.5;
}

/* ===== DIFFERENCE ===== */
.difference {
  padding: 5rem 2rem;
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.difference-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}
.difference-headline {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  line-height: 1.25;
  color: var(--fg);
  margin-bottom: 1.25rem;
  letter-spacing: -0.01em;
}
.difference-body {
  font-size: 0.95rem;
  color: var(--fg-muted);
  line-height: 1.8;
  margin-bottom: 1rem;
}
.difference-callouts {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.callout {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.25rem 1.5rem;
}
.callout-stat {
  display: block;
  font-family: 'DM Serif Display', serif;
  font-size: 1.1rem;
  color: var(--green);
  margin-bottom: 0.4rem;
}
.callout-text {
  font-size: 0.85rem;
  color: var(--fg-muted);
  line-height: 1.6;
}

/* ===== CLOSING ===== */
.closing {
  padding: 6rem 2rem;
  background: var(--green);
  color: var(--white);
  text-align: center;
}
.closing-inner {
  max-width: 680px;
  margin: 0 auto;
}
.closing-headline {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  line-height: 1.2;
  color: var(--white);
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}
.closing-sub {
  font-size: 1rem;
  color: rgba(255,255,255,0.75);
  line-height: 1.8;
}

/* ===== FOOTER ===== */
.footer {
  background: #162e28;
  color: rgba(255,255,255,0.7);
  padding: 3rem 2rem 1.5rem;
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-logo {
  font-family: 'DM Serif Display', serif;
  font-size: 1.25rem;
  color: var(--white);
  display: block;
  margin-bottom: 0.75rem;
}
.footer-desc {
  font-size: 0.85rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.55);
}
.footer-links-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.4);
  margin-bottom: 1rem;
  font-weight: 600;
}
.footer-link-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.footer-link-list li {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.6);
}
.footer-contact-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.4);
  margin-bottom: 0.75rem;
  font-weight: 600;
}
.footer-contact-email {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.7);
}
.footer-bottom {
  max-width: 1100px;
  margin: 1.25rem auto 0;
}
.footer-copy {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.3);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .stack-diagram { display: none; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .difference-inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 600px) {
  .nav-tagline { display: none; }
  .services-grid { grid-template-columns: 1fr; }
  .stats-inner { gap: 1.5rem; }
  .stat-divider { display: none; }
  .stat { padding: 0.5rem 1.5rem; }
  .footer-inner { grid-template-columns: 1fr; }
  .hero { padding: 3rem 1.25rem 2.5rem; }
  .problems { padding: 3.5rem 1.25rem; }
  .services { padding: 3.5rem 1.25rem; }
  .difference { padding: 3.5rem 1.25rem; }
  .closing { padding: 4rem 1.25rem; }
}