:root {
    --site-brand: #c4a35a;
    --site-brand-dark: #13233f;
    --site-brand-hover: #a6843e;
    --site-mist: #f6f1e7;
    --site-ink: #2a2d33;
    --site-muted: #5b616b;
    --site-line: #e4ddcf;
    --site-charcoal: #0f1a2e;
    --site-radius: 4px;
    color-scheme: light;
}

html {
    overflow-x: clip;
    scroll-padding-top: 8rem;
}

body {
    min-width: 320px;
    overflow-x: clip;
    color: var(--site-ink);
    background: #ffffff;
    word-break: keep-all;
    overflow-wrap: break-word;
}

button,
input,
select,
textarea {
    font: inherit;
}

button,
[type="button"],
[type="submit"] {
    cursor: pointer;
}

img,
svg {
    flex-shrink: 0;
}

::selection {
    color: #ffffff;
    background: var(--site-brand);
}

:where(a, button, input, select, textarea, summary):focus-visible {
    outline: 3px solid rgba(75, 114, 190, 0.36);
    outline-offset: 3px;
}

.site-container {
    width: min(1200px, calc(100% - 40px));
    margin-inline: auto;
}

.site-skip-link {
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 1000;
    padding: 10px 14px;
    border-radius: 6px;
    color: #ffffff;
    background: var(--site-brand-dark);
    font-size: 1rem;
    font-weight: 700;
    transform: translateY(-160%);
    transition: transform 160ms ease;
}

.site-skip-link:focus {
    transform: translateY(0);
}

/* Shared public-page primitives */
.page-hero {
    padding-block: clamp(72px, 9vw, 122px);
    border-bottom: 1px solid #e5e8ee;
    background: var(--site-mist);
}

.page-heading {
    color: var(--site-brand-dark);
    font-size: clamp(2.25rem, 5vw, 4rem);
    font-weight: 700;
    line-height: 1.16;
    letter-spacing: -0.045em;
}

.section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--site-brand);
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.section-kicker::before {
    width: 26px;
    height: 2px;
    background: currentColor;
    content: "";
}

.section-title {
    color: var(--site-brand-dark);
    font-size: clamp(1.875rem, 4vw, 2.75rem);
    font-weight: 700;
    line-height: 1.24;
    letter-spacing: -0.04em;
}

.section-lead {
    max-width: 720px;
    color: var(--site-muted);
    font-size: clamp(1rem, 1.8vw, 1.125rem);
    line-height: 1.85;
}

.section-space {
    padding-block: clamp(72px, 9vw, 120px);
}

.surface-card {
    border: 1px solid #e1e5eb;
    border-radius: var(--site-radius);
    background: #ffffff;
    box-shadow: 0 12px 34px rgba(31, 45, 70, 0.055);
}

