/* ==========================================================================
   KSMUN 2027 — Global Stylesheet
   --------------------------------------------------------------------------
   Design system:
   - Off-white background with a subtle grid overlay
   - Black primary typography (Inter)
   - Light sky blue accent for interactive elements & highlights
   - Gray placeholder boxes for all images
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Custom properties (design tokens)
   -------------------------------------------------------------------------- */
:root {
  /* Colors */
  --color-bg: #faf9f6;              /* slight off-white */
  --color-surface: #ffffff;         /* card / panel surfaces */
  --color-text: #0b0b0b;            /* primary text — near black */
  --color-muted: #6f6f6b;           /* secondary / meta text */
  --color-accent: #7ec8e8;          /* light sky blue */
  --color-accent-strong: #57b3dd;   /* darker sky blue for hover / focus */
  --color-accent-soft: rgba(126, 200, 232, 0.14);
  --color-border: #e8e6e0;          /* hairline borders */
  --color-placeholder: #e7e5df;     /* image placeholder fill */

  /* Grid overlay */
  --grid-size: 44px;
  --grid-line: rgba(11, 11, 11, 0.035);

  /* Typography */
  --font-sans: "Inter", "Roboto", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Shape & elevation */
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --shadow-card: 0 1px 2px rgba(11, 11, 11, 0.04), 0 10px 32px rgba(11, 11, 11, 0.05);
  --shadow-hover: 0 14px 44px rgba(11, 11, 11, 0.09);

  /* Motion */
  --transition: 200ms ease;

  /* Layout */
  --container: 1160px;
  --header-h: 72px;
}

/* Dark theme — deep charcoal / near-black background with subtle off-white
   grid lines, bright light sky-blue accents, and light typography. */
[data-theme="dark"] {
  --color-bg: #12151a;              /* deep charcoal / near-black */
  --color-surface: #1b1f26;         /* card / panel surfaces */
  --color-text: #f2f4f7;            /* primary text — light gray/white */
  --color-muted: #9aa2ad;           /* secondary / meta text */
  --color-accent: #7ec8e8;          /* bright light sky blue (kept) */
  --color-accent-strong: #8fd0ec;   /* brighter sky blue for hover / focus */
  --color-accent-soft: rgba(126, 200, 232, 0.14);
  --color-border: #2a2f38;          /* subtle dark hairline borders */
  --color-placeholder: #232833;     /* image placeholder fill */

  /* Grid overlay */
  --grid-line: rgba(242, 244, 247, 0.045);

  /* Shape & elevation */
  --shadow-card: 0 1px 2px rgba(0, 0, 0, 0.35), 0 10px 32px rgba(0, 0, 0, 0.4);
  --shadow-hover: 0 14px 44px rgba(0, 0, 0, 0.55);
}

/* --------------------------------------------------------------------------
   2. Base / reset
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  background-color: var(--color-bg);

  /* Subtle, faint grid pattern — fixed so it stays in place while scrolling */
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: var(--grid-size) var(--grid-size);
  background-attachment: fixed;

  color: var(--color-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: var(--color-accent-strong);
  text-decoration: none;
}

a:hover {
  text-decoration: none;
}

ul,
ol {
  list-style: none;
}

::selection {
  background: var(--color-accent);
  color: var(--color-text);
}

/* --------------------------------------------------------------------------
   3. Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1;
  color: var(--color-text);
  background: transparent;
  text-decoration: none;
  transition:
    background var(--transition),
    border-color var(--transition),
    color var(--transition),
    transform var(--transition),
    box-shadow var(--transition);
}

/* Primary (accent-filled) button */
.btn--primary {
  background: var(--color-accent);
}

.btn--primary:hover {
  background: var(--color-accent-strong);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(126, 200, 232, 0.45);
}

/* Ghost / outline button */
.btn--ghost {
  border-color: var(--color-border);
}

.btn--ghost:hover {
  border-color: var(--color-accent);
  background: var(--color-accent-soft);
  transform: translateY(-2px);
}

