/* ============================================
   Components
   ============================================ */

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 46px; padding: 0 22px;
  font-size: .95rem; font-weight: 600;
  border-radius: var(--r-pill);
  border: 1px solid transparent;
  transition: all var(--t-base) var(--ease);
  white-space: nowrap;
  letter-spacing: -.005em;
}
.btn:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; }
.btn-primary { background: var(--forest); color: #fff; box-shadow: var(--shadow-forest); }
.btn-primary:hover { background: var(--forest-hover); transform: translateY(-1px); box-shadow: 0 16px 40px rgba(11,51,40,.28); }
.btn-accent { background: var(--lime); color: var(--forest); }
.btn-accent:hover { background: var(--lime-hover); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--border-strong); }
.btn-ghost:hover { background: var(--surface-raised); border-color: var(--ink); }
.btn-light { background: #fff; color: var(--forest); }
.btn-light:hover { background: var(--lime-soft); }
.btn-lg { height: 54px; padding: 0 28px; font-size: 1rem; }
.btn-sm { height: 38px; padding: 0 16px; font-size: .875rem; }
.btn i { font-size: 1.1em; }

/* ── Navigation ── */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.8);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--t-base), background var(--t-base);
}
.site-header.is-scrolled {
  border-color: var(--border);
  background: rgba(255,255,255,.92);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: var(--nav-h);
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 1.0625rem; letter-spacing: -.02em;
}
.brand-logo {
  height: 52px;
  width: auto;
  transition: filter var(--t-base);
}
.nav-links {
  display: flex; gap: 4px; align-items: center;
}
.nav-links a {
  position: relative;
  padding: 8px 14px; border-radius: var(--r-md);
  font-size: .9375rem; font-weight: 500; color: var(--ink-80);
  transition: color var(--t-fast), background var(--t-fast);
}
.nav-links a:hover { color: var(--forest); background: var(--forest-soft); }
.nav-links a.is-active { color: var(--forest); }
.nav-links a.is-active::after {
  content: ''; position: absolute; left: 14px; right: 14px; bottom: 2px;
  height: 2px; background: var(--lime); border-radius: 2px;
}
.nav-cta { display: flex; align-items: center; gap: 12px; }
/* Show hamburger by default (mobile-first); hidden at 768px+ via responsive.css */
.nav-toggle {
  display: flex; width: 44px; height: 44px;
  border-radius: var(--r-md);
  align-items: center; justify-content: center;
  color: var(--ink); font-size: 1.4rem;
  flex-shrink: 0;
}
.nav-toggle:hover { background: var(--surface-raised); }

/* Mobile drawer */
.mobile-drawer {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(9,9,11,.45);
  opacity: 0; pointer-events: none;
  transition: opacity var(--t-base);
}
.mobile-drawer.is-open { opacity: 1; pointer-events: auto; }
.mobile-drawer-panel {
  position: absolute; right: 0; top: 0; bottom: 0;
  width: min(360px, 90vw);
  background: #fff;
  padding: var(--sp-6);
  transform: translateX(100%);
  transition: transform var(--t-slow) var(--ease);
  display: flex; flex-direction: column; gap: var(--sp-3);
  overflow-y: auto;
}
.mobile-drawer.is-open .mobile-drawer-panel { transform: none; }
.mobile-drawer-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: var(--sp-4); }
.mobile-drawer a {
  padding: 14px 16px; border-radius: var(--r-md);
  font-size: 1.0625rem; font-weight: 500;
  border: 1px solid transparent;
}
.mobile-drawer a:hover { background: var(--surface-raised); border-color: var(--border); }
.mobile-drawer .btn { margin-top: var(--sp-4); height: 50px; }

/* ── Cards ── */
.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: var(--sp-8);
  transition: transform var(--t-base) var(--ease), box-shadow var(--t-base), border-color var(--t-base);
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: var(--border-strong);
}
.card-icon {
  width: 48px; height: 48px;
  display: grid; place-items: center;
  border-radius: var(--r-md);
  background: var(--lime-soft);
  color: var(--forest);
  font-size: 1.5rem;
  margin-bottom: var(--sp-5);
}
.card h3 { margin-bottom: var(--sp-3); font-size: 1.25rem; }
.card p { font-size: .9375rem; }

.card-feature .card-icon { background: var(--forest); color: var(--lime); }

