/* ===================================================
   SERVICES SUBPAGES – SHARED STYLES
   =================================================== */

/* ---- Hero (shared across guide / process / legalservice) ---- */
.svc-hero {
    position: relative;
    height: 45vh;
    min-height: 340px;
    max-height: 520px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.svc-hero-bg {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    z-index: 0;
}
.svc-hero-overlay {
    position: absolute; inset: 0;
    background: rgba(0,0,0,.55);
    z-index: 1;
}
.svc-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding-top: 60px;
}
.svc-hero-content h1 {
    font-family: var(--font-en);
    font-size: 56px;
    font-weight: 800;
    letter-spacing: 8px;
    line-height: 1.15;
}

/* 세 개의 서비스 페이지가 모두 'SERVICES' 라서 어느 페이지인지 알 수 없던 문제.
   부제를 달아 현재 위치를 알려준다. */
.svc-hero-sub {
    margin-top: 14px;
    font-size: 19px;
    font-weight: 500;
    color: var(--gold-light);
    letter-spacing: 1px;
}

/* ---- Light section (white/light-gray background) ---- */
.svc-light {
    padding: 100px 0;
    background: #f5f5f5;
    color: #222;
}
.svc-light .svc-label {
    text-align: center;
    font-family: var(--font-en);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 5px;
    /* 흰 배경 위에서는 밝은 금색이 거의 보이지 않아 어두운 금색을 쓴다 */
    color: #8a6a33;
    margin-bottom: 18px;
}
.svc-light .svc-heading {
    text-align: center;
    font-size: 42px;
    font-weight: 800;
    color: #111;
    margin-bottom: 14px;
}
.svc-light .svc-sub {
    text-align: center;
    font-size: 17px;
    color: #555;
    margin-bottom: 60px;
    line-height: 1.7;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

/* ---- Dark section ---- */
.svc-dark {
    padding: 100px 0;
    background: var(--bg-dark);
}
.svc-dark .svc-heading {
    text-align: center;
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 14px;
}
.svc-dark .svc-sub {
    text-align: center;
    font-size: 17px;
    color: var(--text-gray);
    margin-bottom: 60px;
    line-height: 1.7;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

/* ===== COMPARISON TABLE (guide.html) ===== */
/* 좁은 화면에서는 표를 가로로 밀어서 볼 수 있게 한다 */
.compare-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 12px;
    scrollbar-width: thin;
}

.compare-hint {
    display: none;
    margin-bottom: 12px;
    font-size: 14px;
    color: #666;
    text-align: center;
}

.compare-table {
    width: 100%;
    border-collapse: collapse;
    border-radius: 12px;
    overflow: hidden;
    margin: 0 auto;
}
.compare-table thead th {
    padding: 24px 16px;
    font-size: 17px;
    font-weight: 700;
    text-align: center;
    color: white;
}
.compare-table thead th:nth-child(1) {
    background: #3a6b5a;
    width: 18%;
}
.compare-table thead th:nth-child(2) {
    background: #3a6b5a;
    width: 27%;
}
.compare-table thead th:nth-child(3) {
    background: #4a7a6a;
    width: 27%;
}
.compare-table thead th:nth-child(4) {
    background: #222;
    width: 28%;
}
.compare-table tbody td {
    padding: 22px 16px;
    text-align: center;
    font-size: 15px;
    color: #333;
    vertical-align: middle;
    line-height: 1.6;
}
.compare-table tbody tr {
    border-bottom: 1px solid #e0e0e0;
}
.compare-table tbody tr:nth-child(even) {
    background: #f0f0f0;
}
.compare-table tbody tr:nth-child(odd) {
    background: #fafafa;
}
.compare-table tbody td:first-child {
    font-weight: 700;
    color: #111;
    background: #eef2f0;
}

/* 세로로 길어도 열 이름이 계속 보이도록 머리글 고정 */
.compare-table thead th {
    position: sticky;
    top: 0;
    z-index: 2;
}

/* 가로로 밀어 볼 때 '구분' 열은 제자리에 고정 */
.compare-table thead th:first-child,
.compare-table tbody td:first-child {
    position: sticky;
    left: 0;
    z-index: 1;
}

.compare-table thead th:first-child {
    background: #3a6b5a;
    z-index: 3;
}

/* ===== RECOMMENDATION CARDS (guide.html) ===== */
.rec-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}
.rec-card {
    background: rgba(20,20,20,.9);
    border: 1px solid rgba(192,156,103,.12);
    border-radius: 16px;
    padding: 40px 30px;
    transition: var(--transition);
}
.rec-card:hover {
    transform: translateY(-5px);
    border-color: var(--border-gold);
}
.rec-badge {
    display: inline-block;
    padding: 6px 18px;
    border: 1px solid var(--gold);
    border-radius: 20px;
    font-size: 13px;
    color: var(--gold);
    margin-bottom: 20px;
}
.rec-card h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 20px;
}
.rec-card ul {
    list-style: none;
    padding: 0;
}
.rec-card ul li {
    color: var(--text-gray);
    font-size: 15px;
    line-height: 1.7;
    padding-left: 22px;
    position: relative;
    margin-bottom: 8px;
}
.rec-card ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--gold);
}

