/* ─── AceEdu 공통 스타일 ─────────────────────────────────────────── */
:root {
  --navy: #0d2b55;
  --navy-mid: #1a3f7a;
  --navy-light: #2256a8;
  --gold: #c9a84c;
  --gold-light: #e8c96e;
  --white: #ffffff;
  --off-white: #f7f8fc;
  --gray: #e2e6ef;
  --text-dark: #0d1f3c;
  --text-mid: #4a5568;
  --text-light: #8898aa;
  --radius: 14px;
  --shadow: 0 8px 32px rgba(13,43,85,0.13);
  --transition: 0.32s cubic-bezier(0.4,0,0.2,1);
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Noto Sans KR', sans-serif;
  color: var(--text-dark);
  background: var(--white);
  overflow-x: hidden;
}

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 999;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 5%; height: 68px;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 16px rgba(13,43,85,0.09);
}
.nav-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.65rem; color: var(--navy);
  text-decoration: none; letter-spacing: -0.5px;
}
.nav-logo span { color: var(--gold); }
.nav-links { display: flex; gap: 2rem; list-style: none; }
.nav-links a {
  text-decoration: none; font-size: 0.93rem; font-weight: 500;
  color: var(--text-mid); position: relative; padding-bottom: 4px;
  transition: color var(--transition);
}
.nav-links a::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 100%;
  height: 2px; background: var(--gold);
  transition: right var(--transition);
}
.nav-links a:hover, .nav-links a.active { color: var(--navy); }
.nav-links a:hover::after, .nav-links a.active::after { right: 0; }
.nav-cta {
  background: var(--gold) !important; color: var(--navy) !important;
  font-weight: 700 !important; padding: 0.48rem 1.2rem;
  border-radius: 50px !important;
}
.nav-cta::after { display: none !important; }
.nav-cta:hover { background: var(--gold-light) !important; }
.hamburger {
  display: none; flex-direction: column; gap: 5px;
  cursor: pointer; padding: 4px; background: none; border: none;
}
.hamburger span { display: block; width: 24px; height: 2px; background: var(--navy); transition: var(--transition); }
@media (max-width: 768px) {
  .nav-links {
    display: none; flex-direction: column;
    position: fixed; top: 68px; left: 0; right: 0;
    background: var(--white); padding: 1.5rem 5%;
    gap: 1.1rem; box-shadow: var(--shadow);
  }
  .nav-links.open { display: flex; }
  .hamburger { display: flex; }
}

/* ── PAGE HEADER (non-home pages) ── */
.page-header {
  min-height: 280px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 60%, var(--navy-light) 100%);
  display: flex; align-items: flex-end;
  padding: 100px 5% 3rem;
  position: relative; overflow: hidden;
}
.page-header::before {
  content: ''; position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.page-header-content { position: relative; z-index: 1; }
.page-header-label {
  font-size: 0.78rem; font-weight: 700; letter-spacing: 2px;
  text-transform: uppercase; color: var(--gold); margin-bottom: 0.5rem;
}
.page-header h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  color: var(--white); line-height: 1.25;
}

/* ── SECTION COMMON ── */
.section { padding: 80px 5%; }
.section-alt { background: var(--off-white); }
.section-label {
  text-align: center; font-size: 0.78rem; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase;
  color: var(--gold); margin-bottom: 0.5rem;
}
.section-title {
  text-align: center;
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.6rem, 3.5vw, 2.3rem);
  color: var(--navy); margin-bottom: 0.9rem; line-height: 1.3;
}
.section-desc {
  text-align: center; color: var(--text-mid);
  font-size: 0.97rem; line-height: 1.8;
  max-width: 580px; margin: 0 auto 3rem;
}
.container { max-width: 1100px; margin: 0 auto; }