/* Arrow helper inside buttons / links */
.btn .btn__arrow {
  transition: transform var(--transition);
}

.btn:hover .btn__arrow {
  transform: translateX(4px);
}

/* --------------------------------------------------------------------------
   4. Custom cursor orb (see js/main.js — fine pointers only)
   -------------------------------------------------------------------------- */
.cursor-orb {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 2000;
  pointer-events: none; /* never blocks clicks */
  will-change: transform;
}

.cursor-orb__dot {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: radial-gradient(
    circle at 35% 35%,
    rgba(126, 200, 232, 0.95) 0%,
    rgba(126, 200, 232, 0.4) 55%,
    rgba(126, 200, 232, 0) 72%
  );
  box-shadow: 0 0 20px 5px rgba(126, 200, 232, 0.35);
  transform: translate(-50%, -50%);
}

/* Slight grow when hovering interactive elements — instant, no easing */
.cursor-orb.is-hover .cursor-orb__dot {
  transform: translate(-50%, -50%) scale(1.7);
  box-shadow: 0 0 30px 10px rgba(126, 200, 232, 0.5);
}

/* Fade out when the pointer leaves the window / before first move */
.cursor-orb.is-hidden {
  opacity: 0;
}

/* Hide the default system cursor on devices with a fine pointer only.
   Touch / pen devices keep their native cursors. */
@media (hover: hover) and (pointer: fine) {
  * {
    cursor: none !important;
  }
}

@media (hover: none), (pointer: coarse) {
  .cursor-orb {
    display: none;
  }
}

/* --------------------------------------------------------------------------
   5. Header / navigation
   -------------------------------------------------------------------------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
}

[data-theme="dark"] .site-header {
  background: #12151a;
}

.nav {
  position: relative;
  max-width: var(--container);
  margin: 0 auto;
  height: var(--header-h);
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav__brand {
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--color-text);
  white-space: nowrap;
}

.nav__brand-year {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0;
  color: var(--color-accent-strong);
}

.nav__menu {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav__link {
  position: relative;
  display: inline-block;
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-text);
  transition:
    color var(--transition),
    background var(--transition);
}

.nav__link:hover {
  color: var(--color-accent-strong);
  background: var(--color-accent-soft);
}

/* Active page indicator — small accent dot under the link */
.nav__link.is-active {
  color: var(--color-accent-strong);
}

.nav__link.is-active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 4px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--color-accent-strong);
  transform: translateX(-50%);
}

/* Theme toggle (dark mode switch) */
.nav__theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  background: var(--color-surface);
  color: var(--color-text);
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition:
    background var(--transition),
    border-color var(--transition),
    color var(--transition);
}

.nav__theme-toggle:hover {
  border-color: var(--color-accent);
  background: var(--color-accent-soft);
}

[data-theme="dark"] .nav__theme-toggle {
  background: var(--color-surface);
  border-color: var(--color-border);
  color: var(--color-text);
}

.nav__theme-toggle-icon {
  font-size: 0.95rem;
  line-height: 1;
}

/* Dropdown menu (e.g. Committees) */
.nav__item {
  position: relative;
}

.nav__dropdown {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 200px;
  padding: 8px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-hover);
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
  z-index: 110;
}

.nav__item:hover .nav__dropdown,
.nav__item:focus-within .nav__dropdown {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.nav__dropdown-link {
  display: block;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--color-text);
  transition:
    color var(--transition),
    background var(--transition);
}

.nav__dropdown-link:hover {
  color: var(--color-accent-strong);
  background: var(--color-accent-soft);
}

.nav__link--dropdown {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.nav__link-caret {
  font-size: 0.7rem;
  transition: transform 0.2s ease;
}

.nav__item:hover .nav__link-caret {
  transform: rotate(180deg);
}

[data-theme="dark"] .nav__dropdown {
  background: #1b1f26;
}

/* Hamburger toggle (mobile only via media query below) */
.nav__toggle {
  display: none;
  width: 44px;
  height: 44px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  background: var(--color-surface);
}

.nav__toggle-bar {
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--color-text);
  transition:
    transform 0.25s ease,
    opacity 0.25s ease;
}

