/* ════════════════════════════════════════════════════════════════════
   ACHEVIA — marketing site
   Brand palette mirrors the Achevia app's Tailwind config.
   ════════════════════════════════════════════════════════════════════ */
:root {
  --forest: #1b3030;
  --forest-deep: #0f1a1a;
  --forest-700: #132222;
  --teal: #2d6a6a;
  --teal-700: #204a4a;
  --olive: #8c8c3e;
  --amber: #d99a3a;
  --gold: #d9b46a;
  --orange: #e67e22;
  --orange-600: #c46b1d;
  --cream: #f4f1ec;
  --warm-gray: #eae6e0;
  --paper: #fcfbf9;
  --ink: #1b3030;
  --body: #4c5a58;
  --line: rgba(27, 48, 48, 0.1);
  --white: #fff;

  --radius: 18px;
  --radius-sm: 12px;
  --shadow-sm: 0 1px 2px rgba(15, 26, 26, 0.06), 0 6px 18px rgba(15, 26, 26, 0.05);
  --shadow-md: 0 10px 30px rgba(15, 26, 26, 0.1);
  --shadow-lg: 0 24px 60px rgba(15, 26, 26, 0.16);
  --nav-h: 76px;
  --maxw: 1200px;

  --font-display: "Montserrat", system-ui, -apple-system, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--body);
  background: var(--paper);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.12;
  margin: 0;
  letter-spacing: -0.02em;
}

p {
  margin: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

svg {
  display: block;
}

[data-lucide] {
  width: 1em;
  height: 1em;
  stroke-width: 2;
}

.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 24px;
}

.section {
  padding-block: clamp(64px, 9vw, 112px);
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  background: var(--orange);
  color: #fff;
  padding: 10px 16px;
  border-radius: 8px;
  font-weight: 600;
  transition: top 0.2s;
}
.skip-link:focus {
  top: 12px;
}

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

/* ─── Buttons ──────────────────────────────────────────────────────── */
.btn {
  --btn-gap: 0.55em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--btn-gap);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1;
  padding: 13px 22px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background-color 0.2s ease, box-shadow 0.2s ease,
    border-color 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}
.btn i {
  font-size: 1.15em;
}
.btn:hover {
  transform: translateY(-2px);
}
.btn:active {
  transform: translateY(0);
}
.btn-lg {
  padding: 16px 28px;
  font-size: 1.02rem;
}
.btn-block {
  width: 100%;
}

.btn-primary {
  background: var(--orange);
  color: #fff;
  box-shadow: 0 8px 22px rgba(230, 126, 34, 0.32);
}
.btn-primary:hover {
  background: var(--orange-600);
  box-shadow: 0 12px 26px rgba(230, 126, 34, 0.4);
}

.btn-ghost-light {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.45);
}
.btn-ghost-light:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.8);
}

.btn-outline {
  background: transparent;
  color: var(--teal);
  border-color: rgba(45, 106, 106, 0.4);
}
.btn-outline:hover {
  background: var(--teal);
  color: #fff;
  border-color: var(--teal);
}

