/* ─────────────────────────────────────────────────────
   DFW Social Dance Studio — Shared Design System
   Include on every public page alongside Google Fonts.
   ───────────────────────────────────────────────────── */

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ── DESIGN TOKENS ── */
:root {
  --dark:     #111111;
  --dark2:    #181818;
  --dark3:    #222222;
  --gold:     #D4A843;
  --golddim:  #B8902A;
  --goldtint: #F7F3E8;
  --white:    #FFFFFF;
  --offwhite: #F9F8F6;
  --muted:    #6B6B6B;
  --line:     #E5E1D8;
  --fh: 'Fraunces', serif;
  --fb: 'Outfit', sans-serif;
  --max:  1200px;
  --nh:   64px;
}

/* ── BASE ── */
html { scroll-behavior: smooth; background: var(--dark); }
body { font-family: var(--fb); background: var(--white); color: var(--dark); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a   { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* ── LAYOUT ── */
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 40px; }

/* ── NAV ── */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--nh);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 40px;
  z-index: 200;
  background: rgba(17,17,17,.97);
  border-bottom: 1px solid rgba(255,255,255,.06);
  backdrop-filter: blur(12px);
}

.nav-logo { display: flex; flex-direction: column; gap: 1px; flex-shrink: 0; line-height: 1.2; }
.nav-logo-main { font-family: var(--fh); font-size: 15px; font-weight: 700; color: var(--white); white-space: nowrap; letter-spacing: -.01em; }
.nav-logo-sub  { font-family: var(--fb); font-size: 10px; font-weight: 400; color: rgba(255,255,255,.4); white-space: nowrap; letter-spacing: .01em; }

.nav-links { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0 16px; }
.nav-links > li { position: relative; }
.nav-links > li > a {
  font-size: 13px; font-weight: 400; color: rgba(255,255,255,.6);
  padding: 7px 12px; border-radius: 4px;
  display: flex; align-items: center; gap: 4px;
  transition: color .2s; white-space: nowrap;
}
.nav-links > li > a:hover,
.nav-links > li > a.active { color: var(--white); }

.nav-links > li > a.dd::after {
  content: '';
  border: 4px solid transparent;
  border-top-color: rgba(255,255,255,.35);
  margin-top: 3px; flex-shrink: 0;
}

/* Dropdowns */
.drop { position: absolute; top: 100%; left: 0; padding-top: 8px; opacity: 0; pointer-events: none; }
.drop-inner {
  background: var(--dark2);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 10px; padding: 8px; min-width: 190px;
  transform: translateY(-6px);
  transition: opacity .2s, transform .2s;
  box-shadow: 0 20px 48px rgba(0,0,0,.6);
}
.nav-links > li:hover > .drop { opacity: 1; pointer-events: auto; }
.nav-links > li:hover > .drop .drop-inner { transform: translateY(0); }
.drop-lbl { font-size: 9px; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); font-weight: 600; padding: 10px 12px 4px; }
.drop-inner a { display: block; padding: 8px 12px; font-size: 13px; color: rgba(255,255,255,.6); border-radius: 6px; transition: background .15s, color .15s; }
.drop-inner a:hover { background: rgba(255,255,255,.05); color: var(--white); }

.nav-cta { background: var(--gold) !important; color: var(--dark) !important; font-weight: 600 !important; padding: 9px 20px !important; border-radius: 5px !important; white-space: nowrap; flex-shrink: 0; }
.nav-cta:hover { background: #e0b84d !important; }

/* Burger / mobile */
.burger { display: none; flex-direction: column; gap: 5px; cursor: pointer; background: none; border: none; padding: 6px; flex-shrink: 0; }
.burger span { display: block; width: 22px; height: 1.5px; background: var(--white); border-radius: 2px; }

.mob {
  display: none;
  position: fixed; top: var(--nh); left: 0; right: 0; bottom: 0;
  background: var(--dark); z-index: 199;
  padding: 20px 28px; overflow-y: auto;
}
.mob.open { display: block; }
.mob a { display: block; padding: 13px 0; font-size: 15px; color: rgba(255,255,255,.75); border-bottom: 1px solid rgba(255,255,255,.06); }
.mob-lbl { font-size: 9px; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); font-weight: 600; padding: 18px 0 4px; }
.mob-cta { display: block; text-align: center; background: var(--gold); color: var(--dark) !important; font-weight: 600; padding: 15px; border-radius: 6px; margin-top: 20px; border: none !important; }

