﻿/* ============================================================
   Enhance Education — RSVP
   Brand tokens aligned with the new enhanceeducation website
   (uniquepoint-dev) design system: same --ee-* palette, Playfair
   Display headings, Source Sans 3 body, pill buttons, soft shadows.
   ============================================================ */

:root {
  /* Palette (mirrors the new site's --ee-* tokens) */
  --ee-forest: #063d2b;
  --ee-forest-2: #0d5a3f;
  --ee-header: #052e29; /* header + footer chrome (matches the dev site) */
  --ee-gold: #c79a2c;
  --ee-gold-lt: #f2dfaa;
  /* The main site's header buttons use a lighter gold than the --ee-gold
     token, with dark forest text rather than white. Taken from the live
     header's own --eeh-gold / --eeh-gold-light, not derived from --ee-gold —
     keep them separate or the header stops matching. */
  --ee-gold-cta: #d8ad4d;
  --ee-gold-cta-hover: #efd17e;
  --ee-cta-ink: #052e29;
  --ee-cream: #fbf7ee;
  --ee-cream-2: #fffaf1;
  --ee-muted: #5f6f67;
  --ee-ink: #102018;
  --ee-border: rgba(6, 61, 43, 0.14);

  /* Fonts */
  --ee-font-display: "Playfair Display", Georgia, "Times New Roman", serif;
  /* Source Sans 3, matching the main site's body face (its Open Sans days are
     over). Headings stay Playfair Display, which both sites share. */
  --ee-font-body: "Source Sans 3", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;

  /* Spacing base unit = 8px */
  --s1: 8px;  --s2: 16px; --s3: 24px; --s4: 32px;
  --s6: 48px; --s8: 64px; --s10: 80px; --s12: 96px;

  /* Measured off the main site's boxed container (.eeh-wrap), which is
     width:96% capped at 1240px with no inner padding. Matching it puts the
     header logo and every content block on the same left edge as the main
     site — at a 1585px viewport both sit at x=173. */
  --maxw: 1240px;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 24px 70px rgba(7, 43, 30, 0.14);
  --shadow-sm: 0 12px 32px rgba(7, 43, 30, 0.10);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--ee-font-body);
  color: var(--ee-ink);
  background: var(--ee-cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.6;
}

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

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

.wrap {
  /* 96% + max-width (rather than 100% + padding) mirrors the main site: above
     ~1292px the container locks to 1240px with no inner padding, below that it
     keeps a proportional 2% gutter. Phones get a fixed gutter instead — see the
     560px breakpoint, where 2% would leave text almost touching the edge. */
  width: 96%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0;
}

/* ---------- Typography ---------- */
/* Tight display tracking to match the new site's headings */
h1, h2, h3 { font-family: var(--ee-font-display); font-weight: 700; line-height: 1.15; margin: 0; letter-spacing: -0.02em; }
h1 { letter-spacing: -0.04em; }

.eyebrow {
  font-family: var(--ee-font-body);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.72rem;
  color: var(--ee-gold);
}

.gold-rule {
  width: 56px; height: 3px; border: 0;
  background: var(--ee-gold);
  border-radius: 2px;
  margin: var(--s2) 0;
}
.gold-rule.center { margin-left: auto; margin-right: auto; }

/* ============================================================
   Header — solid forest bar with the brand lockup, matching the
   new main website's header.
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--ee-header);
  border-bottom: 1px solid rgba(199, 154, 44, 0.20);
}
/* Header, footer and body all share one container width (--maxw), same as the
   main site — no separate override, or the logo drifts right of the content. */
.site-header .bar {
  display: flex; align-items: center; justify-content: space-between;
  height: 89px; /* matches the dev site nav bar */
}
/* The logo is a plain link home — no hover scale or transition. `cursor:
   pointer` is the only affordance it needs; anything animated reads as a
   button and made the lockup appear to jump. */
