/* PROJECT: TrueVita
   THEME: Midnight Silver (Premium Dark)
   ROLE: Art Director & Senior Dev
*/

:root {
    /* --- PALETTE: Dark & Silver --- */
    --bg-dark: #0F0F11;         /* Deep Charcoal/Black */
    --bg-card: #161618;         /* Slightly lighter for cards */
    
    --text-main: #E0E0E0;       /* Silver White */
    --text-muted: #A0A0A0;      /* Muted Silver */
    
    --accent-silver: #C0C0C0;   /* Bright Silver */
    --accent-platinum: #E5E4E2; /* Platinum Highlight */
    
    --border-color: #2A2A2E;    /* Dark Border */
    --border-light: #444448;    /* Lighter Border for Hovers */
    
    /* --- TYPOGRAPHY --- */
    --font-heading: 'Playfair Display', serif; /* Elegant Serif */
    --font-body: 'Montserrat', sans-serif;     /* Clean Sans */
    
    /* --- UI CONSTANTS --- */
    --container-width: 1200px;
    --header-height: 90px;
    --radius: 4px; /* Sharp, premium corners */
    
    /* --- ANIMATION --- */
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ================= RESET & BASE ================= */
* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 400;
    color: var(--accent-platinum);
    line-height: 1.3;
    letter-spacing: 0.02em;
}

a { text-decoration: none; color: inherit; transition: var(--transition); }

img { 
    max-width: 100%; 
    display: block; 
    border-radius: var(--radius); 
    /* Slight desaturation for mood, color on hover */
    filter: grayscale(30%) contrast(110%);
    transition: var(--transition); 
}
img:hover { filter: grayscale(0%) contrast(100%); }

button { font-family: var(--font-body); cursor: pointer; }

/* ================= UTILITIES ================= */
.container { max-width: var(--container-width); margin: 0 auto; padding: 0 20px; }
.text-center { text-align: center; }
.section-pad { padding: 120px 0; }
.mb-2 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 2rem; }
.mb-5 { margin-bottom: 4rem; }

/* ANIMATIONS */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}
.fade-in { animation: fadeInUp 1s ease-out forwards; opacity: 0; }

/* ================= BUTTONS (Silver Style) ================= */
.btn {
    display: inline-block; padding: 16px 40px; 
    border: 1px solid var(--accent-silver);
    color: var(--accent-silver);
    background: transparent;
    text-transform: uppercase; font-size: 0.75rem; letter-spacing: 0.2em;
    transition: var(--transition);
    position: relative; overflow: hidden;
    font-weight: 500;
}

.btn:hover {
    background: var(--accent-silver);
    color: var(--bg-dark);
    box-shadow: 0 0 25px rgba(192, 192, 192, 0.15);
}

/* ================= HEADER (Sticky & Glass) ================= */
.main-header {
    height: var(--header-height);
    background-color: rgba(15, 15, 17, 0.85); /* Semi-transparent dark */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    position: sticky; top: 0; z-index: 1000;
}

.header-inner { display: flex; justify-content: space-between; align-items: center; height: 100%; }

.logo { 
    font-family: var(--font-heading); font-size: 1.8rem; color: var(--accent-platinum); 
    letter-spacing: 0.05em; text-transform: uppercase;
}

.nav-links { display: flex; gap: 40px; }
.nav-links a { 
    font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.15em; color: var(--text-muted); 
    position: relative;
}
.nav-links a:after {
    content: ''; position: absolute; bottom: -5px; left: 0; width: 0; height: 1px; 
    background: var(--accent-silver); transition: var(--transition);
}
.nav-links a.active, .nav-links a:hover { color: var(--accent-silver); }
.nav-links a.active:after, .nav-links a:hover:after { width: 100%; }

/* Mobile Menu Toggle */
.mobile-toggle { display: none; background: none; border: none; font-size: 1.5rem; color: var(--text-main); }

