/* ════════════════════════════════════════════════════════════════
   청명 (淸明) 리프레시 — styles.css 위 오버라이드 한 장 (2026-07-04)
   ----------------------------------------------------------------
   구조(HTML)·기능(JS) 불변. styles.css·override-C.css 뒤에 로드되어
   시각 계층만 재조율한다. lawfirm-shin-lab에서 검증 후 본체 이식.

   설계 원칙:
   - 상단 헤더·하단 푸터의 투명함은 의도된 디자인 → 원본보다 더 투명하게.
     끊김을 만들던 경계선(보더·그림자)을 제거하고, 글자에는 화이트
     글로우로만 가독성을 확보한다.
   - 배경 사진의 푸르름이 디자인의 축. 액센트는 스카이·딥씨 블루 계열.
   - 품격 요소: 세리프 섹션 타이포 + 信 인장(인주 낙관 하나만) + 카드 마감 + 접근성.
   ════════════════════════════════════════════════════════════════ */

/* ────────────────────────────────────────────────
   1. 상단 헤더 — 완전 투명화 (끊김 제거)
      경계를 만들던 배경·보더·그림자를 전부 걷어내고
      글자에는 화이트 글로우로만 가독성을 잡는다.
   ──────────────────────────────────────────────── */
.header {
    background: transparent;
    border-bottom: none;
    box-shadow: none;
}

.header-left strong,
.header-left .website-info {
    text-shadow:
        0 1px 4px rgba(255, 255, 255, 0.9),
        0 0 12px rgba(255, 255, 255, 0.7),
        0 0 24px rgba(255, 255, 255, 0.45);
}

/* ────────────────────────────────────────────────
   2. 하단 푸터 — 더 투명하게 + SEO 문구 더 은은하게
   ──────────────────────────────────────────────── */
.footer {
    background: rgba(255, 255, 255, 0.10);
    border-top: none;
}

/* 상단 구분선: 진한 라인 → 옅은 스카이 미스트로 */
.footer::before {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(14, 165, 233, 0.22), transparent);
}

/* 기능 링크(홈페이지·전화상담…)는 글로우로 가독성 유지 */
.footer-links a {
    text-shadow:
        0 1px 4px rgba(255, 255, 255, 0.85),
        0 0 12px rgba(255, 255, 255, 0.55);
}

/* SEO 안내문은 의도적으로 한 톤 더 뒤로 */
.footer-copyright {
    color: #94a3b8;
    border-top-color: rgba(148, 163, 184, 0.25);
}

/* ────────────────────────────────────────────────
   3. 섹션 헤더 — 세리프 품격 + 信 인장
   ──────────────────────────────────────────────── */
.section-header h2 {
    font-family: 'Noto Serif KR', 'MaruBuri', serif;
    font-weight: 700;
    letter-spacing: 0.005em;
}

/* 세로바 → 信 인장 마크 (인주 낙관 — 푸른 화폭에 붉은 점 하나, 살짝 기울여 수제 도장 감성)
   ※ 사이트 전체에서 인주는 이 인장 하나만. 사방에 바르지 않는다. */
