/* 
   Project: Modern Corporate Website Template (Sport Nutrition/Wellness)
   Description: Professional, Modular, High-contrast design
   Date: 2023
*/

/* 1. CSS Variables (Design System) */
:root {
    /* Color Palette */
    --primary-color: #004D3D; /* Forest Green */
    --primary-light: #006651;
    --secondary-gold: #D4AF37; /* Honors/Awards */
    --accent-green: #A8E6CF;
    --bg-white: #FFFFFF;
    --bg-light: #F9F9F9;
    --bg-dark: #0A0A0A;
    --text-primary: #111111;
    --text-secondary: #666666;
    --text-light: #E0E0E0;

    /* Typography */
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-heading: 'Poppins', 'Montserrat', sans-serif;
    
    /* Spacing & Sizing */
    --section-padding: 100px 0;
    --container-width: 1200px;
    --border-radius-sm: 4px;
    --border-radius-md: 8px;
    --border-radius-lg: 30px; /* Pill shape */
    
    /* Transitions */
    --transition-fast: all 0.3s ease;
    --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-sm: 0 2px 10px rgba(0,0,0,0.05);
    --shadow-md: 0 10px 30px rgba(0,0,0,0.1);
}

/* 2. Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-secondary);
    background-color: var(--bg-white);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--text-primary);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: var(--section-padding);
}

/* 3. Utility Classes */
.text-center { text-align: center; }
.text-white { color: var(--bg-white); }
.bg-dark { background-color: var(--bg-dark); color: var(--bg-white); }
.bg-light { background-color: var(--bg-light); }
.uppercase-tracking { text-transform: uppercase; letter-spacing: 2px; font-size: 0.85rem; font-weight: 600; }
.mt-20 { margin-top: 20px; }
.mb-40 { margin-bottom: 40px; }

/* 4. Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    font-weight: 600;
    border-radius: var(--border-radius-lg);
    cursor: pointer;
    transition: var(--transition-fast);
    border: 2px solid transparent;
    font-size: 0.95rem;
}

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

.btn-primary:hover {
    background-color: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

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

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

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

/* 5. Header & Navigation */
.header {
    width: 100%;
    height: 80px;
    display: flex;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo img {
    height: 40px;
}

.nav-menu {
    display: flex;
    gap: 40px;
}

.nav-link {
    font-weight: 500;
    color: var(--text-primary);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition-fast);
}

.nav-link:hover::after {
    width: 100%;
}

/* 6. Hero Section */
.hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    min-height: calc(100vh - 80px);
    background-color: var(--bg-white);
    overflow: hidden;
}

.hero-content {
    padding-right: 60px;
}

.hero-title {
    font-size: 4rem;
    margin-bottom: 24px;
}

.hero-title span {
    color: var(--primary-color);
}

.hero-description {
    font-size: 1.125rem;
    margin-bottom: 40px;
    max-width: 500px;
}

.hero-images {
    position: relative;
    height: 100%;
}

.hero-img-main {
    width: 80%;
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-md);
}

.hero-img-sub {
    position: absolute;
    bottom: 10%;
    right: 0;
    width: 50%;
    border: 10px solid white;
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-md);
}

/* 7. Card Components */
.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.card {
    background: white;
    border-radius: var(--border-radius-md);
    overflow: hidden;
    transition: var(--transition-slow);
    border: 1px solid #eee;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-md);
}

.card-img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
}

.card-body {
    padding: 24px;
}

.award-card {
    background: #1A1A1A;
    padding: 40px;
    border-left: 4px solid var(--secondary-gold);
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.award-icon {
    font-size: 2rem;
    color: var(--secondary-gold);
}

/* 8. Stats Section */
.stats-bar {
    display: flex;
    justify-content: space-between;
    padding: 60px 0;
    border-top: 1px solid #eee;
}

.stat-item h2 {
    font-size: 3rem;
    margin-bottom: 5px;
    color: var(--primary-color);
}

.stat-item p {
    font-weight: 600;
    color: var(--text-primary);
}

/* 9. Footer */
.footer {
    padding: 80px 0 20px;
}

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

.footer-logo {
    margin-bottom: 25px;
}

.footer-title {
    color: white;
    font-size: 1.2rem;
    margin-bottom: 25px;
}

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

.footer-links a:hover {
    color: var(--accent-green);
    padding-left: 5px;
}

.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid #333;
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: #888;
}

/* 10. Responsive Design */

/* Tablet (1024px) */
@media (max-width: 1024px) {
    .hero-title { font-size: 3rem; }
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .footer-top { grid-template-columns: 1fr 1fr; }
    :root { --section-padding: 80px 0; }
}

/* Mobile (768px) */
@media (max-width: 768px) {
    .nav-menu { display: none; } /* Hamburger menu would be triggered by JS */
    
    .hero {
        grid-template-columns: 1fr;
        text-align: center;
        padding-top: 40px;
    }
    
    .hero-content {
        padding-right: 0;
        margin-bottom: 50px;
    }
    
    .hero-description {
        margin: 0 auto 40px;
    }
    
    .hero-images {
        height: 400px;
    }
    
    .grid-3, .grid-4 {
        grid-template-columns: 1fr;
    }
    
    .stats-bar {
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }
    
    .footer-top {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}

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

.reveal {
    animation: fadeInUp 0.8s ease forwards;
}

/* 12. Partner Logo Slider (Optional Utility) */
.logo-track {
    display: flex;
    align-items: center;
    gap: 60px;
    opacity: 0.6;
    filter: grayscale(1);
    transition: var(--transition-fast);
    overflow-x: auto;
    padding: 20px 0;
}

.logo-track::-webkit-scrollbar { display: none; }

.logo-track img:hover {
    opacity: 1;
    filter: grayscale(0);
}