/* ===================================
   대전 시니어 구강케어센터 - Premium Design System
   =================================== */

:root {
    /* Primary Colors - Deep Medical Blue */
    --primary: #1e40af;
    --primary-light: #3b82f6;
    --primary-dark: #1e3a8a;
    --primary-gradient: linear-gradient(135deg, #1e40af 0%, #3b82f6 50%, #0ea5e9 100%);

    /* Secondary Colors - Teal Healthcare */
    --secondary: #0d9488;
    --secondary-light: #14b8a6;
    --secondary-dark: #0f766e;
    --secondary-gradient: linear-gradient(135deg, #0d9488 0%, #14b8a6 50%, #2dd4bf 100%);

    /* Accent Colors */
    --accent: #f59e0b;
    --accent-light: #fbbf24;
    --accent-gradient: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%);

    /* Neutral Colors */
    --white: #ffffff;
    --light: #f8fafc;
    --light-blue: #f0f9ff;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    --dark: #0f172a;

    /* Status Colors */
    --success: #10b981;
    --warning: #f59e0b;
    --error: #ef4444;
    --info: #3b82f6;

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-md: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);
    --shadow-2xl: 0 35px 60px -15px rgb(0 0 0 / 0.3);
    --shadow-glow: 0 0 40px rgba(30, 64, 175, 0.3);
    --shadow-glow-teal: 0 0 40px rgba(13, 148, 136, 0.3);

    /* Border Radius */
    --radius-sm: 8px;
    --radius: 12px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    --radius-full: 9999px;

    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition: 0.3s ease;
    --transition-slow: 0.5s ease;
    --transition-bounce: 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.8;
    color: var(--gray-800);
    background: var(--white);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ===================================
   Typography
   =================================== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    color: var(--gray-900);
}

h1 { font-size: clamp(1.8rem, 5vw, 3.3rem); }
h2 { font-size: clamp(1.55rem, 4vw, 2.55rem); }
h3 { font-size: clamp(1.05rem, 3vw, 1.55rem); }

/* ===================================
   Navigation - Premium Glass Effect
   =================================== */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 1000;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow-md);
}

.nav-container {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 24px;
}

.logo {
    font-size: 1.3rem;
    font-weight: 800;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
    letter-spacing: -0.5px;
    transition: var(--transition);
}

.logo:hover {
    transform: scale(1.02);
}

.logo span {
    background: var(--secondary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.navbar .nav-container .nav-links a,
.nav-links a {
    text-decoration: none;
    color: var(--gray-600);
    font-weight: 600 !important;
    font-size: 13px !important;
    padding: 10px 20px !important;
    border-radius: var(--radius-full);
    transition: var(--transition);
    position: relative;
    line-height: 1.5 !important;
}

.navbar .nav-container .nav-links a:hover,
.nav-links a:hover {
    color: var(--primary);
    background: var(--light-blue);
}

.navbar .nav-container .nav-links a.active,
.nav-links a.active {
    color: var(--primary);
    background: var(--light-blue);
}

.navbar .nav-container .nav-links .nav-cta,
.nav-cta {
    background: var(--primary-gradient) !important;
    color: var(--white) !important;
    padding: 12px 28px !important;
    font-weight: 600 !important;
    font-size: 13px !important;
    box-shadow: var(--shadow), 0 4px 14px rgba(30, 64, 175, 0.4);
    line-height: 1.5 !important;
}

.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg), 0 8px 25px rgba(30, 64, 175, 0.5) !important;
    background: var(--primary-gradient) !important;
}

.mobile-menu {
    display: none;
    font-size: 1.3rem;
    cursor: pointer;
    color: var(--gray-700);
    padding: 8px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.mobile-menu:hover {
    background: var(--gray-100);
}

/* ===================================
   Common Elements
   =================================== */
section {
    padding: 100px 0;
    position: relative;
}

.page-section {
    padding-top: 160px;
}

.section-header {
    text-align: center;
    margin-bottom: 70px;
    position: relative;
}

.section-header::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--primary-gradient);
    margin: 20px auto 0;
    border-radius: var(--radius-full);
}

