@charset "UTF-8";
/* 
 * 경희평생한의원 V3.5 스타일시트
 * 업데이트: 모바일 진료시간 안내 시인성 개선 및 여백 최적화
 */

:root {
    --primary: #2C4234;
    --primary-light: #4A6355;
    --accent: #B38B5D; 
    --accent-light: #F4F1EA;
    --bg-light: #F9F9F8;
    --text-main: #222222;
    --text-sub: #555555;
    --border: #E0E0E0;
    --white: #FFFFFF;
}

/* Base */
body {
    font-family: 'Pretendard', sans-serif;
    margin: 0;
    padding: 0;
    color: var(--text-main);
    line-height: 1.6;
    background: var(--white);
    word-break: keep-all;
    -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; cursor: pointer; transition: color 0.2s; }
img { max-width: 100%; height: auto; display: block; border-radius: 8px; }

/* Layout */
.container { max-width: 1100px; margin: 0 auto; padding: 0 5%; }
section { padding: 90px 0; }
.bg-light { background-color: var(--bg-light); }
.bg-accent { background-color: var(--accent-light); }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

/* Typography */
.section-title {
    font-family: 'Nanum Myeongjo', serif;
    font-size: 2.3em;
    color: var(--primary);
    margin-bottom: 20px;
    line-height: 1.35;
    text-align: center;
    word-break: keep-all;
}
.section-desc {
    text-align: center;
    color: var(--text-sub);
    font-size: 1.15em;
    margin-bottom: 50px;
    line-height: 1.6;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    background: var(--primary);
    color: var(--white);
    border-radius: 6px;
    font-weight: 600;
    font-size: 1.05em;
    transition: all 0.3s ease;
    border: 1px solid var(--primary);
    text-align: center;
}
.btn:hover, .btn:focus { background: var(--accent); border-color: var(--accent); color: var(--white); }

.btn-outline { background: transparent; color: var(--primary); }
.btn-outline:hover, .btn-outline:focus { background: var(--primary); color: var(--white); }

/* Header & Nav */
header {
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
    z-index: 999999;
    padding: 15px 0;
}
.header-inner {
    display: flex; justify-content: space-between; align-items: center;
    max-width: 1200px; margin: 0 auto; padding: 0 5%;
}
.logo img { height: 42px; width: auto; }

nav ul { display: flex; gap: 35px; list-style: none; margin: 0; padding: 0; font-weight: 600; }
nav ul li a { position: relative; padding: 10px 0; font-size: 1.05em; }
nav ul li a:hover, nav ul li a.active { color: var(--accent); }
nav ul li a.active::after {
    content: ''; position: absolute; bottom: 0; left: 0; width: 100%; height: 2px; background: var(--accent);
}

.header-reserve { display: block; }
.mobile-menu-btn { display: none; background: none; border: none; font-size: 1.8em; cursor: pointer; color: var(--primary); padding: 5px; }

/* Hero Sections */
.home-hero {
    background: var(--accent-light);
    padding: 80px 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    min-height: 500px;
}
.home-hero .container {
    align-items: center;
}
.home-hero-content { order: 1; }
.home-hero-img { order: 2; text-align: center; }
.home-hero-img img { 
    max-height: 480px; 
    width: auto; 
    margin: 0 auto; 
    object-fit: cover; 
    box-shadow: 0 15px 35px rgba(0,0,0,0.08); 
    border-radius: 12px;
}
.home-hero h1 {
    font-family: 'Nanum Myeongjo', serif;
    font-size: 3.2em;
    line-height: 1.3;
    color: var(--primary);
    margin-bottom: 25px;
}
.home-hero p {
    font-size: 1.25em;
    color: var(--text-sub);
    margin-bottom: 40px;
    max-width: 550px;
    font-weight: 400;
}
.hero-btns { display: flex; gap: 15px; }

/* Sub Hero */
.sub-hero {
    padding: 100px 5% 80px;
    background: var(--accent-light);
    text-align: center;
}
.sub-hero h1 {
    font-family: 'Nanum Myeongjo', serif;
    font-size: 2.6em;
    color: var(--primary);
    margin-bottom: 20px;
}
.sub-hero p { font-size: 1.15em; color: var(--text-sub); max-width: 750px; margin: 0 auto; }

