/* =====================================================
   Samarpana School of Fine Arts — Stylesheet
   Palette: Maroon, Deep Red, Gold, Beige, White
   ===================================================== */

:root {
  --maroon: #6b0f1a;
  --maroon-dark: #4a0a12;
  --deep-red: #9c1c2e;
  --gold: #c9a227;
  --gold-light: #e6c866;
  --beige: #f5ecdd;
  --beige-dark: #ecdfc4;
  --white: #ffffff;
  --text-dark: #2b1810;
  --text-muted: #6f5b52;

  --font-heading: 'Playfair Display', serif;
  --font-accent: 'Cormorant Garamond', serif;
  --font-body: 'Poppins', sans-serif;

  --container-width: 1180px;
  --radius: 10px;
  --transition: all 0.35s ease;
  --shadow-soft: 0 10px 30px rgba(107, 15, 26, 0.12);
  --shadow-strong: 0 20px 45px rgba(107, 15, 26, 0.25);
}

/* ===== RESET ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background: var(--white);
  line-height: 1.65;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

a { text-decoration: none; color: inherit; }

ul { list-style: none; }

h1, h2, h3, h4 { font-family: var(--font-heading); line-height: 1.25; color: var(--maroon); }

.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

section { position: relative; padding: 100px 0; }

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--gold);
  color: var(--maroon-dark);
  padding: 10px 18px;
  z-index: 2000;
  font-weight: 600;
}
.skip-link:focus { left: 10px; top: 10px; }

/* ===== SECTION HEADINGS ===== */
.section-eyebrow {
  color: var(--gold);
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-size: 0.85rem;
  margin-bottom: 8px;
}
.section-title {
  font-size: 2.4rem;
  margin-bottom: 16px;
  position: relative;
}
.section-subtitle {
  color: var(--text-muted);
  max-width: 680px;
  font-size: 1.02rem;
}
.section-heading.center {
  text-align: center;
  margin-bottom: 56px;
}
.section-heading.center .section-title::after {
  content: '';
  display: block;
  width: 70px;
  height: 3px;
  background: var(--gold);
  margin: 14px auto 0;
  border-radius: 3px;
}
.section-heading.center .section-subtitle { margin: 0 auto; }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 30px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: var(--maroon-dark);
}
.btn-primary:hover {
  background: linear-gradient(135deg, var(--maroon), var(--deep-red));
  color: var(--white);
  transform: translateY(-3px);
  box-shadow: var(--shadow-strong);
}
.btn-outline-light {
  border-color: var(--white);
  color: var(--white);
  background: transparent;
}
.btn-outline-light:hover {
  background: var(--white);
  color: var(--maroon);
  transform: translateY(-3px);
}
.btn-large { padding: 16px 36px; font-size: 1rem; }
.btn-small { padding: 8px 18px; font-size: 0.85rem; }
.btn-full { width: 100%; }
.btn-call {
  background: var(--maroon);
  color: var(--white);
}
.btn-call:hover { background: var(--deep-red); transform: translateY(-3px); }
.btn-whatsapp { background: #25d366; color: var(--white); }
.btn-whatsapp:hover { background: #1eb856; transform: translateY(-3px); }

/* ===== HEADER ===== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 16px 0;
  transition: var(--transition);
  background: transparent;
}
.site-header.scrolled {
  background: rgba(107, 15, 26, 0.96);
  padding: 10px 0;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}
.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
}
.logo-mark {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--gold);
}
.logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.logo-text strong { font-family: var(--font-heading); font-size: 1.25rem; }
.logo-text em { font-style: italic; font-size: 0.72rem; color: var(--gold-light); letter-spacing: 1px; }

.primary-nav ul {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-link {
  color: var(--white);
  padding: 10px 16px;
  font-weight: 500;
  font-size: 0.95rem;
  border-radius: 30px;
  transition: var(--transition);
}
.nav-link:hover, .nav-link.active { background: rgba(255,255,255,0.12); color: var(--gold-light); }
.primary-nav .btn { margin-left: 6px; }
.primary-nav .btn.active { color: var(--maroon-dark); }

.lang-switch-item { display: flex; align-items: center; margin-left: 4px; }
.lang-toggle {
  display: flex;
  align-items: center;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 30px;
  padding: 3px;
  gap: 2px;
}
.lang-option {
  background: transparent;
  border: none;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 20px;
  cursor: pointer;
  transition: var(--transition);
}
.lang-option:hover { color: var(--gold-light); }
.lang-option.active { background: var(--gold); color: var(--maroon-dark); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 1100;
}
.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}
.nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== TEMPLE PATTERN STRIP ===== */
.temple-pattern-strip {
  height: 14px;
  width: 100%;
  background-image:
    linear-gradient(45deg, var(--gold) 25%, transparent 25%),
    linear-gradient(-45deg, var(--gold) 25%, transparent 25%);
  background-size: 20px 20px;
  background-color: var(--maroon-dark);
}

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  color: var(--white);
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.05);
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(74,10,18,0.85) 0%, rgba(107,15,26,0.88) 55%, rgba(20,4,6,0.95) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 780px;
  padding-top: 60px;
}
.hero .eyebrow {
  color: var(--gold-light);
  letter-spacing: 3px;
  text-transform: uppercase;
  font-size: 0.85rem;
  margin-bottom: 14px;
}
.hero h1 {
  color: var(--white);
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  margin-bottom: 10px;
}
.hero h1 span { color: var(--gold-light); }
.tagline {
  font-family: var(--font-accent);
  font-style: italic;
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  color: var(--gold-light);
  margin-bottom: 22px;
}
.hero-intro {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.9);
  margin-bottom: 34px;
  max-width: 640px;
}
.hero-cta { display: flex; gap: 18px; flex-wrap: wrap; }

