/*
 * VITAL EDGE HEALTH 40+ - MAIN STYLESHEET
 * Precision UI / Apple / Stripe / Mayo Clinic Aesthetic
 */

:root {
    --navy: #0F172A;
    --navy-light: #1E293B;
    --teal: #0D9488;
    --teal-glow: #2DD4BF;
    --blue: #2563EB;
    --cloud: #F8FAFC;
    --slate: #64748B;
    --white: #FFFFFF;
    --glass: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.4);
    --radius-full: 100px;
    --radius-lg: 32px;
    --radius-md: 24px;
    --shadow-soft: 0 10px 40px -10px rgba(15, 23, 42, 0.08);
    --shadow-glass: 0 20px 60px -15px rgba(0, 0, 0, 0.1);
    --font-sans: 'Inter', -apple-system, sans-serif;
    --font-serif: 'Instrument Serif', serif;
}

/* --- Base Styles --- */
* { box-sizing: border-box; }
body {
    margin: 0;
    font-family: var(--font-sans);
    color: var(--navy);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

.container {
    max-width: 1340px;
    margin: 0 auto;
    padding: 0 40px;
}

h1, h2, h3, h4 { margin: 0; font-weight: 600; line-height: 1.1; letter-spacing: -0.02em; }
p { margin: 0; line-height: 1.6; color: var(--slate); }

.section-padding { padding: 100px 0; }
.bg-cloud { background: var(--cloud); }
.overline {
    display: block;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--teal);
    margin-bottom: 16px;
    text-transform: uppercase;
}

/* --- Typography --- */
.display-title { font-size: 82px; letter-spacing: -0.05em; margin-bottom: 32px; }
.display-title span { color: var(--teal-glow); }

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    padding: 18px 36px;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 16px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
    border: none;
}

.btn-navy { background: var(--navy); color: var(--white); }
.btn-navy:hover { transform: translateY(-3px); box-shadow: 0 15px 30px rgba(15, 23, 42, 0.2); }
.btn-outline { background: transparent; color: var(--navy); border: 1.5px solid #E2E8F0; }
.btn-outline:hover { background: #F1F5F9; }
.btn-teal { background: var(--teal-glow); color: var(--navy); }
.btn-sm { padding: 10px 24px; font-size: 14px; }
.btn-full { width: 100%; justify-content: center; }

/* --- Floating Navigation --- */
.floating-nav {
    position: fixed;
    top: 24px;
    left: 0;
    right: 0;
    z-index: 1000;
}

.header-inner {
    background: var(--glass);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-full);
    padding: 10px 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow-soft);
    max-width: 1200px;
}

.nav-list { display: flex; list-style: none; gap: 32px; margin: 0; padding: 0; }
.nav-list a { text-decoration: none; color: var(--navy); font-size: 15px; font-weight: 500; }
.nav-list a:hover { opacity: 0.6; }

.header-right { display: flex; align-items: center; gap: 20px; }
.search-trigger { background: none; border: none; cursor: pointer; color: var(--navy); }

/* --- Hero Section --- */
.hero-section {
    padding-top: 180px;
    padding-bottom: 80px;
    position: relative;
    overflow: visible;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 60px;
    align-items: center;
}

.hero-lead { font-size: 20px; margin-bottom: 48px; max-width: 520px; }
.hero-actions { display: flex; gap: 16px; margin-bottom: 60px; }

.hero-badges { display: flex; gap: 24px; }
.badge { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--navy); opacity: 0.8; }
.badge img { width: 20px; height: 20px; }

.hero-visual { position: relative; }
.main-hero-image-wrapper {
    border-radius: 40px;
    overflow: hidden;
    height: 640px;
    box-shadow: 0 40px 100px -20px rgba(0,0,0,0.15);
}
.hero-bg-img { width: 100%; height: 100%; object-fit: cover; }

/* --- Featured Glass Card --- */
.glass-card {
    position: absolute;
    bottom: 60px;
    right: -40px;
    width: 440px;
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: var(--radius-md);
    padding: 40px;
    box-shadow: var(--shadow-glass);
    z-index: 10;
}

.card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.category-tag { font-size: 11px; font-weight: 800; letter-spacing: 0.1em; color: var(--navy); opacity: 0.5; }
.icon-circle { width: 32px; height: 32px; border-radius: 50%; background: var(--navy); color: white; display: flex; align-items: center; justify-content: center; }

.glass-card h3 { font-size: 28px; margin-bottom: 16px; }
.glass-card p { font-size: 16px; margin-bottom: 32px; }

.reviewer-faces { display: flex; align-items: center; margin-top: 24px; gap: 12px; }
.reviewer-faces img { width: 32px; height: 32px; border-radius: 50%; border: 2px solid white; margin-left: -12px; }
.reviewer-faces img:first-child { margin-left: 0; }
.reviewer-faces span { font-size: 12px; font-weight: 600; color: var(--slate); }