/* ─── Navigation ───────────────────────────────────────────────────── */
.site-nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  transition: background-color 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  border-bottom: 1px solid transparent;
}
.nav-inner {
  max-width: var(--maxw);
  margin-inline: auto;
  height: var(--nav-h);
  padding-inline: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.nav-logo {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}
.nav-logo img {
  height: 38px;
  width: auto;
}
.logo-on-light {
  display: none;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-inline: auto;
}
.nav-links a {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.96rem;
  color: rgba(255, 255, 255, 0.88);
  position: relative;
  padding: 6px 2px;
  transition: color 0.2s;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 2px;
  background: var(--orange);
  border-radius: 2px;
  transition: width 0.25s ease;
}
.nav-links a:hover::after {
  width: 100%;
}
.nav-links a:hover {
  color: #fff;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.85rem;
  padding: 8px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}
.lang-toggle i {
  font-size: 1rem;
}
.lang-toggle:hover {
  background: rgba(255, 255, 255, 0.12);
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 0;
  color: #fff;
  font-size: 1.6rem;
  cursor: pointer;
  padding: 6px;
  line-height: 0;
}

/* Scrolled state — solid cream, dark text + dark logo */
.site-nav.scrolled {
  background: rgba(252, 251, 249, 0.92);
  backdrop-filter: blur(12px);
  border-bottom-color: var(--line);
  box-shadow: 0 4px 20px rgba(15, 26, 26, 0.06);
}
.site-nav.scrolled .logo-on-dark {
  display: none;
}
.site-nav.scrolled .logo-on-light {
  display: block;
}
.site-nav.scrolled .nav-links a {
  color: var(--ink);
}
.site-nav.scrolled .nav-links a:hover {
  color: var(--teal);
}
.site-nav.scrolled .lang-toggle {
  color: var(--ink);
  border-color: var(--line);
}
.site-nav.scrolled .lang-toggle:hover {
  background: rgba(27, 48, 48, 0.06);
}
.site-nav.scrolled .nav-toggle {
  color: var(--ink);
}

/* Mobile menu */
.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 12px 24px 22px;
  background: var(--forest);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.site-nav.scrolled .mobile-menu {
  background: var(--paper);
}
.mobile-menu a {
  font-family: var(--font-display);
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  padding: 12px 4px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.site-nav.scrolled .mobile-menu a {
  color: var(--ink);
  border-bottom-color: var(--line);
}
.mobile-menu a.btn {
  border-bottom: 0;
  color: #fff;
  margin-top: 12px;
}
/* .open only takes effect at mobile widths — see the max-width:860 block.
   Above that the desktop nav-links are shown instead, so the menu must
   stay hidden even if it was left open before a resize. */

/* ─── Shared section bits ──────────────────────────────────────────── */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 18px;
}
.eyebrow.centered {
  justify-content: center;
}
.eyebrow-dash {
  width: 34px;
  height: 2px;
  background: var(--orange);
  border-radius: 2px;
  display: inline-block;
}
.eyebrow.on-dark {
  color: var(--orange);
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.025em;
}
.section-title.on-dark {
  color: #fff;
}
.text-teal {
  color: var(--teal);
}

.section-head.center {
  text-align: center;
  max-width: 760px;
  margin-inline: auto;
  margin-bottom: 56px;
}
.section-sub {
  margin-top: 18px;
  font-size: 1.1rem;
  color: var(--body);
}
.section-sub.on-dark {
  color: rgba(255, 255, 255, 0.72);
}
.lead-muted {
  color: var(--teal-700);
  font-size: 1.05rem;
  margin-top: 22px;
}

/* Reusable orange-tinted square icon tile (about + contact) */
.tile-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--orange);
  background: linear-gradient(135deg, #f6d2b2, #f3bf91);
  color: var(--orange-600);
  font-size: 1.4rem;
  flex-shrink: 0;
}

