/* --------------------------------
   Global Reset & Base Styling
   -------------------------------- */
:root {
    /* Professional Dark Theme */
    --color-primary-dark: #1f2937; /* Dark Slate Gray (similar to tailwind slate-800) */
    --color-background: #0f172a; /* Deep Navy (similar to tailwind slate-900) */
    --color-text-light: #f3f4f6; /* Off-White */
    --color-text-subtle: #9ca3af; /* Light Gray */
    --color-accent-gold: #f59e0b; /* Amber/Gold for primary CTA and highlights */
    --color-accent-teal: #10b981; /* Green/Teal for secondary CTAs and icons */
    --max-line-width: 70ch;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    background-color: var(--color-background);
    color: var(--color-text-light);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 0.5rem;
}

a {
    color: var(--color-accent-gold);
    text-decoration: none;
    transition: color 0.2s ease-in-out;
}

a:hover {
    color: var(--color-text-light);
}

/* Headings */
h1, h2, h3 {
    font-family: 'Georgia', serif;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 0.75rem;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; margin-top: 2rem; }
h3 { font-size: 1.5rem; margin-top: 1.5rem; }

/* Readability - max line length */
p, .sub-heading, .tagline {
    max-width: var(--max-line-width);
    margin-left: auto;
    margin-right: auto;
    color: var(--color-text-subtle);
}
.sub-heading { font-size: 1.15rem; margin-bottom: 2rem; }


/* --------------------------------
   Header and Navigation
   -------------------------------- */
.main-header {
    background-color: var(--color-primary-dark);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
}

.logo {
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--color-text-light);
    letter-spacing: -0.5px;
}

.logo:hover {
    color: var(--color-accent-gold);
}

.logo-accent {
    color: var(--color-accent-gold);
}

.main-nav a {
    color: var(--color-text-subtle);
    padding: 0.5rem 1rem;
    font-weight: 500;
    border-bottom: 2px solid transparent;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--color-text-light);
    border-bottom: 2px solid var(--color-accent-gold);
}

.nav-toggle {
    display: none; /* Hidden on desktop */
    background: none;
    border: none;
    color: var(--color-accent-gold);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
}

/* Mobile Navigation */
@media (max-width: 768px) {
    .main-nav {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--color-primary-dark);
        padding: 1rem 0;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }
    .main-nav.active {
        display: flex;
    }
    .main-nav a {
        padding: 0.75rem 1.5rem;
        text-align: center;
        border-bottom: none;
        border-left: 3px solid transparent;
    }
    .main-nav a:hover,
    .main-nav a.active {
        border-left: 3px solid var(--color-accent-gold);
    }
    .nav-toggle {
        display: block;
    }
}

@media (min-width: 769px) {
    .main-nav {
        display: flex;
        gap: 1.5rem;
    }
}


/* --------------------------------
   Global Reset & Base Styling
   -------------------------------- */
:root {
    /* Professional Dark Theme */
    --color-primary-dark: #1f2937; /* Dark Slate Gray (similar to tailwind slate-800) */
    --color-background: #0f172a; /* Deep Navy (similar to tailwind slate-900) */
    --color-text-light: #f3f4f6; /* Off-White */
    --color-text-subtle: #9ca3af; /* Light Gray */
    --color-accent-gold: #f59e0b; /* Amber/Gold for primary CTA and highlights */
    --color-accent-teal: #10b981; /* Green/Teal for secondary CTAs and icons */
    --max-line-width: 70ch;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    background-color: var(--color-background);
    color: var(--color-text-light);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

a {
    color: var(--color-accent-gold);
    text-decoration: none;
    transition: color 0.2s ease-in-out;
}

a:hover {
    color: var(--color-text-light);
}

/* Headings */
h1, h2, h3 {
    font-family: 'Georgia', serif;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 0.75rem;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; margin-top: 2rem; }
h3 { font-size: 1.5rem; margin-top: 1.5rem; }

/* Readability - max line length */
p, .sub-heading, .tagline {
    max-width: var(--max-line-width);
    margin-left: auto;
    margin-right: auto;
    color: var(--color-text-subtle);
}
.sub-heading { font-size: 1.15rem; margin-bottom: 2rem; }


/* --------------------------------
   Header and Navigation
   -------------------------------- */
.main-header {
    background-color: var(--color-primary-dark);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
}

.logo {
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--color-text-light);
    letter-spacing: -0.5px;
}

.logo:hover {
    color: var(--color-accent-gold);
}

.logo-accent {
    color: var(--color-accent-gold);
}

.main-nav a {
    color: var(--color-text-subtle);
    padding: 0.5rem 1rem;
    font-weight: 500;
    border-bottom: 2px solid transparent;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--color-text-light);
    border-bottom: 2px solid var(--color-accent-gold);
}