/* --- Search Bar --- */
.search-bar-wrapper {
    background: white;
    border-radius: var(--radius-full);
    padding: 12px 12px 12px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
    border: 1px solid #F1F5F9;
    margin-top: -50px;
    position: relative;
    z-index: 20;
}

.search-input-group { display: flex; align-items: center; gap: 16px; flex: 1; }
.search-input-group input { border: none; font-size: 18px; width: 100%; outline: none; }
.popular-searches { display: flex; gap: 16px; align-items: center; font-size: 14px; }
.popular-searches span { color: var(--slate); font-weight: 500; }
.popular-searches a { text-decoration: none; color: var(--navy); font-weight: 600; padding: 8px 16px; background: #F1F5F9; border-radius: 100px; }

/* --- Grid Layouts --- */
.grid-6 { display: grid; grid-template-columns: repeat(6, 1fr); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }

/* --- Category Cards --- */
.category-card {
    background: white;
    padding: 32px;
    border-radius: var(--radius-md);
    border: 1px solid #F1F5F9;
    transition: all 0.4s ease;
}
.category-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-soft); border-color: var(--white); }
.cat-icon { margin-bottom: 24px; }
.category-card h3 { font-size: 20px; margin-bottom: 12px; }
.category-card p { font-size: 14px; margin-bottom: 24px; }
.arrow-link { font-size: 14px; font-weight: 700; text-decoration: none; color: var(--navy); }

/* --- Commitment Section --- */
.commitment-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 100px; align-items: center; }
.commitment-text h2 { font-size: 52px; margin-bottom: 24px; }
.commitment-text p { font-size: 18px; margin-bottom: 40px; }

.commitment-features { position: relative; }
.feature-item { display: flex; gap: 20px; align-items: flex-start; }
.feat-icon { width: 48px; height: 48px; flex-shrink: 0; }
.feature-item h4 { font-size: 18px; margin-bottom: 8px; }
.feature-item p { font-size: 14px; }

.central-shield {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.05;
}

/* --- Newsletter --- */
.newsletter-section { margin: 100px auto; }
.newsletter-inner {
    background: var(--navy);
    border-radius: 40px;
    padding: 80px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
    gap: 60px;
}

.mail-icon-bg { width: 64px; height: 64px; border-radius: 20px; background: rgba(255,255,255,0.1); display: flex; align-items: center; justify-content: center; margin-bottom: 32px; }
.newsletter-info h3 { font-size: 36px; margin-bottom: 16px; color: white; }
.newsletter-info p { color: rgba(255,255,255,0.6); font-size: 18px; }

.newsletter-form-group { width: 440px; }
.input-with-button { position: relative; margin-bottom: 24px; }
.input-with-button input {
    width: 100%;
    padding: 22px 32px;
    border-radius: var(--radius-full);
    background: rgba(255,255,255,0.05);
    border: 1.5px solid rgba(255,255,255,0.1);
    color: white;
    font-size: 16px;
    outline: none;
}
.input-with-button .btn { position: absolute; right: 8px; top: 8px; padding: 14px 28px; }

.form-checkmarks { display: flex; gap: 20px; }
.form-checkmarks span { font-size: 12px; font-weight: 600; color: rgba(255,255,255,0.4); display: flex; align-items: center; gap: 6px; }

/* --- Partners --- */
.partners-section { text-align: center; padding-bottom: 100px; }
.partners-label { font-size: 12px; font-weight: 700; color: var(--slate); margin-bottom: 40px; text-transform: uppercase; letter-spacing: 0.1em; }
.partners-grid { display: flex; justify-content: space-between; align-items: center; opacity: 0.4; filter: grayscale(1); }
.partners-grid img { height: 32px; }

/* --- Responsive --- */
@media (max-width: 1200px) {
    .hero-grid { grid-template-columns: 1fr; text-align: center; }
    .hero-text { margin: 0 auto; }
    .hero-lead { margin: 0 auto 48px; }
    .hero-actions { justify-content: center; }
    .hero-badges { justify-content: center; }
    .hero-visual { display: flex; justify-content: center; }
    .glass-card { position: relative; bottom: 0; right: 0; margin-top: -100px; width: 100%; max-width: 500px; }
    .grid-6 { grid-template-columns: repeat(3, 1fr); }
    .commitment-grid { grid-template-columns: 1fr; gap: 60px; text-align: center; }
    .commitment-text { margin: 0 auto; }
    .newsletter-inner { flex-direction: column; text-align: center; padding: 60px 40px; }
    .newsletter-form-group { width: 100%; }
}

@media (max-width: 768px) {
    .display-title { font-size: 48px; }
    .grid-6 { grid-template-columns: 1fr 1fr; }
    .header-inner { border-radius: 30px; padding: 8px 16px; }
    .main-navigation { display: none; }
    .search-bar-wrapper { flex-direction: column; border-radius: 30px; padding: 20px; margin-top: 40px; }
    .popular-searches { flex-wrap: wrap; justify-content: center; margin-top: 16px; }
    .grid-2 { grid-template-columns: 1fr; }
}