/* ── BUTTONS ── */
.btn-gold {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--gold); color: var(--dark);
  font-family: var(--fb); font-size: 13px; font-weight: 600;
  padding: 13px 24px; border-radius: 4px;
  transition: background .2s, transform .15s;
}
.btn-gold:hover { background: #e0b84d; transform: translateY(-1px); }

.btn-ghost {
  display: inline-flex; align-items: center; gap: 7px;
  border: 1px solid rgba(255,255,255,.2); color: rgba(255,255,255,.7);
  font-family: var(--fb); font-size: 13px; font-weight: 400;
  padding: 13px 24px; border-radius: 4px;
  transition: border-color .2s, color .2s;
}
.btn-ghost:hover { border-color: rgba(255,255,255,.45); color: var(--white); }

.btn-dark {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--dark); color: var(--white);
  font-family: var(--fb); font-size: 13px; font-weight: 600;
  padding: 13px 24px; border-radius: 4px;
  transition: background .2s;
}
.btn-dark:hover { background: #2a2a2a; }

/* ── SECTION UTILITIES ── */
.sec-h { font-family: var(--fh); font-size: clamp(40px,4.5vw,64px); font-weight: 700; line-height: .92; letter-spacing: -.03em; }
.sec-h.onlight { color: var(--dark); }
.sec-h.ondark  { color: var(--white); }
.sec-h em { font-style: italic; color: var(--golddim); }

.sec-sub { font-size: 14px; color: var(--muted); line-height: 1.75; font-weight: 300; max-width: 380px; align-self: end; }

.sec-head { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: end; margin-bottom: 60px; }

.lbl {
  font-size: 9px; letter-spacing: .18em; text-transform: uppercase;
  font-weight: 600; color: var(--golddim);
  display: flex; align-items: center; gap: 10px; margin-bottom: 20px;
}
.lbl::before { content: ''; width: 20px; height: 1px; background: var(--golddim); }

/* ── LEVEL BADGES ── */
.badge {
  display: inline-flex; align-items: center;
  padding: 2px 8px; border-radius: 100px;
  font-size: 9px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
}
.badge-beginner    { background: rgba(74,160,84,.14);  color: #5aad61; border: 1px solid rgba(74,160,84,.24); }
.badge-intermediate{ background: rgba(212,168,67,.12); color: var(--gold); border: 1px solid rgba(212,168,67,.22); }
.badge-advanced    { background: rgba(200,80,80,.12);  color: #e07070; border: 1px solid rgba(200,80,80,.2); }

/* ── FOOTER ── */
.footer { background: #080808; padding: 72px 0 32px; border-top: 1px solid rgba(255,255,255,.04); }

.footer-top { display: grid; grid-template-columns: 2fr 4fr 1fr 1fr; gap: 48px; margin-bottom: 56px; }

/* Footer dance-styles mega grid */
.f-mega-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 0 20px; margin-top: 14px; }
.f-mega-cat { font-size: 8px; letter-spacing: .12em; text-transform: uppercase; color: rgba(212,168,67,.5); font-weight: 600; margin: 14px 0 6px; }
.f-mega-cat:first-child { margin-top: 0; }
.f-mega-grid .f-col a { font-size: 11px; margin-bottom: 5px; }

.f-name { margin-bottom: 12px; }
.f-name-main { display: block; font-family: var(--fh); font-size: 16px; font-weight: 700; color: var(--white); letter-spacing: -.01em; margin-bottom: 2px; }
.f-name-sub  { display: block; font-family: var(--fb); font-size: 10px; font-weight: 400; color: rgba(255,255,255,.35); letter-spacing: .01em; }

.f-body { font-size: 12.5px; color: rgba(255,255,255,.3); line-height: 1.7; max-width: 280px; margin-bottom: 22px; }

.f-soc { display: flex; gap: 8px; }
.f-s {
  width: 32px; height: 32px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.07);
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; color: rgba(255,255,255,.35);
  transition: border-color .2s, color .2s;
}
.f-s:hover { border-color: var(--gold); color: var(--gold); }

.f-col h5 { font-size: 9px; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); font-weight: 600; margin-bottom: 14px; }
.f-col a { display: block; font-size: 12.5px; color: rgba(255,255,255,.35); margin-bottom: 9px; transition: color .2s; }
.f-col a:hover { color: var(--white); }

.footer-bot {
  border-top: 1px solid rgba(255,255,255,.05);
  padding-top: 24px;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
}
.footer-bot p, .footer-bot a { font-size: 11px; color: rgba(255,255,255,.2); }
.footer-bot a:hover { color: rgba(255,255,255,.5); }
.fbot-links { display: flex; gap: 16px; flex-wrap: wrap; }

/* Style-page hero — push below fixed nav */
.sh { margin-top: var(--nh); }

/* Mega-menu (Dance Styles dropdown) */
.drop-mega { min-width: 640px; display: grid; grid-template-columns: repeat(4,1fr); gap: 0; padding: 4px; }
.drop-col { display: flex; flex-direction: column; }
.drop-note { display: block; font-size: 10px; color: rgba(255,255,255,.3); margin-top: 1px; }

/* Mobile sub-accordions */
.mob-sub-toggle { display: flex; align-items: center; justify-content: space-between; width: 100%; background: none; border: none; border-bottom: 1px solid rgba(255,255,255,.06); padding: 13px 0; font-family: var(--fb); font-size: 15px; color: rgba(255,255,255,.75); cursor: pointer; text-align: left; }
.mob-sub-toggle::after { content: '›'; font-size: 18px; color: rgba(255,255,255,.3); transition: transform .2s; }
.mob-sub-toggle.open { color: var(--white); }
.mob-sub-toggle.open::after { transform: rotate(90deg); }
.mob-sub { display: none; }
.mob-sub.open { display: block; }
.mob-sub a { padding-left: 16px; font-size: 14px; color: rgba(255,255,255,.6); }
.mob-ev-note { font-size: 10px; color: rgba(255,255,255,.3); font-weight: 400; margin-left: 6px; }

/* ── RESPONSIVE ── */
@media (max-width: 1280px) and (min-width: 769px) {
  :root { --nh: 96px; }
  .nav { height: auto; min-height: 64px; padding: 12px 40px; align-items: center; }
  .nav-links { flex: 1; flex-wrap: wrap; justify-content: flex-end; margin: 0 0 0 16px; row-gap: 4px; }
}

@media (max-width: 1024px) {
  .sec-head { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .f-mega-grid { grid-template-columns: repeat(2,1fr); }
}

@media (max-width: 768px) {
  :root { --nh: 60px; }
  .nav { padding: 0 20px; }
  .nav-links { display: none; }
  .burger { display: flex; }
  .wrap { padding: 0 20px; }
  .sec-sub { max-width: 100%; }
  .footer-top { grid-template-columns: 1fr; gap: 24px; }
  .footer-bot { flex-direction: column; text-align: center; }
  .f-mega-grid { grid-template-columns: repeat(2,1fr); }
}
