/* ==========================================================
   WEKA — stylesheet (no frameworks)
   ========================================================== */

/* ---------- Tokens ---------- */
:root {
  --green-900: #13291c;
  --green-700: #1f3d2b;
  --green-500: #3f7a53;
  --ochre: #c98a2b;
  --cream: #f7f4ec;
  --paper: #fffdf8;
  --ink: #1d231f;
  --muted: #5d6a60;
  --line: rgba(31, 61, 43, 0.14);

  --radius: 14px;
  --shadow: 0 10px 30px rgba(19, 41, 28, 0.08);
  --max: 1160px;

  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-head: Georgia, "Times New Roman", serif;

  color-scheme: light;
  --bg: var(--paper);
  --surface: #ffffff;
  --text: var(--ink);
  --text-muted: var(--muted);
  --border: var(--line);
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0f1a14;
  --surface: #162419;
  --text: #e8efe9;
  --text-muted: #a9b8ac;
  --border: rgba(232, 239, 233, 0.12);
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #0f1a14;
    --surface: #162419;
    --text: #e8efe9;
    --text-muted: #a9b8ac;
    --border: rgba(232, 239, 233, 0.12);
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  }
}

/* ---------- Base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }

h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 0.6em;
  letter-spacing: -0.01em;
}
h2 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); }
h3 { font-size: 1.4rem; }
p { margin: 0 0 1em; }

.container {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}
.narrow { width: min(100% - 2.5rem, 820px); margin-inline: auto; }

.section { padding: clamp(4rem, 8vw, 7rem) 0; }

.eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ochre);
  margin-bottom: 0.75rem;
}

.hl { color: var(--green-500); }
:root[data-theme="dark"] .hl { color: #8cc79e; }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--ochre); color: #000; padding: 0.5rem 1rem; z-index: 100;
}
.skip-link:focus { left: 1rem; top: 1rem; }

:focus-visible { outline: 3px solid var(--ochre); outline-offset: 3px; border-radius: 4px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  border: 1.5px solid transparent;
  text-decoration: none;
  font-weight: 600;
  transition: transform .2s ease, background-color .2s ease, color .2s ease, border-color .2s ease;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary { background: var(--ochre); color: #1a1205; }
.btn-primary:hover { background: #d99a3a; }

.btn-ghost { border-color: currentColor; color: var(--text); }
.btn-ghost:hover { background: var(--green-700); border-color: var(--green-700); color: #fff; }

.btn-light { background: #fff; color: var(--green-900); }
.btn-light:hover { background: var(--cream); }

.btn-small { padding: 0.55rem 1.1rem; font-size: 0.9rem; background: var(--green-700); color: #fff; }
.btn-small:hover { background: var(--green-500); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem; min-height: 72px;
}
.brand { display: inline-flex; flex-shrink: 0; }
.brand .logo { height: 40px; width: auto; }

.nav ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; gap: 0.25rem; align-items: center;
}
.nav a,
.sub-toggle {
  display: block; padding: 0.5rem 0.8rem;
  text-decoration: none; font-weight: 500; font-size: 0.95rem;
  background: none; border: 0; border-radius: 8px;
  transition: background-color .2s ease, color .2s ease;
}
.nav a:hover,
.sub-toggle:hover { background: color-mix(in srgb, var(--green-500) 12%, transparent); }
.nav a[aria-current="page"] { color: var(--ochre); }

.has-sub { position: relative; }
.sub {
  list-style: none; margin: 0; padding: 0.5rem;
  position: absolute; top: 100%; left: 0; min-width: 200px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 12px; box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s;
}
.has-sub:hover .sub,
.has-sub:focus-within .sub,
.has-sub.open .sub { opacity: 1; visibility: visible; transform: none; }
.sub a { display: block; padding: 0.55rem 0.8rem; border-radius: 8px; }

.header-actions { display: flex; align-items: center; gap: 0.6rem; }

.theme-toggle {
  width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid var(--border); background: transparent;
  display: grid; place-items: center; font-size: 1.1rem;
}
.theme-toggle:hover { background: color-mix(in srgb, var(--green-500) 12%, transparent); }

.menu-toggle {
  display: none; width: 44px; height: 44px;
  background: none; border: 0; padding: 0;
  flex-direction: column; justify-content: center; gap: 5px;
}
.menu-toggle span {
  display: block; width: 22px; height: 2px; margin-inline: auto;
  background: currentColor; border-radius: 2px;
  transition: transform .3s ease, opacity .3s ease;
}
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Logos: show light logo by default, swap in dark theme */
.logo-dark { display: none; }
:root[data-theme="dark"] .logo-light { display: none; }
:root[data-theme="dark"] .logo-dark { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .logo-light { display: none; }
  :root:not([data-theme="light"]) .logo-dark { display: block; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: min(88vh, 820px);
  display: flex; align-items: center;
  padding: 6rem 0 5rem;
  background:
    radial-gradient(1200px 600px at 85% -10%, rgba(201, 138, 43, 0.22), transparent 60%),
    radial-gradient(900px 500px at -10% 110%, rgba(63, 122, 83, 0.25), transparent 60%),
    linear-gradient(160deg, var(--green-700), var(--green-900));
  color: #f4f1e8;
  overflow: hidden;
}
.hero .eyebrow { color: #f1c27a; }
.hero-inner { position: relative; z-index: 1; max-width: 880px; }
.hero h1 {
  font-size: clamp(2.8rem, 8vw, 6rem);
  margin-bottom: 1.5rem;
}
.hero h1 .word { display: block; opacity: 0; transform: translateY(24px); animation: rise .9s cubic-bezier(.2,.7,.2,1) forwards; }
.hero h1 .word:nth-child(1) { animation-delay: .15s; }
.hero h1 .word:nth-child(2) { animation-delay: .35s; }
.hero h1 .word:nth-child(3) { animation-delay: .55s; }
.hero h1 .accent { color: #f1c27a; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 2rem; }
.hero .btn-ghost { color: #f4f1e8; }
.hero .btn-ghost:hover { color: #fff; }

.scroll-cue {
  position: absolute; left: 50%; bottom: 2rem; transform: translateX(-50%);
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.35);
  display: grid; place-items: center; text-decoration: none; color: #fff;
  animation: bob 2.4s ease-in-out infinite;
}

@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes bob { 50% { transform: translate(-50%, 6px); } }

/* ---------- About ---------- */
.split {
  display: grid; gap: clamp(2rem, 5vw, 4rem);
  grid-template-columns: 1fr 1fr; align-items: center;
}
.media { margin: 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 5; }
.link-arrow {
  display: inline-flex; gap: 0.4rem; font-weight: 600; text-decoration: none;
  color: var(--green-500); border-bottom: 2px solid currentColor; padding-bottom: 2px;
  transition: gap .2s ease;
}
.link-arrow:hover { gap: 0.8rem; }
:root[data-theme="dark"] .link-arrow { color: #8cc79e; }

/* ---------- Offer ---------- */
.offer { background: var(--cream); }
:root[data-theme="dark"] .offer { background: #111f16; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .offer { background: #111f16; }
}

.section-head { max-width: 760px; margin-bottom: 3rem; }
.section-head h2 { margin-bottom: 1rem; }
.lead { font-size: 1.1rem; color: var(--text-muted); }

.cards {
  display: grid; gap: 1.5rem;
  grid-template-columns: repeat(3, 1fr);
}
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow);
  display: flex; flex-direction: column;
  transition: transform .3s ease, box-shadow .3s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(19,41,28,.14); }
.card-img { aspect-ratio: 16 / 11; overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.card:hover .card-img img { transform: scale(1.05); }
.card-body { padding: 1.6rem 1.6rem 1.9rem; }
.card-body h3 a { text-decoration: none; }
.card-body h3 a:hover { color: var(--ochre); }
.card-body p { color: var(--text-muted); font-size: 0.97rem; }

/* ---------- CTA band ---------- */
.cta {
  padding: clamp(3rem, 6vw, 4.5rem) 0;
  background: var(--ochre);
  color: #1a1205;
}
.cta-inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 2rem;
}
.cta h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); max-width: 620px; margin-bottom: .4rem; }
.cta p { margin: 0; max-width: 620px; }
.cta .btn-light { background: #1a1205; color: #fff; }
.cta .btn-light:hover { background: var(--green-900); }

/* ---------- Support ---------- */
.support h2 { line-height: 1.25; }
.support .section-head { margin-bottom: 2rem; }
.support p { color: var(--text-muted); font-size: 1.05rem; }

/* ---------- FAQ ---------- */
.faq { background: var(--cream); }
:root[data-theme="dark"] .faq { background: #111f16; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .faq { background: #111f16; }
}
.faq h2 { margin-bottom: 2rem; }
.faq-list details {
  border-bottom: 1px solid var(--border);
  padding: 1.2rem 0;
}
.faq-list details:first-child { border-top: 1px solid var(--border); }
.faq-list summary {
  cursor: pointer; font-weight: 600; font-size: 1.1rem;
  list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+"; font-size: 1.5rem; line-height: 1; color: var(--ochre);
  transition: transform .25s ease;
}
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list details p { margin: 1rem 0 0; color: var(--text-muted); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--green-900); color: #d9e2da;
  padding-top: 4rem;
}
.footer-inner {
  display: grid; gap: 2.5rem; grid-template-columns: 1.4fr 1fr;
  padding-bottom: 3rem; align-items: start;
}
.footer-brand .logo { height: 44px; width: auto; margin-bottom: 1rem; }
.footer-brand p { max-width: 420px; color: #b7c6ba; margin-bottom: 1.5rem; }
.footer-brand .logo-light { display: block; }
.footer-brand .logo-dark { display: none; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.footer-links a { color: #d9e2da; text-decoration: none; }
.footer-links a:hover { color: #f1c27a; text-decoration: underline; }
.copyright {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 1.5rem 0 2rem; font-size: .9rem; color: #93a598;
}
.copyright p { margin: 0; }

.back-to-top {
  position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 40;
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--ochre); color: #1a1205; text-decoration: none;
  display: grid; place-items: center; font-size: 1.2rem; font-weight: 700;
  box-shadow: var(--shadow);
  opacity: 0; transform: translateY(12px); pointer-events: none;
  transition: opacity .3s ease, transform .3s ease;
}
.back-to-top.show { opacity: 1; transform: none; pointer-events: auto; }

/* ---------- Reveal on scroll ---------- */
.js .reveal {
  opacity: 0; transform: translateY(28px);
  transition: opacity .8s ease, transform .8s cubic-bezier(.2,.7,.2,1);
  transition-delay: var(--d, 0s);
}
.js .reveal.in { opacity: 1; transform: none; }
.js .cards .reveal:nth-child(2) { --d: .12s; }
.js .cards .reveal:nth-child(3) { --d: .24s; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .cards { grid-template-columns: 1fr 1fr; }
  .cards .card:last-child { grid-column: 1 / -1; }
}

@media (max-width: 860px) {
  .menu-toggle { display: flex; }
  .btn-small { display: none; }

  .nav {
    position: fixed; inset: 72px 0 auto 0;
    background: var(--bg); border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
    max-height: calc(100vh - 72px); overflow-y: auto;
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity .25s ease, transform .25s ease, visibility .25s;
  }
  .nav.open { transform: none; opacity: 1; visibility: visible; }
  .nav ul { flex-direction: column; align-items: stretch; padding: 1rem 1.25rem; gap: 0; }
  .nav a, .sub-toggle { padding: .9rem .25rem; font-size: 1.05rem; border-radius: 0; border-bottom: 1px solid var(--border); width: 100%; text-align: left; }
  .sub {
    position: static; opacity: 1; visibility: visible; transform: none;
    box-shadow: none; border: 0; background: transparent; padding: 0 0 0 1rem; min-width: 0;
    max-height: 0; overflow: hidden; transition: max-height .3s ease;
  }
  .has-sub.open .sub { max-height: 300px; }

  .split { grid-template-columns: 1fr; }
  .media img { aspect-ratio: 16 / 11; }
  .footer-inner { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .cards { grid-template-columns: 1fr; }
  .cards .card:last-child { grid-column: auto; }
  .cta-inner { flex-direction: column; align-items: flex-start; }
  .hero { min-height: auto; padding: 5rem 0 6rem; }
  .scroll-cue { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  .js .reveal { opacity: 1; transform: none; }
}
