/* ========================================
   Miu도넛 - 공통 스타일시트
   비비드/팝 디자인 컨셉
   ======================================== */

@import url('https://fonts.googleapis.com/css2?family=Jua&family=Black+Han+Sans&family=Noto+Sans+KR:wght@400;500;700;900&family=Fredoka:wght@400;600;700&display=swap');

:root {
  --pink: #FF3D7F;
  --pink-dark: #E62E6B;
  --pink-light: #FFC0D9;
  --yellow: #FFD93D;
  --mint: #6BCB77;
  --sky: #4D96FF;
  --orange: #FF9F45;
  --cream: #FFF8F0;
  --dark: #2D2D2D;
  --gray: #888;
  --light-gray: #F2F2F2;
  --shadow: 0 8px 24px rgba(255, 61, 127, 0.15);
  --shadow-strong: 0 12px 32px rgba(0, 0, 0, 0.12);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Noto Sans KR', sans-serif;
  background: var(--cream);
  color: var(--dark);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ============== HEADER ============== */
header {
  position: fixed;
  top: 0; left: 0; right: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
}
.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo {
  font-size: 0;
  color: transparent;
  text-decoration: none;
  display: flex;
  align-items: center;
}
.logo-icon {
  display: inline-block;
  width: 192px; height: 192px;
  background-image: url('images/logo.png');
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  border: none;
  transition: transform 0.2s;
}
.logo:hover .logo-icon { transform: scale(1.05) rotate(-3deg); }
.logo-icon::before { display: none; }

nav ul {
  display: flex;
  list-style: none;
  gap: 36px;
  align-items: center;
}
nav a {
  text-decoration: none;
  color: var(--dark);
  font-weight: 700;
  font-size: 16px;
  transition: color 0.2s;
  position: relative;
}
nav a:hover { color: var(--pink); }
nav a.active { color: var(--pink); }
nav a.active::after {
  content: '';
  position: absolute;
  bottom: -8px; left: 50%;
  transform: translateX(-50%);
  width: 6px; height: 6px;
  background: var(--pink);
  border-radius: 50%;
}
.cta-btn {
  background: var(--pink);
  color: white !important;
  padding: 10px 22px;
  border-radius: 30px;
  transition: all 0.2s;
}
.cta-btn:hover {
  background: var(--pink-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 32px;
  cursor: pointer;
  color: var(--pink);
  padding: 8px 12px;
  z-index: 1001;
}

/* ============== MAIN ============== */
main { padding-top: 220px; }
section { padding: 80px 24px; }
.container { max-width: 1200px; margin: 0 auto; }

.section-title {
  font-family: 'Jua', sans-serif;
  font-size: 48px;
  text-align: center;
  margin-bottom: 16px;
  color: var(--dark);
  letter-spacing: -1px;
}
.section-subtitle {
  text-align: center;
  color: var(--gray);
  font-size: 18px;
  margin-bottom: 60px;
}
.section-tag {
  display: inline-block;
  background: var(--pink-light);
  color: var(--pink-dark);
  padding: 6px 16px;
  border-radius: 20px;
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 16px;
}

/* ============== BUTTONS ============== */
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 700;
  font-size: 16px;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
}
.btn-primary { background: var(--pink); color: white; }
.btn-primary:hover { background: var(--pink-dark); transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-secondary { background: var(--yellow); color: var(--dark); }
.btn-secondary:hover { background: #FFC700; transform: translateY(-2px); }
.btn-outline { background: transparent; color: var(--pink); border: 2px solid var(--pink); }
.btn-outline:hover { background: var(--pink); color: white; }

/* ============== FOOTER ============== */
footer {
  background: var(--dark);
  color: white;
  padding: 60px 24px 30px;
}
.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-brand h3 {
  font-family: 'Jua', sans-serif;
  font-size: 28px;
  color: var(--pink);
  margin-bottom: 12px;
}
.footer-brand p {
  color: #aaa;
  line-height: 1.8;
  margin-bottom: 16px;
  font-size: 14px;
}
.footer-col h4 {
  font-size: 16px;
  margin-bottom: 16px;
  color: var(--yellow);
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 8px; font-size: 14px; color: #aaa; }
.footer-col a {
  color: #aaa;
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s;
}
.footer-col a:hover { color: white; }
.social-icons {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}
.social-icons a {
  width: 40px; height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-decoration: none;
  transition: all 0.2s;
  font-size: 14px;
  font-weight: 700;
}
.social-icons a:hover { background: var(--pink); transform: translateY(-3px); }
.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #777;
  font-size: 13px;
}

/* ============== ANIMATIONS ============== */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-15px); }
}
@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
.fade-in { animation: fadeInUp 0.8s ease forwards; }

/* ============== TABLET ============== */
@media (max-width: 1024px) {
  .footer-container {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }
}

/* ============== MOBILE ============== */
@media (max-width: 768px) {
  /* 헤더 */
  .nav-container {
    padding: 8px 16px;
    position: relative;
  }
  .logo-icon {
    width: 56px;
    height: 56px;
  }
  main { padding-top: 76px; }

  /* 햄버거 메뉴 */
  .menu-toggle {
    display: block;
    order: 2;
  }
  nav {
    width: 100%;
    order: 3;
  }
  nav ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    flex-direction: column;
    padding: 12px 16px;
    gap: 4px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    border-top: 1px solid var(--light-gray);
    margin: 0;
  }
  nav ul.open {
    display: flex !important;
  }
  nav ul li {
    width: 100%;
    list-style: none;
  }
  nav a {
    display: block;
    padding: 14px 16px;
    border-radius: 12px;
    font-size: 16px;
    text-align: center;
  }
  nav a:hover { background: var(--cream); }
  nav a.active::after { display: none; }
  nav a.active { background: var(--pink-light); }
  .cta-btn {
    text-align: center;
    margin-top: 4px;
  }

  /* 섹션/타이틀 */
  section { padding: 50px 16px; }
  .section-title { font-size: 30px; }
  .section-subtitle { font-size: 14px; margin-bottom: 36px; }

  /* 푸터 */
  .footer-container {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }
  .footer-brand {
    grid-column: 1 / -1;
    text-align: center;
  }
  .footer-brand h3 { font-size: 24px; }
  .footer-brand p { font-size: 13px; }
  .social-icons { justify-content: center; }
  .footer-col h4 { font-size: 14px; margin-bottom: 12px; }
  .footer-col li, .footer-col a { font-size: 13px; }
  .footer-bottom { font-size: 12px; padding-top: 20px; }
  footer { padding: 40px 20px 20px; }

  /* 버튼 */
  .btn { padding: 12px 24px; font-size: 15px; }
}

/* ============== SMALL MOBILE ============== */
@media (max-width: 380px) {
  .logo-icon {
    width: 48px;
    height: 48px;
  }
  main { padding-top: 68px; }
  .section-title { font-size: 26px; }
  .footer-container {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .footer-col { text-align: center; }
}
