/* =====================================================
   법무법인 강현 공식홈페이지 리뉴얼 CSS
   File : /css/kanghyun.css
===================================================== */

/* ===========================
   Reset
=========================== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

body {
    min-width: 320px;
    font-family: "Pretendard", "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: #222;
    background: #fff;
}

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

button {
    border: 0;
    background: none;
    font-family: inherit;
    cursor: pointer;
}

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

ul,
ol {
    list-style: none;
}

/* ===========================
   Common
=========================== */
:root {
    --kh-navy: #0d2340;
    --kh-deep: #091726;
    --kh-gold: #c9a86a;
    --kh-beige: #f7f3ee;
    --kh-ivory: #fbf8f3;
    --kh-line: #e7e1d8;
    --kh-text: #222;
    --kh-gray: #666;
}

.kh-wrap {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
}

.kh-section {
    padding: 110px 0;
}

.kh-section-head {
    margin-bottom: 48px;
    text-align: center;
}

.kh-label {
    display: inline-block;
    margin-bottom: 14px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .18em;
    color: var(--kh-gold);
}

.kh-section-head h2,
.kh-cta h2 {
    font-size: 42px;
    line-height: 1.25;
    font-weight: 800;
    color: var(--kh-navy);
}

.kh-section-head p,
.kh-cta p {
    margin-top: 14px;
    font-size: 18px;
    color: var(--kh-gray);
}

.kh-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 148px;
    height: 54px;
    padding: 0 28px;
    border-radius: 999px;
    font-size: 16px;
    font-weight: 700;
    transition: .25s ease;
}

.kh-btn.gold {
    color: #111;
    background: var(--kh-gold);
}

.kh-btn.navy {
    color: #fff;
    background: var(--kh-navy);
}

.kh-btn.line {
    color: #fff;
    border: 1px solid rgba(255,255,255,.55);
}

.kh-btn:hover {
    transform: translateY(-2px);
}

/* ===========================
   Header
=========================== */
.kh-header {
    position: sticky;
    top: 0;
    z-index: 9999;
    height: 90px;
    border-bottom: 1px solid rgba(13,35,64,.08);
    background: rgba(255,255,255,.96);
    backdrop-filter: blur(12px);
    transition: .25s ease;
}

.kh-header.is-scroll {
    height: 82px;
    box-shadow: 0 10px 30px rgba(0,0,0,.08);
}

.kh-header-inner {
    height: 100%;
    display: flex;
    align-items: center;
    gap: 34px;
}

.kh-logo {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    gap: 14px;
    min-width: 250px;
}

.kh-logo img {
    width: auto;
    height: 50px;
}

.kh-logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.kh-logo-text em {
    margin-bottom: 5px;
    font-style: normal;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .22em;
    color: #8c8c8c;
}

.kh-logo-text strong {
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -.04em;
    color: var(--kh-navy);
}

/* ===========================
   Navigation
=========================== */
.kh-nav {
    flex: 1 1 auto;
    display: flex;
    justify-content: center;
    height: 100%;
}

.kh-gnb {
    display: flex;
    align-items: center;
    height: 100%;
}

.kh-gnb > li {
    position: relative;
    height: 100%;
}

.kh-gnb > li > a {
    display: flex;
    align-items: center;
    height: 100%;
    padding: 0 18px;
    font-size: 18px;
    font-weight: 700;
    color: #1f2933;
    white-space: nowrap;
    transition: .2s ease;
}

.kh-gnb > li:hover > a {
    color: var(--kh-gold);
}

.kh-sub {
    position: absolute;
    top: 100%;
    left: 50%;
    min-width: 190px;
    padding: 14px 0;
    border: 1px solid rgba(13,35,64,.08);
    border-radius: 0 0 16px 16px;
    background: #fff;
    box-shadow: 0 18px 36px rgba(0,0,0,.12);
    opacity: 0;
    visibility: hidden;
    transform: translate(-50%, 10px);
    transition: .2s ease;
}

.kh-gnb > li:hover .kh-sub {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
}

.kh-sub a {
    display: block;
    padding: 9px 20px;
    font-size: 15px;
    color: #333;
    white-space: nowrap;
}

.kh-sub a:hover {
    color: var(--kh-navy);
    background: var(--kh-ivory);
}

.kh-header-call {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    flex: 0 0 auto;
    line-height: 1.15;
}

.kh-header-call span {
    font-size: 12px;
    color: #777;
}

.kh-header-call b {
    margin-top: 4px;
    font-size: 20px;
    color: var(--kh-navy);
}

.kh-menu-btn {
    display: none;
    width: 42px;
    height: 42px;
}

