/* ─── Design Tokens ──────────────────────────────────────── */
:root {
  --accent:        #7ab648;
  --accent-dim:    rgba(122,182,72,0.15);
  --accent-border: rgba(122,182,72,0.3);
  --accent-glow:   rgba(122,182,72,0.08);

  /* Light (default) */
  --bg:            #f0ede8;
  --bg-card:       #ffffff;
  --bg-card-alt:   rgba(122,182,72,0.06);
  --bg-nav:        rgba(240,237,232,0.88);
  --text-1:        #1a1f1a;
  --text-2:        #3d4d3d;
  --text-3:        #7a8a7a;
  --text-4:        #a0b0a0;
  --border:        rgba(0,0,0,0.07);
  --border-strong: rgba(0,0,0,0.12);
  --shadow:        0 1px 3px rgba(0,0,0,0.08), 0 4px 16px rgba(0,0,0,0.06);
  --shadow-hover:  0 2px 8px rgba(0,0,0,0.10), 0 8px 32px rgba(0,0,0,0.08);
  --grid-line:     rgba(0,0,0,0.035);
  --toggle-bg:     #ddd8d0;
}

[data-theme="dark"] {
  --bg:            #1a1f1a;
  --bg-card:       rgba(255,255,255,0.04);
  --bg-card-alt:   rgba(122,182,72,0.06);
  --bg-nav:        rgba(26,31,26,0.92);
  --text-1:        #ffffff;
  --text-2:        #c8d4c8;
  --text-3:        #8a9a8a;
  --text-4:        #5a6a5a;
  --border:        rgba(255,255,255,0.07);
  --border-strong: rgba(255,255,255,0.12);
  --shadow:        0 1px 3px rgba(0,0,0,0.3), 0 4px 16px rgba(0,0,0,0.2);
  --shadow-hover:  0 2px 8px rgba(0,0,0,0.4), 0 8px 32px rgba(0,0,0,0.3);
  --grid-line:     rgba(255,255,255,0.03);
  --toggle-bg:     rgba(255,255,255,0.1);
}

/* ─── Reset & Base ───────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
  color: var(--text-1);
  transition: background 0.3s ease, color 0.3s ease;
  line-height: 1.6;
  min-height: 100vh;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
  z-index: 0;
}

/* ─── Accent Bar ─────────────────────────────────────────── */
.accent-bar {
  height: 3px;
  background: linear-gradient(90deg, #7ab648, #a8d55a 50%, #7ab648);
  position: relative;
  z-index: 200;
}

/* ─── Navigation ─────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--bg-nav);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s, border-color 0.3s;
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 32px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 16px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-icon {
  width: 34px;
  height: 34px;
  background: var(--accent);
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: opacity 0.2s;
}

.logo-icon svg {
  width: 18px;
  height: 18px;
  stroke: #1a1f1a;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.logo:hover .logo-icon { opacity: 0.85; }

.logo-text { display: flex; flex-direction: column; gap: 1px; }

.logo-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-1);
  letter-spacing: -0.3px;
  line-height: 1;
  transition: color 0.3s;
}

.logo-tagline {
  font-family: 'DM Mono', monospace;
  font-size: 9px;
  color: var(--accent);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  line-height: 1;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
  margin-left: auto;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-3);
  font-size: 14px;
  font-weight: 500;
  padding: 6px 13px;
  border-radius: 6px;
  transition: color 0.2s, background 0.2s;
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.active { color: var(--text-1); background: var(--border); }

.nav-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-cta {
  background: var(--accent);
  color: #1a1f1a !important;
  font-weight: 600 !important;
  font-size: 13.5px !important;
  padding: 8px 18px !important;
  border-radius: 7px;
  text-decoration: none;
  white-space: nowrap;
  transition: opacity 0.2s, transform 0.15s;
  display: inline-block;
}

.nav-cta:hover { opacity: 0.85; transform: translateY(-1px); }

/* ─── Theme Toggle ───────────────────────────────────────── */
.theme-toggle {
  width: 44px;
  height: 24px;
  background: var(--toggle-bg);
  border-radius: 12px;
  border: 1px solid var(--border-strong);
  cursor: pointer;
  position: relative;
  transition: background 0.3s, border-color 0.3s;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  padding: 2px;
}

.theme-toggle::after {
  content: '';
  width: 18px;
  height: 18px;
  background: var(--bg-card);
  border-radius: 50%;
  transition: transform 0.25s cubic-bezier(0.34,1.56,0.64,1), background 0.3s;
  box-shadow: 0 1px 4px rgba(0,0,0,0.2);
  flex-shrink: 0;
}

[data-theme="dark"] .theme-toggle { background: var(--accent-dim); border-color: var(--accent-border); }
[data-theme="dark"] .theme-toggle::after { transform: translateX(20px); background: var(--accent); }

.toggle-icons {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5px;
  pointer-events: none;
}

.toggle-icons svg { width: 11px; height: 11px; }
.icon-sun { color: var(--text-3); }
.icon-moon { color: var(--accent); }

/* Nav + footer toggles hidden — floating toggle used instead */
.theme-toggle-nav { display: none !important; }
.theme-toggle-footer { display: none !important; }

/* ─── Floating Theme Toggle ──────────────────────────────── */
.theme-toggle-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 200;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(0,0,0,0.14), 0 1px 4px rgba(0,0,0,0.08);
  transition: background 0.3s, border-color 0.3s, box-shadow 0.2s, transform 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.theme-toggle-float::after { display: none; }

.theme-toggle-float:hover {
  box-shadow: 0 6px 24px rgba(0,0,0,0.2), 0 2px 6px rgba(0,0,0,0.12);
  transform: translateY(-2px);
}

/* Icon inside the float button */
.float-icon {
  width: 19px;
  height: 19px;
  flex-shrink: 0;
  transition: opacity 0.2s;
}

/* Light mode → show moon (hint: click to go dark) */
.float-moon { display: block; color: var(--text-2); }
.float-sun  { display: none; }

/* Dark mode → show sun (hint: click to go light) */
[data-theme="dark"] .float-moon { display: none; }
[data-theme="dark"] .float-sun  { display: block; color: var(--accent); }

[data-theme="dark"] .theme-toggle-float {
  background: var(--accent-dim);
  border-color: var(--accent-border);
  box-shadow: 0 4px 20px rgba(0,0,0,0.4), 0 1px 4px rgba(0,0,0,0.2);
}

/* ─── Buttons ────────────────────────────────────────────── */
.btn-primary {
  background: var(--accent);
  color: #1a1f1a;
  font-weight: 600;
  font-size: 14.5px;
  padding: 13px 24px;
  border-radius: 8px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.15s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'DM Sans', sans-serif;
  line-height: 1;
}

.btn-primary:hover { opacity: 0.87; transform: translateY(-1px); }

.btn-secondary {
  background: transparent;
  color: var(--text-2);
  font-weight: 500;
  font-size: 14.5px;
  padding: 12px 20px;
  border-radius: 8px;
  text-decoration: none;
  border: 1px solid var(--border-strong);
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'DM Sans', sans-serif;
  line-height: 1;
}

.btn-secondary:hover { background: var(--border); }

/* ─── Layout ─────────────────────────────────────────────── */
section { position: relative; z-index: 1; }

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ─── Section Headers ────────────────────────────────────── */
.section-header { text-align: center; margin-bottom: 56px; }

.section-tag {
  display: inline-block;
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}

.section-header h2 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  letter-spacing: -1px;
  color: var(--text-1);
  line-height: 1.1;
  transition: color 0.3s;
}

