@import url("https://fonts.googleapis.com/css2?family=Nanum+Gothic:wght@400;700;800&display=swap");

/* =============================================================
   service.css — 서비스 페이지 공통 스타일
   (general_patient, nursing_home, mental_health, alcohol,
    event_medical, goin_transport)

   각 페이지 HTML에 아래 한 줄만 추가하면 색상 변경 가능:
   <style>:root { --accent:#e74c3c; --accent-dark:#c0392b; }</style>
   ============================================================= */

/* ----- CSS 기본 변수 (페이지별 override 가능) ----- */
:root {
    --accent:      #0ea5e9;
    --accent-dark: #0284c7;
    --blue:        #0369a1;
    --blue-dark:   #0284c7;
    --dark:        #0c4a6e;
    --dark2:       #0369a1;
}

/* ----- SEO 요약 팝업 버튼 ----- */
.seo-summary-btn {
    position: fixed;
    top: 60px;
    right: 10px;
    background: var(--accent);
    color: white;
    border: none;
    padding: 10px 16px;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    z-index: 1000;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
}

.seo-summary-btn:hover {
    background: var(--accent-dark);
    transform: translateY(-2px);
}

.seo-popup {
    opacity: 0;
    visibility: hidden;
    transform: scale(0.85);
    transition: all 0.3s ease;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1001;
}

.seo-popup.active {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
}

.seo-popup-content {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 28px;
    border-radius: 14px;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
}

.seo-popup.active .seo-popup-content {
    transform: translate(-50%, -50%) scale(1);
}

.close-popup {
    position: absolute;
    top: 14px; right: 18px;
    background: none;
    border: none;
    font-size: 22px;
    cursor: pointer;
    color: #666;
}

/* ----- 플로팅 전화 버튼 ----- */
.fixed-call-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    font-size: 22px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    z-index: 1000;
    animation: pulse 2s infinite;
}

/* ----- 히어로 섹션 ----- */
.service-hero {
    background: var(--blue);
    color: white;
    padding: 20px 0;
    text-align: center;
}

.service-hero h1 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 12px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
}

.service-hero p {
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 auto;
    opacity: 0.95;
}

/* ----- 서비스 커버리지 ----- */
.coverage-area {
    background: white;
    padding: 24px 0;
    text-align: center;
    border-bottom: 1px solid #e9ecef;
}

.coverage-cities {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 16px;
}

.city-tag {
    background: var(--accent);
    color: white;
    padding: 7px 15px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.88rem;
}

/* ----- 메인 콘텐츠 레이아웃 ----- */
.main-content {
    padding: 36px 0;
    background: white;
}

.content-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 36px;
    margin-top: 24px;
    contain: layout style paint;
}

.content-main h2 {
    color: var(--dark);
    font-size: 1.6rem;
    margin-bottom: 14px;
    padding-bottom: 8px;
    border-bottom: 3px solid var(--accent);
}

.content-main h3 {
    color: var(--dark2);
    font-size: 1.2rem;
    margin: 22px 0 10px;
}

.content-main p {
    margin-bottom: 10px;
    line-height: 1.75;
    color: #555;
}

.content-main ul {
    margin-bottom: 16px;
    padding-left: 20px;
}

.content-main li {
    margin-bottom: 5px;
    color: #555;
    line-height: 1.7;
}

/* ----- 사이드바 ----- */
.sidebar {
    background: #f8f9fa;
    padding: 22px;
    border-radius: 10px;
    height: fit-content;
    position: sticky;
    top: 20px;
}

.quick-contact {
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    color: white;
    padding: 18px;
    border-radius: 10px;
    text-align: center;
    margin-bottom: 20px;
}

.quick-contact h3 {
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.quick-contact .phone {
    font-size: 1.7rem;
    font-weight: 900;
    margin-bottom: 10px;
    display: block;
}

.call-btn {
    background: white;
    color: var(--accent);
    padding: 9px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    transition: all 0.3s ease;
}

.call-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.service-features {
    background: white;
    padding: 18px;
    border-radius: 10px;
    border: 1px solid #e9ecef;
}

.service-features h4 {
    color: var(--dark);
    margin-bottom: 14px;
    font-size: 1rem;
}

.feature-item {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    padding: 7px;
    background: #f8f9fa;
    border-radius: 5px;
}

.feature-icon {
    width: 26px;
    height: 26px;
    background: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    margin-right: 10px;
    font-size: 0.75rem;
    flex-shrink: 0;
}

/* ----- FAQ 섹션 ----- */
.faq-section {
    background: #f8f9fa;
    padding: 36px 0;
}

.faq-item {
    background: white;
    margin-bottom: 10px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.faq-question {
    background: var(--blue);
    color: white;
    padding: 14px 16px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.3s ease;
    font-size: 0.92rem;
    position: relative;
}

.faq-question:hover {
    background: var(--blue-dark);
}

.faq-question::after {
    content: '▼';
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.75rem;
    transition: transform 0.3s ease;
}

.faq-question.active::after {
    transform: translateY(-50%) rotate(180deg);
}

.faq-answer {
    padding: 14px 16px;
    opacity: 0;
    visibility: hidden;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    color: #555;
    line-height: 1.7;
    font-size: 0.9rem;
}

.faq-answer.active {
    opacity: 1;
    visibility: visible;
    max-height: 500px;
}

/* ----- 이송 절차 섹션 ----- */
.process-section {
    background: white;
    padding: 36px 0;
}

.process-item {
    background: white;
    margin-bottom: 16px;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.07);
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
}

.process-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0,0,0,0.1);
    border-color: var(--accent);
}

