:root {
  --black:       #0d0b0d;
  --deep:        #131013;
  --charcoal:    #201820;
  --pink:        #fa0072;
  --pink-light:  #ff4d9e;
  --pink-pale:   #ffd6ea;
  --white:       #fdf8fb;
  --grey:        #9a8f95;
  --nav-height:  80px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--deep);
  color: var(--white);
  font-family: 'Barlow', sans-serif;
  font-weight: 300;
  line-height: 1.6;
  overflow-x: hidden;
}

/* ── NAV ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
  transition: background 0.4s ease;
}
nav.scrolled {
  background: rgba(13,11,13,0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(248,0,112,0.2);
}

.nav-logo {
  text-decoration: none;
  display: flex;
  align-items: center;
  z-index: 101;
}
.nav-logo img {
  height: 48px;
  width: auto;
  display: block;
  max-width: 260px;
  object-fit: contain;
}

.nav-links { display: flex; gap: 40px; list-style: none; }
.nav-links a {
  font-family: 'Barlow', sans-serif;
  font-size: 0.75rem; font-weight: 500;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--white); text-decoration: none;
  opacity: 0.8; transition: opacity 0.2s, color 0.2s;
}
.nav-links a:hover, .nav-links a.active { opacity: 1; color: var(--pink); }

.nav-cta {
  font-family: 'Barlow', sans-serif;
  font-size: 0.7rem; font-weight: 500;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--white); background: var(--pink);
  padding: 10px 24px; text-decoration: none;
  transition: background 0.2s;
}
.nav-cta:hover { background: var(--pink-light); }

.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  cursor: pointer; background: none; border: none; padding: 4px;
}
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--white); transition: all 0.3s; }

/* ── HERO ── */
.hero {
  position: relative;
  min-height: max(100vh, 600px);
  display: flex; align-items: flex-end;
  margin-top: 0;
  padding: 0;
}
.hero-bg {
  position: absolute; inset: 0;
  background-image: url('../images/classeshero.jpg?v=2');
  background-size: cover;
  background-position: center 20%;
}
.hero-bg::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(13,11,13,0.45) 0%,
    rgba(13,11,13,0.1)  35%,
    rgba(13,11,13,0.7)  72%,
    rgba(13,11,13,1)   100%
  );
}
.hero-bg::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to right, rgba(13,11,13,0.55) 0%, rgba(13,11,13,0.05) 55%);
}

.hero-content {
  position: relative; z-index: 2;
  padding: calc(var(--nav-height) + 90px) 48px 125px;
  max-width: 820px;
  width: 100%;
  display: flex; flex-direction: column; gap: 28px;
}
.hero-eyebrow {
  font-size: 0.7rem; font-weight: 500;
  letter-spacing: 0.35em; text-transform: uppercase;
  color: var(--pink); margin-bottom: 0;
  opacity: 0; animation: fadeUp 0.8s 0.3s forwards;
}
.hero-title {
  font-family: 'above-the-beyond', serif;
  font-size: clamp(2.8rem, 5.5vw, 5rem);
  font-weight: 400; line-height: 1.6;
  color: var(--white); margin: 0;
  text-rendering: optimizeLegibility;
}
.hero-title em { font-style: normal; color: var(--pink-light); }
.hero-sub {
  margin-top: 0; font-size: 0.9rem;
  letter-spacing: 0.08em; color: var(--grey);
  opacity: 0; animation: fadeUp 0.8s 0.7s forwards;
}
.hero-actions {
  margin-top: 0; display: flex; gap: 20px; align-items: center;
  opacity: 0; animation: fadeUp 0.8s 0.9s forwards;
}

/* ── BUTTONS ── */
.btn-primary {
  font-family: 'Barlow', sans-serif;
  font-size: 0.72rem; font-weight: 500;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--white); background: var(--pink);
  border: 1px solid transparent;
  padding: 14px 36px; text-decoration: none; text-align: center;
  min-width: 210px;
  transition: background 0.2s, transform 0.2s; display: inline-block;
}
.btn-primary:hover { background: var(--pink-light); transform: translateY(-1px); }

