/* ============================================
   CABANA-HF Website — Laboratory X Inspired
   Updated: Space Grotesk headings, photo-driven, flat icons
   ============================================ */

/* --- CSS Variables --- */
:root {
  --blue-900: #0a1628;
  --blue-800: #0f2744;
  --blue-700: #143a5f;
  --blue-600: #1a5276;
  --blue-500: #2471a3;
  --blue-400: #2e86c1;
  --blue-300: #5dade2;
  --blue-200: #85c1e9;
  --blue-100: #d4e6f1;
  --blue-50: #eaf2f8;

  --accent: #5dade2;
  --accent-dark: #2e86c1;

  --white: #ffffff;
  --gray-50: #f8f9fa;
  --gray-100: #f0f2f5;
  --gray-200: #e2e6ea;
  --gray-300: #c8ced3;
  --gray-400: #8d9baa;
  --gray-500: #6c7a89;
  --gray-600: #4a5568;
  --gray-700: #2d3748;
  --gray-800: #1a202c;

  --font-heading: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'Roboto Mono', 'SF Mono', monospace;

  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
  --shadow-xl: 0 20px 60px rgba(0,0,0,0.15);

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;

  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

body {
  font-family: var(--font-body);
  color: var(--gray-700);
  line-height: 1.7;
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

ul { list-style: none; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* --- Typography --- */
h1, h2, h3 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--blue-800);
}

h4, h5, h6 {
  font-family: var(--font-body);
  font-weight: 600;
  line-height: 1.3;
  color: var(--blue-800);
}

h1 { font-size: clamp(2.4rem, 5vw, 3.75rem); letter-spacing: -0.03em; }
h2 { font-size: clamp(1.9rem, 3.5vw, 2.75rem); letter-spacing: -0.02em; }
h3 { font-size: clamp(1.3rem, 2vw, 1.6rem); letter-spacing: -0.01em; }
h4 { font-size: 1.125rem; }

p { margin-bottom: 1rem; }

.mono {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue-400);
  font-weight: 500;
  display: inline-block;
  margin-bottom: 0.75rem;
}

/* --- Navigation --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 0;
  transition: background var(--transition), padding var(--transition), box-shadow var(--transition);
  background: transparent;
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: var(--shadow-sm);
  padding: 10px 0;
}

.navbar .container {
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 0 32px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0;
}

.nav-logo span {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 20.8px;
  color: var(--white);
  letter-spacing: -0.02em;
  transition: color var(--transition);
  white-space: nowrap;
}

.navbar.scrolled .nav-logo span {
  color: var(--blue-800);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.nav-links a {
  padding: 8px 16px;
  font-size: 14.4px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
  white-space: nowrap;
}

.navbar.scrolled .nav-links a {
  color: var(--gray-600);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--white);
  background: rgba(255, 255, 255, 0.12);
}

.navbar.scrolled .nav-links a:hover,
.navbar.scrolled .nav-links a.active {
  color: var(--blue-600);
  background: var(--blue-50);
}

.nav-cta {
  margin-left: 12px;
  padding: 8px 20px !important;
  background: var(--blue-500) !important;
  color: var(--white) !important;
  border-radius: 50px !important;
  font-weight: 600 !important;
}

.nav-cta:hover {
  background: var(--blue-600) !important;
  transform: translateY(-1px);
}

/* --- Nav Controls (font size + dark mode) --- */
.nav-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 8px;
}

.font-size-control {
  display: flex;
  align-items: center;
  gap: 2px;
}

.font-btn {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.85);
  font-family: var(--font-heading);
  font-weight: 600;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  cursor: pointer;
  transition: var(--transition);
  line-height: 1;
  padding: 0;
}

.font-btn-sm { font-size: 0.65rem; }
.font-btn-md { font-size: 0.85rem; }
.font-btn-lg { font-size: 1.05rem; }

.font-btn:hover {
  background: rgba(255, 255, 255, 0.25);
}

