@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.2/css/all.min.css');

/* ================================
           CSS RESET & CUSTOM PROPERTIES
           ================================ */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --yellow: #f5c518;
    --yellow-light: #fff8dc;
    --yellow-mid: #ffe066;
    --red: #e02020;
    --dark: #1a1a2e;
    --text: #2d2d2d;
    --muted: #666;
    --bg: #fffdf4;
    --white: #ffffff;
    --card-bg: #fffff8;
    --border: #f0e68c;
    --shadow: 0 4px 24px rgba(245, 197, 24, 0.10);
    --radius: 14px;
}

html {
    scroll-behavior: smooth;
}

body {
    /* font-family: 'Segoe UI', 'Noto Sans KR', Arial, sans-serif; */
    font-family: 'Quicksand', 'Inter', 'Noto Sans KR', Arial, sans-serif;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.58);
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
    font-size: 16px;
}

/* ── NAVBAR ── */
nav {
    position: sticky;
    top: 0;
    z-index: 9999;
    background: var(--white);
    border-bottom: 2px solid var(--yellow);
    box-shadow: 0 2px 12px rgba(245, 197, 24, 0.13);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 5%;
    height: 62px;
}

.nav-logo {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--red);
    letter-spacing: -0.5px;
    text-decoration: none;
}

.nav-logo span {
    color: var(--yellow);
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: var(--text);
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--red);
}

.nav-cta {
    background: var(--red);
    color: var(--white) !important;
    padding: 0.45rem 1.1rem;
    border-radius: 50px;
    font-weight: 700 !important;
    font-size: 0.9rem !important;
    transition: background 0.2s !important;
}

.nav-cta:hover {
    background: #b01010 !important;
    color: var(--white) !important;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
}

.hamburger span {
    display: block;
    width: 26px;
    height: 3px;
    background: var(--text);
    border-radius: 3px;
    transition: all 0.3s;
}

/* ── HERO ── */
#home {
    background: linear-gradient(135deg, #1a1a2e 0%, #2d1a00 60%, #3d2200 100%);
    color: var(--white);
    padding: 90px 5% 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

#home::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 60% 40%, rgba(245, 197, 24, 0.18) 0%, transparent 65%);
}

.hero-badge {
    display: inline-block;
    background: var(--red);
    color: var(--white);
    font-size: 0.78rem;
    font-weight: 700;
    padding: 0.3rem 1rem;
    border-radius: 50px;
    margin-bottom: 1.5rem;
    letter-spacing: 0.5px;
}

.hero-title {
    font-size: clamp(1.8rem, 5vw, 3.2rem);
    font-weight: 900;
    line-height: 1.25;
    margin-bottom: 1.2rem;
    position: relative;
}

.hero-title .highlight {
    color: var(--yellow);
}

.hero-subtitle {
    font-size: clamp(0.9rem, 2vw, 1.1rem);
    color: rgba(255, 255, 255, 0.78);
    max-width: 600px;
    margin: 0 auto 2.5rem;
}

.hero-btns {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;

}

.btn-primary {
    background: var(--red);
    color: var(--white);
    border: none;
    padding: 0.85rem 2rem;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s, transform 0.15s;
    display: inline-block;
    z-index: 999;
}

.btn-primary:hover {
    background: #b01010;
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.5);
    padding: 0.85rem 2rem;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    transition: border-color 0.2s, background 0.2s, transform 0.15s;
    display: inline-block;
    z-index: 999;
}

.btn-outline:hover {
    border-color: var(--yellow);
    color: var(--yellow);
    transform: translateY(-2px);
}

/* ── SECTIONS COMMON ── */
section {
    padding: 80px 5%;
}

.section-title {
    text-align: center;
    font-size: clamp(1.4rem, 3.5vw, 2.1rem);
    font-weight: 900;
    color: var(--dark);
    margin-bottom: 0.6rem;
}

.section-sub {
    text-align: center;
    color: var(--muted);
    font-size: 0.97rem;
    margin-bottom: 3rem;
}

.section-divider {
    width: 54px;
    height: 4px;
    background: var(--yellow);
    border-radius: 4px;
    margin: 0.7rem auto 1.2rem;
}

/* ── WHY ── */
#why {
    background: var(--white);
}

.why-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    max-width: 1100px;
    margin: 0 auto;
}

.why-text h2 {
    font-size: clamp(1.3rem, 3vw, 1.9rem);
    font-weight: 900;
    line-height: 1.35;
    margin-bottom: 1.2rem;
    color: var(--dark);
}

.why-text h2 .red {
    color: var(--red);
}

.why-text p {
    color: var(--muted);
    margin-bottom: 1rem;
    font-size: 0.97rem;
}

.why-highlight {
    background: var(--yellow-light);
    border-left: 4px solid var(--yellow);
    padding: 0.9rem 1.2rem;
    border-radius: 0 var(--radius) var(--radius) 0;
    margin: 1.5rem 0;
    font-size: 0.97rem;
    color: var(--text);
}

.why-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--red);
    font-weight: 700;
    text-decoration: none;
    font-size: 0.95rem;
}

.why-link:hover {
    text-decoration: underline;
}

.why-img {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 6px 28px rgba(24, 76, 245, 0.25);
}

.why-img img {
    width: 100%;
    height: 340px;
    object-fit: cover;
    display: block;
}

.why-img-placeholder {
    width: 100%;
    height: 340px;
    background: linear-gradient(135deg, var(--yellow-light), var(--yellow-mid));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: var(--yellow);
    border-radius: var(--radius);
}

