/* ============================================================
   IXN Foundation — Shared Stylesheet
   Theme: White background, pastel blue accents
   ============================================================ */

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

:root {
  --blue-dark:    #2C5F8A;
  --blue-mid:     #4A90D9;
  --blue-pastel:  #B8D8F0;
  --blue-light:   #E4F2FC;
  --blue-xlight:  #F0F8FF;
  --white:        #FFFFFF;
  --grey-50:      #F9FAFB;
  --grey-100:     #F3F4F6;
  --grey-200:     #E5E7EB;
  --grey-400:     #9CA3AF;
  --grey-600:     #6B7280;
  --grey-800:     #1F2937;
  --text-dark:    #1A2433;
  --text-mid:     #374151;
  --text-light:   #6B7280;
  --radius-sm:    6px;
  --radius-md:    12px;
  --radius-lg:    20px;
  --shadow-sm:    0 1px 3px rgba(44,95,138,0.08), 0 1px 2px rgba(44,95,138,0.06);
  --shadow-md:    0 4px 16px rgba(44,95,138,0.10), 0 2px 6px rgba(44,95,138,0.08);
  --shadow-lg:    0 10px 40px rgba(44,95,138,0.12);
  --font:         -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  --transition:   0.2s ease;
  --max-w:        1200px;
}

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

body {
  font-family: var(--font);
  color: var(--text-dark);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--blue-mid); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--blue-dark); }

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

h1, h2, h3, h4, h5 {
  font-weight: 700;
  line-height: 1.25;
  color: var(--text-dark);
}

h1 { font-size: clamp(2rem, 5vw, 3.25rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.25rem); }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.1rem; }

p { color: var(--text-mid); line-height: 1.75; }

ul { list-style: none; }

/* ---- Layout helpers --------------------------------------- */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 1.5rem; }
.section    { padding: 5rem 0; }
.section--alt { background: var(--blue-xlight); }
.section--blue { background: var(--blue-light); }

.section-label {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue-mid);
  display: block;
  margin-bottom: 0.6rem;
}

.section-heading { margin-bottom: 1rem; }
.section-intro   { font-size: 1.1rem; color: var(--text-light); max-width: 680px; margin-bottom: 3rem; }

.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 2rem; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 2rem; }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.5rem; }

/* ---- Buttons --------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition);
  text-decoration: none;
  font-family: var(--font);
}

.btn-primary {
  background: var(--blue-mid);
  color: var(--white);
  border-color: var(--blue-mid);
}
.btn-primary:hover {
  background: var(--blue-dark);
  border-color: var(--blue-dark);
  color: var(--white);
}

.btn-outline {
  background: transparent;
  color: var(--blue-mid);
  border-color: var(--blue-mid);
}
.btn-outline:hover {
  background: var(--blue-mid);
  color: var(--white);
}

.btn-white {
  background: var(--white);
  color: var(--blue-dark);
  border-color: var(--white);
}
.btn-white:hover {
  background: var(--blue-xlight);
  color: var(--blue-dark);
}

/* ---- Cards ----------------------------------------------- */
.card {
  background: var(--white);
  border-radius: var(--radius-md);
  border: 1px solid var(--grey-200);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), transform var(--transition);
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }

.card-body    { padding: 1.5rem; }
.card-tag {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue-mid);
  background: var(--blue-light);
  padding: 0.25rem 0.65rem;
  border-radius: 20px;
  display: inline-block;
  margin-bottom: 0.75rem;
}

/* ---- Navigation ------------------------------------------ */
#site-nav {
  position: sticky;
  top: 0;
  z-index: 900;
  background: var(--white);
  border-bottom: 1px solid var(--grey-200);
  box-shadow: var(--shadow-sm);
}

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  flex-shrink: 0;
}

.nav-logo-text {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--blue-dark);
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.nav-logo-text span { color: var(--blue-mid); }

.nav-menu {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex-wrap: nowrap;
}

.nav-menu a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-mid);
  padding: 0.45rem 0.65rem;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  transition: background var(--transition), color var(--transition);
}
.nav-menu a:hover, .nav-menu a.active {
  background: var(--blue-light);
  color: var(--blue-dark);
}

.nav-dropdown { position: relative; }
.nav-dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-mid);
  padding: 0.45rem 0.65rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  user-select: none;
  transition: background var(--transition), color var(--transition);
  white-space: nowrap;
}
.nav-dropdown-toggle:hover { background: var(--blue-light); color: var(--blue-dark); }
.nav-dropdown-toggle svg { transition: transform var(--transition); }
.nav-dropdown.open .nav-dropdown-toggle svg { transform: rotate(180deg); }

.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 0;
  background: var(--white);
  border: 1px solid var(--grey-200);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  min-width: 200px;
  padding: 0.5rem;
  z-index: 910;
}
.nav-dropdown.open .nav-dropdown-menu { display: block; }