.section-header h2 {
    font-size: clamp(1.55rem, 4vw, 2.3rem);
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.section-header p {
    color: var(--gray-500);
    font-size: 0.9rem;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.8;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ===================================
   Premium Buttons
   =================================== */
.btn {
    padding: 16px 36px;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.8rem;
    text-decoration: none;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    border: none;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: var(--primary-gradient);
    color: var(--white);
    box-shadow: var(--shadow), 0 4px 14px rgba(30, 64, 175, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg), 0 8px 25px rgba(30, 64, 175, 0.5);
}

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

.btn-secondary:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.btn-white {
    background: var(--white);
    color: var(--primary);
    box-shadow: var(--shadow-lg);
}

.btn-white:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl);
}

.btn-outline-white {
    background: rgba(255,255,255,0.1);
    color: var(--white);
    border: 2px solid rgba(255,255,255,0.5);
    backdrop-filter: blur(10px);
}

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

/* ===================================
   Page Header - Premium Glass Morphism
   =================================== */
.page-header {
    background: var(--primary-gradient);
    padding: 160px 0 100px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 80%, rgba(14, 165, 233, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(59, 130, 246, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(13, 148, 136, 0.2) 0%, transparent 40%);
}

.page-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 150px;
    background: linear-gradient(to top, var(--white), transparent);
}

.page-header .container {
    position: relative;
    z-index: 1;
}

.page-header h1 {
    font-size: clamp(1.8rem, 5vw, 2.8rem);
    font-weight: 800;
    color: var(--white);
    margin-bottom: 16px;
    text-shadow: 0 2px 20px rgba(0,0,0,0.2);
}

.page-header p {
    color: rgba(255,255,255,0.9);
    font-size: 1rem;
    max-width: 600px;
    margin: 0 auto;
}

.breadcrumb {
    margin-top: 24px;
    color: rgba(255,255,255,0.7);
    font-size: 0.7rem;
}

.breadcrumb a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: var(--transition);
}

.breadcrumb a:hover {
    color: var(--white);
}

/* ===================================
   Premium Cards - Glass Morphism
   =================================== */
.card {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(255,255,255,0.8);
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary-gradient);
    opacity: 0;
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-12px);
    box-shadow: var(--shadow-2xl), var(--shadow-glow);
}

.card:hover::before {
    opacity: 1;
}

.card-body {
    padding: 32px;
}

/* Glass Card Variant */
.card-glass {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Gradient Card Variant */
.card-gradient {
    background: var(--primary-gradient);
    color: var(--white);
}

/* ===================================
   Premium Footer
   =================================== */
.footer {
    background: linear-gradient(180deg, var(--gray-900) 0%, var(--dark) 100%);
    color: var(--white);
    padding: 80px 0 40px;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary-light), var(--secondary-light), transparent);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-brand h3 {
    font-size: 1.3rem;
    margin-bottom: 16px;
    background: linear-gradient(135deg, var(--white) 0%, var(--gray-300) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-brand p {
    color: var(--gray-400);
    margin-bottom: 24px;
    line-height: 1.8;
}

.footer h4 {
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 24px;
    color: var(--white);
    position: relative;
    padding-bottom: 12px;
}

.footer h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--primary-gradient);
    border-radius: var(--radius-full);
}

.footer ul {
    list-style: none;
}

.footer li {
    margin-bottom: 12px;
}

