/* ============================================
   JUXFIT — Performance Coaching
   Industrial Athletic Aesthetic
   ============================================ */

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: 'Outfit', sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

/* --- Custom Properties --- */
:root {
  --bg: #080808;
  --surface: #121212;
  --surface-raised: #1a1a1a;
  --accent: #D4A843;
  --accent-hover: #E6BE5A;
  --accent-dim: rgba(212, 168, 67, 0.12);
  --text: #F0F0F0;
  --text-muted: #8A8A8A;
  --badge-green: #3ECF5C;

  --font-display: 'Bebas Neue', sans-serif;
  --font-heading: 'Barlow Condensed', sans-serif;
  --font-body: 'Outfit', sans-serif;

  --max-width: 1200px;
  --section-pad: 100px;
  --section-pad-mobile: 64px;
  --card-gap: 20px;
  --radius: 4px;
}

/* --- Grain Overlay --- */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
}

/* --- Utility --- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-bottom: 8px;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: var(--accent);
  margin-top: 12px;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 1rem;
  font-weight: 300;
  letter-spacing: 0.5px;
  margin-bottom: 56px;
}

/* --- Scroll Animation --- */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Staggered children */
.fade-in.visible .stats__item,
.fade-in.visible .testimonial,
.programs__grid .card.fade-in.visible {
  animation: slideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.fade-in.visible .stats__item:nth-child(1),
.programs__grid .card.fade-in.visible:nth-child(1) { animation-delay: 0s; }
.fade-in.visible .stats__item:nth-child(2),
.programs__grid .card.fade-in.visible:nth-child(2) { animation-delay: 0.1s; }
.fade-in.visible .stats__item:nth-child(3),
.programs__grid .card.fade-in.visible:nth-child(3) { animation-delay: 0.2s; }
.fade-in.visible .stats__item:nth-child(4),
.programs__grid .card.fade-in.visible:nth-child(4) { animation-delay: 0.3s; }

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

/* --- Nav --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(8, 8, 8, 0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.nav__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.nav__logo {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 400;
  letter-spacing: 4px;
  color: var(--accent);
  text-transform: uppercase;
}

.nav__links {
  display: flex;
  gap: 36px;
}

.nav__links a {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-muted);
  transition: color 0.3s ease;
  position: relative;
}

.nav__links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.3s ease;
}

.nav__links a:hover,
.nav__links a.active {
  color: var(--text);
}

.nav__links a:hover::after,
.nav__links a.active::after {
  width: 100%;
}

.nav__links a.active {
  color: var(--accent);
}

/* Hamburger */
.nav__toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 6px;
  padding: 4px;
}