/* ===== STEP CARDS (process.html) ===== */
.step-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.step-card {
    background: rgba(20,20,20,.9);
    border: 1px solid rgba(192,156,103,.12);
    border-radius: 14px;
    padding: 35px 25px;
    transition: var(--transition);
}
.step-card:hover {
    border-color: var(--border-gold);
    transform: translateY(-4px);
}
.step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px; height: 42px;
    border-radius: 50%;
    background: var(--gold);
    color: #111;
    font-family: var(--font-en);
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 18px;
}
.step-card h3 {
    font-size: 19px;
    font-weight: 700;
    margin-bottom: 14px;
}
.step-card p {
    color: var(--text-gray);
    font-size: 14px;
    line-height: 1.6;
}

/* 인라인 style 대신 클래스로 3열을 지정해야 반응형 규칙이 먹는다 */
.step-grid.cols-3 {
    grid-template-columns: repeat(3, 1fr);
}

/* ===== SERVICE CARDS (legalservice.html) ===== */
.ls-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}
.ls-card {
    background: #ffffff;
    border: 1px solid #e3e3e3;
    border-radius: 16px;
    padding: 45px 35px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .04);
    transition: var(--transition);
}
.ls-card:hover {
    box-shadow: 0 12px 40px rgba(0,0,0,.10);
    transform: translateY(-4px);
}
.ls-badge {
    display: inline-block;
    padding: 8px 22px;
    background: #2d5d4d;
    color: white;
    font-size: 13px;
    font-weight: 600;
    border-radius: 22px;
    margin-bottom: 22px;
}
.ls-card h3 {
    font-size: 28px;
    font-weight: 800;
    color: #111;
    margin-bottom: 14px;
}
.ls-card p {
    color: #555;
    font-size: 15px;
    line-height: 1.7;
}
.ls-card-img {
    width: 100%;
    border-radius: 12px;
    margin-top: 25px;
    border: 1px solid rgba(58,107,90,.15);
}

/* ===== BOARD / EMPTY STATE (media.html, case.html) ===== */
.board-section {
    padding: 80px 0;
    background: #000;
    text-align: center;
}
.board-section h2 {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 60px;
}
.board-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    padding: 40px 0;
}
.board-empty-icon {
    width: 64px; height: 64px;
    opacity: .35;
}
.board-empty p {
    color: rgba(255,255,255,.4);
    font-size: 16px;
}

/* ===== MTN BROADCAST (media.html) ===== */
.mtn-section {
    padding: 100px 0;
    background: #f5f5f5;
    color: #222;
}
.mtn-section .mtn-heading {
    text-align: center;
    font-size: 36px;
    font-weight: 800;
    color: #111;
    margin-bottom: 14px;
}
.mtn-section .mtn-sub {
    text-align: center;
    font-size: 16px;
    color: #555;
    line-height: 1.7;
    margin-bottom: 60px;
}
.mtn-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}
.mtn-card {
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid var(--gold);
    transition: var(--transition);
}
.mtn-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0,0,0,.12);
}
.mtn-card img {
    width: 100%;
    display: block;
    aspect-ratio: 16/9;
    object-fit: cover;
}