.nav-dropdown-menu a {
  display: block;
  padding: 0.6rem 1rem;
  color: var(--text-mid);
  font-size: 0.875rem;
  border-radius: var(--radius-sm);
}
.nav-dropdown-menu a:hover { background: var(--blue-light); color: var(--blue-dark); }

.nav-cta {
  background: var(--blue-mid);
  color: var(--white) !important;
  padding: 0.5rem 1rem !important;
  border-radius: var(--radius-sm);
}
.nav-cta:hover { background: var(--blue-dark) !important; color: var(--white) !important; }

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  border: none;
  background: none;
}
.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-dark);
  border-radius: 2px;
  transition: all var(--transition);
}

/* Mobile nav */
@media (max-width: 900px) {
  .nav-hamburger { display: flex; }
  .nav-menu {
    display: none;
    position: fixed;
    top: 68px;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--white);
    flex-direction: column;
    align-items: flex-start;
    padding: 1.5rem;
    gap: 0.25rem;
    overflow-y: auto;
    border-top: 1px solid var(--grey-200);
    z-index: 899;
  }
  .nav-menu.open { display: flex; }
  .nav-menu a, .nav-dropdown-toggle { font-size: 1rem; width: 100%; padding: 0.75rem 1rem; }
  .nav-dropdown-menu {
    position: static;
    box-shadow: none;
    border: none;
    border-left: 3px solid var(--blue-pastel);
    border-radius: 0;
    margin-left: 1rem;
    padding: 0.25rem 0;
    background: transparent;
  }
  .nav-dropdown.open .nav-dropdown-menu { display: block; }
}

/* ---- Footer ---------------------------------------------- */
#site-footer {
  background: var(--grey-800);
  color: #CBD5E0;
  padding: 4rem 0 0;
}

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

.footer-brand { }
.footer-logo-row { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1rem; }
.footer-logo-text { font-size: 1.1rem; font-weight: 800; color: var(--white); }
.footer-brand p { font-size: 0.9rem; line-height: 1.7; max-width: 300px; }

.footer-heading {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--white);
  margin-bottom: 1rem;
}

.footer-links { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-links a {
  font-size: 0.88rem;
  color: #9CA3AF;
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--blue-pastel); }

.footer-social { display: flex; gap: 0.75rem; margin-top: 1.5rem; }
.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid #4B5563;
  color: #9CA3AF;
  transition: all var(--transition);
}
.footer-social a:hover { border-color: var(--blue-pastel); color: var(--blue-pastel); }

.footer-bottom {
  border-top: 1px solid #374151;
  padding: 1.5rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-bottom p { font-size: 0.8rem; color: #6B7280; }
.footer-bottom-links { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.footer-bottom-links a { font-size: 0.8rem; color: #6B7280; }
.footer-bottom-links a:hover { color: var(--blue-pastel); }

.charity-reg { font-size: 0.75rem; color: #6B7280; margin-top: 0.5rem; }

@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .footer-bottom-links { justify-content: center; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ---- Hero ------------------------------------------------- */
.hero {
  background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue-mid) 100%);
  padding: 6rem 0;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 3rem;
  align-items: center;
}

.hero-content { }
.hero-kicker {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue-pastel);
  background: rgba(184,216,240,0.15);
  padding: 0.3rem 0.9rem;
  border-radius: 20px;
  margin-bottom: 1.5rem;
}
.hero h1 { color: var(--white); margin-bottom: 1.25rem; }
.hero p   { color: rgba(255,255,255,0.85); font-size: 1.15rem; margin-bottom: 2rem; max-width: 580px; }

.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-illustration { flex-shrink: 0; }

/* Page hero (inner pages) */
.page-hero {
  background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue-mid) 100%);
  padding: 4rem 0;
  text-align: center;
}
.page-hero h1 { color: var(--white); margin-bottom: 0.75rem; }
.page-hero p  { color: rgba(255,255,255,0.8); font-size: 1.1rem; max-width: 620px; margin: 0 auto; }

/* ---- Breadcrumb ------------------------------------------ */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  padding: 1rem 0;
  color: var(--text-light);
}
.breadcrumb a { color: var(--blue-mid); }
.breadcrumb span { color: var(--grey-400); }

/* ---- Team cards ------------------------------------------- */
.team-card {
  background: var(--white);
  border-radius: var(--radius-md);
  border: 1px solid var(--grey-200);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  text-align: center;
  transition: box-shadow var(--transition), transform var(--transition);
}
.team-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }

