/* ====== CSS Custom Properties (Tokens) ====== */
:root {
  --color-primary: #E86A17;
  --color-primary-hover: #C7550E;
  --color-secondary: #0A1128;
  --color-accent: #F5B041;
  --color-bg: #FAFAF7;
  --color-surface: #FFFFFF;
  --color-text: #1A1A1A;
  --color-text-light: #555555;
  --color-border: rgba(0,0,0,0.08);
  --glass-bg: rgba(255,255,255,0.7);
  --glass-border: rgba(255,255,255,0.3);
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.04);
  --shadow-card: 0 20px 40px rgba(0,0,0,0.06);
  --shadow-button: 0 8px 24px rgba(232,106,23,0.25);
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --font-heading: 'Playfair Display', serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Dark theme */
[data-theme="dark"] {
  --color-bg: #0A1128;
  --color-surface: #16213E;
  --color-text: #F0F0F0;
  --color-text-light: #AAAAAA;
  --color-border: rgba(255,255,255,0.08);
  --glass-bg: rgba(22,33,62,0.7);
  --glass-border: rgba(255,255,255,0.1);
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.2);
  --shadow-card: 0 20px 40px rgba(0,0,0,0.4);
}

/* ====== Reset & Base ====== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.7;
  transition: background 0.3s, color 0.3s;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* Container */
.container {
  width: 92%;
  max-width: 1280px;
  margin: 0 auto;
}

/* Skip link */
.skip-link {
  position: absolute;
  top: -100%;
  left: 0;
  background: var(--color-primary);
  color: #fff;
  padding: 12px 24px;
  z-index: 10000;
  border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { top: 0; }

/* ====== Buttons ====== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  font-weight: 600;
  border-radius: 50px;
  border: 2px solid transparent;
  transition: all var(--transition);
  cursor: pointer;
  font-size: 1rem;
  text-align: center;
}
.btn--primary {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
  box-shadow: var(--shadow-button);
}
.btn--primary:hover {
  background: var(--color-primary-hover);
  border-color: var(--color-primary-hover);
  transform: translateY(-2px);
}
.btn--ghost {
  background: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
}
.btn--ghost:hover {
  background: var(--color-primary);
  color: #fff;
}
.btn--outline {
  background: transparent;
  border: 2px solid var(--color-border);
  color: var(--color-text);
}
.btn--outline:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

/* ====== Header ====== */
/* ====== Premium Header ====== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
  padding: 10px 0;
  transition: padding 0.3s, background 0.3s, box-shadow 0.3s;
}
/* Compact on scroll (adds subtle shadow) */
.header--scrolled {
  padding: 6px 0;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  background: rgba(255,255,255,0.9);
}
[data-theme="dark"] .header--scrolled {
  background: rgba(10,17,40,0.9);
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 1px;
  text-decoration: none;
  color: var(--color-text);
  transition: transform 0.2s;
}
.logo:hover {
  transform: scale(1.02);
}
.logo img {
  height: 50px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
  transition: height 0.3s;
}
.header--scrolled .logo img {
  height: 42px;   /* smaller logo on scroll */
}
.logo__text span {
  color: var(--color-primary);
}

/* Navigation links */
.nav__list {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav__link {
  font-weight: 500;
  color: var(--color-text);
  position: relative;
  padding: 6px 0;
  transition: color 0.2s;
}
.nav__link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-primary);
  transition: width 0.3s ease;
}
.nav__link:hover,
.nav__link:focus {
  color: var(--color-primary);
}
.nav__link:hover::after,
.nav__link:focus::after {
  width: 100%;
}

/* Language & theme toggles */
.lang-toggle,
.theme-toggle {
  background: none;
  border: 1px solid var(--color-border);
  padding: 6px 14px;
  border-radius: 20px;
  cursor: pointer;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--color-text);
  transition: all 0.2s;
}
.lang-toggle:hover,
.theme-toggle:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  background: rgba(232,106,23,0.05);
}