/* 자동 재생을 멈출 수 있는 버튼 */
.carousel-controls {
    display: flex;
    justify-content: center;
    margin-top: 22px;
}

.carousel-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 10px 22px;
    border: 1px solid rgba(0, 0, 0, 0.18);
    border-radius: 40px;
    background: #fff;
    color: #333;
    font-family: inherit;
    font-size: 15px;
    transition: var(--transition);
}

.carousel-toggle:hover {
    border-color: var(--gold);
    color: var(--gold-dark);
}

/* ===== CREDENTIALS (media.html – teal cards) ===== */
.cred-section {
    padding: 100px 0;
    background: #3a6b5a;
}
.cred-section .cred-heading {
    text-align: center;
    font-size: 36px;
    font-weight: 800;
    color: white;
    margin-bottom: 60px;
}
.cred-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.cred-card {
    background: rgba(255,255,255,.1);
    border-radius: 14px;
    padding: 40px 25px;
    text-align: center;
    transition: var(--transition);
}
.cred-card:hover {
    background: rgba(255,255,255,.18);
    transform: translateY(-4px);
}
.cred-card h3 {
    font-size: 24px;
    font-weight: 800;
    color: var(--gold);
    margin-bottom: 18px;
}
.cred-card p {
    font-size: 15px;
    color: rgba(255,255,255,.8);
    line-height: 1.6;
}

/* ===== QUOTE (media.html) ===== */
.quote-section {
    padding: 100px 0;
    background: var(--bg-dark);
    text-align: center;
    position: relative;
}
.quote-section::before {
    content: '';
    position: absolute; inset: 0;
    background: repeating-linear-gradient(
        90deg,
        rgba(255,255,255,.03) 0px,
        rgba(255,255,255,.03) 1px,
        transparent 1px,
        transparent 8px
    );
    pointer-events: none;
}
.quote-mark {
    font-family: var(--font-en);
    font-size: 60px;
    color: var(--gold);
    opacity: .5;
    line-height: 1;
}
.quote-text {
    font-size: 22px;
    font-weight: 500;
    line-height: 1.8;
    margin: 20px 0;
    position: relative;
}
.quote-author {
    font-size: 16px;
    color: var(--text-gray);
    margin-top: 10px;
}

/* ===== CTA SECTION (shared) ===== */
.results-cta {
    padding: 100px 0;
    background: var(--bg-dark);
    text-align: center;
    position: relative;
    overflow: hidden;
}
.results-cta::before {
    content: '';
    position: absolute; inset: 0;
    background: radial-gradient(circle at 50% 80%, rgba(192,156,103,.08), transparent 60%);
    pointer-events: none;
}
.results-cta .cta-label {
    font-family: var(--font-en);
    font-size: 14px;
    letter-spacing: 5px;
    color: var(--gold);
    margin-bottom: 18px;
}
.results-cta h2 {
    font-size: 40px;
    font-weight: 800;
    margin-bottom: 10px;
    position: relative;
}
.results-cta h2 span {
    color: var(--gold);
}
.results-cta p {
    color: var(--text-gray);
    font-size: 17px;
    line-height: 1.7;
    margin-bottom: 5px;
    position: relative;
}
.results-cta .btn-cta {
    display: inline-block;
    margin-top: 40px;
    min-height: 54px;
    padding: 14px 40px;
    line-height: 1.3;
    background: var(--gold);
    color: #111;
    font-size: 17px;
    font-weight: 700;
    border-radius: 40px;
    text-decoration: none;
    transition: var(--transition);
    position: relative;
}
.results-cta .btn-cta:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 30px rgba(192,156,103,.3);
}

/* ===== CASE STUDY CARDS (case.html) ===== */
.case-item {
    padding: 100px 0;
}

