/* ============================================================
   styles.css — Tolerance International School Redesign
   Design: Usnea | 2026-04-03
   Same DNA, refined execution
   ============================================================ */

/* ── Google Fonts ── */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&family=Roboto:wght@400;500&family=PT+Sans:wght@400;700&display=swap');

/* ── Design Tokens ── */
:root {
  --color-primary:       #101667;
  --color-primary-dark:  #0a1048;
  --color-accent:        #f7b500;
  --color-accent-hover:  #d4a300;
  --color-link:          #1579e6;
  --color-bg:             #ffffff;
  --color-bg-alt:         #f9fafb;
  --color-card:           #ffffff;
  --color-text:           #1e2428;
  --color-text-muted:     #576168;
  --color-border:         #e2e8f0;
  --color-footer-bg:      #030000;
  --color-footer-text:    #4e4e4e;
  --color-success:        #166534;
  --color-error:          #dc2626;

  --font-heading:  'Poppins', sans-serif;
  --font-body:    'Roboto', sans-serif;
  --font-ui:      'PT Sans', sans-serif;

  --space-xs:  8px;
  --space-sm:  16px;
  --space-md:  24px;
  --space-lg:  48px;
  --space-xl:  80px;
  --space-2xl: 120px;

  --max-width:  1200px;
  --nav-height: 72px;

  --radius:     8px;
  --radius-pill: 30px;

  --shadow-sm:  0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md:  0 4px 16px rgba(0,0,0,0.10);
  --shadow-lg:  0 8px 32px rgba(0,0,0,0.14);

  --transition: 200ms ease;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; display: block; }
a { color: var(--color-link); text-decoration: none; }
a:hover { text-decoration: underline; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, textarea, select { font-family: inherit; }

/* ── Skip Link ── */
.skip-link {
  position: absolute; top: -100px; left: 16px;
  background: var(--color-accent); color: var(--color-text);
  padding: 8px 16px; border-radius: var(--radius);
  font-family: var(--font-ui); font-weight: 700; font-size: 14px;
  z-index: 9999; transition: top var(--transition);
}
.skip-link:focus { top: 16px; }

/* ── Typography ── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-primary);
  letter-spacing: -0.02em;
}
h1 { font-size: clamp(32px, 5vw, 52px); }
h2 { font-size: clamp(26px, 3.5vw, 38px); }
h3 { font-size: clamp(20px, 2.5vw, 26px); }
h4 { font-size: 18px; font-family: var(--font-body); font-weight: 600; letter-spacing: 0; }
p  { font-size: 17px; line-height: 1.75; color: var(--color-text); }
p.lead { font-size: 19px; color: var(--color-text-muted); }
small { font-size: 14px; color: var(--color-text-muted); }
.text-center { text-align: center; }
.text-muted  { color: var(--color-text-muted); }

/* ── Layout ── */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-md);
}
.section {
  padding: var(--space-xl) 0;
}
.section--alt {
  background: var(--color-bg-alt);
}
.section--dark {
  background: var(--color-primary);
  color: #fff;
}
.section--dark h1,
.section--dark h2,
.section--dark h3,
.section--dark p { color: #fff; }

/* ── Gold Divider ── */
.gold-rule {
  width: 60px; height: 3px;
  background: var(--color-accent);
  border-radius: 2px;
  margin: var(--space-sm) 0 var(--space-md);
}
.gold-rule--center { margin-left: auto; margin-right: auto; }

/* ── Section Header ── */
.section-header {
  text-align: center;
  margin-bottom: var(--space-lg);
}
.section-header h2 {
  margin-bottom: 4px;
}
.section-header p {
  max-width: 560px;
  margin: var(--space-sm) auto 0;
  color: var(--color-text-muted);
}

/* ── Navigation ── */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: var(--color-bg);
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition), box-shadow var(--transition);
  height: var(--nav-height);
}
.nav.scrolled {
  border-bottom-color: var(--color-border);
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.nav__inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 100%; gap: var(--space-md);
}
.nav__logo {
  display: flex; align-items: center; gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
}
.nav__logo-img {
  width: 48px; height: 48px;
  background: var(--color-primary);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-heading);
  font-size: 14px; font-weight: 700;
  color: var(--color-accent);
  letter-spacing: -0.5px;
  flex-shrink: 0;
}
.nav__logo-text {
  font-family: var(--font-heading);
  font-size: 15px; font-weight: 600;
  color: var(--color-primary);
  line-height: 1.2;
}
.nav__logo-text span { display: block; font-size: 11px; font-weight: 500; color: var(--color-text-muted); }
.nav__links {
  display: flex; align-items: center; gap: var(--space-md);
  flex: 1; justify-content: center;
}
.nav__link {
  font-family: var(--font-body); font-size: 15px; font-weight: 500;
  color: var(--color-text-muted);
  transition: color var(--transition);
  position: relative; padding-bottom: 2px;
}
.nav__link::after {
  content: ''; position: absolute; bottom: -2px; left: 0;
  width: 0; height: 2px; background: var(--color-accent);
  transition: width var(--transition);
}
.nav__link:hover { color: var(--color-text); text-decoration: none; }
.nav__link:hover::after { width: 100%; }
.nav__link.active { color: var(--color-primary); }
.nav__link.active::after { width: 100%; }
.nav__cta { flex-shrink: 0; }
.nav__hamburger {
  display: none; flex-direction: column; gap: 5px;
  padding: 8px; cursor: pointer;
}
.nav__hamburger span {
  display: block; width: 24px; height: 2px;
  background: var(--color-primary); border-radius: 2px;
  transition: var(--transition);
}
.nav__mobile {
  display: none; position: fixed; inset: 0;
  background: var(--color-primary); z-index: 200;
  flex-direction: column; align-items: center; justify-content: center;
  gap: var(--space-md);
}
.nav__mobile.open { display: flex; }
.nav__mobile-link {
  font-family: var(--font-heading); font-size: 28px; font-weight: 600;
  color: #fff; transition: color var(--transition);
}
.nav__mobile-link:hover { color: var(--color-accent); text-decoration: none; }
.nav__mobile-close {
  position: absolute; top: 24px; right: 24px;
  font-size: 36px; color: rgba(255,255,255,0.6);
  padding: 8px; cursor: pointer;
}
.nav__mobile-close:hover { color: #fff; }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px;
  padding: 13px 28px;
  font-family: var(--font-ui); font-size: 14px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.06em;
  border-radius: var(--radius-pill);
  transition: background var(--transition), color var(--transition),
              box-shadow var(--transition), transform 100ms ease;
  cursor: pointer; white-space: nowrap; border: none;
  text-decoration: none;
}
.btn:active { transform: translateY(1px); }

