/* ============================================
   Dragon Ryu Arts Academy — Stylesheet
   White + Teal + Elegant Purple
   ============================================ */

:root {
  --white: #ffffff;
  --off-white: #fafafa;
  --gray-50: #f8f9fb;
  --gray-100: #f1f3f6;
  --gray-200: #e4e8ee;
  --gray-400: #9aa3b2;
  --gray-600: #5c6578;
  --gray-800: #2d3340;
  --gray-900: #1a1f2e;

  --teal: #0d9488;
  --teal-light: #2bbbaa;
  --teal-dark: #0f766e;
  --teal-pale: #ecfdf5;
  --navy: #206374;
  --navy-deep: #062830;

  --gold: #f5c518;
  --gold-light: #ffd54f;
  --gold-dark: #c9a000;
  --red-brand: #c41e3a;

  --purple: #7c3aed;
  --purple-light: #a78bfa;
  --purple-dark: #5b21b6;
  --purple-pale: #f5f3ff;

  --whatsapp: #25d366;
  --whatsapp-dark: #128c7e;

  --gradient-hero: linear-gradient(135deg, var(--navy-deep) 0%, var(--navy) 35%, var(--teal-dark) 100%);
  --gradient-accent: linear-gradient(135deg, var(--teal) 0%, var(--gold) 100%);
  --gradient-gold: linear-gradient(135deg, var(--gold-dark) 0%, var(--gold-light) 100%);
  --shadow-sm: 0 2px 8px rgba(26, 31, 46, 0.06);
  --shadow-md: 0 8px 30px rgba(26, 31, 46, 0.1);
  --shadow-lg: 0 20px 60px rgba(26, 31, 46, 0.12);
  --shadow-3d: 0 25px 50px -12px rgba(0, 0, 0, 0.35);
  --radius: 12px;
  --radius-lg: 20px;
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-script: "Pacifico", cursive;
  --font-body: "Outfit", system-ui, sans-serif;
  --header-height: 80px;
  --transition: 0.3s ease;
  --perspective: 1200px;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--gray-800);
  background: var(--white);
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

.container {
  width: min(1140px, 92%);
  margin-inline: auto;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.75rem;
  border-radius: 50px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition);
}

.btn--primary {
  background: var(--gradient-accent);
  color: var(--white);
  box-shadow: 0 4px 20px rgba(124, 58, 237, 0.3);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(124, 58, 237, 0.4);
}

.btn--outline {
  background: transparent;
  color: var(--teal-dark);
  border-color: var(--teal);
}

.btn--outline:hover {
  background: var(--teal-pale);
}

.btn--full {
  width: 100%;
}

.btn--whatsapp {
  background: var(--whatsapp);
  color: var(--white);
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.35);
}

.btn--whatsapp:hover {
  background: var(--whatsapp-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(37, 211, 102, 0.45);
}

.btn--gold {
  background: var(--gradient-gold);
  color: var(--navy-deep);
  font-weight: 700;
  box-shadow: 0 4px 20px rgba(245, 197, 24, 0.4);
}

.btn--gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(245, 197, 24, 0.5);
}

/* ---- 3D Global ---- */
.card-3d {
  transform-style: preserve-3d;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  will-change: transform;
}

.scene-3d {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.35;
  animation: orbFloat 12s ease-in-out infinite;
}

.orb--1 {
  width: 400px;
  height: 400px;
  background: var(--gold);
  top: 10%;
  right: -5%;
  animation-delay: 0s;
}

.orb--2 {
  width: 300px;
  height: 300px;
  background: var(--teal-light);
  bottom: 20%;
  left: -5%;
  animation-delay: -4s;
}

.orb--3 {
  width: 250px;
  height: 250px;
  background: var(--red-brand);
  top: 50%;
  left: 40%;
  animation-delay: -8s;
  opacity: 0.2;
}

@keyframes orbFloat {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  33% { transform: translate3d(30px, -40px, 0) scale(1.05); }
  66% { transform: translate3d(-20px, 30px, 0) scale(0.95); }
}

