/* Citizens for Fraternity — design tokens & layout */

:root {
  /* Indigo + violet + warm coral — light, distinct from the previous mint/teal */
  --color-bg: #f0effa;
  --color-surface: #ffffff;
  --color-ink: #1a1630;
  --color-ink-muted: #4b4768;
  --color-border: #c7c3e6;
  --color-accent: #4338ca;
  --color-accent-hover: #3730a3;
  --color-teal: #6366f1;
  --color-gold: #ea580c;
  --color-gold-soft: rgba(234, 88, 12, 0.12);
  --color-warn-bg: #fff7ed;
  --color-warn-border: #fdba74;
  --color-warn-text: #7c2d12;
  --color-header-bg: rgba(252, 251, 255, 0.94);
  --color-focus-ring: rgba(67, 56, 202, 0.22);
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "DM Sans", system-ui, sans-serif;
  --shadow-sm: 0 1px 2px rgba(26, 22, 48, 0.06);
  --shadow-md: 0 10px 28px rgba(26, 22, 48, 0.1);
  --shadow-lg: 0 22px 50px rgba(26, 22, 48, 0.12);
  --radius: 12px;
  --radius-lg: 20px;
  --header-h: 72px;
  --max-w: 1120px;
  --ease: cubic-bezier(0.25, 0.1, 0.25, 1);
}

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

html {
  scroll-behavior: smooth;
}

@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;
  }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--color-ink);
  /* One continuous canvas — color lives on cards & hero, not striped sections */
  background: linear-gradient(180deg, #faf9ff 0%, var(--color-bg) 18%, var(--color-bg) 100%);
  -webkit-font-smoothing: antialiased;
}

/* Scroll anchor sections share one background (no alternating bands) */
.page-flow {
  position: relative;
}

.page-flow > .section {
  padding: clamp(2.5rem, 5vw, 3.75rem) 0;
}

/* Ease the transition from hero into scrolling content */
.page-flow > .section:first-child {
  padding-top: clamp(1.75rem, 4vw, 2.75rem);
}

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

a {
  color: var(--color-teal);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--color-accent);
}

h1,
h2,
h3,
.h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--color-ink);
}

h1 {
  font-size: clamp(1.85rem, 3.2vw, 2.6rem);
  margin: 0 0 1rem;
}

h2,
.section-title {
  font-size: clamp(1.75rem, 3vw, 2.35rem);
  margin: 0 0 1rem;
}

h3,
.h3 {
  font-size: 1.2rem;
  margin: 0 0 0.5rem;
}

p {
  margin: 0 0 1rem;
}

p:last-child {
  margin-bottom: 0;
}

.lead {
  font-size: 1.15rem;
  color: var(--color-ink-muted);
  line-height: 1.7;
}

.small {
  font-size: 0.9rem;
}

.muted {
  color: #aca9c5
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  z-index: 1000;
  padding: 0.75rem 1rem;
  background: var(--color-accent);
  color: #fff;
  font-weight: 600;
  border-radius: 6px;
  text-decoration: none;
}

.skip-link:focus {
  top: 1rem;
}

.container {
  width: min(100% - 2.5rem, var(--max-w));
  margin-inline: auto;
}

.narrow {
  max-width: 720px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-header-bg);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
}

.header-inner {
  width: min(100% - 2rem, var(--max-w));
  margin-inline: auto;
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  color: var(--color-ink);
  font-weight: 700;
  font-size: 0.95rem;
}

.logo:hover {
  color: var(--color-accent);
}

.logo-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(145deg, var(--color-accent), var(--color-teal));
  box-shadow: var(--shadow-sm);
  position: relative;
}

.logo-mark::after {
  content: "";
  position: absolute;
  inset: 8px;
  border: 2px solid var(--color-gold);
  border-radius: 4px;
  opacity: 0.85;
}

.logo-text {
  max-width: 240px;
  line-height: 1.2;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
}

.logo-footer .logo-text {
  max-width: none;
}