.btn-ghost {
  font-family: 'Barlow', sans-serif;
  font-size: 0.72rem; font-weight: 500;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--white); border: 1px solid rgba(255,255,255,0.35);
  padding: 14px 36px; text-decoration: none; text-align: center;
  min-width: 210px;
  transition: border-color 0.2s, color 0.2s; display: inline-block;
}
.btn-ghost:hover { border-color: var(--pink); color: var(--pink); }

/* ── SECTIONS ── */
section { padding: 100px 48px; }

.section-label {
  font-size: 0.68rem; font-weight: 500;
  letter-spacing: 0.35em; text-transform: uppercase;
  color: var(--pink); margin-bottom: 16px;
}
.page-hero-content .section-label { margin-bottom: 46px; }
.section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 300; line-height: 1.1; color: var(--white); margin-bottom: 24px;
}
.page-hero-content .section-title {
  font-family: 'above-the-beyond', serif;
  font-weight: 400; line-height: 1.3;
}
.section-title em { font-style: italic; color: var(--pink-light); }
.page-hero-content .section-title em { font-style: normal; }
.section-body { font-size: 0.95rem; line-height: 1.8; color: var(--grey); max-width: 560px; }

/* ── CLASS CARDS ── */
.styles-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1px; background: rgba(248,0,112,0.12); margin-top: 64px;
}
.style-card {
  background: var(--deep); padding: 48px 36px;
  position: relative; overflow: hidden; transition: background 0.3s;
}
.style-card::before {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0;
  height: 2px; background: var(--pink); transform: scaleX(0); transition: transform 0.3s;
}
.style-card:hover { background: rgba(248,0,112,0.05); }
.style-card:hover::before { transform: scaleX(1); }
.style-num {
  font-family: 'Bebas Neue', sans-serif; font-size: 3.5rem;
  color: rgba(248,0,112,0.13); line-height: 1; margin-bottom: 16px; transition: color 0.3s;
}
.style-card:hover .style-num { color: rgba(248,0,112,0.3); }
.style-name {
  font-family: 'Cormorant Garamond', serif; font-size: 1.9rem;
  font-weight: 400; color: var(--white); margin-bottom: 12px;
}
.style-desc { font-size: 0.95rem; line-height: 1.7; color: var(--grey); }

/* ── SCHEDULE ── */
.schedule-filters { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 40px; }
.filter-btn {
  font-family: 'Barlow', sans-serif; font-size: 0.7rem; font-weight: 500;
  letter-spacing: 0.15em; text-transform: uppercase;
  padding: 8px 20px; border: 1px solid rgba(255,255,255,0.15);
  background: transparent; color: var(--grey); cursor: pointer; transition: all 0.2s;
}
.filter-btn:hover, .filter-btn.active { border-color: var(--pink); color: var(--pink); background: rgba(248,0,112,0.06); }

.schedule-table { width: 100%; border-collapse: collapse; }
.schedule-table th {
  font-size: 0.65rem; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--pink); text-align: left; padding: 14px 20px; border-bottom: 1px solid rgba(248,0,112,0.2);
}
.schedule-table td {
  padding: 16px 20px; font-size: 0.88rem; color: var(--white);
  border-bottom: 1px solid rgba(255,255,255,0.05); vertical-align: middle;
}
.schedule-table tr:hover td { background: rgba(248,0,112,0.04); }
.day-col {
  font-weight: 500; color: var(--grey); font-size: 0.75rem;
  letter-spacing: 0.1em; text-transform: uppercase; white-space: nowrap;
}
.class-name { font-family: 'Cormorant Garamond', serif; font-size: 1.05rem; }
.age-badge {
  display: inline-block; font-size: 0.65rem; font-weight: 500;
  letter-spacing: 0.1em; text-transform: uppercase; padding: 3px 10px;
  background: rgba(248,0,112,0.1); border: 1px solid rgba(248,0,112,0.25); color: var(--pink-light);
}