/* ---- Logo ---- */
.nav__logo-img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  border-radius: 50%;
  box-shadow: 0 4px 15px rgba(245, 197, 24, 0.3);
  transition: var(--transition);
}

.nav__logo-img--footer {
  width: 48px;
  height: 48px;
}

.nav__logo:hover .nav__logo-img {
  transform: scale(1.08) rotate(-3deg);
}

/* ---- Section shared ---- */
.section {
  padding: 5.5rem 0;
}

.section__eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 0.75rem;
}

.section__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 600;
  color: var(--gray-900);
  line-height: 1.2;
  margin-bottom: 1rem;
}

.section__desc {
  color: var(--gray-600);
  max-width: 560px;
  margin-inline: auto;
}

.section__header {
  text-align: center;
  margin-bottom: 3.5rem;
}

/* ---- Header / Nav ---- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gray-100);
  transition: var(--transition);
}

.header.scrolled {
  box-shadow: var(--shadow-sm);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.nav__logo-text {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.2;
  color: var(--gray-900);
}

.nav__logo-text small {
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray-400);
}

.nav__menu {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav__link {
  padding: 0.5rem 0.85rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--gray-600);
  border-radius: 8px;
  transition: var(--transition);
}

.nav__link:hover,
.nav__link.active {
  color: var(--teal-dark);
  background: var(--teal-pale);
}

.nav__link--faculty {
  background: rgba(124, 58, 237, 0.08);
  color: var(--purple-dark) !important;
  font-weight: 700;
}

.nav__link--faculty:hover {
  background: rgba(124, 58, 237, 0.14);
}

.nav__link--cta {
  background: var(--gradient-accent);
  color: var(--white) !important;
  margin-left: 0.5rem;
}

.nav__link--cta:hover {
  opacity: 0.9;
  background: var(--gradient-accent);
}

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--gray-800);
  border-radius: 2px;
  transition: var(--transition);
}

/* ---- Hero ---- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--header-height);
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background: var(--gradient-hero);
  z-index: -2;
}

.hero__bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 80%, rgba(245, 197, 24, 0.12) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(20, 184, 166, 0.15) 0%, transparent 50%);
}

.hero__bg::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 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='%23f5c518' fill-opacity='0.06'%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");
  opacity: 0.5;
}

.hero__3d-stage {
  position: absolute;
  inset: 0;
  perspective: var(--perspective);
  z-index: 0;
  pointer-events: none;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: center;
  position: relative;
  z-index: 1;
  padding: 4rem 0 5rem;
}

.hero__content {
  padding: 0;
}

.hero__eyebrow {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.25rem;
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.75rem, 6vw, 4.5rem);
  font-weight: 700;
  line-height: 1.05;
  color: var(--white);
  margin-bottom: 1.25rem;
}

.hero__title span {
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__subtitle {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.82);
  max-width: 520px;
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.hero__banner {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.hero__banner-tag {
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
}

.hero__banner-highlight {
  background: var(--gradient-gold);
  color: var(--navy-deep);
  padding: 0.5rem 1.25rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  box-shadow: 0 4px 20px rgba(245, 197, 24, 0.4);
}

.hero__logo-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
}

.logo-3d {
  position: relative;
  perspective: 800px;
  width: min(380px, 90vw);
  aspect-ratio: 1;
}

.logo-3d__inner {
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  animation: logoSpin 20s linear infinite;
  transition: transform 0.1s ease-out;
}

.logo-3d__img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 50%;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.4));
  transform: translateZ(40px);
}

.logo-3d__glow {
  position: absolute;
  inset: -20%;
  background: radial-gradient(circle, rgba(245, 197, 24, 0.35) 0%, transparent 70%);
  border-radius: 50%;
  animation: glowPulse 3s ease-in-out infinite;
  z-index: -1;
}

@keyframes logoSpin {
  0% { transform: rotateY(0deg) rotateX(5deg); }
  100% { transform: rotateY(360deg) rotateX(5deg); }
}

@keyframes glowPulse {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.1); }
}

.float-cube {
  position: absolute;
  transform-style: preserve-3d;
  animation: cubeFloat 8s ease-in-out infinite;
}

.float-cube--1 {
  width: 60px;
  height: 60px;
  top: 15%;
  right: 10%;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  border-radius: 12px;
  box-shadow: var(--shadow-3d);
  transform: rotateX(45deg) rotateZ(45deg);
  animation-delay: 0s;
}

.float-cube--2 {
  width: 40px;
  height: 40px;
  bottom: 25%;
  left: 8%;
  background: linear-gradient(135deg, var(--teal-light), var(--teal-dark));
  border-radius: 8px;
  box-shadow: var(--shadow-3d);
  transform: rotateX(-30deg) rotateZ(30deg);
  animation-delay: -3s;
}

.float-ring {
  position: absolute;
  width: 120px;
  height: 120px;
  top: 20%;
  left: 5%;
  border: 3px solid rgba(245, 197, 24, 0.4);
  border-radius: 50%;
  animation: ringRotate 15s linear infinite;
}

.float-star {
  position: absolute;
  color: var(--gold);
  font-size: 1.5rem;
  opacity: 0.7;
  animation: starTwinkle 2s ease-in-out infinite;
}

.float-star--1 { top: 30%; right: 25%; animation-delay: 0s; }
.float-star--2 { bottom: 35%; right: 15%; animation-delay: -1s; }

@keyframes cubeFloat {
  0%, 100% { transform: rotateX(45deg) rotateZ(45deg) translateY(0); }
  50% { transform: rotateX(45deg) rotateZ(45deg) translateY(-25px); }
}

@keyframes ringRotate {
  from { transform: rotateZ(0deg) rotateX(70deg); }
  to { transform: rotateZ(360deg) rotateX(70deg); }
}

@keyframes starTwinkle {
  0%, 100% { opacity: 0.4; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.3); }
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 3.5rem;
}

.hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--gray-200);
}

.hero__stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 0.25rem;
}

.hero__stat span {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
  font-weight: 500;
}

.hero__stats {
  border-top-color: rgba(255, 255, 255, 0.15);
}

/* ---- About ---- */
.about {
  background: var(--off-white);
}

