/*
Theme Name: Balletschool KG
Author: Codex
Version: 1.0.0
*/

:root {
  --ink: #191619;
  --muted: #6e6567;
  --ivory: #fbf7ef;
  --paper: #fffdf9;
  --rose: #d8c4bb;
  --burgundy: #6e1723;
  --burgundy-dark: #350b13;
  --gold: #b98a4b;
  --line: #eadfd6;
  --white: #fff;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font: 16px/1.6 "Inter", Arial, sans-serif;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
.wrap { width: min(1180px, calc(100% - 48px)); margin: 0 auto; }
.eyebrow {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
}
h1, h2, h3 { margin-top: 0; font-family: "Cormorant Garamond", Georgia, serif; line-height: .98; letter-spacing: 0; }
h1 { font-size: clamp(52px, 7vw, 92px); }
h2 { font-size: clamp(36px, 4.5vw, 58px); }
h3 { font-size: 31px; }
p { margin-top: 0; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  transition: transform .2s ease, background .2s ease, color .2s ease;
}
.button:hover { transform: translateY(-2px); }
.button-primary { color: #fff; background: var(--burgundy); }
.button-outline { color: #fff; border-color: rgba(255,255,255,.55); }
.button-light { color: var(--burgundy); background: #fff; }

.site-header {
  position: fixed;
  z-index: 20;
  inset: 0 0 auto;
  color: #fff;
  background: rgba(25, 16, 18, .78);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255,255,255,.12);
}
.header-inner { display: flex; align-items: center; min-height: 92px; gap: 30px; }
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 385px;
  padding: 10px 16px 10px 12px;
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 8px;
  background: rgba(255,255,255,.96);
  box-shadow: 0 14px 34px rgba(0,0,0,.18);
}
.brand-mark {
  position: relative;
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  width: 58px;
  height: 68px;
}
.brand-symbol {
  display: block;
  height: 68px;
  background-image: url("assets/images/logo.png");
  background-repeat: no-repeat;
  background-size: 218px 68px;
}
.brand-symbol {
  width: 58px;
  background-position: left center;
  transform-origin: 48% 55%;
  animation: dancer-pirouette 4.8s ease-in-out infinite;
}
@keyframes dancer-pirouette {
  0%, 16%, 100% { transform: rotateY(0deg) rotate(-3deg); }
  42% { transform: rotateY(360deg) rotate(4deg); }
  64% { transform: rotateY(360deg) rotate(-2deg); }
}
@media (prefers-reduced-motion: reduce) {
  .brand-symbol { animation: none; }
}
.brand-copy {
  display: block;
  min-width: 0;
  padding-left: 14px;
  border-left: 1px solid #d8c4bb;
}
.brand-copy strong {
  display: block;
  color: var(--burgundy-dark);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 24px;
  line-height: .95;
}
.brand-copy span {
  display: block;
  max-width: 145px;
  margin-top: 5px;
  color: #5f5558;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.25;
  text-transform: uppercase;
}
.main-nav { display: flex; align-items: center; gap: 28px; margin-left: auto; font-size: 14px; }
.main-nav a { color: #f8eee9; }
.header-cta {
  padding: 11px 16px;
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 4px;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}
.language-switcher {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 4px;
  border: 1px solid rgba(255,255,255,.32);
  border-radius: 6px;
  background: rgba(255,255,255,.08);
}
.language-switcher a {
  display: grid;
  place-items: center;
  min-width: 36px;
  height: 30px;
  border-radius: 4px;
  color: #f8eee9;
  font-size: 12px;
  font-weight: 800;
}
.language-switcher a.active {
  color: var(--burgundy-dark);
  background: #fff;
}
.menu-toggle { display: none; width: 42px; height: 42px; border: 0; background: transparent; }
.menu-toggle span { display: block; width: 24px; height: 2px; margin: 5px auto; background: #fff; transition: .2s ease; }

.hero {
  position: relative;
  overflow: hidden;
  min-height: 760px;
  color: #fff;
  background: var(--burgundy-dark);
}
.hero-media {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(31, 10, 16, .94) 0%, rgba(64, 14, 24, .70) 42%, rgba(64,14,24,.12) 100%),
    linear-gradient(0deg, rgba(52, 7, 24, .34), rgba(52, 7, 24, .06)),
    url("assets/images/hero-ballet-v2.png") center/cover;
}
.hero::after {
  content: "";
  position: absolute;
  right: -12vw;
  bottom: -18vw;
  width: 44vw;
  height: 44vw;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 50%;
}
.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 760px) 280px;
  align-items: end;
  gap: 60px;
  min-height: 760px;
  padding: 150px 0 72px;
}
.hero-copy h1 { max-width: 850px; margin-bottom: 24px; }
.hero-lead { max-width: 620px; color: #f1ddd7; font-size: 20px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero-panel {
  padding: 28px;
  border: 1px solid rgba(255,255,255,.24);
  border-radius: 8px;
  background: rgba(255,255,255,.08);
  backdrop-filter: blur(12px);
}
.hero-panel span { display: block; margin-bottom: 12px; color: var(--rose); font-size: 12px; text-transform: uppercase; }
.hero-panel strong { font-family: "Cormorant Garamond", Georgia, serif; font-size: 26px; line-height: 1.05; }

.section { padding: 90px 0; }
.about { background: var(--ivory); }
.about-grid, .admission-grid, .legacy-grid {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 70px;
  align-items: center;
}
.about-copy p { color: var(--muted); font-size: 18px; }
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 28px;
}
.stats div { padding: 22px; border-left: 1px solid var(--line); background: #fff; }
.stats strong { display: block; color: var(--burgundy); font: 700 44px/1 "Cormorant Garamond", Georgia, serif; }
.stats span { display: block; color: var(--muted); font-size: 12px; }

.section-head { max-width: 760px; margin-bottom: 36px; }
.program-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.program-card {
  min-height: 300px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 50px rgba(50, 28, 18, .06);
}
.program-card span { color: var(--gold); font: 700 34px/1 "Cormorant Garamond", Georgia, serif; }
.program-card h3 { margin: 42px 0 14px; }
.program-card p { color: var(--muted); font-size: 14px; }

.legacy {
  padding: 80px 0;
  color: #fff;
  background: linear-gradient(135deg, var(--burgundy-dark), #1c1718);
}
.legacy-grid img {
  width: 100%;
  height: 460px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 24px 70px rgba(0,0,0,.35);
}
.legacy-grid p { max-width: 560px; color: #e8d6ce; font-size: 18px; }

.admission { background: var(--ivory); }
.admission-intro {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 70px;
  align-items: end;
  margin-bottom: 34px;
}
.admission-intro p { color: var(--muted); font-size: 18px; }
.admission-intro .button { margin-top: 14px; }
.admission-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.admission-card {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 50px rgba(50, 28, 18, .06);
}
.admission-card-main,
.medical-card {
  grid-column: span 2;
}
.card-label {
  display: inline-flex;
  margin-bottom: 18px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.admission-card h3 { margin-bottom: 18px; color: var(--burgundy-dark); }
.admission-card p,
.admission-card li {
  color: var(--muted);
  font-size: 14px;
}
.admission-card ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 18px;
}
.exam-list {
  display: grid;
  gap: 14px;
}
.exam-list div {
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.exam-list strong,
.document-columns strong {
  display: block;
  margin-bottom: 5px;
  color: var(--burgundy);
  font-size: 15px;
}
.exam-list span {
  display: block;
  margin-bottom: 6px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 700;
}
.document-columns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.admission-contact-strip {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 1px;
  overflow: hidden;
  margin-top: 16px;
  border-radius: 8px;
  background: rgba(255,255,255,.35);
  border: 1px solid rgba(255,255,255,.5);
}
.admission-contact-strip div {
  padding: 24px;
  color: #fff;
  background: var(--burgundy);
}
.admission-contact-strip span {
  display: block;
  margin-bottom: 8px;
  color: var(--rose);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.admission-contact-strip strong {
  display: block;
  margin-bottom: 7px;
  font-size: 18px;
}
.admission-contact-strip p {
  margin: 0;
  color: #eadbd4;
  font-size: 13px;
}

.gallery {
  padding: 90px 0 105px;
  background: #fff;
}
.gallery-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr;
  grid-auto-rows: 250px;
  gap: 14px;
}
.gallery-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
}
.gallery-grid img:first-child { grid-row: span 2; }

.site-footer {
  padding: 58px 0 24px;
  color: #eadbd4;
  background: #171113;
}
.footer-grid { display: grid; grid-template-columns: 1.3fr .75fr .9fr 1fr; gap: 42px; }
.footer-brand { display: flex; align-items: center; gap: 13px; margin-bottom: 18px; font-weight: 700; }
.footer-brand img { width: 54px; padding: 6px; border-radius: 50%; background: #fff; }
.site-footer h2 { margin-bottom: 14px; color: #fff; font: 700 20px/1.1 "Inter", Arial, sans-serif; }
.site-footer p, .site-footer a { display: block; color: #c8b7b0; font-size: 14px; }
.footer-call { padding: 24px; border-radius: 8px; background: rgba(255,255,255,.06); }
.copyright { margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.1); color: #9b8b85; font-size: 12px; }

@media (max-width: 1180px) {
  .header-cta { display: none; }
  .main-nav {
    position: absolute;
    top: 82px;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 16px 24px 24px;
    background: rgba(25, 16, 18, .97);
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.1); }
  .menu-toggle { display: block; margin-left: auto; }
  .hero-inner, .about-grid, .admission-grid, .admission-intro, .legacy-grid { grid-template-columns: 1fr; }
  .hero-panel { max-width: 420px; }
  .program-grid, .footer-grid, .admission-cards, .document-columns, .admission-contact-strip { grid-template-columns: repeat(2, 1fr); }
  .admission-card-main,
  .medical-card {
    grid-column: span 2;
  }
}

@media (max-width: 720px) {
  .wrap { width: min(100% - 30px, 1180px); }
  .header-inner { min-height: 74px; }
  .brand {
    min-width: 0;
    max-width: calc(100vw - 92px);
    padding: 8px 10px;
  }
  .brand-mark { width: 47px; height: 52px; }
  .brand-symbol {
    height: 52px;
    background-size: 176px 52px;
  }
  .brand-symbol { width: 47px; }
  .brand-copy { display: none; }
  .main-nav { top: 74px; }
  .hero, .hero-inner { min-height: 690px; }
  .hero-inner { padding-top: 120px; gap: 28px; }
  .hero-lead { font-size: 17px; }
  .hero-actions { display: grid; }
  .section { padding: 64px 0; }
  .stats, .program-grid, .steps, .footer-grid, .admission-cards, .document-columns, .admission-contact-strip { grid-template-columns: 1fr; }
  .admission-card-main,
  .medical-card {
    grid-column: span 1;
  }
  .admission-intro { gap: 22px; }
  .admission-card { padding: 22px; }
  .program-card { min-height: auto; }
  .program-card h3 { margin-top: 28px; }
  .legacy-grid img { height: 360px; }
  .gallery-grid { grid-template-columns: 1fr; grid-auto-rows: 230px; }
  .gallery-grid img:first-child { grid-row: span 1; }
}