/* ── GALLERY ── */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: 460px 460px 460px;
  gap: 8px;
  margin-top: 40px;
}
.gallery-item { overflow: hidden; background: var(--charcoal); position: relative; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: transform 0.6s, opacity 0.3s; opacity: 0.85; display: block; }
.gallery-item:hover img { transform: scale(1.04); opacity: 1; }
.gallery-item:nth-child(1) { grid-column: span 4; grid-row: 1; }
.gallery-item:nth-child(2) { grid-column: span 8; grid-row: 1; }
.gallery-item:nth-child(2) img { object-position: center center; }
.gallery-item:nth-child(3) { grid-column: span 4; grid-row: 2; }
.gallery-item:nth-child(4) { grid-column: span 4; grid-row: 2; }
.gallery-item:nth-child(4) img { object-position: center center; }
.gallery-item:nth-child(5) { grid-column: span 4; grid-row: 2; }
.gallery-item:nth-child(6) { grid-column: span 4; grid-row: 3; }
.gallery-item:nth-child(6) img { object-position: center 40%; }
.gallery-item:nth-child(7) { grid-column: span 4; grid-row: 3; }
.gallery-item:nth-child(7) img { object-position: center center; }
.gallery-item:nth-child(8) { grid-column: span 4; grid-row: 3; }
.gallery-item:nth-child(8) img { object-position: center center; }

/* ── FORMS ── */
.enroll-section { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; }
.form-group { margin-bottom: 24px; }
.form-group label {
  display: block; font-size: 0.68rem; font-weight: 500;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--pink); margin-bottom: 8px;
}
.form-group input, .form-group select, .form-group textarea {
  width: 100%; background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1); padding: 14px 16px;
  font-family: 'Barlow', sans-serif; font-size: 0.9rem; color: var(--white);
  outline: none; transition: border-color 0.2s; -webkit-appearance: none; border-radius: 0;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--pink); }
.form-group select option { background: var(--deep); }
.form-group textarea { resize: vertical; min-height: 120px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

/* Contact info */
.contact-item { display: flex; gap: 20px; margin-bottom: 28px; align-items: flex-start; }
.contact-icon { font-size: 1.2rem; color: var(--pink); flex-shrink: 0; margin-top: 2px; }
.contact-label { font-size: 0.65rem; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; color: var(--pink); margin-bottom: 4px; }
.contact-value { font-size: 0.95rem; color: var(--white); }
.contact-value a { color: var(--white); text-decoration: none; transition: color 0.2s; }
.contact-value a:hover { color: var(--pink); }

/* ── FOOTER ── */
footer {
  background: var(--black); border-top: 1px solid rgba(248,0,112,0.15);
  padding: 60px 48px 40px;
  display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 40px;
}
.footer-logo img { height: 36px; width: auto; margin-bottom: 14px; display: block; }
.footer-brand { display: flex; flex-direction: column; align-items: flex-start; width: fit-content; }
.footer-tagline { font-family: 'Cormorant Garamond', serif; font-style: italic; font-size: 0.85rem; color: var(--grey); line-height: 1.7; width: 100%; text-align: center; }

.footer-links h4, .footer-contact h4 {
  font-size: 0.65rem; font-weight: 500; letter-spacing: 0.25em; text-transform: uppercase;
  color: var(--pink); margin-bottom: 20px;
}
.footer-links ul { list-style: none; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { font-size: 0.85rem; color: var(--grey); text-decoration: none; transition: color 0.2s; }
.footer-links a:hover { color: var(--white); }
.footer-contact p { font-size: 0.85rem; color: var(--grey); margin-bottom: 8px; line-height: 1.6; }
.footer-contact a { color: var(--grey); text-decoration: none; transition: color 0.2s; }
.footer-contact a:hover { color: var(--pink); }

.footer-bottom {
  grid-column: 1/-1; border-top: 1px solid rgba(255,255,255,0.05);
  margin-top: 20px; padding-top: 24px;
  display: flex; justify-content: space-between; align-items: center;
}
.footer-copy { font-size: 0.72rem; color: rgba(154,143,149,0.5); }

/* ── PAGE HERO ── */
.page-hero {
  min-height: 380px;
  display: flex; align-items: flex-end;
  padding: calc(var(--nav-height) + 40px) 48px 56px;
  position: relative; overflow: hidden;
  background: var(--charcoal);
}
.classes-hero {
  background-image: url('../images/hero.jpg');
  background-size: cover;
  background-position: center top;
  min-height: 600px;
}
.schedule-hero {
  background-image: url('../images/schedulehero.jpg');
  background-size: cover;
  background-position: center 20%;
  min-height: 600px;
}
.gallery-hero {
  background-image: url('../images/galleryhero.jpg');
  background-size: cover;
  background-position: center top;
  min-height: 600px;
}
.contact-hero {
  background-image: url('../images/contacthero.jpg');
  background-size: cover;
  background-position: center top;
  min-height: 600px;
}
.page-hero::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 20% 80%, rgba(248,0,112,0.12) 0%, transparent 60%);
}
.page-hero::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(13,11,13,0.3), rgba(13,11,13,0.75));
}
.classes-hero::after,
.schedule-hero::after,
.contact-hero::after,
.gallery-hero::after {
  background: linear-gradient(to bottom, rgba(13,11,13,0.2) 0%, rgba(13,11,13,0.5) 60%, rgba(13,11,13,1) 100%);
}