.team-avatar {
  width: 100%;
  height: 220px;
  background: var(--blue-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  font-weight: 800;
  color: var(--blue-dark);
}

.team-body { padding: 1.5rem; }
.team-name { font-size: 1.15rem; font-weight: 700; margin-bottom: 0.2rem; }
.team-role { font-size: 0.85rem; color: var(--blue-mid); font-weight: 600; margin-bottom: 0.75rem; }
.team-bio  { font-size: 0.88rem; color: var(--text-light); line-height: 1.65; margin-bottom: 1rem; }
.team-linkedin {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--blue-mid);
}
.team-linkedin:hover { color: var(--blue-dark); }

/* ---- Gallery --------------------------------------------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}

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

.gallery-item-visual {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-item-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(26,36,51,0.85) 0%, transparent 60%);
  opacity: 0;
  transition: opacity var(--transition);
  display: flex;
  align-items: flex-end;
  padding: 1rem;
}
.gallery-item:hover .gallery-item-overlay { opacity: 1; }
.gallery-caption { color: var(--white); font-size: 0.85rem; font-weight: 600; }

/* ---- Case Study cards ------------------------------------ */
.case-study-card {
  background: var(--white);
  border-radius: var(--radius-md);
  border: 1px solid var(--grey-200);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: box-shadow var(--transition), transform var(--transition);
}
.case-study-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }

.cs-header {
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  background: var(--blue-light);
}
.cs-body { padding: 1.5rem; }
.cs-title { font-size: 1.1rem; font-weight: 700; margin-bottom: 0.5rem; }
.cs-org   { font-size: 0.8rem; color: var(--blue-mid); font-weight: 600; margin-bottom: 0.75rem; }
.cs-desc  { font-size: 0.88rem; color: var(--text-light); line-height: 1.65; margin-bottom: 1rem; }

/* ---- Partner cards --------------------------------------- */
.partner-card {
  background: var(--white);
  border-radius: var(--radius-md);
  border: 1px solid var(--grey-200);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  text-align: center;
  transition: box-shadow var(--transition), transform var(--transition);
}
.partner-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }

.partner-logo {
  width: 64px;
  height: 64px;
  border-radius: 12px;
  background: var(--blue-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  font-size: 1.75rem;
}

.partner-name  { font-size: 1rem; font-weight: 700; margin-bottom: 0.25rem; }
.partner-type  { font-size: 0.78rem; color: var(--blue-mid); font-weight: 600; margin-bottom: 0.6rem; }
.partner-desc  { font-size: 0.84rem; color: var(--text-light); line-height: 1.6; }

/* ---- Stats bar ------------------------------------------- */
.stats-bar {
  background: var(--blue-dark);
  padding: 3rem 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 2rem;
  text-align: center;
}
.stat-num  { font-size: 2.5rem; font-weight: 800; color: var(--white); line-height: 1; }
.stat-label{ font-size: 0.85rem; color: var(--blue-pastel); margin-top: 0.4rem; font-weight: 500; }

/* ---- Forms ----------------------------------------------- */
.form-group { margin-bottom: 1.4rem; }
.form-label {
  display: block;
  font-size: 0.87rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0.45rem;
}
.form-input, .form-textarea, .form-select {
  width: 100%;
  padding: 0.7rem 1rem;
  border: 1.5px solid var(--grey-200);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-family: var(--font);
  color: var(--text-dark);
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}
.form-input:focus, .form-textarea:focus, .form-select:focus {
  border-color: var(--blue-mid);
  box-shadow: 0 0 0 3px rgba(74,144,217,0.15);
}
.form-textarea { min-height: 130px; resize: vertical; }
.form-note { font-size: 0.8rem; color: var(--text-light); margin-top: 0.35rem; }

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

/* ---- Membership cards ------------------------------------ */
.membership-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 2px solid var(--grey-200);
  padding: 2.25rem;
  text-align: center;
  transition: all var(--transition);
  position: relative;
}
.membership-card.featured {
  border-color: var(--blue-mid);
  box-shadow: var(--shadow-md);
}
.membership-card.featured::before {
  content: 'Most Popular';
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--blue-mid);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.25rem 1rem;
  border-radius: 20px;
}
.membership-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

.mem-tier  { font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--blue-mid); margin-bottom: 0.75rem; }
.mem-price { font-size: 2.25rem; font-weight: 800; color: var(--text-dark); margin-bottom: 0.25rem; }
.mem-price span { font-size: 1rem; font-weight: 500; color: var(--text-light); }
.mem-desc  { font-size: 0.87rem; color: var(--text-light); margin-bottom: 1.5rem; min-height: 40px; }

.mem-features { text-align: left; margin-bottom: 1.75rem; }
.mem-features li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.88rem;
  color: var(--text-mid);
  padding: 0.35rem 0;
  border-bottom: 1px solid var(--grey-100);
}
.mem-features li:last-child { border-bottom: none; }
.mem-check { color: var(--blue-mid); flex-shrink: 0; margin-top: 2px; }

