/* ============================================================
   NACE Website — Design System & Styles
   North East Association of Conservative Dentistry & Endodontics
   ============================================================ */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Poppins:wght@500;600;700;800&display=swap');

/* --- CSS Custom Properties --- */
:root {
  /* Colour palette — derived from NACE logo */
  --primary: #1B3A6B;
  --primary-light: #244b8a;
  --primary-dark: #122849;
  --secondary: #2E9BD6;
  --secondary-light: #4db1e5;
  --accent: #9B8FC7;
  --accent-light: #b5abda;
  --deep-accent: #2C4C9B;
  --text: #1F2933;
  --text-light: #52606D;
  --text-muted: #7B8794;
  --surface: #FBFBFD;
  --surface-alt: #EEF2F8;
  --surface-card: #FFFFFF;
  --success: #2E8B57;
  --success-light: #3aad6e;
  --white: #FFFFFF;
  --border: #D9E2EC;
  --shadow-sm: 0 1px 3px rgba(27, 58, 107, 0.08);
  --shadow-md: 0 4px 14px rgba(27, 58, 107, 0.10);
  --shadow-lg: 0 8px 30px rgba(27, 58, 107, 0.14);
  --shadow-xl: 0 20px 60px rgba(27, 58, 107, 0.18);

  /* Typography */
  --font-heading: 'Poppins', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Spacing scale */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;

  /* Radius */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 50%;

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.5s ease;

  /* Layout */
  --container-max: 1200px;
  --header-height: 80px;
}

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

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

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

a {
  color: var(--secondary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

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

ul, ol {
  list-style: none;
}

button {
  font-family: var(--font-body);
  cursor: pointer;
  border: none;
  background: none;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--primary);
  line-height: 1.3;
  font-weight: 700;
}

h1 { font-size: clamp(2rem, 5vw, 3rem); }
h2 { font-size: clamp(1.5rem, 4vw, 2.25rem); }
h3 { font-size: clamp(1.2rem, 3vw, 1.5rem); }
h4 { font-size: 1.15rem; }

p {
  margin-bottom: 1rem;
  color: var(--text-light);
}

/* --- Container --- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

/* --- Section --- */
.section {
  padding: var(--space-4xl) 0;
}

.section--alt {
  background: var(--surface-alt);
}

.section__header {
  text-align: center;
  margin-bottom: var(--space-3xl);
}

.section__header h2 {
  margin-bottom: var(--space-md);
  position: relative;
  display: inline-block;
}

.section__header h2::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--secondary), var(--accent));
  border-radius: 2px;
}

.section__subtitle {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 650px;
  margin: var(--space-lg) auto 0;
}

/* ============================================================
   HEADER & NAVIGATION
   ============================================================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(27, 58, 107, 0.06);
  transition: box-shadow var(--transition-base), background var(--transition-base);
}

.header.scrolled {
  box-shadow: var(--shadow-md);
  background: rgba(255, 255, 255, 0.97);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.header__logo {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  text-decoration: none;
  flex-shrink: 0;
}

.header__logo img {
  height: 52px;
  width: auto;
}

.header__logo-text {
  display: flex;
  flex-direction: column;
}

.header__logo-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--primary);
  line-height: 1.2;
}

.header__logo-tagline {
  font-size: 0.72rem;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

.nav {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.nav__link {
  padding: var(--space-sm) var(--space-md);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.nav__link:hover,
.nav__link.active {
  color: var(--secondary);
  background: rgba(46, 155, 214, 0.06);
}

.nav__cta {
  margin-left: var(--space-sm);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  z-index: 1010;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2.5px;
  background: var(--primary);
  border-radius: 2px;
  transition: all var(--transition-base);
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobile nav */
@media (max-width: 968px) {
  .hamburger {
    display: flex;
  }

  .nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100vh;
    background: var(--white);
    flex-direction: column;
    align-items: flex-start;
    padding: calc(var(--header-height) + var(--space-xl)) var(--space-xl) var(--space-xl);
    box-shadow: var(--shadow-xl);
    transition: right var(--transition-base);
    gap: var(--space-xs);
  }

  .nav.open {
    right: 0;
  }

  .nav__link {
    width: 100%;
    padding: var(--space-md);
    font-size: 1rem;
  }

  .nav__cta {
    margin-left: 0;
    margin-top: var(--space-md);
    width: 100%;
  }

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

  .header__logo-text {
    display: none;
  }
}