/* Mobile nav styles – handled in JS + CSS */
@media (max-width: 1023px) {
  .mobile-toggle { display: block; }
  .nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 320px;
    height: 100vh;
    background: var(--color-surface);
    box-shadow: -10px 0 40px rgba(0,0,0,0.1);
    padding: 80px 30px 30px;
    transition: right 0.3s ease;
    z-index: 99;
  }
  .nav--open { right: 0; }
  .nav__list {
    flex-direction: column;
    align-items: flex-start;
    gap: 30px;
  }
}
/* Active hamburger animation */
.mobile-toggle[aria-expanded="true"] .hamburger {
  background: transparent;
}
.mobile-toggle[aria-expanded="true"] .hamburger::before {
  transform: rotate(45deg) translate(5px, 5px);
}
.mobile-toggle[aria-expanded="true"] .hamburger::after {
  transform: rotate(-45deg) translate(5px, -5px);
}
/* ====== Hero ====== */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
}
.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(10,17,40,0.8) 0%, rgba(232,106,23,0.5) 100%);
}
.hero__content {
  position: relative;
  z-index: 2;
  padding: 40px 0;
}
.hero__title {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 8vw, 5rem);
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.2;
}
.hero__subtitle {
  font-size: clamp(1rem, 3vw, 1.5rem);
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto 30px;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  margin-top: 30px;
}
.hero__gurbani {
  margin-top: 40px;
  font-style: italic;
  font-family: var(--font-heading);
  opacity: 0.8;
}

/* Countdown in hero */
.countdown--hero {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 30px 0;
}
.countdown__item {
  background: var(--glass-bg);
  backdrop-filter: blur(8px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 15px 20px;
  min-width: 70px;
}
.countdown__value {
  font-size: 2rem;
  font-weight: 700;
  display: block;
}
.countdown__label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  opacity: 0.8;
}
.countdown__sep {
  font-size: 2rem;
  align-self: center;
  opacity: 0.7;
}

/* ====== Stats ====== */
.stats {
  padding: 80px 0;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
}
.stats__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  text-align: center;
}
.stat__num {
  font-size: 3rem;
  font-weight: 700;
  color: var(--color-primary);
  font-family: var(--font-heading);
  display: block;
}
.stat__label {
  font-size: 1rem;
  color: var(--color-text-light);
}

/* ====== Features ====== */
.features {
  padding: 100px 0;
}
.section-title {
  text-align: center;
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: 60px;
  position: relative;
}
.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: var(--color-primary);
  margin: 15px auto 0;
}
.features__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
}
.feature-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 40px 30px;
  text-align: center;
  transition: all var(--transition);
  box-shadow: var(--shadow-sm);
}
.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-card);
  border-color: var(--color-primary);
}
.card__icon {
  color: var(--color-primary);
  margin-bottom: 20px;
}
.feature-card h3 {
  font-size: 1.5rem;
  margin-bottom: 12px;
}

/* ====== How It Works ====== */
.process {
  padding: 100px 0;
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
}
.process__steps {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 50px;
  text-align: center;
}
.step {
  flex: 1 1 250px;
  position: relative;
}
.step__num {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  font-size: 2rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}
.step h3 { font-size: 1.5rem; margin-bottom: 10px; }

/* ====== Blog ====== */
.blog {
  padding: 100px 0;
}
.blog__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}
.blog__skeleton {
  height: 300px;
  background: var(--color-border);
  border-radius: var(--radius-lg);
  animation: pulse 1.5s infinite;
}
@keyframes pulse {
  0% { opacity: 0.6; }
  50% { opacity: 1; }
  100% { opacity: 0.6; }
}
.blog__cta { display: block; text-align: center; max-width: 200px; margin: 0 auto; }

/* ====== Testimonials (redesigned, compact) ====== */
.testimonials {
  padding: 100px 0;
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
}
.testimonial-carousel {
  position: relative;
  max-width: 620px;
  margin: 0 auto;
  overflow: hidden;
}
.carousel__track {
  display: flex;
  transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}
.testimonial-slide {
  min-width: 100%;
  padding: 30px 10px;
  text-align: center;
  opacity: 0.35;
  transform: scale(0.96);
  transition: opacity 0.4s, transform 0.4s;
}
.testimonial-slide.active {
  opacity: 1;
  transform: scale(1);
}

