/* ===== Wyatt Prep 영어유치원 — Design System ===== */
:root {
    --navy: #0f1f33;
    --navy-light: #16304f;
    --navy-soft: #24405f;
    --gold: #c9a227;
    --gold-light: #e0c25e;
    --bg: #ffffff;
    --bg-alt: #f7f5ef;
    --text: #1c2430;
    --muted: #5a6472;
    --border: #e6e2d6;
    --radius: 14px;
    --shadow: 0 10px 30px rgba(15, 31, 51, 0.08);
    --max-width: 1180px;
    --content-width: 780px;
    --font-serif: 'Noto Serif KR', serif;
    --font-sans: 'Noto Sans KR', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: var(--font-sans);
    color: var(--text);
    background: var(--bg);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4 { font-family: var(--font-serif); color: var(--navy); line-height: 1.35; margin: 0 0 .6em; }
p { margin: 0 0 1em; }
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }
.content-narrow { max-width: var(--content-width); margin: 0 auto; padding: 0 24px; }

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 15px;
    min-height: 44px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.btn-gold { background: var(--gold); color: var(--navy); }
.btn-gold:hover { background: var(--gold-light); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(201,162,39,.35); }
.btn-outline { background: transparent; border-color: var(--gold); color: var(--gold); }
.btn-outline:hover { background: var(--gold); color: var(--navy); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-light); }