/* Animate the hamburger into an X when open */
.site-header.is-open .nav__toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.site-header.is-open .nav__toggle-bar:nth-child(2) {
  opacity: 0;
}

.site-header.is-open .nav__toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* --------------------------------------------------------------------------
   6. Hero (home page)
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: calc(100vh - var(--header-h));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 140px 24px 110px;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-accent-strong);
}

.hero__eyebrow::before,
.hero__eyebrow::after {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--color-accent);
}

.hero__title {
  font-size: clamp(3.4rem, 9vw, 7.2rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.02;
  color: var(--color-text);
}

.hero__sub {
  max-width: 560px;
  margin-top: 28px;
  font-size: 1.15rem;
  line-height: 1.7;
  color: var(--color-text);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 44px;
}

/* Scroll hint — small mouse outline at the bottom of the hero */
.hero__scroll {
  position: absolute;
  bottom: 30px;
  left: 50%;
  width: 26px;
  height: 42px;
  border: 2px solid var(--color-text);
  border-radius: 999px;
  display: flex;
  justify-content: center;
  padding-top: 8px;
  opacity: 0.7;
  transition: opacity var(--transition);
}

.hero__scroll:hover {
  opacity: 1;
}

.hero__scroll-dot {
  width: 4px;
  height: 8px;
  border-radius: 999px;
  background: var(--color-accent);
  animation: scroll-dot 1.8s ease-in-out infinite;
}

@keyframes scroll-dot {
  0%, 100% {
    transform: translateY(0);
    opacity: 1;
  }
  50% {
    transform: translateY(10px);
    opacity: 0.35;
  }
}

/* --------------------------------------------------------------------------
   7. Sections & section headers
   -------------------------------------------------------------------------- */
.section {
  max-width: var(--container);
  margin: 0 auto;
  padding: 110px 32px;
}

.section__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 52px;
}

.section__kicker {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-accent-strong);
}

.section__title {
  margin-top: 10px;
  font-size: clamp(2rem, 4vw, 2.9rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.12;
  color: var(--color-text);
}

.section__text {
  max-width: 620px;
}

.section__text p + p {
  margin-top: 14px;
}

/* About / long-form copy blocks */
.copy-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.copy-block__text {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--color-text);
}

.copy-block__text p + p {
  margin-top: 16px;
}

/* --------------------------------------------------------------------------
   8. Cards & grids
   -------------------------------------------------------------------------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.card {
  display: flex;
  flex-direction: column;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(126, 200, 232, 0.65);
}

.card__body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
  padding: 28px;
}

.card__title {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--color-text);
}

.card__text {
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--color-text);
}

.card__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--color-accent-strong);
  transition: gap 0.25s ease;
}

.card__link:hover {
  gap: 12px;
}

/* Small label chip (e.g. committee acronyms) */
.chip {
  align-self: flex-start;
  padding: 5px 14px;
  border-radius: 999px;
  background: var(--color-accent-soft);
  color: var(--color-accent-strong);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* --------------------------------------------------------------------------
   9. Image placeholders
   -------------------------------------------------------------------------- */
.placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
  background: var(--color-placeholder);
  border: 1px dashed rgba(11, 11, 11, 0.16);
  border-radius: var(--radius-sm);
  color: #8b8a85;
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.placeholder--16-9 {
  aspect-ratio: 16 / 9;
}

.placeholder--4-3 {
  aspect-ratio: 4 / 3;
}

.placeholder--square {
  aspect-ratio: 1 / 1;
}

/* --------------------------------------------------------------------------
   10. Sub-page headers
   -------------------------------------------------------------------------- */
.page-head {
  max-width: 760px;
  margin: 0 auto;
  padding: calc(var(--header-h) + 96px) 32px 32px;
  text-align: center;
}

.page-head__kicker {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-accent-strong);
}

