/* 
   VITAE CLINIC - Capix Health Ecosystem 
   Design System
*/

:root {
    /* Shared */
    --primary: #0066ff;
    --primary-glow: rgba(0, 102, 255, 0.3);
    --accent: #ff3b3b;
    --font-main: 'Plus Jakarta Sans', sans-serif;
    --font-display: 'Outfit', sans-serif;
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Light Mode */
    --bg-main: #ffffff;
    --bg-secondary: #f8faff;
    --text-main: #0a0a0b;
    --text-dim: #555e6d;
    --border: rgba(0, 0, 0, 0.05);
    --card-bg: #ffffff;
    --glass: rgba(255, 255, 255, 0.8);
    --shadow: 0 20px 40px rgba(0, 0, 0, 0.03);
}

[data-theme="dark"] {
    --bg-main: #050506;
    --bg-secondary: #0a0a0c;
    --text-main: #f0f0f5;
    --text-dim: #a0aabf;
    --border: rgba(255, 255, 255, 0.05);
    --card-bg: #0f0f12;
    --glass: rgba(15, 15, 18, 0.8);
    --shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
}

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

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.5s ease, color 0.5s ease;
}

.container { max-width: 1300px; margin: 0 auto; padding: 0 2rem; }
.section-padding { padding: clamp(5rem, 10vw, 10rem) 0; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center; }

/* Typography */
h1, h2, h3, .brand { font-family: var(--font-display); font-weight: 700; letter-spacing: -0.02em; }
.gradient-text { 
    background: linear-gradient(135deg, var(--primary) 0%, #4da6ff 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}

/* Preloader */
#preloader {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: var(--bg-main); z-index: 10000; display: flex; justify-content: center; align-items: center;
}
.loader-logo { font-family: var(--font-display); font-weight: 800; font-size: 2.5rem; color: var(--primary); letter-spacing: 0.2em; }
.loader-bar { width: 100px; height: 2px; background: var(--primary); margin-top: 1rem; transform-origin: left; animation: loader 2s infinite; }
@keyframes loader { 0% { transform: scaleX(0); } 50% { transform: scaleX(1); } 100% { transform: scaleX(0); transform-origin: right; } }

/* Top Bar */
.top-bar { 
    padding: 0.8rem 0; background: var(--bg-secondary); border-bottom: 1px solid var(--border);
    font-size: 0.8rem; font-weight: 500; color: var(--text-dim);
}
.contact-info { display: flex; gap: 2rem; }
.contact-info span { display: flex; align-items: center; gap: 0.5rem; }
.contact-info i { width: 14px; color: var(--primary); }

.top-actions { display: flex; gap: 2rem; align-items: center; }
.language-switcher { display: flex; gap: 0.5rem; }
.lang-btn { 
    background: none; border: none; font-weight: 700; font-size: 0.75rem; 
    color: var(--text-dim); cursor: pointer; opacity: 0.5; transition: var(--transition);
}
.lang-btn.active { opacity: 1; color: var(--primary); }

.theme-btn { 
    background: var(--bg-main); border: 1px solid var(--border); width: 36px; height: 36px;
    border-radius: 50%; cursor: pointer; color: var(--text-main); display: flex; align-items: center; justify-content: center;
    transition: var(--transition);
}
.theme-btn:hover { border-color: var(--primary); color: var(--primary); }
[data-theme="light"] .dark-icon, [data-theme="dark"] .light-icon { display: block; }
[data-theme="light"] .light-icon, [data-theme="dark"] .dark-icon { display: none; }

/* Navbar */
.navbar { 
    padding: 1.5rem 0; position: sticky; top: 0; z-index: 1000;
    background: var(--glass); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
}
.nav-flex { display: flex; justify-content: space-between; align-items: center; }
.logo { display: flex; align-items: center; gap: 1rem; text-decoration: none; }
.logo-icon { 
    width: 45px; height: 45px; background: var(--primary); border-radius: 12px;
    display: flex; align-items: center; justify-content: center; color: white;
}
.logo-text { display: flex; flex-direction: column; line-height: 1; }
.brand { font-size: 1.4rem; color: var(--text-main); }
.sub-brand { font-size: 0.7rem; font-weight: 800; color: var(--primary); letter-spacing: 0.1em; margin-top: 2px; }

.nav-links { display: flex; gap: 3rem; list-style: none; align-items: center; }
.nav-links a { 
    text-decoration: none; color: var(--text-main); font-weight: 600; font-size: 0.95rem;
    transition: var(--transition); opacity: 0.7;
}
.nav-links a:hover, .nav-links a.active { opacity: 1; color: var(--primary); }
.portal-link { 
    background: var(--primary); color: white !important; opacity: 1 !important;
    padding: 0.8rem 1.5rem; border-radius: 10px; display: flex; align-items: center; gap: 0.8rem;
    box-shadow: 0 10px 20px var(--primary-glow);
}
.portal-link:hover { transform: translateY(-3px); box-shadow: 0 15px 30px var(--primary-glow); }

/* Page Headers */
.page-header { padding: 8rem 0; background: var(--bg-secondary); border-bottom: 1px solid var(--border); text-align: center; }
.page-header h1 { font-size: clamp(3rem, 7vw, 5rem); margin-bottom: 1.5rem; }
.page-header p { font-size: 1.25rem; color: var(--text-dim); max-width: 700px; margin: 0 auto; font-weight: 300; }

/* Hero */
.hero { min-height: 85vh; position: relative; display: flex; align-items: center; overflow: hidden; }
.hero-bg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: -1; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; opacity: 0.8; }
[data-theme="dark"] .hero-bg img { opacity: 0.3; filter: grayscale(0.5); }
.hero-overlay { 
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to right, var(--bg-main) 30%, transparent 100%);
}