.logo-footer img {
  background: #ffffff;
  border-radius: 6px;
  padding: 3px;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  background: var(--color-surface);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.nav-toggle-bar,
.nav-toggle-bar::before,
.nav-toggle-bar::after {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--color-ink);
  border-radius: 1px;
  position: relative;
  transition: transform 0.2s var(--ease), opacity 0.2s;
}

.nav-toggle-bar::before,
.nav-toggle-bar::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle-bar::before {
  top: -6px;
}

.nav-toggle-bar::after {
  top: 6px;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar {
  background: transparent;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar::before {
  top: 0;
  transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar::after {
  top: 0;
  transform: rotate(-45deg);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-list {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.25rem 0.9rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-list a {
  text-decoration: none;
  color: var(--color-ink-muted);
  font-weight: 500;
  font-size: 0.87rem;
}

.nav-list a:hover {
  color: var(--color-accent);
}

.nav-cta {
  display: flex;
  gap: 0.5rem;
}

/* Dropdown submenu */
.nav-dropdown {
  position: relative;
}

.nav-dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-ink-muted);
  transition: color 0.15s;
}

.nav-dropdown-toggle:hover,
.nav-dropdown-toggle[aria-expanded="true"] {
  color: var(--color-accent);
}

.nav-dropdown-arrow {
  display: none;
}

.nav-dropdown-toggle[aria-expanded="true"] .nav-dropdown-arrow {
  transform: none;
}

.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 0.1rem);
  left: 50%;
  transform: translateX(-50%);
  min-width: 180px;
  list-style: none;
  margin: 0;
  padding: 0.5rem 0;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  z-index: 200;
}

/* Invisible bridge to fill gap between toggle and menu */
.nav-dropdown-menu::after {
  content: "";
  position: absolute;
  top: -12px;
  left: 0;
  right: 0;
  height: 12px;
}

/* Show on hover (desktop only) */
@media (min-width: 901px) {
  .nav-dropdown:hover .nav-dropdown-menu {
    display: block;
    animation: dropdown-in 0.18s var(--ease);
  }
  .nav-dropdown:hover .nav-dropdown-toggle {
    color: var(--color-accent);
  }
}

.nav-dropdown-menu::before {
  content: "";
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 10px;
  height: 10px;
  background: var(--color-surface);
  border-left: 1px solid var(--color-border);
  border-top: 1px solid var(--color-border);
}

.nav-dropdown-menu.is-open {
  display: block;
  animation: dropdown-in 0.18s var(--ease);
}

@keyframes dropdown-in {
  from { opacity: 0; transform: translateX(-50%) translateY(-6px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

.nav-dropdown-menu a {
  display: block;
  padding: 0.55rem 1.1rem;
  color: var(--color-ink-muted);
  font-size: 0.92rem;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.15s, color 0.15s, padding-left 0.15s;
  white-space: nowrap;
  border-left: 2px solid transparent;
}

.nav-dropdown-menu a:hover {
  background: var(--color-bg);
  color: var(--color-accent);
  padding-left: 1.4rem;
  border-left-color: var(--color-accent);
}

/* Mobile: dropdown becomes inline list */
@media (max-width: 900px) {
  .nav-dropdown-menu {
    position: static;
    transform: none;
    box-shadow: none;
    border: none;
    border-left: 2px solid var(--color-border);
    border-radius: 0;
    padding: 0.25rem 0 0.25rem 0.75rem;
    margin-top: 0.35rem;
    background: transparent;
  }

  .nav-dropdown-menu::before {
    display: none;
  }

  .nav-dropdown-menu.is-open {
    animation: none;
  }

  .nav-dropdown-menu a {
    padding: 0.4rem 0.5rem;
  }
}

@media (max-width: 900px) {
  .nav-toggle {
    display: flex;
  }

  .site-nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
    padding: 1.25rem 1.5rem 1.5rem;
    flex-direction: column;
    align-items: stretch;
    gap: 1.25rem;
    transform: translateY(-120%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.25s var(--ease), opacity 0.25s, visibility 0.25s;
    box-shadow: var(--shadow-md);
  }

  .site-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav-list {
    flex-direction: column;
    gap: 0.5rem;
  }

  .nav-cta {
    flex-direction: column;
  }

  .nav-cta .btn {
    width: 100%;
    text-align: center;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.35rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.2s var(--ease), color 0.2s, border-color 0.2s, transform 0.15s;
  background: transparent;
  line-height: 1.2;
}

button.btn {
  appearance: none;
}

.btn:active {
  transform: scale(0.98);
}

.btn-sm {
  padding: 0.55rem 1rem;
  font-size: 0.875rem;
}

.btn-primary {
  background: var(--color-accent);
  color: #fff;
  border-color: var(--color-accent);
}

.btn-primary:hover {
  background: var(--color-accent-hover);
  border-color: var(--color-accent-hover);
  color: #fff;
}

.btn-secondary {
  background: var(--color-surface);
  color: var(--color-accent);
  border-color: var(--color-border);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  border-color: var(--color-accent);
  color: var(--color-accent-hover);
}

.btn-ghost {
  background: transparent;
  color: var(--color-ink);
  border-color: transparent;
}

.btn-ghost:hover {
  background: var(--color-gold-soft);
  color: var(--color-ink);
}

.btn-light {
  background: #fff;
  color: var(--color-accent);
  border-color: #fff;
}

.btn-light:hover {
  background: var(--color-bg);
  color: var(--color-accent-hover);
}

.btn-outline-light {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.55);
}

.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: #fff;
  color: #fff;
}

/* Hero */
.hero {
  position: relative;
  padding: clamp(3rem, 8vw, 5.5rem) 0 clamp(3.5rem, 10vw, 6rem);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 72% 48% at 50% 42%, rgba(0, 40, 104, 0.07), transparent 58%),
    linear-gradient(
      180deg,
      rgba(255, 153, 51, 0.28) 0%,
      rgba(255, 153, 51, 0.16) 24%,
      rgba(255, 255, 255, 0.96) 48%,
      rgba(19, 136, 8, 0.16) 74%,
      rgba(19, 136, 8, 0.28) 100%
    );
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

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

.eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-teal);
  margin: 0 0 0.75rem;
}

.eyebrow-light {
  color: rgba(255, 255, 255, 0.75);
}

.hero-lead {
  font-size: 1.125rem;
  color: var(--color-ink-muted);
  max-width: 38ch;
  margin-bottom: 1.75rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-actions--single {
  justify-content: flex-start;
}

.hero-panel {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 4vw, 2.25rem);
  box-shadow: var(--shadow-lg);
}

.hero-quote {
  margin: 0 0 1.5rem;
  padding: 0;
  border: none;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.2rem;
  color: var(--color-ink);
  line-height: 1.45;
}

.hero-quote p {
  margin: 0;
}

.hero-stats {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.hero-stats li {
  display: grid;
  gap: 0.15rem;
  padding-top: 0;
  border-top: none;
  border-left: 2px solid var(--color-border);
  padding-left: 1rem;
}

.hero-stats li:first-child {
  padding-top: 0;
  border-top: none;
  border-left: none;
  padding-left: 0;
}

.hero-stats strong {
  font-size: 0.95rem;
  color: var(--color-accent);
}

.hero-stats span {
  font-size: 0.9rem;
  color: var(--color-ink-muted);
}

/* Sections (default: full padding for hero-adjacent or standalone) */
.section {
  padding: clamp(3.5rem, 8vw, 5.5rem) 0;
}

.section-header {
  margin-bottom: 2.5rem;
  max-width: 640px;
}

.section-header.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.center-text {
  text-align: center;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.prose p:last-child {
  margin-bottom: 0;
}

/* Split / about */
.split {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

@media (max-width: 800px) {
  .split {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }

  .split-intro h2 {
    white-space: normal !important;
    font-size: clamp(1.2rem, 4vw, 1.75rem) !important;
  }

  .split-intro .lead {
    font-size: 1rem;
  }

  .split-card {
    padding: 1.5rem;
  }
}

.split-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-md);
}

.split-card .h3 {
  color: var(--color-accent);
}

/* Cards */
.card-grid {
  display: grid;
  gap: 1.25rem;
}

.card-grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

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

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

.card-grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

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

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

.card {
  border-radius: var(--radius);
  padding: 1.5rem;
}

/* Value cards: white surfaces on the shared page color (replaces full-width dark band) */
.card-surface {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
}

.card-surface h3 {
  color: var(--color-ink);
  margin: 0 0 0.5rem;
}

.card-surface p {
  color: var(--color-ink-muted);
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.6;
}

.card-icon {
  font-size: 1rem;
  color: var(--color-gold);
  line-height: 1;
  margin-bottom: 0.25rem;
}

/* Features */
.feature-list {
  display: grid;
  gap: 0;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--color-surface);
  box-shadow: var(--shadow-sm);
}

.feature {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.5rem;
  padding: 1.75rem 1.75rem 1.75rem 1.5rem;
  border-bottom: 1px solid var(--color-border);
  align-items: start;
}

.feature:last-child {
  border-bottom: none;
}

.feature-num {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--color-gold);
  line-height: 1;
  min-width: 2.5rem;
}