/* 사례 사이를 눈에 보이게 구분 */
.case-item + .case-item,
.svc-dark + .svc-dark .case-item {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.case-badge {
    display: inline-block;
    padding: 10px 30px;
    background: var(--gold);
    color: #111;
    font-size: 14px;
    font-weight: 700;
    border-radius: 30px;
    margin-bottom: 24px;
}
.case-title {
    font-size: 40px;
    font-weight: 800;
    margin-bottom: 14px;
}
.case-subtitle {
    font-size: 17px;
    color: var(--gold);
    margin-bottom: 60px;
    line-height: 1.7;
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
}
.case-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}
.case-text h3 {
    font-size: 22px;
    font-weight: 700;
    color: var(--gold);
    margin-bottom: 20px;
}
.case-text p {
    font-size: 16px;
    color: var(--text-gray);
    line-height: 1.8;
    margin-bottom: 20px;
    max-width: 68ch;
}
.case-text ul {
    list-style: none;
    padding: 0;
}
.case-text ul li {
    color: white;
    font-size: 15px;
    line-height: 1.8;
    padding-left: 22px;
    position: relative;
    margin-bottom: 6px;
}
.case-text ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--gold);
}
.case-docs {
    background: #3a6b5a;
    border-radius: 16px;
    padding: 40px 30px;
    border: 1px solid rgba(192,156,103,.25);
}
.case-docs h4 {
    text-align: center;
    font-size: 20px;
    font-weight: 700;
    color: #f0dcb8;
    margin-bottom: 25px;
}

/* 서류 이미지를 눌러 원본 크기로 볼 수 있게 */
.case-docs-link {
    display: block;
    width: 100%;
    position: relative;
    border-radius: 10px;
    overflow: hidden;
}

.case-docs-img {
    display: block;
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .25);
    transition: transform 0.3s ease;
}

.case-docs-link:hover .case-docs-img {
    transform: scale(1.02);
}

.case-docs-zoom {
    position: absolute;
    right: 10px;
    bottom: 10px;
    padding: 8px 14px;
    border-radius: 30px;
    background: rgba(0, 0, 0, 0.68);
    color: #fff;
    font-size: 13px;
    font-weight: 500;
}
.case-docs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}
.case-docs-grid img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,.2);
}


/* 같은 배경색의 섹션이 이어질 때 위쪽 여백 정리.
   (아래 미디어쿼리의 .svc-dark 규칙을 이기도록 클래스 두 개로 지정) */
.svc-dark.svc-dark-continued {
    padding-top: 0;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .svc-light, .svc-dark { padding: 80px 0; }
    .step-grid,
    .step-grid.cols-3 { grid-template-columns: repeat(2, 1fr); }
    .rec-grid  { grid-template-columns: repeat(2, 1fr); gap: 20px; }
    .ls-grid   { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; gap: 28px; }
    .case-docs { width: 100%; max-width: 560px; justify-self: center; }
    .cred-grid { grid-template-columns: 1fr 1fr; }
    .case-grid { grid-template-columns: 1fr; gap: 40px; }
    .case-docs { margin-top: 0; }
    .svc-hero { min-height: 300px; }
    .svc-hero-content h1 { font-size: 40px; letter-spacing: 6px; }
    .svc-hero-sub { font-size: 17px; }
    .svc-light .svc-heading,
    .svc-dark .svc-heading { font-size: 32px; }
    .results-cta h2 { font-size: 30px; }
    .case-title { font-size: 30px; }
    .case-subtitle { margin-bottom: 40px; }

    /* 표가 화면보다 넓어지는 시점부터 가로 스크롤로 전환 */
    .compare-table { min-width: 720px; }
    .compare-hint { display: block; }
}

