/* =============================================
   공통 UI 컴포넌트
   ============================================= */

/* ── CTA 상담/예약 배너 ───────────────────── */
.cta-consultation {
    padding: 0 20px;
    margin: 48px auto;
    max-width: 1180px;
}

.cta-consultation__body {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    background: #faf0ed;
    border-radius: 16px;
    padding: 28px 40px;
}

/* 왼쪽: 아이콘 + 텍스트 */
.cta-consultation__info {
    display: flex;
    align-items: center;
    gap: 20px;
}

.cta-consultation__icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
}

.cta-consultation__icon svg {
    width: 100%;
    height: 100%;
}

.cta-consultation__text strong {
    display: block;
    font-size: 16px;
    font-weight: 700;
    color: #1a1a1a;
    letter-spacing: -0.4px;
    margin-bottom: 4px;
}

.cta-consultation__text p {
    margin: 0;
    font-size: 14px;
    color: #666;
    letter-spacing: -0.3px;
}

/* 오른쪽: 버튼 */
.cta-consultation__btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    background: #b5837c;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: -0.4px;
    text-decoration: none;
    padding: 14px 28px;
    border-radius: 50px;
    transition: background 0.2s, transform 0.15s;
    white-space: nowrap;
}

.cta-consultation__btn svg {
    width: 18px;
    height: 18px;
    transition: transform 0.15s;
}

.cta-consultation__btn:hover {
    background: #9e6e68;
}

.cta-consultation__btn:hover svg {
    transform: translateX(3px);
}

/* ── 반응형 ───────────────────────────────── */
@media (max-width: 768px) {
    .cta-consultation__body {
        flex-direction: column;
        align-items: stretch;
        padding: 24px 20px;
        gap: 20px;
    }

    .cta-consultation__btn {
        display: flex;
        width: 100%;
        box-sizing: border-box;
        justify-content: center;
        white-space: normal;
        text-align: center;
        padding: 14px 16px;
    }
}

@media (max-width: 480px) {
    .cta-consultation__icon {
        width: 44px;
        height: 44px;
    }

    .cta-consultation__text strong {
        font-size: 15px;
    }

    .cta-consultation__text p {
        font-size: 13px;
    }
}

@media (max-width: 360px) {
    .cta-consultation {
        margin: 36px auto;
    }

    .cta-consultation__body {
        padding: 20px 16px;
        gap: 16px;
    }

    .info-bar {
        padding: 28px 16px;
    }
}


/* ── 병원 정보 바 ─────────────────────────── */
.info-bar {
    background: #fff;
    padding: 40px 20px;
    margin: 0;
}

.info-bar__inner {
    display: flex;
    align-items: flex-start;
    gap: 0;
    max-width: 1180px;
    margin: 0 auto;
}

/* 슬로건 */
.info-bar__slogan {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    padding-right: 40px;
}

.info-bar__slogan p {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.55;
    letter-spacing: -0.6px;
    white-space: nowrap;
}

/* 구분선 (대각선) */
.info-bar__divider {
    flex-shrink: 0;
    position: relative;
    width: 24px;
    align-self: stretch;
    margin: 0 32px;
    overflow: visible;
}

.info-bar__divider::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 1.5px;
    background: #d8c8c0;
    transform: skewX(-18deg);
    transform-origin: center;
}

/* 각 항목 */
.info-bar__item {
    flex: 1;
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 0 20px 0 0;
    min-width: 0;
}

.info-bar__item + .info-bar__item {
    padding-left: 20px;
}

/* 아이콘 */
.info-bar__icon {
    flex-shrink: 0;
    display: block;
    width: 48px;
    height: 48px;
}

.info-bar__icon svg {
    width: 100%;
    height: 100%;
}

/* 콘텐츠 */
.info-bar__content {
    flex: 1;
    min-width: 0;
}

.info-bar__title {
    display: block;
    font-size: 15px;
    font-weight: 700;
    color: #1a1a1a;
    letter-spacing: -0.4px;
    margin-bottom: 6px;
}

.info-bar__phone {
    display: block;
    font-size: 18px;
    font-weight: 700;
    color: #b5837c;
    letter-spacing: -0.3px;
    text-decoration: none;
    margin-bottom: 6px;
    transition: color 0.2s;
}