.nav__toggle span {
  display: block;
  width: 28px;
  height: 1.5px;
  background: var(--text);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Mobile nav */
@media (max-width: 768px) {
  .nav__toggle {
    display: flex;
    padding: 10px;
    margin: -6px;
  }

  .nav__links {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: rgba(8, 8, 8, 0.97);
    backdrop-filter: blur(16px);
    flex-direction: column;
    align-items: center;
    gap: 0;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .nav__links.open {
    max-height: 320px;
  }

  .nav__links li {
    width: 100%;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  }

  .nav__links a {
    display: block;
    padding: 20px;
    font-size: 1rem;
    letter-spacing: 3px;
  }

  .nav__links a::after {
    display: none;
  }

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

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

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

/* Offset for fixed nav */
section, footer {
  scroll-margin-top: 72px;
}

/* --- Hero --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--bg);
}

/* Animated gradient orb */
.hero::before {
  content: '';
  position: absolute;
  width: 120%;
  height: 120%;
  top: -10%;
  left: -10%;
  background:
    radial-gradient(ellipse 600px 600px at 30% 40%, rgba(212, 168, 67, 0.08) 0%, transparent 70%),
    radial-gradient(ellipse 400px 400px at 70% 60%, rgba(212, 168, 67, 0.05) 0%, transparent 70%),
    radial-gradient(ellipse 800px 800px at 50% 50%, rgba(20, 20, 40, 0.4) 0%, transparent 70%);
  animation: heroGlow 12s ease-in-out infinite alternate;
  z-index: 0;
}

@keyframes heroGlow {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(20px, -10px) scale(1.05); }
}

/* Diagonal cut line decoration */
.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 80px;
  background: var(--bg);
  clip-path: polygon(0 100%, 100% 0, 100% 100%);
  z-index: 3;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  /* Grid pattern overlay */
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 60px 60px;
}

.hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 140px 24px 120px;
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(4rem, 12vw, 8rem);
  font-weight: 400;
  text-transform: uppercase;
  line-height: 0.95;
  letter-spacing: 6px;
  margin-bottom: 24px;
  background: linear-gradient(180deg, #FFFFFF 40%, rgba(255, 255, 255, 0.6) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__subtitle {
  font-family: var(--font-heading);
  font-size: clamp(1rem, 2vw, 1.15rem);
  font-weight: 400;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 40px;
  line-height: 1.7;
}

.hero__social {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-top: 40px;
}

.hero__social a {
  color: rgba(255, 255, 255, 0.25);
  transition: color 0.3s ease, transform 0.3s ease;
}

.hero__social a:hover {
  color: var(--accent);
  transform: translateY(-2px);
}

@media (max-width: 768px) {
  .hero__content {
    padding: 110px 24px 80px;
  }

  .hero::after {
    height: 40px;
  }

  .hero__social a {
    padding: 10px;
    margin: -10px;
  }
}

/* --- Button --- */
.btn {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  padding: 16px 40px;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.btn--primary {
  background: var(--accent);
  color: #080808;
}

.btn--primary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, 0.15) 50%, transparent 70%);
  transform: translateX(-100%);
  transition: transform 0.5s ease;
}

.btn--primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(212, 168, 67, 0.25);
}

.btn--primary:hover::after {
  transform: translateX(100%);
}

.btn--outline {
  background: transparent;
  color: var(--accent);
  border: 1.5px solid rgba(212, 168, 67, 0.4);
}

.btn--outline:hover {
  background: var(--accent);
  color: #080808;
  border-color: var(--accent);
  transform: translateY(-2px);
}

/* --- About --- */
.about {
  padding: var(--section-pad) 0;
  position: relative;
}

.about__grid {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 56px;
  align-items: center;
  margin-bottom: 64px;
}

.about__photo-placeholder {
  width: 260px;
  height: 260px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1.5px solid rgba(212, 168, 67, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 4rem;
  color: var(--accent);
  margin: 0 auto;
  position: relative;
}

/* Corner accent marks */
.about__photo-placeholder::before,
.about__photo-placeholder::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  border-color: var(--accent);
  border-style: solid;
}

.about__photo-placeholder::before {
  top: -1px;
  left: -1px;
  border-width: 2px 0 0 2px;
}

.about__photo-placeholder::after {
  bottom: -1px;
  right: -1px;
  border-width: 0 2px 2px 0;
}

.about__bio {
  font-size: 1.05rem;
  line-height: 1.9;
  color: var(--text-muted);
  max-width: 560px;
  font-weight: 300;
}

/* Stats ribbon */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  text-align: center;
  margin-bottom: 48px;
}

.stats__item {
  padding: 40px 16px;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  position: relative;
}

.stats__item:last-child {
  border-right: none;
}

.stats__item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 30px;
  height: 1.5px;
  background: var(--accent);
}

.stats__number {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 400;
  color: var(--text);
  letter-spacing: 2px;
}

.stats__label {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: 8px;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 600;
}

/* Credentials */
.credentials {
  max-width: 680px;
  margin: 0 auto;
}

.credentials__toggle {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent);
  cursor: pointer;
  padding: 16px 0;
  text-align: center;
  display: block;
  transition: color 0.3s ease;
  border-bottom: 1px solid rgba(212, 168, 67, 0.2);
}

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

.credentials__list {
  padding: 28px 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.credentials__list li {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 300;
  padding-left: 24px;
  position: relative;
  line-height: 1.6;
}

.credentials__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 8px;
  height: 8px;
  border: 1.5px solid var(--accent);
  border-radius: 1px;
  transform: rotate(45deg);
}

