/* ========================================
   센트럴 더 플래티넘 청주 - Custom Styles
   ======================================== */

/* ---- CSS Variables ---- */
:root {
    --navy: #0A1A3A;
    --navy-dark: #050D1E;
    --navy-light: #142952;
    --accent: #C9A962;
    --accent-dark: #B08E3A;
    --accent-light: #E5D4A1;
}

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

::selection {
    background: var(--accent);
    color: white;
}

/* ---- Header ---- */
#header {
    background: transparent;
}

#header.scrolled {
    background: rgba(10, 26, 58, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.15);
}

#header .nav-link {
    color: rgba(255, 255, 255, 0.8);
}

#header .nav-link:hover {
    color: var(--accent);
}

#header.scrolled .nav-link {
    color: rgba(255, 255, 255, 0.8);
}

#header .header-logo-text {
    color: white;
}

#header.scrolled .header-logo-text {
    color: white;
}

#header .header-cta {
    border-color: var(--accent);
    color: var(--accent);
}

#header .header-cta:hover {
    background: var(--accent);
    color: white;
}

#header #mobile-menu-btn {
    color: white;
}

/* ---- Hero ---- */
#hero {
    background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 50%, var(--navy-light) 100%);
}

.scroll-indicator {
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.5; transform: translateX(-50%) translateY(0); }
    50% { opacity: 1; transform: translateX(-50%) translateY(8px); }
}

/* ---- Scroll Reveal ---- */
.reveal-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-up.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ---- Counter Animation ---- */
.counter {
    font-variant-numeric: tabular-nums;
}

/* ---- Floor Plan Tabs ---- */
.type-tab {
    background: #e5e7eb;
    color: #6b7280;
}

.type-tab.active {
    background: var(--accent);
    color: white;
}

.type-tab:hover:not(.active) {
    background: #d1d5db;
}

.type-panel {
    display: none;
}

.type-panel.active {
    display: block;
    animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ---- Community Cards ---- */
.group:hover h4 {
    color: white;
}

/* ---- Form ---- */
#lead-form input:focus,
#lead-form select:focus,
#lead-form textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 2px rgba(201, 169, 98, 0.2);
}

#lead-form select option {
    background: white;
    color: #1f2937;
}

/* ---- Privacy Modal ---- */
#privacy-modal.show {
    display: flex;
}

/* ---- Back to Top ---- */
#back-to-top.show {
    display: flex;
}

/* ---- Floating Bar ---- */
#floating-bar a {
    transition: transform 0.2s ease;
}

#floating-bar a:hover {
    transform: scale(1.05);
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
    #hero h1 {
        font-size: 1.75rem;
        line-height: 1.3;
    }

    .type-tab {
        padding: 0.5rem 0.875rem;
        font-size: 0.75rem;
    }

    .type-panel .grid {
        gap: 1.5rem;
    }
}

@media (max-width: 480px) {
    #hero h1 {
        font-size: 1.5rem;
    }
}

/* ---- Print Styles ---- */
@media print {
    #header, #floating-bar, #back-to-top, .lg\:hidden {
        display: none !important;
    }
}