.info-bar__phone:hover {
    color: #9e6e68;
}

.info-bar__desc {
    margin: 0 0 10px;
    font-size: 13px;
    color: #666;
    line-height: 1.7;
    letter-spacing: -0.3px;
}

.info-bar__closed {
    color: #b5837c;
    font-weight: 600;
}

/* 아웃라인 버튼 */
.info-bar__link {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    font-size: 13px;
    color: #3d2e2a;
    text-decoration: none;
    border: 1px solid #c8b0a8;
    border-radius: 50px;
    padding: 6px 14px 6px 16px;
    transition: border-color 0.2s, color 0.2s, background 0.2s;
    white-space: nowrap;
}

.info-bar__link svg {
    width: 14px;
    height: 14px;
    transition: transform 0.15s;
}

.info-bar__link:hover {
    border-color: #b5837c;
    color: #b5837c;
    background: #fff;
}

.info-bar__link:hover svg {
    transform: translateX(2px);
}

/* ── 반응형 ───────────────────────────────── */
@media (max-width: 1024px) {
    /* 슬로건·구분선 숨김 → 아이템 4개에 공간 확보 */
    .info-bar__slogan,
    .info-bar__divider {
        display: none;
    }

    .info-bar__item {
        padding-right: 24px;
        gap: 12px;
    }

    .info-bar__item + .info-bar__item {
        padding-left: 24px;
        border-left: 1px solid #ede5e0;
    }

    .info-bar__icon {
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 860px) {
    /* 아이템 4개 → 2×2 그리드 전환 */
    .info-bar__inner {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 28px 0;
    }

    /* display:none 된 slogan·divider는 그리드에서 제외됨 */
    .info-bar__item {
        padding: 0 24px 0 0;
        border-left: none;
    }

    /*
     * DOM상 slogan=1번째, divider=2번째 자식이므로
     * item 1=3번째(홀수), item 2=4번째(짝수), item 3=5번째(홀수), item 4=6번째(짝수)
     * 짝수 = 오른쪽 열 → 좌측 구분선
     */
    .info-bar__item:nth-child(even) {
        border-left: 1px solid #ede5e0;
        padding: 0 0 0 24px;
    }
}

@media (max-width: 768px) {
    /* 그리드 해제 → 단일 세로 스택 */
    .info-bar__inner {
        display: flex;
        flex-direction: column;
        gap: 0;
    }

    .info-bar__slogan {
        display: block;
        padding: 0 0 24px;
    }

    .info-bar__slogan p {
        font-size: 18px;
        white-space: normal;
    }

    .info-bar__divider {
        display: none;
    }

    .info-bar__item,
    .info-bar__item:nth-child(even) {
        padding: 24px 0 0;
        border-left: none;
        width: 100%;
    }

    /* 첫 번째 아이템(slogan·divider 다음 = 3번째 자식): 슬로건 하단 padding이 간격 역할 */
    .info-bar__item:nth-child(3) {
        padding-top: 0;
    }
}

@media (max-width: 480px) {
    .info-bar {
        padding: 32px 20px;
    }

    .info-bar__phone {
        font-size: 16px;
    }

    .info-bar__link {
        width: 100%;
        justify-content: center;
        box-sizing: border-box;
    }
}


/* ── 전국지점 목록 ───────────────────────── */
.branch-list {
    padding: 60px 20px;
    background: #faf8f6;
}

.branch-list__inner {
    max-width: 1180px;
    margin: 0 auto;
}

.branch-list__header {
    margin-bottom: 36px;
}

.branch-list__header h2 {
    font-size: 26px;
    font-weight: 700;
    color: #1a1a1a;
    letter-spacing: -0.6px;
    margin: 0 0 8px;
}

.branch-list__header p {
    font-size: 15px;
    color: #888;
    margin: 0;
}

/* 그리드 */
.branch-list__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    list-style: none;
    padding: 0;
    margin: 0;
}

/* 카드 */
.branch-card {
    position: relative;
    background: #fff;
    border: 1px solid #ede5e0;
    border-radius: 12px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    transition: box-shadow 0.2s;
}