@media (max-width: 768px) {
  .about__grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .about__photo-placeholder {
    width: 200px;
    height: 200px;
    font-size: 3rem;
  }

  .about__bio {
    margin: 0 auto;
  }

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

  .stats__item {
    padding: 28px 16px;
  }

  .stats__item:nth-child(2) {
    border-right: none;
  }

  .stats__item:nth-child(1),
  .stats__item:nth-child(2) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }
}

/* --- Programs --- */
.programs {
  padding: var(--section-pad) 0;
  background: var(--surface);
  position: relative;
}

/* Top diagonal cut */
.programs::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 80px;
  background: var(--bg);
  clip-path: polygon(0 0, 100% 0, 100% 0, 0 100%);
}

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

.programs__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--card-gap);
}

/* --- Cards --- */
.card {
  background: var(--bg);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius);
  padding: 36px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease, border-color 0.3s ease;
  overflow: hidden;
}

/* Subtle top accent line */
.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), transparent);
  transition: background 0.3s ease;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  border-color: rgba(255, 255, 255, 0.1);
}

.card:hover::before {
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

.card--featured {
  border-color: rgba(212, 168, 67, 0.25);
}

.card--featured::before {
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

.card__badge {
  position: absolute;
  top: 20px;
  right: 20px;
  background: var(--accent);
  color: #080808;
  font-family: var(--font-heading);
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  padding: 5px 14px;
  border-radius: 2px;
}

.card__badge--green {
  background: var(--badge-green);
  color: #080808;
}

.card__title {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.card__tagline {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 24px;
  font-style: italic;
  font-weight: 300;
}

.card__desc {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.7;
  font-weight: 300;
  margin-bottom: 24px;
}

.card__list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 28px;
  flex-grow: 1;
}

.card__list li {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 400;
  padding-left: 24px;
  position: relative;
}

.card__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 7px;
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 1px;
  transform: rotate(45deg);
}

.card__price {
  margin-bottom: 28px;
}

.card__amount {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 400;
  color: var(--accent);
  letter-spacing: 1px;
}

.card__amount small {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 1px;
}

.card__note {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 6px;
  font-weight: 300;
  letter-spacing: 0.3px;
}

.card__cta {
  align-self: flex-start;
}

.card--small .card__cta {
  margin-top: auto;
}

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

  .programs::before {
    height: 40px;
  }

  .card {
    padding: 28px;
  }

  .card__cta {
    align-self: stretch;
    text-align: center;
  }
}

/* --- Testimonials --- */
.testimonials {
  padding: var(--section-pad) 0;
  position: relative;
}

/* Bottom diagonal */
.testimonials::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: var(--bg);
  clip-path: polygon(0 100%, 100% 0, 100% 100%);
}

.testimonials .section-title {
  margin-bottom: 48px;
}

.testimonials__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--card-gap);
  margin-bottom: 64px;
}

.testimonial {
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: var(--radius);
  padding: 36px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.testimonial:hover {
  transform: translateY(-4px);
  border-color: rgba(212, 168, 67, 0.15);
}

/* Big quote mark */
.testimonial::before {
  content: '\201C';
  position: absolute;
  top: 16px;
  right: 20px;
  font-family: var(--font-display);
  font-size: 4rem;
  color: rgba(212, 168, 67, 0.1);
  line-height: 1;
}

.testimonial__stars {
  color: var(--accent);
  font-size: 0.9rem;
  letter-spacing: 3px;
  margin-bottom: 20px;
}

.testimonial__quote {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.8;
  font-style: italic;
  font-weight: 300;
  flex-grow: 1;
  margin-bottom: 24px;
}

.testimonial__author {
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.testimonial__author strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
  letter-spacing: 0.5px;
}

.testimonial__author span {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 500;
}

/* Featured on */
.featured-on {
  text-align: center;
  padding: 36px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.featured-on__label {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: rgba(255, 255, 255, 0.25);
  margin-bottom: 16px;
  font-weight: 600;
}

.featured-on__items {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.35);
  letter-spacing: 1px;
  text-transform: uppercase;
}

.featured-on__sep {
  color: var(--accent);
  opacity: 0.4;
}

@media (max-width: 768px) {
  .testimonials__grid {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-bottom: 48px;
  }

  .testimonial {
    padding: 28px;
  }

  .testimonials::after {
    height: 30px;
  }

  .featured-on__items {
    flex-direction: column;
    gap: 12px;
  }

  .featured-on__sep {
    display: none;
  }
}

/* --- CTA --- */
.cta {
  padding: var(--section-pad) 0;
  position: relative;
}

.cta__inner {
  text-align: center;
  max-width: 680px;
  margin: 0 auto;
  padding: 72px 40px;
  border: 1px solid rgba(212, 168, 67, 0.2);
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
}

.cta__inner::before {
  content: '';
  position: absolute;
  width: 500px;
  height: 500px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(212, 168, 67, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

/* Top accent line */
.cta__inner::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

.cta__title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 7vw, 4.5rem);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 4px;
  margin-bottom: 20px;
  color: var(--text);
  position: relative;
}

.cta__text {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.8;
  font-weight: 300;
  margin-bottom: 40px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
}

.cta__actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  position: relative;
}

