/* SpeedDev - Global Styles (Trustworthy Corporate Theme) */
:root {
    /* Color Palette - Clean & Trustworthy */
    --color-bg: #f8f9fc;
    --color-bg-dark: #ffffff;
    --color-primary: #004d99;
    /* Royal Navy Blue for Trust */
    --color-primary-hover: #003366;
    --color-secondary: #007bff;
    /* Bright Blue for accents */
    --color-accent: #e6f2ff;
    /* Very light blue background accents */

    /* Text Colors */
    --text-main: #333333;
    --text-muted: #666666;
    --text-light: #ffffff;

    /* Layout & Structure */
    --container-width: 1200px;
    --nav-height: 80px;

    /* Spacing */
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 2rem;
    --space-xl: 4rem;
    --space-xxl: 6rem;

    /* UI Components */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;

    /* Shadows - Clean corporate drop shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);

    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
}

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

html, body {
    width: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    position: relative;
}

body {
    font-family: 'Pretendard', sans-serif;
    background-color: var(--color-bg);
    color: var(--text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    word-break: keep-all;
    overflow-wrap: break-word;
}

/* Base elements */
ul,
ol {
    list-style: none;
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

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

/* Global Utilities */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

.section {
    padding: var(--space-xxl) 0;
    position: relative;
    z-index: 10;
    scroll-margin-top: var(--nav-height);
}

/* Background Atmosphere */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 70% 20%, rgba(0, 77, 153, 0.03) 0%, transparent 50%);
    z-index: -1;
    pointer-events: none;
}

/* Typography Classes */
.h1,
.h2,
.h3,
.h4 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--space-md);
}

.h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    letter-spacing: -0.02em;
}

.h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    letter-spacing: -0.01em;
}

.h3 {
    font-size: 1.5rem;
}

.h4 {
    font-size: 1.25rem;
}

.text-gradient {
    color: var(--color-primary);
    font-weight: 800;
}

.text-sub {
    color: var(--text-muted);
    font-size: 1.125rem;
    max-width: 60ch;
}

.center-text {
    text-align: center;
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: var(--space-xl);
}

.section-tag {
    display: inline-block;
    padding: 0.25rem 1rem;
    background: var(--color-accent);
    border: 1px solid rgba(0, 77, 153, 0.15);
    border-radius: 50px;
    color: var(--color-primary);
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--space-md);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-family: 'Pretendard', sans-serif;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: var(--transition-normal);
    text-align: center;
}

.btn-primary {
    background: var(--color-primary);
    color: var(--text-light);
}

.btn-primary:hover {
    background: var(--color-primary-hover);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--color-primary);
    color: var(--color-primary);
}

.btn-outline:hover {
    background: var(--color-accent);
}

.btn-lg {
    font-size: 1.125rem;
    padding: 1.25rem 2.5rem;
}

.full-width {
    width: 100%;
}

.hidden {
    display: none !important;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    height: var(--nav-height);
    z-index: 1000;
    transition: var(--transition-normal);
    background: rgba(255, 255, 255, 0.95);
    /* Light solid navbar */
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: var(--shadow-sm);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: var(--shadow-md);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--text-main);
}

.logo img {
    height: 40px;
    width: auto;
    display: block;
}

.logo-icon {
    font-size: 1.5rem;
    color: var(--color-primary);
}

.logo-text {
    font-size: 1.5rem;
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 500;
    font-size: 1rem;
    transition: var(--transition-fast);
}

.nav-links a:hover {
    color: var(--color-primary);
}

.nav-btn {
    background: var(--color-primary);
    color: var(--text-light) !important;
    padding: 0.5rem 1.25rem;
    border-radius: var(--radius-sm);
}

.nav-btn:hover {
    background: var(--color-primary-hover);
}

.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    color: var(--text-main);
    background: none;
    border: none;
    cursor: pointer;
}

/* Footer & Contact Form */
.footer {
    background: #0a192f;
    padding: var(--space-xl) 0 0 0;
    color: rgba(255, 255, 255, 0.85);
}

.footer .container {
    max-width: var(--container-width);
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
    padding-bottom: var(--space-xl);
}

.footer-info h3 {
    font-size: 1.5rem;
    font-family: 'Outfit', sans-serif;
    margin-bottom: 0.5rem;
}

.footer-info .highlight {
    color: var(--color-secondary);
}

.footer-info>p {
    color: rgba(255, 255, 255, 0.6);
    margin-top: var(--space-sm);
    font-size: 0.95rem;
}

.contact-details {
    margin-top: var(--space-lg);
}

.contact-details p {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0.5rem;
}

.contact-details i {
    color: var(--color-secondary);
    width: 18px;
}

.footer-form h4 {
    font-size: 1.25rem;
    margin-bottom: var(--space-md);
    color: white;
}

#contact-form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

#contact-form input,
#contact-form textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-sm);
    color: white;
    font-family: inherit;
    font-size: 0.95rem;
    transition: var(--transition-fast);
}

#contact-form input:focus,
#contact-form textarea:focus {
    outline: none;
    border-color: var(--color-secondary);
    background: rgba(255, 255, 255, 0.12);
}

#contact-form textarea {
    resize: vertical;
    min-height: 80px;
}

.file-label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
    cursor: pointer;
    transition: var(--transition-fast);
}

.file-label:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding: var(--space-md) 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.85rem;
}

/* Media Queries */
@media (max-width: 900px) {
    .h1 {
        font-size: 2.5rem;
    }

    .h2 {
        font-size: 2rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        padding: var(--space-xl);
        z-index: 2000;
        gap: 2.5rem;
    }

    .nav-links.active {
        display: flex;
        animation: slideInDown 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    }

    .nav-links a {
        font-size: 1.5rem;
        font-weight: 700;
        color: var(--text-main);
        border: none;
        padding: 0;
    }

    .mobile-menu-btn {
        display: block;
        z-index: 2001;
        position: relative;
        padding: 0.5rem;
    }


    .hero {
        padding-top: calc(var(--space-xxl) * 1.5);
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
    }

    .hero-stats {
        flex-direction: column;
        gap: 0.5rem;
    }

    .section {
        padding: var(--space-xxl) 0; /* Increase padding for fixed header */
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 var(--space-md);
    }

    .btn {
        width: 100%;
    }

    .hero-badge {
        font-size: 0.75rem;
    }
}

/* Floating Action Buttons (FAB) */
.fab-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 9999;
}

.fab-button {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
}

.fab-button:hover {
    transform: scale(1.1) translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.fab-kakao {
    background-color: #FEE500;
    color: #3C1E1E;
}

.fab-reserve {
    background-color: var(--color-primary);
    color: white;
}

.fab-button i {
    font-size: 24px;
}

.fab-label {
    position: absolute;
    right: 70px;
    background: white;
    color: var(--text-main);
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 700;
    white-space: nowrap;
    opacity: 0;
    transform: translateX(10px);
    transition: all 0.3s ease;
    pointer-events: none;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0,0,0,0.05);
}

.fab-button:hover .fab-label {
    opacity: 1;
    transform: translateX(0);
}

@media (max-width: 768px) {
    .fab-container {
        bottom: 20px;
        right: 20px;
        gap: 10px;
    }
    .fab-button {
        width: 50px;
        height: 50px;
    }
    .fab-button i {
        font-size: 20px;
    }
    .fab-label {
        display: none;
    }
    /* 모바일에서 카카오 FAB 숨김 — 견적 계산기 단일 CTA로 집중 */
    .fab-kakao {
        display: none;
    }
}

@media (max-width: 768px) {
    .stats-banner {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: var(--space-md) !important;
    }
}