/* ── BUTTONS ── */
.btn {
  display: inline-flex; align-items: center; gap: 0.45rem;
  padding: 0.82rem 1.9rem; border-radius: 50px;
  font-size: 0.97rem; font-weight: 700; font-family: inherit;
  text-decoration: none; cursor: pointer; border: none;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
}
.btn:hover { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(0,0,0,0.18); }
.btn-gold { background: var(--gold); color: var(--navy); }
.btn-gold:hover { background: var(--gold-light); }
.btn-navy { background: var(--navy); color: var(--white); }
.btn-navy:hover { background: var(--navy-mid); }
.btn-outline { background: transparent; color: var(--white); border: 2px solid rgba(255,255,255,0.6); }
.btn-outline:hover { background: rgba(255,255,255,0.1); border-color: var(--white); }
.btn-kakao { background: #FEE500; color: #3c1e1e; font-weight: 700; }
.btn-kakao:hover { background: #ffe033; }

/* ── CARDS ── */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.4rem;
}
.card {
  background: var(--white); border-radius: var(--radius);
  padding: 2rem 1.7rem; box-shadow: var(--shadow);
  border-top: 4px solid var(--gold);
  transition: transform var(--transition), box-shadow var(--transition);
}
.card:hover { transform: translateY(-5px); box-shadow: 0 16px 48px rgba(13,43,85,0.16); }
.card-icon {
  width: 50px; height: 50px; border-radius: 12px;
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; margin-bottom: 1.1rem;
}
.card h3 { font-size: 1.05rem; font-weight: 700; color: var(--navy); margin-bottom: 0.5rem; }
.card p { font-size: 0.9rem; color: var(--text-mid); line-height: 1.72; }

/* ── FOOTER ── */
footer {
  background: var(--navy); color: rgba(255,255,255,0.7);
  padding: 50px 5% 28px;
}
.footer-inner {
  max-width: 1100px; margin: 0 auto;
  display: flex; flex-wrap: wrap; gap: 2rem; justify-content: space-between;
  padding-bottom: 2rem; border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand .logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem; color: var(--white); margin-bottom: 0.5rem;
}
.footer-brand .logo span { color: var(--gold); }
.footer-brand p { font-size: 0.83rem; line-height: 1.7; max-width: 240px; }
.footer-col h4 { color: var(--white); font-size: 0.88rem; margin-bottom: 0.75rem; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.35rem; }
.footer-col a { text-decoration: none; font-size: 0.83rem; color: rgba(255,255,255,0.6); transition: color var(--transition); }
.footer-col a:hover { color: var(--gold); }
.footer-col p { font-size: 0.83rem; margin-bottom: 0.35rem; }
.footer-bottom {
  max-width: 1100px; margin: 1.4rem auto 0;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 0.5rem; font-size: 0.79rem;
}
.footer-bottom a { color: rgba(255,255,255,0.45); text-decoration: none; }
.footer-bottom a:hover { color: var(--gold); }

/* ── FLOATING CTA ── */
.float-cta {
  position: fixed; bottom: 1.8rem; right: 1.8rem; z-index: 888;
  display: flex; flex-direction: column; gap: 0.6rem; align-items: flex-end;
}
.float-btn {
  display: flex; align-items: center; gap: 0.45rem;
  padding: 0.65rem 1.2rem; border-radius: 50px;
  font-size: 0.88rem; font-weight: 700; text-decoration: none;
  box-shadow: 0 6px 20px rgba(0,0,0,0.22);
  transition: transform var(--transition), box-shadow var(--transition);
  white-space: nowrap;
}
.float-btn:hover { transform: translateY(-3px); box-shadow: 0 10px 28px rgba(0,0,0,0.28); }
.float-kakao { background: #FEE500; color: #3c1e1e; }
.float-phone { background: var(--navy); color: var(--white); }

/* ── FADE IN ANIMATION ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-in { opacity: 0; transform: translateY(22px); transition: opacity 0.65s ease, transform 0.65s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ── LOADING SPINNER ── */
.loading-wrap {
  display: flex; align-items: center; justify-content: center;
  min-height: 200px;
}
.spinner {
  width: 36px; height: 36px; border: 3px solid var(--gray);
  border-top-color: var(--gold); border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 768px) {
  .section { padding: 60px 5%; }
  .float-cta { bottom: 1rem; right: 1rem; }
  .float-btn { padding: 0.55rem 1rem; font-size: 0.82rem; }
  .footer-inner { flex-direction: column; gap: 1.5rem; }
}