.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.about__content {
  min-width: 0;
}

.yoga-record__panel {
  background: linear-gradient(135deg, var(--navy-deep) 0%, var(--navy) 50%, #0f5a6b 100%);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-lg);
}

.yoga-record__panel .section__eyebrow {
  color: var(--gold);
}

.yoga-record__panel .section__title {
  color: var(--white);
}

.yoga-record__panel .section__desc {
  color: rgba(255, 255, 255, 0.82);
  text-align: left;
  margin-inline: 0;
  margin-bottom: 1.5rem;
}

.yoga-record__panel .about__features {
  margin-top: 1.5rem;
}

.yoga-record__panel .about__feature-icon {
  background: rgba(255, 255, 255, 0.1);
  color: var(--gold);
}

.yoga-record__panel .about__features strong {
  color: var(--white);
}

.yoga-record__panel .about__features p {
  color: rgba(255, 255, 255, 0.78);
}

.about__badge {
  position: absolute;
  top: 24px;
  right: 0;
  max-width: 280px;
  background: var(--white);
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius);
  text-align: center;
  box-shadow: var(--shadow-md);
}

.about__badge span {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gray-400);
}

.about__badge strong {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--teal-dark);
  font-weight: 600;
  line-height: 1.4;
  font-style: italic;
}

.about__text {
  color: var(--gray-600);
  margin-bottom: 1rem;
  line-height: 1.75;
}

.about__features {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.about__features li {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.about__feature-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--purple-pale);
  color: var(--purple);
  border-radius: 8px;
  font-size: 0.85rem;
}

.about__features strong {
  display: block;
  color: var(--gray-900);
  margin-bottom: 0.15rem;
}

.about__features p {
  font-size: 0.9rem;
  color: var(--gray-400);
}

/* ---- Courses ---- */
.courses__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.course-card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-lg);
  padding: 2rem 1.75rem;
  transition: var(--transition);
}

.course-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--teal-light);
}

.course-card--featured {
  border-color: var(--purple-light);
  background: linear-gradient(180deg, var(--purple-pale) 0%, var(--white) 100%);
}

