/* ========== SUBASH MINDX – Custom Styles ========== */
:root {
  --royal: #0B1D51;
  --gold: #D4AF37;
  --dark: #0F172A;
  --white: #FFFFFF;
  color-scheme: dark;
}

/* Layout guard rails */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  /* Smooth scroll */
  scroll-behavior: smooth;
  /* Keep anchor targets visible under fixed header */
  scroll-padding-top: 88px;
}

body {
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Media should never overflow containers */
img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

/* Make long strings (IDs/emails) wrap safely */
* {
  overflow-wrap: anywhere;
}

/* Form controls inherit typography */
input,
select,
textarea,
button {
  font: inherit;
}

/* Smooth scroll */
/* Touch: tap highlight (mobile-friendly) */
a,
button,
[role="button"],
.touch-manual {
  -webkit-tap-highlight-color: rgba(212, 175, 55, 0.25);
  tap-highlight-color: rgba(212, 175, 55, 0.25);
}

/* Safe area for notched / rounded devices */
.header-safe {
  padding-top: env(safe-area-inset-top, 0);
  padding-left: env(safe-area-inset-left, 0);
  padding-right: env(safe-area-inset-right, 0);
}

.scroll-progress-safe {
  top: env(safe-area-inset-top, 0);
}

.footer-safe {
  padding-bottom: env(safe-area-inset-bottom, 0);
  padding-left: env(safe-area-inset-left, 0);
  padding-right: env(safe-area-inset-right, 0);
}

/* Hero: stable height on mobile (avoids 100vh + address bar jump) */
.hero-mobile-height {
  min-height: 100vh;
  min-height: 100dvh;
}

/* Mobile menu backdrop – only visible when menu open */
.backdrop-only {
  pointer-events: none;
}

.backdrop-only.backdrop-active {
  pointer-events: auto;
}

/* Form inputs: 16px on mobile to prevent iOS zoom on focus */
.input-mobile {
  font-size: 16px;
}

/* Sticky header background on scroll */
header.scrolled {
  background: rgba(15, 23, 42, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

/* Glassmorphism cards */
.glass-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.glass-card:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(212, 175, 55, 0.2);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

/* Program cards – lift on hover */
.program-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(11, 29, 81, 0.3);
}

/* Gradient glow button */
.btn-glow {
  background: linear-gradient(135deg, var(--gold) 0%, #b8962e 100%);
  color: var(--dark);
  box-shadow: 0 4px 20px rgba(212, 175, 55, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-glow:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(212, 175, 55, 0.45);
}

/* Outline button */
.btn-outline:hover {
  background: var(--gold);
  color: var(--dark);
}

/* Gallery item – zoom on hover */
.gallery-item {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.4s ease;
}

.gallery-item:hover {
  transform: scale(1.03);
}

.gallery-item .gallery-img {
  transition: transform 0.5s ease;
}

.gallery-item:hover .gallery-img {
  transform: scale(1.1);
}

/* Counter cards (trainer + impact) */
.counter-card,
.impact-card {
  transition: transform 0.3s ease;
}

.counter-card:hover,
.impact-card:hover {
  transform: translateY(-4px);
}

/* Swiper testimonial pagination – gold dots */
.swiper-pagination-bullet {
  background: rgba(255, 255, 255, 0.4);
  opacity: 1;
}

.swiper-pagination-bullet-active {
  background: var(--gold);
  width: 24px;
  border-radius: 4px;
}

/* Form inputs – focus ring */
.input-field:focus {
  box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.3);
}

/* AOS reduce motion (optional) */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* Font application */
body {
  font-family: 'Inter', sans-serif;
}

h1, h2, h3, h4, .font-heading {
  font-family: 'Poppins', 'Space Grotesk', sans-serif;
}

/* Mobile: lock body scroll when menu open */
body.mobile-menu-open {
  overflow: hidden;
  touch-action: none;
}

@media (max-width: 767px) {
  /* Optional: lighter backdrop-filter on low-end devices */
  .mobile-menu-panel {
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
  }
}

/* ========== Tailwind replacement utilities ========== */
.container { width: 100%; max-width: 1280px; margin-left: auto; margin-right: auto; }
.hidden { display: none !important; }
.block { display: block; }
.inline-block { display: inline-block; }
.inline-flex { display: inline-flex; }
.flex { display: flex; }
.grid { display: grid; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.flex-shrink-0 { flex-shrink: 0; }
.shrink-0 { flex-shrink: 0; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.break-words { overflow-wrap: break-word; }
.italic { font-style: italic; }

.absolute { position: absolute; }
.relative { position: relative; }
.fixed { position: fixed; }
.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }
.top-0 { top: 0; }
.top-full { top: 100%; }
.right-0 { right: 0; }
.left-0 { left: 0; }
.left-1\/2 { left: 50%; }
.bottom-0 { bottom: 0; }
.bottom-8 { bottom: 2rem; }
.z-0 { z-index: 0; }
.z-10 { z-index: 10; }
.z-40 { z-index: 40; }
.z-50 { z-index: 50; }
.z-\[1\] { z-index: 1; }
.z-\[100\] { z-index: 100; }

.mx-auto { margin-left: auto; margin-right: auto; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-5 { margin-bottom: 1.25rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-10 { margin-bottom: 2.5rem; }
.mb-12 { margin-bottom: 3rem; }
.mb-16 { margin-bottom: 4rem; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.p-3 { padding: 0.75rem; }
.p-4 { padding: 1rem; }
.p-5 { padding: 1.25rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }
.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-5 { padding-left: 1.25rem; padding-right: 1.25rem; }
.px-8 { padding-left: 2rem; padding-right: 2rem; }
.py-1 { padding-top: 0.25rem; padding-bottom: 0.25rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-10 { padding-top: 2.5rem; padding-bottom: 2.5rem; }
.py-12 { padding-top: 3rem; padding-bottom: 3rem; }
.py-20 { padding-top: 5rem; padding-bottom: 5rem; }
.pt-4 { padding-top: 1rem; }
.pt-8 { padding-top: 2rem; }
.pr-1 { padding-right: 0.25rem; }

.w-6 { width: 1.5rem; }
.w-8 { width: 2rem; }
.w-12 { width: 3rem; }
.w-14 { width: 3.5rem; }
.w-48 { width: 12rem; }
.w-auto { width: auto; }
.w-full { width: 100%; }
.h-1 { height: 0.25rem; }
.h-6 { height: 1.5rem; }
.h-8 { height: 2rem; }
.h-10 { height: 2.5rem; }
.h-12 { height: 3rem; }
.h-14 { height: 3.5rem; }
.h-48 { height: 12rem; }
.h-full { height: 100%; }
.max-h-12 { max-height: 3rem; }
.max-h-14 { max-height: 3.5rem; }
.max-h-\[540px\] { max-height: 540px; }
.max-w-md { max-width: 28rem; }
.max-w-2xl { max-width: 42rem; }
.max-w-3xl { max-width: 48rem; }
.max-w-4xl { max-width: 56rem; }
.max-w-5xl { max-width: 64rem; }
.max-w-6xl { max-width: 72rem; }
.min-h-screen { min-height: 100vh; }
.min-h-\[40px\] { min-height: 40px; }
.min-h-\[44px\] { min-height: 44px; }
.min-w-\[44px\] { min-width: 44px; }

.rounded-xl { border-radius: 0.75rem; }
.rounded-2xl { border-radius: 1rem; }
.rounded-full { border-radius: 9999px; }
.border { border: 1px solid; border-color: rgba(255, 255, 255, 0.12); }
.border-2 { border-width: 2px; border-style: solid; }
.border-b { border-bottom: 1px solid; }
.border-t { border-top: 1px solid; }
.border-gold { border-color: var(--gold); }
.border-white\/10 { border-color: rgba(255, 255, 255, 0.1); }
.border-white\/15 { border-color: rgba(255, 255, 255, 0.15); }
.border-white\/20 { border-color: rgba(255, 255, 255, 0.2); }
.border-gold\/30 { border-color: rgba(212, 175, 55, 0.3); }
.border-gold\/40 { border-color: rgba(212, 175, 55, 0.4); }
.border-red-500\/30 { border-color: rgba(239, 68, 68, 0.3); }

.bg-dark { background: var(--dark); }
.bg-dark\/80 { background: rgba(15, 23, 42, 0.8); }
.bg-dark\/95 { background: rgba(15, 23, 42, 0.95); }
.bg-black\/40 { background: rgba(0, 0, 0, 0.4); }
.bg-royal\/20 { background: rgba(11, 29, 81, 0.2); }
.bg-royal\/40 { background: rgba(11, 29, 81, 0.4); }
.bg-royal\/50 { background: rgba(11, 29, 81, 0.5); }
.bg-gold { background: var(--gold); }
.bg-gold\/20 { background: rgba(212, 175, 55, 0.2); }
.bg-red-500\/10 { background: rgba(239, 68, 68, 0.1); }
.bg-white\/5 { background: rgba(255, 255, 255, 0.05); }
.bg-gradient-to-b { background-image: linear-gradient(to bottom, var(--tw-gradient-stops)); }
.bg-gradient-to-br { background-image: linear-gradient(to bottom right, var(--tw-gradient-stops)); }
.from-royal { --tw-gradient-from: var(--royal); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(11, 29, 81, 0)); }
.from-royal\/40 { --tw-gradient-from: rgba(11, 29, 81, 0.4); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(11, 29, 81, 0)); }
.via-dark { --tw-gradient-stops: var(--tw-gradient-from), var(--dark), var(--tw-gradient-to, rgba(15, 23, 42, 0)); }
.to-dark { --tw-gradient-to: var(--dark); }
.to-gold\/20 { --tw-gradient-to: rgba(212, 175, 55, 0.2); }

.text-white { color: #fff; }
.text-dark { color: var(--dark); }
.text-gold { color: var(--gold); }
.text-gold\/50 { color: rgba(212, 175, 55, 0.5); }
.text-white\/40 { color: rgba(255, 255, 255, 0.4); }
.text-white\/50 { color: rgba(255, 255, 255, 0.5); }
.text-white\/60 { color: rgba(255, 255, 255, 0.6); }
.text-white\/70 { color: rgba(255, 255, 255, 0.7); }
.text-white\/80 { color: rgba(255, 255, 255, 0.8); }
.text-white\/85 { color: rgba(255, 255, 255, 0.85); }
.text-white\/90 { color: rgba(255, 255, 255, 0.9); }
.text-green-300 { color: #86efac; }
.text-red-200 { color: #fecaca; }
.text-red-300 { color: #fca5a5; }
.text-xs { font-size: 0.75rem; line-height: 1rem; }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.text-base { font-size: 1rem; line-height: 1.5rem; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.text-2xl { font-size: 1.5rem; line-height: 2rem; }
.text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
.text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
.text-5xl { font-size: 3rem; line-height: 1; }
.text-6xl { font-size: 3.75rem; line-height: 1; }

.font-light { font-weight: 300; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.font-extrabold { font-weight: 800; }

.leading-relaxed { line-height: 1.625; }
.tracking-wide { letter-spacing: 0.025em; }
.antialiased { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

.overflow-hidden { overflow: hidden; }
.overflow-auto { overflow: auto; }
.overflow-x-hidden { overflow-x: hidden; }
.resize-none { resize: none; }
.object-contain { object-fit: contain; }
.object-cover { object-fit: cover; }

.transition { transition: all 150ms ease; }
.transition-all { transition-property: all; }
.duration-150 { transition-duration: 150ms; }
.duration-300 { transition-duration: 300ms; }
.animate-bounce { animation: tw-bounce 1s infinite; }
@keyframes tw-bounce {
  0%, 100% { transform: translateY(-25%); animation-timing-function: cubic-bezier(0.8, 0, 1, 1); }
  50% { transform: translateY(0); animation-timing-function: cubic-bezier(0, 0, 0.2, 1); }
}
.group:hover .group-hover\:scale-110 { transform: scale(1.1); }
.hover\:text-gold:hover { color: var(--gold); }
.hover\:text-dark:hover { color: var(--dark); }
.hover\:underline:hover { text-decoration: underline; }
.hover\:bg-gold:hover { background: var(--gold); }
.hover\:border-gold\/30:hover { border-color: rgba(212, 175, 55, 0.3); }
.hover\:border-gold\/60:hover { border-color: rgba(212, 175, 55, 0.6); }
.hover\:border-red-400:hover { border-color: #f87171; }
.hover\:text-red-200:hover { color: #fecaca; }
.focus\:border-gold:focus { border-color: var(--gold); }
.focus\:outline-none:focus { outline: none; }

.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }
.gap-12 { gap: 3rem; }
.space-y-2 > :not([hidden]) ~ :not([hidden]) { margin-top: 0.5rem; }
.space-y-3 > :not([hidden]) ~ :not([hidden]) { margin-top: 0.75rem; }
.space-y-4 > :not([hidden]) ~ :not([hidden]) { margin-top: 1rem; }
.space-y-5 > :not([hidden]) ~ :not([hidden]) { margin-top: 1.25rem; }
.space-y-6 > :not([hidden]) ~ :not([hidden]) { margin-top: 1.5rem; }
.col-span-2 { grid-column: span 2 / span 2; }
.col-span-3 { grid-column: span 3 / span 3; }

.aspect-\[4\/3\] { aspect-ratio: 4 / 3; }
.backdrop-blur-lg { backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.cursor-pointer { cursor: pointer; }
.pointer-events-none { pointer-events: none; }
.pointer-events-auto { pointer-events: auto; }

.-translate-x-1\/2 { transform: translateX(-50%); }

@media (min-width: 640px) {
  .sm\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sm\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sm\:col-span-2 { grid-column: span 2 / span 2; }
  .sm\:col-span-3 { grid-column: span 3 / span 3; }
  .sm\:text-2xl { font-size: 1.5rem; line-height: 2rem; }
  .sm\:text-6xl { font-size: 3.75rem; line-height: 1; }
  .sm\:p-8 { padding: 2rem; }
  .sm\:flex-row { flex-direction: row; }
}

@media (min-width: 768px) {
  .md\:hidden { display: none !important; }
  .md\:flex { display: flex; }
  .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* Ensure header menu visibility without Tailwind runtime */
@media (min-width: 768px) {
  #header nav > ul { display: flex !important; }
  #mobile-menu-btn { display: none !important; }
}

@media (max-width: 767px) {
  #mobile-menu-btn { display: flex !important; }
}

@media (min-width: 1024px) {
  .lg\:px-8 { padding-left: 2rem; padding-right: 2rem; }
  .lg\:py-16 { padding-top: 4rem; padding-bottom: 4rem; }
  .lg\:py-28 { padding-top: 7rem; padding-bottom: 7rem; }
  .lg\:text-5xl { font-size: 3rem; line-height: 1; }
  .lg\:text-7xl { font-size: 4.5rem; line-height: 1; }
  .lg\:text-left { text-align: left; }
  .lg\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lg\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .lg\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .lg\:flex-row { flex-direction: row; }
  .lg\:w-64 { width: 16rem; }
  .lg\:h-64 { height: 16rem; }
}