.brand-lockup { display: flex; align-items: center; cursor: pointer; }
.brand-lockup img { height: 61px; width: auto; }
/* Gold pill CTA, matching the new site's nav button */
/* Mirrors the main site's .eeh-btn / .eeh-btn-gold rule exactly, so the two
   headers read as one system. The inline-flex + min-height is what produces the
   44px pill — the 11px padding on a 13px line box alone would give 35px. */
.header-cta {
  display: inline-flex; align-items: center; justify-content: center;
  box-sizing: border-box;
  min-height: 44px;
  padding: 11px 20px;
  border: 1px solid transparent;
  border-radius: 100px;
  font-family: var(--ee-font-body); font-weight: 800;
  font-size: 13px; line-height: 1;
  color: var(--ee-cta-ink);
  background: var(--ee-gold-cta);
  transition: transform 0.2s, background 0.2s, border-color 0.2s, color 0.2s;
}
/* The main site lifts its buttons 2px and swaps to the lighter gold. Unlike the
   logo, this one is a real button, so the movement belongs here. */
.header-cta:hover { transform: translateY(-2px); background: var(--ee-gold-cta-hover); }

/* ============================================================
   Hero
   ============================================================ */
.hero {
  position: relative;
  background: radial-gradient(120% 120% at 78% 12%, var(--ee-forest-2) 0%, var(--ee-forest) 55%);
  color: var(--ee-cream);
  overflow: hidden;
  padding: var(--s12) 0 var(--s10);
}
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(40% 55% at 82% 28%, rgba(199,154,44,0.20), transparent 70%),
    radial-gradient(50% 60% at 12% 90%, rgba(13,90,63,0.30), transparent 70%);
  pointer-events: none;
}
.hero .wrap { position: relative; z-index: 2; }
.hero h1 {
  font-size: clamp(2.6rem, 6vw, 4.4rem);
  color: var(--ee-cream);
  max-width: 14ch;
  margin-top: var(--s2);
}
.hero h1 .accent { color: var(--ee-gold); font-style: italic; }
.hero p.lead {
  margin-top: var(--s3);
  max-width: 52ch;
  font-size: 1.06rem;
  color: rgba(251, 247, 238, 0.86);
}
.hero .scroll-hint {
  margin-top: var(--s8);
  display: inline-flex; align-items: center; gap: var(--s1);
  font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ee-gold-lt);
}
.scroll-hint .dot {
  width: 22px; height: 34px; border: 2px solid var(--ee-gold-lt);
  border-radius: 12px; position: relative;
}
.scroll-hint .dot::after {
  content: ""; position: absolute; left: 50%; top: 7px; width: 3px; height: 7px;
  background: var(--ee-gold-lt); border-radius: 2px; transform: translateX(-50%);
  animation: scrolldot 1.6s var(--ease) infinite;
}
@keyframes scrolldot {
  0% { opacity: 0; transform: translate(-50%, 0); }
  40% { opacity: 1; }
  100% { opacity: 0; transform: translate(-50%, 12px); }
}

/* faint brain-cloud watermark */
.hero .watermark {
  position: absolute; right: -80px; top: 40px; width: 620px; max-width: 60vw;
  opacity: 0.06; z-index: 1; pointer-events: none;
  filter: brightness(0) invert(1);
}

/* ============================================================
   Events section
   ============================================================ */
.events {
  padding: var(--s12) 0;
  background:
    linear-gradient(180deg, var(--ee-cream) 0%, var(--ee-cream-2) 100%);
}
.section-head { max-width: 60ch; margin-bottom: var(--s8); }
.section-head h2 {
  font-size: clamp(1.9rem, 3.6vw, 2.8rem);
  color: var(--ee-forest);
  margin-top: var(--s1);
}
.section-head p { color: rgba(16,32,24,0.7); margin-top: var(--s2); }

.event-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--s4);
}