.feature h3 {
  margin-bottom: 0.35rem;
}

.feature p {
  margin: 0;
  color: var(--color-ink-muted);
  font-size: 1rem;
}

/* Events */
.events-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

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

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

.event-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 1.35rem 1.25rem;
}

.event-meta {
  margin: 0 0 0.5rem;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-accent);
}

.event-card h3 {
  margin: 0 0 0.55rem;
  font-size: 1.1rem;
}

.event-card p {
  /* margin: 0 0 1rem; */
  color: var(--color-ink-muted);
}

.event-link {
  font-weight: 600;
  text-decoration: none;
  color: var(--color-accent);
}

.event-link:hover {
  color: var(--color-accent-hover);
  text-decoration: underline;
}

/* Steps */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  counter-reset: step;
}

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

.steps li {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem 1.5rem 1.5rem;
  position: relative;
  padding-top: 3rem;
  box-shadow: var(--shadow-sm);
  counter-increment: step;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  top: 1.25rem;
  left: 1.5rem;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--color-accent);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
}

.steps h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.steps p {
  margin: 0;
  font-size: 0.98rem;
  color: var(--color-ink-muted);
}

/* Two column */
.two-col {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 2.5rem;
  align-items: start;
}

.two-col-reverse {
  grid-template-columns: 340px 1fr;
}

