/* ===================== Design tokens ===================== */
:root {
  --gold: #d4af37;
  --gold-light: #f3d98b;
  --gold-dark: #a8842a;
  --black: #0b0906;
  --black-soft: #14100b;
  --cream: #faf6ec;
  --cream-dim: #e9e1cc;
  --maroon: #6d1b2b;
  --font-display: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-body: "Poppins", "Segoe UI", Arial, sans-serif;
  --max-width: 1180px;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  --transition: 0.3s ease;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--cream);
  color: #2a2318;
  line-height: 1.6;
  overflow-x: hidden;
}

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

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  margin: 0 0 0.5em;
  color: var(--black);
}

.section-label {
  display: inline-block;
  font-size: 0.8rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold-dark);
  font-weight: 600;
  margin-bottom: 0.8rem;
}

.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  margin-bottom: 0.4em;
}

.section-intro {
  max-width: 680px;
  margin: 0 auto 3rem;
  text-align: center;
  color: #4a4030;
  font-size: 1.05rem;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

section { padding: 5.5rem 0; position: relative; }

.section-alt { background: var(--black); color: var(--cream); }
.section-alt h2, .section-alt h3, .section-alt h4 { color: var(--gold-light); }
.section-alt .section-intro { color: #cfc6ae; }

/* ===================== Buttons ===================== */
.btn {
  display: inline-block;
  padding: 0.9rem 2.1rem;
  border-radius: 999px;
  font-weight: 600;
  letter-spacing: 0.03em;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), color var(--transition);
  font-family: var(--font-body);
  font-size: 0.95rem;
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold-light), var(--gold), var(--gold-dark));
  color: var(--black);
  box-shadow: 0 8px 20px rgba(212, 175, 55, 0.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(212, 175, 55, 0.5); }

.btn-outline {
  border-color: var(--gold);
  color: var(--gold-light);
  background: transparent;
}
.btn-outline:hover { background: var(--gold); color: var(--black); }

.btn-outline-dark {
  border-color: var(--maroon);
  color: var(--maroon);
  background: transparent;
}
.btn-outline-dark:hover { background: var(--maroon); color: var(--cream); }

/* ===================== Navbar ===================== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(11, 9, 6, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(212, 175, 55, 0.25);
  transition: padding var(--transition);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0.7rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.nav-brand img {
  height: 46px;
  width: 46px;
  border-radius: 50%;
  object-fit: cover;
}

.nav-brand-text {
  font-family: var(--font-display);
  color: var(--gold-light);
  line-height: 1.1;
}
.nav-brand-text .line1 { font-size: 1.15rem; font-weight: 700; display: block; }
.nav-brand-text .line2 { font-size: 0.68rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold-dark); display: block; }

.nav-links {
  display: flex;
  gap: 1.6rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--cream-dim);
  letter-spacing: 0.02em;
  padding: 0.4rem 0.1rem;
  border-bottom: 2px solid transparent;
  transition: color var(--transition), border-color var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--gold-light);
  border-color: var(--gold);
}

.nav-cta { display: none; }
@media (min-width: 900px) { .nav-cta { display: inline-block; } }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span { width: 26px; height: 2px; background: var(--gold-light); border-radius: 2px; }

@media (max-width: 899px) {
  .nav-links {
    position: fixed;
    top: 74px;
    left: 0; right: 0;
    background: rgba(11, 9, 6, 0.98);
    flex-direction: column;
    align-items: center;
    padding: 1.5rem 0;
    gap: 1.1rem;
    transform: translateY(-130%);
    transition: transform var(--transition);
    border-bottom: 1px solid rgba(212, 175, 55, 0.25);
  }
  .nav-links.open { transform: translateY(0); }
  .nav-toggle { display: flex; }
}

/* ===================== Hero ===================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--cream);
  background: radial-gradient(ellipse at center, #241a10 0%, var(--black) 70%);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="200" height="200"><circle cx="20" cy="30" r="1.2" fill="%23d4af37" opacity="0.5"/><circle cx="120" cy="80" r="1" fill="%23d4af37" opacity="0.35"/><circle cx="170" cy="20" r="1.5" fill="%23d4af37" opacity="0.4"/><circle cx="70" cy="150" r="1" fill="%23d4af37" opacity="0.3"/><circle cx="150" cy="170" r="1.3" fill="%23d4af37" opacity="0.45"/></svg>');
  opacity: 0.6;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-media video, .hero-media img {
  width: 100%; height: 100%; object-fit: cover;
  opacity: 0.32;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 0 1.5rem;
}

.hero-logo {
  width: 130px;
  height: 130px;
  margin: 0 auto 1.5rem;
  border-radius: 50%;
  box-shadow: 0 0 40px rgba(212, 175, 55, 0.45);
}

.hero-content .section-label { color: var(--gold-light); }

.hero-content h1 {
  color: var(--cream);
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  line-height: 1.1;
  margin-bottom: 0.5rem;
}
.hero-content h1 span { color: var(--gold); }

.hero-content p {
  font-size: 1.15rem;
  color: var(--cream-dim);
  max-width: 620px;
  margin: 1.2rem auto 2.2rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.scroll-cue {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: var(--gold-light);
  font-size: 1.6rem;
  animation: bounce 2s infinite;
  opacity: 0.8;
}
@keyframes bounce {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, 10px); }
}

/* ===================== About ===================== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}
@media (min-width: 860px) {
  .about-grid { grid-template-columns: 0.9fr 1.1fr; }
}

.about-photo {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 4/5;
  background: linear-gradient(135deg, var(--maroon), #3a0f18);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-light);
  font-family: var(--font-display);
  font-size: 1.1rem;
  text-align: center;
  padding: 2rem;
  border: 3px solid var(--gold);
}


.about-text .divider {
  width: 60px;
  height: 3px;
  background: var(--gold);
  margin: 1rem 0 1.5rem;
}

.about-highlights {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}
.about-highlights div {
  text-align: center;
  background: var(--cream-dim);
  border-radius: 10px;
  padding: 1.1rem 0.5rem;
  border: 1px solid rgba(168, 132, 42, 0.25);
}
.about-highlights .num {
  font-family: var(--font-display);
  font-size: 1.7rem;
  color: var(--maroon);
  font-weight: 700;
}
.about-highlights .lbl {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #6b5e42;
}

/* ===================== Classes ===================== */
.classes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.8rem;
}