@media (max-width: 480px) {
  .header__logo img {
    height: 42px;
  }
}

/* Mobile overlay */
.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(27, 58, 107, 0.3);
  z-index: 999;
  backdrop-filter: blur(4px);
}

.nav-overlay.active {
  display: block;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 0.75rem 1.75rem;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  transition: all var(--transition-base);
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  white-space: nowrap;
}

.btn--primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--deep-accent) 100%);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(27, 58, 107, 0.25);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(27, 58, 107, 0.35);
  color: var(--white);
}

.btn--secondary {
  background: var(--white);
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn--secondary:hover {
  background: var(--primary);
  color: var(--white);
  transform: translateY(-2px);
}

.btn--accent {
  background: linear-gradient(135deg, var(--secondary) 0%, var(--deep-accent) 100%);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(46, 155, 214, 0.25);
}

.btn--accent:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(46, 155, 214, 0.35);
  color: var(--white);
}

.btn--success {
  background: linear-gradient(135deg, var(--success) 0%, #25a55e 100%);
  color: var(--white);
}

.btn--success:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(46, 139, 87, 0.3);
  color: var(--white);
}

.btn--sm {
  padding: 0.5rem 1.2rem;
  font-size: 0.82rem;
}

.btn--lg {
  padding: 1rem 2.25rem;
  font-size: 1rem;
}