@media (max-width: 768px) {
  .cta__inner {
    padding: 48px 24px;
  }

  .cta__actions {
    flex-direction: column;
    align-items: center;
  }

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

/* --- Footer --- */
.footer {
  padding: 56px 0 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  background: var(--bg);
  position: relative;
  z-index: 4;
}

.footer__grid {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 48px;
  margin-bottom: 48px;
}

.footer__logo {
  font-family: var(--font-display);
  font-size: 1.6rem;
  letter-spacing: 4px;
  color: var(--accent);
  display: block;
  margin-bottom: 4px;
}

.footer__tagline {
  font-size: 0.75rem;
  color: var(--text-muted);
  display: block;
  margin-bottom: 20px;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 300;
}

.footer__social {
  display: flex;
  gap: 20px;
  margin-bottom: 16px;
}

.footer__social a {
  color: rgba(255, 255, 255, 0.2);
  transition: color 0.3s ease;
}

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

.footer__email {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 300;
  transition: color 0.3s ease;
}

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

.footer__nav {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer__nav a {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: rgba(255, 255, 255, 0.3);
  transition: color 0.3s ease;
}

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

.footer__legal {
  text-align: center;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.03);
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.2);
  letter-spacing: 1px;
}

@media (max-width: 768px) {
  .footer {
    padding: 40px 0 24px;
  }

  .footer__grid {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 32px;
    margin-bottom: 32px;
  }

  .footer__social {
    justify-content: center;
  }

  .footer__nav {
    flex-direction: row;
    gap: 0;
  }

  .footer__nav a {
    padding: 12px 16px;
  }
}

/* --- Tablet --- */
@media (min-width: 769px) and (max-width: 1024px) {
  .about__grid {
    grid-template-columns: 200px 1fr;
    gap: 36px;
  }

  .about__photo-placeholder {
    width: 200px;
    height: 200px;
    font-size: 3rem;
  }

  .programs__grid {
    gap: 16px;
  }

  .card {
    padding: 28px;
  }
}

/* --- Reduce grain on mobile for perf --- */
@media (max-width: 768px) {
  body::after {
    opacity: 0.02;
    background-size: 128px 128px;
  }
}

/* --- Small Mobile --- */
@media (max-width: 420px) {
  :root {
    --section-pad: 64px;
  }

  .container {
    padding: 0 20px;
  }

  .hero__content {
    padding: 100px 20px 64px;
  }

  .hero__title {
    font-size: 3rem;
    letter-spacing: 2px;
  }

  .hero__subtitle {
    letter-spacing: 1px;
  }

  .about__photo-placeholder {
    width: 160px;
    height: 160px;
    font-size: 2.5rem;
  }

  .card {
    padding: 24px;
  }

  .card__title {
    font-size: 1.4rem;
  }

  .card__amount {
    font-size: 1.6rem;
  }

  .stats__number {
    font-size: 2rem;
  }

  .cta__inner {
    padding: 40px 20px;
  }
}