.font-btn-active {
  background: rgba(255, 255, 255, 0.3) !important;
  border-color: rgba(255, 255, 255, 0.5) !important;
}

.navbar.scrolled .font-btn-active {
  background: var(--blue-500) !important;
  border-color: var(--blue-500) !important;
  color: #fff !important;
}

.navbar.scrolled .font-btn {
  background: var(--gray-100);
  border-color: var(--gray-200);
  color: var(--gray-600);
}

.navbar.scrolled .font-btn:hover {
  background: var(--gray-200);
}

.theme-toggle {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.85);
  width: 32px;
  height: 32px;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  padding: 0;
}

.theme-toggle:hover {
  background: rgba(255, 255, 255, 0.25);
}

.navbar.scrolled .theme-toggle {
  background: var(--gray-100);
  border-color: var(--gray-200);
  color: var(--gray-600);
}

.navbar.scrolled .theme-toggle:hover {
  background: var(--gray-200);
}

.theme-toggle svg {
  width: 16px;
  height: 16px;
}

.theme-toggle .icon-moon {
  display: none;
}

[data-theme="dark"] .theme-toggle .icon-sun {
  display: none;
}

[data-theme="dark"] .theme-toggle .icon-moon {
  display: block;
}

/* --- Dark Mode --- */
/* --- Dark Mode ---
   Hero, page-hero, navbar, CTA banner, and footer already have dark
   backgrounds with white text — they stay unchanged in dark mode.
   Only body content sections get the dark treatment. */

[data-theme="dark"] body {
  background: #0f1729;
  color: #cbd5e1;
}

/* Content headings (not inside hero/page-hero/cta-banner/footer/navbar) */
[data-theme="dark"] .section h2,
[data-theme="dark"] .section h3,
[data-theme="dark"] .section h4,
[data-theme="dark"] .section h5,
[data-theme="dark"] .section h6 {
  color: #e2e8f0;
}

/* Scrolled navbar gets dark background */
[data-theme="dark"] .navbar.scrolled {
  background: rgba(15, 23, 41, 0.97);
}

[data-theme="dark"] .navbar.scrolled .nav-logo span {
  color: #e2e8f0;
}

[data-theme="dark"] .navbar.scrolled .nav-links a {
  color: #94a3b8;
}

[data-theme="dark"] .navbar.scrolled .nav-links a:hover,
[data-theme="dark"] .navbar.scrolled .nav-links a.active {
  color: #5dade2;
  background: rgba(93, 173, 226, 0.1);
}

[data-theme="dark"] .navbar.scrolled .nav-toggle span {
  background: #e2e8f0;
}

[data-theme="dark"] .navbar.scrolled .font-btn {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
  color: #94a3b8;
}

[data-theme="dark"] .navbar.scrolled .theme-toggle {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
  color: #94a3b8;
}

/* Content cards and components */
[data-theme="dark"] .card {
  background: #151d2e;
  border-color: #243044;
}

[data-theme="dark"] .card:hover {
  border-color: #334155;
}

[data-theme="dark"] .card p {
  color: #94a3b8;
}

[data-theme="dark"] .stat-card {
  background: #151d2e;
  border-color: #243044;
}

[data-theme="dark"] .person-card {
  background: #151d2e;
  border-color: #243044;
}

[data-theme="dark"] .timeline-content {
  background: #151d2e;
  border-color: #243044;
}

[data-theme="dark"] .accordion-header {
  background: #151d2e;
  color: #e2e8f0;
}

[data-theme="dark"] .accordion-header:hover {
  background: #1a2235;
}

[data-theme="dark"] .accordion-item {
  border-color: #243044;
}

[data-theme="dark"] .section-light {
  background: #0a1120;
}

[data-theme="dark"] .form-group input,
[data-theme="dark"] .form-group textarea,
[data-theme="dark"] .form-group select {
  background: #151d2e;
  border-color: #243044;
  color: #e2e8f0;
}

[data-theme="dark"] .site-table tr:hover {
  background: rgba(93, 173, 226, 0.05);
}

[data-theme="dark"] .site-table th {
  border-bottom-color: #243044;
}