.section-header h2::before {
    content: '信';
    width: 1.5em;
    height: 1.5em;
    font-size: 0.55em;
    font-family: 'Noto Serif KR', serif;
    font-weight: 600;
    line-height: 1;
    color: #fdf6ec;
    background: linear-gradient(140deg, #c04a2f, #9c3820);
    border-radius: 0.28em;
    box-shadow: 0 2px 7px rgba(156, 56, 32, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.28);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transform: rotate(-3deg);
    flex-shrink: 0;
}

/* 인장이 곧 섹션 마크 — 중복되는 FA 아이콘은 정리 */
.section-header h2 i {
    display: none;
}

/* 하단 액센트 라인: 두께를 줄이고 페이드를 길게 (기존 3px 뭉툭함 → 우아하게) */
.section-header::after {
    height: 2px;
    background: linear-gradient(to right,
            rgba(12, 74, 110, 0.55) 0%,
            rgba(14, 165, 233, 0.40) 30%,
            rgba(14, 165, 233, 0.12) 62%,
            transparent 88%);
}

/* ────────────────────────────────────────────────
   4. 카드 마감 — 다층 그림자 정밀화 + 청량 hover
   ──────────────────────────────────────────────── */
/* 서비스 타일: hover 시 옅은 하늘빛 보더 */
.service-card:hover {
    border-color: rgba(125, 211, 252, 0.65);
}

/* 칼럼·FAQ 카드 (톤은 원본 유지, 그림자·보더만 정밀화) */
@media (min-width: 1024px) {
    .faq-home-card,
    .blog-card {
        border: 1px solid rgba(255, 255, 255, 0.62) !important;
        box-shadow: 0 1px 2px rgba(13, 31, 61, 0.10), 0 10px 26px -8px rgba(13, 31, 61, 0.28) !important;
    }

    .faq-home-card:hover,
    .blog-card:hover {
        border-color: rgba(56, 189, 248, 0.45) !important;
        box-shadow: 0 2px 4px rgba(13, 31, 61, 0.10), 0 18px 40px -10px rgba(13, 31, 61, 0.34) !important;
    }
}

@media (max-width: 1023px) {
    .faq-home-card:hover,
    .blog-card:hover {
        border-color: rgba(56, 189, 248, 0.45) !important;
    }
}

/* ────────────────────────────────────────────────
   5. 브랜드 디테일
   ──────────────────────────────────────────────── */
::selection {
    background: rgba(14, 165, 233, 0.25);
}

/* ────────────────────────────────────────────────
   5-A. 소울시티 信 등불 (약속 박스 우상단) — 깔끔하게 재정비
   기존: 경계 없는 radial 번짐 + 큰 blur halo → "흐리멍텅"
   변경: 축소(42→32px) + 또렷한 골드 원판 + 얇은 테두리,
         외곽 글로우만 상담 FAB처럼 흐렸다 진했다 펄스.
   ──────────────────────────────────────────────── */
#hopecity-easteregg {
    width: 32px;
    height: 32px;
    top: 14px;
    right: 14px;
    background: linear-gradient(140deg, #f7c964 0%, #ee9d3a 55%, #d97b1e 100%);
    border: 1px solid rgba(255, 244, 218, 0.85);
    opacity: 1;
    box-shadow:
        0 2px 6px rgba(180, 106, 20, 0.35),
        0 0 10px 2px rgba(255, 170, 70, 0.45),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
    animation: cm-lantern-pulse 3s ease-in-out infinite;
}

/* 뿌연 blur halo 제거 — 흐리멍텅의 주범 */
#hopecity-easteregg::before {
    display: none;
}

/* 信 글자: 또렷하게 (글로우 애니 제거, 은은한 새김 그림자만) */
#hopecity-easteregg::after {
    font-size: 17px;
    color: #fffdf6;
    text-shadow: 0 1px 2px rgba(150, 92, 32, 0.5);
    animation: none;
}

#hopecity-easteregg:hover {
    transform: scale(1.12);
    animation: none;
    box-shadow:
        0 3px 8px rgba(180, 106, 20, 0.4),
        0 0 16px 4px rgba(255, 170, 70, 0.65),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

/* 상담 FAB(fabPulse)와 같은 문법: 글로우 강약 + 외곽 링 한 번 퍼짐 */
@keyframes cm-lantern-pulse {
    0%, 100% {
        box-shadow:
            0 2px 6px rgba(180, 106, 20, 0.35),
            0 0 6px 1px rgba(255, 170, 70, 0.35),
            0 0 0 0 rgba(255, 170, 70, 0.5),
            inset 0 1px 0 rgba(255, 255, 255, 0.5);
    }
    50% {
        box-shadow:
            0 2px 6px rgba(180, 106, 20, 0.35),
            0 0 14px 3px rgba(255, 170, 70, 0.6),
            0 0 0 9px rgba(255, 170, 70, 0),
            inset 0 1px 0 rgba(255, 255, 255, 0.5);
    }
}