@media (max-width: 880px) {
  .two-col,
  .two-col-reverse {
    grid-template-columns: 1fr;
  }

  .two-col-reverse .aside-card {
    order: -1;
  }
}

.aside-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
}

.aside-accent {
  background: linear-gradient(145deg, rgba(99, 102, 241, 0.12), var(--color-gold-soft));
  border-color: rgba(99, 102, 241, 0.28);
}

.aside-card .h3 {
  color: var(--color-accent);
}

.divider {
  border: none;
  border-top: 1px solid var(--color-border);
  margin: 1.25rem 0;
}

.checklist {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
}

.checklist li {
  position: relative;
  padding-left: 1.75rem;
  margin-bottom: 0.65rem;
  color: var(--color-ink-muted);
}

.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 2px;
  background: var(--color-gold);
  box-shadow: 0 0 0 2px var(--color-gold-soft);
}

.bullet-list {
  margin: 0 0 1.5rem;
  padding-left: 1.25rem;
  color: var(--color-ink-muted);
}

.bullet-list li {
  margin-bottom: 0.5rem;
}

.note {
  margin-top: 1.5rem;
  font-size: 0.95rem;
}

.note-warn {
  background: var(--color-warn-bg);
  border: 1px solid var(--color-warn-border);
  border-radius: var(--radius);
  padding: 1rem 1.15rem;
  color: var(--color-warn-text);
}

/* CTA: one bold card on the same page canvas (not a full-bleed color stripe) */
.section--cta {
  padding: clamp(1.5rem, 4vw, 2.5rem) 0;
}