.btn--primary {
  background: var(--color-accent); color: var(--color-text);
}
.btn--primary:hover {
  background: var(--color-accent-hover);
  box-shadow: 0 4px 16px rgba(247, 181, 0, 0.35);
  text-decoration: none;
}

.btn--ghost {
  background: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}
.btn--ghost:hover {
  background: rgba(16, 22, 103, 0.07);
  text-decoration: none;
}

.btn--ghost-white {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,0.5);
}
.btn--ghost-white:hover {
  background: rgba(255,255,255,0.10);
  border-color: #fff;
  text-decoration: none;
}

.btn--lg { padding: 16px 36px; font-size: 15px; }
.btn--sm { padding: 9px 20px; font-size: 13px; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

/* ── Hero ── */
.hero {
  min-height: calc(100vh - var(--nav-height));
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; text-align: center;
  padding: var(--space-xl) var(--space-md);
  position: relative;
  background: var(--color-primary);
  color: #fff;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 70% 50%, rgba(247,181,0,0.12) 0%, transparent 60%);
  pointer-events: none;
}
.hero__eyebrow {
  display: inline-block;
  font-family: var(--font-ui); font-size: 13px; font-weight: 700;
  letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--color-accent); margin-bottom: var(--space-md);
}
.hero h1 {
  color: #fff; max-width: 820px;
  margin-bottom: var(--space-sm);
}
.hero__sub {
  font-size: 19px; color: rgba(255,255,255,0.75);
  max-width: 600px; line-height: 1.65;
  margin-bottom: var(--space-lg);
}
.hero__actions {
  display: flex; gap: var(--space-sm); flex-wrap: wrap; justify-content: center;
}
.hero__scroll {
  position: absolute; bottom: 40px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  color: rgba(255,255,255,0.5); font-size: 11px;
  letter-spacing: 0.1em; text-transform: uppercase;
  animation: bounce 2.2s ease-in-out infinite;
}
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(7px); }
}

/* ── Stats Bar ── */
.stats-bar {
  background: var(--color-bg-alt);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  padding: var(--space-lg) 0;
}
.stats-bar__grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-md); text-align: center;
}
.stat-item__number {
  font-family: var(--font-heading); font-size: 42px; font-weight: 700;
  color: var(--color-primary); line-height: 1;
}
.stat-item__label {
  font-size: 14px; color: var(--color-text-muted); margin-top: 4px;
}