.page-hero-content { position: relative; z-index: 2; }

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes slideUp {
  from { transform: translateY(24px); }
  to   { transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.fade-up { opacity: 0; transform: translateY(30px); transition: opacity 0.7s ease, transform 0.7s ease; }
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* ── ABOUT SECTION ── */
.about-grid {
  max-width: 960px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1px 1fr;
  gap: 64px; align-items: center;
}
.about-divider {
  background: linear-gradient(to bottom, transparent, var(--pink), transparent);
  height: 150px; margin: 0 auto;
}
.stats-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 32px; text-align: center;
}
.stat-num {
  font-family: 'Bebas Neue', sans-serif; font-size: 3.5rem;
  color: var(--pink); line-height: 1;
}
.stat-infinity {
  font-family: 'Playfair Display', Georgia, serif;
}
.stat-label {
  font-size: 0.72rem; letter-spacing: 0.15em;
  text-transform: uppercase; color: var(--grey); margin-top: 6px;
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  nav { padding: 0 24px; }
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: flex; }
  nav.mobile-open .nav-links {
    display: flex; flex-direction: column; position: fixed;
    top: var(--nav-height); left: 0; right: 0;
    background: rgba(13,11,13,0.98); padding: 40px 24px; gap: 28px;
    border-top: 1px solid rgba(248,0,112,0.15);
  }
  nav.mobile-open .nav-cta { display: block; margin-top: 8px; text-align: center; }
  section { padding: 70px 24px; }
  .hero-content { padding: calc(var(--nav-height) + 24px) 24px 60px; }
  .page-hero { padding: calc(var(--nav-height) + 24px) 24px 40px; }
  .styles-grid { grid-template-columns: 1fr 1fr; }
  .enroll-section { grid-template-columns: 1fr; gap: 48px; }
  .form-row { grid-template-columns: 1fr; }
  footer { grid-template-columns: 1fr; padding: 40px 24px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  .gallery-grid { grid-template-columns: 1fr 1fr; grid-template-rows: unset; }
  .gallery-item { grid-column: span 1 !important; grid-row: unset !important; aspect-ratio: 4/3; }
  .schedule-table th, .schedule-table td { padding: 10px 8px; font-size: 0.8rem; }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-divider { display: none; }
}
@media (max-width: 540px) {
  .hero-title { font-size: 3.2rem; }
  .hero-actions { flex-direction: column; align-items: flex-start; }
  .styles-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
  .hero-bg { background-position: 70% 20%; }
}
