/* ============================================================
   Playful — landing one-page
   Palette: cream #F6F2E9 · deep green #1F5C3D · teal #3E8C7A
            sand #D9B98C · ink #16241D
   ============================================================ */

:root {
  --cream: #F6F2E9;
  --green: #1F5C3D;
  --teal: #3E8C7A;
  --sand: #D9B98C;
  --ink: #16241D;

  --radius-sm: 16px;
  --radius-lg: 24px;
  --maxw: 1120px;
  --space: clamp(4rem, 9vw, 7rem);

  --font-head: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: clamp(1rem, 0.96rem + 0.25vw, 1.125rem);
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.12;
  margin: 0;
  letter-spacing: -0.01em;
}

a { color: inherit; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 5vw, 3rem);
}

/* ---------- Accessibility helpers ---------- */
.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  background: var(--green);
  color: var(--cream);
  padding: 0.6rem 1rem;
  border-radius: var(--radius-sm);
  z-index: 100;
  transition: top 0.2s ease;
}
.skip-link:focus { top: 1rem; }

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  padding: 0.9rem 1.6rem;
  border-radius: var(--radius-lg);
  background: var(--green);
  color: var(--cream);
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  box-shadow: 0 10px 24px -10px rgba(31, 92, 61, 0.7);
}
.btn--sand {
  background: var(--sand);
  color: var(--ink);
  box-shadow: 0 10px 24px -12px rgba(0, 0, 0, 0.4);
}
.btn--ghost {
  background: transparent;
  color: var(--green);
  border-color: var(--green);
}
.btn--ghost:hover { background: var(--green); color: var(--cream); }

.btn--text {
  background: transparent;
  color: var(--ink);
  padding-inline: 0.5rem;
  border-radius: var(--radius-sm);
}
.btn--text:hover { color: var(--teal); }
.btn--text::after {
  content: "→";
  transition: transform 0.15s ease;
}
.btn--text:hover::after { transform: translateX(3px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(246, 242, 233, 0.88);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(22, 36, 29, 0.06);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 0.9rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}
.brand__name {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--ink);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(3.5rem, 9vw, 7rem);
}
.hero__inner {
  position: relative;
  z-index: 2;
  max-width: 760px;
}
.hero__blob {
  position: absolute;
  z-index: 1;
  pointer-events: none;
  opacity: 0.5;
}
.hero__blob--1 {
  width: clamp(360px, 55vw, 640px);
  top: -18%;
  right: -16%;
}
.hero__blob--2 {
  width: clamp(260px, 38vw, 440px);
  bottom: -32%;
  left: -14%;
  opacity: 0.55;
}

.hero__eyebrow,
.section-head__eyebrow {
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
  margin: 0 0 1rem;
}

.hero__title {
  font-size: clamp(2.4rem, 6.2vw, 4rem);
  margin-bottom: 1.25rem;
}

.u-underline {
  position: relative;
  white-space: nowrap;
}
.u-underline::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.04em;
  height: 0.22em;
  background: var(--sand);
  border-radius: 999px;
  z-index: -1;
}

.hero__subtext {
  font-size: clamp(1.1rem, 0.98rem + 0.5vw, 1.3rem);
  color: rgba(22, 36, 29, 0.78);
  max-width: 56ch;
  margin: 0 0 2rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}

/* ---------- Section divider ---------- */
.section-divider {
  width: 100%;
  height: clamp(60px, 9vw, 130px);
  display: block;
  margin-bottom: -1px;
}

/* ---------- Pillars ---------- */
.pillars {
  background: var(--teal);
  color: var(--cream);
  padding-block: var(--space);
}

.section-head {
  text-align: center;
  max-width: 620px;
  margin: 0 auto clamp(2.5rem, 5vw, 3.5rem);
}
.pillars .section-head__eyebrow { color: var(--sand); }
.section-head__title {
  font-size: clamp(1.9rem, 4vw, 2.8rem);
}

.pillars__grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
}

.pillar-card {
  background: var(--cream);
  color: var(--ink);
  border-radius: var(--radius-lg);
  padding: 2.25rem 1.9rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  box-shadow: 0 18px 40px -24px rgba(22, 36, 29, 0.55);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.pillar-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 26px 50px -22px rgba(22, 36, 29, 0.6);
}

.pillar-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 84px;
  height: 84px;
  border-radius: var(--radius-sm);
  border: 2px solid rgba(22, 36, 29, 0.08);
  margin-bottom: 0.5rem;
}
.pillar-card--tech .pillar-card__icon { background: rgba(62, 140, 122, 0.16); }
.pillar-card--community .pillar-card__icon { background: rgba(217, 185, 140, 0.28); }
.pillar-card--sustainability .pillar-card__icon { background: rgba(31, 92, 61, 0.14); }

.pillar-card__title {
  font-size: 1.5rem;
  color: var(--green);
}
.pillar-card__text {
  margin: 0;
  color: rgba(22, 36, 29, 0.82);
}

/* ---------- CTA ---------- */
.cta {
  position: relative;
  overflow: hidden;
  background: var(--green);
  color: var(--cream);
  padding-block: var(--space);
}
.cta__blob {
  position: absolute;
  width: clamp(300px, 45vw, 520px);
  right: -12%;
  bottom: -38%;
  opacity: 0.22;
  pointer-events: none;
}
.cta__inner {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 640px;
}
.cta__title {
  font-size: clamp(1.9rem, 4.4vw, 2.9rem);
  margin-bottom: 1rem;
}
.cta__text {
  color: rgba(246, 242, 233, 0.85);
  margin: 0 auto 2rem;
  max-width: 48ch;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--cream);
  border-top: 1px solid rgba(22, 36, 29, 0.08);
  padding-block: 2.5rem;
}
.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.site-footer__tagline {
  margin: 0;
  color: rgba(22, 36, 29, 0.7);
  font-size: 0.95rem;
}
.site-footer__mail {
  font-weight: 600;
  color: var(--green);
  text-decoration: none;
  border-bottom: 2px solid var(--sand);
  padding-bottom: 2px;
}
.site-footer__mail:hover { color: var(--teal); }

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .pillar-card { transition: none; }
}

/* ---------- Small screens ---------- */
@media (max-width: 540px) {
  .site-header__cta { display: none; }
  .hero__actions .btn { width: 100%; }
}