/* ─── HERO ─────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  background: radial-gradient(120% 120% at 80% 0%, #25433b 0%, var(--forest) 45%, var(--forest-deep) 100%);
  color: #fff;
  padding-top: calc(var(--nav-h) + 56px);
  padding-bottom: 150px;
  overflow: hidden;
  isolation: isolate;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
}
.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.5;
}
.hero-glow-1 {
  width: 480px;
  height: 480px;
  top: -160px;
  right: -120px;
  background: radial-gradient(circle, rgba(230, 126, 34, 0.35), transparent 70%);
}
.hero-glow-2 {
  width: 420px;
  height: 420px;
  bottom: -120px;
  left: -120px;
  background: radial-gradient(circle, rgba(45, 106, 106, 0.45), transparent 70%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
.hero-title {
  font-size: clamp(2.6rem, 5.2vw, 4.1rem);
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.03em;
  max-width: 14ch;
}
.accent-underline {
  color: var(--orange);
  position: relative;
  white-space: nowrap;
}
.accent-underline::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.06em;
  height: 0.14em;
  background: var(--orange);
  border-radius: 999px;
  opacity: 0.9;
}
.hero-lede {
  margin-top: 26px;
  font-size: 1.2rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.8);
  max-width: 46ch;
}
.hero-tagline {
  margin-top: 18px;
  font-style: italic;
  font-size: 1.02rem;
  color: var(--orange);
  max-width: 44ch;
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 36px;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}
.stat {
  display: flex;
  align-items: center;
  gap: 12px;
}
.stat > i {
  font-size: 1.5rem;
  color: var(--orange);
}
.stat-num {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.7rem;
  color: #fff;
  line-height: 1.1;
}
.stat-label {
  font-size: 0.86rem;
  color: rgba(255, 255, 255, 0.65);
}

/* Hero visual panel */
.hero-visual {
  position: relative;
  aspect-ratio: 4 / 4.4;
}
.hero-photo {
  position: absolute;
  inset: 0;
  border-radius: 26px;
  background-color: #2f5550; /* fallback if the photo fails to load */
  background-image: url("assets/hero.jpg");
  background-size: cover;
  background-position: center;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.hero-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 80% at 50% 0%, rgba(255, 255, 255, 0.14), transparent 60%),
    linear-gradient(180deg, transparent 50%, rgba(15, 26, 26, 0.25));
}
.float-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  color: var(--ink);
  padding: 14px 18px;
  border-radius: 16px;
  box-shadow: var(--shadow-md);
  z-index: 2;
  animation: floaty 5s ease-in-out infinite;
}
.float-card strong {
  display: block;
  font-family: var(--font-display);
  font-size: 0.98rem;
}
.float-card small {
  color: var(--teal);
  font-size: 0.82rem;
}
.float-card-tl {
  top: 38px;
  left: -28px;
}
.float-card-br {
  bottom: 48px;
  right: -24px;
  animation-delay: 1.4s;
}
.float-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 11px;
  font-size: 1.2rem;
}
.float-icon-orange {
  background: #fae5d3;
  color: var(--orange-600);
}
.float-icon-olive {
  background: #e8e8d8;
  color: var(--olive);
}
@keyframes floaty {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-9px);
  }
}

.hero-wave {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  line-height: 0;
}
.hero-wave svg {
  width: 100%;
  height: 90px;
}
.hero-wave path {
  fill: var(--warm-gray);
}

/* ─── ABOUT ────────────────────────────────────────────────────────── */
.about {
  background: var(--warm-gray);
}
.about-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
.mission-quote {
  position: relative;
  margin: 32px 0 0;
  background: #fff;
  border-left: 4px solid var(--orange);
  border-radius: 0 14px 14px 0;
  padding: 24px 26px 24px 28px;
  font-style: italic;
  color: var(--teal-700);
  font-size: 1.02rem;
  box-shadow: var(--shadow-sm);
}
.quote-mark {
  color: var(--orange);
  font-size: 1.4rem;
  opacity: 0.5;
  margin-bottom: 6px;
}

.about-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
.about-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.about-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}
.about-card h3 {
  margin-top: 18px;
  font-size: 1.18rem;
}
.about-card p {
  margin-top: 10px;
  font-size: 0.95rem;
  color: var(--body);
}

/* ─── PROGRAMS ─────────────────────────────────────────────────────── */
.programs {
  background: var(--paper);
}
/* ── Programs as a tree: Career Readiness (parent) → 4 sub-pathways ── */
.program-tree {
  --connector: rgba(45, 106, 106, 0.5);
  margin-top: 52px;
}

/* Parent hub — the goal everything builds toward */
.tree-top {
  display: flex;
  justify-content: center;
}
.tree-parent {
  display: flex;
  align-items: center;
  gap: 18px;
  max-width: 480px;
  text-align: left;
  background: linear-gradient(135deg, var(--forest), var(--teal-700));
  color: #fff;
  border-radius: var(--radius);
  padding: 24px 28px;
  box-shadow: var(--shadow-md);
}
.tree-parent .prog-icon {
  flex-shrink: 0;
}
.tree-parent h3 {
  color: #fff;
  font-size: 1.4rem;
}
.tree-parent p {
  color: rgba(255, 255, 255, 0.78);
  margin-top: 6px;
  font-size: 0.95rem;
}