.section-header p {
  font-size: 16px;
  color: var(--text-3);
  margin-top: 14px;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
  transition: color 0.3s;
}

/* ─── Stats ──────────────────────────────────────────────── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  transition: border-color 0.3s;
}

.stat {
  background: var(--bg-card);
  padding: 32px 24px;
  text-align: center;
  transition: background 0.3s;
  border-right: 1px solid var(--border);
}

.stat:last-child { border-right: none; }

.stat-number {
  font-family: 'DM Mono', monospace;
  font-size: 40px;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  letter-spacing: -1px;
}

.stat-unit { font-size: 20px; opacity: 0.7; }

.stat-label {
  font-size: 13px;
  color: var(--text-3);
  margin-top: 8px;
  line-height: 1.5;
  transition: color 0.3s;
}

/* ─── Benefit Cards ──────────────────────────────────────── */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.benefit-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px;
  transition: background 0.3s, border-color 0.3s, box-shadow 0.2s, transform 0.2s;
}

.benefit-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); }

.benefit-icon {
  width: 40px;
  height: 40px;
  background: var(--accent-dim);
  border: 1px solid var(--accent-border);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.benefit-icon svg {
  width: 20px;
  height: 20px;
  stroke: var(--accent);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.benefit-card h3 {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-1);
  margin-bottom: 8px;
  transition: color 0.3s;
}

.benefit-card p {
  font-size: 13.5px;
  color: var(--text-3);
  line-height: 1.6;
  transition: color 0.3s;
}

/* ─── Service Cards ──────────────────────────────────────── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: background 0.3s, border-color 0.3s, box-shadow 0.2s, transform 0.2s;
}

.service-card:hover { box-shadow: var(--shadow); transform: translateY(-1px); }

.service-card-header { display: flex; align-items: center; gap: 12px; }

.service-card-icon {
  width: 36px;
  height: 36px;
  background: var(--accent-dim);
  border: 1px solid var(--accent-border);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.service-card-icon svg {
  width: 18px;
  height: 18px;
  stroke: var(--accent);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.service-card h3 {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-1);
  transition: color 0.3s;
}

.service-items { display: flex; flex-direction: column; gap: 8px; }

.service-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--text-3);
  transition: color 0.3s;
}

.service-item::before {
  content: '';
  width: 5px;
  height: 5px;
  background: var(--accent);
  border-radius: 50%;
  flex-shrink: 0;
}

/* ─── Process ────────────────────────────────────────────── */
.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 0.3s;
}