.page-head__title {
  margin-top: 14px;
  font-size: clamp(2.8rem, 6vw, 4.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: var(--color-text);
}

.page-head__lead {
  margin-top: 18px;
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--color-text);
}

/* --------------------------------------------------------------------------
   11. Committees page
   -------------------------------------------------------------------------- */
.committee-card__image {
  margin: 0;
}

.committee-card__topic {
  margin-top: 4px;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--color-text);
}

.committee-card__topic strong {
  display: block;
  margin-bottom: 2px;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-muted);
}

.note {
  max-width: var(--container);
  margin: 0 auto;
  padding: 8px 32px 110px;
  text-align: center;
  font-size: 0.92rem;
  color: var(--color-muted);
}

/* --------------------------------------------------------------------------
   12. Registration page
   -------------------------------------------------------------------------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.stack {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.role-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 32px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease;
}

.role-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(126, 200, 232, 0.65);
}

.role-card__title {
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--color-text);
}

.role-card__desc {
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--color-text);
}

.role-card__price {
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--color-text);
}

.role-card__price small {
  display: block;
  margin-top: 2px;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--color-muted);
}

.role-card .btn {
  align-self: flex-start;
  margin-top: 8px;
}

/* Info rows (dates, location, deadlines…) */
.info-list {
  display: grid;
  gap: 12px;
}

.info-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 22px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
}

.info-row__label {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--color-text);
}

.info-row__value {
  text-align: right;
  font-size: 0.95rem;
  color: var(--color-muted);
}

/* Demo registration form */
.form-wrap {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px 120px;
}

.form-card {
  padding: 48px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

.form-card__head {
  margin-bottom: 32px;
}

.form-card__title {
  font-size: 1.9rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--color-text);
}

.form-card__sub {
  margin-top: 6px;
  font-size: 0.95rem;
  color: var(--color-muted);
}

.form {
  display: grid;
  gap: 18px;
}

.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.form__field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.form__label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text);
}

.form__input,
.form__select {
  width: 100%;
  padding: 13px 16px;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--color-text);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  transition:
    border-color var(--transition),
    box-shadow var(--transition);
}

.form__input::placeholder {
  color: #a5a49e;
}

.form__input:focus,
.form__select:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px var(--color-accent-soft);
}

.form__actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.form__status {
  display: none;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  background: var(--color-accent-soft);
  border: 1px solid rgba(126, 200, 232, 0.55);
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--color-text);
}

.form__status.is-visible {
  display: block;
}

/* --------------------------------------------------------------------------
   13. Secretariat page
   -------------------------------------------------------------------------- */
.member-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding-bottom: 120px;
}

.member {
  padding: 20px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  text-align: center;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease;
}

.member:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(126, 200, 232, 0.65);
}

.member__portrait {
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.member .placeholder {
  border-radius: 0;
}

.member__name {
  margin-top: 18px;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--color-text);
}

.member__role {
  margin-top: 2px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-accent-strong);
}

/* --------------------------------------------------------------------------
   14. CTA band
   -------------------------------------------------------------------------- */
.cta-band {
  max-width: var(--container);
  margin: 0 auto 120px;
  padding: 48px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

.cta-band__title {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--color-text);
}

.cta-band__text {
  margin-top: 6px;
  font-size: 0.95rem;
  color: var(--color-muted);
}

/* --------------------------------------------------------------------------
   15. Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--color-bg);
  border-top: 1px solid var(--color-border);
  padding: 56px 32px;
}

[data-theme="dark"] .site-footer {
  background: #12151a;
}

.footer-inner {
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-meta,
.footer-meta a {
  font-size: 0.9rem;
  color: var(--color-muted);
}

.footer-meta a {
  color: var(--color-accent-strong);
  font-weight: 500;
}

.footer-meta a:hover {
  text-decoration: underline;
}

/* --------------------------------------------------------------------------
   15b. FAQ accordion
   -------------------------------------------------------------------------- */
.faq-list {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px 120px;
  display: grid;
  gap: 14px;
}

.faq-item {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition:
    border-color var(--transition),
    box-shadow var(--transition);
}