/* ── Cards ── */
.card {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: var(--space-md);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), transform var(--transition);
}
.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}
.card__icon {
  width: 52px; height: 52px;
  background: rgba(16,22,103,0.08);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: var(--space-sm);
  color: var(--color-primary);
}
.card__icon svg { width: 24px; height: 24px; }
.card h3 { font-size: 20px; margin-bottom: 10px; }
.card p { font-size: 15px; color: var(--color-text-muted); }
.card__link {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: var(--space-sm);
  font-family: var(--font-ui); font-size: 13px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.05em;
  color: var(--color-primary);
  transition: gap var(--transition), color var(--transition);
}
.card__link:hover { color: var(--color-accent); gap: 10px; text-decoration: none; }

/* ── Programs Grid ── */
.programs-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-md);
}

/* ── SHS Cards ── */
.shs-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-md);
}
.shs-card {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: var(--space-md) var(--space-lg);
  border-top: 4px solid var(--color-accent);
  transition: box-shadow var(--transition), transform var(--transition);
}
.shs-card:hover {
  box-shadow: var(--shadow-md); transform: translateY(-2px);
}
.shs-card__tag {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(247,181,0,0.12);
  border-radius: 20px;
  font-family: var(--font-ui); font-size: 12px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.05em;
  color: var(--color-accent-hover); margin-bottom: var(--space-sm);
}
.shs-card h3 { font-size: 22px; margin-bottom: 10px; }
.shs-card p { font-size: 15px; color: var(--color-text-muted); }
.shs-card__careers {
  margin-top: var(--space-sm); display: flex; flex-wrap: wrap; gap: 8px;
}
.shs-card__career {
  font-size: 12px; padding: 3px 10px;
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: 20px;
  color: var(--color-text-muted);
}

/* ── Levels Grid ── */
.levels-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-lg);
  margin-top: var(--space-lg);
}
.level-item {
  text-align: center; padding: var(--space-md);
}
.level-item__img {
  width: 80px; height: 80px; margin: 0 auto var(--space-sm);
  background: var(--color-bg-alt);
  border: 2px solid var(--color-border);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--color-primary);
}
.level-item__img svg { width: 36px; height: 36px; }
.level-item h3 { font-size: 20px; margin-bottom: 8px; }
.level-item p { font-size: 14px; color: var(--color-text-muted); }

/* ── CTA Banner ── */
.cta-banner {
  background: linear-gradient(135deg, var(--color-primary) 0%, #1a2a8a 100%);
  padding: var(--space-xl) var(--space-md);
  text-align: center;
  position: relative; overflow: hidden;
}
.cta-banner::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 30% 50%, rgba(247,181,0,0.15) 0%, transparent 60%);
  pointer-events: none;
}
.cta-banner h2 { color: #fff; max-width: 600px; margin: 0 auto var(--space-sm); }
.cta-banner p { color: rgba(255,255,255,0.75); max-width: 480px; margin: 0 auto var(--space-lg); font-size: 18px; }
.cta-banner .btn--primary { font-size: 16px; padding: 16px 40px; }

/* ── Gallery ── */
.gallery-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-sm);
}
.gallery-item {
  aspect-ratio: 4/3; background: var(--color-bg-alt);
  border-radius: var(--radius); overflow: hidden;
  position: relative; cursor: pointer;
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; }
.gallery-item__overlay {
  position: absolute; inset: 0;
  background: rgba(16,22,103,0.7);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity var(--transition);
  color: #fff; font-family: var(--font-ui); font-size: 14px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.05em;
}
.gallery-item:hover .gallery-item__overlay { opacity: 1; }

/* ── Page Header ── */
.page-header {
  background: var(--color-primary);
  padding: var(--space-xl) 0 var(--space-lg);
  text-align: center;
  position: relative; overflow: hidden;
}
.page-header::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 80% 50%, rgba(247,181,0,0.10) 0%, transparent 60%);
  pointer-events: none;
}
.page-header h1 { color: #fff; margin-bottom: var(--space-xs); }
.page-header .lead { color: rgba(255,255,255,0.75); max-width: 560px; margin: 0 auto; }
.breadcrumb {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  font-size: 13px; color: rgba(255,255,255,0.5);
  margin-bottom: var(--space-md);
}
.breadcrumb a { color: rgba(255,255,255,0.6); }
.breadcrumb a:hover { color: var(--color-accent); text-decoration: none; }

/* ── About Content ── */
.about-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-xl); align-items: center;
}
.about-text h2 { margin-bottom: var(--space-sm); }
.about-text p + p { margin-top: var(--space-sm); }
.about-values {
  display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-sm); margin-top: var(--space-md);
}
.value-item {
  display: flex; align-items: flex-start; gap: 12px;
  padding: var(--space-sm); background: var(--color-bg-alt);
  border-radius: var(--radius); border-left: 3px solid var(--color-accent);
}
.value-item svg { width: 20px; height: 20px; color: var(--color-accent); flex-shrink: 0; margin-top: 2px; }
.value-item span { font-size: 15px; font-weight: 500; }