/* Vertical stem from the parent down to the horizontal bus */
.tree-stem {
  display: block;
  width: 2px;
  height: 38px;
  margin: 0 auto;
  background: var(--connector);
}

/* Row of four sub-pathways */
.tree-children {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  row-gap: 38px;
}
.tree-node {
  position: relative;
  width: 232px;
  margin: 0 10px;
  padding-top: 38px;
}
/* Drop line from the bus down to each card */
.tree-node::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 2px;
  height: 38px;
  background: var(--connector);
  transform: translateX(-50%);
}
/* Horizontal bus across the top, trimmed to centre on the outer cards */
.tree-node::after {
  content: "";
  position: absolute;
  top: 0;
  left: -10px;
  right: -10px;
  height: 2px;
  background: var(--connector);
}
.tree-node:first-child::after {
  left: 50%;
}
.tree-node:last-child::after {
  right: 50%;
}

.node-card {
  height: 100%;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 22px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.node-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}
.node-card h3 {
  margin-top: 18px;
  font-size: 1.15rem;
}
.node-card p {
  margin-top: 10px;
  color: var(--teal-700);
  font-size: 0.95rem;
}

/* Small legal disclaimer under the pillars */
.programs-compliance {
  max-width: 760px;
  margin: 48px auto 0;
  padding-top: 26px;
  border-top: 1px solid var(--line);
  text-align: center;
  font-size: 0.82rem;
  line-height: 1.6;
  color: var(--body);
  opacity: 0.8;
}

/* Stack into a single vertical chain when 4-across no longer fits */
@media (max-width: 1040px) {
  .tree-children {
    flex-direction: column;
    align-items: center;
    row-gap: 0;
  }
  .tree-node {
    width: 100%;
    max-width: 440px;
    margin: 0;
    padding-top: 24px;
  }
  .tree-node::after {
    display: none; /* no horizontal bus in the vertical layout */
  }
  .tree-node::before {
    height: 24px; /* short vertical link between stacked cards */
  }
}

.prog-icon,
.value-icon,
.plan-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 16px;
  font-size: 1.55rem;
  color: #fff;
}
.icon-forest {
  background: var(--forest);
}
.icon-teal {
  background: var(--teal);
}
.icon-olive {
  background: var(--olive);
}
.icon-orange {
  background: var(--orange);
}
.icon-amber {
  background: var(--amber);
}

/* ─── VALUES (F.A.T.E.) ────────────────────────────────────────────── */
.values {
  position: relative;
  background: radial-gradient(120% 120% at 50% -10%, #244038 0%, var(--forest) 55%, var(--forest-deep) 100%);
  overflow: hidden;
}
/* Premium hub diagram: a glowing F·A·T·E core orbited by four glass cards */
.fate-diagram {
  margin-top: 64px;
}
.fate-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 150px 150px; /* generous centre void for the core */
  max-width: 900px;
  margin: 0 auto;
}

/* faint dashed spokes from the core out to each card (decorative) */
.fate-spokes {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}
.fate-spokes line {
  stroke: rgba(217, 180, 106, 0.3);
  stroke-width: 1.5;
  stroke-dasharray: 4 7;
  vector-effect: non-scaling-stroke;
}