/* Trust Banner */
.trust-banner {
    background: var(--primary);
    color: var(--white);
    padding: 30px 0;
}
.trust-banner-inner {
    display: flex; justify-content: space-around; max-width: 1000px; margin: 0 auto; text-align: center;
}
.trust-item strong { display: block; font-size: 1.3em; margin-bottom: 5px; color: var(--accent-light); }
.trust-item span { font-size: 0.95em; opacity: 0.9; }

/* Cards */
.card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 12px;
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.card:hover { transform: translateY(-6px); box-shadow: 0 15px 30px rgba(0,0,0,0.08); }
.card-link { display: block; height: 100%; }
.card-img { padding: 0; position: relative; }
.card-img img { width: 100%; height: 240px; object-fit: cover; }
.card-content { padding: 35px 30px; flex-grow: 1; display: flex; flex-direction: column; }
.card-num { color: var(--accent); font-weight: 700; font-size: 1.1em; margin-bottom: 10px; display: block; }

/* Brand Flow Section */
.brand-flow { text-align: center; font-size: 1.2em; font-weight: 500; color: var(--primary); max-width: 800px; margin: 0 auto 60px; line-height: 1.6; }
.brand-flow strong { color: var(--accent); }

/* Numbers Section */
.numbers {
    display: flex;
    justify-content: center;
    gap: 120px; 
    text-align: center;
    margin-bottom: 50px;
    margin-top: 30px;
}
.num-item h3 {
    font-size: 4.5em; 
    color: var(--accent);
    margin: 0 0 15px 0;
    font-weight: 700;
    line-height: 1;
}
.num-item p {
    font-size: 1.25em;
    font-weight: 700;
    color: var(--primary);
    margin: 0;
}

/* Lists & Accordion */
.step-list { list-style: none; padding: 0; margin: 0; }
.step-list li { position: relative; padding-left: 20px; margin-bottom: 12px; line-height: 1.6; color: var(--text-sub); }
.step-list li::before { content: "•"; position: absolute; left: 0; color: var(--accent); font-weight: bold; font-size: 1.2em; line-height: 1.4; }

.accordion { border-bottom: 1px solid var(--border); padding: 18px 0; }
.accordion summary { font-size: 1.15em; font-weight: 600; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; color: var(--text-main); }
.accordion summary::-webkit-details-marker { display: none; }
.accordion p { padding-top: 15px; color: var(--text-sub); line-height: 1.7; margin: 0; }
.accordion-icon { color: var(--accent); font-size: 1.4em; transition: transform 0.3s; }
details[open] .accordion-icon { transform: rotate(45deg); }

/* Schedule / Time List (V3.5 추가) */
.schedule-box { margin-top: 60px; background: var(--accent-light); padding: 50px; border-radius: 12px; text-align: center; }
.schedule-inner { display: inline-block; text-align: left; background: var(--white); padding: 40px 60px; border-radius: 8px; box-shadow: 0 10px 20px rgba(0,0,0,0.05); }