.kh-menu-btn span {
    display: block;
    width: 25px;
    height: 2px;
    margin: 6px auto;
    background: var(--kh-navy);
}

/* ===========================
   Main Visual
=========================== */
.kh-hero {
    position: relative;
    overflow: hidden;
}

.kh-hero-slide {
    position: relative;
    min-height: 780px;
}

.kh-hero-bg {
    position: absolute;
    inset: 0;
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
}

.kh-hero-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(9,23,38,.86) 0%, rgba(9,23,38,.56) 43%, rgba(9,23,38,.12) 100%);
}

.kh-hero-content {
    position: relative;
    z-index: 1;
    min-height: 780px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
}

.kh-hero-kicker {
    display: block;
    margin-bottom: 18px;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: .22em;
    color: var(--kh-gold);
}

.kh-hero h2 {
    max-width: 760px;
    font-size: 64px;
    line-height: 1.15;
    font-weight: 800;
    letter-spacing: -.05em;
    color: #fff;
    white-space: pre-line;
}

.kh-hero p {
    max-width: 700px;
    margin-top: 24px;
    font-size: 21px;
    color: rgba(255,255,255,.85);
}

.kh-hero-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 36px;
}

.kh-hero-contact {
    display: flex;
    gap: 28px;
    margin-top: 40px;
    color: #fff;
}

.kh-hero-contact span {
    display: block;
    font-size: 13px;
    color: rgba(255,255,255,.62);
}

.kh-hero-contact b {
    display: block;
    margin-top: 3px;
    font-size: 22px;
}

.kh-swiper-control {
    position: absolute;
    left: 50%;
    bottom: 38px;
    z-index: 10;
    width: 100%;
    max-width: 1400px;
    padding: 0 24px;
    transform: translateX(-50%);
}

.kh-swiper-control .swiper-pagination {
    position: static;
    text-align: left;
}

.kh-swiper-control .swiper-pagination-bullet {
    width: 38px;
    height: 4px;
    border-radius: 0;
    background: rgba(255,255,255,.5);
    opacity: 1;
}

.kh-swiper-control .swiper-pagination-bullet-active {
    background: var(--kh-gold);
}

/* ===========================
   About
=========================== */
.kh-about {
    background: #fff;
}

.kh-about-grid {
    display: grid;
    grid-template-columns: 1fr 1.05fr;
    gap: 60px;
    align-items: center;
}

.kh-about-img {
    overflow: hidden;
    min-height: 420px;
    border-radius: 28px;
    background: url("/new_img/about.jpg") center/cover no-repeat, var(--kh-beige);
}

.kh-about-card {
    padding: 50px;
    border: 1px solid var(--kh-line);
    border-radius: 28px;
    background: var(--kh-ivory);
}

.kh-about-card h2 {
    font-size: 40px;
    line-height: 1.25;
    color: var(--kh-navy);
}

.kh-about-card p {
    margin-top: 20px;
    font-size: 18px;
    color: #555;
}

.kh-info-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-top: 30px;
}

.kh-info-list li {
    padding: 16px 18px;
    border-radius: 16px;
    background: #fff;
    color: #333;
}

/* ===========================
   Service
=========================== */
.kh-service {
    background: var(--kh-ivory);
}

.kh-service-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}

.kh-service-card {
    min-height: 220px;
    padding: 30px;
    border: 1px solid var(--kh-line);
    border-radius: 24px;
    background: #fff;
    transition: .25s ease;
}

.kh-service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 40px rgba(13,35,64,.1);
}

.kh-service-card .num {
    display: block;
    margin-bottom: 18px;
    font-size: 14px;
    font-weight: 800;
    color: var(--kh-gold);
}

.kh-service-card h3 {
    margin-bottom: 12px;
    font-size: 24px;
    color: var(--kh-navy);
}

.kh-service-card p {
    min-height: 76px;
    color: #666;
}

.kh-service-tel {
    display: inline-block;
    margin-top: 18px;
    font-weight: 800;
    color: var(--kh-navy);
}

/* ===========================
   Case / Column
=========================== */
.kh-case-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 26px;
}

.kh-case-card {
    overflow: hidden;
    border: 1px solid var(--kh-line);
    border-radius: 24px;
    background: #fff;
    transition: .25s ease;
}

.kh-case-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 18px 40px rgba(13,35,64,.1);
}

.kh-case-thumb {
    height: 230px;
    background: var(--kh-beige);
    background-position: center;
    background-size: cover;
}

.kh-case-body {
    padding: 28px;
}