@media (max-width: 768px) {
    #hopecity-easteregg {
        width: 27px;
        height: 27px;
        top: 12px;
        right: 12px;
    }

    #hopecity-easteregg::after {
        font-size: 14px;
    }
}

/* ────────────────────────────────────────────────
   6. 접근성 · 모션
   ──────────────────────────────────────────────── */
a:focus-visible,
button:focus-visible,
[role="button"]:focus-visible {
    outline: 2px solid #0369a1;
    outline-offset: 2px;
    border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ────────────────────────────────────────────────
   7. 오시는길 섹션 + 본문 내부링크 (2026-07-09 AEO)
   ──────────────────────────────────────────────── */
.directions-section {
    margin-bottom: 3rem;
}

/* 카드 톤 = styles.css [2026-05-02] FAQ·칼럼 카드 통일 규격과 동일
   (모바일 흰 78%+blur / 데스크탑 크림 84→78% 무블러) — 2026-07-09 4차 */
.directions-card {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 1.5rem;
    background: rgba(255, 255, 255, 0.78);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 16px;
    padding: 1.6rem 1.75rem;
    box-shadow: 0 4px 14px rgba(13, 31, 61, 0.18);
}

@media (min-width: 1024px) {
    .directions-card {
        background: linear-gradient(to bottom, rgba(250, 248, 243, 0.84), rgba(250, 248, 243, 0.78));
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        border: 1px solid rgba(255, 255, 255, 0.62);
        box-shadow: 0 1px 2px rgba(13, 31, 61, 0.10), 0 10px 26px -8px rgba(13, 31, 61, 0.28);
    }
}

.directions-address {
    font-size: 1rem;
    color: #0f172a;
    margin-bottom: 0.7rem;
}

.directions-desc {
    font-size: 0.93rem;
    line-height: 1.75;
    color: #334155;
    margin-bottom: 0.9rem;
}

.directions-tel {
    color: #0c4a6e;
    font-weight: 700;
    text-decoration: none;
}

.directions-tel:hover {
    text-decoration: underline;
}

.directions-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.directions-links a {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    color: #0c4a6e;
    background: rgba(186, 230, 253, 0.45);
    border: 1px solid rgba(125, 175, 210, 0.5);
    border-radius: 999px;
    padding: 0.4rem 0.95rem;
    transition: background 0.2s ease;
}

.directions-links a:hover {
    background: rgba(186, 230, 253, 0.8);
}

#directions-map-canvas {
    width: 100%;
    height: 100%;
    min-height: 250px;
    border-radius: 12px;
    z-index: 0;
    background: #e8eef3;
}

/* Leaflet 이름표 — 파란 O(법원)·빨간 핀(사무소) 옆 간명 라벨 */
.lf-name {
    background: #fff;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    padding: 2px 7px;
    font-weight: 700;
    font-size: 12px;
    color: #0f172a;
    box-shadow: 0 1px 4px rgba(13, 31, 61, 0.25);
    white-space: nowrap;
}

.lf-name-court {
    color: #1d4ed8;
    border-color: #93c5fd;
}

/* 우상단 방위 배지 — 빨간 바늘(북) + N */
.lf-north {
    display: flex;
    align-items: center;
    gap: 3px;
    background: #fff;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    padding: 3px 7px;
    font-weight: 800;
    font-size: 11px;
    color: #0f172a;
    box-shadow: 0 1px 4px rgba(13, 31, 61, 0.25);
    cursor: default;
}

.trust-band-prose a.trust-band-name-link {
    color: inherit;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-thickness: 1px;
    text-decoration-color: rgba(3, 105, 161, 0.55);
}

.trust-band-prose a.trust-band-name-link:hover {
    text-decoration-color: currentColor;
}

@media (max-width: 768px) {
    .directions-card {
        grid-template-columns: 1fr;
        padding: 1.25rem 1.15rem;
    }

    #directions-map-canvas {
        min-height: 220px;
    }
}
