/* =====================================================
   global.css — Agape Movement
   Tokens + reset + nav + footer
   Loaded on every page via functions.php
===================================================== */

/* =====================================================
   TOKENS
===================================================== */
:root {
  --color-text:       #373925;
  --color-text-soft:  #8a8978;
  --color-accent:     #624a36;
  --color-accent-soft:#dbcbb9;
  --color-border:     #d1d6d4;
  --color-bg:         #ffffff;
  --color-bg-alt:     #f5f3ee;
  --color-dark:       #373925;
  --color-white:      #ffffff;

  --font-body:    'Gotu', sans-serif;
  --font-display: 'Archivo', sans-serif;
  --font-script:  'League Script', cursive;

  --ease:     cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --t:        all 0.35s var(--ease);

  --max-w:        1200px;
  --pad-x:        28px;
  --section-gap:  80px;
  --radius:       18px;
  --radius-pill:  999px;
  --float-mx:     16px;
  --float-radius: 24px;
}

/* =====================================================
   RESET
===================================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: clip; }
body {
  font-family: var(--font-body);
  background: var(--color-bg-alt);
  color: var(--color-text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { border: 0; background: none; cursor: pointer; font: inherit; }

/* =====================================================
   LAYOUT
===================================================== */
.wrap {
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--pad-x);
}

/* =====================================================
   TYPE UTILITIES
===================================================== */
.eyebrow {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--color-text);
}
.eyebrow--dark { color: var(--color-text); }
.body-text {
  font-size: 15px;
  color: var(--color-text-soft);
  line-height: 1.75;
  font-weight: 400;
}

/* =====================================================
   BUTTONS
===================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 12.5px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  height: 46px;
  padding: 0 26px;
  border-radius: var(--radius-pill);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: var(--t);
  position: relative;
  overflow: hidden;
  text-decoration: none;
}
.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 35%, rgba(255,255,255,.18) 50%, transparent 65%);
  transform: translateX(-120%);
  transition: transform 0.8s var(--ease);
  pointer-events: none;
}
.btn:hover::after { transform: translateX(120%); }
.btn:hover { transform: translateY(-2px); }

.btn--fill {
  background: var(--color-text);
  color: #fff;
  border-color: var(--color-text);
  box-shadow: 0 8px 24px -10px rgba(55,57,37,.40);
}
.btn--fill:hover {
  background: var(--color-accent);
  border-color: var(--color-accent);
  box-shadow: 0 16px 36px -10px rgba(98,74,54,.50);
}
.btn--outline {
  background: transparent;
  color: var(--color-text);
  border-color: var(--color-border);
}
.btn--outline:hover { background: var(--color-text); color: #fff; border-color: var(--color-text); }
.btn--ghost-light {
  background: rgba(255,255,255,.14);
  color: #fff;
  border-color: rgba(255,255,255,.35);
  backdrop-filter: blur(6px);
}
.btn--ghost-light:hover { background: #fff; color: var(--color-text); border-color: #fff; }
.btn--lg { height: 52px; padding: 0 32px; font-size: 13px; }

.btn .arrow { transition: transform 0.35s var(--ease); display: inline-block; }
.btn:hover .arrow { transform: translateX(4px); }

/* =====================================================
   REVEAL ANIMATION
===================================================== */
[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.65s var(--ease-out), transform 0.65s var(--ease-out);
}
[data-reveal].is-visible { opacity: 1; transform: none; }
[data-reveal-delay="1"] { transition-delay: 0.08s; }
[data-reveal-delay="2"] { transition-delay: 0.16s; }
[data-reveal-delay="3"] { transition-delay: 0.26s; }
[data-reveal-delay="4"] { transition-delay: 0.36s; }

@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