.branch-card:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}


.branch-card__name {
    font-size: 16px;
    font-weight: 700;
    color: #1a1a1a;
    letter-spacing: -0.4px;
}

.branch-card__city {
    font-size: 12px;
    color: #b5837c;
    font-weight: 600;
    letter-spacing: -0.2px;
}

.branch-card__address {
    font-style: normal;
    margin-top: 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.branch-card__address p {
    margin: 0;
    font-size: 13px;
    color: #555;
    line-height: 1.5;
}

.branch-card__phone {
    font-size: 15px;
    font-weight: 700;
    color: #1a1a1a;
    text-decoration: none;
    transition: color 0.2s;
}

.branch-card__phone:hover {
    color: #b5837c;
}

.branch-card__hours {
    font-size: 12px;
    color: #999;
    line-height: 1.6;
}

/* 버튼 묶음 — 버튼 없어도 높이 고정으로 카드 정렬 일관성 유지 */
.branch-card__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    min-height: 34px;
}

/* 공통 버튼 */
.branch-card__btn {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    font-size: 13px;
    text-decoration: none;
    border-radius: 50px;
    padding: 6px 14px 6px 16px;
    transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.branch-card__btn svg {
    width: 13px;
    height: 13px;
    transition: transform 0.15s;
}

.branch-card__btn:hover svg {
    transform: translateX(2px);
}

/* 지도 보기: 아웃라인 */
.branch-card__btn--map {
    color: #3d2e2a;
    border: 1px solid #c8b0a8;
}

.branch-card__btn--map:hover {
    border-color: #b5837c;
    color: #b5837c;
}

/* 사이트 방문: 채움 */
.branch-card__btn--site {
    color: #fff;
    background: #b5837c;
    border: 1px solid #b5837c;
}

.branch-card__btn--site:hover {
    background: #9e6e68;
    border-color: #9e6e68;
}

/* 현재 지점 카드 */
.branch-card--current {
    border-color: #b5837c;
    box-shadow: 0 4px 24px rgba(181, 131, 124, 0.14);
}

.branch-card--current:hover {
    box-shadow: 0 8px 32px rgba(181, 131, 124, 0.22);
}

/* 지점명 + 배지 행 */
.branch-card__name-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

/* 현재 지점 배지 */
.branch-card__badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.5;
    color: #fff;
    background: #b5837c;
    border-radius: 50px;
    padding: 4px 10px 4px 8px;
    white-space: nowrap;
    letter-spacing: 0;
}

.branch-card__badge svg {
    width: 11px;
    height: 11px;
    flex-shrink: 0;
}

/* 준비 중 카드 */
.branch-card--inactive {
    background: #f8f5f4;
    border-color: #e8e0dc;
    opacity: 0.7;
}

.branch-card__coming {
    margin: 8px 0 0;
    font-size: 13px;
    font-weight: 600;
    color: #b5837c;
}

/* ── 반응형 ───────────────────────────────── */
@media (max-width: 1024px) {
    .branch-list__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .branch-list {
        padding: 40px 20px;
    }

    .branch-list__grid {
        grid-template-columns: 1fr;
    }

    .branch-list__header h2 {
        font-size: 22px;
    }
}


/* ── FAQ 섹션 (메인페이지) ───────────────── */
.faq-section {
    padding: 72px 20px;
    background: #fff;
}

.faq-section__inner {
    max-width: 1180px;
    margin: 0 auto;
}

/* 헤더 */
.faq-section__header {
    margin-bottom: 36px;
}

.faq-section__header h2 {
    font-size: 26px;
    font-weight: 700;
    color: #1a1a1a;
    letter-spacing: -0.6px;
    margin: 0 0 8px;
}

.faq-section__header p {
    font-size: 15px;
    color: #888;
    margin: 0;
}

/* 카테고리 탭 */
.faq-section__tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 28px;
}