[data-theme="dark"] .site-table td {
  border-bottom-color: #1a2235;
  color: #cbd5e1;
}

[data-theme="dark"] .callout {
  background: linear-gradient(135deg, #0f1d30, rgba(93, 173, 226, 0.08));
}

[data-theme="dark"] .callout p {
  color: #94a3b8;
}

[data-theme="dark"] .info-box {
  background: #151d2e;
  border-color: #243044;
}

[data-theme="dark"] .tabs {
  border-bottom-color: #243044;
}

[data-theme="dark"] .tab-btn {
  color: #64748b;
}

[data-theme="dark"] .tab-btn.active {
  color: #5dade2;
  border-bottom-color: #5dade2;
}

[data-theme="dark"] .region-btn {
  color: #94a3b8;
}

[data-theme="dark"] .region-btn:hover,
[data-theme="dark"] .region-btn.active {
  color: #5dade2;
  background: rgba(93, 173, 226, 0.08);
}

[data-theme="dark"] .section-header p {
  color: #94a3b8;
}

[data-theme="dark"] .label {
  color: #5dade2;
}

[data-theme="dark"] .feature-text p {
  color: #94a3b8;
}

[data-theme="dark"] .feature-text h3 {
  color: #e2e8f0;
}

[data-theme="dark"] .feature-list li {
  color: #94a3b8;
}

/* Mobile menu */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}

.navbar.scrolled .nav-toggle span {
  background: var(--blue-800);
}

/* --- Hero Section --- */
.hero {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(10, 22, 40, 0.88) 0%, rgba(20, 58, 95, 0.82) 40%, rgba(36, 113, 163, 0.7) 100%);
}

.hero .container {
  position: relative;
  z-index: 1;
  max-width: 800px;
  padding-top: 6rem;
  padding-bottom: 3rem;
}

.hero-content {
  text-align: center;
}

.hero-content h1 {
  color: var(--white);
  margin-bottom: 1.5rem;
}

.hero-content h1 span {
  color: var(--accent);
}

.hero-content .hero-subtitle {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.2rem;
  max-width: 640px;
  margin: 0 auto 2rem;
  line-height: 1.7;
}

/* Hero stats bar */
.hero-stats {
  display: flex;
  gap: 3rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  justify-content: center;
}

.hero-stat .number {
  font-family: var(--font-heading);
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--accent);
  display: block;
  letter-spacing: -0.02em;
}

.hero-stat .text {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: var(--transition);
}

.btn-primary {
  background: var(--blue-500);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--blue-600);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(36, 113, 163, 0.3);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--blue-600);
  border: 2px solid var(--blue-600);
}

.btn-outline:hover {
  background: var(--blue-600);
  color: var(--white);
  transform: translateY(-2px);
}

.page-hero .btn-outline {
  background: var(--accent);
  color: var(--blue-900);
  border-color: var(--accent);
  font-weight: 600;
}

.page-hero .btn-outline:hover {
  background: var(--blue-900);
  color: var(--white);
  border-color: var(--blue-900);
}

.btn-group {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

/* --- Section Styles --- */
.section {
  padding: 4rem 0;
}

.section-dark {
  background: var(--blue-900);
  color: var(--white);
}

.section-dark h2,
.section-dark h3,
.section-dark h4 {
  color: var(--white);
}

.section-light {
  background: var(--gray-50);
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 2.5rem;
}

.section-header p {
  color: var(--gray-500);
  font-size: 1.1rem;
  margin-top: 1rem;
}

/* --- Cards --- */
.card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
  transition: var(--transition);
}

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

