/* ═══════════════════════════════════════════════════════
   BADA EDUCATION — 소요한남 스타일 디자인 시스템
   ═══════════════════════════════════════════════════════ */

/* ── VARIABLES ── */
:root {
  --bg-light: #F8F8F8;
  --bg-dark: #232323;
  --bg-dark-alpha: rgba(0, 0, 0, 0.85);
  --text-primary: #000000;
  --text-body: #666666;
  --text-white: #FFFFFF;
  --text-muted: #ADADAD;
  --text-muted-alpha: rgba(255, 255, 255, 0.3);
  --font-hero-brand: 'Montserrat', sans-serif;
  --font-body: 'Pretendard', sans-serif;
  --font-en: 'Plus Jakarta Sans', sans-serif;
  --font-display: 'Plus Jakarta Sans', sans-serif;
  --font-number: 'Plus Jakarta Sans', sans-serif;
  --transition-section: 1400ms;
  --transition-header: 0.8s;
  --ease-out: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

html {
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--text-body);
  background: var(--bg-light);
  line-height: 1.6;
  overflow: hidden;
}

a {
  text-decoration: none;
  color: inherit;
  transition: opacity 0.3s ease;
}

a:hover {
  opacity: 0.7;
}

ul, ol {
  list-style: none;
}

img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

strong {
  font-weight: 600;
}

small {
  font-size: 0.6em;
  vertical-align: super;
}

em {
  font-style: normal;
  font-weight: 600;
}

/* ── WRAP ── */
.wrap {
  opacity: 0;
  transition: opacity 0.6s ease;
}

.wrap.on {
  opacity: 1;
}

/* ═══════════════════════════════════════════════════════
   HEADER
   ═══════════════════════════════════════════════════════ */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 99;
  padding: 2.3vw 5.2083vw 0;
  transition: var(--transition-header) ease;
}

.head_in {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo */
header h1 a {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.logo-text {
  font-family: var(--font-hero-brand);
  font-weight: 900;
  font-size: 1.5625vw;
  letter-spacing: 0.15em;
  color: var(--text-white);
  transition: color var(--transition-header) ease;
}

.logo-sub {
  font-family: var(--font-hero-brand);
  font-weight: 400;
  font-size: 0.5208vw;
  letter-spacing: 0.35em;
  color: var(--text-white);
  opacity: 0.6;
  transition: color var(--transition-header) ease, opacity var(--transition-header) ease;
}

/* Nav */
.menu ul {
  display: flex;
  align-items: center;
  gap: 2.6042vw;
}

.menu ul li a {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.6771vw;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-white);
  position: relative;
  padding-bottom: 4px;
  transition: color var(--transition-header) ease;
}

.menu ul li a::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--text-white);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s var(--ease-out);
}

.menu ul li a:hover {
  opacity: 1;
}

.menu ul li a:hover::before {
  transform: scaleX(1);
  transform-origin: left;
}

/* CTA nav button */
.cta-nav a {
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 192px;
  padding: 0.4167vw 1.25vw;
  font-size: 0.625vw;
  transition: background var(--transition-header) ease,
              color var(--transition-header) ease,
              border-color var(--transition-header) ease;
}

.cta-nav a:hover {
  background: var(--text-white);
  color: var(--text-primary);
  opacity: 1;
}

/* Header dark mode (on light sections) */
header.co .logo-text,
header.co .logo-sub {
  color: var(--text-primary);
}

header.co .logo-sub {
  opacity: 0.4;
}

header.co .menu ul li a {
  color: var(--text-primary);
}

header.co .menu ul li a::before {
  background: var(--text-primary);
}

header.co .cta-nav a {
  border-color: rgba(0, 0, 0, 0.3);
  color: var(--text-primary);
}

header.co .cta-nav a:hover {
  background: var(--text-primary);
  color: var(--text-white);
}

/* ═══════════════════════════════════════════════════════
   FIXED PHONE
   ═══════════════════════════════════════════════════════ */
.fix_tel {
  position: fixed;
  bottom: 2.3vw;
  left: 5.2083vw;
  z-index: 98;
  display: flex;
  align-items: center;
  gap: 0.5em;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 192px;
  padding: 0.5208vw 1.5625vw;
  transition: background 0.3s ease,
              border-color var(--transition-header) ease,
              color var(--transition-header) ease,
              opacity 0.5s ease;
}

.fix_tel span {
  font-family: var(--font-number);
  font-weight: 400;
  font-size: 0.7292vw;
  letter-spacing: 0.05em;
  color: var(--text-white);
  transition: color var(--transition-header) ease;
}

.fix_tel:hover {
  background: rgba(255, 255, 255, 0.1);
  opacity: 1;
}

header.co ~ .fix_tel {
  border-color: rgba(0, 0, 0, 0.2);
}

