/* ==========================================================================
   Radiant School — Alumni Network
   Palette is sampled from the school monogram: crest green #046A29 + white.
   Secondary tones are inherited from the school site (style.css): #4CAF50 / #F9A825
   ========================================================================== */

:root {
  --forest: #046A29;          /* monogram green */
  --forest-deep: #02471B;
  --forest-ink: #072A1B;
  --green: #4CAF50;           /* school site --primary */
  --green-soft: #E8F5E9;
  --amber: #F9A825;           /* school site --accent */
  --amber-soft: #FFF4D6;
  --cream: #FFFDF7;
  --paper: #F6F1E3;
  --ink: #1B2A22;
  --ink-soft: #5D6F64;
  --line: rgba(4, 106, 41, 0.15);
  --line-strong: rgba(4, 106, 41, 0.28);
  --radius: 16px;
  --shadow-sm: 0 2px 8px rgba(7, 42, 27, 0.07);
  --shadow: 0 10px 28px rgba(7, 42, 27, 0.1);
  --shadow-lg: 0 28px 64px rgba(7, 42, 27, 0.18);
  --font-display: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-ui: "Inter", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  --eval: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { font-size: 16px; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-ui);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--forest); }

h1, h2, h3 { font-family: var(--font-display); line-height: 1.15; margin: 0; }
p { margin: 0; }

.wrap { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 24px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------------------------------------------------------------- header */
.site-header {
  background: var(--forest);
  color: #fff;
  padding: 26px 0 22px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% -10%, rgba(255, 255, 255, 0.16), transparent 60%),
    radial-gradient(circle at 12% 120%, rgba(249, 168, 37, 0.16), transparent 55%),
    radial-gradient(circle at 88% 120%, rgba(249, 168, 37, 0.16), transparent 55%);
  pointer-events: none;
}
.brand { position: relative; display: inline-flex; flex-direction: column; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark {
  width: 88px; height: 88px;
  border-radius: 50%;
  background: #fff;
  padding: 5px;
  box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.12), 0 12px 28px rgba(0, 0, 0, 0.22);
}
.brand-mark img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.brand-name {
  display: block;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  margin: 0;
  color: #fff;
}
.brand-tag {
  display: block;
  margin-top: 4px;
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.78);
  margin: 0;
}