.footer a {
    color: var(--gray-400);
    text-decoration: none;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.footer a:hover {
    color: var(--white);
    transform: translateX(4px);
}

.footer-social {
    display: flex;
    gap: 12px;
}

.footer-social a {
    width: 44px;
    height: 44px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.footer-social a:hover {
    background: var(--primary-gradient);
    border-color: transparent;
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(30, 64, 175, 0.4);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 32px;
    text-align: center;
    color: rgba(255,255,255,0.75);
    font-size: 0.7rem;
}

/* ===================================
   Floating CTA - Premium
   =================================== */
.floating-cta {
    position: fixed;
    bottom: 32px;
    right: 32px;
    z-index: 999;
}

.floating-btn {
    width: 64px;
    height: 64px;
    background: var(--primary-gradient);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.3rem;
    box-shadow: var(--shadow-lg), 0 8px 25px rgba(30, 64, 175, 0.5);
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.floating-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: 0.5s;
}

.floating-btn:hover::before {
    width: 120%;
    height: 120%;
}

.floating-btn:hover {
    transform: scale(1.1) rotate(10deg);
    box-shadow: var(--shadow-xl), 0 12px 35px rgba(30, 64, 175, 0.6);
}

/* Pulse Animation */
.floating-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: var(--radius-full);
    box-shadow: 0 0 0 0 rgba(30, 64, 175, 0.5);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(30, 64, 175, 0.5);
    }
    70% {
        box-shadow: 0 0 0 20px rgba(30, 64, 175, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(30, 64, 175, 0);
    }
}

/* ===================================
   Premium Forms
   =================================== */
.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--gray-700);
    font-size: 0.75rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius);
    font-size: 0.8rem;
    font-family: inherit;
    transition: var(--transition);
    background: var(--white);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(30, 64, 175, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--gray-400);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.btn-submit {
    width: 100%;
    padding: 18px;
    background: var(--primary-gradient);
    color: var(--white);
    border: none;
    border-radius: var(--radius);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: var(--shadow), 0 4px 14px rgba(30, 64, 175, 0.4);
}

.btn-submit:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg), 0 8px 25px rgba(30, 64, 175, 0.5);
}

/* ===================================
   Utility Classes
   =================================== */
.bg-light { background: var(--light); }
.bg-white { background: var(--white); }
.bg-gradient { background: var(--primary-gradient); }
.bg-gradient-secondary { background: var(--secondary-gradient); }
.bg-dark { background: var(--dark); }
.bg-pattern {
    background-color: var(--light);
    background-image:
        radial-gradient(circle at 25% 25%, rgba(30, 64, 175, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(13, 148, 136, 0.03) 0%, transparent 50%);
}

.text-gradient {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-white { color: var(--white); }
.text-center { text-align: center; }

.mb-0 { margin-bottom: 0; }
.mb-20 { margin-bottom: 20px; }
.mb-40 { margin-bottom: 40px; }
.mt-40 { margin-top: 40px; }

/* ===================================
   Animations
   =================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.animate {
    animation: fadeInUp 0.6s ease forwards;
}

.animate-left {
    animation: fadeInLeft 0.6s ease forwards;
}

.animate-right {
    animation: fadeInRight 0.6s ease forwards;
}

.animate-scale {
    animation: scaleIn 0.6s ease forwards;
}

.float {
    animation: float 3s ease-in-out infinite;
}

/* ===================================
   Responsive
   =================================== */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    section {
        padding: 80px 0;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        padding: 24px;
        box-shadow: var(--shadow-lg);
        border-radius: 0 0 var(--radius-lg) var(--radius-lg);
        gap: 8px;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links a {
        width: 100%;
        text-align: center;
        padding: 14px;
    }

    .mobile-menu {
        display: block;
    }

    .page-header {
        padding: 140px 0 80px;
    }

    .page-header h1 {
        font-size: 1.55rem;
    }

    .section-header h2 {
        font-size: 1.3rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .floating-cta {
        bottom: 20px;
        right: 20px;
    }

    .floating-btn {
        width: 56px;
        height: 56px;
    }

    section {
        padding: 60px 0;
    }
}

/* ===================================
   Decorative Elements
   =================================== */
.decoration-circle {
    position: absolute;
    border-radius: 50%;
    background: var(--primary-gradient);
    opacity: 0.1;
    pointer-events: none;
}

.decoration-dots {
    position: absolute;
    width: 100px;
    height: 100px;
    background-image: radial-gradient(circle, var(--primary) 2px, transparent 2px);
    background-size: 20px 20px;
    opacity: 0.3;
    pointer-events: none;
}