.kh-case-body h3 {
    margin-bottom: 12px;
    font-size: 22px;
    line-height: 1.4;
    color: var(--kh-navy);
}

.kh-case-body p {
    color: #666;
}

/* ===========================
   Process
=========================== */
.kh-process {
    background: #fff;
}

.kh-process-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}

.kh-process-card {
    padding: 34px 26px;
    border-top: 3px solid var(--kh-gold);
    border-radius: 20px;
    background: var(--kh-ivory);
}

.kh-process-card b {
    display: block;
    margin-bottom: 16px;
    font-size: 14px;
    color: var(--kh-gold);
}

.kh-process-card h3 {
    margin-bottom: 10px;
    font-size: 22px;
    color: var(--kh-navy);
}

.kh-process-card p {
    color: #666;
}

/* ===========================
   Strength
=========================== */
.kh-strength-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.kh-strength-card {
    padding: 34px 30px;
    border: 1px solid var(--kh-line);
    border-radius: 24px;
    background: #fff;
}

.kh-strength-card h3 {
    margin-bottom: 10px;
    font-size: 24px;
    color: var(--kh-navy);
}

.kh-strength-card p {
    color: #666;
}

/* ===========================
   Location
=========================== */
.kh-location {
    background: var(--kh-ivory);
}

.kh-location-grid {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 34px;
    align-items: stretch;
}

.kh-map {
    min-height: 420px;
    border-radius: 24px;
    background: url("/new_img/map.jpg") center/cover no-repeat, #d8d2c7;
}

.kh-location-info {
    padding: 42px;
    border-radius: 24px;
    background: #fff;
}

.kh-location-info h2 {
    margin-bottom: 24px;
    font-size: 34px;
    color: var(--kh-navy);
}

.kh-location-info dl {
    display: grid;
    grid-template-columns: 110px 1fr;
    row-gap: 14px;
}

.kh-location-info dt {
    font-weight: 800;
    color: var(--kh-navy);
}

.kh-location-info dd {
    color: #555;
}

/* ===========================
   CTA
=========================== */
.kh-cta {
    padding: 82px 0;
    background: linear-gradient(135deg, #f4ead8 0%, #fff8ef 52%, #e9d6b7 100%);
}

.kh-cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.kh-cta h2 {
    font-size: 40px;
}

.kh-cta .kh-btn.line {
    color: var(--kh-navy);
    border-color: rgba(13,35,64,.35);
}

/* ===========================
   Footer
=========================== */
.kh-footer {
    padding: 64px 0 76px;
    color: rgba(255,255,255,.72);
    background: var(--kh-deep);
}

.kh-footer-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    padding-bottom: 28px;
    border-bottom: 1px solid rgba(255,255,255,.12);
}

.kh-footer-logo {
    font-size: 26px;
    font-weight: 800;
    color: #fff;
}