.faq-item.is-open {
  border-color: rgba(126, 200, 232, 0.65);
  box-shadow: var(--shadow-card);
}

.faq-item__question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
  padding: 22px 28px;
  background: transparent;
  border: none;
  font-family: inherit;
  font-size: 1.02rem;
  font-weight: 600;
  text-align: left;
  color: var(--color-text);
  cursor: pointer;
  transition:
    color var(--transition),
    background var(--transition);
}

.faq-item__question:hover {
  color: var(--color-accent-strong);
  background: var(--color-accent-soft);
}

.faq-item__icon {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--color-border);
  color: var(--color-accent-strong);
  font-size: 1rem;
  font-weight: 600;
  transition:
    transform 0.25s ease,
    background var(--transition),
    border-color var(--transition);
}

.faq-item.is-open .faq-item__icon {
  transform: rotate(45deg);
  background: var(--color-accent-soft);
  border-color: var(--color-accent);
}

.faq-item__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.faq-item__answer-inner {
  padding: 0 28px 24px;
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--color-text);
}

/* Dark-mode auxiliary overrides */
[data-theme="dark"] .placeholder {
  border-color: rgba(242, 244, 247, 0.14);
  color: var(--color-muted);
}

[data-theme="dark"] .form__input::placeholder {
  color: #6b7280;
}

[data-theme="dark"] .nav__menu {
  background: #12151a;
}

/* --------------------------------------------------------------------------
   16. Scroll-reveal animations
   -------------------------------------------------------------------------- */
/* Hidden state only applies when: JS is running AND the user does not
   prefer reduced motion. Elements opt in via [data-reveal]. */
html.js-enabled:not(.reduce-motion) [data-reveal] {
  opacity: 0;
  transform: translateY(26px);
}

html.js-enabled [data-reveal] {
  transition:
    opacity 0.7s ease var(--reveal-delay, 0ms),
    transform 0.7s ease var(--reveal-delay, 0ms);
}

html.js-enabled [data-reveal].is-revealed {
  opacity: 1;
  transform: none;
}

/* --------------------------------------------------------------------------
   17. Responsive breakpoints
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .member-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .copy-block {
    gap: 40px;
  }
}

@media (max-width: 960px) {
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .copy-block {
    grid-template-columns: 1fr;
  }

  .split {
    grid-template-columns: 1fr;
  }

  .section__head {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
}

/* Mobile navigation */
@media (max-width: 760px) {
  .nav {
    padding: 0 20px;
  }

  .nav__toggle {
    display: flex;
  }

  /* Mobile: make the dropdown inline so it works without hover */
  .nav__dropdown {
    position: static;
    opacity: 1;
    transform: none;
    pointer-events: auto;
    margin: 4px 8px 4px;
    box-shadow: none;
  }

  .nav__item:hover .nav__dropdown,
  .nav__item:focus-within .nav__dropdown {
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }

  .nav__menu {
    position: absolute;
    top: calc(var(--header-h) + 12px);
    left: 20px;
    right: 20px;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    padding: 12px;
    background: rgba(250, 249, 246, 0.97);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
    transition:
      opacity 0.25s ease,
      transform 0.25s ease;
  }

  .site-header.is-open .nav__menu {
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }

  .nav__link {
    display: block;
    padding: 14px 18px;
    border-radius: var(--radius-sm);
  }

  .nav__link.is-active::after {
    display: none;
  }
}

@media (max-width: 640px) {
  .card-grid {
    grid-template-columns: 1fr;
  }

  .form-card {
    padding: 32px 24px;
  }

  .form__row {
    grid-template-columns: 1fr;
  }

  .cta-band {
    padding: 36px 28px;
  }

  .info-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .info-row__value {
    text-align: left;
  }

  .member-grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 88px 20px;
  }
}

@media (max-width: 420px) {
  .hero__actions {
    flex-direction: column;
    width: 100%;
  }

  .hero__actions .btn {
    width: 100%;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* --------------------------------------------------------------------------
   18. Reduced motion
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}