/* aircon.sksv.co.kr — Concept B "아이스 블루 로컬 플레이스" (builds/v1)
   기준선: refs/current/dna.yaml · 셀렉터는 기존 HTML 구조와 1:1 호환 */
:root {
    --primary-color: #0369a1;
    --primary-dark: #075985;
    --ice: #38bdf8;
    --secondary-color: #5b7a96;
    --bg-color: #f4f9fd;
    --card-bg: #ffffff;
    --text-color: #0f2740;
    --light-text: #475569;
    --border-color: #dceaf5;
    --dark: #0b2235;
    --yellow: #fae100;
    --shadow: 0 14px 34px rgba(3, 64, 103, 0.10);
}

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

html { scroll-behavior: smooth; }

body {
    font-family: 'Noto Sans KR', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    word-break: keep-all;
    /* 플로팅 상담 버튼이 콘텐츠·광고 위에 겹치지 않도록 하단 안전 여백 */
    padding-bottom: 96px;
}

.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

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

/* ---------- 상단 컨택트 배너 (signature: 이중 CTA sandwich 상단) ---------- */
.contact-banner { background: var(--dark); color: #fff; }

.contact-banner-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    padding-top: 8px;
    padding-bottom: 8px;
    flex-wrap: wrap;
}

.contact-banner-label { font-size: 14px; font-weight: 600; color: #bae6fd; }

.contact-banner-phone {
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    background: var(--primary-color);
    padding: 4px 14px;
    border-radius: 999px;
    white-space: nowrap;
    transition: filter 0.15s ease;
}
.contact-banner-phone:hover { filter: brightness(1.1); }

.contact-banner-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

.contact-banner-chat {
    color: #3c1e1e;
    font-size: 16px;
    font-weight: 700;
    background: var(--yellow);
    padding: 4px 14px;
    border-radius: 999px;
    white-space: nowrap;
    transition: filter 0.15s ease;
}
.contact-banner-chat:hover { filter: brightness(1.05); }

/* ---------- 하단 고정 상담 버튼 (signature) ---------- */
.float-contact {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: flex-end;
}

.float-call,
.float-chat {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 22px;
    font-size: 16px;
    font-weight: 800;
    border-radius: 999px;
    box-shadow: 0 10px 26px rgba(3, 64, 103, 0.24);
    text-decoration: none;
    transition: transform 0.15s ease, filter 0.15s ease;
}

.float-call { background: var(--primary-color); color: #fff; }
.float-chat { background: var(--yellow); color: #3c1e1e; }
.float-call i, .float-chat i { font-size: 18px; }
.float-call:hover, .float-chat:hover { filter: brightness(1.05); transform: translateY(-2px); }

@media (max-width: 600px) {
    .float-contact { right: 14px; bottom: 14px; }
    .float-call, .float-chat { padding: 14px; }
    .float-call-text { display: none; }
    .float-call i, .float-chat i { font-size: 22px; }
}

/* ---------- 헤더 ---------- */
header {
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
}

header .container { display: flex; justify-content: space-between; align-items: center; }

.logo a {
    font-size: 23px;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--primary-color);
    transition: color 0.15s ease;
}
.logo a:hover { color: var(--primary-dark); }

.search-form {
    display: flex;
    align-items: center;
    background: #eaf4fb;
    border: 1px solid var(--border-color);
    border-radius: 999px;
    padding: 5px 8px 5px 16px;
    width: 300px;
    transition: border-color 0.15s ease, background 0.15s ease;
}
.search-form:focus-within { background: #fff; border-color: var(--ice); }

.search-form input {
    border: none;
    background: transparent;
    padding: 8px;
    width: 100%;
    outline: none;
    font-size: 14px;
    color: var(--text-color);
}
.search-form input::placeholder { color: #475569; }

.search-form button {
    border: none;
    background: var(--primary-color);
    cursor: pointer;
    color: #fff;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s ease;
}
.search-form button:hover { background: var(--primary-dark); }

/* ---------- 메인 / 히어로 (Concept B: 그라디언트 배너) ---------- */
main { padding: 32px 0 40px; }

.hero.hero {
    position: relative;
    overflow: hidden;
    margin-top: 8px;
    padding: 48px 40px 44px;
    border-radius: 24px;
    text-align: left;
    background: linear-gradient(160deg, #02679f 0%, #0369a1 52%, #075985 100%);
    color: #fff;
}
.hero.hero::after {
    content: "";
    position: absolute;
    right: -70px;
    top: -110px;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.55), transparent 65%);
    pointer-events: none;
}
.hero-kicker {
    position: relative;
    z-index: 1;
    font-size: 12.5px;
    font-weight: 800;
    letter-spacing: 0.18em;
    color: #bae6fd;
    margin-bottom: 10px;
}
/* h1은 SEO용 태그 교체(기존 h2 스타일 그대로 상속) */
.hero.hero h1,
.hero.hero h2 {
    position: relative;
    z-index: 1;
    font-size: clamp(28px, 4.6vw, 42px);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.18;
    margin-bottom: 12px;
    color: #fff;
}
.hero.hero p {
    position: relative;
    z-index: 1;
    color: #e0f2fe;
    font-size: 16.5px;
}
.region-chips {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 24px;
}
.region-chips a {
    background: rgba(2, 45, 74, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.34);
    color: #fff;
    font-size: 13.5px;
    font-weight: 600;
    padding: 7px 15px;
    border-radius: 999px;
    transition: background 0.15s ease, color 0.15s ease;
}
.region-chips a:hover { background: #fff; color: var(--primary-dark); border-color: #fff; }

/* ---------- 목록 헤드 ---------- */
.list-head {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin: 36px 0 16px;
}
.list-head h2 {
    font-size: 21px;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #0b2e4a;
}
.list-head::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--border-color);
    align-self: center;
}

/* ---------- 업체 카드 (1열 → 2열 그리드) ---------- */
.post-list {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px !important;
    flex-direction: unset !important;
}

.post-list > a {
    display: block;
    min-width: 0;
    /* 띄어쓰기 없는 긴 업체명이 카드 밖으로 넘치지 않도록 줄바꿈 허용 */
    overflow-wrap: anywhere;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 24px;
    text-decoration: none;
    color: inherit;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.post-list > a:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
    border-color: #7dd3fc;
}

.post-list h3 {
    font-size: 17.5px;
    font-weight: 800;
    color: #0b2e4a;
    letter-spacing: -0.01em;
    margin: 0;
}

.post-list > a > div:first-child { margin-bottom: 8px; }

.post-list > a > div:last-child {
    display: flex;
    flex-direction: column;
    gap: 5px;
    font-size: 14px;
    color: var(--light-text);
}
.post-list strong { color: #475569; font-weight: 700; }
.post-list > a > div:last-child > div:last-child { color: var(--primary-color); font-weight: 700; }
.post-list > a > div:last-child > div:last-child strong { color: var(--primary-color); }

/* 기존 유틸 클래스 (상세 페이지 등) */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 30px; }
.card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
}
.card:hover { transform: translateY(-5px); }

/* ---------- 상세 페이지 ---------- */
.detail-header { background: #fff; padding: 40px 0; border-bottom: 1px solid var(--border-color); }
.detail-header h1 {
    font-size: clamp(26px, 4vw, 36px);
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #0b2e4a;
}
.detail-header p { margin-top: 6px; color: var(--light-text); font-size: 15px; }
.detail-header .crumb {
    display: inline-block;
    margin-bottom: 12px;
    font-size: 13px;
    font-weight: 700;
    color: var(--primary-color);
    background: #eaf4fb;
    border-radius: 999px;
    padding: 4px 12px;
}
.detail-container { display: flex; gap: 40px; align-items: flex-start; }
.detail-main { flex: 1; min-width: 0; }
.detail-info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.info-item { background: #fff; border: 1px solid var(--border-color); border-radius: 16px; padding: 20px; }
.info-label {
    font-size: 13px;
    color: var(--light-text);
    font-weight: 700;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.info-value { font-size: 15px; color: var(--text-color); word-break: keep-all; }
.info-value .sub-info { font-size: 13px; margin-top: 5px; color: var(--light-text); }
.info-value .tel-strong { font-weight: 700; color: var(--primary-dark); }

.section-title {
    font-size: 22px;
    font-weight: 800;
    margin: 40px 0 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-color);
}

.review-card {
    background: #fff;
    border: 1px solid var(--border-color);
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 15px;
}
.review-title { font-weight: 700; margin-bottom: 8px; font-size: 16px; }
.review-title a { color: var(--text-color); }
.review-title a:hover { color: var(--primary-color); }
.review-content { font-size: 14px; color: #555; }

/* ---------- 푸터 ---------- */
footer {
    background: var(--dark);
    color: #94a3b8;
    padding: 50px 0;
    margin-top: 60px;
    text-align: center;
    font-size: 14px;
}
.footer-nav { margin-bottom: 20px; line-height: 1.8; }
.footer-nav a { margin: 0 10px; color: #bae6fd; }
.footer-nav a:hover { color: #fff; }
footer p { color: #94a3b8; }

/* ---------- 페이지네이션 ---------- */
.pagination-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin: 40px auto;
    flex-wrap: wrap;
}

.pg-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 38px;
    padding: 0 12px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background-color: #fff;
    color: #4a5568;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s ease-in-out;
    cursor: pointer;
    user-select: none;
    text-decoration: none;
}
.pg-btn:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.18);
}
.pg-btn.active {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
    font-weight: 800;
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.25);
}

/* ---------- 버튼류 ---------- */
.site-link {
    display: inline-block;
    padding: 8px 15px;
    background: #eaf4fb;
    border: 1px solid var(--border-color);
    border-radius: 999px;
    font-size: 13px;
    margin-right: 5px;
    margin-bottom: 5px;
    font-weight: 600;
}
.site-link:hover { background: var(--primary-color); border-color: var(--primary-color); color: #fff; }

.action-btns { display: flex; gap: 12px; margin-top: 25px; flex-wrap: wrap; }

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 24px;
    border-radius: 999px;
    font-weight: 800;
    transition: all 0.25s;
    font-size: 16px;
    cursor: pointer;
}
.btn-map { background: #64748b; color: #fff; }
.btn-call { background: var(--primary-color); color: #fff; }
.btn-chat { background: var(--yellow); color: #3c1e1e; }
.btn:hover { opacity: 0.92; transform: translateY(-2px); box-shadow: 0 8px 20px rgba(3, 64, 103, 0.18); }

/* ---------- 반응형 ---------- */
@media (max-width: 760px) {
    /* minmax(0, 1fr): 긴 업체명(min-content)이 컨테이너 폭을 넘겨 가로 스크롤이 생기지 않게 함 */
    .post-list { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 768px) {
    .container { padding: 0 15px; }
    .search-form { width: 100%; margin-top: 10px; }
    header .container { flex-direction: column; }
    .logo { margin-bottom: 4px; }
    .hero.hero { padding: 36px 22px 32px; border-radius: 18px; }
    .detail-container { flex-direction: column; }
    .detail-info-grid { grid-template-columns: 1fr; }
}

/* ---------- 히어로 검색 (Concept B 시안) ---------- */
.hero-search {
    position: relative;
    z-index: 1;
    display: flex;
    gap: 10px;
    max-width: 560px;
    margin-top: 24px;
}
.hero-search input {
    flex: 1;
    min-width: 0;
    border: none;
    border-radius: 999px;
    padding: 14px 20px;
    font-size: 15px;
    font-family: inherit;
    color: #0f2740;
    background: #ffffff;
    box-shadow: 0 12px 30px rgba(3, 64, 103, 0.28);
    outline: none;
}
.hero-search input::placeholder { color: #64748b; }
.hero-search button {
    border: none;
    border-radius: 999px;
    padding: 14px 26px;
    font-size: 15px;
    font-weight: 800;
    font-family: inherit;
    cursor: pointer;
    background: var(--yellow);
    color: #3c1e1e;
    white-space: nowrap;
    transition: filter 0.15s ease;
}
.hero-search button:hover { filter: brightness(1.05); }
@media (max-width: 768px) {
    .hero-search { max-width: none; }
    .hero-search button { padding: 14px 18px; }
}