/* central emblem */
.fate-core {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
  width: 138px;
  height: 138px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-align: center;
  background: radial-gradient(circle at 50% 32%, rgba(45, 106, 106, 0.6), rgba(11, 19, 19, 0.92));
  border: 1px solid rgba(217, 180, 106, 0.55);
  box-shadow: 0 0 0 9px rgba(217, 180, 106, 0.05), 0 0 46px rgba(45, 106, 106, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
}
.fate-core::before {
  content: "";
  position: absolute;
  inset: -15px;
  border-radius: 50%;
  border: 1px dashed rgba(217, 180, 106, 0.4);
  animation: fate-spin 28s linear infinite;
}
@keyframes fate-spin {
  to {
    transform: rotate(360deg);
  }
}
.fate-core-letters {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: 0.06em;
  background: linear-gradient(90deg, #628f8f, var(--gold), var(--orange));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--gold);
}
.fate-core-label {
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--gold);
  opacity: 0.85;
}

/* the four value cards */
.fate-card {
  position: relative;
  z-index: 1;
  overflow: hidden;
  border-radius: var(--radius);
  padding: 32px 28px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 16px 44px rgba(0, 0, 0, 0.28);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.fate-card.accent-teal {
  --accent: #2d6a6a;
}
.fate-card.accent-olive {
  --accent: #8c8c3e;
}
.fate-card.accent-amber {
  --accent: #d99a3a;
}
.fate-card.accent-orange {
  --accent: #e67e22;
}
/* soft accent glow in the corner */
.fate-card::after {
  content: "";
  position: absolute;
  top: -45%;
  right: -30%;
  width: 65%;
  height: 85%;
  background: radial-gradient(circle, var(--accent), transparent 70%);
  opacity: 0.18;
  pointer-events: none;
}
.fate-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 255, 255, 0.24);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 24px 56px rgba(0, 0, 0, 0.4),
    0 0 34px -8px var(--accent);
}
.fate-initial {
  position: absolute;
  top: 10px;
  right: 20px;
  z-index: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 4.6rem;
  line-height: 1;
  color: var(--accent);
  opacity: 0.22;
}
.fate-card .value-icon {
  position: relative;
  z-index: 1;
}
.fate-card h3 {
  position: relative;
  z-index: 1;
  color: #fff;
  margin-top: 18px;
  font-size: 1.25rem;
  letter-spacing: -0.01em;
}
.fate-card p {
  position: relative;
  z-index: 1;
  margin-top: 11px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.95rem;
}

/* Stack into a single column (core on top) on smaller screens */
@media (max-width: 820px) {
  .fate-grid {
    grid-template-columns: 1fr;
    gap: 18px;
    max-width: 460px;
  }
  .fate-spokes {
    display: none;
  }
  .fate-core {
    position: static;
    transform: none;
    order: -1;
    margin: 0 auto 6px;
  }
  .fate-core::before {
    animation: none;
  }
}

/* ─── MEMBERSHIP ───────────────────────────────────────────────────── */
.membership {
  background: var(--warm-gray);
}
.plan-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  align-items: stretch;
}
.plan-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 30px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.plan-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}
.plan-featured {
  border-color: var(--orange);
  box-shadow: 0 18px 44px rgba(230, 126, 34, 0.18);
}
.plan-badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--orange);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.74rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 999px;
  white-space: nowrap;
}
.plan-card h3 {
  margin-top: 20px;
  font-size: 1.45rem;
}
.plan-tag {
  color: var(--orange);
  font-family: var(--font-display);
  font-weight: 600;
  margin-top: 4px;
}
.plan-features {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 22px 0 18px;
  flex-grow: 1;
}
.plan-note {
  font-size: 0.85rem;
  color: var(--body);
  margin-bottom: 20px;
  line-height: 1.5;
}
.plan-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--body);
  font-size: 0.96rem;
}
.plan-features i {
  color: var(--teal);
  font-size: 1.05rem;
  flex-shrink: 0;
}

/* ─── CONTACT ──────────────────────────────────────────────────────── */
.contact {
  background: var(--paper);
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 22px;
  margin-top: 36px;
}
.contact-info li {
  display: flex;
  align-items: center;
  gap: 16px;
}
.contact-info strong {
  display: block;
  font-family: var(--font-display);
  color: var(--ink);
  font-size: 1.02rem;
}
.contact-info a,
.contact-info span {
  color: var(--teal);
}
.contact-info a:hover {
  color: var(--orange);
}
.contact-photo {
  margin-top: 36px;
  height: 240px;
  border-radius: var(--radius);
  background-color: #2f5550; /* fallback if the photo fails to load */
  background-image: url("assets/contact.jpg");
  background-size: cover;
  background-position: center;
  box-shadow: var(--shadow-md);
}

.contact-form {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: var(--shadow-md);
}
.hp-field {
  display: none !important;
}
/* Ensure the `hidden` attribute always wins (class display rules below would
   otherwise override it and leave status messages permanently visible). */