.hero-content { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 5rem; }
.hero-badge { 
    display: inline-flex; align-items: center; gap: 10px; padding: 0.6rem 1.2rem;
    background: var(--bg-secondary); border: 1px solid var(--border); border-radius: 50px;
    font-size: 0.75rem; font-weight: 800; letter-spacing: 0.1em; color: var(--primary); margin-bottom: 2rem;
}
.pulse { width: 8px; height: 8px; background: var(--primary); border-radius: 50%; box-shadow: 0 0 0 rgba(0,102,255,0.4); animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(0,102,255,0.4); } 70% { box-shadow: 0 0 0 10px rgba(0,102,255,0); } 100% { box-shadow: 0 0 0 0 rgba(0,102,255,0); } }

.hero-title { font-size: clamp(3.5rem, 8vw, 5.5rem); line-height: 1; margin-bottom: 2rem; }
.hero-lead { font-size: 1.25rem; color: var(--text-dim); max-width: 550px; margin-bottom: 3.5rem; font-weight: 300; }
.hero-btns { display: flex; gap: 1.5rem; }

.btn { 
    padding: 1.2rem 2.5rem; border-radius: 12px; font-weight: 700; text-decoration: none; 
    display: inline-flex; align-items: center; gap: 10px; transition: var(--transition);
    font-family: var(--font-display); cursor: pointer; font-size: 1rem;
}
.btn-primary { background: var(--primary); color: white; border: none; box-shadow: 0 15px 30px var(--primary-glow); }
.btn-primary:hover { transform: translateY(-5px); box-shadow: 0 20px 40px var(--primary-glow); }
.btn-outline { background: transparent; border: 1px solid var(--border); color: var(--text-main); }
.btn-outline:hover { background: var(--bg-secondary); border-color: var(--primary); }

.hero-stats { display: flex; gap: 3rem; }
.stat-card { 
    padding: 2.5rem; background: var(--glass); border: 1px solid var(--border); 
    border-radius: 24px; min-width: 200px; backdrop-filter: blur(10px);
}
.stat-val { font-size: 2.5rem; color: var(--primary); margin-bottom: 0.5rem; }
.stat-label { font-size: 0.9rem; font-weight: 700; color: var(--text-dim); }

/* Story Section */
.story-image img { width: 100%; border-radius: 40px; box-shadow: var(--shadow); border: 1px solid var(--border); }
.story-content h2 { font-size: 3rem; margin-bottom: 2rem; }
.story-content p { color: var(--text-dim); font-size: 1.15rem; margin-bottom: 2rem; }
.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; margin-top: 3rem; }
.value-item { text-align: center; }
.value-item i { width: 40px; height: 40px; color: var(--primary); margin-bottom: 1rem; }
.value-item h4 { font-size: 0.9rem; font-weight: 800; color: var(--text-main); }

/* Team Section */
.full-team-img { width: 100%; border-radius: 40px; margin-bottom: 5rem; box-shadow: var(--shadow); }
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem; }
.team-card { 
    padding: 3rem; background: var(--card-bg); border: 1px solid var(--border); 
    border-radius: 32px; transition: var(--transition); text-align: center;
}
.team-card:hover { transform: translateY(-10px); border-color: var(--primary); box-shadow: var(--shadow); }
.member-info h3 { font-size: 1.5rem; margin-bottom: 0.5rem; }
.member-info .specialty { color: var(--primary); font-weight: 800; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.1em; }

/* Services */
.section-header { margin-bottom: 5rem; max-width: 700px; }
.section-header .title { font-size: 3.5rem; margin-bottom: 1.5rem; }
.section-header .subtitle { font-size: 1.2rem; color: var(--text-dim); }

.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); gap: 2.5rem; }
.service-card { 
    padding: 3.5rem; background: var(--card-bg); border: 1px solid var(--border); 
    border-radius: 32px; transition: var(--transition); position: relative; overflow: hidden;
}
.service-card:hover { transform: translateY(-15px); border-color: var(--primary); box-shadow: var(--shadow); }
.card-icon { 
    width: 70px; height: 70px; background: var(--bg-secondary); border-radius: 20px;
    display: flex; align-items: center; justify-content: center; margin-bottom: 2.5rem; color: var(--primary);
    transition: var(--transition);
}
.service-card:hover .card-icon { background: var(--primary); color: white; }
.service-card h3 { font-size: 1.8rem; margin-bottom: 1.5rem; }
.service-card p { color: var(--text-dim); margin-bottom: 2rem; font-size: 1.05rem; }
.card-list { list-style: none; display: flex; flex-direction: column; gap: 0.8rem; }
.card-list li { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 0.9rem; color: var(--text-main); }
.card-list li::before { content: ''; width: 6px; height: 6px; background: var(--primary); border-radius: 50%; }