.btn--icon {
  padding: 0.6rem;
  border-radius: var(--radius-full);
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  padding-top: var(--header-height);
  background: linear-gradient(160deg, var(--surface) 0%, var(--surface-alt) 40%, rgba(155, 143, 199, 0.08) 100%);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -15%;
  width: 650px;
  height: 650px;
  background: radial-gradient(circle, rgba(46, 155, 214, 0.08) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -20%;
  left: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(155, 143, 199, 0.07) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero__content {
  max-width: 580px;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 0.4rem 1rem;
  background: rgba(46, 155, 214, 0.1);
  color: var(--deep-accent);
  font-size: 0.82rem;
  font-weight: 600;
  border-radius: var(--radius-xl);
  margin-bottom: var(--space-lg);
  border: 1px solid rgba(46, 155, 214, 0.15);
}

.hero__title {
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  font-weight: 800;
  color: var(--primary);
  margin-bottom: var(--space-lg);
  line-height: 1.15;
}

.hero__title span {
  background: linear-gradient(135deg, var(--secondary), var(--deep-accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__text {
  font-size: 1.1rem;
  color: var(--text-light);
  margin-bottom: var(--space-2xl);
  line-height: 1.8;
}

.hero__buttons {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.hero__visual {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.hero__logo-wrapper {
  position: relative;
  width: 380px;
  height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero__logo-wrapper::before {
  content: '';
  position: absolute;
  inset: -20px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(46, 155, 214, 0.1) 0%, rgba(155, 143, 199, 0.1) 50%, rgba(44, 76, 155, 0.08) 100%);
  animation: pulse-ring 4s ease-in-out infinite;
}

.hero__logo-wrapper img {
  width: 320px;
  height: auto;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 10px 30px rgba(27, 58, 107, 0.12));
}

@keyframes pulse-ring {
  0%, 100% { transform: scale(1); opacity: 0.7; }
  50% { transform: scale(1.06); opacity: 1; }
}

/* Floating stat badges around hero logo */
.hero__float-badge {
  position: absolute;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 0.8rem 1.2rem;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  z-index: 2;
  animation: float 6s ease-in-out infinite;
}

.hero__float-badge:nth-child(2) {
  top: 10%;
  right: -10%;
  animation-delay: 0s;
}

.hero__float-badge:nth-child(3) {
  bottom: 15%;
  left: -5%;
  animation-delay: 2s;
}

.hero__float-badge:nth-child(4) {
  bottom: 5%;
  right: 5%;
  animation-delay: 4s;
}

.hero__float-badge .badge-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.hero__float-badge .badge-icon--blue {
  background: rgba(46, 155, 214, 0.12);
  color: var(--secondary);
}

.hero__float-badge .badge-icon--purple {
  background: rgba(155, 143, 199, 0.15);
  color: var(--accent);
}

.hero__float-badge .badge-icon--green {
  background: rgba(46, 139, 87, 0.12);
  color: var(--success);
}

.hero__float-badge .badge-text {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@media (max-width: 968px) {
  .hero {
    min-height: auto;
    padding-top: calc(var(--header-height) + var(--space-2xl));
    padding-bottom: var(--space-3xl);
  }

  .hero__inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero__content {
    max-width: 100%;
  }

  .hero__buttons {
    justify-content: center;
  }

  .hero__visual {
    order: -1;
  }

  .hero__logo-wrapper {
    width: 260px;
    height: 260px;
  }

  .hero__logo-wrapper img {
    width: 220px;
  }

  .hero__float-badge {
    display: none;
  }
}

/* ============================================================
   CARDS
   ============================================================ */
.card {
  background: var(--surface-card);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(27, 58, 107, 0.04);
  transition: all var(--transition-base);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.card__icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: var(--space-lg);
}

.card__icon--blue {
  background: linear-gradient(135deg, rgba(46, 155, 214, 0.12), rgba(44, 76, 155, 0.1));
  color: var(--secondary);
}

.card__icon--purple {
  background: linear-gradient(135deg, rgba(155, 143, 199, 0.15), rgba(155, 143, 199, 0.08));
  color: var(--accent);
}

.card__icon--green {
  background: linear-gradient(135deg, rgba(46, 139, 87, 0.12), rgba(46, 139, 87, 0.06));
  color: var(--success);
}

.card__icon--navy {
  background: linear-gradient(135deg, rgba(27, 58, 107, 0.1), rgba(27, 58, 107, 0.05));
  color: var(--primary);
}

.card__title {
  font-size: 1.15rem;
  margin-bottom: var(--space-sm);
}

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

/* Card grid */
.card-grid {
  display: grid;
  gap: var(--space-xl);
}

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

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

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

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

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

/* ============================================================
   CTA BANNER
   ============================================================ */
.cta-banner {
  background: linear-gradient(135deg, var(--primary) 0%, var(--deep-accent) 60%, var(--secondary) 100%);
  border-radius: var(--radius-xl);
  padding: var(--space-3xl) var(--space-2xl);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, transparent 70%);
  border-radius: 50%;
}

.cta-banner h2 {
  color: var(--white);
  margin-bottom: var(--space-md);
  position: relative;
}

.cta-banner h2::after {
  display: none;
}

.cta-banner p {
  color: rgba(255, 255, 255, 0.85);
  max-width: 600px;
  margin: 0 auto var(--space-xl);
  font-size: 1.05rem;
}

.cta-banner .btn {
  position: relative;
}

/* ============================================================
   LEADERSHIP / PERSON CARDS
   ============================================================ */
.person-card {
  background: var(--surface-card);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(27, 58, 107, 0.04);
  transition: all var(--transition-base);
}

.person-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.person-card__avatar {
  width: 90px;
  height: 90px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--surface-alt), rgba(155, 143, 199, 0.15));
  margin: 0 auto var(--space-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--accent);
  overflow: hidden;
  border: 3px solid var(--white);
  box-shadow: 0 4px 12px rgba(27, 58, 107, 0.1);
}

.person-card__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.person-card__name {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.person-card__role {
  font-size: 0.85rem;
  color: var(--secondary);
  font-weight: 500;
  margin-bottom: 0.25rem;
}

.person-card__state {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.person-grid {
  display: grid;
  gap: var(--space-lg);
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}

/* Leadership section grouping */
.leadership-group {
  margin-bottom: var(--space-3xl);
}

.leadership-group__title {
  font-size: 1.1rem;
  color: var(--deep-accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  margin-bottom: var(--space-xl);
  padding-bottom: var(--space-sm);
  border-bottom: 2px solid var(--accent-light);
  display: inline-block;
}

/* ============================================================
   MEMBER / DIRECTORY CARDS
   ============================================================ */
.member-card {
  background: var(--surface-card);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(27, 58, 107, 0.04);
  transition: all var(--transition-base);
  position: relative;
  display: flex;
  gap: var(--space-lg);
}

.member-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.member-card__avatar {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--surface-alt), rgba(46, 155, 214, 0.1));
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: var(--secondary);
  overflow: hidden;
}

.member-card__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.member-card__body {
  flex: 1;
  min-width: 0;
}

.member-card__name {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.15rem;
}

.member-card__qualification {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}

.member-card__focus {
  font-size: 0.85rem;
  color: var(--deep-accent);
  font-weight: 500;
  margin-bottom: var(--space-sm);
}

.member-card__location {
  font-size: 0.88rem;
  color: var(--text-light);
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 0.25rem;
}

.member-card__clinic {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: var(--space-md);
}

.member-card__actions {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
  align-items: center;
}

.member-card__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.3rem 0.75rem;
  background: rgba(46, 139, 87, 0.1);
  color: var(--success);
  font-size: 0.78rem;
  font-weight: 600;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(46, 139, 87, 0.15);
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
}

.member-card__badge::before {
  content: '';
  width: 7px;
  height: 7px;
  background: var(--success);
  border-radius: 50%;
  animation: blink 2s ease-in-out infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.btn--whatsapp {
  background: #25D366;
  color: var(--white);
  font-size: 0.82rem;
  padding: 0.45rem 1rem;
}

.btn--whatsapp:hover {
  background: #1ebe57;
  color: var(--white);
  transform: translateY(-1px);
}

.btn--call {
  background: rgba(46, 155, 214, 0.1);
  color: var(--secondary);
  font-size: 0.82rem;
  padding: 0.45rem 1rem;
  border: 1px solid rgba(46, 155, 214, 0.2);
}

.btn--call:hover {
  background: var(--secondary);
  color: var(--white);
}

@media (max-width: 600px) {
  .member-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .member-card__actions {
    justify-content: center;
  }

  .member-card__location {
    justify-content: center;
  }
}

/* ============================================================
   DIRECTORY FILTERS
   ============================================================ */
.directory-controls {
  background: var(--surface-card);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  box-shadow: var(--shadow-md);
  margin-bottom: var(--space-2xl);
  border: 1px solid rgba(27, 58, 107, 0.04);
}

.directory-controls__row {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
  align-items: flex-end;
}

.directory-controls__group {
  flex: 1;
  min-width: 180px;
}

.directory-controls__label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: var(--space-sm);
}

.directory-controls input[type="text"],
.directory-controls select {
  width: 100%;
  padding: 0.7rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 0.92rem;
  color: var(--text);
  background: var(--surface);
  transition: all var(--transition-fast);
}

.directory-controls input[type="text"]:focus,
.directory-controls select:focus {
  outline: none;
  border-color: var(--secondary);
  box-shadow: 0 0 0 3px rgba(46, 155, 214, 0.12);
}

.directory-controls input[type="text"]::placeholder {
  color: var(--text-muted);
}

.directory-controls__toggle {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 0.88rem;
  color: var(--text-light);
  cursor: pointer;
  padding: 0.7rem 0;
  user-select: none;
}

.directory-controls__toggle input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--success);
}

.directory-controls__actions {
  display: flex;
  gap: var(--space-sm);
  align-items: center;
  padding-top: 0.3rem;
}

.directory-results-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-lg);
  font-size: 0.9rem;
  color: var(--text-muted);
}