/* ---------------------------------------------------------------- navbar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 253, 247, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.nav-inner {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 6px 24px;
  max-width: 1140px;
  margin: 0 auto;
}
.nav-inner::-webkit-scrollbar { display: none; }
.nav-link {
  flex: 0 0 auto;
  padding: 11px 14px;
  border-radius: 999px;
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  white-space: nowrap;
  transition: background 0.2s, color 0.2s;
}
.nav-link:hover { background: var(--green-soft); color: var(--forest-deep); }
.nav-link.is-active {
  background: var(--forest);
  color: #fff;
  font-weight: 600;
  box-shadow: 0 6px 16px rgba(4, 106, 41, 0.28);
}

/* ------------------------------------------------------------------ hero */
.hero {
  background:
    radial-gradient(circle at 15% 15%, rgba(249, 168, 37, 0.13), transparent 45%),
    radial-gradient(circle at 85% 85%, rgba(76, 175, 80, 0.16), transparent 50%),
    linear-gradient(150deg, var(--forest-deep), var(--forest) 55%, #0B7C33);
  color: #fff;
  padding: 64px 0 72px;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px);
  background-size: 22px 22px;
  opacity: 0.5;
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; text-align: center; max-width: 780px; margin: 0 auto; }
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.72rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--amber);
  font-weight: 600;
  margin-bottom: 20px;
}
.hero-eyebrow::before,
.hero-eyebrow::after {
  content: "";
  width: 34px;
  height: 1px;
  background: currentColor;
  opacity: 0.6;
}
.hero-title {
  font-size: clamp(2.4rem, 6vw, 4rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 16px;
  text-wrap: balance;
}
.hero-title em { font-style: italic; color: var(--amber-soft); }
.hero-motto {
  font-size: 0.8rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
  margin-bottom: 22px;
}
.hero-sub {
  font-size: 1.06rem;
  color: rgba(255, 255, 255, 0.86);
  max-width: 620px;
  margin: 0 auto 32px;
}

/* --------------------------------------------------------------- buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 14px 26px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.22s var(--eval), box-shadow 0.22s var(--eval), background 0.2s, color 0.2s, border-color 0.2s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; }
.btn-amber { background: var(--amber); color: #3A2600; box-shadow: 0 10px 24px rgba(249, 168, 37, 0.35); }
.btn-amber:hover { background: #FFB824; box-shadow: 0 14px 30px rgba(249, 168, 37, 0.45); }
.btn-light { background: #fff; color: var(--forest-deep); box-shadow: var(--shadow); }
.btn-light:hover { background: var(--cream); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.45); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.12); border-color: #fff; }
.btn-primary { background: var(--forest); color: #fff; box-shadow: 0 10px 24px rgba(4, 106, 41, 0.28); }
.btn-primary:hover { background: var(--forest-deep); }
.btn-outline { background: #fff; color: var(--forest-deep); border-color: var(--line-strong); }
.btn-outline:hover { border-color: var(--forest); background: var(--green-soft); }
.btn-sm { padding: 10px 18px; font-size: 0.85rem; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-bottom: 40px; }

/* ---------------------------------------------------------- hero search */
.search-shell { max-width: 560px; margin: 0 auto; position: relative; }
.search-shell svg {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  stroke: var(--forest);
  opacity: 0.65;
  pointer-events: none;
}
.search-input {
  width: 100%;
  padding: 17px 22px 17px 52px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  background: #fff;
  font-family: inherit;
  font-size: 1rem;
  color: var(--ink);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
  transition: box-shadow 0.2s, border-color 0.2s;
}
.search-input::placeholder { color: #8A9A90; }
.search-input:focus {
  outline: none;
  border-color: var(--amber);
  box-shadow: 0 0 0 4px rgba(249, 168, 37, 0.3), 0 18px 40px rgba(0, 0, 0, 0.18);
}

/* ----------------------------------------------------------- stat strip */
.stats {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  padding: 26px 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  text-align: center;
}
.stat-num {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 700;
  color: var(--forest);
  line-height: 1;
  display: block;
}
.stat-label {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-top: 8px;
  display: block;
}

/* -------------------------------------------------------------- sections */
.section { padding: 68px 0; }
.section-paper { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 660px; margin-bottom: 40px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-kicker {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--green);
  font-weight: 700;
  margin-bottom: 12px;
}
.section-title { font-size: clamp(1.7rem, 3.2vw, 2.4rem); font-weight: 700; margin-bottom: 12px; }
.section-sub { color: var(--ink-soft); font-size: 1rem; }

/* --------------------------------------------------------- year shelves */
.decade { margin-bottom: 44px; }
.decade:last-child { margin-bottom: 0; }
.decade-head { display: flex; align-items: center; gap: 18px; margin-bottom: 6px; }
.decade-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--forest-deep);
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.decade-rule { flex: 1; height: 1px; background: linear-gradient(to right, var(--line-strong), transparent); }
.decade-count { font-size: 0.78rem; color: var(--ink-soft); white-space: nowrap; letter-spacing: 0.04em; }

.shelf {
  position: relative;
  display: flex;
  align-items: flex-end;
  gap: 9px;
  padding: 20px 4px 22px;
  overflow-x: auto;
  scrollbar-width: thin;
}
.shelf-board {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 10px;
  height: 10px;
  border-radius: 5px;
  background: linear-gradient(to bottom, #E3D9BE, #CFC2A0);
  box-shadow: 0 6px 14px rgba(7, 42, 27, 0.14);
}

/* a year, standing on the shelf like a yearbook spine */
.spine {
  position: relative;
  flex: 0 0 auto;
  width: 56px;
  height: var(--h, 170px);
  border: none;
  border-radius: 7px 7px 3px 3px;
  padding: 10px 0 9px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  font-family: inherit;
  color: #F3FFF7;
  background: linear-gradient(105deg, var(--forest-deep), var(--forest) 45%, #0E8B38);
  box-shadow: inset -3px 0 6px rgba(0, 0, 0, 0.22), 0 8px 16px rgba(7, 42, 27, 0.22);
  transition: transform 0.28s var(--eval), box-shadow 0.28s var(--eval), filter 0.28s;
  transform-origin: bottom center;
}
.spine::before { /* gold bands on the spine, like a bound volume */
  content: "";
  position: absolute;
  left: 8px;
  right: 8px;
  top: 34px;
  bottom: 34px;
  border-top: 1px solid rgba(249, 168, 37, 0.75);
  border-bottom: 1px solid rgba(249, 168, 37, 0.75);
  opacity: 0.55;
  pointer-events: none;
}
.spine-year {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  margin-top: 4px;
}
.spine-count {
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--amber-soft);
  position: relative;
  z-index: 1;
}
.spine:hover, .spine:focus-visible {
  transform: translateY(-10px) rotate(-1.5deg);
  box-shadow: inset -3px 0 6px rgba(0, 0, 0, 0.22), 0 18px 30px rgba(7, 42, 27, 0.34);
  filter: brightness(1.08);
  outline: none;
}
.spine:focus-visible { box-shadow: 0 0 0 3px var(--amber), 0 18px 30px rgba(7, 42, 27, 0.34); }

/* an empty year: no class on record yet */
.spine.is-empty {
  background: repeating-linear-gradient(135deg, #E7DEC7, #E7DEC7 7px, #DED3B6 7px, #DED3B6 14px);
  color: var(--ink-soft);
  box-shadow: inset 0 0 0 1px rgba(4, 106, 41, 0.16);
}
.spine.is-empty::before { border-color: rgba(4, 106, 41, 0.3); }
.spine.is-empty .spine-count { color: var(--ink-soft); }

.shelf-note { font-size: 0.82rem; color: var(--ink-soft); margin-top: 4px; }

/* ---------------------------------------------------------- alumni cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(268px, 1fr));
  gap: 20px;
}

.alum-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 22px 18px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.26s var(--eval), box-shadow 0.26s var(--eval), border-color 0.26s;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.alum-card::after { /* the folded corner of a card-index card */
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 22px;
  height: 22px;
  border-radius: 0 var(--radius) 0 0;
  background: linear-gradient(225deg, var(--paper) 50%, rgba(4, 106, 41, 0.13) 50%);
}
.alum-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--line-strong);
}