.cta-banner {
  background: linear-gradient(125deg, #3730a3 0%, #6366f1 48%, #4f46e5 100%);
  color: #fff;
  text-align: center;
  border-radius: var(--radius-lg);
  padding: clamp(2.5rem, 6vw, 3.5rem) clamp(1.5rem, 4vw, 2.5rem);
  box-shadow: var(--shadow-lg);
  max-width: 800px;
  margin-inline: auto;
}

.cta-banner h2 {
  color: #fff;
  max-width: 520px;
  margin: 0 auto 1.75rem;
  font-size: clamp(1.65rem, 3vw, 2.1rem);
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

/* Contact */
.contact-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-md);
  font-style: normal;
}

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

.contact-block .h3 {
  margin-bottom: 0.5rem;
}

.contact-block a {
  font-weight: 600;
  text-decoration: none;
  color: var(--color-accent);
}

.contact-block a:hover {
  text-decoration: underline;
}

/* Footer */
.site-footer {
  background: #1e1b4b;
  color: #c4c2e8;
  padding: 3rem 0 2rem;
}

.site-footer a {
  color: #e2e8f0;
  text-decoration: none;
}

.site-footer a:hover {
  color: #fff;
  text-decoration: underline;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

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

.footer-brand .logo {
  color: #fff;
  margin-bottom: 0.75rem;
}

.footer-brand .logo:hover {
  color: #fff;
  opacity: 0.9;
}

.footer-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
}

.disclaimer {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.75rem;
  margin-bottom: 1.5rem;
}

.disclaimer .h3 {
  color: #fff;
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.disclaimer p {
  font-size: 0.9rem;
  line-height: 1.6;
  color: #a8a5cc;
  max-width: 720px;
}

.copyright {
  margin: 0;
  padding-top: 0.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: #8b87b8;
}

/* Modal */
.modal {
  width: min(92vw, 640px);
  max-width: 640px;
  max-height: min(90vh, 800px);
  padding: 0;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  color: var(--color-ink);
  box-shadow: 0 30px 80px rgba(26, 35, 50, 0.2);
  overflow: hidden;
}

.modal[open] {
  display: flex;
  flex-direction: column;
}

.modal::backdrop {
  background: rgba(20, 28, 36, 0.55);
  backdrop-filter: blur(2px);
}

body.modal-open {
  overflow: hidden;
}

.modal-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding: clamp(1.5rem, 3vw, 2rem) clamp(1.5rem, 3vw, 2.25rem);
  overflow-y: auto;
  max-height: inherit;
}

.modal-header {
  position: relative;
  padding-right: 2.5rem;
}

.modal-header .eyebrow {
  margin: 0 0 0.5rem;
}

.modal-title {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.4vw, 1.75rem);
  margin: 0 0 0.5rem;
}

.modal-lead {
  margin: 0;
  color: var(--color-ink-muted);
  font-size: 0.98rem;
}

.modal-close {
  position: absolute;
  top: -0.25rem;
  right: -0.5rem;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-ink-muted);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s var(--ease), color 0.2s;
}

.modal-close:hover {
  background: var(--color-gold-soft);
  color: var(--color-ink);
}

/* Form grid */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem 1rem;
}

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

.field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.92rem;
  color: var(--color-ink);
}

.field-full {
  grid-column: 1 / -1;
}

.field-label {
  font-weight: 600;
  color: var(--color-ink);
}

.req {
  color: #b14b3e;
  margin-left: 2px;
}

.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field select,
.field textarea {
  font-family: var(--font-body);
  font-size: 0.98rem;
  color: var(--color-ink);
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  padding: 0.65rem 0.8rem;
  width: 100%;
  transition: border-color 0.15s var(--ease), box-shadow 0.15s var(--ease);
}

.field textarea {
  resize: vertical;
  min-height: 96px;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px var(--color-focus-ring);
}

.field input:invalid:not(:placeholder-shown),
.field textarea:invalid:not(:placeholder-shown) {
  border-color: #c05a4d;
}

.checkbox-field {
  flex-direction: row;
  align-items: flex-start;
  gap: 0.6rem;
  font-weight: 500;
  color: var(--color-ink-muted);
}