.directory-empty {
  text-align: center;
  padding: var(--space-4xl) var(--space-xl);
  color: var(--text-muted);
}

.directory-empty__icon {
  font-size: 3rem;
  margin-bottom: var(--space-lg);
  opacity: 0.5;
}

.directory-empty h3 {
  color: var(--text-light);
  margin-bottom: var(--space-sm);
}

/* Member card grid */
.member-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(440px, 1fr));
  gap: var(--space-lg);
  margin-bottom: var(--space-2xl);
}

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

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--space-sm);
  margin-top: var(--space-2xl);
}

.pagination__btn {
  padding: 0.55rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-light);
  background: var(--surface-card);
  border: 1px solid var(--border);
  transition: all var(--transition-fast);
}

.pagination__btn:hover:not(:disabled) {
  background: var(--secondary);
  color: var(--white);
  border-color: var(--secondary);
}

.pagination__btn.active {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

.pagination__btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* ============================================================
   GALLERY
   ============================================================ */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-md);
}

.gallery-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 4 / 3;
  background: var(--surface-alt);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(27, 58, 107, 0.4) 0%, transparent 50%);
  opacity: 0;
  transition: opacity var(--transition-base);
}

.gallery-item:hover::after {
  opacity: 1;
}

.gallery-item__caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--space-md);
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 500;
  z-index: 1;
  opacity: 0;
  transform: translateY(10px);
  transition: all var(--transition-base);
}