.class-card {
  background: var(--black-soft);
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: var(--radius);
  padding: 2rem 1.7rem;
  transition: transform var(--transition), border-color var(--transition);
}
.class-card:hover { transform: translateY(-6px); border-color: var(--gold); }

.class-icon {
  font-size: 2.1rem;
  margin-bottom: 1rem;
}

.class-card h3 { color: var(--gold-light); font-size: 1.3rem; }
.class-card p { color: #cfc6ae; font-size: 0.95rem; margin-bottom: 1rem; }

.class-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.class-tags span {
  font-size: 0.72rem;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  border: 1px solid var(--gold-dark);
  color: var(--gold-light);
  letter-spacing: 0.03em;
}

.age-groups {
  margin-top: 3rem;
  text-align: center;
}
.age-groups h3 { color: var(--gold-light); margin-bottom: 1.2rem; font-size: 1.2rem; }
.age-chip-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.8rem;
}
.age-chip {
  background: rgba(212, 175, 55, 0.1);
  border: 1px solid var(--gold);
  color: var(--gold-light);
  padding: 0.6rem 1.3rem;
  border-radius: 999px;
  font-size: 0.88rem;
}

/* ===================== Schedule & Fees ===================== */
.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid rgba(168, 132, 42, 0.25);
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
  background: #fff;
}