.event-card {
  position: relative;
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  display: flex; flex-direction: column;
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
  border: 1px solid var(--ee-border);
  will-change: transform;
}
.event-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow);
}
.event-card .thumb {
  position: relative; aspect-ratio: 16 / 10; overflow: hidden;
  background: var(--ee-forest);
}
.event-card .thumb img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.7s var(--ease);
}
.event-card:hover .thumb img { transform: scale(1.06); }
.event-card .thumb .scrim {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(6,61,43,0.55) 100%);
}
.badge {
  position: absolute; top: var(--s2); left: var(--s2);
  background: rgba(199,154,44,0.95); color: var(--ee-forest);
  font-size: 0.66rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 6px 12px; border-radius: 999px;
  z-index: 2;
}
.event-card .body { padding: var(--s3); display: flex; flex-direction: column; gap: var(--s1); flex: 1; }
.event-card .date-line {
  font-size: 0.74rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--ee-gold);
}
.event-card h3 { font-size: 1.5rem; color: var(--ee-forest); }
.event-card .desc { color: rgba(16,32,24,0.72); font-size: 0.94rem; }
.event-card .meta { margin-top: auto; padding-top: var(--s2); display: flex; align-items: center; gap: var(--s1);
  color: var(--ee-muted); font-size: 0.82rem; }
.event-card .go {
  margin-top: var(--s2);
  align-self: flex-start;
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600; font-size: 0.9rem; color: var(--ee-forest);
}

/* Placeholder (coming-soon) cards render but are not interactive */
.event-card.placeholder { cursor: default; }
.event-card.placeholder:hover { transform: none; box-shadow: var(--shadow-sm); }
.event-card.placeholder:hover .thumb img { transform: none; }
.event-card .coming-soon {
  margin-top: var(--s2);
  align-self: flex-start;
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ee-muted);
}
.event-card .go .arrow { transition: transform 0.35s var(--ease); }
.event-card:hover .go .arrow { transform: translateX(6px); }

/* ============================================================
   Event detail page
   ============================================================ */
.detail-hero {
  position: relative; color: var(--ee-cream);
  background: var(--ee-forest); overflow: hidden;
  padding: var(--s10) 0 var(--s8);
}
.detail-hero::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(60% 80% at 80% 10%, rgba(199,154,44,0.20), transparent 65%);
  pointer-events: none;
}
.detail-hero .wrap { position: relative; z-index: 2; }
.back-link {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--ee-gold-lt); font-size: 0.84rem; font-weight: 600;
  margin-bottom: var(--s4);
  transition: gap 0.3s var(--ease);
}
.back-link:hover { gap: 14px; }
.detail-hero h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); color: var(--ee-cream); max-width: 18ch; }
.detail-meta { display: flex; flex-wrap: wrap; gap: var(--s3); margin-top: var(--s3); }
.detail-meta .item { display: flex; align-items: center; gap: 10px; color: rgba(251,247,238,0.85); font-size: 0.92rem; }
.detail-meta .item svg { color: var(--ee-gold); flex: none; }

.detail-body { padding: var(--s10) 0; }
.detail-layout {
  display: grid; grid-template-columns: 1.15fr 0.85fr; gap: var(--s8);
  align-items: start;
}
.detail-figure {
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
  position: sticky; top: 100px;
}
.detail-figure img { width: 100%; height: auto; }
.detail-copy .eyebrow { margin-bottom: var(--s1); }
.detail-copy h2 { font-size: 1.9rem; color: var(--ee-forest); }
.detail-copy p { color: rgba(16,32,24,0.78); margin-top: var(--s2); font-size: 1.02rem; }