.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--white);
  font-size: 1.3rem;
  z-index: 2;
  animation: bounce 2s infinite;
}
@keyframes bounce {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, 10px); }
}

/* ===== HIGHLIGHTS ===== */
.highlights { background: var(--beige); padding: 80px 0; }
.highlights-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
}
.highlight-card {
  background: var(--white);
  padding: 34px 20px;
  border-radius: var(--radius);
  text-align: center;
  box-shadow: var(--shadow-soft);
  transition: var(--transition);
  border-bottom: 3px solid transparent;
}
.highlight-card:hover {
  transform: translateY(-8px);
  border-bottom-color: var(--gold);
}
.highlight-card i {
  font-size: 2rem;
  color: var(--maroon);
  margin-bottom: 16px;
}
.highlight-card h3 { font-size: 1.05rem; margin-bottom: 8px; }
.highlight-card p { font-size: 0.88rem; color: var(--text-muted); }

/* ===== ABOUT ===== */
.about { background: var(--white); }
.about-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 60px;
  align-items: center;
  margin-bottom: 90px;
}
.about-image { position: relative; }
.about-image img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-strong);
  position: relative;
  z-index: 2;
}
.about-image-frame {
  position: absolute;
  top: 20px; left: 20px;
  right: -20px; bottom: -20px;
  border: 3px solid var(--gold);
  border-radius: var(--radius);
  z-index: 1;
}
.teacher-name { margin-top: 10px; font-size: 1.5rem; }
.teacher-title {
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 8px;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
}
.teacher-meta {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 18px;
}
.teacher-meta i { color: var(--gold); margin-right: 4px; }
.bio-text {
  color: var(--text-muted);
  margin-bottom: 16px;
}
.bio-text:last-of-type { margin-bottom: 0; }

/* ===== TIMELINE (Teacher Achievements) ===== */
.timeline {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  padding-left: 40px;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 19px; top: 6px; bottom: 6px;
  width: 2px;
  background: var(--beige-dark);
}
.timeline-item {
  position: relative;
  display: flex;
  gap: 24px;
  margin-bottom: 36px;
}
.timeline-icon {
  position: absolute;
  left: -40px;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--maroon);
  color: var(--gold-light);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
  box-shadow: 0 0 0 4px var(--beige);
}
.timeline-content {
  background: var(--beige);
  padding: 20px 24px;
  border-radius: var(--radius);
  flex: 1;
}
.timeline-content h4 { margin-bottom: 6px; font-size: 1.1rem; }
.timeline-content p { color: var(--text-muted); font-size: 0.92rem; }

