:root {
    --color-bg: #f7f5f1;
    --color-bg-alt: #efeae2;
    --color-text: #1c1c1c;
    --color-muted: #5c5c5c;
    --color-accent: #1f4f6b;
    --color-accent-dark: #16384d;
    --color-header: rgba(255, 255, 255, 0.92);
    --header-height: 72px;
    --content-width: 1200px;
    --font: "Noto Sans KR", sans-serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--font);
    color: var(--color-text);
    background: var(--color-bg);
    line-height: 1.6;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.content-wrap {
    width: min(100% - 40px, var(--content-width));
    margin-inline: auto;
}

/* Header */
.site-header {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 100;
    height: var(--header-height);
    background: var(--color-header);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.header-inner {
    width: min(100% - 40px, var(--content-width));
    height: 100%;
    margin-inline: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.logo {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
}

.logo img {
    width: 167px;
    height: 60px;
    object-fit: contain;
}

.top-nav ul {
    display: flex;
    gap: 28px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.top-nav a {
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    color: var(--color-text);
    transition: color 0.2s ease;
}

.top-nav a:hover,
.top-nav a.is-active {
    color: var(--color-accent);
}

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 0;
    background: transparent;
    padding: 10px;
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    margin: 5px 0;
    background: var(--color-text);
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-toggle.is-open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle.is-open span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.is-open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Hero 1920 x 780 */
.hero {
    position: relative;
    width: 100%;
    aspect-ratio: 1920 / 780;
    min-height: 420px;
    margin-top: var(--header-height);
    background:
        linear-gradient(120deg, rgba(22, 56, 77, 0.72), rgba(31, 79, 107, 0.45)),
        url("/assets/images/hero.jpg") center / cover no-repeat,
        linear-gradient(135deg, #1f4f6b 0%, #2a6f8f 45%, #c9b59a 100%);
    display: grid;
    place-items: center;
    color: #fff;
}

.hero-inner {
    width: min(100% - 40px, var(--content-width));
    text-align: center;
}

.hero-logo-area {
    animation: heroFade 0.9s ease both;
}

.hero-brand {
    margin: 0 0 12px;
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    letter-spacing: -0.03em;
}

.hero-lead {
    margin: 0;
    font-size: clamp(1rem, 2vw, 1.25rem);
    font-weight: 300;
    opacity: 0.92;
}

@keyframes heroFade {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Sections */
.section {
    padding: 96px 0;
}

.section-alt {
    background: var(--color-bg-alt);
}

.section-title {
    margin: 0 0 12px;
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    letter-spacing: 0.04em;
    color: var(--color-accent);
}

.section-desc {
    margin: 0 0 32px;
    color: var(--color-muted);
    font-size: 1.05rem;
}

.section-body {
    font-size: 1rem;
    color: var(--color-text);
}

.history-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 16px;
}

.history-list .year {
    display: inline-block;
    min-width: 64px;
    margin-right: 12px;
    font-weight: 700;
    color: var(--color-accent);
}

.contact-info p {
    margin: 0 0 8px;
}

/* Footer */
.site-footer {
    padding: 48px 0;
    background: var(--color-accent-dark);
    color: rgba(255, 255, 255, 0.88);
    text-align: center;
}

.footer-brand {
    margin: 0 0 8px;
    font-weight: 700;
}

.footer-copy {
    margin: 0;
    font-size: 0.875rem;
    opacity: 0.75;
}

/* Responsive */
@media (max-width: 900px) {
    .nav-toggle {
        display: block;
    }

    .top-nav {
        position: fixed;
        top: var(--header-height);
        left: 0;
        right: 0;
        background: #fff;
        border-bottom: 1px solid rgba(0, 0, 0, 0.08);
        transform: translateY(-120%);
        opacity: 0;
        pointer-events: none;
        transition: transform 0.25s ease, opacity 0.25s ease;
    }

    .top-nav.is-open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }

    .top-nav ul {
        flex-direction: column;
        gap: 0;
        padding: 8px 20px 16px;
    }

    .top-nav a {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 14px 4px 14px 0;
        border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    }

    .top-nav a::after {
        content: "";
        width: 8px;
        height: 8px;
        margin-left: 12px;
        border-right: 2px solid currentColor;
        border-top: 2px solid currentColor;
        transform: rotate(45deg);
        flex-shrink: 0;
        opacity: 0.45;
    }

    .hero {
        aspect-ratio: auto;
        height: auto;
        min-height: min(56vw, 520px);
        padding: 64px 0;
    }

    .section {
        padding: 72px 0;
    }
}

@media (max-width: 600px) {
    :root {
        --header-height: 64px;
    }

    .logo img {
        width: 139px;
        height: 50px;
    }

    .content-wrap {
        width: min(100% - 28px, var(--content-width));
    }

    .hero {
        min-height: 360px;
    }
}