.course-card__label {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: var(--gradient-accent);
  color: var(--white);
  padding: 0.3rem 0.75rem;
  border-radius: 50px;
}

.course-card__icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.course-card h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--gray-900);
  margin-bottom: 0.75rem;
}

.course-card p {
  font-size: 0.9rem;
  color: var(--gray-600);
  margin-bottom: 1.25rem;
  line-height: 1.6;
}

.course-card__meta {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 1.25rem;
}

.course-card__meta li {
  font-size: 0.8rem;
  color: var(--gray-400);
  padding-left: 1rem;
  position: relative;
}

.course-card__meta li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--teal);
}

.course-card__tag {
  display: inline-block;
  font-weight: 600;
  font-size: 0.75rem;
  color: var(--teal-dark);
  background: var(--teal-pale);
  padding: 0.35rem 0.85rem;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* ---- Summer Camp ---- */
.summer-camp {
  background: linear-gradient(135deg, var(--navy-deep) 0%, var(--navy) 50%, #0f5a6b 100%);
  position: relative;
  overflow: hidden;
}

.summer-camp::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 70% 30%, rgba(245, 197, 24, 0.15) 0%, transparent 50%);
}

.section__eyebrow--gold {
  color: var(--gold);
}

.section__title--light {
  color: var(--white);
}

.summer-camp__grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.summer-camp__desc {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 1rem;
  line-height: 1.7;
}

.summer-camp__slogan {
  font-family: var(--font-script);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  color: var(--gold);
  margin-bottom: 1.5rem;
}

.summer-camp__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.summer-camp__tags span {
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  padding: 0.4rem 0.85rem;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 500;
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: var(--transition);
}

.summer-camp__tags span:hover {
  background: var(--gold);
  color: var(--navy-deep);
  transform: translateY(-2px);
}

.summer-camp__3d {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.phone-3d {
  perspective: 600px;
  animation: phoneBob 4s ease-in-out infinite;
}

.phone-3d__body {
  width: 140px;
  height: 100px;
  background: linear-gradient(145deg, #ff6b9d, #e84393);
  border-radius: 20px;
  position: relative;
  transform: rotateX(15deg) rotateY(-20deg);
  box-shadow:
    0 20px 40px rgba(0, 0, 0, 0.4),
    inset 0 2px 4px rgba(255, 255, 255, 0.3);
}

.phone-3d__dial {
  position: absolute;
  width: 70px;
  height: 70px;
  background: radial-gradient(circle, #fff 30%, #ddd 100%);
  border-radius: 50%;
  top: 15px;
  left: 50%;
  transform: translateX(-50%);
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.2);
}

.phone-3d__handset {
  position: absolute;
  width: 50px;
  height: 80px;
  background: linear-gradient(145deg, #ff6b9d, #c0396b);
  border-radius: 25px 25px 10px 10px;
  top: -30px;
  right: -20px;
  transform: rotate(25deg);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

@keyframes phoneBob {
  0%, 100% { transform: translateY(0) rotateY(0deg); }
  50% { transform: translateY(-15px) rotateY(10deg); }
}

.summer-camp__pillars {
  display: flex;
  gap: 1rem;
  perspective: 500px;
}

.pillar-3d {
  padding: 1rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transform: rotateX(10deg);
  box-shadow: var(--shadow-3d);
  transition: var(--transition);
}

.pillar-3d:hover {
  transform: rotateX(0deg) translateY(-8px);
}

.pillar-3d--learn {
  background: linear-gradient(135deg, #ff6b35, #f7931e);
  color: var(--white);
}

.pillar-3d--create {
  background: linear-gradient(135deg, #6c5ce7, #a29bfe);
  color: var(--white);
}

.pillar-3d--success {
  background: linear-gradient(135deg, #00b894, #55efc4);
  color: var(--white);
}

/* ---- Gallery ---- */
.gallery__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 200px;
  gap: 1rem;
}

.gallery__item {
  border: none;
  padding: 0;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  position: relative;
  background: none;
}

.gallery__item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(124, 58, 237, 0);
  transition: var(--transition);
}

.gallery__item:hover::after {
  background: rgba(124, 58, 237, 0.15);
}

.gallery__item--wide {
  grid-column: span 2;
}

.gallery__item--tall {
  grid-row: span 2;
}

.gallery__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.gallery__item:hover .gallery__img {
  transform: scale(1.05);
}

/* ---- Admissions ---- */
.admissions {
  background: var(--off-white);
}

.admissions__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: start;
}

.admissions__text {
  color: var(--gray-600);
  margin-bottom: 2rem;
  line-height: 1.7;
}

.admissions__steps {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.admissions__step {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.admissions__step span {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-accent);
  color: var(--white);
  font-weight: 700;
  font-size: 0.85rem;
  border-radius: 10px;
}

.admissions__step strong {
  display: block;
  color: var(--gray-900);
  margin-bottom: 0.15rem;
}

.admissions__step p {
  font-size: 0.85rem;
  color: var(--gray-400);
}

.admissions__fees {
  background: var(--white);
  padding: 1.5rem;
  border-radius: var(--radius);
  border-left: 4px solid var(--teal);
}

.admissions__fees h4 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: var(--gray-900);
}

.admissions__fees p {
  font-size: 0.9rem;
  color: var(--gray-600);
  margin-bottom: 0.35rem;
}

.admissions__form {
  background: var(--white);
  padding: 2rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.admissions__form h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  color: var(--gray-900);
}

.form__group {
  margin-bottom: 1rem;
}

.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form__group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--gray-800);
  margin-bottom: 0.4rem;
}

.form__group input,
.form__group select,
.form__group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--gray-800);
  background: var(--gray-50);
  transition: var(--transition);
}