/* ===== CLASSES ===== */
.classes { background: var(--beige); }
.classes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
.class-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 40px 30px;
  text-align: center;
  box-shadow: var(--shadow-soft);
  transition: var(--transition);
  position: relative;
}
.class-card:hover { transform: translateY(-10px); box-shadow: var(--shadow-strong); }
.class-card.featured { border: 2px solid var(--gold); transform: scale(1.03); }
.class-card .ribbon {
  position: absolute;
  top: 18px; right: -34px;
  background: var(--gold);
  color: var(--maroon-dark);
  padding: 4px 40px;
  font-size: 0.75rem;
  font-weight: 700;
  transform: rotate(45deg);
}
.class-card-icon {
  width: 70px; height: 70px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: var(--beige);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem;
  color: var(--maroon);
}
.class-card h3 { margin-bottom: 12px; }
.class-card p { color: var(--text-muted); margin-bottom: 20px; font-size: 0.92rem; }
.class-card ul { text-align: left; display: inline-block; }
.class-card ul li {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 10px;
  font-size: 0.9rem;
  color: var(--text-dark);
}
.corporate-note {
  margin-top: 30px;
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--white);
  border: 1px solid var(--gold);
  border-radius: var(--radius);
  padding: 22px 30px;
  box-shadow: var(--shadow-soft);
}
.corporate-note i {
  font-size: 1.8rem;
  color: var(--maroon);
  flex-shrink: 0;
}
.corporate-note p { margin: 0; color: var(--text-dark); font-size: 0.95rem; }
.corporate-note a { color: var(--maroon); font-weight: 600; text-decoration: underline; }
.class-card ul li i { color: var(--gold); width: 16px; }

/* ===== WHY CHOOSE US ===== */
.why-us { background: var(--white); }
.why-us-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.why-card {
  padding: 32px 26px;
  border-radius: var(--radius);
  background: var(--beige);
  transition: var(--transition);
}
.why-card:hover { background: var(--maroon); color: var(--white); transform: translateY(-6px); }
.why-card:hover h3, .why-card:hover i { color: var(--gold-light); }
.why-card:hover p { color: rgba(255,255,255,0.85); }
.why-card i { font-size: 1.8rem; color: var(--maroon); margin-bottom: 16px; }
.why-card h3 { font-size: 1.1rem; margin-bottom: 10px; }
.why-card p { color: var(--text-muted); font-size: 0.92rem; }

/* ===== GALLERY ===== */
.gallery { background: var(--beige); }
.gallery-grid {
  columns: 4 260px;
  column-gap: 20px;
}
.gallery-item {
  position: relative;
  display: block;
  width: 100%;
  margin-bottom: 20px;
  break-inside: avoid;
  border: none;
  padding: 0;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  box-shadow: var(--shadow-soft);
}
.gallery-item img { width: 100%; transition: transform 0.5s ease; }
.gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(107,15,26,0.55);
  display: flex; align-items: center; justify-content: center;
  color: var(--gold-light);
  font-size: 1.5rem;
  opacity: 0;
  transition: var(--transition);
}
.gallery-item:hover img { transform: scale(1.1); }
.gallery-item:hover .gallery-overlay { opacity: 1; }

/* ===== STUDENT ACHIEVEMENTS ===== */
.student-achievements { background: var(--white); }
.achievements-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
}
.achievement-card {
  text-align: center;
  padding: 34px 22px;
  border-radius: var(--radius);
  border: 1px solid var(--beige-dark);
  transition: var(--transition);
}
.achievement-card:hover { box-shadow: var(--shadow-soft); border-color: var(--gold); transform: translateY(-6px); }
.achievement-card i { font-size: 1.8rem; color: var(--gold); margin-bottom: 14px; }
.achievement-card h3 { font-size: 1.05rem; margin-bottom: 8px; }
.achievement-card p { font-size: 0.88rem; color: var(--text-muted); }

/* ===== TESTIMONIALS ===== */
.testimonials { background: var(--maroon); color: var(--white); }
.testimonials .section-title, .testimonials .section-eyebrow { color: var(--white); }
.testimonials .section-eyebrow { color: var(--gold-light); }
.testimonials .section-title::after { background: var(--gold-light); }