.checkbox-field input[type="checkbox"] {
  margin-top: 0.25rem;
  width: 1.05rem;
  height: 1.05rem;
  accent-color: var(--color-accent);
}

.form-status {
  margin: 0;
  min-height: 1.25rem;
  font-size: 0.92rem;
  color: var(--color-ink-muted);
}

.form-status.is-error {
  color: #b14b3e;
}

.form-status.is-success {
  color: #156b4f;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.modal-actions .btn[disabled] {
  opacity: 0.65;
  cursor: progress;
}

.modal-note {
  margin: 0;
}

@media (max-width: 480px) {
  .modal-actions {
    flex-direction: column-reverse;
  }
  .modal-actions .btn {
    width: 100%;
  }
}
/* ================================================================== */
/* Objectives Section                                                  */
/* ================================================================== */
.objectives-section {
  background: var(--color-bg);
  padding: clamp(3rem, 7vw, 5.5rem) 0;
}

.objectives-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 3rem;
  align-items: center;
}

/* Illustration */
.objectives-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: stretch;
}

.objectives-illustration {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: sticky;
  top: 2rem;
  margin-top: 140px;
}

/* Content */
.objectives-content .eyebrow {
  margin-bottom: 0.6rem;
}

.objectives-content h2 {
  margin-bottom: 1.75rem;
  font-size: clamp(1.3rem, 2.2vw, 1.75rem);
  line-height: 1.35;
}

/* 2-column pointer grid */
.objectives-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

/* Last item full width if odd count */
.objectives-list li:last-child:nth-child(odd) {
  grid-column: 1 / -1;
}

.objectives-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  padding: 0.85rem 1rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-left: 3px solid var(--color-accent);
  border-radius: var(--radius);
  transition: box-shadow 0.18s var(--ease), transform 0.18s var(--ease);
  line-height: 1.5;
}

.objectives-list li:hover {
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}

/* Clean diamond bullet */
.obj-bullet {
  display: inline-block;
  width: 8px;
  height: 8px;
  min-width: 8px;
  background: var(--color-accent);
  border-radius: 2px;
  transform: rotate(45deg);
  margin-top: 0.35rem;
  flex-shrink: 0;
}

.objectives-list li span:last-child {
  font-size: 0.88rem;
  color: var(--color-ink-muted);
  line-height: 1.55;
}

/* Responsive */
@media (max-width: 960px) {
  .objectives-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .objectives-visual {
    order: -1;
  }
  .fraternity-img {
    max-width: 380px;
    margin: 0 auto;
  }
}

@media (max-width: 560px) {
  .objectives-list {
    grid-template-columns: 1fr;
  }
  .objectives-list li:last-child:nth-child(odd) {
    grid-column: auto;
  }
}

/* Fraternity PNG image — full width, grey drop-shadow, no border */
.fraternity-img {
  width: 100%;
  height: auto;
  display: block;
  border: none;
  border-radius: 0;
  box-shadow: none;
  filter: drop-shadow(0 16px 40px rgba(80,80,80,0.55));
}
/* ================================================================== */
/* Team Section (index page)                                          */
/* ================================================================== */
.team-section {
  background: var(--color-bg);
  padding: clamp(3rem, 6vw, 5rem) 0;
}

.section-lead {
  color: var(--color-ink-muted);
  font-size: 1.05rem;
  max-width: 680px;
  margin: 0.5rem auto 0;
}

.section-header {
  margin-bottom: 3rem;
}

.team-sub-label {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 0 0 1.75rem;
}

.team-sub-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--color-ink);
  white-space: nowrap;
}

.team-sub-line {
  flex: 1;
  height: 2px;
  background: linear-gradient(90deg, var(--color-accent), transparent);
  border-radius: 2px;
}