header.co ~ .fix_tel span {
  color: var(--text-primary);
}

/* ═══════════════════════════════════════════════════════
   FIXED KAKAO
   ═══════════════════════════════════════════════════════ */
.fix_kakao {
  position: fixed;
  bottom: 12vw;
  right: 5.2083vw;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50px;
  color: white;
  font-family: var(--font-body);
  font-size: 13px;
  letter-spacing: 0.05em;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  background: rgba(0, 0, 0, 0.3);
  transition: background 0.3s ease, border-color 0.3s ease, color var(--transition-header) ease, opacity 0.5s ease;
  text-decoration: none;
}

.fix_kakao:hover {
  background: rgba(0, 0, 0, 0.5);
  border-color: rgba(255, 255, 255, 0.5);
}

header.co ~ .fix_kakao {
  color: var(--text-primary);
  border-color: rgba(0, 0, 0, 0.2);
  background: rgba(255, 255, 255, 0.5);
}

header.co ~ .fix_kakao:hover {
  background: rgba(0, 0, 0, 0.08);
  border-color: rgba(0, 0, 0, 0.4);
}

/* ═══════════════════════════════════════════════════════
   FULLPAGE OVERRIDES
   ═══════════════════════════════════════════════════════ */
.section {
  overflow: hidden;
}

#fullpage {
  transition: none;
}

/* ═══════════════════════════════════════════════════════
   VIDEO STRIP (fixed, always visible as background layer)
   z-index: 0 so #fullpage content renders above it.
   Shrinks 100vw → 20vw on scroll.
   ═══════════════════════════════════════════════════════ */
.video-strip {
  position: fixed;
  top: 0;
  right: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  transition: width 1.8s var(--ease-out),
              top 1.8s var(--ease-out),
              height 1.8s var(--ease-out),
              border-radius 1.8s var(--ease-out);
}

.video-strip video {
  width: 100vw;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  right: 0;
  opacity: 0;
  transition: opacity 1.2s ease;
}

.video-strip video.active {
  opacity: 1;
}

.video-strip.shrunk {
  width: 20vw;
  top: 5.5vw;
  height: calc(100vh - 5.5vw);
  border-radius: 0.5vw 0 0 0.5vw;
}

/* Phase 2: strip expands to full width, keeping shrunk height/top */
.video-strip.shrunk.expanded {
  width: 100vw;
  border-radius: 0 0 0 0.5vw;
}

/* Dark gradient overlay on strip (for hero text readability) */
.strip-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.3) 0%,
    rgba(0, 0, 0, 0.15) 40%,
    rgba(0, 0, 0, 0.5) 100%
  );
  transition: opacity 0.6s ease;
}

/* Hide gradient when strip is shrunk (not needed on small strip) */
.video-strip.shrunk .strip-overlay {
  opacity: 0;
}

/* ═══════════════════════════════════════════════════════
   ANIMATIONS — TEXT REVEAL
   ═══════════════════════════════════════════════════════ */
.anim-line {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s var(--ease-out),
              transform 0.8s var(--ease-out);
}

.anim-vchar {
  display: block;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s var(--ease-out),
              transform 0.6s var(--ease-out);
}

.active .anim-line,
.swiper-slide-active .anim-line {
  opacity: 1;
  transform: translateY(0);
}

.active .anim-vchar,
.swiper-slide-active .anim-vchar {
  opacity: 1;
  transform: translateY(0);
}

/* Delay via data-delay attribute — set by JS */

/* ═══════════════════════════════════════════════════════
   PILL BUTTONS
   ═══════════════════════════════════════════════════════ */
.btn-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 192px;
  padding: 0.7292vw 2.0833vw;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.7292vw;
  color: var(--text-white);
  background: transparent;
  cursor: pointer;
  transition: background 0.4s ease, color 0.4s ease;
  letter-spacing: 0.05em;
}

.btn-pill:hover {
  background: var(--text-white);
  color: var(--text-primary);
  opacity: 1;
}

/* ═══════════════════════════════════════════════════════
   MOBILE RESPONSIVE (common)
   ═══════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  /* Header */
  header {
    padding: 5vw 6vw 0;
  }

  .logo-text {
    font-size: 5vw;
  }

  .logo-sub {
    font-size: 1.8vw;
  }

  .menu ul {
    display: none;
  }

  /* Fixed phone */
  .fix_tel {
    bottom: 5vw;
    left: 6vw;
    padding: 2vw 5vw;
  }

  .fix_tel span {
    font-size: 2.8vw;
  }

  /* Fixed kakao */
  .fix_kakao {
    bottom: 22vw;
    right: 4vw;
    font-size: 11px;
    padding: 8px 14px;
  }

  /* Pill buttons */
  .btn-pill {
    padding: 2.5vw 6vw;
    font-size: 2.8vw;
  }
}