/* ── Admissions Steps ── */
.steps-list {
  display: flex; flex-direction: column; gap: var(--space-md); max-width: 720px; margin: 0 auto;
}
.step-item {
  display: grid; grid-template-columns: 56px 1fr; gap: var(--space-md); align-items: start;
}
.step-item__num {
  width: 56px; height: 56px;
  background: var(--color-primary);
  color: var(--color-accent);
  font-family: var(--font-heading); font-size: 24px; font-weight: 700;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.step-item h3 { font-size: 18px; margin-bottom: 4px; }
.step-item p { font-size: 15px; color: var(--color-text-muted); }

/* ── Contact ── */
.contact-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-xl);
  align-items: start;
}
.contact-info__item {
  display: flex; align-items: flex-start; gap: 14px;
  padding: var(--space-sm) 0;
  border-bottom: 1px solid var(--color-border);
  font-size: 16px;
}
.contact-info__item:last-child { border-bottom: none; }
.contact-info__item svg { width: 20px; height: 20px; color: var(--color-accent); flex-shrink: 0; margin-top: 2px; }
.contact-info__item a { color: var(--color-link); }
.contact-info__item a:hover { text-decoration: underline; }
.contact-social {
  display: flex; gap: var(--space-sm); margin-top: var(--space-md); flex-wrap: wrap;
}
.contact-social__link {
  display: flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 500;
  padding: 10px 16px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  color: var(--color-text-muted);
  transition: border-color var(--transition), color var(--transition);
}
.contact-social__link:hover { border-color: var(--color-primary); color: var(--color-primary); text-decoration: none; }
.contact-social__link svg { width: 18px; height: 18px; }

/* ── Forms ── */
.form { display: flex; flex-direction: column; gap: var(--space-sm); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-sm); }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-label { font-size: 14px; font-weight: 600; color: var(--color-text); }
.form-label span { color: var(--color-error); margin-left: 2px; }
.form-input, .form-select, .form-textarea {
  padding: 13px 16px; font-size: 15px; color: var(--color-text);
  background: var(--color-bg);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius);
  transition: border-color var(--transition), box-shadow var(--transition);
  width: 100%; appearance: none;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none; border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(16,22,102,0.10);
}
.form-input.error, .form-select.error, .form-textarea.error { border-color: var(--color-error); }
.form-textarea { resize: vertical; min-height: 130px; }
.form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23576168' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
  padding-right: 40px; cursor: pointer;
}
.form-error { font-size: 13px; color: var(--color-error); display: none; }
.form-group.has-error .form-error { display: block; }
.form-submit { margin-top: var(--space-sm); }
.form-success {
  display: none; padding: var(--space-md);
  background: #f0fdf4; border: 1px solid #86efac;
  border-radius: var(--radius); border-left: 4px solid var(--color-success);
}
.form-success.show { display: block; }
.form-success h3 { font-size: 18px; color: var(--color-success); margin-bottom: 8px; font-family: var(--font-body); font-weight: 600; }
.form-success p { font-size: 15px; color: var(--color-text-muted); }