.section-label-badge {
  background: linear-gradient(135deg, #6366f1, #4f46e5);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.team-sub-sublabel {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--color-ink-muted);
  text-transform: uppercase;
  text-align: center;
  margin: 2rem 0 0.75rem;
}

.team-hr {
  border: none;
  border-top: 1px solid var(--color-border);
  margin: 0 0 2rem;
}

/* Modal styles for index page */
.member-modal-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 900;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}
.member-modal-backdrop.is-open {
  display: flex;
  animation: backdrop-in 0.2s ease;
}
@keyframes backdrop-in { from { opacity: 0; } to { opacity: 1; } }
.member-modal {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 64px rgba(0,0,0,0.2);
  max-width: 560px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  animation: modal-in 0.22s var(--ease);
}
@keyframes modal-in {
  from { opacity: 0; transform: translateY(16px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.member-modal-header {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  padding: 1.75rem 1.75rem 1.25rem;
  border-bottom: 1px solid var(--color-border);
}
.member-modal-photo {
  width: 80px; height: 80px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: linear-gradient(145deg, rgba(99,102,241,0.15), rgba(234,88,12,0.1));
  display: flex; align-items: center; justify-content: center;
}
.member-modal-photo img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.member-modal-photo-placeholder { font-family: var(--font-display); font-size: 1.6rem; font-weight: 700; color: var(--color-accent); }
.member-modal-title { flex: 1; }
.member-modal-title h2 { font-family: var(--font-display); font-size: 1.25rem; font-weight: 700; color: var(--color-ink); margin: 0 2rem 0 0; line-height: 1.3; }
.member-modal-close {
  position: absolute; top: 1.25rem; right: 1.25rem;
  background: none; border: none; cursor: pointer;
  color: var(--color-ink-muted); font-size: 1.4rem; line-height: 1;
  padding: 0.25rem 0.5rem; border-radius: 50%;
  transition: background 0.15s, color 0.15s;
}
.member-modal-close:hover { background: var(--color-bg); color: var(--color-ink); }
.member-modal-body { padding: 1.5rem 1.75rem 2rem; font-size: 0.97rem; color: var(--color-ink-muted); line-height: 1.75; }
.member-modal-body p { margin: 0 0 0.85rem; }
.member-modal-body p:last-child { margin-bottom: 0; }

/* Member cards for index page */
.member-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s var(--ease), transform 0.2s var(--ease);
  display: flex;
  flex-direction: column;
  height: 500px;
}
.member-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.member-photo-wrap {
  width: 100%; height: 280px; flex-shrink: 0; overflow: hidden;
  background: linear-gradient(145deg, rgba(99,102,241,0.1), rgba(234,88,12,0.08));
  display: flex; align-items: center; justify-content: center;
}
.member-photo-wrap img { width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; }
.member-photo-wrap img.photo-face-center { object-position: center center !important; }
.member-photo-placeholder {
  width: 80px; height: 80px; border-radius: 50%;
  background: linear-gradient(145deg, var(--color-accent), var(--color-teal));
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 2rem; font-weight: 700; color: #fff;
}
.member-body { padding: 1.25rem 1.25rem 1rem; flex: 1; display: flex; flex-direction: column; overflow: hidden; }
.member-name { font-family: var(--font-display); font-size: 1.05rem; font-weight: 600; color: var(--color-ink); margin: 0 0 0.25rem; line-height: 1.25; }
.member-divider { width: 32px; height: 2px; background: linear-gradient(90deg, var(--color-accent), var(--color-teal)); border-radius: 2px; margin: 0.5rem 0 0.6rem; flex-shrink: 0; }
.member-bio-preview { font-size: 0.88rem; color: var(--color-ink-muted); line-height: 1.55; margin: 0 0 auto; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; line-clamp: 3; }
.btn-read-more {
  margin-top: 0.85rem; display: inline-flex; align-items: center; gap: 0.3rem;
  background: none; border: 1.5px solid var(--color-accent); color: var(--color-accent);
  border-radius: 999px; padding: 0.35rem 1rem; font-size: 0.82rem; font-weight: 600;
  cursor: pointer; transition: background 0.15s, color 0.15s; align-self: flex-start; flex-shrink: 0;
}
.btn-read-more:hover { background: var(--color-accent); color: #fff; }
/* Grid — stretch makes every card fill its row height equally */
.members-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 2rem;
  align-items: stretch;
}
/* Cards always fill their grid cell so same-row cards are identical height */
.members-grid .member-card { height: 100%; }

.single-card-wrap { display: flex; flex-direction: column; align-items: center; }
.role-label { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; color: var(--color-accent); text-transform: uppercase; margin-bottom: 0.6rem; }
.mentor-convenor-row { display: flex; justify-content: center; align-items: flex-start; gap: 0; }
.mentor-convenor-col { display: flex; flex-direction: column; align-items: center; flex: 0 0 280px; }
.mentor-convenor-col .member-card { width: 100%; }
.mentor-convenor-divider { width: 1px; background: var(--color-border); margin: 2.5rem 3rem; align-self: stretch; flex-shrink: 0; }

/* Mobile S — ≤640px: single column, centered cards */
@media (max-width: 640px) {
  .mentor-convenor-row { flex-direction: column; align-items: center; }
  .mentor-convenor-divider { width: 80%; height: 1px; margin: 1rem auto; }
  .mentor-convenor-col { flex: 0 0 auto; width: 100%; max-width: 320px; }
  .member-card { height: auto; min-height: 0; width: 100%; }
  .member-photo-wrap { height: 260px; }
  .members-grid {
    grid-template-columns: 1fr;
    justify-items: center;
  }
  .members-grid .member-card { max-width: 320px; width: 100%; height: auto; }
  .member-name { font-size: 0.95rem; }
  .member-bio-preview { font-size: 0.8rem; -webkit-line-clamp: 2; line-clamp: 2; }
  .member-body { padding: 0.9rem 1rem 0.75rem; }
  .btn-read-more { font-size: 0.75rem; padding: 0.28rem 0.85rem; margin-top: 0.6rem; }
}

/* Mobile M — 641–767px: single column (avoid overflow on narrow 2-col layout) */
@media (min-width: 641px) and (max-width: 767px) {
  .mentor-convenor-col { flex: 0 0 auto; width: 100%; max-width: 420px; }
  .mentor-convenor-row { flex-direction: column; align-items: center; }
  .mentor-convenor-divider { width: 80%; height: 1px; margin: 1rem auto; }
  .member-card { height: auto; min-height: 0; }
  .member-photo-wrap { height: 260px; }
  .members-grid {
    grid-template-columns: 1fr;
    justify-items: center;
  }
  .members-grid .member-card { max-width: 420px; width: 100%; height: auto; }
  .member-name { font-size: 0.95rem; }
  .member-bio-preview { font-size: 0.8rem; -webkit-line-clamp: 2; line-clamp: 2; }
  .member-body { padding: 0.9rem 1rem 0.75rem; }
  .btn-read-more { font-size: 0.75rem; }
}

/* Mobile L / Tablet — 768–900px: 2-column grid, cards stretch equally */
@media (min-width: 768px) and (max-width: 900px) {
  .mentor-convenor-col { flex: 0 0 260px; }
  .member-card { height: auto; min-height: 0; }
  .member-photo-wrap { height: 250px; }
  .members-grid {
    grid-template-columns: repeat(2, 1fr);
    align-items: stretch;
  }
  .members-grid .member-card { max-width: 100%; height: 100%; }
  .member-name { font-size: 1rem; }
  .member-bio-preview { font-size: 0.82rem; -webkit-line-clamp: 2; line-clamp: 2; }
  .member-body { padding: 1rem 1.1rem 0.9rem; }
  .btn-read-more { font-size: 0.78rem; }
}

/* Laptop / large tablet (901–1024px) */
@media (min-width: 901px) and (max-width: 1024px) {
  .member-card { height: auto; min-height: 0; }
  .member-photo-wrap { height: 240px; }
  .members-grid { align-items: stretch; }
  .members-grid .member-card { max-width: 100%; height: 100%; }
  .member-name { font-size: 1rem; }
  .member-bio-preview { font-size: 0.84rem; -webkit-line-clamp: 2; line-clamp: 2; }
  .member-body { padding: 1rem 1.1rem 0.9rem; }
}