/* ---------- RSVP form ---------- */
.rsvp {
  margin-top: var(--s8);
  background: var(--ee-forest);
  color: var(--ee-cream);
  border-radius: var(--radius);
  padding: var(--s6);
  box-shadow: var(--shadow);
  position: relative; overflow: hidden;
}
.rsvp::before {
  content: ""; position: absolute; right: -60px; bottom: -60px; width: 260px; height: 260px;
  background: radial-gradient(circle, rgba(199,154,44,0.16), transparent 70%);
  pointer-events: none;
}
.rsvp h3 { font-size: 1.7rem; color: var(--ee-cream); position: relative; }
.rsvp .sub { color: rgba(251,247,238,0.75); margin-top: var(--s1); font-size: 0.92rem; position: relative; }
.rsvp form { margin-top: var(--s4); display: grid; gap: var(--s3); position: relative; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label {
  font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.1em; font-weight: 600;
  color: var(--ee-gold-lt);
}
.field input {
  font-family: var(--ee-font-body); font-size: 1rem; color: var(--ee-cream);
  background: rgba(251,247,238,0.06);
  border: 1.5px solid rgba(251,247,238,0.18);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.field input::placeholder { color: rgba(251,247,238,0.4); }
.field input:focus {
  outline: none;
  border-color: var(--ee-gold);
  background: rgba(251,247,238,0.10);
  box-shadow: 0 0 0 4px rgba(199,154,44,0.15);
}
.field input.invalid { border-color: #e07a5f; box-shadow: 0 0 0 4px rgba(224,122,95,0.14); }
.field .err { color: #f0b8a8; font-size: 0.78rem; min-height: 1em; opacity: 0; transform: translateY(-4px);
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease); }
.field .err.show { opacity: 1; transform: translateY(0); }

/* Solid gold pill with white text — the new site's primary CTA style */
.btn {
  font-family: var(--ee-font-body); font-weight: 800; font-size: 1rem;
  color: #fff;
  background: var(--ee-gold);
  border: 0; border-radius: 999px;
  padding: 16px 28px; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), filter 0.25s var(--ease);
  box-shadow: 0 10px 24px -10px rgba(199,154,44,0.6);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 16px 30px -12px rgba(199,154,44,0.7); filter: brightness(1.06); }
.btn:active { transform: translateY(0) scale(0.99); }
.btn[disabled] { opacity: 0.6; cursor: not-allowed; transform: none; }
.btn .spinner {
  width: 16px; height: 16px; border: 2px solid rgba(255,255,255,0.4); border-top-color: #fff;
  border-radius: 50%; animation: spin 0.7s linear infinite; display: none;
}
.btn.loading .spinner { display: inline-block; }
.btn.loading .label { opacity: 0.7; }
@keyframes spin { to { transform: rotate(360deg); } }

/* success state */
.rsvp-success {
  position: relative;
  text-align: center; padding: var(--s4) 0;
  animation: pop 0.5s var(--ease);
}
@keyframes pop { 0% { opacity: 0; transform: scale(0.94); } 100% { opacity: 1; transform: scale(1); } }
.rsvp-success .tick {
  width: 68px; height: 68px; margin: 0 auto var(--s3); border-radius: 50%;
  background: rgba(199,154,44,0.15); display: grid; place-items: center;
}
.rsvp-success .tick svg { color: var(--ee-gold); }
.rsvp-success h3 { color: var(--ee-cream); }
.rsvp-success p { color: rgba(251,247,238,0.78); margin-top: var(--s1); }

/* ============================================================
   Footer — mirrors the new main website's footer: brand lockup +
   tagline + socials on the left, Contact Us tiles on the right,
   faint curved arcs bottom-left. Nav-link columns are deliberately
   absent until the main site launches.
   ============================================================ */
.site-footer {
  position: relative;
  background: var(--ee-header); color: rgba(251,247,238,0.75);
  padding: var(--s10) 0 var(--s4);
  overflow: hidden;
}
.site-footer::before,
.site-footer::after {
  content: ""; position: absolute; border-radius: 50%;
  border: 1px solid rgba(216,173,77,0.10);
  pointer-events: none;
}
.site-footer::before { width: 560px; height: 560px; left: -180px; bottom: -260px; }
.site-footer::after  { width: 800px; height: 800px; left: -300px; bottom: -400px; border-color: rgba(216,173,77,0.06); }
.site-footer .wrap { position: relative; }

.footer-grid {
  display: flex; flex-wrap: wrap; justify-content: space-between;
  gap: var(--s8);
}
.footer-brand { max-width: 380px; }
.footer-logo { width: 183px; height: auto; }
.footer-tagline {
  margin: 23px 0 0;
  max-width: 340px;
  font-size: 14px; line-height: 1.7;
  color: rgba(255,255,255,0.62);
}
.footer-socials { margin-top: var(--s3); display: flex; gap: 10px; }
.footer-socials a {
  width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid rgba(251,247,238,0.25);
  display: grid; place-items: center;
  color: var(--ee-cream);
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease), transform 0.25s var(--ease);
}
.footer-socials a:hover {
  border-color: var(--ee-gold);
  background: rgba(199,154,44,0.12);
  transform: translateY(-2px);
}