.alum-top { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.avatar {
  flex: 0 0 auto;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.02em;
  box-shadow: inset 0 -2px 6px rgba(0, 0, 0, 0.16);
}
.tone-0 { background: linear-gradient(140deg, #05712D, #02471B); }
.tone-1 { background: linear-gradient(140deg, #2E7D32, #1B5E20); }
.tone-2 { background: linear-gradient(140deg, #4CAF50, #2E7D32); }
.tone-3 { background: linear-gradient(140deg, #C98A0B, #9A6A05); }

.alum-name { font-family: var(--font-display); font-size: 1.16rem; font-weight: 700; color: var(--forest-ink); }
.alum-father { font-size: 0.8rem; color: var(--ink-soft); margin-top: 2px; }
.alum-father b { font-weight: 600; color: #6E8076; }

.alum-chip {
  display: inline-block;
  align-self: flex-start;
  background: var(--green-soft);
  color: var(--forest-deep);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 4px 11px;
  margin: 6px 0 10px;
}
.alum-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 6px 0 10px;
}
.alum-tags .alum-chip { margin: 0; }
.alum-year {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #8A5B00;
  background: var(--amber-soft);
  border: 1px solid rgba(249, 168, 37, 0.5);
  border-radius: 999px;
  padding: 4px 10px;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.alum-occ { font-size: 0.9rem; color: #3C4C43; margin-bottom: 16px; }
.alum-occ span { display: block; font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase; color: #93A399; margin-bottom: 2px; }

.contact-slot { margin-top: auto; border-top: 1px dashed var(--line-strong); padding-top: 12px; }
.contact-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: none;
  padding: 0;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--forest);
  cursor: pointer;
  letter-spacing: 0.02em;
}
.contact-btn:hover { color: var(--forest-deep); text-decoration: underline; text-underline-offset: 3px; }
.contact-btn svg { width: 14px; height: 14px; stroke: currentColor; }
.contact-val {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.94rem;
  font-weight: 600;
  color: var(--forest-ink);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.01em;
}
.contact-val svg { width: 14px; height: 14px; stroke: var(--green); }

/* ------------------------------------------------------- results / misc */
.results-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 24px;
}
.results-count { font-size: 0.9rem; color: var(--ink-soft); }
.results-count b { color: var(--forest-deep); }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.chip {
  border: 1px solid var(--line-strong);
  background: #fff;
  color: var(--ink-soft);
  border-radius: 999px;
  padding: 7px 15px;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s;
}
.chip:hover { border-color: var(--forest); color: var(--forest-deep); }
.chip.is-active { background: var(--forest); border-color: var(--forest); color: #fff; }

.empty-state {
  text-align: center;
  padding: 56px 24px;
  border: 1.5px dashed var(--line-strong);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.6);
}
.empty-state h3 { font-size: 1.4rem; margin-bottom: 8px; color: var(--forest-deep); }
.empty-state p { color: var(--ink-soft); margin-bottom: 20px; }

/* -------------------------------------------------------------- how it works */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.step {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
  box-shadow: var(--shadow-sm);
}
.step-num {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--amber-soft);
  color: #8A5B00;
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 16px;
  box-shadow: inset 0 0 0 1px rgba(249, 168, 37, 0.4);
}
.step h3 { font-size: 1.16rem; margin-bottom: 8px; }
.step p { font-size: 0.92rem; color: var(--ink-soft); }

/* ------------------------------------------------------------- CTA band */
.cta-band {
  background: linear-gradient(120deg, var(--forest-deep), var(--forest) 60%, #0B7C33);
  color: #fff;
  text-align: center;
  padding: 66px 0;
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 20px 20px;
}
.cta-band > * { position: relative; }
.cta-band h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); margin-bottom: 14px; }
.cta-band p { color: rgba(255, 255, 255, 0.84); max-width: 560px; margin: 0 auto 28px; }

/* --------------------------------------------------------------- class page */
.class-hero {
  background:
    radial-gradient(circle at 78% 10%, rgba(249, 168, 37, 0.16), transparent 52%),
    linear-gradient(150deg, var(--forest-deep), var(--forest));
  color: #fff;
  padding: 44px 0 54px;
  position: relative;
  overflow: hidden;
}
.class-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px);
  background-size: 22px 22px;
  pointer-events: none;
}
.class-hero-inner { position: relative; z-index: 1; }
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 22px;
}
.back-link:hover { color: #fff; }
.class-year {
  font-family: var(--font-display);
  font-size: clamp(3rem, 9vw, 5.2rem);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.02em;
  color: #fff;
}
.class-year-label {
  font-size: 0.74rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--amber);
  font-weight: 600;
  margin-bottom: 10px;
}
.class-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  margin-top: 20px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.92rem;
}
.class-meta b { color: #fff; }

.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
}
.toolbar .search-shell { margin: 0; flex: 1 1 300px; max-width: 420px; }
.toolbar .search-shell svg { width: 18px; height: 18px; left: 16px; }
.toolbar .search-input {
  padding: 12px 18px 12px 44px;
  font-size: 0.92rem;
  box-shadow: var(--shadow-sm);
  border-color: var(--line-strong);
}
.toolbar .search-input:focus { box-shadow: 0 0 0 3px rgba(249, 168, 37, 0.28); }

/* -------------------------------------------------------------- the form */
.form-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 36px;
  align-items: start;
}
.form-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 32px;
  box-shadow: var(--shadow);
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field.full { grid-column: 1 / -1; }
.field label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--forest-deep);
}
.field label .req { color: #C0392B; }
.field input,
.field select {
  font-family: inherit;
  font-size: 0.98rem;
  color: var(--ink);
  background: var(--cream);
  border: 1.5px solid var(--line-strong);
  border-radius: 11px;
  padding: 13px 15px;
  transition: border-color 0.18s, box-shadow 0.18s, background 0.18s;
  width: 100%;
}
.field input::placeholder { color: #9CAAA2; }
.field input:focus,
.field select:focus {
  outline: none;
  background: #fff;
  border-color: var(--forest);
  box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.18);
}
.field .hint { font-size: 0.76rem; color: #84968B; }
.field.has-error input,
.field.has-error select { border-color: #C0392B; background: #FFF6F5; }
.field .error-text { font-size: 0.78rem; color: #C0392B; font-weight: 600; display: none; }
.field.has-error .error-text { display: block; }

.form-actions { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.privacy-note {
  display: flex;
  gap: 10px;
  margin-top: 22px;
  padding: 14px 16px;
  border-radius: 12px;
  background: var(--green-soft);
  border: 1px solid var(--line);
  font-size: 0.84rem;
  color: #35513F;
}
.privacy-note svg { flex: 0 0 auto; width: 18px; height: 18px; stroke: var(--forest); margin-top: 2px; }

/* live preview */
.preview-side { position: sticky; top: 84px; }
.preview-label {
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-weight: 700;
  margin-bottom: 14px;
  display: block;
}
.preview-card {
  background: var(--paper);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  background-image: radial-gradient(rgba(4, 106, 41, 0.05) 1px, transparent 1px);
  background-size: 16px 16px;
}
.preview-card .alum-card { box-shadow: var(--shadow); }
.preview-tip { font-size: 0.82rem; color: var(--ink-soft); margin-top: 16px; line-height: 1.55; }

/* success */
.success-panel {
  text-align: center;
  padding: 40px 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow);
  max-width: 560px;
  margin: 0 auto;
}
.success-mark {
  width: 68px;
  height: 68px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: var(--green-soft);
  display: grid;
  place-items: center;
  box-shadow: inset 0 0 0 1px rgba(76, 175, 80, 0.35);
}
.success-mark svg { width: 32px; height: 32px; stroke: var(--forest); }
.success-panel h2 { font-size: 1.7rem; margin-bottom: 10px; color: var(--forest-deep); }
.success-panel p { color: var(--ink-soft); margin-bottom: 24px; }
.success-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

/* -------------------------------------------------------------- footer */
.site-footer {
  background: var(--forest-ink);
  color: rgba(255, 255, 255, 0.74);
  padding: 48px 0 30px;
  font-size: 0.88rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 30px;
}
.footer-brand { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.footer-brand img { width: 52px; height: 52px; border-radius: 50%; background: #fff; padding: 3px; }
.footer-brand strong { font-family: var(--font-display); font-size: 1.2rem; color: #fff; display: block; }
.footer-brand span { font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--amber); }
.site-footer h4 {
  font-family: var(--font-ui);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--amber);
  margin: 0 0 12px;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer a { color: rgba(255, 255, 255, 0.78); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.footer-base {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.55);
}

/* ------------------------------------------------------- reveal animation */
.reveal { opacity: 0; transform: translateY(14px); }
.reveal.is-in { opacity: 1; transform: none; transition: opacity 0.6s var(--eval), transform 0.6s var(--eval); }

/* ------------------------------------------------------------- responsive */
@media (max-width: 900px) {
  .form-layout { grid-template-columns: 1fr; }
  .preview-side { position: static; order: -1; }
  .steps { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .hero { padding: 46px 0 54px; }
  .section { padding: 50px 0; }
  .brand-name { font-size: 1.6rem; }
  .brand-mark { width: 72px; height: 72px; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stats-grid .stat:last-child { grid-column: 1 / -1; }
  .form-grid { grid-template-columns: 1fr; }
  .form-card { padding: 24px 20px; }
  .footer-grid { grid-template-columns: 1fr; }
  .card-grid { grid-template-columns: 1fr; }
  .spine { width: 48px; }
  .hero-actions .btn { flex: 1 1 100%; }
}

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

/* ---------------------------------------------- decade chips inside hero */
.hero-chips { justify-content: center; margin-top: 20px; margin-bottom: 0; }
.hero-chips .chip {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.42);
  color: rgba(255, 255, 255, 0.92);
}
.hero-chips .chip:hover {
  background: rgba(255, 255, 255, 0.22);
  border-color: #fff;
  color: #fff;
}
.hero-chips .chip.is-active {
  background: var(--amber);
  border-color: var(--amber);
  color: #3A2600;
}
/* -------------------------------------------------- form hints & notices */
/* honeypot field: off-screen, never focusable by people */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.notice {
  border-radius: 12px;
  padding: 14px 18px;
  font-size: 0.92rem;
  line-height: 1.55;
}
.notice-ok {
  background: #E8F5E9;
  border: 1px solid rgba(76, 175, 80, 0.5);
  color: #1B5E20;
}
.notice-err {
  background: #FFF1F0;
  border: 1px solid rgba(192, 57, 43, 0.4);
  color: #8E2418;
}
.notice a {
  color: inherit;
  font-weight: 600;
  text-underline-offset: 3px;
}