@media (max-width: 768px) {
    .svc-light, .svc-dark { padding: 64px 0; }
    .svc-hero { min-height: 240px; height: 34vh; }
    .svc-hero-content { padding-top: 40px; }
    .svc-hero-content h1 { font-size: 32px; letter-spacing: 4px; }
    .svc-hero-sub { font-size: 15px; margin-top: 10px; }
    .svc-light .svc-heading,
    .svc-dark .svc-heading { font-size: 26px; }
    .svc-light .svc-sub,
    .svc-dark .svc-sub { font-size: 15px; margin-bottom: 40px; }
    .svc-label { font-size: 12px !important; letter-spacing: 3px !important; }

    .step-grid,
    .step-grid.cols-3 { grid-template-columns: repeat(2, 1fr); max-width: 100%; margin: 0; gap: 12px; }
    .step-card { padding: 22px 16px; }
    .step-card h3 { font-size: 16px; margin-bottom: 8px; line-height: 1.35; }
    .step-card p { font-size: 13.5px; line-height: 1.55; }
    .step-num { font-size: 14px; width: 38px; height: 38px; margin-bottom: 14px; }

    .compare-table { min-width: 640px; font-size: 14px; }
    .compare-table thead th { font-size: 14px; padding: 14px 10px; }
    .compare-table tbody td { padding: 14px 10px; font-size: 13.5px; }

    .rec-grid { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; }
    .rec-card { padding: 30px 22px; }
    /* 데스크톱 폭에 맞춰 넣어 둔 <br> 이 좁은 화면에서는 들쭉날쭉해 보인다 */
    .svc-light .svc-sub br,
    .svc-dark .svc-sub br,
    .mtn-section .mtn-sub br { display: none; }
    .rec-card h3 { font-size: 19px; margin-bottom: 14px; }
    .rec-card ul li { font-size: 14.5px; }

    .ls-card { padding: 32px 22px; }
    .ls-card h3 { font-size: 22px; }
    .ls-card p { font-size: 14.5px; }

    .cred-grid { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; }
    .cred-section .cred-heading { font-size: 26px; margin-bottom: 36px; }
    .cred-card { padding: 30px 22px; }
    .cred-card h3 { font-size: 20px; margin-bottom: 12px; }

    .mtn-grid { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }
    .mtn-section { padding: 64px 0; }
    .mtn-section .mtn-heading { font-size: 25px; }
    .mtn-section .mtn-sub { font-size: 15px; margin-bottom: 36px; }

    .quote-section { padding: 64px 0; }
    .quote-text { font-size: 18px; }

    .results-cta { padding: 64px 0; }
    .results-cta h2 { font-size: 24px; }
    .results-cta p { font-size: 15px; }
    .results-cta .btn-cta { padding: 14px 28px; min-height: 50px; font-size: 16px; width: 100%; max-width: 320px; }

    .case-item { padding: 64px 0; }
    .case-title { font-size: 24px; }
    .case-subtitle { font-size: 15px; margin-bottom: 32px; }
    .case-badge { font-size: 13px; padding: 8px 22px; }
    .case-text h3 { font-size: 19px; margin-bottom: 14px; }
    .case-text p { font-size: 15px; line-height: 1.75; }
    .case-text ul li { font-size: 14.5px; }
    .case-docs { padding: 26px 18px; }
    .case-docs h4 { font-size: 17px; }
    .board-section { padding: 64px 0; }
    .board-section h2 { font-size: 26px; margin-bottom: 36px; }
}

@media (max-height: 480px) and (orientation: landscape) {
    .svc-hero { min-height: 200px; height: 62vh; }
    .svc-hero-content { padding-top: 30px; }
    .svc-hero-content h1 { font-size: 28px; }
}

@media (max-width: 430px) {
    .svc-hero-content h1 { font-size: 27px; letter-spacing: 3px; }
    .case-docs-zoom { right: 8px; bottom: 8px; padding: 7px 12px; font-size: 12px; }
    .step-grid,
    .step-grid.cols-3 { grid-template-columns: 1fr; }
    .step-card { padding: 20px 18px; }
    .step-card h3 { font-size: 17px; }
    .step-card p { font-size: 14px; }
    .svc-light .svc-heading,
    .svc-dark .svc-heading { font-size: 23px; }
    .case-title { font-size: 22px; }
    .results-cta h2 { font-size: 22px; }
}