.gallery-item:hover .gallery-item__caption {
  opacity: 1;
  transform: translateY(0);
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(10px);
  align-items: center;
  justify-content: center;
}

.lightbox.active {
  display: flex;
}

.lightbox__img {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: var(--radius-md);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.lightbox__close {
  position: absolute;
  top: var(--space-xl);
  right: var(--space-xl);
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition-fast);
  cursor: pointer;
  border: none;
}

.lightbox__close:hover {
  background: rgba(255, 255, 255, 0.25);
}

.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition-fast);
  cursor: pointer;
  border: none;
}

.lightbox__nav:hover {
  background: rgba(255, 255, 255, 0.25);
}

.lightbox__nav--prev {
  left: var(--space-xl);
}

.lightbox__nav--next {
  right: var(--space-xl);
}

.lightbox__counter {
  position: absolute;
  bottom: var(--space-xl);
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.88rem;
}

/* Gallery filter tabs */
.gallery-tabs {
  display: flex;
  justify-content: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-2xl);
  flex-wrap: wrap;
}

.gallery-tab {
  padding: 0.5rem 1.2rem;
  border-radius: var(--radius-xl);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-light);
  background: var(--surface-card);
  border: 1px solid var(--border);
  transition: all var(--transition-fast);
  cursor: pointer;
}

.gallery-tab:hover,
.gallery-tab.active {
  background: var(--secondary);
  color: var(--white);
  border-color: var(--secondary);
}

/* ============================================================
   RULES / BYE-LAWS
   ============================================================ */
.rules-toc {
  background: var(--surface-card);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  margin-bottom: var(--space-2xl);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(27, 58, 107, 0.04);
}

.rules-toc__title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: var(--space-md);
}

.rules-toc__list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-sm);
}

.rules-toc__link {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  color: var(--text-light);
  transition: all var(--transition-fast);
}

.rules-toc__link:hover {
  background: rgba(46, 155, 214, 0.06);
  color: var(--secondary);
}

.rules-toc__link span {
  font-weight: 600;
  color: var(--secondary);
  min-width: 1.5rem;
}

/* Collapsible articles */
.rules-article {
  background: var(--surface-card);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(27, 58, 107, 0.04);
  overflow: hidden;
}

.rules-article__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-lg) var(--space-xl);
  cursor: pointer;
  transition: background var(--transition-fast);
  user-select: none;
}

.rules-article__header:hover {
  background: rgba(46, 155, 214, 0.03);
}

.rules-article__header h3 {
  font-size: 1.05rem;
  margin: 0;
}

.rules-article__toggle {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-full);
  background: var(--surface-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-base);
  flex-shrink: 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.rules-article.open .rules-article__toggle {
  transform: rotate(180deg);
  background: rgba(46, 155, 214, 0.1);
  color: var(--secondary);
}

.rules-article__body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.rules-article.open .rules-article__body {
  max-height: 5000px;
}

.rules-article__content {
  padding: 0 var(--space-xl) var(--space-xl);
  font-size: 0.93rem;
  line-height: 1.8;
  color: var(--text-light);
}

.rules-article__content h4 {
  color: var(--primary);
  margin: var(--space-lg) 0 var(--space-sm);
  font-size: 1rem;
}

.rules-article__content ol,
.rules-article__content ul {
  padding-left: 1.5rem;
  margin-bottom: var(--space-md);
}

.rules-article__content ol {
  list-style: decimal;
}

.rules-article__content ul {
  list-style: disc;
}

.rules-article__content li {
  margin-bottom: var(--space-sm);
}

.rules-article__content p {
  margin-bottom: var(--space-md);
}

.rules-version {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 0.5rem 1.2rem;
  background: rgba(46, 155, 214, 0.08);
  color: var(--deep-accent);
  border-radius: var(--radius-xl);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: var(--space-xl);
  border: 1px solid rgba(46, 155, 214, 0.12);
}