/* Appointment Section */
.glass-panel { 
    background: var(--glass); border: 1px solid var(--border); border-radius: 40px; 
    padding: clamp(3rem, 6vw, 6rem); backdrop-filter: blur(30px); box-shadow: var(--shadow);
}
.appointment-flex { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center; }
.appointment-text h2 { font-size: 3.5rem; margin-bottom: 2rem; }
.appointment-text p { font-size: 1.2rem; color: var(--text-dim); margin-bottom: 3rem; max-width: 500px; }
.features-list { display: flex; flex-direction: column; gap: 1.5rem; }
.f-item { display: flex; align-items: center; gap: 1rem; font-weight: 700; color: var(--text-main); }
.f-item i { color: var(--primary); }

.appointment-form { background: var(--bg-main); padding: 3rem; border-radius: 30px; border: 1px solid var(--border); box-shadow: var(--shadow); }
.input-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; margin-bottom: 2.5rem; }
.form-group { display: flex; flex-direction: column; gap: 0.8rem; }
.form-group label { font-size: 0.9rem; font-weight: 800; color: var(--text-dim); letter-spacing: 0.05em; }
.form-group select, .form-group input { 
    padding: 1.2rem; background: var(--bg-secondary); border: 1px solid var(--border); 
    border-radius: 12px; font-family: inherit; font-size: 1rem; color: var(--text-main); outline: none;
    transition: var(--transition);
}
.form-group select:focus, .form-group input:focus { border-color: var(--primary); background: var(--bg-main); }
.btn-block { width: 100%; justify-content: center; }

/* Footer */
.footer { padding: 8rem 0 0; background: var(--bg-secondary); border-top: 1px solid var(--border); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 5rem; padding-bottom: 5rem; }
.footer-info .logo { margin-bottom: 1.5rem; }
.footer-info p { color: var(--text-dim); max-width: 300px; }

.footer-links, .footer-social { display: flex; flex-direction: column; gap: 1.5rem; }
.footer-links h4, .footer-social h4 { font-size: 1.1rem; color: var(--text-main); }
.footer-links a { text-decoration: none; color: var(--text-dim); transition: var(--transition); font-weight: 500; }
.footer-links a:hover { color: var(--primary); transform: translateX(5px); }

.social-flex { display: flex; gap: 1.5rem; }
.social-flex a { 
    width: 45px; height: 45px; background: var(--bg-main); border: 1px solid var(--border);
    border-radius: 12px; display: flex; align-items: center; justify-content: center;
    color: var(--text-main); transition: var(--transition);
}
.social-flex a:hover { background: var(--primary); color: white; transform: translateY(-5px); border-color: var(--primary); }

.footer-bottom { padding: 2.5rem 0; border-top: 1px solid var(--border); text-align: center; font-size: 0.9rem; color: var(--text-dim); font-weight: 500; }

/* Mobile Menu */
.mobile-toggle { 
    display: none; background: none; border: none; width: 40px; height: 40px; 
    flex-direction: column; justify-content: center; gap: 8px; cursor: pointer;
}
.mobile-toggle span { width: 100%; height: 2px; background: var(--text-main); transition: var(--transition); }

/* Responsive */
@media (max-width: 1024px) {
    .grid-2 { grid-template-columns: 1fr; gap: 3rem; text-align: center; }
    .hero-content { grid-template-columns: 1fr; text-align: center; }
    .hero-main { display: flex; flex-direction: column; align-items: center; }
    .hero-lead { max-width: 100%; }
    .hero-stats { justify-content: center; }
    .appointment-flex { grid-template-columns: 1fr; text-align: center; }
    .appointment-text { display: flex; flex-direction: column; align-items: center; }
    .appointment-text p { max-width: 100%; }
    .features-list { align-items: center; }
    .team-grid { grid-template-columns: 1fr; }
    .values-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .top-bar { display: none; }
    .mobile-toggle { display: flex; }
    .nav-links { 
        position: fixed; top: 0; right: -100%; width: 100%; height: 100vh;
        background: var(--bg-main); flex-direction: column; justify-content: center;
        transition: var(--transition); z-index: 100;
    }
    .nav-links.active { right: 0; }
    .nav-links a { font-size: 1.8rem; }
    .footer-grid { grid-template-columns: 1fr; text-align: center; }
    .footer-info { display: flex; flex-direction: column; align-items: center; }
    .social-flex { justify-content: center; }
    .input-grid { grid-template-columns: 1fr; }
}

/* Animations */
.reveal-y { opacity: 0; transform: translateY(30px); }
.reveal-up { opacity: 0; transform: translateY(40px); }
.reveal-fade { opacity: 0; }