.btn-primary,
.btn-outline,
.btn-light {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 26px;
    border: 1px solid transparent;
    border-radius: 7px;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    transition: color 180ms ease, background-color 180ms ease, border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.btn-primary {
    color: #ffffff;
    background: var(--site-brand);
    border-color: var(--site-brand);
    box-shadow: 0 9px 24px rgba(75, 114, 190, 0.18);
}

.btn-primary:hover {
    background: var(--site-brand-hover);
    border-color: var(--site-brand-hover);
    box-shadow: 0 12px 28px rgba(75, 114, 190, 0.25);
    transform: translateY(-1px);
}

.btn-outline {
    color: var(--site-brand-dark);
    background: transparent;
    border-color: #b9c2d1;
}

.btn-outline:hover {
    color: var(--site-brand);
    background: #ffffff;
    border-color: var(--site-brand);
}

.btn-light {
    color: var(--site-brand-dark);
    background: #ffffff;
    border-color: #ffffff;
}

.btn-light:hover {
    color: var(--site-brand);
    background: #f8f9fb;
    border-color: #f8f9fb;
}

.field-control:not([type="checkbox"]):not([type="radio"]) {
    width: 100%;
    min-height: 50px;
    padding: 12px 14px;
    border: 1px solid #d5dae3;
    border-radius: 7px;
    color: var(--site-ink);
    background: #ffffff;
    transition: border-color 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

textarea.field-control {
    min-height: 150px;
    resize: vertical;
}

.field-control::placeholder {
    color: #98a0ad;
}

.field-control:hover {
    border-color: #b7c0ce;
}

.field-control:focus {
    border-color: var(--site-brand);
    outline: none;
    box-shadow: 0 0 0 4px rgba(196, 163, 90, 0.18);
}

.prose-tax {
    color: var(--site-muted);
}

.prose-tax h2,
.prose-tax h3 {
    color: var(--site-brand-dark);
}

.prose-tax p,
.prose-tax li {
    color: var(--site-muted);
}

.prose-tax a {
    color: var(--site-brand);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.prose-tax img {
    max-width: 100%;
    height: auto;
    border-radius: var(--site-radius);
}

/* Scroll reveal: content stays visible until JavaScript is fully ready. */
[data-site-reveal] {
    opacity: 1;
    transform: none;
}

html.site-reveal-ready [data-site-reveal]:not(.is-revealed) {
    opacity: 0;
    transform: translate3d(0, var(--site-reveal-distance, 22px), 0);
    will-change: opacity, transform;
}

html.site-reveal-ready [data-site-reveal].is-revealed {
    opacity: 1;
    transform: translate3d(0, 0, 0);
    transition:
        opacity 700ms cubic-bezier(0.22, 1, 0.36, 1) var(--site-reveal-delay, 0ms),
        transform 700ms cubic-bezier(0.22, 1, 0.36, 1) var(--site-reveal-delay, 0ms);
}

/* Transparent illustrated SVGs on the home benefit cards. */
.home-benefit-grid {
    display: grid;
    gap: clamp(18px, 2.2vw, 30px);
}

.home-benefit-card {
    display: flex;
    height: 100%;
    flex-direction: column;
    padding: clamp(28px, 3vw, 40px);
}

.home-benefit-icon {
    display: flex;
    width: 100%;
    min-height: 156px;
    align-items: center;
    justify-content: center;
}

.home-benefit-icon-svg {
    width: min(210px, 76%);
    height: auto;
    object-fit: contain;
}

@media (min-width: 768px) {
    .home-benefit-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .home-benefit-card-title {
        min-height: 3.5rem;
    }
}

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 60;
    border-bottom: 1px solid rgba(40, 59, 99, 0.12);
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(14px);
    transition: box-shadow 180ms ease, border-color 180ms ease;
}

.site-header.is-scrolled {
    border-color: transparent;
    box-shadow: 0 10px 30px rgba(27, 39, 59, 0.09);
}

.site-utility-bar {
    border-bottom: 1px solid #eaedf1;
    background: #f8f9fb;
}

.site-utility-item,
.site-utility-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.site-utility-link {
    transition: color 160ms ease;
}

.site-utility-link:hover {
    color: var(--site-brand);
}

.site-brand {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 12px;
    text-align: left;
}

.site-brand-mark {
    width: 44px;
    height: 44px;
    border: 1px solid #e0e4ea;
    border-radius: 7px;
    object-fit: cover;
    box-shadow: 0 5px 16px rgba(32, 42, 60, 0.08);
}

.site-brand-eyebrow {
    display: block;
    margin-bottom: 4px;
    color: var(--site-brand);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    white-space: nowrap;
}

.site-brand-name {
    display: block;
    overflow: hidden;
    max-width: 230px;
    color: #252a31;
    font-size: 1.0625rem;
    font-weight: 700;
    letter-spacing: -0.025em;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.site-header nav[aria-label="주요 메뉴"] > form {
    display: flex;
}

.site-nav-link {
    position: relative;
    display: inline-flex;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 0 14px;
    color: #333942;
    font-size: 1rem;
    font-weight: 600;
    white-space: nowrap;
    transition: color 160ms ease;
}

.site-nav-link::after {
    position: absolute;
    right: 14px;
    bottom: 0;
    left: 14px;
    height: 2px;
    background: var(--site-brand);
    content: "";
    opacity: 0;
    transform: scaleX(0.45);
    transition: opacity 160ms ease, transform 160ms ease;
}

.site-nav-link:hover,
.site-nav-link.is-active {
    color: var(--site-brand);
}

.site-nav-link:hover::after,
.site-nav-link.is-active::after {
    opacity: 1;
    transform: scaleX(1);
}

.site-nav-chevron {
    transition: transform 180ms ease;
}

.site-nav-dropdown {
    position: relative;
    display: flex;
}

.site-nav-dropdown[data-open="true"] .site-nav-chevron {
    transform: rotate(180deg);
}

.site-dropdown-panel {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    width: 230px;
    padding: 8px;
    border: 1px solid #e0e4ea;
    border-radius: 8px;
    visibility: hidden;
    opacity: 0;
    background: #ffffff;
    box-shadow: 0 18px 45px rgba(25, 36, 61, 0.15);
    pointer-events: none;
    transform: translateY(6px);
    transition: visibility 180ms ease, opacity 180ms ease, transform 180ms ease;
}

/* Keep pointer continuity across the visual gap below the menu button. */
.site-dropdown-panel::before {
    position: absolute;
    right: 0;
    bottom: 100%;
    left: 0;
    height: 12px;
    content: "";
}

.site-nav-dropdown[data-open="true"] .site-dropdown-panel {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.site-dropdown-panel form {
    display: block;
    width: 100%;
}

.site-dropdown-link {
    display: flex;
    width: 100%;
    min-height: 42px;
    align-items: center;
    padding: 0 12px;
    border-radius: 6px;
    color: #424850;
    font-size: 1rem;
    text-align: left;
    transition: color 150ms ease, background-color 150ms ease;
}

.site-dropdown-link:hover,
.site-dropdown-link:focus-visible {
    color: var(--site-brand);
    background: #f4f7fc;
}

.site-header-cta {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    margin-left: 10px;
    padding: 0 20px;
    border: 1px solid var(--site-brand);
    border-radius: 7px;
    color: #ffffff;
    background: var(--site-brand);
    font-size: 1rem;
    font-weight: 700;
    white-space: nowrap;
    transition: background-color 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.site-header-cta:hover,
.site-header-cta.is-active {
    border-color: var(--site-brand-hover);
    background: var(--site-brand-hover);
    box-shadow: 0 8px 22px rgba(75, 114, 190, 0.22);
}

.site-nav-toggle {
    display: inline-flex;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    border: 1px solid #dfe3e9;
    border-radius: 7px;
    color: var(--site-brand-dark);
    background: #ffffff;
    transition: color 150ms ease, border-color 150ms ease, background-color 150ms ease;
}

.site-nav-toggle:hover,
.site-nav-toggle[aria-expanded="true"] {
    color: var(--site-brand);
    border-color: #bdc9df;
    background: #f4f7fc;
}

.site-mobile-panel {
    overflow-y: auto;
    max-height: calc(100dvh - 72px);
    border-top: 1px solid #e4e7ec;
    background: #ffffff;
    box-shadow: 0 20px 35px rgba(27, 39, 59, 0.1);
}

.site-mobile-panel.hidden,
.site-mobile-panel[aria-hidden="true"] {
    display: none;
}

.site-mobile-panel form {
    display: block;
    width: 100%;
}

.site-mobile-link,
.site-mobile-sublink {
    display: flex;
    width: 100%;
    align-items: center;
    color: #30363e;
    text-align: left;
    transition: color 150ms ease, background-color 150ms ease;
}

.site-mobile-link {
    min-height: 52px;
    padding: 0 4px;
    border-bottom: 1px solid #edf0f3;
    font-size: 1rem;
    font-weight: 650;
}

.site-mobile-link:hover,
.site-mobile-link.is-active,
.site-mobile-sublink:hover,
.site-mobile-sublink.is-active {
    color: var(--site-brand);
}

.site-mobile-subnav {
    margin: 7px 0 10px;
    padding: 8px 12px;
    border-radius: 7px;
    background: var(--site-mist);
}

.site-mobile-sublink {
    min-height: 40px;
    padding: 0 8px;
    font-size: 1rem;
}

.site-mobile-cta {
    display: flex;
    width: 100%;
    min-height: 50px;
    align-items: center;
    justify-content: center;
    margin-top: 14px;
    border-radius: 7px;
    color: #ffffff;
    background: var(--site-brand);
    font-size: 1rem;
    font-weight: 700;
    transition: background-color 150ms ease;
}

.site-mobile-cta:hover {
    background: var(--site-brand-hover);
}

.site-mobile-contact {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    gap: 7px;
    border: 1px solid #dfe3e9;
    border-radius: 7px;
    color: var(--site-brand-dark);
    background: #ffffff;
}

a.site-mobile-contact:hover {
    color: var(--site-brand);
    border-color: #bdc9df;
}

/* Footer */
.site-footer {
    color: #ffffff;
    background: var(--site-charcoal);
}

.site-footer-heading {
    color: #ffffff;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.site-footer nav form {
    display: block;
}

.site-footer-link {
    color: rgba(255, 255, 255, 0.62);
    transition: color 150ms ease, transform 150ms ease;
}

.site-footer-link:hover {
    color: #ffffff;
    transform: translateX(2px);
}

.site-footer-contact {
    display: flex;
    align-items: center;
    gap: 9px;
    transition: color 150ms ease;
}

a.site-footer-contact:hover {
    color: #ffffff;
}

/* Floating consultation actions */
.site-floating-actions {
    position: fixed;
    right: clamp(16px, 2.2vw, 30px);
    bottom: calc(18px + env(safe-area-inset-bottom));
    z-index: 55;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.site-floating-actions form {
    display: block;
}

.site-floating-button {
    position: relative;
    display: flex;
    width: 50px;
    height: 50px;
    align-items: center;
    justify-content: center;
    border: 1px solid transparent;
    border-radius: 9px;
    box-shadow: 0 11px 28px rgba(24, 34, 50, 0.18);
    transition: color 160ms ease, background-color 160ms ease, border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.site-floating-phone {
    color: var(--site-brand-dark);
    background: #ffffff;
    border-color: #d8dde5;
}

.site-floating-consult {
    color: #ffffff;
    background: var(--site-brand);
    border-color: var(--site-brand);
}

.site-floating-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 32px rgba(24, 34, 50, 0.23);
}

.site-floating-phone:hover {
    color: var(--site-brand);
    border-color: #aebbd2;
}

.site-floating-consult:hover {
    background: var(--site-brand-hover);
    border-color: var(--site-brand-hover);
}

.site-floating-tooltip {
    position: absolute;
    top: 50%;
    right: calc(100% + 10px);
    padding: 7px 10px;
    border-radius: 5px;
    color: #ffffff;
    background: rgba(37, 42, 49, 0.96);
    font-size: 1rem;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transform: translate(5px, -50%);
    transition: opacity 150ms ease, transform 150ms ease;
}

.site-floating-button:hover .site-floating-tooltip,
.site-floating-button:focus-visible .site-floating-tooltip {
    opacity: 1;
    transform: translate(0, -50%);
}

@media (max-width: 1279.98px) {
    html.nav-open,
    html.nav-open body {
        overflow: hidden;
    }

    .site-header.is-scrolled {
        box-shadow: 0 8px 24px rgba(27, 39, 59, 0.09);
    }
}

@media (min-width: 1280px) {
    .site-nav-toggle,
    .site-mobile-panel {
        display: none !important;
    }
}

@media (max-width: 639.98px) {
    .site-container {
        width: min(100% - 32px, 1200px);
    }

    .page-heading {
        font-size: clamp(2rem, 10vw, 2.75rem);
    }

    .section-title {
        font-size: clamp(1.75rem, 8vw, 2.25rem);
    }

    .btn-primary,
    .btn-outline,
    .btn-light {
        min-height: 47px;
        padding-inline: 21px;
    }

    .site-brand {
        gap: 9px;
    }

    .site-brand-mark {
        width: 40px;
        height: 40px;
    }

    .site-brand-name {
        max-width: 190px;
        font-size: 1rem;
    }

    .site-brand-eyebrow {
        font-size: 1rem;
        letter-spacing: 0.13em;
    }

    .site-floating-button {
        width: 48px;
        height: 48px;
    }

    .site-floating-tooltip {
        display: none;
    }

    html.site-reveal-ready [data-site-reveal]:not(.is-revealed) {
        --site-reveal-distance: 14px;
    }

    .home-benefit-icon {
        min-height: 138px;
    }

    .home-benefit-icon-svg {
        width: min(190px, 82%);
    }

    .home-benefit-card {
        padding: 28px;
    }
}

@media (max-width: 379.98px) {
    .site-brand-name {
        max-width: 168px;
        font-size: 1rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }

    html.site-reveal-ready [data-site-reveal] {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
}

@media print {
    html.site-reveal-ready [data-site-reveal] {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
}

.site-nav-dropdown.is-wide .site-dropdown-panel {
    width: 280px;
}

.kj-eyebrow {
    color: var(--site-brand);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.kj-mark {
    color: var(--site-brand);
}

.kj-hero {
    position: relative;
    min-height: min(88vh, 820px);
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    color: #fff;
    background: #0b1628;
}

.kj-hero img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.kj-hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(11, 22, 40, 0.18) 0%, rgba(11, 22, 40, 0.42) 42%, rgba(11, 22, 40, 0.88) 100%);
}

.kj-hero-inner {
    position: relative;
    z-index: 1;
    width: min(1200px, calc(100% - 40px));
    margin: 0 auto;
    padding: 72px 0 64px;
}

.kj-notice {
    display: inline-block;
    margin-top: 18px;
    padding: 10px 14px;
    border-left: 3px solid var(--site-brand);
    background: rgba(255, 255, 255, 0.08);
    font-size: 1rem;
    line-height: 1.65;
}

.kj-section-head {
    text-align: center;
    max-width: 760px;
    margin-inline: auto;
}

.kj-reason-num {
    color: var(--site-brand);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.18em;
}

.kj-step {
    counter-increment: none;
}

.site-dropdown-link:hover,
.site-dropdown-link:focus-visible {
    background: #f8f3e7;
}
