/* Reset-ish */
* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
}

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

ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

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

/* Theme tokens */
:root {
    --brand: #1565c0;
    --brand-600: #0f57a7;
    --ink: #111827;
    --sub: #6b7280;
    --bg: #ffffff;
    --bg-soft: #f7f8fa;
    --line: #e5e7eb;
    --radius: 16px;
    --shadow: 0 6px 20px rgba(0, 0, 0, .08);
}

body {
    font-family: "Noto Sans KR", sans-serif;
    color: var(--ink);
    background: var(--bg);
    line-height: 1.6;
}

/* Layout helpers */
.container {
    width: min(1200px, 92vw);
    margin: 0 auto;
}

.section {
    padding: 64px 0;
}

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

.sec-head h2 {
    margin: 0 0 8px;
    font-size: clamp(20px, 3.5vw, 28px);
}

.sec-head p {
    margin: 0 0 24px;
    color: var(--sub);
}

/* Skip */
.skip-link {
    position: absolute;
    left: -9999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.skip-link:focus {
    position: static;
    width: auto;
    height: auto;
    padding: 8px;
    background: #000;
    color: #fff;
}

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: #fff;
    border-bottom: 1px solid var(--line);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.logo img{
    height: 40px;
    object-fit: contain ;
}

/* GNB */
.nav-toggle {
    display: inline-grid;
    gap: 5px;
    background: none;
    border: 0;
    padding: 8px;
    cursor: pointer;
}

.nav-toggle .bar {
    width: 26px;
    height: 2px;
    background: #111;
}

.nav-toggle {
    display: none;
}

.gnb .depth1 {
    display: flex;
    gap: 10px;
}

.gnb .d1 {
    font-size: 16px;
    border: 0;
    background: none;
    padding: 10px 14px;
    cursor: pointer;
    font-weight: 600;
}

.gnb .has-sub {
    position: relative;
}

.gnb .depth2 {
    position: absolute;
    left: 0;
    top: 100%;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: var(--shadow);
    min-width: 220px;
    padding: 8px;
    display: none;
}

.gnb .depth2 a {
    display: block;
    padding: 10px 12px;
    border-radius: 8px;
    color: #111;
}

.gnb .depth2 a:hover {
    background: #f3f4f6;
}

/* Hover open on desktop */
@media (hover:hover) {
    .gnb .has-sub:hover>.depth2 {
        display: block;
    }
}

/* Mobile nav */
@media (max-width: 1024px) {
    .nav-toggle {
        display: inline-grid;
    }

    .gnb {
        position: fixed;
        inset: 64px 0 auto 0;
        /* below header */
        background: #fff;
        border-top: 1px solid var(--line);
        transform: translateY(-8px);
        opacity: 0;
        pointer-events: none;
        transition: .2s ease;
    }

    .gnb.open {
        transform: none;
        opacity: 1;
        pointer-events: auto;
    }

    .gnb .depth1 {
        flex-direction: column;
        padding: 10px;
    }

    .gnb .has-sub {
        border: 1px solid var(--line);
        border-radius: 12px;
    }

    .gnb .d1 {
        width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .gnb .d1::after {
        content: "▾";
        font-size: 12px;
        opacity: .6;
    }

    .gnb .depth2 {
        position: static;
        display: none;
        border: 0;
        box-shadow: none;
        padding: 6px 8px 10px;
    }

    .gnb .has-sub.open>.depth2 {
        display: block;
    }
}

/* Hero */
.hero {
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.5) 100%),
        url("/assets/img/main-bg.jpg");
    border-bottom: 1px solid var(--line);
}

@media screen and (max-width:480px) {
    .hero {
        background-position: center bottom;
    }
}

.hero-inner {
    padding: clamp(48px, 7vw, 96px) 0;
    text-align: center;
}

.hero h1 {
    margin: 0 0 12px;
    font-size: clamp(24px, 5vw, 40px);
    line-height: 1.25;
}

.hero h1 span {
    color: var(--brand);
}

.hero-desc {
    margin: 0 auto 12px;
    max-width: 680px;
    font-weight: 600;
}

.hero .btn {
    margin: 6px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 10px 16px;
    border-radius: 12px;
    border: 1px solid var(--line);
    font-weight: 600;
    transition: 0.3s ease-out;
}

.btn.primary {
    background: var(--brand);
    color: #fff;
    border-color: var(--brand);
    transition: 0.3s ease-out;
}

.btn.primary:hover {
    background: var(--brand-600);
    border-color: var(--brand-600);
}

.btn.ghost {
    background: #fff;
}

.btn.ghost:hover {
    background: #e3ebf3;
}

/* Cards */
.card-grid {
    display: grid;
    gap: 16px;
}

.card img {
    padding: 20px;
    margin: 0 auto;
    max-height: 240px;
}

.card-grid.cols-3 {
    grid-template-columns: repeat(1, 1fr);
}

@media (min-width:640px) {
    .card-grid.cols-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width:960px) {
    .card-grid.cols-3 {
        grid-template-columns: repeat(3, 1fr);
    }
}

.card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: transform .15s ease, box-shadow .15s ease;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 26px rgba(0, 0, 0, .1);
}

.card .thumb {
    height: 140px;
    background: linear-gradient(135deg, #e2e8f0, #f1f5f9);
}

.card h3 {
    margin: 12px 12px 4px;
    font-size: 18px;
}

.card p {
    margin: 0 12px 14px;
    color: var(--sub);
}

/* Maintenance feature */
.feature {
    display: grid;
    gap: 16px;
    grid-template-columns: 1fr;
}

.feature>div {
    text-align: center;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 16px 18px;
    box-shadow: var(--shadow);
}

.feature-card img {
    margin: 0 auto;
}

.feature-card {
    transition: 0.3s ease-out;
}

.feature-card:hover {
    transform: translateY(-5px)
}

@media (min-width:960px) {
    .feature {
        grid-template-columns: repeat(3, 1fr);
    }
}

.cta-line {
    margin-bottom: 16px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* Support slim */
.support-slim {
    text-align: center;
}

/* ===== 고객센터 ===== */
.call-grid {
    margin: 0 auto;
    display: grid;
    gap: 16px;
    grid-template-columns: 1fr 1fr;
    max-width: 880px;
}

@media screen and (max-width:1024px){
    .call-grid {
        grid-template-columns: 1fr;
    }
}

.call-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: var(--shadow);
    padding: 24px;
    text-align: center;
}

.call-card h2 {
    margin: 0 0 10px;
    font-size: 18px;
}

.call-number {
    display: inline-block;
    font-size: clamp(24px, 6vw, 40px);
    font-weight: 800;
    letter-spacing: .5px;
    color: var(--ink);
    text-decoration: none;
    padding: 6px 10px;
    border-radius: 10px;
}

.call-number:focus-visible,
.call-number:hover {
    background: #f3f6ff;
    outline: 2px solid var(--brand);
    outline-offset: 2px;
}

/* Footer */
.site-footer {
    border-top: 1px solid var(--line);
    background: #f7f8fa;
}

.footer-inner {
    padding: 28px 0;
    display: grid;
    gap: 14px;
}

.f-brand .logo.small {
    font-weight: 700;
}

.f-brand .logo .logo-mark {
    width: 28px;
    height: 28px;
    border-radius: 8px;
}

.f-desc {
    color: var(--sub);
    margin-top: 6px;
}

.f-info p {
    margin: 2px 0;
    color: var(--sub);
}

.f-copy {
    margin-top: 8px;
    color: #9aa3af;
    font-size: 14px;
    border-top: 1px solid var(--line);
    padding-top: 10px;
}

/* A11y */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}