/* ── Footer ── */
.site-footer {
  background: var(--forest);
  color: rgba(255,255,255,.7);
  padding: var(--sp-12) 0 var(--sp-8);
}
.footer-grid {
  display: grid;
  /* Mobile: single column. Tablet/desktop: expanded via responsive.css */
  grid-template-columns: 1fr;
  gap: var(--sp-8);
  margin-bottom: var(--sp-10);
}
.footer-brand .brand { color: #fff; }
.footer-brand .brand-logo { filter: brightness(0) invert(1); height: 72px; }
.footer-brand p { color: rgba(255,255,255,.65); margin-top: var(--sp-4); font-size: .9375rem; max-width: 320px; }
.footer-col h4 {
  color: #fff; font-size: .8125rem;
  text-transform: uppercase; letter-spacing: .12em;
  margin-bottom: var(--sp-5);
  font-weight: 600;
}
.footer-col ul { display: flex; flex-direction: column; gap: 12px; }
.footer-col a {
  color: rgba(255,255,255,.65);
  font-size: .9375rem;
  transition: color var(--t-fast);
}
.footer-col a:hover { color: var(--lime); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: var(--sp-6);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: var(--sp-4);
  font-size: .875rem; color: rgba(255,255,255,.5);
}
.social-row { display: flex; gap: 12px; }
.social-row a {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border-radius: var(--r-md);
  background: rgba(255,255,255,.06);
  color: rgba(255,255,255,.7);
  transition: all var(--t-fast);
}
.social-row a:hover { background: var(--lime); color: var(--forest); }

/* ── Forms ── */
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: .875rem; font-weight: 500; color: var(--ink-80); }
.input, .textarea, .select {
  width: 100%;
  padding: 12px 14px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  font-size: .9375rem;
  color: var(--ink);
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.input:focus, .textarea:focus, .select:focus {
  outline: none;
  border-color: var(--forest);
  box-shadow: 0 0 0 4px var(--forest-soft);
}
.textarea { resize: vertical; min-height: 120px; }
.field-error { color: var(--error); font-size: .8125rem; min-height: 16px; }
.form-status {
  margin-top: var(--sp-4);
  padding: 14px 16px;
  border-radius: var(--r-md);
  font-size: .9375rem;
  display: none;
}
.form-status.success { display: block; background: var(--success-bg); color: var(--success); }
.form-status.error { display: block; background: #FEF2F2; color: var(--error); }

/* ── Accordion ── */
.accordion { display: flex; flex-direction: column; gap: 12px; }
.acc-item {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.acc-item[open] { border-color: var(--forest-border); box-shadow: var(--shadow-sm); }
.acc-trigger {
  width: 100%; display: flex; justify-content: space-between; align-items: center;
  padding: 20px 24px;
  text-align: left;
  font-size: 1.0625rem; font-weight: 600; color: var(--ink);
  cursor: pointer;
  list-style: none;
}
.acc-trigger::-webkit-details-marker { display: none; }
.acc-trigger .acc-icon {
  width: 32px; height: 32px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--surface-sunken);
  color: var(--forest);
  transition: transform var(--t-base);
  flex-shrink: 0; margin-left: 16px;
}
.acc-item[open] .acc-icon { transform: rotate(45deg); background: var(--lime); }
.acc-body { padding: 0 24px 22px; color: var(--ink-60); font-size: .9375rem; line-height: 1.65; }

/* ── Pill / Badge ── */
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px;
  font-size: .75rem; font-weight: 500;
  border-radius: var(--r-pill);
  background: var(--surface-sunken);
  color: var(--ink-60);
}
.pill-success { background: var(--success-bg); color: var(--success); }
.pill-accent { background: var(--lime-soft); color: var(--forest); }

/* ── Stat ── */
.stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-4); }
.stat {
  padding: var(--sp-6);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: #fff;
}
.stat-value { font-size: clamp(2rem, 1.5rem + 1.5vw, 2.75rem); font-weight: 800; letter-spacing: -.03em; color: var(--forest); line-height: 1; }
.stat-label { margin-top: 8px; font-size: .875rem; color: var(--ink-60); }

/* ── Logo strip ── */
.logo-strip {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: var(--sp-8);
  padding: var(--sp-6) 0;
}
.logo-strip .logo-item {
  font-family: 'Geist Mono', monospace;
  font-weight: 600; font-size: 1.0625rem;
  color: var(--ink-40);
  letter-spacing: -.01em;
  opacity: .75;
  transition: opacity var(--t-fast), color var(--t-fast);
}
.logo-strip .logo-item:hover { opacity: 1; color: var(--forest); }

/* ── Floating badges (decorative) ── */
.badge-float {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  box-shadow: var(--shadow-md);
  font-size: .8125rem; font-weight: 500;
}
.badge-float .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 4px var(--success-bg); }