/* =====================================================
   GRAIN TEXTURE
===================================================== */
.grain {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .06;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.5 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* =====================================================
   NAV
===================================================== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 0 24px;
  background: rgba(255,255,255,0);
  border-bottom: 1px solid transparent;
  transition: background 0.5s var(--ease), border-color 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.nav.scrolled {
  background: rgba(255,255,255,.96);
  border-color: var(--color-border);
  box-shadow: 0 4px 20px -8px rgba(55,57,37,.12);
  backdrop-filter: blur(12px);
}

/* Inner row */
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 66px;
  gap: 20px;
  max-width: var(--max-w);
  margin-inline: auto;
}

/* Logo */
.nav__logo {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
}
.nav__logo-img {
  height: 32px;
  width: auto;
  display: block;
  /* White on hero, reverts on scroll */
  filter: brightness(0) invert(1);
  transition: filter 0.5s var(--ease);
}
.nav.scrolled .nav__logo-img {
  filter: none;
}

/* Desktop links — WP outputs <li><a> so target both */
.nav__links {
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,.70);
  transition: color 0.4s ease;
}
.nav.scrolled .nav__links {
  color: var(--color-text-soft);
}
/* WP wraps items in <li> */
.nav__links li { list-style: none; }
.nav__links a,
.nav__links li a {
  color: inherit;
  text-decoration: none;
  position: relative;
  transition: color 0.25s;
}
.nav__links a::after,
.nav__links li a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--color-accent-soft);
  transition: width 0.3s var(--ease);
}
.nav__links a:hover,
.nav__links li a:hover,
.nav__links .current-menu-item > a {
  color: #fff;
}
.nav.scrolled .nav__links a:hover,
.nav.scrolled .nav__links li a:hover,
.nav.scrolled .nav__links .current-menu-item > a {
  color: var(--color-text);
}
.nav__links a:hover::after,
.nav__links li a:hover::after,
.nav__links .current-menu-item > a::after {
  width: 100%;
}

/* Right group */
.nav__right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
}

/* CTA pill */
.nav__cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,.12);
  color: #fff;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 10px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 9px 18px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255,255,255,.15);
  transition: all 0.3s ease;
  white-space: nowrap;
  backdrop-filter: blur(6px);
  text-decoration: none;
}
.nav__cta-arrow {
  display: inline-block;
  transition: transform 0.3s var(--ease);
}
.nav__cta:hover {
  background: var(--color-accent-soft);
  color: var(--color-text);
  border-color: var(--color-accent-soft);
  transform: translateY(-2px);
}
.nav__cta:hover .nav__cta-arrow { transform: translateX(4px); }

.nav.scrolled .nav__cta {
  background: var(--color-text);
  color: #fff;
  border-color: var(--color-text);
  backdrop-filter: none;
}
.nav.scrolled .nav__cta:hover {
  background: var(--color-accent);
  border-color: var(--color-accent);
}

/* Burger */
.nav__burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  padding: 4px;
  background: none;
  border: none;
  cursor: pointer;
}
.nav__burger span {
  display: block;
  height: 2px;
  width: 100%;
  background: #fff;
  border-radius: 2px;
  transition: all 0.35s var(--ease);
}
.nav.scrolled .nav__burger span { background: var(--color-text); }
.nav__burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__burger.is-open span:nth-child(2) { opacity: 0; }
.nav__burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile panel */
.nav__mobile {
  display: none;
  flex-direction: column;
  background: var(--color-bg);
  border-top: 1px solid var(--color-border);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.45s var(--ease-out);
}
.nav__mobile.is-open { max-height: 600px; }
.nav__mobile-links { display: flex; flex-direction: column; }
.nav__mobile-links li { list-style: none; }
.nav__mobile-links a,
.nav__mobile-links li a {
  display: block;
  padding: 13px var(--pad-x);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-text-soft);
  text-decoration: none;
  border-bottom: 1px solid var(--color-border);
  transition: color 0.2s, background 0.2s;
}
.nav__mobile-links a:hover,
.nav__mobile-links li a:hover,
.nav__mobile-links .current-menu-item > a {
  color: var(--color-text);
  background: var(--color-bg-alt);
}
.nav__mobile-cta {
  margin: 20px var(--pad-x) 24px;
  align-self: flex-start;
}