/* ================= HERO SECTION (CSS Gradient) ================= */
.hero-section {
    height: 85vh; display: flex; align-items: center; justify-content: center;
    text-align: center; position: relative;
    /* Dark Metallic Gradient */
    background: radial-gradient(circle at 50% 50%, #232529 0%, #08080a 100%);
    overflow: hidden;
}

.hero-overlay {
    position: absolute; top:0; left:0; width:100%; height:100%;
    /* Noise texture simulation */
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.05'/%3E%3C/svg%3E");
    opacity: 0.5;
    pointer-events: none;
}

.hero-content { z-index: 2; max-width: 800px; padding: 20px; }
.hero-title { font-size: 4.5rem; margin-bottom: 20px; color: var(--accent-platinum); text-shadow: 0 0 30px rgba(255,255,255,0.1); }
.hero-subtitle { font-size: 1.1rem; color: var(--text-muted); margin-bottom: 40px; font-weight: 300; letter-spacing: 0.05em; }

/* ================= CARDS & GRID ================= */
.grid-mosaic { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.grid-cols-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

.card {
    background: var(--bg-card); 
    border: 1px solid var(--border-color);
    padding: 40px; 
    transition: var(--transition); 
    position: relative;
    display: flex; flex-direction: column;
}
.card:hover { border-color: var(--accent-silver); transform: translateY(-5px); box-shadow: 0 10px 40px rgba(0,0,0,0.3); }

.card-img-wrap { 
    height: 300px; overflow: hidden; margin-bottom: 25px; 
    border-radius: 2px; border: 1px solid var(--border-color);
}
.card-img-wrap img { width: 100%; height: 100%; object-fit: cover; }

/* ================= ACCORDION (FAQ) ================= */
.accordion { max-width: 800px; margin: 0 auto; border-top: 1px solid var(--border-color); }
.acc-item { border-bottom: 1px solid var(--border-color); }
.acc-header {
    width: 100%; padding: 25px 0; background: transparent; border: none; text-align: left;
    font-family: var(--font-heading); font-size: 1.2rem; color: var(--text-main);
    cursor: pointer; display: flex; justify-content: space-between; transition: 0.3s; align-items: center;
}
.acc-header:hover { color: var(--accent-silver); }
.acc-header i { font-size: 0.9rem; color: var(--text-muted); }
.acc-body {
    max-height: 0; overflow: hidden; transition: 0.5s cubic-bezier(0.4, 0, 0.2, 1); 
    color: var(--text-muted); font-size: 0.95rem; padding-right: 20px; line-height: 1.6;
}
.acc-item.active .acc-body { padding-bottom: 30px; }

/* ================= FOOTER ================= */
.main-footer {
    background-color: #050505; 
    border-top: 1px solid var(--border-color);
    padding: 80px 0; margin-top: 100px;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; }

.footer h4 { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.2em; color: var(--accent-silver); margin-bottom: 25px; }

.footer p, .footer a, .footer button {
    display: block; color: var(--text-muted); font-size: 0.85rem; margin-bottom: 12px;
    background: none; border: none; padding: 0; text-align: left; transition: 0.3s;
    font-family: var(--font-body);
}
.footer a:hover, .footer button:hover { color: var(--accent-platinum); padding-left: 5px; }

/* ================= MODALS & OVERLAYS ================= */
.modal {
    display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.7); backdrop-filter: blur(8px);
    z-index: 3000; align-items: center; justify-content: center;
    opacity: 0; transition: opacity 0.3s ease;
}
.modal.active { display: flex; opacity: 1; }

.modal-content {
    background: #1A1A1D; border: 1px solid var(--border-light);
    padding: 50px; width: 90%; max-width: 600px; max-height: 85vh; overflow-y: auto;
    position: relative; box-shadow: 0 30px 60px rgba(0,0,0,0.6);
    transform: scale(0.95); transition: transform 0.3s ease;
}
.modal.active .modal-content { transform: scale(1); }

.close-modal-btn {
    position: absolute; top: 20px; right: 20px; background: none; border: none;
    color: var(--text-muted); font-size: 1.5rem; transition: 0.3s;
}
.close-modal-btn:hover { color: var(--accent-platinum); transform: rotate(90deg); }

/* ================= COOKIE SYSTEM ================= */

/* Banner (Fixed Bottom) */
.cookie-banner {
    position: fixed; bottom: 0; left: 0; width: 100%;
    background: rgba(20, 20, 22, 0.95); 
    border-top: 1px solid var(--accent-silver);
    padding: 20px 0; z-index: 2000; 
    display: none; /* Controlled by JS */
    backdrop-filter: blur(10px);
}
.cookie-flex { display: flex; justify-content: space-between; align-items: center; }
.cookie-btn-group { display: flex; gap: 20px; align-items: center; }

/* Settings Modal Specifics */
.switch-row { 
    display: flex; justify-content: space-between; align-items: center; 
    margin-bottom: 20px; padding-bottom: 20px; 
    border-bottom: 1px solid var(--border-color); 
}
.switch-row:last-of-type { border-bottom: none; }

/* Custom Switch Toggle */
.switch { position: relative; display: inline-block; width: 50px; height: 26px; }
.switch input { opacity: 0; width: 0; height: 0; }
.slider { 
    position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; 
    background-color: #333; transition: .4s; border-radius: 34px; border: 1px solid #444;
}
.slider:before { 
    position: absolute; content: ""; height: 18px; width: 18px; left: 3px; bottom: 3px; 
    background-color: var(--text-muted); transition: .4s; border-radius: 50%; 
}
input:checked + .slider { background-color: var(--bg-dark); border-color: var(--accent-silver); }
input:checked + .slider:before { transform: translateX(24px); background-color: var(--accent-platinum); }

/* ================= RESPONSIVE ================= */
@media (max-width: 900px) {
    .hero-title { font-size: 3rem; }
    .nav-links { display: none; } /* Could add mobile menu overlay logic here */
    .mobile-toggle { display: block; }
    
    .grid-mosaic, .grid-cols-3, .footer-grid { grid-template-columns: 1fr; gap: 30px; }
    
    .cookie-flex { flex-direction: column; text-align: center; gap: 15px; }
    .cookie-btn-group { width: 100%; justify-content: center; }
    
    .section-pad { padding: 80px 0; }
}