.card-icon {
  width: 56px;
  height: 56px;
  background: var(--blue-50);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.card-icon svg {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
}

.card h3 {
  margin-bottom: 0.75rem;
}

.card p {
  color: var(--gray-500);
  font-size: 0.95rem;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

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

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

/* --- Stat Cards --- */
.stat-card {
  text-align: center;
  padding: 2.5rem 2rem;
  background: var(--white);
  border-radius: var(--radius-md);
  border: 1px solid var(--gray-200);
}

.stat-card .number {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--blue-600);
  display: block;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

.stat-card .text {
  font-size: 0.9rem;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* --- Timeline (horizontal, alternating above/below) --- */
.timeline {
  position: relative;
  display: flex;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 0;
  gap: 0;
  height: 320px;
  -webkit-overflow-scrolling: touch;
}

/* Always show horizontal scrollbar */
.timeline::-webkit-scrollbar {
  height: 8px;
}
.timeline::-webkit-scrollbar-track {
  background: var(--gray-100);
  border-radius: 4px;
}
.timeline::-webkit-scrollbar-thumb {
  background: var(--gray-300);
  border-radius: 4px;
}
.timeline::-webkit-scrollbar-thumb:hover {
  background: var(--gray-400);
}
[data-theme="dark"] .timeline::-webkit-scrollbar-track {
  background: var(--blue-800);
}
[data-theme="dark"] .timeline::-webkit-scrollbar-thumb {
  background: var(--blue-600);
}

/* Remove container-level line — each item carries its own segment */
.timeline::before {
  display: none;
}

.timeline-item {
  position: relative;
  flex: 1 0 0;
  min-width: 140px;
  text-align: center;
  height: 100%;
}

/* Horizontal line segment through each item */
.timeline-item::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 2px;
  background: var(--blue-200);
  transform: translateY(-1px);
  z-index: 0;
}

/* Dot — centered on the horizontal line */
.timeline-dot {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--blue-500);
  border: 3px solid var(--white);
  box-shadow: var(--shadow-sm);
  z-index: 2;
}

/* Vertical stem from dot to card */
.timeline-item::after {
  content: '';
  position: absolute;
  left: 50%;
  width: 2px;
  background: var(--blue-200);
  transform: translateX(-50%);
  z-index: 1;
}

/* Odd items: card above the line */
.timeline-item:nth-child(odd) .timeline-content {
  position: absolute;
  bottom: calc(50% + 40px);
  left: 50%;
  transform: translateX(-50%);
  width: max-content;
  max-width: 150px;
}

.timeline-item:nth-child(odd)::after {
  top: calc(50% - 40px);
  height: 34px;
}

/* Even items: card below the line */
.timeline-item:nth-child(even) .timeline-content {
  position: absolute;
  top: calc(50% + 40px);
  left: 50%;
  transform: translateX(-50%);
  width: max-content;
  max-width: 150px;
}

.timeline-item:nth-child(even)::after {
  top: calc(50% + 7px);
  height: 34px;
}

.timeline-content {
  background: var(--white);
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
}

.timeline-content .date {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--blue-400);
  letter-spacing: 0.05em;
}

.timeline-content h4 {
  margin: 0.2rem 0 0;
  font-size: 0.85rem;
}

/* --- People Grid --- */
.people-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.5rem;
}

.person-card {
  text-align: center;
  padding: 2rem 1.5rem;
  background: var(--white);
  border-radius: var(--radius-md);
  border: 1px solid var(--gray-200);
  transition: var(--transition);
  position: relative;
}

.person-card h4 a::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: var(--radius-md);
}

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

.person-avatar {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue-400), var(--blue-600));
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 1.75rem;
  color: var(--white);
  font-weight: 700;
  overflow: hidden;
  position: relative;
}

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

.person-avatar:has(img)::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(10, 22, 40, 0.3) 0%, rgba(20, 58, 95, 0.3) 40%, rgba(36, 113, 163, 0.3) 100%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
}

.person-card h4 a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition);
}

.person-card h4 a:hover {
  border-bottom-color: var(--blue-400);
  color: var(--blue-500);
}

.person-card h4 {
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.person-card .role {
  font-size: 0.8rem;
  color: var(--gray-400);
  font-family: var(--font-mono);
  letter-spacing: 0.03em;
}

.person-card .affiliation {
  font-size: 0.85rem;
  color: var(--gray-500);
  margin-top: 0.25rem;
}

/* --- Feature Row (alternating) --- */
.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  margin-bottom: 3rem;
}