.time-list { list-style: none; padding: 0; margin: 0; font-size: 1.15em; color: var(--text-main); }
.time-list li { position: relative; padding-left: 20px; margin-bottom: 12px; line-height: 1.5; word-break: keep-all; }
.time-list li::before { content: "•"; position: absolute; left: 0; color: var(--accent); font-weight: bold; font-size: 1.2em; line-height: 1.4; }
.time-list strong { display: inline-block; width: 80px; color: var(--text-main); }
.time-list .time-txt { display: inline-block; letter-spacing: 0.5px; }
.time-list .highlight { color: var(--accent); font-weight: 600; margin-left: 5px; display: inline-block; }
.time-list .closed { color: #d32f2f; font-weight: bold; margin-top: 15px; }

/* Footer */
footer { background: #1A1A1A; color: #888; padding: 70px 5%; font-size: 0.95em; }
.footer-inner { max-width: 1100px; margin: 0 auto; }
.footer-logo { color: #fff; font-size: 1.6em; font-weight: bold; margin-bottom: 25px; font-family: 'Nanum Myeongjo', serif; }
.footer-links { margin-top: 25px; display: flex; gap: 20px; flex-wrap: wrap; }
.footer-links a { color: #ccc; text-decoration: none; border-bottom: 1px solid #555; padding-bottom: 2px; }
.footer-links a:hover { color: #fff; border-color: #fff; }

/* Mobile Bottom CTA & Icons */
.mobile-bottom-cta { display: none; }
.cta-icon { display: inline-block; font-style: normal; }

/* Photo Placeholders */
.photo-box { border-radius: 12px; overflow: hidden; box-shadow: 0 10px 20px rgba(0,0,0,0.05); }

/* Media Queries (Mobile) */
@media (max-width: 768px) {
    section { padding: 50px 0; }
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; gap: 30px; }
    
    .home-hero { padding: 40px 0 50px; text-align: center; }
    .home-hero .grid-2 { display: flex; flex-direction: column; gap: 25px; }
    .home-hero-content { order: 2; }
    .home-hero-img { order: 1; }
    .home-hero-img img { max-height: 320px; }
    
    .home-hero h1 { font-size: 1.9em; margin-bottom: 15px; }
    .home-hero p { font-size: 1.05em; line-height: 1.5; margin-bottom: 25px; margin-left: auto; margin-right: auto; }
    
    .hero-btns { flex-direction: column; gap: 10px; }
    .hero-btns .btn { width: 100%; padding: 12px 0; font-size: 1em; box-sizing: border-box; }

    .trust-banner { padding: 25px 0; }
    .trust-banner-inner { flex-direction: column; gap: 20px; }
    .trust-item strong { font-size: 1.2em; }
    
    .numbers { flex-direction: column; gap: 40px; margin-bottom: 30px; }
    .num-item h3 { font-size: 3.5em; margin-bottom: 5px; }
    .num-item p { font-size: 1.1em; }
    
    /* V3.5: 스케줄 박스 모바일 여백 최소화 */
    .schedule-box { padding: 30px 15px; margin-top: 40px; }
    .schedule-inner { padding: 25px 20px; width: 100%; box-sizing: border-box; display: block; }
    .time-list { font-size: 1.05em; }
    .time-list strong { width: 70px; }
    
    /* Header Mobile Menu */
    .header-reserve { display: none; }
    .mobile-menu-btn { display: block; }
    nav {
        position: absolute; top: 100%; left: 0; width: 100%;
        background: var(--white); border-top: 1px solid var(--border);
        box-shadow: 0 10px 15px rgba(0,0,0,0.05); display: none;
    }
    nav.active { display: block; }
    nav ul { flex-direction: column; gap: 0; }
    nav ul li a { display: block; padding: 18px 5%; border-bottom: 1px solid var(--border); font-size: 1.1em; }
    nav ul li a.active::after { display: none; }
    nav ul li a.active { background: var(--bg-light); color: var(--primary); font-weight: 700; }
    
    /* Mobile Bottom CTA */
    body { padding-bottom: 60px; }
    
    .mobile-bottom-cta {
        display: flex; 
        position: fixed; 
        bottom: 0; left: 0; 
        width: 100%;
        height: calc(60px + env(safe-area-inset-bottom));
        padding-bottom: env(safe-area-inset-bottom);
        background: var(--white); 
        box-shadow: 0 -2px 10px rgba(0,0,0,0.1); 
        z-index: 999999;
    }
    .mobile-bottom-cta a {
        flex: 1; 
        text-align: center; 
        font-size: 0.8em;
        font-weight: 700;
        color: var(--text-main); 
        border-right: 1px solid var(--border);
        display: flex; 
        flex-direction: column; 
        align-items: center; 
        justify-content: center;
        gap: 3px;
        padding: 0;
    }
    .mobile-bottom-cta a:last-child { border-right: none; }
    .mobile-bottom-cta a.primary-cta { background: var(--primary); color: var(--white); }
    
    .cta-icon { font-size: 1.4em; line-height: 1; display: block; }
}