.nav-toggle {
    display: none; /* Hidden on desktop */
    background: none;
    border: none;
    color: var(--color-accent-gold);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
}

/* Mobile Navigation */
@media (max-width: 768px) {
    .main-nav {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--color-primary-dark);
        padding: 1rem 0;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }
    .main-nav.active {
        display: flex;
    }
    .main-nav a {
        padding: 0.75rem 1.5rem;
        text-align: center;
        border-bottom: none;
        border-left: 3px solid transparent;
    }
    .main-nav a:hover,
    .main-nav a.active {
        border-left: 3px solid var(--color-accent-gold);
    }
    .nav-toggle {
        display: block;
    }
}

@media (min-width: 769px) {
    .main-nav {
        display: flex;
        gap: 1.5rem;
    }
}


/* --------------------------------
   CTA Buttons (Reusable)
   -------------------------------- */
.cta-button {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    border-radius: 8px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: transform 0.2s, box-shadow 0.2s, background-color 0.2s;
    text-align: center;
    border: none;
}

.primary-cta {
    background-color: var(--color-accent-gold);
    color: var(--color-background);
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4);
}

.primary-cta:hover {
    background-color: #eab308; /* Slightly darker gold */
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.6);
}

.secondary-cta {
    background-color: transparent;
    color: var(--color-accent-teal);
    border: 2px solid var(--color-accent-teal);
    padding: 0.7rem 1.7rem;
    margin-top: 1rem;
}

.secondary-cta:hover {
    background-color: rgba(16, 185, 129, 0.1); /* light teal overlay */
    transform: translateY(-1px);
}

.tertiary-cta {
    background-color: var(--color-primary-dark);
    color: var(--color-accent-gold);
    border: 1px solid var(--color-accent-gold);
    margin-top: 2rem;
}

.tertiary-cta:hover {
    background-color: rgba(245, 158, 11, 0.1);
    transform: none;
}


/* --------------------------------
   Hero Section
   -------------------------------- */
.hero-section {
    padding: 5rem 0 7rem;
    text-align: center;
    background: var(--color-background);
    border-bottom: 1px solid var(--color-primary-dark);
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3rem;
}

.hero-text {
    max-width: 900px;
}

.hero-text h1 {
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 1rem;
    letter-spacing: -1px;
}

.tagline {
    font-size: 1.4rem;
    margin-bottom: 2rem;
    color: var(--color-text-subtle);
}

.highlight {
    color: var(--color-accent-gold);
}

.hero-image-placeholder img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
}

@media (min-width: 1024px) {
    .hero-text h1 {
        font-size: 4.5rem;
    }
    .hero-content {
        flex-direction: row;
        text-align: left;
    }
    .hero-text {
        max-width: 50%;
        margin-left: 0;
        margin-right: 0;
    }
    .hero-image-placeholder {
        max-width: 50%;
    }
}


/* --------------------------------
   Value Proposition Section
   -------------------------------- */
.value-prop-section {
    padding: 5rem 0;
    text-align: center;
    background-color: var(--color-primary-dark);
}

.value-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
    margin-bottom: 3rem;
}

.value-card {
    background-color: var(--color-background);
    padding: 2rem;
    border-radius: 10px;
    text-align: left;
    transition: transform 0.3s, box-shadow 0.3s;
    border-top: 4px solid var(--color-accent-teal);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
}

.value-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6);
}

.value-card h3 {
    color: var(--color-text-light);
    font-weight: 600;
}

.value-card p {
    margin-left: 0;
    margin-right: 0;
}

.icon {
    font-size: 2rem;
    display: block;
    margin-bottom: 1rem;
    color: var(--color-accent-teal);
}


/* --------------------------------
   Articles Preview Section
   -------------------------------- */
.articles-preview-section {
    padding: 4rem 0 6rem;
    text-align: center;
}