thead tr { background: var(--maroon); color: var(--cream); }
th, td {
  padding: 1rem 1.2rem;
  text-align: left;
  font-size: 0.92rem;
  border-bottom: 1px solid #eee2c8;
}
tbody tr:nth-child(even) { background: #fbf6e8; }
tbody tr:hover { background: #f5ead0; }

.fees-note {
  margin-top: 1.5rem;
  text-align: center;
  color: #6b5e42;
  font-size: 0.92rem;
}

.fees-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
}
.fee-card {
  background: #fff;
  border: 1px solid rgba(168, 132, 42, 0.25);
  border-radius: var(--radius);
  padding: 1.8rem;
  text-align: center;
  box-shadow: 0 6px 16px rgba(0,0,0,0.05);
}
.fee-card .price {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--maroon);
  margin: 0.5rem 0;
}
.fee-card .price span { font-size: 0.9rem; color: #8a7a55; }

/* ===================== Events & Highlights ===================== */
.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.8rem;
}
.event-card {
  background: var(--cream-dim);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
  display: flex;
  flex-direction: column;
}
.event-date-badge {
  background: var(--maroon);
  color: var(--cream);
  padding: 1.5rem;
  text-align: center;
  font-family: var(--font-display);
}
.event-date-badge .day { font-size: 2rem; font-weight: 700; line-height: 1; }
.event-date-badge .month { font-size: 0.85rem; letter-spacing: 0.15em; text-transform: uppercase; }
.event-body { padding: 1.5rem; }
.event-body h4 { font-size: 1.15rem; margin-bottom: 0.4rem; color: #800000; }
.event-body p { font-size: 0.92rem; color: #3b1f1f; margin-bottom: 1rem; }
.event-meta { font-size: 0.8rem; color: var(--gold-dark); font-weight: 600; margin-bottom: 0.8rem; }

/* ===================== Gallery ===================== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
@media (min-width: 640px) { .gallery-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 900px) { .gallery-grid { grid-template-columns: repeat(4, 1fr); } }

.gallery-item {
  aspect-ratio: 1;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  background: linear-gradient(135deg, #2a2015, #1a130c);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-dark);
  font-size: 1.8rem;
  border: 1px solid rgba(212, 175, 55, 0.25);
  cursor: pointer;
  transition: transform var(--transition);
}
.gallery-item:hover { transform: scale(1.03); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; }

.gallery-cta { text-align: center; margin-top: 2.5rem; }

/* ===================== Testimonials ===================== */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.8rem;
}
.testimonial-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: 0 6px 18px rgba(0,0,0,0.06);
  border-top: 3px solid var(--gold);
}
.testimonial-card .stars { color: var(--gold-dark); margin-bottom: 0.8rem; letter-spacing: 0.15em; }
.testimonial-card p.quote { font-style: italic; color: #4a4030; margin-bottom: 1.2rem; }
.testimonial-author { display: flex; align-items: center; gap: 0.8rem; }
.testimonial-avatar {
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--maroon); color: var(--cream);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 700;
}
.testimonial-author .name { font-weight: 600; font-size: 0.92rem; }
.testimonial-author .role { font-size: 0.78rem; color: #8a7a55; }

/* ===================== Registration ===================== */
.reg-wrap {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}
@media (min-width: 900px) {
  .reg-wrap { grid-template-columns: 1fr 1.2fr; align-items: start; }
}

.reg-info h3 { color: var(--gold-light); margin-top: 1.5rem; }
.reg-info ul { padding-left: 1.2rem; color: #cfc6ae; }
.reg-info li { margin-bottom: 0.5rem; }

.form-card {
  background: var(--cream);
  color: #2a2318;
  border-radius: var(--radius);
  padding: 2.2rem;
  box-shadow: var(--shadow);
}

.form-row { display: grid; grid-template-columns: 1fr; gap: 1.2rem; margin-bottom: 1.2rem; }
@media (min-width: 560px) { .form-row.two { grid-template-columns: 1fr 1fr; } }

label { font-size: 0.85rem; font-weight: 600; margin-bottom: 0.4rem; display: block; color: #4a4030; }

input, select, textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border: 1px solid #d8cba3;
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 0.92rem;
  background: #fff;
  color: #2a2318;
  transition: border-color var(--transition), box-shadow var(--transition);
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.2);
}

textarea { resize: vertical; min-height: 100px; }

.form-note { font-size: 0.8rem; color: #8a7a55; margin-top: 1rem; }

.form-success {
  display: none;
  background: #eaf7ee;
  border: 1px solid #a8d8b6;
  color: #2c6b3f;
  padding: 1rem 1.2rem;
  border-radius: 8px;
  margin-bottom: 1.2rem;
  font-size: 0.9rem;
}
.form-success.show { display: block; }

/* ===================== Contact ===================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}
@media (min-width: 860px) { .contact-grid { grid-template-columns: 1fr 1fr; } }

.contact-list { list-style: none; padding: 0; margin: 0; }
.contact-list li {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}
.contact-icon {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: rgba(212, 175, 55, 0.12);
  border: 1px solid var(--gold);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  font-size: 1.1rem;
}
.contact-list h4 { margin-bottom: 0.2rem; font-size: 0.95rem; color: var(--gold-light); }
.contact-list p, .contact-list a { color: #cfc6ae; font-size: 0.92rem; }

.social-row { display: flex; gap: 0.8rem; margin-top: 1.5rem; }
.social-row a {
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 1px solid var(--gold);
  display: flex; align-items: center; justify-content: center;
  color: var(--gold-light);
  transition: background var(--transition), color var(--transition);
}
.social-row a:hover { background: var(--gold); color: var(--black); }

.map-embed {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(212, 175, 55, 0.25);
  min-height: 320px;
}
.map-embed iframe { width: 100%; height: 100%; min-height: 320px; border: 0; }

/* ===================== Footer ===================== */
footer {
  background: var(--black);
  color: #8a7a55;
  text-align: center;
  padding: 2rem 1.5rem;
  font-size: 0.85rem;
  border-top: 1px solid rgba(212, 175, 55, 0.15);
}
footer .footer-brand { color: var(--gold-light); font-family: var(--font-display); font-size: 1rem; margin-bottom: 0.5rem; }

/* ===================== Back to top ===================== */
.back-to-top {
  position: fixed;
  bottom: 1.8rem;
  right: 1.8rem;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--black);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity var(--transition), transform var(--transition);
  z-index: 900;
  cursor: pointer;
  border: none;
}
.back-to-top.show { opacity: 1; pointer-events: auto; transform: translateY(0); }

/* ===================== Reveal animation ===================== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.in-view { opacity: 1; transform: translateY(0); }