.faq-tab {
    display: inline-flex;
    align-items: center;
    padding: 7px 18px;
    border: 1px solid #e0d6d2;
    border-radius: 50px;
    background: #fff;
    font-size: 14px;
    font-weight: 500;
    color: #777;
    letter-spacing: -0.3px;
    cursor: pointer;
    transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.faq-tab:hover {
    border-color: #b5837c;
    color: #b5837c;
}

.faq-tab.is-active {
    background: #b5837c;
    border-color: #b5837c;
    color: #fff;
    font-weight: 600;
}

/* FAQ 목록 */
.faq-section__list {
    border-top: 2px solid #1a1a1a;
}

/* FAQ 아이템 */
.faq-item {
    border-bottom: 1px solid #ede5e0;
}

.faq-item__question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    width: 100%;
    padding: 20px 4px;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
    letter-spacing: -0.4px;
    line-height: 1.5;
    transition: color 0.2s;
}

.faq-item__question:hover {
    color: #b5837c;
}

.faq-item.is-open .faq-item__question {
    color: #b5837c;
}

.faq-item__arrow {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    color: #aaa;
    transition: transform 0.25s, color 0.2s;
}

.faq-item.is-open .faq-item__arrow {
    transform: rotate(180deg);
    color: #b5837c;
}

/* 답변 */
.faq-item__answer {
    overflow: hidden;
}

.faq-item__answer[hidden] {
    display: none;
}

.faq-item__answer-inner {
    padding: 0 4px 24px;
    font-size: 15px;
    color: #555;
    line-height: 1.8;
    letter-spacing: -0.3px;
}

.faq-item__answer-inner p {
    margin: 0 0 12px;
}

.faq-item__answer-inner p:last-child {
    margin-bottom: 0;
}

/* 더 보기 버튼 */
.faq-section__more {
    margin-top: 36px;
    text-align: center;
}

.faq-section__more-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 14px 32px;
    border: 1.5px solid #b5837c;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 600;
    color: #b5837c;
    text-decoration: none;
    letter-spacing: -0.3px;
    transition: background 0.2s, color 0.2s;
}

.faq-section__more-btn svg {
    width: 16px;
    height: 16px;
    transition: transform 0.15s;
}

.faq-section__more-btn:hover {
    background: #b5837c;
    color: #fff;
}

.faq-section__more-btn:hover svg {
    transform: translateX(3px);
}

/* ── FAQ 반응형 ───────────────────────────── */
@media (max-width: 768px) {
    .faq-section {
        padding: 52px 20px;
    }

    .faq-section__header h2 {
        font-size: 22px;
    }

    .faq-item__question {
        font-size: 15px;
        padding: 18px 4px;
    }
}

@media (max-width: 480px) {
    .faq-section {
        padding: 40px 20px;
    }

    .faq-tab {
        font-size: 13px;
        padding: 6px 14px;
    }

    .faq-item__question {
        font-size: 14px;
    }

    .faq-item__answer-inner {
        font-size: 14px;
    }

    .faq-section__more-btn {
        width: 100%;
        justify-content: center;
        box-sizing: border-box;
    }
}


/* ── nQuick 우측 고정 메뉴 (SVG 버전) ────────── */

/* 기본: 숨김 */
#nQuick-zone {
    position: fixed;
    right: 12px;
    top: 50%;
    z-index: 1000;
    opacity: 0;
    transform: translateY(-50%) translateX(16px);
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* 스크롤 300px 이상: 표시 */
#nQuick-zone.is-visible {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
    pointer-events: auto;
}

#nQuick ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

#nQuick ul li a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    width: 64px;
    padding: 10px 4px;
    background: #fff;
    border: 1px solid #e8ddd8;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    text-decoration: none;
    color: #5a4e4a;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}

#nQuick ul li a:hover {
    background: #a87860;
    border-color: #a87860;
    color: #fff;
    box-shadow: 0 4px 14px rgba(168, 120, 96, 0.35);
}

#nQuick ul li a svg {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
}

#nQuick ul li a span {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: -0.3px;
    line-height: 1.2;
    text-align: center;
    word-break: keep-all;
}

#nQuick ul li.nquick-top a {
    background: #3d3430;
    border-color: #3d3430;
    color: #e0d4ce;
}

#nQuick ul li.nquick-top a:hover {
    background: #1e1814;
    border-color: #1e1814;
    color: #fff;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

@media (max-width: 1024px) {
    #nQuick-zone {
        display: none;
    }
}
