/* Kapha website styles. Tokens come from ../styles.css (design system root). */

/* ---------- Layout primitives ---------- */
.wrap { max-width: 1140px; margin: 0 auto; padding: 0 24px; }
.section { padding: 88px 0; }
.section.tint { background: var(--surface-tint); }
.section.brand { background: var(--surface-brand); color: var(--white); }
.eyebrow {
  font-family: var(--font-display); font-size: var(--text-xs);
  letter-spacing: var(--tracking-eyebrow); text-transform: uppercase;
  color: var(--text-brand); font-weight: 700;
}
.section.brand .eyebrow { color: var(--aqua-300); }
.section h2 { font-size: var(--text-3xl); font-weight: 700; margin: 10px 0 16px; }
.lead { font-size: var(--text-lg); color: var(--ink-700); max-width: 58ch; }
.section.brand .lead { color: rgba(255,255,255,0.78); }

/* ---------- Header / nav ---------- */
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--green-800); color: #fff; padding: 10px 18px;
  border-radius: 0 0 var(--radius-md) 0; font-family: var(--font-display);
}
.skip-link:focus { left: 0; }
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,252,251,0.92);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border-subtle);
}
.site-header .bar {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 64px; gap: 24px;
}
.site-header .logo img { height: 30px; display: block; }
.site-nav { display: flex; align-items: center; gap: 8px; }
.site-nav a:not(.btn) {
  font-family: var(--font-display); font-weight: 700; font-size: 0.9375rem;
  color: var(--text-body); text-decoration: none;
  padding: 10px 14px; border-radius: var(--radius-pill);
  transition: background var(--duration-fast) var(--ease-out), color var(--duration-fast) var(--ease-out);
}
.site-nav a:not(.btn):hover { background: var(--blush-100); }
.site-nav a:not(.btn)[aria-current="page"] { color: var(--text-brand); background: var(--green-50); }
.nav-toggle { display: none; }

/* ---------- Brand (emerald) header variant: used when the hero is full-bleed emerald ---------- */
.site-header.on-brand { background: rgba(1,97,57,0.95); border-bottom: 1px solid rgba(255,255,255,0.12); }
.site-header.on-brand .site-nav a:not(.btn) { color: rgba(255,255,255,0.9); }
.site-header.on-brand .site-nav a:not(.btn):hover { background: rgba(255,255,255,0.12); }
.site-header.on-brand .site-nav a:not(.btn)[aria-current="page"] { color: var(--white); background: rgba(255,255,255,0.16); }
.site-header.on-brand .nav-toggle { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.4); }

/* ---------- Full-bleed emerald hero (Option B) ---------- */
.hero-brand { background: var(--surface-brand); position: relative; overflow: hidden; padding: 88px 0 96px; }
.hero-brand .eleph-graphic {
  position: absolute; right: -70px; top: 50%; transform: translateY(-50%);
  width: 460px; pointer-events: none;
}
.hero-brand .btn-outline-light { color: var(--white); border-color: rgba(255,255,255,0.5); }
.hero-brand .btn-outline-light:hover { background: rgba(255,255,255,0.12); }
@media (max-width: 1200px) {
  .hero-brand .eleph-graphic { width: 340px; right: -150px; opacity: 0.3; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-display); font-weight: 700; font-size: 0.9375rem;
  border-radius: var(--radius-pill); padding: 11px 22px; min-height: 44px;
  cursor: pointer; text-decoration: none; border: 1px solid transparent;
  box-sizing: border-box;
  transition: background var(--duration-base) var(--ease-out);
}
.btn-primary { background: var(--accent); color: var(--white); }
.btn-primary:hover { background: var(--accent-hover); }
.btn-secondary { background: transparent; color: var(--text-brand); border-color: var(--green-800); }
.btn-secondary:hover { background: var(--green-50); }
.btn-light { background: var(--white); color: var(--text-brand); }
.btn-light:hover { background: var(--blush-100); }
.btn-lg { padding: 14px 28px; font-size: 1.0625rem; }