[hidden] {
  display: none !important;
}
.field {
  margin-bottom: 20px;
}
.field label {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 8px;
  font-size: 0.95rem;
}
.req {
  color: var(--orange);
}
.field input,
.field textarea,
.field select {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  background: #f6f4f0;
  border: 1.5px solid rgba(27, 48, 48, 0.14);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s;
}
.field textarea {
  resize: vertical;
  min-height: 120px;
}
.field input::placeholder,
.field textarea::placeholder {
  color: #9b8b7f;
}
.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  background: #fff;
  border-color: var(--orange);
  box-shadow: 0 0 0 4px rgba(230, 126, 34, 0.12);
}
.select-wrap {
  position: relative;
}
.select-wrap select {
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  color: var(--ink);
}
.select-wrap i {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--teal);
  pointer-events: none;
  font-size: 1.1rem;
}
.field.invalid input,
.field.invalid textarea {
  border-color: #c0392b;
  box-shadow: 0 0 0 4px rgba(192, 57, 43, 0.1);
}
.field-error {
  color: #c0392b;
  font-size: 0.82rem;
  margin-top: 6px;
  min-height: 0;
  display: none;
}
.field.invalid .field-error {
  display: block;
}
.form-note {
  text-align: center;
  color: var(--body);
  font-size: 0.86rem;
  margin-top: 16px;
}
.form-success {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
  padding: 12px;
  border-radius: var(--radius-sm);
  background: rgba(45, 106, 106, 0.1);
  color: var(--teal-700);
  font-weight: 600;
  font-family: var(--font-display);
}
.form-error {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
  padding: 12px;
  border-radius: var(--radius-sm);
  background: rgba(192, 57, 43, 0.1);
  color: #c0392b;
  font-weight: 600;
  font-family: var(--font-display);
  font-size: 0.9rem;
}
.btn[disabled],
.btn[aria-busy="true"] {
  opacity: 0.6;
  cursor: progress;
  pointer-events: none;
}

/* ─── FOOTER ───────────────────────────────────────────────────────── */
.site-footer {
  background: var(--forest-deep);
  color: rgba(255, 255, 255, 0.72);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 40px;
  padding-block: 64px 44px;
}
.footer-logo {
  height: 40px;
  width: auto;
  margin-bottom: 18px;
}
.footer-brand p {
  max-width: 42ch;
  font-size: 0.96rem;
}
.footer-col h4 {
  color: #fff;
  font-size: 1.02rem;
  margin-bottom: 16px;
}
.footer-col a,
.footer-col span {
  display: block;
  color: rgba(255, 255, 255, 0.72);
  padding: 5px 0;
  font-size: 0.95rem;
  transition: color 0.2s;
}
.footer-col a:hover {
  color: var(--orange);
}
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-block: 22px;
}
.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  font-size: 0.86rem;
}
.footer-tag {
  color: var(--orange);
  font-family: var(--font-display);
  font-weight: 600;
}

/* ─── Scroll reveal ────────────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.in {
  opacity: 1;
  transform: none;
}

/* ─── Responsive ───────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .nav-links {
    gap: 22px;
  }
  .value-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .program-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 860px) {
  .nav-links {
    display: none;
  }
  .nav-toggle {
    display: inline-flex;
  }
  .mobile-menu.open {
    display: flex;
  }
  .lang-toggle {
    display: none;
  }
  .hero-grid,
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 44px;
  }
  .hero {
    padding-bottom: 120px;
    text-align: left;
  }
  .hero-visual {
    max-width: 440px;
    margin-inline: auto;
    width: 100%;
  }
  .plan-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin-inline: auto;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 560px) {
  .container {
    padding-inline: 18px;
  }
  .program-grid,
  .about-cards,
  .value-grid {
    grid-template-columns: 1fr;
  }
  .hero-stats {
    gap: 22px;
  }
  .float-card-tl {
    left: 0;
  }
  .float-card-br {
    right: 0;
  }
  .contact-form {
    padding: 24px 20px;
  }
  .footer-grid,
  .footer-bottom-inner {
    grid-template-columns: 1fr;
    text-align: left;
  }
  .footer-bottom-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}
