/* Bodies in Motion | Site Styles
   Theme: High-Performance Minimalist
   Colors: Slate Blue (#2c3e50), White (#ffffff), Deep Navy (#0f172a)
*/

/* --- 1. VARIABLES & RESET --- */
:root {
    --primary-blue: #2c3e50; 
    --accent-blue: #3498db;      
    --text-main: #333333;
    --text-muted: #666666;
    --white: #ffffff;
    --border-light: #eeeeee;
    --navy-dark: #0f172a;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', Arial, sans-serif;
    font-size: 1.125rem; 
    line-height: 1.6;
    color: var(--text-main);
    background-color: var(--white);
    overflow-x: hidden;
}

.container {
    width: 90%;
    max-width: 1200px; 
    margin: auto;
}

/* --- 2. TYPOGRAPHY --- */
h1, h2, h3 {
    color: var(--primary-blue);
    margin-bottom: 1rem;
    font-weight: 700;
}

h1 { font-size: 3rem; line-height: 1.1; }
h2 { font-size: 2.25rem; text-align: center; margin-bottom: 2.5rem; }
h3 { font-size: 1.5rem; }

p { margin-bottom: 1.5rem; }

/* --- 3. NAVIGATION (Max Visibility for Logo) --- */
#main-nav {
    position: absolute; 
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    padding: 25px 0;
    /* Deeper scrim at the very top to push the clouds back */
    background: linear-gradient(to bottom, 
                rgba(0, 0, 0, 0.6) 0%, 
                rgba(0, 0, 0, 0.2) 50%, 
                rgba(0, 0, 0, 0) 100%);
}

.nav-content {
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

.logo-link img {
    height: 65px;
    width: auto;
    /* Layered drop shadows for max legibility against clouds */
    filter: drop-shadow(0px 2px 4px rgba(0,0,0,0.5)) 
            drop-shadow(0px 0px 10px rgba(0,0,0,0.3))
            brightness(1.15);
}

/* --- 4. HERO SECTION (The Boat Photo) --- */
.hero-section {
    position: relative;
    height: 85vh; 
    min-height: 600px;
    background-image: url('A99_DSC75590_Cropped.jpg');
    background-size: cover;
    background-position: center; 
    display: flex;
    align-items: center;
    justify-content: flex-end; /* Pushes content to the right */
    color: var(--white);
}

/* Darker wash on the far right to protect white text readability */
.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: linear-gradient(to right, rgba(0,0,0,0) 40%, rgba(0,0,0,0.6) 100%);
    pointer-events: none;
    z-index: 1;
}

.hero-text {
    position: relative;
    /* REDUCED WIDTH: Forces text into a cleaner column on the right */
    flex: 0 1 420px; 
    /* INCREASED MARGIN: Pushes text further away from the steering wheel */
    margin-right: 10%; 
    text-align: right;
    z-index: 2;
}

.hero-text h1 {
    font-size: 5rem; 
    color: var(--white);
    margin-bottom: 15px;
    text-shadow: 0 4px 20px rgba(0,0,0,0.6);
    letter-spacing: -2px;
}

.hero-text p {
    font-size: 1.35rem;
    line-height: 1.4;
    color: var(--white) !important; /* FIXED: Forces text to stay white over the grey container rule */
    text-shadow: 0 2px 10px rgba(0,0,0,0.9);
    opacity: 0.95;
}

/* --- 5. TRAINING PHILOSOPHY --- */
.section { padding: 100px 0; }

.grid-4 {
    display: grid;
    gap: 30px;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.expertise-item {
    padding: 40px;
    background: #fcfcfc;
    border: 1px solid var(--border-light);
    border-radius: 16px;
    transition: all 0.3s ease;
}

.expertise-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.05);
    border-color: var(--accent-blue);
}

.expertise-item h3 {
    color: var(--accent-blue);
    margin-bottom: 15px;
}

/* --- 6. COGNITIVE DASHBOARD --- */
.dashboard-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 50px;
}

.dashboard-container {
    max-width: 950px;
    width: 100%;
    background: #ffffff;
    padding: 40px;
    border-radius: 24px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.06);
    border: 1px solid #f0f0f0;
}

.dashboard-controls {
    background: #f8fafc;
    padding: 30px;
    border-radius: 16px;
    margin-bottom: 40px;
    text-align: center;
}

input[type=range] {
    width: 100%;
    max-width: 450px;
    margin: 20px 0;
    cursor: pointer;
}

.peak-highlight {
    font-size: 26px;
    font-weight: 700;
    color: var(--accent-blue);
}

.chart-container {
    position: relative;
    height: 450px;
    width: 100%;
}

/* --- 7. FOOTER --- */
.footer-section {
    padding: 80px 0;
    background-color: var(--navy-dark);
    text-align: center;
    font-size: 0.95rem;
}

/* Explicitly target the text inside the footer. 
  The !important flag ensures it overrides the .container p styling below. 
*/
.footer-section p,
.footer-section span,
.footer-section a,
.footer-section div {
    color: #ffffff !important;
}
/* --- 8. MOBILE RESPONSIVE --- */
@media (max-width: 1024px) {
    .hero-text h1 { font-size: 4rem; }
    .hero-text { margin-right: 5%; }
}

@media (max-width: 768px) {
    #main-nav {
        background: var(--white); 
        position: relative;
        padding: 15px 0;
    }
    
    .hero-section {
        height: 70vh;
        justify-content: center;
        background-position: 25% center; 
    }
    
    .hero-section::before {
        background: rgba(0,0,0,0.45); 
    }
    
    .hero-text {
        text-align: center;
        margin-right: 0;
        padding: 0 20px;
        flex: 1;
    }
    
    .hero-text h1 { font-size: 3.2rem; }
    .hero-text p { font-size: 1.1rem; }
}

/* Fitness Tables */
.benchmark-table {
    width: 100%;
    border-collapse: collapse;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 14px;
    background-color: #ffffff;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    border-radius: 8px;
    overflow: hidden;
    margin: 30px 0;
}

.benchmark-table th, 
.benchmark-table td {
    padding: 12px 15px;
    text-align: center;
    border-bottom: 1px solid #e5e7eb;
}

.benchmark-table th {
    background-color: #f9fafb;
    color: #111827;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.05em;
}

.benchmark-table td:first-child {
    text-align: left;
    font-weight: 600;
    color: #374151;
    background-color: #f9fafb;
}

.benchmark-table tbody tr:hover {
    background-color: #f3f4f6;
}

.benchmark-table tbody tr:last-child td {
    border-bottom: none;
}

.table-title-container {
    text-align: center;
    margin-bottom: 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.table-title-container h3 {
    margin: 0;
    color: #111827;
    font-size: 20px;
    font-weight: 700;
}

.table-title-container p {
    margin: 5px 0 0 0;
    color: #4b5563;
    font-size: 14px;
    font-weight: 500;
}

/* =========================================
   General Container & Typography Spacing 
   ========================================= */

.container p {
    line-height: 1.6;
    margin-bottom: 1.25rem;
    color: #374151; 
}

.container ul {
    line-height: 1.6;
    margin-top: 1rem;
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.container li {
    margin-bottom: 0.875rem;
    color: #374151;
}

.container li:last-child {
    margin-bottom: 0;
}