/* ═══════════════════════════════════════════════════
   ROCOCO MUSIC ACADEMY — Shared Design System
   ═══════════════════════════════════════════════════ */

/* ─── Google Fonts (Clash Display via CDN) ─── */
@import url('https://fonts.googleapis.com/css2?family=Inter:ital,wght@0,300;0,400;0,500;0,700;1,400&display=swap');
@import url('https://fonts.cdnfonts.com/css/clash-display');

/* ─── Design Tokens ─── */
:root {
  --white:     #ffffff;
  --white-75:  rgba(255,255,255,0.75);
  --white-50:  rgba(255,255,255,0.50);
  --white-25:  rgba(255,255,255,0.25);
  --white-15:  rgba(255,255,255,0.15);
  --white-10:  rgba(255,255,255,0.10);
  --white-05:  rgba(255,255,255,0.05);
  --black:     #000000;
  --card-bg:   #111111;
  --card-bg2:  #1a1a1a;
  --border:    rgba(255,255,255,0.10);
  --max-w:     1120px;
  --r-lg:      24px;
  --r-xl:      32px;
  --r-pill:    999px;
  --r-sm:      10px;
  --ease:      cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in:   cubic-bezier(0.55, 0, 1, 0.45);
  --transition: 0.65s var(--ease);
}

/* ─── Reset ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--black);
  color: var(--white);
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { display: block; max-width: 100%; }
a   { text-decoration: none; color: inherit; }
ul  { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; color: inherit; }
h1,h2,h3,h4,h5,h6 { margin: 0; line-height: 1.1; }

/* ─── Container ─── */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 40px;
}
@media(max-width:1199px){ .container{ padding:0 32px; } }
@media(max-width:809px) { .container{ padding:0 20px; } }

/* ═══════════════════════════════════════════════════
   SCROLL REVEAL SYSTEM
   ═══════════════════════════════════════════════════ */
.r-fade { opacity:0; transform:translateY(32px);           transition:opacity var(--transition), transform var(--transition); }
.r-left { opacity:0; transform:translateX(-48px);          transition:opacity var(--transition), transform var(--transition); }
.r-right{ opacity:0; transform:translateX(48px);           transition:opacity var(--transition), transform var(--transition); }
.r-scale{ opacity:0; transform:scale(0.90) translateY(24px);transition:opacity var(--transition), transform var(--transition); }
.r-up   { opacity:0; transform:translateY(56px);           transition:opacity var(--transition), transform var(--transition); }

.r-d1 { transition-delay:0.08s; }
.r-d2 { transition-delay:0.16s; }
.r-d3 { transition-delay:0.24s; }
.r-d4 { transition-delay:0.32s; }
.r-d5 { transition-delay:0.40s; }
.r-d6 { transition-delay:0.48s; }

.revealed { opacity:1 !important; transform:none !important; }

/* ═══════════════════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════════════════ */
.btn {
  display:inline-flex; align-items:center; justify-content:center;
  gap:8px; padding:14px 28px; border-radius:var(--r-pill);
  font-family:'Inter',sans-serif; font-size:14px; font-weight:500;
  letter-spacing:0.01em; transition:all 0.25s var(--ease); white-space:nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, #ffffff 0%, rgba(255,255,255,0.82) 100%);
  color:#000;
}
.btn-primary:hover { transform:scale(1.04) translateY(-1px); box-shadow:0 8px 32px rgba(255,255,255,0.18); }

.btn-secondary {
  background: var(--white-05); color:var(--white);
  border:1px solid var(--white-20, rgba(255,255,255,0.2));
}
.btn-secondary:hover { background:var(--white-10); transform:scale(1.03); }

.btn-ghost {
  background:transparent; color:var(--white-75);
  border:1px solid var(--white-25);
}
.btn-ghost:hover { color:var(--white); border-color:var(--white-50); }