.article-links {
    margin-top: 3rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.article-links a {
    background-color: var(--color-primary-dark);
    padding: 1.25rem;
    border-radius: 8px;
    text-align: left;
    font-weight: 500;
    color: var(--color-accent-teal);
    border-left: 4px solid var(--color-accent-teal);
    transition: background-color 0.2s, border-color 0.2s;
}

.article-links a:hover {
    background-color: rgba(16, 185, 129, 0.2);
    border-left-color: var(--color-accent-gold);
    color: var(--color-text-light);
}


/* --------------------------------
   Footer
   -------------------------------- */
.main-footer {
    background-color: var(--color-primary-dark);
    padding-top: 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    padding-bottom: 2rem;
}

.footer-col {
    width: 48%; /* Adjust for small screen layout */
    margin-bottom: 2rem;
}

@media (min-width: 600px) {
    .footer-col {
        width: auto;
        margin-right: 3rem;
        margin-bottom: 0;
    }
}

.footer-col h3 {
    font-size: 1.1rem;
    color: var(--color-text-light);
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.footer-col ul {
    list-style: none;
}

.footer-col li {
    margin-bottom: 0.5rem;
}

.footer-col a {
    color: var(--color-text-subtle);
    font-size: 0.95rem;
}

.footer-col a:hover {
    color: var(--color-accent-gold);
}

.copyright {
    text-align: center;
    padding: 1rem 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.copyright p {
    margin: 0;
    font-size: 0.85rem;
    color: var(--color-text-subtle);
}

/* --------------------------------
   Products Page Specific Styles (products.html)
   -------------------------------- */
.product-listing {
    padding: 3rem 0;
}

.product-card {
    background-color: var(--color-primary-dark);
    border-radius: 12px;
    padding: 0.5rem;
    margin-bottom: 0.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    border-left: 5px solid transparent;
    transition: border-left-color 0.3s ease;
}

.product-card-trainer {
    border-left-color: var(--color-accent-gold);
    background: #151d28; /* Slightly darker background for the main product */
    padding: 3rem 2rem;
}

.product-card-statistical {
    border-left-color: var(--color-accent-teal);
}

.product-card h3 {
    font-size: 1.8rem;
    color: var(--color-text-light);
    margin-bottom: 0.5rem;
}

.product-card .price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-accent-gold);
    margin-bottom: 0.2rem;
    display: block;
}

.product-card .description {
    color: var(--color-text-subtle);
    margin-bottom: 0.5rem;
    /* FIX: Apply max width for readability and override the centered margin from the general 'p' selector */
    max-width: var(--max-line-width); 
    margin-left: 0; 
    margin-right: 0;
}

.card-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 0.5rem;
}

.card-actions .cta-button {
    font-size: 0.9rem;
    padding: 0.6rem 1.2rem;
}

.buy-now-cta {
    background-color: var(--color-accent-gold);
    color: var(--color-background);
}

.buy-now-cta:hover {
    background-color: #eab308;
    transform: translateY(-1px);
}

.details-cta {
    background: none;
    border: 1px solid var(--color-accent-teal);
    color: var(--color-accent-teal);
    font-weight: 500;
}

.details-cta:hover {
    background-color: rgba(16, 185, 129, 0.1);
    color: var(--color-text-light);
}

/* --------------------------------
    Compact Products List Styles (Reuses article table structure)
    -------------------------------- */
.compact-products-section {
    padding: 4rem 0 6rem;
    background-color: var(--color-background); /* Deep Navy background for separation */
}

/* Ensure the product links are visible and distinct */
.compact-products .article-row {
    background-color: var(--color-primary-dark); /* Dark Slate Gray background for product rows */
}

.compact-products .article-row:hover {
    background-color: rgba(245, 158, 11, 0.1); /* Slightly more pronounced hover */
}

.compact-products .title-cell a {
    color: var(--color-text-light);
    font-size: 1.2rem;
}

.compact-products .title-cell a:hover {
    color: var(--color-accent-gold);
}

/* Mobile adjustments for product cards to stand out */
@media (max-width: 768px) {
    .compact-products .article-row {
        border-left: 4px solid var(--color-accent-teal); /* Use Teal border on mobile for product distinction */
    }
}

/* --------------------------------
    Compact Products List Styles (Reuses article table structure)
    -------------------------------- */
.compact-products-section {
    padding: 4rem 0 6rem;
    background-color: var(--color-background); /* Deep Navy background for separation */
}

/* Ensure the product links are visible and distinct */
.compact-products .article-row {
    background-color: var(--color-primary-dark); /* Dark Slate Gray background for product rows */
}

.compact-products .article-row:hover {
    background-color: rgba(245, 158, 11, 0.1); /* Slightly more pronounced hover */
}

.compact-products .title-cell a {
    color: var(--color-text-light);
    font-size: 1.2rem;
}

.compact-products .title-cell a:hover {
    color: var(--color-accent-gold);
}

/* Mobile adjustments for product cards to stand out */
@media (max-width: 768px) {
    .compact-products .article-row {
        border-left: 4px solid var(--color-accent-teal); /* Use Teal border on mobile for product distinction */
    }
}

strong {
    /* Sets the color to your accent gold or another high-contrast shade */
    color: var(--color-accent-gold); 
    font-weight: 700;    
    /* Optional: for extra visual impact */
    text-shadow: 0 0 1px rgba(255, 255, 255, 0.5);
}

b {
    color: lavender; 
    font-weight: 700;    
    /* Optional: for extra visual impact */
    text-shadow: 0 0 1px rgba(255, 255, 255, 0.5);
}