/* ============================================================
   MEMBERSHIP CARDS
   ============================================================ */
.membership-card {
  background: var(--surface-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(27, 58, 107, 0.04);
  transition: all var(--transition-base);
  display: flex;
  flex-direction: column;
}

.membership-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.membership-card__header {
  padding: var(--space-xl);
  background: linear-gradient(135deg, var(--primary) 0%, var(--deep-accent) 100%);
  color: var(--white);
}

.membership-card__header--student {
  background: linear-gradient(135deg, var(--secondary) 0%, var(--deep-accent) 100%);
}

.membership-card__header--associate {
  background: linear-gradient(135deg, var(--accent) 0%, var(--deep-accent) 100%);
}

.membership-card__header--affiliate {
  background: linear-gradient(135deg, #3a6fa5 0%, var(--primary) 100%);
}

.membership-card__header--honorary {
  background: linear-gradient(135deg, var(--success) 0%, #1a6d3d 100%);
}

.membership-card__type {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.membership-card__fee {
  font-size: 1.6rem;
  font-weight: 800;
  font-family: var(--font-heading);
}

.membership-card__fee small {
  font-size: 0.75rem;
  font-weight: 500;
  opacity: 0.8;
}

.membership-card__body {
  padding: var(--space-xl);
  flex: 1;
  display: flex;
  flex-direction: column;
}

.membership-card__desc {
  font-size: 0.92rem;
  color: var(--text-light);
  margin-bottom: var(--space-lg);
  flex: 1;
}

.membership-card__features {
  margin-bottom: var(--space-lg);
}

.membership-card__features li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  padding: var(--space-sm) 0;
  font-size: 0.88rem;
  color: var(--text-light);
}

.membership-card__features li::before {
  content: '✓';
  color: var(--success);
  font-weight: 700;
  flex-shrink: 0;
}

/* ============================================================
   CONTACT FORM
   ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
}

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

.contact-info-card {
  background: var(--surface-card);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(27, 58, 107, 0.04);
}

.contact-info-item {
  display: flex;
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
}

.contact-info-item:last-child {
  margin-bottom: 0;
}

.contact-info-item__icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: rgba(46, 155, 214, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
  color: var(--secondary);
}

.contact-info-item h4 {
  font-size: 0.95rem;
  margin-bottom: 0.2rem;
}

.contact-info-item p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0;
}

.contact-form {
  background: var(--surface-card);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(27, 58, 107, 0.04);
}

.form-group {
  margin-bottom: var(--space-lg);
}

.form-group label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: var(--space-sm);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text);
  background: var(--surface);
  transition: all var(--transition-fast);
  resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--secondary);
  box-shadow: 0 0 0 3px rgba(46, 155, 214, 0.12);
}

.form-group textarea {
  min-height: 120px;
}

/* Contact map */
.contact-map {
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-top: var(--space-2xl);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(27, 58, 107, 0.04);
}

.contact-map iframe {
  width: 100%;
  height: 350px;
  border: none;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--primary-dark);
  color: rgba(255, 255, 255, 0.8);
  padding: var(--space-4xl) 0 var(--space-xl);
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.2fr;
  gap: var(--space-2xl);
  margin-bottom: var(--space-3xl);
}

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

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

.footer__brand {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.footer__brand img {
  width: 80px;
  height: 80px;
}

.footer__brand p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
  line-height: 1.7;
  margin: 0;
}

.footer__col h4 {
  color: var(--white);
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: var(--space-lg);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.footer__col a {
  display: block;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
  padding: 0.3rem 0;
  transition: all var(--transition-fast);
}

.footer__col a:hover {
  color: var(--white);
  padding-left: 4px;
}

.footer__col p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.88rem;
  margin: 0;
  line-height: 1.7;
}

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: var(--space-xl);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-md);
}

.footer__bottom p {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.4);
  margin: 0;
}

/* ============================================================
   PAGE BANNER (for inner pages)
   ============================================================ */
.page-banner {
  padding: calc(var(--header-height) + var(--space-3xl)) 0 var(--space-3xl);
  background: linear-gradient(160deg, var(--primary) 0%, var(--deep-accent) 60%, var(--secondary) 100%);
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.page-banner::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -15%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.06) 0%, transparent 70%);
  border-radius: 50%;
}

