/* ========================================
   Theme Variables (Light / Dark Mode)
   ======================================== */

:root {
    /* Background */
    --bg-primary: #fff;
    --bg-secondary: #f8f9fa;
    --bg-card: #f9f9f9;
    --bg-card-alt: #ffffff;
    --bg-mobile-menu: #fafafa;
    --bg-mobile-menu-active: #f0f0f0;
    --bg-hover: #f5f5f5;
    --bg-tag: #eef2f6;
    --bg-treatment-footer: #f8f9fa;

    /* Text */
    --text-primary: #333;
    --text-secondary: #666;
    --text-tertiary: #888;
    --text-muted: #999;
    --text-dark: #222;
    --text-nav: #444;
    --text-treatment: #444;

    /* Brand */
    --brand-primary: #283a88;
    --brand-dark: #1e2d6b;
    --brand-navy: #1a237e;
    --brand-blue: #004c8c;

    /* Borders */
    --border-light: #eee;
    --border-medium: #ddd;
    --border-card: #f0f0f0;
    --border-mobile: #e8e8e8;

    /* Shadows */
    --shadow-card: 0 10px 30px rgba(0, 0, 0, 0.05);
    --shadow-hero: 0 15px 50px rgba(0, 0, 0, 0.15);
    --shadow-image: 0 10px 20px rgba(0, 0, 0, 0.1);
    --shadow-btn: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-map: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-cta: 0 4px 15px rgba(40, 58, 136, 0.3);

    /* Floating bar */
    --fb-bg: #fff;
    --fb-text: #555;
    --fb-icon: #444;
    --fb-tooltip-bg: #333;
    --fb-tooltip-text: #fff;

    /* Hamburger */
    --hamburger-color: #333;

    /* Section divider border */
    --section-border: #ddd;

    /* CTA button */
    --cta-bg: #283a88;
    --cta-text: #fff;

    /* Misc */
    --overlay-dark: rgba(0, 0, 0, 0.45);
    --color-scheme: light;
}

[data-theme="dark"] {
    /* Background */
    --bg-primary: #121220;
    --bg-secondary: #1a1a2e;
    --bg-card: #1e1e32;
    --bg-card-alt: #1e1e32;
    --bg-mobile-menu: #1a1a2e;
    --bg-mobile-menu-active: #252540;
    --bg-hover: #252540;
    --bg-tag: #252540;
    --bg-treatment-footer: #1a1a2e;

    /* Text */
    --text-primary: #e0e0e0;
    --text-secondary: #aaa;
    --text-tertiary: #999;
    --text-muted: #777;
    --text-dark: #e8e8e8;
    --text-nav: #ccc;
    --text-treatment: #bbb;

    /* Brand (slightly lighter for dark bg) */
    --brand-primary: #4a5cc8;
    --brand-dark: #3a4cb0;
    --brand-navy: #4a5cc8;
    --brand-blue: #5a8fd4;

    /* Borders */
    --border-light: #2a2a40;
    --border-medium: #333350;
    --border-card: #2a2a40;
    --border-mobile: #2a2a40;

    /* Shadows */
    --shadow-card: 0 10px 30px rgba(0, 0, 0, 0.3);
    --shadow-hero: 0 15px 50px rgba(0, 0, 0, 0.4);
    --shadow-image: 0 10px 20px rgba(0, 0, 0, 0.3);
    --shadow-btn: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-map: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-cta: 0 4px 15px rgba(74, 92, 200, 0.4);

    /* Floating bar */
    --fb-bg: #1a1a2e;
    --fb-text: #bbb;
    --fb-icon: #ccc;
    --fb-tooltip-bg: #252540;
    --fb-tooltip-text: #e0e0e0;

    /* Hamburger */
    --hamburger-color: #e0e0e0;

    /* Section divider border */
    --section-border: #333350;

    /* CTA button */
    --cta-bg: #4a5cc8;
    --cta-text: #fff;

    /* Misc */
    --overlay-dark: rgba(0, 0, 0, 0.6);
    --color-scheme: dark;
}

/* Smooth transition on theme change */
html[data-theme="dark"] {
    color-scheme: dark;
}

html:not([data-theme="dark"]) {
    color-scheme: light;
}

/* ========== Theme Toggle Button ========== */
.theme-toggle {
    background: none;
    border: 1px solid var(--border-light);
    border-radius: 50%;
    width: 36px;
    height: 36px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: color 0.3s, border-color 0.3s, background 0.3s;
    padding: 0;
    flex-shrink: 0;
}

.theme-toggle:hover {
    color: var(--brand-primary);
    border-color: var(--brand-primary);
    background: var(--bg-hover);
}

.theme-toggle svg {
    width: 18px;
    height: 18px;
}

/* Show/hide icons based on theme */
.theme-toggle .icon-moon {
    display: block;
}

.theme-toggle .icon-sun {
    display: none;
}

[data-theme="dark"] .theme-toggle .icon-moon {
    display: none;
}

[data-theme="dark"] .theme-toggle .icon-sun {
    display: block;
}

/* ========== Main Content Wrapper (index page) ========== */
.main-content-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px 0px 20px;
    text-align: center;
    font-family: 'Pretendard', sans-serif;
}

/* ========== CTA Phone Button ========== */
.cta-phone-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: var(--cta-bg);
    color: var(--cta-text);
    padding: 18px 40px;
    border-radius: 50px;
    font-size: 1.3em;
    font-weight: 600;
    text-decoration: none;
    box-shadow: var(--shadow-cta);
    transition: background 0.3s, box-shadow 0.3s;
}

.cta-phone-btn:hover {
    background: var(--brand-dark);
}

.cta-subtext {
    color: var(--text-tertiary);
    font-size: 0.9em;
    margin-top: 12px;
}