/* ── Responsive nav ── */
@media (max-width: 768px) {
  .nav__links { display: none; }
  .nav__cta   { display: none; }
  .nav__burger { display: flex; }
  .nav__mobile { display: flex; }
  .nav { padding: 0 16px; }
  .nav__logo-img { height: 26px; }
}

/* =====================================================
   FOOTER
===================================================== */
.footer {
  background: var(--color-dark);
  color: rgba(255,255,255,.65);
  margin: 16px var(--float-mx);
  border-radius: var(--float-radius);
  overflow: hidden;
}

/* Top: brand + CTA */
.footer-top {
  padding: clamp(40px, 5vw, 56px) 0 36px;
  border-bottom: 1px solid rgba(255,255,255,.10);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: end;
}
.footer-brand { display: flex; flex-direction: column; gap: 12px; }

.footer-logo { display: block; text-decoration: none; }
.footer-logo__img {
  height: 28px;
  width: auto;
  display: block;
  /* Invert to white — remove if you have a dedicated white logo */
  filter: brightness(0) invert(1);
  opacity: 0.9;
}

.footer-tagline {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: rgba(255,255,255,.35);
}
.footer-address {
  font-size: 12.5px;
  color: rgba(255,255,255,.40);
  letter-spacing: 0.04em;
  line-height: 1.65;
  font-style: normal;
}
.footer-cta-block {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-end;
  flex-shrink: 0;
}
.footer-cta-label {
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-accent-soft);
}
.footer-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(255,255,255,.08);
  color: #fff;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255,255,255,.18);
  text-decoration: none;
  transition: background 0.25s, border-color 0.25s;
}
.footer-cta-btn:hover {
  background: var(--color-accent);
  border-color: var(--color-accent);
}

/* Mid: nav + social */
.footer-mid {
  padding: 24px 0;
  border-bottom: 1px solid rgba(255,255,255,.10);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-links-wrap { display: flex; }
.footer-links {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-links li { list-style: none; }
.footer-links a,
.footer-links li a {
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,.48);
  text-decoration: none;
  transition: color 0.25s;
}
.footer-links a:hover,
.footer-links li a:hover { color: #fff; }

.social { display: flex; gap: 9px; }
.social a {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.16);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: rgba(255,255,255,.55);
  text-decoration: none;
  transition: background 0.25s, border-color 0.25s, color 0.25s;
}
.social a:hover {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: #fff;
}

/* Bottom: legal + copyright */
.footer-bottom {
  padding: 18px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.footer-bottom .legal { display: flex; gap: 16px; flex-wrap: wrap; }
.footer-bottom .legal a {
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,.28);
  text-decoration: none;
  transition: color 0.25s;
}
.footer-bottom .legal a:hover { color: rgba(255,255,255,.70); }
.copyline {
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,.26);
}

@media (max-width: 600px) {
  .footer { margin: 8px var(--float-mx); }
  .footer-top { grid-template-columns: 1fr; gap: 24px; }
  .footer-cta-block { align-items: flex-start; }
  .footer-mid { flex-direction: column; align-items: flex-start; }
}

/* =====================================================
   SCROLLBAR + SELECTION
===================================================== */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--color-bg); }
::-webkit-scrollbar-thumb { background: var(--color-text); border-radius: 8px; border: 2px solid var(--color-bg); }
::-webkit-scrollbar-thumb:hover { background: var(--color-accent); }
::selection { background: var(--color-text); color: #fff; }

/* =====================================================
   MOBILE RESPONSIVE GLOBALS
===================================================== */
@media (max-width: 600px) {
  :root {
    --section-gap: 60px;
    --pad-x: 18px;
    --float-mx: 8px;
    --float-radius: 18px;
  }
}