.testimonial-card {
  background: var(--color-bg);
  border-radius: 20px;
  padding: 35px 25px 25px;
  position: relative;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
}
.testimonial-card::before {
  content: "“";
  font-family: var(--font-heading);
  font-size: 5rem;
  color: var(--color-primary);
  opacity: 0.15;
  position: absolute;
  top: -15px;
  left: 20px;
  line-height: 1;
}
.testimonial-card blockquote {
  font-size: 1.05rem;
  line-height: 1.7;
  font-style: italic;
  color: var(--color-text);
  margin-bottom: 18px;
  border: none;
  padding: 0;
}
.testimonial-card .author {
  font-weight: 600;
  color: var(--color-primary);
  display: block;
  margin-bottom: 4px;
}
.testimonial-card .role {
  font-size: 0.85rem;
  color: var(--color-text-light);
  display: block;
  margin-bottom: 16px;
}

/* Tiny action icons */
.testimonial-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
}
.action-btn {
  background: none;
  border: none;
  padding: 6px;
  cursor: pointer;
  color: var(--color-text-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s, background 0.2s;
}
.action-btn:hover {
  color: var(--color-primary);
  background: rgba(232,106,23,0.08);
}
.action-btn svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}
.like-count {
  font-size: 0.8rem;
  margin-left: 2px;
}

/* Controls (prev/next arrows) */
.carousel__controls {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 25px;
}
.carousel__btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: 0.2s;
  color: var(--color-text);
}
.carousel__btn:hover {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
}
.carousel__indicators {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 15px;
}
.indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-border);
  border: none;
  cursor: pointer;
  transition: 0.2s;
}
.indicator.active {
  background: var(--color-primary);
  transform: scale(1.4);
}
/* Built dynamically by JS; skeleton styles in testimonials.js */

/* ====== Volunteer CTA ====== */
.cta--volunteer {
  padding: 100px 0;
  background: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-primary) 100%);
  color: #fff;
  text-align: center;
}
.cta__content h2 {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 6vw, 3.5rem);
  margin-bottom: 20px;
}

/* ====== People ====== */
.people {
  padding: 100px 0;
}
.people__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 40px;
  text-align: center;
}
.person-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 40px 20px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.person-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-card);
}

.person__avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  overflow: hidden;          /* clips the image to the circle */
  margin: 0 auto 15px;
  background: var(--color-primary);   /* fallback color if image fails to load */
}
.person__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;         /* ensures the image covers the circle, cropped if needed */
  display: block;
}
.person__role {
  color: var(--color-text-light);
  font-size: 0.9rem;
}

/* ====== Footer ====== */
.footer {
  background: linear-gradient(135deg, var(--color-secondary) 0%, #1a2744 100%);
  color: #fff;
  padding: 80px 0 30px;
}
.footer__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 50px;
  margin-bottom: 50px;
}
.footer__logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 15px;
  font-weight: 700;
  font-size: 1.1rem;
  text-decoration: none;
  color: #fff;
}
.footer__logo img {
  height: 50px;
  width: auto;
  max-width: 150px;
  object-fit: contain;
}
.footer__tagline {
  opacity: 0.8;
  margin-bottom: 20px;
}
.social-links {
  display: flex;
  gap: 15px;
}
.social-links a {
  color: #fff;
  background: rgba(255,255,255,0.1);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.2s;
}
.social-links a:hover {
  background: var(--color-primary);
  transform: translateY(-3px);
}
.footer__links h4,
.footer__newsletter h4 {
  font-size: 1.1rem;
  margin-bottom: 20px;
  position: relative;
  display: inline-block;
}
.footer__links h4::after,
.footer__newsletter h4::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 40px;
  height: 2px;
  background: var(--color-primary);
}
.footer__links ul {
  list-style: none;
}
.footer__links li {
  margin-bottom: 10px;
}
.footer__links a {
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  transition: 0.2s;
}
.footer__links a:hover {
  color: var(--color-primary);
  padding-left: 5px;
}
.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 15px;
}
.newsletter-form input {
  padding: 12px 16px;
  border-radius: 50px;
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.1);
  color: #fff;
  outline: none;
  font-family: inherit;
}
.newsletter-form input::placeholder {
  color: rgba(255,255,255,0.6);
}
.newsletter-form .btn {
  width: 100%;
}
.footer__copy {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  opacity: 0.8;
}
.footer__credit {
  margin: 0;
}

/* Cookie Consent */
.cookie-consent {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  padding: 15px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 999;
  box-shadow: 0 -5px 20px rgba(0,0,0,0.1);
}