.testimonial-slider { max-width: 760px; margin: 0 auto; }
.testimonial-track {
  display: flex;
  overflow: hidden;
}
.testimonial-card {
  min-width: 100%;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius);
  padding: 40px;
  text-align: center;
  transition: var(--transition);
}
.testimonial-card i { color: var(--gold-light); font-size: 1.6rem; margin-bottom: 16px; }
.testimonial-card p { font-family: var(--font-accent); font-size: 1.25rem; font-style: italic; margin-bottom: 18px; }
.testimonial-card cite { color: var(--gold-light); font-weight: 600; font-style: normal; }

.slider-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 26px;
}
.slider-btn {
  background: rgba(255,255,255,0.12);
  border: none;
  color: var(--white);
  width: 42px; height: 42px;
  border-radius: 50%;
  cursor: pointer;
  transition: var(--transition);
}
.slider-btn:hover { background: var(--gold); color: var(--maroon-dark); }
.slider-dots { display: flex; gap: 8px; }
.slider-dots span {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.35);
  cursor: pointer;
  transition: var(--transition);
}
.slider-dots span.active { background: var(--gold-light); width: 26px; border-radius: 6px; }

/* ===== ADMISSIONS ===== */
.admissions {
  background: linear-gradient(135deg, var(--maroon-dark), var(--maroon));
  color: var(--white);
  text-align: center;
  padding: 0;
}
.admissions-content { padding: 90px 24px; }
.admissions h2 { color: var(--white); font-size: 2.2rem; margin-bottom: 16px; }
.admissions p { color: rgba(255,255,255,0.85); max-width: 560px; margin: 0 auto 30px; }

/* ===== CONTACT ===== */
.contact { background: var(--beige); }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1.1fr;
  gap: 30px;
  align-items: stretch;
}
.contact-info, .contact-form {
  background: var(--white);
  border-radius: var(--radius);
  padding: 34px;
  box-shadow: var(--shadow-soft);
}
.contact-info h3 { margin-bottom: 18px; }
.contact-address {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--text-muted);
  margin-bottom: 12px;
  font-size: 0.95rem;
}
.contact-address i { color: var(--maroon); margin-top: 3px; }
.contact-email {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  color: var(--text-muted);
  margin-bottom: 26px;
  font-size: 0.95rem;
}
.contact-email i { color: var(--maroon); margin-top: 3px; }
.contact-email a { color: var(--text-muted); transition: var(--transition); overflow-wrap: anywhere; }
.contact-email a:hover { color: var(--maroon); }
.contact-actions { display: flex; flex-direction: column; gap: 14px; margin-bottom: 28px; }
.contact-hours { margin-bottom: 24px; }
.contact-hours h4 { font-size: 1rem; margin-bottom: 6px; display: flex; align-items: center; gap: 8px; }
.contact-hours p { color: var(--text-muted); font-size: 0.9rem; }
.contact-social { display: flex; gap: 12px; }
.contact-social a {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--beige);
  color: var(--maroon);
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition);
}
.contact-social a:hover { background: var(--maroon); color: var(--white); }

.contact-map { border-radius: var(--radius); overflow: hidden; min-height: 320px; box-shadow: var(--shadow-soft); }
.contact-map iframe { width: 100%; height: 100%; min-height: 320px; }

.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 6px; color: var(--text-dark); }
.form-group input, .form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--beige-dark);
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: 0.92rem;
  background: var(--beige);
  transition: var(--transition);
}
.form-group input:focus, .form-group textarea:focus {
  outline: none;
  border-color: var(--gold);
  background: var(--white);
}
.form-note { font-size: 0.78rem; color: var(--text-muted); margin-top: 14px; }
.form-note a { color: var(--maroon); font-weight: 600; }
.form-status { margin-top: 10px; font-size: 0.88rem; font-weight: 600; color: var(--maroon); }