/* ── DEFINITION ── */
#definition {
    background: var(--dark);
    color: var(--white);
    text-align: center;
}

#definition .section-title {
    color: var(--white);
}

#definition .section-sub {
    color: rgba(255, 255, 255, 0.6);
}

.def-quote {
    background: rgba(245, 197, 24, 0.10);
    border: 1.5px solid var(--yellow);
    border-radius: var(--radius);
    padding: 2.5rem 2rem;
    max-width: 780px;
    margin: 0 auto 2.5rem;
    font-size: clamp(0.97rem, 2vw, 1.13rem);
    line-height: 1.85;
    color: rgba(255, 255, 255, 0.9);
}

.def-quote strong {
    color: var(--yellow);
}

.def-note {
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.88rem;
    max-width: 680px;
    margin: 0 auto;
}

/* ── GUIDE (REGIONS) ── */
#guide {
    background: var(--bg);
}

.regions-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    max-width: 1100px;
    margin: 0 auto;
}

.region-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1.5px solid var(--border);
    transition: transform 0.22s, box-shadow 0.22s;
}

.region-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 36px rgba(245, 197, 24, 0.18);
}

.region-img {
    position: relative;
    height: 150px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--yellow-mid), var(--yellow-light));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
}

.region-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--red);
    color: var(--white);
    font-size: 0.7rem;
    font-weight: 800;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    letter-spacing: 1px;
}

.region-body {
    padding: 1.1rem 1.2rem 1.4rem;
}

.region-title {
    font-size: 1.08rem;
    font-weight: 800;
    margin-bottom: 0.4rem;
    color: var(--dark);
}

.region-subtitle {
    font-size: 0.78rem;
    color: var(--red);
    font-weight: 700;
    margin-bottom: 0.6rem;
}

.region-desc {
    font-size: 0.83rem;
    color: var(--muted);
    line-height: 1.6;
}

/* ── TIPS ── */
#tips {
    background: var(--white);
}

.tips-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.8rem;
    max-width: 1000px;
    margin: 0 auto;
}

.tip-card {
    background: var(--yellow-light);
    border: 1.5px solid var(--yellow);
    border-radius: var(--radius);
    padding: 2rem 1.6rem;
    transition: box-shadow 0.2s, transform 0.2s;
}

.tip-card:hover {
    box-shadow: 0 8px 28px rgba(245, 197, 24, 0.22);
    transform: translateY(-4px);
}

.tip-num {
    font-size: 0.85rem;
    font-weight: 800;
    color: var(--red);
    margin-bottom: 0.7rem;
    letter-spacing: 0.5px;
}

.tip-title {
    font-size: 1.08rem;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 0.7rem;
}

.tip-desc {
    font-size: 0.88rem;
    color: var(--muted);
    line-height: 1.7;
}

/* ── FAQ ── */
#faq {
    background: var(--bg);
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-item {
    background: var(--white);
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(245, 197, 24, 0.07);
}

.faq-q {
    width: 100%;
    background: none;
    border: none;
    text-align: left;
    padding: 1.2rem 1.5rem;
    font-size: 0.98rem;
    font-weight: 700;
    color: var(--dark);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    transition: background 0.2s;
}

.faq-q:hover {
    background: var(--yellow-light);
}

.faq-q .faq-icon {
    font-size: 1.2rem;
    font-weight: 900;
    color: var(--yellow);
    transition: transform 0.3s;
    flex-shrink: 0;
}

.faq-item.open .faq-icon {
    transform: rotate(45deg);
}

.faq-a {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.38s ease, padding 0.3s;
    padding: 0 1.5rem;
    font-size: 0.92rem;
    color: var(--muted);
    line-height: 1.75;
}

.faq-item.open .faq-a {
    max-height: 300px;
    padding: 0 1.5rem 1.3rem;
}

/* ── CTA ── */
#cta {
    background: linear-gradient(135deg, #1a1a2e 0%, #2d1a00 100%);
    color: var(--white);
    text-align: center;
    padding: 90px 5%;
    position: relative;
    overflow: hidden;
}

#cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 60%, rgba(245, 197, 24, 0.15) 0%, transparent 65%);
}

#cta .section-title {
    color: var(--white);
    position: relative;
}

#cta .section-sub {
    color: rgba(255, 255, 255, 0.7);
    position: relative;
}

#cta .btn-primary {
    position: relative;
    font-size: 1.1rem;
    padding: 1rem 2.6rem;
}

/* ── FOOTER ── */
footer {
    background: #111;
    color: rgba(255, 255, 255, 0.5);
    text-align: center;
    padding: 2rem 5%;
    font-size: 0.85rem;
}

footer strong {
    color: var(--yellow);
}

/* ── MOBILE ── */
@media (max-width: 900px) {
    .regions-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .tips-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .why-grid {
        grid-template-columns: 1fr;
    }

    .why-img {
        display: none;
    }
}

@media (max-width: 600px) {
    nav {
        padding: 0 4%;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 62px;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 1.5rem 5%;
        gap: 1.2rem;
        border-bottom: 2px solid var(--yellow);
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    }

    .nav-links.open {
        display: flex;
    }

    .hamburger {
        display: flex;
    }

    .regions-grid {
        grid-template-columns: 1fr;
    }

    .tips-grid {
        grid-template-columns: 1fr;
    }

    section {
        padding: 60px 5%;
    }

    .hero-btns {
        flex-direction: column;
        align-items: center;
    }
}

/* ── SCROLL ANIMATE ── */
.fade-up {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.55s ease, transform 0.55s ease;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}