/* ====== Responsive Finetuning ====== */
@media (max-width: 480px) {
  .btn { padding: 12px 24px; }
  .hero__title { font-size: 2.2rem; }
}

/* Like button heart animation */
.action-btn.liked svg {
  fill: var(--color-primary);
  stroke: var(--color-primary);
}
.action-btn svg {
  transition: fill 0.2s, stroke 0.2s;
}
/* Copy success icon */
.copy-btn svg {
  transition: 0.2s;
}

.carousel__track {
  display: flex;
  transition: transform 0.4s ease;
  /* IMPORTANT: transform is set by JS inline */
}
.testimonial-slide {
  min-width: 100%; /* ensures one slide per view */
}
.testimonial-carousel {
  overflow: hidden; /* hides off‑screen slides */
}

/* Testimonial Submission Form */
.testimonial-form {
  max-width: 600px;
  margin: 60px auto 0;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-sm);
}
.testimonial-form h3 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  margin-bottom: 25px;
  text-align: center;
}
.form-group {
  margin-bottom: 20px;
}
.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: var(--color-text);
}
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(232,106,23,0.1);
}
.form-message {
  margin-top: 20px;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  text-align: center;
}
.form-message.success {
  background: rgba(76,175,80,0.1);
  color: #2e7d32;
  border: 1px solid #c8e6c9;
}
.form-message.error {
  background: rgba(244,67,54,0.1);
  color: #c62828;
  border: 1px solid #ffcdd2;
}


/* Placeholder card styling */
.person-card--placeholder {
  cursor: pointer;
  border: 2px dashed var(--color-border);
  transition: var(--transition);
}
.person-card--placeholder:hover {
  border-color: var(--color-primary);
  background: var(--color-bg);
  transform: translateY(-5px);
  box-shadow: var(--shadow-card);
}

/* ====== "You Can Be Here" Modal ====== */
.modal-overlay {
  display: none;                     /* hidden by default */
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
}
.modal-overlay.active {
  display: flex;                     /* shown when JS adds .active */
}
.modal-box {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: 40px 30px 30px;
  max-width: 400px;
  width: 90%;
  text-align: center;
  position: relative;
  box-shadow: var(--shadow-card);
  animation: modalFadeIn 0.3s ease;
}
@keyframes modalFadeIn {
  from { opacity: 0; transform: translateY(-20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.modal-close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--color-text-light);
}
.modal-icon {
  color: var(--color-primary);
  margin-bottom: 15px;
}
.modal-box h2 {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  margin-bottom: 10px;
  color: var(--color-primary);
}
.modal-box p {
  color: var(--color-text-light);
  margin-bottom: 25px;
  line-height: 1.6;
}

/* Hamburger animation + visibility fixes */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  padding: 10px;
  cursor: pointer;
  z-index: 150;
}
.mobile-toggle .hamburger,
.mobile-toggle .hamburger::before,
.mobile-toggle .hamburger::after {
  display: block;
  width: 26px;
  height: 3px;
  background: var(--color-text);
  border-radius: 2px;
  transition: all 0.3s ease;
}
.mobile-toggle .hamburger {
  position: relative;
}
.mobile-toggle .hamburger::before,
.mobile-toggle .hamburger::after {
  content: '';
  position: absolute;
  left: 0;
}
.mobile-toggle .hamburger::before { top: -8px; }
.mobile-toggle .hamburger::after  { top: 8px; }

/* When menu is open, transform hamburger into X */
.mobile-toggle[aria-expanded="true"] .hamburger {
  background: transparent;
}
.mobile-toggle[aria-expanded="true"] .hamburger::before {
  top: 0;
  transform: rotate(45deg);
}
.mobile-toggle[aria-expanded="true"] .hamburger::after {
  top: 0;
  transform: rotate(-45deg);
}

/* Close button inside the mobile menu */
.nav__close {
  display: none;                 /* hidden on desktop */
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  font-size: 2rem;
  color: var(--color-text);
  cursor: pointer;
  z-index: 160;
}

/* Show mobile toggle on small screens (critical) */
@media (max-width: 1023px) {
    .mobile-toggle {
        display: block !important;
    }
    .nav__close {
        display: block !important;
    }
}