/* ═══════════════════════════════════════════════════
   NAV
   ═══════════════════════════════════════════════════ */
.nav {
  position:fixed; top:0; left:0; right:0; z-index:1000;
  padding:0 40px; height:72px;
  display:flex; align-items:center; justify-content:space-between;
  transition:background 0.4s, border-color 0.4s, backdrop-filter 0.4s;
  border-bottom:1px solid transparent;
}
.nav.scrolled {
  background:rgba(0,0,0,0.75);
  backdrop-filter:blur(24px); -webkit-backdrop-filter:blur(24px);
  border-bottom-color:var(--border);
}
.nav__logo {
  display:flex; align-items:center; height:80px; overflow:visible; flex-shrink:0;
  perspective:800px;
}
.nav__logo img {
  height:100%; width:auto; object-fit:contain;
  transform-style:preserve-3d;
  transition:transform 0.5s cubic-bezier(0.22, 1, 0.36, 1), filter 0.5s var(--ease);
  will-change:transform, filter;
  filter:drop-shadow(0 4px 12px rgba(0,0,0,0.5));
}
.nav__logo:hover img {
  transform:perspective(600px) rotateX(12deg) rotateY(-14deg) translateZ(16px) scale(1.08);
  filter:drop-shadow(0 16px 28px rgba(255,255,255,0.25)) drop-shadow(0 4px 10px rgba(0,0,0,0.8));
}

.footer__logo {
  height:96px; width:auto; object-fit:contain;
  transform-style:preserve-3d;
  transition:transform 0.5s cubic-bezier(0.22, 1, 0.36, 1), filter 0.5s var(--ease);
  will-change:transform, filter;
  filter:drop-shadow(0 6px 16px rgba(0,0,0,0.6));
  animation:logo-float 4s ease-in-out infinite alternate;
}
.footer__logo:hover {
  transform:perspective(600px) rotateX(-12deg) rotateY(16deg) translateZ(24px) scale(1.08);
  filter:drop-shadow(0 20px 36px rgba(255,255,255,0.3)) drop-shadow(0 8px 16px rgba(0,0,0,0.9));
  animation-play-state:paused;
}

@keyframes logo-float {
  0%   { transform:perspective(800px) translateY(0px) rotateX(0deg) rotateY(0deg); }
  50%  { transform:perspective(800px) translateY(-8px) rotateX(5deg) rotateY(-4deg); }
  100% { transform:perspective(800px) translateY(2px) rotateX(-4deg) rotateY(5deg); }
}

.nav__center {
  display:flex; align-items:center; gap:8px;
  background:rgba(255,255,255,0.05);
  border:1px solid var(--border);
  border-radius:var(--r-pill);
  padding:6px 8px;
}
.nav__link {
  font-size:13px; color:var(--white-75); padding:8px 16px;
  border-radius:var(--r-pill); transition:all 0.2s;
}
.nav__link:hover, .nav__link.active { background:var(--white-10); color:var(--white); }

.nav__right { display:flex; align-items:center; gap:12px; }
.nav__cta {}

.nav__toggle {
  display:none; flex-direction:column; gap:5px;
  width:32px; padding:4px; cursor:pointer;
}
.nav__toggle span {
  display:block; height:2px; background:var(--white);
  border-radius:2px; transition:all 0.3s;
}
.nav__toggle span:nth-child(1) { width:22px; }
.nav__toggle span:nth-child(2) { width:15px; }

/* Mobile drawer */
.nav__drawer {
  display:none; position:fixed; inset:0; z-index:999;
  background:rgba(0,0,0,0.97);
  flex-direction:column; align-items:center; justify-content:center; gap:32px;
  padding:80px 40px 40px;
}
.nav__drawer.open { display:flex; }
.nav__drawer .nav__link { font-size:22px; color:var(--white-75); padding:10px 24px; }
.nav__drawer .nav__link:hover { color:var(--white); }
.nav__drawer-close {
  position:absolute; top:20px; right:24px;
  font-size:28px; color:var(--white-50); cursor:pointer;
  width:44px; height:44px; display:flex; align-items:center; justify-content:center;
}