.process-question {
    background: var(--blue);
    color: white;
    padding: 16px 22px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 0.97rem;
    border-radius: 20px 20px 0 0;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.process-question::before {
    content: '';
    width: 38px; height: 38px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    position: absolute;
    left: 18px; top: 50%;
    transform: translateY(-50%);
}

.process-question::after {
    content: '▼';
    font-size: 13px;
    transition: transform 0.3s ease;
    margin-right: 8px;
}

.process-question.active::after {
    transform: rotate(180deg);
}

.process-question:hover {
    background: var(--blue-dark);
}

.process-number {
    position: absolute;
    left: 20px; top: 50%;
    transform: translateY(-50%);
    width: 34px; height: 34px;
    background: white;
    color: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    z-index: 2;
}

.process-text {
    margin-left: 56px;
    flex: 1;
}

.process-answer {
    padding: 22px 28px;
    opacity: 0;
    visibility: hidden;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    color: #555;
    line-height: 1.75;
    font-size: 0.93rem;
    background: linear-gradient(135deg, #f0f9ff 0%, #ffffff 100%);
    border-radius: 0 0 20px 20px;
    position: relative;
}

.process-answer::before {
    content: '';
    position: absolute;
    top: 0; left: 28px; right: 28px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

.process-answer.active {
    opacity: 1;
    visibility: visible;
    max-height: 600px;
}

/* ----- 요금 섹션 ----- */
.pricing-detail {
    background: #f8f9fa;
    padding: 36px 0;
}

.pricing-item {
    background: white;
    margin-bottom: 16px;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.07);
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
}

.pricing-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(44,62,80,0.1);
    border-color: var(--dark);
}

.pricing-question {
    background: linear-gradient(135deg, var(--dark) 0%, var(--dark2) 100%);
    color: white;
    padding: 16px 22px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 0.97rem;
    border-radius: 20px 20px 0 0;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.pricing-question::before {
    content: '';
    width: 46px; height: 46px;
    background: rgba(255,255,255,0.15);
    border-radius: 50%;
    position: absolute;
    left: 18px; top: 50%;
    transform: translateY(-50%);
}

.pricing-question::after {
    content: '▼';
    font-size: 13px;
    transition: transform 0.3s ease;
    margin-right: 8px;
}

.pricing-question.active::after {
    transform: rotate(180deg);
}

.pricing-question:hover {
    background: linear-gradient(135deg, var(--dark2) 0%, var(--dark) 100%);
}

.pricing-icon {
    position: absolute;
    left: 22px; top: 50%;
    transform: translateY(-50%);
    width: 38px; height: 38px;
    background: white;
    color: var(--dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    z-index: 2;
    font-weight: 700;
}

.pricing-text {
    margin-left: 66px;
    flex: 1;
}

.pricing-answer {
    padding: 22px 28px;
    opacity: 0;
    visibility: hidden;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    color: #555;
    line-height: 1.75;
    font-size: 0.93rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 0 0 20px 20px;
    position: relative;
}

.pricing-answer::before {
    content: '';
    position: absolute;
    top: 0; left: 28px; right: 28px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--dark), transparent);
}

.pricing-answer.active {
    opacity: 1;
    visibility: visible;
    max-height: 600px;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* =============================================================
   반응형 — 768px
   ============================================================= */
@media (max-width: 768px) {
    .content-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .service-hero {
        padding: 16px 0;
    }

    .service-hero h1 {
        font-size: 1.5rem;
    }

    .service-hero p {
        font-size: 0.95rem;
    }

    .main-content {
        padding: 22px 0;
    }

    .content-main h2 {
        font-size: 1.3rem;
    }

    .content-main h3 {
        font-size: 1.1rem;
        margin: 18px 0 8px;
    }

    .content-main p,
    .content-main li {
        font-size: 0.88rem;
        line-height: 1.65;
    }

    .process-section,
    .pricing-detail,
    .faq-section {
        padding: 24px 0;
    }

    .coverage-cities {
        gap: 8px;
    }

    .city-tag {
        padding: 5px 11px;
        font-size: 0.78rem;
    }

    .seo-summary-btn {
        padding: 9px 13px;
        font-size: 0.85rem;
    }

    .seo-popup-content {
        padding: 18px;
        margin: 10px;
    }

    .sidebar {
        order: -1;
        padding: 18px;
        position: static;
    }

    .quick-contact {
        padding: 14px;
    }

    .feature-item {
        padding: 5px;
        margin-bottom: 7px;
    }

    .fixed-call-btn {
        width: 50px;
        height: 50px;
        font-size: 20px;
        bottom: 15px;
        right: 15px;
    }

    .process-item,
    .pricing-item {
        border-radius: 18px;
        margin-bottom: 12px;
    }

    .process-question,
    .pricing-question {
        padding: 13px 18px;
        font-size: 0.88rem;
        border-radius: 16px 16px 0 0;
    }

    .process-number {
        left: 15px;
        width: 30px; height: 30px;
        font-size: 0.95rem;
    }

    .process-text {
        margin-left: 46px;
    }

    .pricing-icon {
        left: 16px;
        width: 33px; height: 33px;
        font-size: 1.1rem;
    }

    .pricing-text {
        margin-left: 56px;
    }

    .process-answer,
    .pricing-answer {
        padding: 18px 22px;
        font-size: 0.88rem;
        border-radius: 0 0 16px 16px;
    }
}

/* =============================================================
   반응형 — 480px
   ============================================================= */
@media (max-width: 480px) {
    .service-hero h1 {
        font-size: 1.3rem;
    }
}