.kh-footer-links {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.kh-footer-links a {
    font-size: 15px;
    color: rgba(255,255,255,.78);
}

.kh-footer-info {
    margin-top: 28px;
    font-size: 15px;
    line-height: 1.9;
}

.kh-footer-info b {
    color: #fff;
}

.kh-copy {
    margin-top: 26px;
    font-size: 14px;
    color: rgba(255,255,255,.45);
}

.kh-floating {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 9998;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.kh-floating a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    font-size: 13px;
    font-weight: 800;
    color: #fff;
    background: var(--kh-navy);
    box-shadow: 0 10px 24px rgba(0,0,0,.2);
}

/* ===========================
   Responsive
=========================== */
@media (max-width: 1400px) {
    .kh-wrap {
        max-width: 100%;
    }
}

@media (max-width: 1200px) {
    .kh-header {
        height: 84px;
    }

    .kh-logo {
        min-width: auto;
    }

    .kh-logo img {
        height: 58px;
    }

    .kh-logo-text strong {
        font-size: 24px;
    }

    .kh-nav {
        position: fixed;
        top: 84px;
        left: 0;
        right: 0;
        display: none;
        height: auto;
        padding: 18px 24px 28px;
        border-top: 1px solid var(--kh-line);
        background: #fff;
        box-shadow: 0 18px 28px rgba(0,0,0,.08);
    }

    .kh-header.is-open .kh-nav {
        display: block;
    }

    .kh-gnb {
        display: block;
        height: auto;
    }

    .kh-gnb > li {
        height: auto;
        border-bottom: 1px solid #eee;
    }

    .kh-gnb > li > a {
        height: auto;
        padding: 14px 0;
        font-size: 18px;
    }

    .kh-sub {
        position: static;
        min-width: 0;
        padding: 0 0 12px 12px;
        border: 0;
        border-radius: 0;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        transform: none;
    }

    .kh-sub a {
        padding: 6px 0;
    }

    .kh-header-call {
        margin-left: auto;
    }

    .kh-menu-btn {
        display: block;
    }

    .kh-hero h2 {
        font-size: 54px;
    }

    .kh-service-grid,
    .kh-process-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .kh-case-grid,
    .kh-strength-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 900px) {
    .kh-section {
        padding: 78px 0;
    }

    .kh-section-head h2,
    .kh-cta h2 {
        font-size: 32px;
    }

    .kh-hero-slide,
    .kh-hero-content {
        min-height: 660px;
    }

    .kh-hero h2 {
        font-size: 42px;
    }

    .kh-hero p {
        font-size: 18px;
    }

    .kh-about-grid,
    .kh-location-grid {
        grid-template-columns: 1fr;
    }

    .kh-cta-inner {
        display: block;
        text-align: center;
    }

    .kh-cta-actions {
        justify-content: center;
    }
}

@media (max-width: 640px) {
    body {
        font-size: 15px;
    }

    .kh-wrap {
        padding: 0 18px;
    }

    .kh-header {
        height: 74px;
    }

    .kh-header.is-scroll {
        height: 74px;
    }

    .kh-logo img {
        height: 48px;
    }

    .kh-logo-text em {
        display: none;
    }

    .kh-logo-text strong {
        font-size: 20px;
    }

    .kh-header-call {
        display: none;
    }

    .kh-nav {
        top: 74px;
    }

    .kh-hero-slide,
    .kh-hero-content {
        min-height: 600px;
    }

    .kh-hero h2 {
        font-size: 34px;
    }

    .kh-hero-contact {
        display: block;
    }

    .kh-hero-contact > div + div {
        margin-top: 14px;
    }

    .kh-hero-actions,
    .kh-cta-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .kh-service-grid,
    .kh-case-grid,
    .kh-process-grid,
    .kh-strength-grid,
    .kh-info-list {
        grid-template-columns: 1fr;
    }

    .kh-about-card,
    .kh-location-info {
        padding: 30px 22px;
    }

    .kh-footer-top {
        align-items: flex-start;
        flex-direction: column;
    }

    .kh-floating {
        right: 14px;
        bottom: 14px;
    }

    .kh-floating a {
        width: 50px;
        height: 50px;
    }
}

/* ===========================
   Main Visual Patch
   헤더 비주얼 텍스트/버튼/연락처 정렬 보정
=========================== */

.kh-hero-content > * {
    max-width: 760px;
}

.kh-hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
}

.kh-hero-contact {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0;
    width: 100%;
    max-width: 1180px;
    margin-top: 46px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 18px;
    background: rgba(9,23,38,.68);
    backdrop-filter: blur(10px);
    box-shadow: 0 18px 40px rgba(0,0,0,.18);
}

.kh-hero-contact > div,
.kh-hero-contact > a {
    display: block;
    min-height: 86px;
    padding: 18px 22px;
    border-right: 1px solid rgba(255,255,255,.14);
    color: #fff;
}

.kh-hero-contact > div:last-child,
.kh-hero-contact > a:last-child {
    border-right: 0;
}

.kh-hero-contact span {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    color: rgba(255,255,255,.66);
}

.kh-hero-contact b,
.kh-hero-contact strong {
    display: block;
    margin-top: 0;
    font-size: 21px;
    line-height: 1.2;
    font-weight: 800;
    color: #fff;
}

@media (max-width: 1200px) {
    .kh-hero-contact {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        max-width: 760px;
    }

    .kh-hero-contact > div,
    .kh-hero-contact > a {
        border-bottom: 1px solid rgba(255,255,255,.14);
    }

    .kh-hero-contact > div:nth-child(2n),
    .kh-hero-contact > a:nth-child(2n) {
        border-right: 0;
    }
}

@media (max-width: 640px) {
    .kh-hero-content {
        justify-content: center;
        min-height: 660px;
    }

    .kh-hero-content > * {
        max-width: 100%;
    }

    .kh-hero-actions {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
    }

    .kh-hero-actions .kh-btn {
        width: 100%;
    }

    .kh-hero-contact {
        grid-template-columns: 1fr;
        margin-top: 28px;
        border-radius: 14px;
    }

    .kh-hero-contact > div,
    .kh-hero-contact > a {
        min-height: auto;
        padding: 13px 16px;
        border-right: 0;
        border-bottom: 1px solid rgba(255,255,255,.14);
    }

    .kh-hero-contact b,
    .kh-hero-contact strong {
        font-size: 18px;
    }
}