.feature-row.reverse {
  direction: rtl;
}

.feature-row.reverse > * {
  direction: ltr;
}

.feature-visual {
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 340px;
  position: relative;
}

.feature-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}

.feature-visual::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(10, 22, 40, 0.6) 0%, rgba(20, 58, 95, 0.6) 40%, rgba(36, 113, 163, 0.6) 100%);
  z-index: 1;
  pointer-events: none;
}

/* Fallback for feature visuals without photos */
.feature-visual--gradient {
  background: linear-gradient(135deg, var(--blue-50), var(--blue-100));
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-visual--gradient svg {
  width: 96px;
  height: 96px;
  opacity: 0.6;
}

.feature-text .label {
  margin-bottom: 0.75rem;
}

.feature-text h3 {
  font-size: 1.75rem;
  margin-bottom: 1rem;
}

.feature-text p {
  color: var(--gray-500);
  margin-bottom: 1.5rem;
}

.feature-list {
  margin-top: 1rem;
}

.feature-list li {
  padding: 0.5rem 0;
  padding-left: 1.75rem;
  position: relative;
  color: var(--gray-600);
}

.feature-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.9rem;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

/* --- Photo Banner Section --- */
.photo-banner {
  position: relative;
  height: 400px;
  overflow: hidden;
}

.photo-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-banner::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 40%, rgba(10, 22, 40, 0.4) 100%);
}

/* --- Page Hero (inner pages) --- */
.page-hero {
  position: relative;
  padding: 7rem 0 2.5rem;
  overflow: hidden;
}

.page-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.page-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.page-hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(10, 22, 40, 0.9) 0%, rgba(20, 58, 95, 0.85) 50%, rgba(36, 113, 163, 0.75) 100%);
}

/* Fallback when no bg image */
.page-hero:not(:has(.page-hero-bg)) {
  background: linear-gradient(135deg, var(--blue-900) 0%, var(--blue-700) 50%, var(--blue-500) 100%);
}

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

.page-hero h1 {
  color: var(--white);
  margin-bottom: 1rem;
}

.page-hero p {
  color: rgba(255, 255, 255, 0.75);
  font-size: 1.15rem;
  max-width: 600px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.breadcrumb a {
  color: rgba(255, 255, 255, 0.5);
}

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

/* --- CTA Banner --- */
.cta-banner {
  position: relative;
  padding: 3rem 0;
  text-align: center;
  overflow: hidden;
}

.cta-banner-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.cta-banner-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cta-banner-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(20, 58, 95, 0.92), rgba(36, 113, 163, 0.88));
}

/* Fallback for CTA without photo */
.cta-banner:not(:has(.cta-banner-bg)) {
  background: linear-gradient(135deg, var(--blue-700), var(--blue-500));
}

.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(93, 173, 226, 0.12), transparent 60%);
  pointer-events: none;
  z-index: 1;
}

.cta-banner .container {
  position: relative;
  z-index: 2;
}

.cta-banner h2 {
  color: var(--white);
  margin-bottom: 1rem;
}

.cta-banner p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto 2rem;
}

/* --- Footer --- */
.footer {
  background: var(--blue-900);
  color: rgba(255, 255, 255, 0.6);
  padding: 3rem 0 1.5rem;
}

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

.footer-brand .footer-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.footer-brand p {
  font-size: 0.9rem;
  max-width: 300px;
  line-height: 1.6;
}

.footer h4 {
  color: var(--white);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1.25rem;
}

.footer ul li {
  margin-bottom: 0.5rem;
}

.footer ul li a {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.5);
}

.footer ul li a:hover {
  color: var(--accent);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
}

.footer-logos {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.footer-logos span {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.3);
}

/* --- Tabs --- */
.tabs {
  display: flex;
  gap: 0.25rem;
  border-bottom: 2px solid var(--gray-200);
  margin-bottom: 2rem;
  overflow-x: auto;
}