.form__group input:focus,
.form__group select:focus,
.form__group textarea:focus {
  outline: none;
  border-color: var(--teal);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.12);
}

.form__note {
  font-size: 0.8rem;
  color: var(--gray-400);
  text-align: center;
  margin-top: 0.75rem;
}

/* ---- Contact ---- */
.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3rem;
  align-items: start;
}

.contact__text {
  color: var(--gray-600);
  margin-bottom: 2rem;
  line-height: 1.7;
}

.contact__list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.contact__list li {
  display: flex;
  gap: 1rem;
}

.contact__icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--teal-pale);
  border-radius: 10px;
  font-size: 1.1rem;
}

.contact__list strong {
  display: block;
  color: var(--gray-900);
  margin-bottom: 0.25rem;
}

.contact__list p {
  font-size: 0.9rem;
  color: var(--gray-600);
  line-height: 1.6;
}

.contact__list a {
  color: var(--teal-dark);
  transition: var(--transition);
}

.contact__list a:hover {
  color: var(--purple);
}

.contact__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.admissions__promo {
  background: linear-gradient(135deg, var(--navy) 0%, var(--teal-dark) 100%);
  color: var(--white);
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-md);
}

.admissions__promo h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin-bottom: 0.5rem;
}

.admissions__promo-highlight {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.admissions__promo p:last-child {
  font-size: 0.9rem;
  opacity: 0.85;
}

.admissions__contact {
  background: var(--white);
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius);
  border-left: 4px solid var(--gold);
  margin-top: 1rem;
}

.admissions__contact h4 {
  font-family: var(--font-display);
  margin-bottom: 0.5rem;
  color: var(--gray-900);
}

.admissions__contact a {
  color: var(--teal-dark);
  font-weight: 500;
}

.admissions__contact a:hover {
  color: var(--gold-dark);
}

/* ---- WhatsApp Float ---- */
.whatsapp-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 1500;
  width: 60px;
  height: 60px;
  background: var(--whatsapp);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.5);
  transition: var(--transition);
  animation: whatsappBounce 2s ease-in-out infinite;
}

.whatsapp-float:hover {
  background: var(--whatsapp-dark);
  transform: scale(1.1);
  animation: none;
}

.whatsapp-float__pulse {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid var(--whatsapp);
  animation: whatsappPulse 2s ease-out infinite;
}

@keyframes whatsappBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

@keyframes whatsappPulse {
  0% { transform: scale(1); opacity: 1; }
  100% { transform: scale(1.5); opacity: 0; }
}

