*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #f0efeb;
  --surface: #ffffff;
  --text: #111111;
  --muted: #666660;
  --accent: #4a5c2f;
  --accent-mid: #5e7338;
  --accent-light: #eaf0e0;
  --accent-border: #c8d9a8;
  --border: rgba(0,0,0,0.09);
  --border-mid: rgba(0,0,0,0.15);
  --radius: 10px;
  --mono: 'Space Mono', monospace;
  --sans: 'DM Sans', sans-serif;
}

[data-theme="dark"] {
  --bg: #141414;
  --surface: #1e1e1e;
  --text: #f0f0ee;
  --muted: #888880;
  --accent: #7aab4a;
  --accent-mid: #8fc45a;
  --accent-light: #1a2412;
  --accent-border: #2d3d1e;
  --border: rgba(255,255,255,0.08);
  --border-mid: rgba(255,255,255,0.14);
}

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.6;
  min-height: 100vh;
  transition: background 0.25s, color 0.25s;
}

/* NAV */
nav {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 0 2rem;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
  transition: background 0.25s, border-color 0.25s;
}
.nav-logo { display: flex; flex-direction: column; line-height: 1; text-decoration: none; }
.nav-logo .brand { font-family: var(--mono); font-size: 17px; font-weight: 700; letter-spacing: 0.05em; color: var(--text); }
.nav-logo .sub { font-size: 10px; color: var(--muted); letter-spacing: 0.08em; text-transform: uppercase; margin-top: 1px; }
.nav-links { display: flex; gap: 1.5rem; align-items: center; list-style: none; }
.nav-links a { font-size: 13px; color: var(--muted); text-decoration: none; transition: color 0.15s; }
.nav-links a:hover, .nav-links a.active { color: var(--text); font-weight: 600; }
.nav-cta { background: var(--accent) !important; color: #fff !important; padding: 7px 16px; border-radius: 6px; font-size: 13px !important; font-weight: 500 !important; }
.nav-cta:hover { background: var(--accent-mid) !important; }

/* HAMBURGER */
.nav-hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 4px; background: none; border: none; }
.nav-hamburger span { display: block; width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: all 0.2s; }
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* MOBILE NAV */
@media (max-width: 680px) {
  nav { flex-wrap: wrap; height: auto; padding: 0 1.25rem; }
  .nav-top { display: flex; align-items: center; justify-content: space-between; width: 100%; height: 60px; }
  .nav-hamburger { display: flex; }
  .nav-right { display: flex; align-items: center; gap: 10px; }
  .nav-links {
    display: none; flex-direction: column; align-items: flex-start;
    width: 100%; gap: 0; padding: 0.5rem 0 1rem;
    border-top: 1px solid var(--border);
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: 0.65rem 0; font-size: 15px; color: var(--text); border-bottom: 1px solid var(--border); }
  .nav-links a:last-child { border-bottom: none; }
  .nav-cta { background: var(--accent) !important; color: #fff !important; margin-top: 0.5rem; width: 100%; text-align: center; border-radius: 8px !important; padding: 10px 16px !important; }
  .theme-wrap { display: flex; align-items: center; gap: 7px; }
}

@media (min-width: 681px) {
  .nav-top { display: contents; }
  .nav-right { display: contents; }
}

/* THEME TOGGLE */
.theme-toggle {
  width: 44px; height: 24px; border-radius: 100px;
  background: var(--border-mid); border: 1px solid var(--border-mid);
  position: relative; cursor: pointer; transition: background 0.2s, border-color 0.2s;
  flex-shrink: 0; display: flex; align-items: center;
}
.theme-toggle::before {
  content: '☀️';
  position: absolute; right: 5px; font-size: 10px; line-height: 1;
  transition: opacity 0.2s; opacity: 1;
}
.theme-toggle.dark::before { content: '🌙'; left: 5px; right: auto; opacity: 1; }
.theme-toggle.dark { background: var(--accent); border-color: var(--accent); }
.theme-thumb {
  width: 18px; height: 18px; border-radius: 50%; background: #fff;
  position: absolute; top: 2px; left: 2px; transition: left 0.2s;
  z-index: 1;
}
.theme-toggle.dark .theme-thumb { left: 22px; }

/* BUTTONS */
.btn-primary { background: var(--accent); color: #fff; border: none; padding: 12px 24px; border-radius: 8px; font-family: var(--sans); font-size: 14px; font-weight: 500; cursor: pointer; transition: background 0.15s; text-decoration: none; display: inline-block; }
.btn-primary:hover { background: var(--accent-mid); }
.btn-secondary { background: transparent; color: var(--text); border: 1px solid var(--border-mid); padding: 12px 24px; border-radius: 8px; font-family: var(--sans); font-size: 14px; font-weight: 500; cursor: pointer; transition: border-color 0.15s; text-decoration: none; display: inline-block; }
.btn-secondary:hover { border-color: var(--muted); }

/* FORMS */
input[type="text"], input[type="email"], input[type="tel"], select, textarea {
  width: 100%; padding: 10px 14px; border: 1px solid var(--border-mid); border-radius: 8px;
  font-family: var(--sans); font-size: 14px; color: var(--text); background: var(--bg);
  outline: none; transition: border-color 0.15s, background 0.25s; appearance: none; -webkit-appearance: none;
}
input:focus, select:focus, textarea:focus { border-color: var(--accent); background: var(--surface); }
textarea { resize: vertical; line-height: 1.6; }
select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23666660' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; padding-right: 36px; cursor: pointer;
}
label { display: block; font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: 5px; }
.label-note { font-size: 11px; color: var(--muted); font-weight: 400; margin-left: 5px; }
.field { margin-bottom: 1.25rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 520px) { .field-row { grid-template-columns: 1fr; } }

/* FOOTER */
footer {
  border-top: 1px solid var(--border);
  padding: 1.5rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--muted);
  flex-wrap: wrap;
  gap: 0.5rem;
}
.footer-accent { font-family: var(--mono); font-size: 11px; color: var(--accent); }

/* SECTION LABELS */
.page-label { font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); margin-bottom: 0.5rem; }

/* CTA BAND */
.cta-band {
  background: var(--surface); border: 1px solid var(--border); border-radius: 14px;
  padding: 3rem 2.5rem; display: flex; align-items: center;
  justify-content: space-between; gap: 1.5rem; flex-wrap: wrap;
  max-width: 920px; margin: 0 auto 4rem;
}
[data-theme="dark"] .cta-band { background: #1e1e1e; }
.cta-band h2 { font-size: 1.5rem; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 0.4rem; color: var(--text); }
.cta-band p { font-size: 13px; color: var(--muted); }
.btn-white { background: var(--accent); color: #fff; border: none; padding: 12px 24px; border-radius: 8px; font-family: var(--sans); font-size: 14px; font-weight: 600; cursor: pointer; white-space: nowrap; transition: background 0.15s; text-decoration: none; display: inline-block; }
.btn-white:hover { background: var(--accent-mid); }

/* THEME SCRIPT — shared across all pages */