@media(max-width:1199px){ .nav{ padding:0 32px; } }
@media(max-width:809px) {
  .nav{ padding:0 20px; }
  .nav__center, .nav__right .btn { display:none; }
  .nav__toggle { display:flex; }
}

/* ═══════════════════════════════════════════════════
   SECTION LABEL
   ═══════════════════════════════════════════════════ */
.s-label {
  display:inline-flex; align-items:center; gap:12px;
  margin-bottom:20px;
}
.s-label__line {
  width:40px; height:2px;
  background:linear-gradient(90deg,var(--white),var(--white-50));
  border-radius:var(--r-pill); flex-shrink:0;
}
.s-label__text {
  font-size:11px; font-weight:500; color:var(--white-50);
  text-transform:uppercase; letter-spacing:0.12em;
}

/* ═══════════════════════════════════════════════════
   DIVIDER
   ═══════════════════════════════════════════════════ */
.divider {
  width:100%; height:1px;
  background:linear-gradient(90deg, transparent, var(--white-25) 30%, var(--white-25) 70%, transparent);
}

/* ═══════════════════════════════════════════════════
   FOOTER — Centered Prominent Logo & Minimal Layout
   ═══════════════════════════════════════════════════ */
.footer {
  padding:64px 0 32px;
  border-top:1px solid var(--border);
  background:#050505;
  text-align:center;
}
.footer__main {
  display:flex; flex-direction:column; align-items:center;
  gap:24px; margin-bottom:36px;
}
.footer__brand {
  display:flex; flex-direction:column; align-items:center; gap:12px;
}
.footer__logo {
  height:96px; width:auto; object-fit:contain;
  transition:transform 0.3s var(--ease);
}
.footer__logo:hover {
  transform:scale(1.04);
}
.footer__tagline {
  font-size:14px; color:rgba(255,255,255,0.5);
  line-height:1.5; max-width:360px;
}
.footer__nav {
  display:flex; align-items:center; justify-content:center;
  gap:28px; flex-wrap:wrap; margin-top:8px;
}
.footer__link {
  font-size:14px; color:rgba(255,255,255,0.7);
  text-decoration:none; transition:color 0.2s;
  letter-spacing:0.02em;
}
.footer__link:hover { color:#ffffff; }

.footer__bottom {
  display:flex; align-items:center; justify-content:center;
  gap:20px; flex-wrap:wrap;
  padding-top:24px; border-top:1px solid rgba(255,255,255,0.06);
  font-size:12.5px; color:rgba(255,255,255,0.4);
}

@media(max-width:809px){
  .footer__logo { height:80px; }
  .footer__nav { gap:18px; }
  .footer__bottom { flex-direction:column; gap:4px; }
}

/* ═══════════════════════════════════════════════════
   PAGE HERO (inner pages)
   ═══════════════════════════════════════════════════ */
.page-hero {
  padding:160px 0 80px;
  text-align:center;
  position:relative;
  overflow:hidden;
}
.page-hero__h1 {
  font-family:'Clash Display',sans-serif;
  font-size:clamp(40px,7vw,88px);
  font-weight:600; text-transform:uppercase;
  letter-spacing:-0.02em;
  background:linear-gradient(135deg, var(--white) 0%, var(--white-75) 100%);
  -webkit-background-clip:text; -webkit-text-fill-color:transparent; background-clip:text;
}
.page-hero__sub {
  font-size:18px; color:var(--white-75);
  max-width:540px; margin:20px auto 0; line-height:1.7;
}
.page-hero__bg {
  position:absolute; inset:0; z-index:-1;
  background:radial-gradient(ellipse 80% 60% at 50% 0%, rgba(255,255,255,0.04) 0%, transparent 70%);
}