/* ===== Header ===== */
.site-header {
    position: sticky; top: 0; z-index: 100;
    background: rgba(255,255,255,.96);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border);
}
.header-inner {
    max-width: var(--max-width); margin: 0 auto; padding: 12px 24px;
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand-logo { border-radius: 8px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-en { font-family: var(--font-serif); font-weight: 700; color: var(--navy); font-size: 17px; letter-spacing: .5px; }
.brand-ko { font-size: 11px; color: var(--gold); font-weight: 500; }
.site-nav { display: flex; align-items: center; gap: 24px; }
.site-nav ul { display: flex; gap: 20px; flex-wrap: wrap; }
.site-nav a { font-size: 14.5px; font-weight: 500; color: var(--text); padding: 6px 2px; border-bottom: 2px solid transparent; }
.site-nav a:hover, .site-nav a.active { color: var(--navy); border-bottom-color: var(--gold); }
.nav-cta { padding: 10px 20px; font-size: 13.5px; white-space: nowrap; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; min-width: 44px; min-height: 44px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--navy); display: block; }

@media (max-width: 900px) {
    .nav-toggle { display: flex; }
    .site-nav {
        position: fixed; top: 65px; left: 0; right: 0; background: #fff;
        flex-direction: column; align-items: flex-start; gap: 0;
        max-height: 0; overflow: hidden; transition: max-height .3s ease;
        border-bottom: 1px solid var(--border); box-shadow: var(--shadow);
    }
    .site-nav.open { max-height: 600px; }
    .site-nav ul { flex-direction: column; width: 100%; gap: 0; padding: 12px 24px; }
    .site-nav ul li { width: 100%; border-bottom: 1px solid var(--border); }
    .site-nav ul li a { display: block; padding: 14px 0; }
    .nav-cta { margin: 16px 24px 20px; }
}

/* ===== Hero ===== */
.hero {
    background: linear-gradient(160deg, var(--navy) 0%, var(--navy-light) 55%, var(--navy-soft) 100%);
    color: #fff;
    padding: 90px 0 100px;
    position: relative;
    overflow: hidden;
}
.hero::after {
    content: ""; position: absolute; inset: 0;
    background: radial-gradient(circle at 80% 20%, rgba(201,162,39,.18), transparent 55%);
    pointer-events: none;
}
.hero-inner { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.hero-eyebrow { display: inline-block; color: var(--gold-light); font-size: 13.5px; font-weight: 700; letter-spacing: 2px; margin-bottom: 18px; text-transform: uppercase; }
.hero h1 { font-size: clamp(40px, 6vw, 64px); color: #fff; margin-bottom: 20px; }
.hero-sub { font-size: 18px; color: rgba(255,255,255,.82); margin-bottom: 28px; max-width: 520px; }
.hero-cta-row { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-media { border-radius: var(--radius); overflow: hidden; box-shadow: 0 24px 60px rgba(0,0,0,.35); border: 1px solid rgba(255,255,255,.15); }
.hero-media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/3; }
@media (max-width: 900px) {
    .hero-inner { grid-template-columns: 1fr; }
    .hero { padding: 56px 0 64px; text-align: left; }
}

/* generic page hero (subpages) */
.page-hero {
    background: linear-gradient(160deg, var(--navy) 0%, var(--navy-light) 100%);
    color: #fff; padding: 64px 0; text-align: center;
}
.page-hero h1 { color: #fff; font-size: clamp(30px, 5vw, 44px); margin-bottom: 12px; }
.page-hero p { color: rgba(255,255,255,.8); max-width: 640px; margin: 0 auto; font-size: 16.5px; }
.badge {
    display: inline-block; background: var(--gold); color: var(--navy);
    font-size: 12.5px; font-weight: 700; padding: 6px 14px; border-radius: 999px; margin-bottom: 14px;
}

/* ===== Sections ===== */
section { padding: 72px 0; }
.section-alt { background: var(--bg-alt); }
.section-navy { background: var(--navy); color: #fff; }
.section-navy h2, .section-navy h3 { color: #fff; }
.eyebrow { color: var(--gold); font-weight: 700; font-size: 13px; letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 10px; display: block; }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 44px; }
.section-head h2 { font-size: clamp(26px, 3.4vw, 36px); }
.section-head p { color: var(--muted); font-size: 16px; }

/* ===== Trust bar ===== */
.trust-bar { display: flex; flex-wrap: wrap; justify-content: center; gap: 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.trust-item { flex: 1 1 200px; text-align: center; padding: 28px 20px; border-right: 1px solid var(--border); }
.trust-item:last-child { border-right: none; }
.trust-item strong { display: block; font-family: var(--font-serif); font-size: 26px; color: var(--navy); }
.trust-item span { font-size: 13.5px; color: var(--muted); }

/* ===== Stats / counters ===== */
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stat-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 32px 20px; text-align: center; box-shadow: var(--shadow); }
.stat-card .num { font-family: var(--font-serif); font-size: 42px; color: var(--gold); font-weight: 700; }
.stat-card .label { color: var(--navy); font-weight: 500; margin-top: 6px; font-size: 15px; }
@media (max-width: 900px) { .stat-grid { grid-template-columns: repeat(2, 1fr); } }

/* ===== Cards ===== */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.card-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.card {
    background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
    padding: 30px 26px; box-shadow: var(--shadow); transition: transform .25s ease;
}
.card:hover { transform: translateY(-4px); }
.card .icon { width: 46px; height: 46px; border-radius: 12px; background: var(--navy); color: var(--gold); display: flex; align-items: center; justify-content: center; font-family: var(--font-serif); font-weight: 700; margin-bottom: 16px; }
.card h3 { font-size: 19px; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 15px; margin-bottom: 0; }
@media (max-width: 960px) { .card-grid, .card-grid.cols-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .card-grid, .card-grid.cols-4 { grid-template-columns: 1fr; } }

/* ===== Gallery ===== */
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.gallery-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.gallery-item { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); position: relative; }
.gallery-item img { width: 100%; aspect-ratio: 4/3; object-fit: cover; transition: transform .4s ease; }
.gallery-item:hover img { transform: scale(1.06); }
.gallery-cap { position: absolute; bottom: 0; left: 0; right: 0; background: linear-gradient(0deg, rgba(15,31,51,.85), transparent); color: #fff; padding: 14px 16px 10px; font-size: 13.5px; font-weight: 500; }
@media (max-width: 900px) { .gallery-grid, .gallery-grid.cols-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .gallery-grid, .gallery-grid.cols-3 { grid-template-columns: 1fr; } }

/* ===== Director / person block ===== */
.person-block { display: grid; grid-template-columns: .8fr 1.2fr; gap: 44px; align-items: center; }
.person-block img { border-radius: var(--radius); box-shadow: var(--shadow); aspect-ratio: 3/4; object-fit: cover; }
.signature { color: var(--gold); font-family: var(--font-serif); font-size: 22px; margin-top: 18px; font-style: italic; }
blockquote.quote { font-family: var(--font-serif); font-size: 20px; color: var(--navy); border-left: 4px solid var(--gold); padding: 6px 0 6px 22px; margin: 22px 0; font-style: italic; }
@media (max-width: 860px) { .person-block { grid-template-columns: 1fr; } }

/* ===== Testimonial ===== */
.testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.testi-card { background: #fff; border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); border-top: 3px solid var(--gold); }
.testi-card p { font-family: var(--font-serif); font-style: italic; color: var(--navy); }
.testi-name { color: var(--muted); font-size: 13.5px; font-weight: 700; }
@media (max-width: 900px) { .testi-grid { grid-template-columns: 1fr; } }

/* ===== Final CTA ===== */
.final-cta { background: linear-gradient(120deg, var(--gold) 0%, var(--gold-light) 100%); color: var(--navy); text-align: center; padding: 64px 0; }
.final-cta h2 { color: var(--navy); }
.final-cta .badge { background: var(--navy); color: var(--gold-light); }

/* ===== Tables ===== */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 24px 0; border-radius: var(--radius); box-shadow: var(--shadow); }
table.data-table { width: 100%; border-collapse: collapse; min-width: 480px; background: #fff; }
table.data-table th, table.data-table td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--border); font-size: 15px; }
table.data-table th { background: var(--navy); color: #fff; font-weight: 600; }
table.data-table tr:last-child td { border-bottom: none; }
table.data-table tr:nth-child(even) td { background: var(--bg-alt); }

/* ===== Timeline ===== */
.timeline { position: relative; padding-left: 28px; border-left: 2px solid var(--gold); }
.timeline-item { position: relative; padding-bottom: 34px; }
.timeline-item::before { content: ""; position: absolute; left: -34px; top: 4px; width: 12px; height: 12px; border-radius: 50%; background: var(--gold); border: 3px solid #fff; box-shadow: 0 0 0 2px var(--gold); }
.timeline-item .year { color: var(--gold); font-weight: 700; font-family: var(--font-serif); }

/* ===== Process steps ===== */
.step-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; }
.step-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 26px 20px; position: relative; box-shadow: var(--shadow); }
.step-card::before { counter-increment: step; content: counter(step); position: absolute; top: -14px; left: 20px; background: var(--navy); color: var(--gold); width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-family: var(--font-serif); }
@media (max-width: 900px) { .step-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .step-grid { grid-template-columns: 1fr; } }

/* ===== FAQ ===== */
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item summary { cursor: pointer; padding: 18px 4px; font-weight: 600; color: var(--navy); font-size: 16px; list-style: none; display: flex; justify-content: space-between; align-items: center; min-height: 44px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; color: var(--gold); font-size: 22px; }
.faq-item[open] summary::after { content: '\2212'; }
.faq-item p { padding: 0 4px 18px; color: var(--muted); }

/* ===== Forms ===== */
.form-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 36px; box-shadow: var(--shadow); max-width: 640px; margin: 0 auto; }
.form-row { margin-bottom: 18px; }
.form-row label { display: block; font-weight: 600; margin-bottom: 8px; font-size: 14.5px; color: var(--navy); }
.form-row input, .form-row select, .form-row textarea {
    width: 100%; padding: 13px 14px; border: 1px solid var(--border); border-radius: 10px;
    font-family: var(--font-sans); font-size: 15px; min-height: 44px; background: var(--bg-alt);
}
.form-row textarea { min-height: 110px; }
.form-note { font-size: 13px; color: var(--muted); margin-top: 6px; }

/* ===== Callout ===== */
.callout {
    background: var(--bg-alt); border-left: 4px solid var(--gold); border-radius: 0 var(--radius) var(--radius) 0;
    padding: 20px 24px; margin: 26px 0; color: var(--navy); font-size: 15.5px;
}
.callout strong { color: var(--gold); }

/* ===== Chart bars (pure CSS) ===== */
.bar-chart { margin: 22px 0; }
.bar-row { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.bar-label { width: 130px; flex-shrink: 0; font-size: 14px; color: var(--navy); font-weight: 500; }
.bar-track { flex: 1; background: var(--bg-alt); border-radius: 999px; height: 20px; overflow: hidden; }
.bar-fill { height: 100%; background: linear-gradient(90deg, var(--navy), var(--gold)); border-radius: 999px; display: flex; align-items: center; justify-content: flex-end; padding-right: 8px; color: #fff; font-size: 11.5px; font-weight: 700; }

/* ===== Article ===== */
.article-hero { background: linear-gradient(160deg, var(--navy), var(--navy-light)); color: #fff; padding: 56px 0 40px; }
.article-hero .kicker { color: var(--gold-light); font-size: 13.5px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; }
.article-hero h1 { color: #fff; font-size: clamp(26px, 4vw, 38px); margin: 10px 0 16px; }
.article-meta { color: rgba(255,255,255,.7); font-size: 14px; }
.article-thumb { border-radius: var(--radius); overflow: hidden; margin: -40px auto 0; max-width: var(--content-width); box-shadow: var(--shadow); position: relative; z-index: 2; }
.article-thumb img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.article-body { max-width: var(--content-width); margin: 0 auto; padding: 48px 24px 20px; font-size: 17px; line-height: 1.8; }
.article-body h2 { font-size: 25px; margin-top: 48px; padding-top: 6px; border-top: 3px solid var(--gold); padding-top: 18px; }
.article-body h3 { font-size: 19.5px; color: var(--gold); margin-top: 30px; }
.article-body p { margin-bottom: 18px; color: var(--text); }
.article-body ul, .article-body ol { margin: 0 0 20px; padding-left: 22px; }
.article-body li { margin-bottom: 8px; }
.article-body img { border-radius: var(--radius); box-shadow: var(--shadow); margin: 24px 0; }
.article-body figcaption { text-align: center; font-size: 13.5px; color: var(--muted); margin-top: -14px; margin-bottom: 24px; }
.toc-box { background: var(--bg-alt); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px 26px; margin: 30px 0; }
.toc-box h2 { font-size: 16px; margin-bottom: 12px; border: none; padding: 0; }
.toc-box ol { margin: 0; padding-left: 20px; }
.toc-box a { color: var(--navy); font-weight: 500; }
.toc-box a:hover { color: var(--gold); }
.summary-box { background: var(--navy); color: #fff; border-radius: var(--radius); padding: 24px 26px; margin: 0 0 30px; }
.summary-box h2 { color: var(--gold-light); font-size: 15px; border: none; padding: 0; margin-bottom: 10px; }
.summary-box ul { padding-left: 20px; }
.summary-box li { color: rgba(255,255,255,.9); margin-bottom: 6px; }
.related-posts { max-width: var(--max-width); margin: 20px auto 0; padding: 40px 24px 0; border-top: 1px solid var(--border); }
.related-posts h2 { text-align: center; margin-bottom: 30px; }

/* ===== Blog list ===== */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.blog-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform .25s ease; display: flex; flex-direction: column; }
.blog-card:hover { transform: translateY(-4px); }
.blog-card img { aspect-ratio: 16/10; object-fit: cover; }
.blog-card-body { padding: 20px 22px 24px; flex: 1; display: flex; flex-direction: column; }
.blog-card h3 { font-size: 17.5px; margin-bottom: 10px; }
.blog-card p { color: var(--muted); font-size: 14.5px; flex: 1; }
.blog-card .read-more { color: var(--gold); font-weight: 700; font-size: 13.5px; margin-top: 12px; }
@media (max-width: 960px) { .blog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .blog-grid { grid-template-columns: 1fr; } }

/* ===== Footer ===== */
.site-footer { background: var(--navy); color: rgba(255,255,255,.8); padding: 60px 0 0; }
.footer-inner { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; padding-bottom: 40px; }
.footer-col h3 { color: var(--gold-light); font-size: 14px; margin-bottom: 16px; font-family: var(--font-sans); font-weight: 700; }
.footer-col ul li { margin-bottom: 10px; font-size: 14px; }
.footer-col a:hover { color: var(--gold-light); }
.footer-brand .brand-en { color: #fff; font-size: 19px; }
.footer-brand .brand-ko { color: var(--gold-light); }
.footer-brand p { margin-top: 10px; font-size: 14px; color: rgba(255,255,255,.65); }
.footer-notices { border-top: 1px solid rgba(255,255,255,.12); padding: 20px 24px; max-width: var(--max-width); margin: 0 auto; }
.footer-notices p { font-size: 12.5px; color: rgba(255,255,255,.55); margin-bottom: 6px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); text-align: center; padding: 18px 24px; font-size: 12.5px; color: rgba(255,255,255,.5); }
@media (max-width: 900px) { .footer-inner { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-inner { grid-template-columns: 1fr; } }

/* ===== Map ===== */
.map-embed { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--border); }
.map-embed iframe { width: 100%; height: 380px; border: 0; display: block; }

/* ===== Utility ===== */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
@media (max-width: 860px) { .grid-2 { grid-template-columns: 1fr; } }
.fade-in { animation: fadeIn .8s ease both; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 640px) {
    section { padding: 52px 0; }
    .hero { padding: 48px 0 56px; }
}