.tab-btn {
  padding: 0.75rem 1.5rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--gray-400);
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.tab-btn:hover {
  color: var(--blue-600);
}

.tab-btn.active {
  color: var(--blue-600);
  border-bottom-color: var(--blue-600);
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
  animation: fadeIn 0.4s ease;
}

/* --- Accordion --- */
.accordion-item {
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  margin-bottom: 0.5rem;
  overflow: hidden;
}

.accordion-header {
  padding: 1.25rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  background: var(--white);
  font-weight: 600;
  color: var(--blue-800);
  transition: var(--transition);
}

.accordion-header:hover {
  background: var(--gray-50);
}

.accordion-icon {
  transition: transform 0.3s;
  color: var(--blue-400);
  display: flex;
  align-items: center;
}

.accordion-icon svg {
  width: 20px;
  height: 20px;
}

.accordion-item.active .accordion-icon {
  transform: rotate(45deg);
}

.accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.accordion-body-inner {
  padding: 0 1.5rem 1.25rem;
  color: var(--gray-500);
}

/* --- Contact Form --- */
.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.85rem 1rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  transition: var(--transition);
  background: var(--white);
  color: var(--gray-700);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--blue-400);
  box-shadow: 0 0 0 3px rgba(46, 134, 193, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 140px;
}

/* --- Site Map --- */
.site-map-container {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 2rem;
}

.region-list {
  position: sticky;
  top: 6rem;
}

.region-btn {
  display: block;
  width: 100%;
  text-align: left;
  padding: 0.75rem 1.25rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--gray-500);
  background: none;
  border: none;
  border-left: 3px solid transparent;
  cursor: pointer;
  transition: var(--transition);
}

.region-btn:hover,
.region-btn.active {
  color: var(--blue-600);
  background: var(--blue-50);
  border-left-color: var(--blue-500);
}

.site-table {
  width: 100%;
  border-collapse: collapse;
}

.site-table th {
  text-align: left;
  padding: 0.75rem 1rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--gray-400);
  border-bottom: 2px solid var(--gray-200);
}

.site-table td {
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  border-bottom: 1px solid var(--gray-100);
}

.site-table tr:hover {
  background: var(--blue-50);
}

/* --- Animations --- */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* --- Info Grid --- */
.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.info-box {
  background: var(--white);
  padding: 2rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--gray-200);
}

.info-box h4 {
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.info-box h4 svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.info-box ul li {
  padding: 0.4rem 0;
  padding-left: 1.25rem;
  position: relative;
  color: var(--gray-600);
  font-size: 0.95rem;
}

.info-box ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.75rem;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue-300);
}

/* --- Callout --- */
.callout {
  background: linear-gradient(135deg, var(--blue-50), rgba(93, 173, 226, 0.08));
  border-left: 4px solid var(--accent);
  padding: 1.5rem 2rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 2rem 0;
}

.callout h4 {
  color: var(--blue-700);
  margin-bottom: 0.5rem;
}

.callout p {
  margin: 0;
  color: var(--gray-600);
}

/* --- Committee Cards (icon + text side by side) --- */
.committee-card {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.committee-card svg {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.committee-card h4 {
  margin: 0;
}

/* --- Partners / Sponsors --- */
.partner-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4rem;
  flex-wrap: wrap;
  padding: 2rem 0;
}

.partner-grid span {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--gray-300);
  letter-spacing: -0.01em;
}

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

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

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

  .feature-row {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .feature-row.reverse {
    direction: ltr;
  }

  .feature-visual {
    min-height: 280px;
  }

  .site-map-container {
    grid-template-columns: 1fr;
  }

  .region-list {
    position: static;
    display: flex;
    overflow-x: auto;
    gap: 0;
    border-bottom: 1px solid var(--gray-200);
    margin-bottom: 1.5rem;
  }

  .region-btn {
    border-left: none;
    border-bottom: 3px solid transparent;
    white-space: nowrap;
    text-align: center;
  }

  .region-btn.active {
    border-left: none;
    border-bottom-color: var(--blue-500);
  }
}