/* ===== FOOTER ===== */
.site-footer { background: var(--maroon-dark); color: rgba(255,255,255,0.85); padding-top: 0; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 40px;
  padding: 60px 24px 40px;
}
.footer-col h3, .footer-col h4 { color: var(--gold-light); margin-bottom: 16px; }
.footer-emblem {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--gold);
  margin-bottom: 14px;
}
.footer-col p { font-size: 0.9rem; margin-bottom: 10px; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { font-size: 0.9rem; transition: var(--transition); }
.footer-col ul li a:hover { color: var(--gold-light); }
.footer-col .contact-social a { background: rgba(255,255,255,0.1); color: var(--white); }
.footer-col .contact-social a:hover { background: var(--gold); color: var(--maroon-dark); }
.footer-bottom {
  text-align: center;
  padding: 20px;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 0.85rem;
}
.footer-credit { margin-top: 6px; }
.footer-credit a { color: var(--gold-light); transition: var(--transition); }
.footer-credit a:hover { color: var(--gold); }

/* ===== LIGHTBOX ===== */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(20,4,6,0.94);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}
.lightbox.active { opacity: 1; visibility: visible; }
.lightbox img { max-width: 85vw; max-height: 78vh; border-radius: 8px; box-shadow: var(--shadow-strong); }
.lightbox-caption {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--gold-light);
  font-family: var(--font-accent);
  font-size: 1.1rem;
}
.lightbox-close, .lightbox-nav {
  position: absolute;
  background: rgba(255,255,255,0.1);
  border: none;
  color: var(--white);
  width: 46px; height: 46px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.1rem;
  transition: var(--transition);
}
.lightbox-close:hover, .lightbox-nav:hover { background: var(--gold); color: var(--maroon-dark); }
.lightbox-close { top: 30px; right: 30px; }
.lightbox-prev { left: 30px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 30px; top: 50%; transform: translateY(-50%); }

/* ===== BACK TO TOP ===== */
.back-to-top {
  position: fixed;
  bottom: 26px;
  right: 26px;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--maroon);
  color: var(--gold-light);
  border: none;
  font-size: 1.1rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: var(--transition);
  z-index: 900;
  box-shadow: var(--shadow-strong);
}
.back-to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--gold); color: var(--maroon-dark); }

/* ===== SCROLL REVEAL ANIMATION ===== */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
  .highlights-grid { grid-template-columns: repeat(3, 1fr); }
  .classes-grid, .why-us-grid { grid-template-columns: repeat(2, 1fr); }
  .achievements-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; }
  .about-image { max-width: 420px; margin: 0 auto; }
  .contact-grid { grid-template-columns: 1fr 1fr; }
  .contact-form { grid-column: span 2; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  section { padding: 70px 0; }
  .primary-nav {
    position: fixed;
    top: 0; right: 0;
    height: 100vh;
    height: 100dvh;
    width: min(300px, 80vw);
    background: var(--maroon-dark);
    transform: translateX(100%);
    transition: var(--transition);
    padding: 100px 30px 30px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .primary-nav.active { transform: translateX(0); }
  .primary-nav ul { flex-direction: column; align-items: flex-start; gap: 8px; padding-bottom: 20px; }
  .primary-nav .btn { margin-left: 0; margin-top: 10px; }
  .lang-switch-item { margin-left: 0; margin-top: 14px; }
  .nav-toggle { display: flex; }
  .highlights-grid { grid-template-columns: repeat(2, 1fr); }
  .classes-grid, .why-us-grid, .achievements-grid { grid-template-columns: 1fr; }
  .class-card.featured { transform: none; }
  .contact-grid { grid-template-columns: 1fr; }
  .contact-form { grid-column: span 1; }
  .footer-grid { grid-template-columns: 1fr; text-align: center; }
  .footer-col .contact-social { justify-content: center; }
  .hero-cta { justify-content: center; }
  .hero-content { text-align: center; margin: 0 auto; }
  .hero-intro { margin-left: auto; margin-right: auto; }
  .gallery-grid { columns: 2 200px; }
  .corporate-note { flex-direction: column; text-align: center; }
}

@media (max-width: 768px) and (max-height: 700px) {
  .primary-nav { padding-top: 70px; }
}

@media (max-width: 480px) {
  .highlights-grid { grid-template-columns: 1fr; }
  .section-title { font-size: 1.9rem; }
  .hero h1 { font-size: 2.1rem; }
  .btn-large { padding: 14px 26px; font-size: 0.9rem; }
  .gallery-grid { columns: 1 100%; }
}