/* ---- Resources ------------------------------------------- */
.resource-card {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  background: var(--white);
  border-radius: var(--radius-md);
  border: 1px solid var(--grey-200);
  padding: 1.25rem 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition);
}
.resource-card:hover { box-shadow: var(--shadow-md); }

.resource-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: var(--blue-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}
.resource-title { font-size: 0.97rem; font-weight: 700; margin-bottom: 0.25rem; }
.resource-desc  { font-size: 0.84rem; color: var(--text-light); line-height: 1.55; }
.resource-meta  { font-size: 0.76rem; color: var(--text-light); margin-top: 0.5rem; display: flex; gap: 1rem; }

/* ---- Accordion ------------------------------------------- */
.accordion-item {
  border-bottom: 1px solid var(--grey-200);
}
.accordion-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 1.25rem 0;
  background: none;
  border: none;
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-dark);
  cursor: pointer;
  text-align: left;
  gap: 1rem;
}
.accordion-trigger svg { flex-shrink: 0; transition: transform var(--transition); }
.accordion-trigger.open svg { transform: rotate(180deg); }

.accordion-content {
  display: none;
  padding-bottom: 1.25rem;
  color: var(--text-mid);
  font-size: 0.93rem;
  line-height: 1.75;
}
.accordion-content.open { display: block; }

/* ---- Notice banner --------------------------------------- */
.notice {
  padding: 1rem 1.5rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1.5rem;
  font-size: 0.88rem;
  border-left: 4px solid;
}
.notice-info {
  background: var(--blue-light);
  border-color: var(--blue-mid);
  color: var(--blue-dark);
}
.notice-success {
  background: #D1FAE5;
  border-color: #10B981;
  color: #065F46;
}

/* ---- Tabs ------------------------------------------------ */
.tabs-nav {
  display: flex;
  gap: 0.5rem;
  border-bottom: 2px solid var(--grey-200);
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}
.tab-btn {
  padding: 0.65rem 1.25rem;
  border: none;
  background: none;
  font-family: var(--font);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-light);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: all var(--transition);
}
.tab-btn.active { color: var(--blue-mid); border-bottom-color: var(--blue-mid); }
.tab-btn:hover:not(.active) { color: var(--text-dark); }

.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ---- Lightbox ------------------------------------------- */
.lightbox-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  z-index: 9999;
  align-items: center;
  justify-content: center;
}
.lightbox-backdrop.open { display: flex; }
.lightbox-inner {
  max-width: 90vw;
  max-height: 90vh;
  position: relative;
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.lightbox-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(0,0,0,0.5);
  border: none;
  color: white;
  font-size: 1.25rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

/* ---- Utility --------------------------------------------- */
.text-center { text-align: center; }
.text-blue   { color: var(--blue-mid); }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.tag-row { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 0.75rem; }
.tag {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--blue-dark);
  background: var(--blue-light);
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
}

.divider {
  border: none;
  border-top: 1px solid var(--grey-200);
  margin: 3rem 0;
}

.lead { font-size: 1.1rem; color: var(--text-mid); margin-bottom: 1.5rem; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--blue-mid);
}
.link-arrow:hover { gap: 0.55rem; }

/* Fade-in animation */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fadeUp 0.5s ease forwards; }

/* Skip to content */
.skip-link {
  position: absolute;
  top: -40px;
  left: 1rem;
  background: var(--blue-dark);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  z-index: 9999;
  transition: top 0.2s;
}
.skip-link:focus { top: 0; }

/* ---- Social buttons -------------------------------------- */
.social-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1rem;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--grey-200);
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text-mid);
  transition: all var(--transition);
  text-decoration: none;
}
.social-btn:hover {
  border-color: var(--blue-mid);
  color: var(--blue-mid);
  background: var(--blue-xlight);
}

/* ---- Legal content --------------------------------------- */
.legal-content {
  max-width: 760px;
}
.legal-content h2 {
  font-size: 1.2rem;
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
  color: var(--blue-dark);
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--grey-200);
}
.legal-content h2:first-of-type { margin-top: 0; }
.legal-content p { margin-bottom: 0.9rem; }
.legal-content ul {
  list-style: disc;
  padding-left: 1.5rem;
  margin-bottom: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.legal-content ul li { color: var(--text-mid); font-size: 0.93rem; }
.legal-content address { margin: 1rem 0; }
.legal-content code {
  font-family: monospace;
  font-size: 0.88em;
  background: var(--grey-100);
  padding: 0.15em 0.4em;
  border-radius: 3px;
}

/* ---- Tabs container -------------------------------------- */
.tabs-container { }

/* Print */
@media print {
  #site-nav, #site-footer { display: none; }
  .hero, .page-hero { background: none !important; padding: 1rem 0; }
  .hero h1, .hero p, .page-hero h1, .page-hero p { color: #000 !important; }
  * { box-shadow: none !important; }
}