/* ── Footer ── */
.footer {
  background: var(--color-footer-bg);
  color: var(--color-footer-text);
  padding: var(--space-xl) 0 var(--space-md);
}
.footer__grid {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: var(--space-xl);
  margin-bottom: var(--space-xl); padding-bottom: var(--space-xl);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.footer__logo {
  display: flex; align-items: center; gap: 12px; margin-bottom: var(--space-sm);
}
.footer__logo-img {
  width: 44px; height: 44px; background: rgba(255,255,255,0.08);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-family: var(--font-heading); font-size: 13px; font-weight: 700;
  color: var(--color-accent); flex-shrink: 0;
}
.footer__logo-text {
  font-family: var(--font-heading); font-size: 15px; font-weight: 600; color: #fff;
}
.footer__tagline { font-size: 14px; color: var(--color-footer-text); line-height: 1.6; max-width: 280px; }
.footer__heading {
  font-family: var(--font-ui); font-size: 12px; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: rgba(255,255,255,0.4); margin-bottom: var(--space-md);
}
.footer__links { display: flex; flex-direction: column; gap: 10px; }
.footer__link { font-size: 15px; color: var(--color-footer-text); transition: color var(--transition); }
.footer__link:hover { color: var(--color-accent); text-decoration: none; }
.footer__social { display: flex; gap: var(--space-sm); }
.footer__social-link {
  width: 38px; height: 38px;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  color: var(--color-footer-text);
  transition: border-color var(--transition), color var(--transition);
}
.footer__social-link:hover { border-color: var(--color-accent); color: var(--color-accent); }
.footer__social-link svg { width: 18px; height: 18px; }
.footer__bottom {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 13px; color: var(--color-footer-text);
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .programs-grid { grid-template-columns: 1fr 1fr; }
  .levels-grid { grid-template-columns: 1fr; gap: var(--space-md); }
  .about-grid { grid-template-columns: 1fr; }
  .about-values { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: var(--space-lg); }
  .form-row { grid-template-columns: 1fr; }
  .shs-grid { grid-template-columns: 1fr; }
  .stats-bar__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  :root { --space-xl: 60px; --space-lg: 40px; }
  .nav__links { display: none; }
  .nav__cta { display: none; }
  .nav__hamburger { display: flex; }
  .hero__actions { flex-direction: column; align-items: center; }
  .hero__actions .btn { width: 100%; max-width: 280px; }
  .programs-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr; gap: var(--space-lg); }
  .footer__bottom { flex-direction: column; gap: 8px; text-align: center; }
  .stats-bar__grid { grid-template-columns: repeat(2, 1fr); }
  .hero { min-height: auto; padding: var(--space-xl) var(--space-md); }
  .hero__scroll { display: none; }
  .about-values { grid-template-columns: 1fr; }
}

/* ── Scroll Reveal ── */
.reveal {
  opacity: 0; transform: translateY(16px);
  transition: opacity 0.45s ease-out, transform 0.45s ease-out;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero__scroll { animation: none; }
}

/* ── Utility ── */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
.mt-lg { margin-top: var(--space-lg); }
.mb-lg { margin-bottom: var(--space-lg); }

/* ============================================================
   Hero Carousel
   ============================================================ */
.hero-carousel {
  position: relative;
  min-height: calc(100vh - var(--nav-height));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--color-primary);
}

.hero-carousel__track {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-carousel__slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-xl) var(--space-md);
  opacity: 0;
  transition: opacity 0.65s ease-in-out;
  pointer-events: none;
}

.hero-carousel__slide--active {
  opacity: 1;
  pointer-events: auto;
}

.hero-carousel__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-carousel__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(10, 16, 72, 0.72) 0%,
    rgba(10, 16, 72, 0.60) 50%,
    rgba(10, 16, 72, 0.80) 100%
  );
  pointer-events: none;
}

.hero-carousel__content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 820px;
  animation: fadeSlideUp 0.5s ease-out both;
}

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

.hero-carousel__slide--active .hero-carousel__content {
  animation: fadeSlideUp 0.5s ease-out 0.1s both;
}

/* ── Dots ── */
.hero-carousel__dots {
  position: absolute;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
}

.hero-carousel__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.3);
  border: none;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
  padding: 0;
}

.hero-carousel__dot--active {
  background: var(--color-accent);
  transform: scale(1.2);
}

.hero-carousel__dot:hover:not(.hero-carousel__dot--active) {
  background: rgba(255,255,255,0.6);
}

/* ── Arrow Buttons ── */
.hero-carousel__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  border: 1.5px solid rgba(255,255,255,0.2);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition), transform 100ms ease;
  backdrop-filter: blur(4px);
}

.hero-carousel__arrow:hover {
  background: rgba(255,255,255,0.2);
  border-color: rgba(255,255,255,0.4);
}

.hero-carousel__arrow:active {
  transform: translateY(-50%) scale(0.95);
}

.hero-carousel__arrow--prev { left: 24px; }
.hero-carousel__arrow--next { right: 24px; }

/* ── Scroll Indicator ── */
.hero-carousel__scroll {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.4);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  animation: bounce 2.2s ease-in-out infinite;
  z-index: 10;
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(6px); }
}

/* ── Responsive ── */
@media (max-width: 640px) {
  .hero-carousel__dots { bottom: 80px; }
  .hero-carousel__arrow { width: 40px; height: 40px; }
  .hero-carousel__arrow--prev { left: 12px; }
  .hero-carousel__arrow--next { right: 12px; }
  .hero-carousel__scroll { display: none; }
}

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
  .hero-carousel__slide { transition: none; }
  .hero-carousel__slide--active .hero-carousel__content { animation: none; }
  .hero-carousel__scroll { animation: none; }
  .hero-carousel__dot { transition: none; }
}