.footer-contact h3 {
  font-family: var(--ee-font-display);
  font-size: 18px; font-weight: 700;
  color: #d8ad4d;
  letter-spacing: 0;
}
.footer-contact ul { list-style: none; margin: var(--s3) 0 0; padding: 0; display: grid; gap: 15px; }
.footer-contact li { display: flex; align-items: center; gap: var(--s2); }
.footer-contact .tile {
  width: 34px; height: 34px; flex: none;
  border-radius: 9px;
  border: 1px solid rgba(216,173,77,0.25);
  background: rgba(216,173,77,0.06);
  display: grid; place-items: center;
  color: #d8ad4d;
}
.footer-contact .tile svg { width: 17px; height: 17px; }
.footer-contact .detail { display: flex; flex-direction: column; gap: 2px; }
.footer-contact .label {
  font-size: 10px; font-weight: 800;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: #d8ad4d;
}
.footer-contact .detail a,
.footer-contact .detail .value { color: rgba(255,255,255,0.9); font-size: 14px; }
.footer-contact .detail a:hover { color: var(--ee-gold-lt); }

.site-footer .rule { height: 1px; background: rgba(251,247,238,0.12); margin: var(--s6) 0 var(--s3); border: 0; }
.footer-copy { font-size: 0.78rem; color: rgba(251,247,238,0.45); margin: 0; }

/* ============================================================
   Scroll-reveal primitives (IntersectionObserver toggles .in)
   ============================================================ */
.reveal {
  opacity: 0; transform: translateY(16px);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
  will-change: opacity, transform;
}
.reveal.in { opacity: 1; transform: none; }
/* Stagger is a light touch, not a queue. At the old values the fourth item in a
   group finished a full second after the first, which reads as a slow page. */
.reveal.d1 { transition-delay: 0.04s; }
.reveal.d2 { transition-delay: 0.08s; }
.reveal.d3 { transition-delay: 0.12s; }
.reveal.d4 { transition-delay: 0.16s; }

/* page transition veil */
.page-veil {
  position: fixed; inset: 0; background: var(--ee-forest); z-index: 200;
  transform: translateY(0); pointer-events: none;
}
.page-veil.lift { animation: veil-lift 0.7s var(--ease) forwards; }
.page-veil.drop { animation: veil-drop 0.5s var(--ease) forwards; }
@keyframes veil-lift { to { transform: translateY(-100%); } }
@keyframes veil-drop { from { transform: translateY(100%); } to { transform: translateY(0); } }

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

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 900px) {
  .detail-layout { grid-template-columns: 1fr; gap: var(--s6); }
  .detail-figure { position: static; }
  .hero { padding: var(--s10) 0 var(--s8); }
  .events { padding: var(--s10) 0; }
  .rsvp { padding: var(--s4); }
}
@media (max-width: 560px) {
  /* A proportional 2% gutter is too tight on a phone (about 8px at 390px), so
     swap to a fixed one. The main site does the same thing at its breakpoint. */
  .wrap { width: 100%; padding: 0 var(--s2); }
  .site-header .bar { height: 76px; }
  .brand-lockup img { height: 46px; }
  /* Keep the 44px minimum tap target on phones; only the type shrinks. */
  .header-cta { font-size: 12px; line-height: 12px; min-height: 44px; padding: 9px 16px; }
  .section-head { margin-bottom: var(--s6); }
  .footer-grid { gap: var(--s4); }
}