.process-step {
  padding: 28px 24px;
  background: var(--bg);
  border-right: 1px solid var(--border);
  position: relative;
  transition: background 0.3s, border-color 0.3s;
}

.process-step:last-child { border-right: none; }

.process-step::after {
  content: '→';
  position: absolute;
  right: -10px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--accent);
  font-size: 16px;
  z-index: 2;
  opacity: 0.4;
}

.process-step:last-child::after { display: none; }

.step-num {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  color: var(--accent);
  opacity: 0.7;
  letter-spacing: 1px;
  margin-bottom: 10px;
}

.step-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-1);
  margin-bottom: 6px;
  transition: color 0.3s;
}

.step-desc {
  font-size: 12px;
  color: var(--text-3);
  line-height: 1.55;
  transition: color 0.3s;
}

/* ─── Contact Form ───────────────────────────────────────── */
.contact-form {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 36px;
  box-shadow: var(--shadow);
  transition: background 0.3s, border-color 0.3s, box-shadow 0.3s;
}

.form-label {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.form-label::before { content: ''; width: 16px; height: 1px; background: var(--accent); }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 14px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}

.form-group:last-of-type { margin-bottom: 0; }

.form-group label {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-2);
  transition: color 0.3s;
}

.form-group input,
.form-group textarea,
.form-group select {
  background: var(--bg);
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  padding: 11px 14px;
  font-size: 14px;
  color: var(--text-1);
  font-family: 'DM Sans', sans-serif;
  transition: border-color 0.2s, background 0.3s, color 0.3s;
  outline: none;
  width: 100%;
  appearance: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-4); }

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-dim);
}

.form-group textarea { resize: vertical; min-height: 100px; }

.form-submit { width: 100%; margin-top: 20px; justify-content: center; }

.form-note {
  font-size: 11.5px;
  color: var(--text-4);
  text-align: center;
  margin-top: 12px;
  line-height: 1.5;
  transition: color 0.3s;
}

.form-success {
  display: none;
  text-align: center;
  padding: 24px;
}

.form-success .success-icon {
  width: 48px;
  height: 48px;
  background: var(--accent-dim);
  border: 1px solid var(--accent-border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.form-success .success-icon svg {
  width: 24px;
  height: 24px;
  stroke: var(--accent);
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.form-success h3 { font-size: 18px; font-weight: 600; color: var(--text-1); margin-bottom: 8px; }
.form-success p { font-size: 14px; color: var(--text-3); }

/* ─── Footer ─────────────────────────────────────────────── */
footer {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  padding: 36px 0;
  position: relative;
  z-index: 1;
  transition: background 0.3s, border-color 0.3s;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-left { display: flex; flex-direction: column; gap: 8px; }

.footer-copy {
  font-size: 12px;
  color: var(--text-4);
  transition: color 0.3s;
}

.footer-right {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-links a {
  font-size: 12px;
  color: var(--text-4);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a:hover { color: var(--text-2); }

/* ─── Legal Pages ────────────────────────────────────────── */
.legal-page {
  padding: 100px 0 80px;
}

.legal-page h1 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  letter-spacing: -1px;
  color: var(--text-1);
  margin-bottom: 40px;
  transition: color 0.3s;
}

.legal-content {
  max-width: 720px;
}

.legal-content h2 {
  font-size: 17px;
  font-weight: 600;
  color: var(--text-1);
  margin-top: 36px;
  margin-bottom: 12px;
  transition: color 0.3s;
}

.legal-content h2:first-child { margin-top: 0; }

.legal-content p {
  font-size: 14.5px;
  color: var(--text-2);
  line-height: 1.75;
  margin-bottom: 12px;
  transition: color 0.3s;
}

.legal-content ul {
  padding-left: 20px;
  margin-bottom: 12px;
}

.legal-content li {
  font-size: 14.5px;
  color: var(--text-2);
  line-height: 1.75;
  margin-bottom: 6px;
  transition: color 0.3s;
}

.legal-content a { color: var(--accent); text-decoration: none; }
.legal-content a:hover { text-decoration: underline; }

.legal-divider {
  height: 1px;
  background: var(--border);
  margin: 32px 0;
  transition: background 0.3s;
}

/* ─── Responsive ─────────────────────────────────────────── */
@media (max-width: 900px) {
  .nav-links { display: none; }

  .stats-grid { grid-template-columns: 1fr; }
  .stat { border-right: none; border-bottom: 1px solid var(--border); }
  .stat:last-child { border-bottom: none; }

  .benefits-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .process-steps { grid-template-columns: 1fr 1fr; }
  .process-step::after { display: none; }

  .form-row { grid-template-columns: 1fr; }

  .footer-inner { flex-direction: column; align-items: flex-start; gap: 16px; }
  .footer-right { width: 100%; justify-content: space-between; }
}

@media (max-width: 600px) {
  .container { padding: 0 20px; }
  .nav-inner { padding: 0 20px; }
  .footer-inner { padding: 0 20px; }
  .process-steps { grid-template-columns: 1fr; }
  .footer-right { flex-direction: column; align-items: flex-start; gap: 16px; }
}