/* ---------- Cards ---------- */
.card {
  background: var(--surface-card); border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg); padding: 32px; box-sizing: border-box;
}
.card.elephant-tr { border-top-right-radius: var(--radius-elephant); }
.card.elephant-bl { border-bottom-left-radius: var(--radius-elephant); }
.card h3 { font-size: var(--text-xl); font-weight: 700; margin-bottom: 8px; }
.card p { color: var(--ink-700); }
.card-green { background: var(--surface-brand); border: none; color: var(--white); }
.card-green h3 { color: var(--white); }
.card-green p { color: rgba(255,255,255,0.78); }
.card-blush { background: var(--surface-tint); border: none; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }

/* ---------- Forms ---------- */
.field { display: flex; flex-direction: column; gap: 6px; }
.field > span {
  font-family: var(--font-display); font-weight: 700; font-size: 0.875rem;
}
.field input, .field select, .field textarea {
  font-family: var(--font-body); font-size: 0.9375rem; color: var(--text-body);
  background: var(--surface-card); border: 1px solid var(--border-strong);
  border-radius: var(--radius-md); padding: 10px 14px; min-height: 44px;
  box-sizing: border-box; width: 100%;
}
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--blue-500); box-shadow: 0 0 0 3px var(--blue-100);
}
.field .hint { font-size: 0.75rem; color: var(--text-muted); }
form .form-stack { display: flex; flex-direction: column; gap: 16px; }
.form-error {
  background: var(--rose-100); color: var(--rose-700);
  border: 1px solid var(--rose-500); border-radius: var(--radius-md);
  padding: 12px 16px; margin-bottom: 16px; font-size: 0.9375rem;
}
.cf-turnstile { display: flex; justify-content: center; min-height: 65px; }

/* ---------- Photo slots ---------- */
.photo-slot {
  background: var(--green-100); border-radius: var(--radius-lg);
  display: flex; align-items: center; justify-content: center;
  color: var(--green-800); font-family: var(--font-display); font-weight: 700;
  font-size: 0.875rem; text-align: center; padding: 16px; box-sizing: border-box;
  border: 1px dashed var(--green-700);
}

/* ---------- Footer ---------- */
.site-footer { background: var(--green-900); color: var(--white); padding: 56px 0 32px; }
.site-footer .cols { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 44px; }
.site-footer .col { display: flex; flex-direction: column; gap: 10px; font-size: 0.875rem; }
.site-footer .col-head { font-family: var(--font-display); font-weight: 700; font-size: 0.875rem; }
.site-footer a { color: rgba(255,255,255,0.75); text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }
.site-footer .fineprint {
  border-top: 1px solid rgba(255,255,255,0.15); padding-top: 20px;
  font-size: 0.75rem; color: rgba(255,255,255,0.55); line-height: 1.7;
}

/* ---------- Misc ---------- */
.crumbline { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.check-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.check-list li { padding-left: 28px; position: relative; color: var(--ink-700); }
.check-list li::before {
  content: ''; position: absolute; left: 0; top: 7px;
  width: 14px; height: 8px;
  border-left: 2.5px solid var(--green-800); border-bottom: 2.5px solid var(--green-800);
  transform: rotate(-45deg);
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .grid-3, .grid-2, .site-footer .cols { grid-template-columns: 1fr; }
  .section { padding: 56px 0; }
  .hero-brand .eleph-graphic { width: 300px; right: -120px; opacity: 0.25; }
  .nav-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; border: 1px solid var(--border-strong);
    border-radius: var(--radius-md); background: var(--white); cursor: pointer;
    font-size: 20px; color: var(--ink-900);
  }
  .site-nav {
    display: none; position: absolute; top: 64px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; padding: 12px 24px 20px;
    background: var(--paper); border-bottom: 1px solid var(--border-subtle);
  }
  .site-nav.open { display: flex; }
  .site-header.on-brand .site-nav { background: var(--green-900); border-bottom-color: rgba(255,255,255,0.15); }
}