@media (max-width: 768px) {
  .nav-controls {
    position: fixed;
    top: 1rem;
    right: 3.25rem;
    z-index: 1002;
    gap: 4px;
  }

  .font-size-control {
    display: flex;
  }

  .font-btn {
    width: 28px;
    height: 28px;
  }

  /* CCC section: single column on mobile */
  #ccc-leadership .people-grid {
    grid-template-columns: 1fr !important;
    max-width: 100% !important;
  }

  /* Hamburger menu: always dark bg with white text when open */
  .navbar.menu-open {
    background: var(--blue-900) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  .navbar.menu-open .nav-logo span {
    color: var(--white) !important;
  }

  .navbar.menu-open .nav-toggle span {
    background: var(--white) !important;
  }

  .navbar.menu-open .nav-controls .font-btn {
    background: rgba(255, 255, 255, 0.12) !important;
    border-color: rgba(255, 255, 255, 0.2) !important;
    color: rgba(255, 255, 255, 0.85) !important;
  }

  .navbar.menu-open .nav-controls .theme-toggle {
    background: rgba(255, 255, 255, 0.12) !important;
    border-color: rgba(255, 255, 255, 0.2) !important;
    color: rgba(255, 255, 255, 0.85) !important;
  }

  .navbar.menu-open .nav-links a:hover,
  .navbar.menu-open .nav-links a.active {
    color: var(--white) !important;
    background: rgba(255, 255, 255, 0.12) !important;
  }

  .hero {
    min-height: 70vh;
  }

  .hero .container {
    padding-top: 5rem;
    padding-bottom: 2rem;
  }

  .hero-stats {
    gap: 1.5rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
  }

  .hero-content .hero-subtitle {
    font-size: 1.05rem;
    margin-bottom: 1.5rem;
  }

  .btn-group {
    justify-content: center;
  }

  .nav-links {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--blue-900);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    z-index: 999;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.85) !important;
  }

  .nav-toggle {
    display: flex;
    z-index: 1001;
  }

  .section {
    padding: 3rem 0;
  }

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

  .page-hero {
    padding: 5.5rem 0 2rem;
  }

  .page-hero h1 {
    font-size: clamp(1.8rem, 5vw, 2.5rem);
  }

  .card-grid-3,
  .card-grid-4 {
    grid-template-columns: 1fr;
  }

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

  .feature-row {
    gap: 2rem;
    margin-bottom: 2rem;
  }

  .feature-visual {
    min-height: 220px;
  }

  .cta-banner {
    padding: 2.5rem 0;
  }

  .timeline {
    overflow-x: auto;
    height: 280px;
  }

  .timeline-item {
    min-width: 110px;
  }

  .timeline-content h4 {
    font-size: 0.75rem;
  }

  .timeline-content {
    max-width: 120px !important;
    padding: 0.5rem 0.75rem;
  }

  .timeline-content .date {
    font-size: 0.65rem;
  }

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

  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

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

  .container {
    padding: 0 1.25rem;
  }

  .card {
    padding: 1.5rem;
  }

  .stat-card {
    padding: 1.5rem 1rem;
  }
}

@media (max-width: 480px) {
  .hero {
    min-height: 60vh;
  }

  .hero .container {
    padding-top: 4.5rem;
    padding-bottom: 1.5rem;
  }

  .hero-stats {
    flex-direction: column;
    gap: 1rem;
    align-items: center;
  }

  .hero-stat .number {
    font-size: 1.75rem;
  }

  .page-hero {
    padding: 5rem 0 1.5rem;
  }

  .section {
    padding: 2.5rem 0;
  }

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

  .partner-grid {
    gap: 2rem;
  }

  .btn {
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
  }

  .site-table th,
  .site-table td {
    padding: 0.5rem 0.5rem;
    font-size: 0.8rem;
  }

  .tabs {
    gap: 0;
  }

  .tab-btn {
    padding: 0.6rem 1rem;
    font-size: 0.8rem;
  }
}