.page-banner::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(155, 143, 199, 0.1) 0%, transparent 70%);
  border-radius: 50%;
}

.page-banner .container {
  position: relative;
  z-index: 1;
}

.page-banner h1 {
  color: var(--white);
  margin-bottom: var(--space-md);
}

.page-banner p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.1rem;
  max-width: 600px;
}

.page-banner .breadcrumb {
  font-size: 0.85rem;
  margin-bottom: var(--space-md);
  color: rgba(255, 255, 255, 0.6);
}

.page-banner .breadcrumb a {
  color: rgba(255, 255, 255, 0.6);
}

.page-banner .breadcrumb a:hover {
  color: var(--white);
}

/* ============================================================
   ANNOUNCEMENT BAND
   ============================================================ */
.announcement-band {
  background: linear-gradient(135deg, rgba(46, 155, 214, 0.06), rgba(155, 143, 199, 0.06));
  border: 1px solid rgba(46, 155, 214, 0.12);
  border-radius: var(--radius-lg);
  padding: var(--space-xl) var(--space-2xl);
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}

.announcement-band__badge {
  padding: 0.3rem 0.8rem;
  background: var(--secondary);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  flex-shrink: 0;
}

.announcement-band__text {
  flex: 1;
  font-size: 0.95rem;
  color: var(--text);
}

.announcement-band__text strong {
  color: var(--primary);
}

/* ============================================================
   SCROLL ANIMATIONS
   ============================================================ */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered children */
.stagger-children .fade-up:nth-child(1) { transition-delay: 0.05s; }
.stagger-children .fade-up:nth-child(2) { transition-delay: 0.1s; }
.stagger-children .fade-up:nth-child(3) { transition-delay: 0.15s; }
.stagger-children .fade-up:nth-child(4) { transition-delay: 0.2s; }
.stagger-children .fade-up:nth-child(5) { transition-delay: 0.25s; }
.stagger-children .fade-up:nth-child(6) { transition-delay: 0.3s; }

/* ============================================================
   UTILITIES
   ============================================================ */
.text-center { text-align: center; }
.text-left { text-align: left; }
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: var(--space-md); }
.mt-2 { margin-top: var(--space-xl); }
.mt-3 { margin-top: var(--space-2xl); }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: var(--space-md); }
.mb-2 { margin-bottom: var(--space-xl); }
.mb-3 { margin-bottom: var(--space-2xl); }

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

/* Privacy note */
.privacy-note {
  background: rgba(46, 155, 214, 0.05);
  border-left: 3px solid var(--secondary);
  padding: var(--space-md) var(--space-lg);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-top: var(--space-xl);
}

/* Registration info panel */
.info-panel {
  background: var(--surface-card);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  box-shadow: var(--shadow-sm);
  border-left: 4px solid var(--secondary);
}

.info-panel h4 {
  margin-bottom: var(--space-md);
}

.info-panel p {
  margin-bottom: var(--space-sm);
  font-size: 0.93rem;
}

/* Stats row */
.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--space-lg);
  margin: var(--space-2xl) 0;
}

.stat-item {
  text-align: center;
  padding: var(--space-xl);
  background: var(--surface-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.stat-item__number {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-item__label {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

/* Leader preview on home */
.leader-preview {
  display: flex;
  justify-content: center;
  gap: var(--space-xl);
  flex-wrap: wrap;
}

.leader-preview .person-card {
  max-width: 240px;
}

/* Aims list */
.aims-list li {
  position: relative;
  padding: var(--space-md) 0 var(--space-md) var(--space-2xl);
  border-bottom: 1px solid rgba(27, 58, 107, 0.06);
  font-size: 0.95rem;
  color: var(--text-light);
  list-style: none;
}

.aims-list li::before {
  content: '◆';
  position: absolute;
  left: 0;
  color: var(--secondary);
  font-size: 0.7rem;
  top: 50%;
  transform: translateY(-50%);
}

.aims-list li:last-child {
  border-bottom: none;
}

/* Growing note */
.growing-note {
  text-align: center;
  padding: var(--space-lg);
  background: rgba(46, 155, 214, 0.05);
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  color: var(--text-muted);
  font-style: italic;
  margin-top: var(--space-xl);
}