.contact__map {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  min-height: 400px;
}

.contact__map iframe {
  width: 100%;
  height: 100%;
  min-height: 400px;
  border: 0;
}

/* ---- Footer ---- */
.footer {
  background: var(--gray-900);
  color: var(--gray-400);
  padding-top: 4rem;
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 2rem;
  padding-bottom: 3rem;
}

.footer__brand p {
  margin-top: 1rem;
  font-size: 0.9rem;
  line-height: 1.6;
  max-width: 280px;
}

.footer__brand .nav__logo-text {
  color: var(--white);
}

.footer h4 {
  color: var(--white);
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.footer__links ul {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer__branch {
  min-width: 0;
}

.footer__links a {
  font-size: 0.85rem;
  transition: var(--transition);
}

.footer__links a:hover {
  color: var(--teal-light);
}

.footer__contact p {
  font-size: 0.85rem;
  margin-bottom: 0.35rem;
}

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1.25rem 0;
  text-align: center;
  font-size: 0.8rem;
}

/* ---- Lightbox ---- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(26, 31, 46, 0.92);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.lightbox[hidden] {
  display: none;
}

.lightbox__close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: none;
  border: none;
  color: var(--white);
  font-size: 2.5rem;
  cursor: pointer;
  line-height: 1;
}

.lightbox__img {
  max-width: 90%;
  max-height: 75vh;
  border-radius: var(--radius);
  object-fit: contain;
}

.lightbox__caption {
  color: var(--white);
  margin-top: 1rem;
  font-size: 0.95rem;
  text-align: center;
}

/* ---- Modal ---- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(26, 31, 46, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal[hidden] {
  display: none;
}

.modal__content {
  background: var(--white);
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  text-align: center;
  max-width: 420px;
  width: 100%;
  box-shadow: var(--shadow-lg);
}

.modal__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  margin: 0 auto 1rem;
  background: var(--teal-pale);
  color: var(--teal-dark);
  font-size: 1.75rem;
  font-weight: 700;
  border-radius: 50%;
}

.modal__content h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--gray-900);
  margin-bottom: 0.75rem;
}

.modal__content p {
  color: var(--gray-600);
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
  .hero__grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero__subtitle,
  .hero__banner,
  .hero__actions {
    margin-inline: auto;
    justify-content: center;
  }

  .hero__stats {
    justify-content: center;
  }

  .hero__logo-wrap {
    order: -1;
  }

  .logo-3d {
    width: min(280px, 70vw);
  }

  .courses__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .summer-camp__grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .summer-camp__tags {
    justify-content: center;
  }

  .footer__grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .nav__toggle {
    display: flex;
  }

  .nav__menu {
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 100%;
    flex-direction: column;
    background: var(--white);
    padding: 1.5rem;
    gap: 0.25rem;
    border-bottom: 1px solid var(--gray-100);
    box-shadow: var(--shadow-md);
    transform: translateY(-120%);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
  }

  .nav__menu.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav__link {
    width: 100%;
    text-align: center;
    padding: 0.75rem;
  }

  .nav__link--cta {
    margin-left: 0;
    margin-top: 0.5rem;
  }

  .about__grid,
  .admissions__grid,
  .contact__grid {
    grid-template-columns: 1fr;
  }

  .about__image--main {
    width: 100%;
    height: 300px;
  }

  .about__image--accent {
    display: none;
  }

  .courses__grid {
    grid-template-columns: 1fr;
  }

  .gallery__grid {
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: 160px;
  }

  .gallery__item--wide,
  .gallery__item--tall {
    grid-column: span 1;
    grid-row: span 1;
  }

  .form__row {
    grid-template-columns: 1fr;
  }

  .footer__grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer__brand p {
    margin-inline: auto;
  }

  .hero__stats {
    gap: 1.5rem;
  }

  .whatsapp-float {
    bottom: 20px;
    right: 20px;
    width: 54px;
    height: 54px;
  }

  .contact__actions {
    flex-direction: column;
  }

  .contact__actions .btn {
    width: 100%;
  }
}
