/* 
 * Rail Ready Training - Stylesheet
 * Brand colours extracted from logo: Navy blue and green accent
 */

/* CSS Variables - Brand Colours from Logo */
:root {
    --color-navy: #1a2d4a;
    --color-navy-dark: #0f1a2b;
    --color-navy-light: #2a4060;
    --color-green: #4cb848;
    --color-green-dark: #3da03a;
    --color-green-light: #5fc95b;
    --color-white: #ffffff;
    --color-off-white: #f5f7fa;
    --color-text: #ffffff;
    --color-text-dark: #1a2d4a;
    --color-text-muted: #a8b4c4;
    --color-background: #0f1a2b;
    --color-card: #1a2d4a;
    --color-border: rgba(255, 255, 255, 0.1);
    --font-primary: 'Segoe UI', system-ui, -apple-system, sans-serif;
    --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.25);
    --shadow-strong: 0 8px 30px rgba(0, 0, 0, 0.35);
    --border-radius: 8px;
    --max-width: 1140px;
    --header-height: 80px;
}

/* Reset and Base Styles */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    height: 100%;
    width: 100%;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    background-color: var(--color-background);
    color: var(--color-text);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Container */
.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* Typography */
h1, h2, h3 {
    line-height: 1.2;
    font-weight: 600;
}

h1 {
    font-size: clamp(2rem, 5vw, 3rem);
}

h2 {
    font-size: clamp(1.5rem, 4vw, 2.25rem);
}

h3 {
    font-size: 1.25rem;
}

/* ================================
   GLOBAL LAYOUT & SPACING IMPROVEMENTS
   ================================ */

:root {
    --section-padding: 100px;
    --section-padding-mobile: 70px;
    --container-max-width: 1100px;
    --content-max-width: 850px;
    --color-navy-alt: #11294d;
}

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

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

.hero {
    padding: 120px 0;
}

h1, .hero-title, .decisive-headline {
    margin-bottom: 25px !important;
}

h2, .hero-subtitle, .section-subtitle {
    margin-bottom: 20px !important;
}

p {
    line-height: 1.65;
    margin-bottom: 20px;
}

.section-intro, .hero-supporting-text, .decisive-text, .hero-subtitle {
    max-width: var(--content-max-width);
    margin-left: auto;
    margin-right: auto;
}

/* Section Alternating Backgrounds */
section:nth-of-type(even) {
    background-color: var(--color-navy-alt);
}

section:nth-of-type(odd) {
    background-color: var(--color-background);
}

/* Ensure consistent spacing around CTAs */
.hero-cta, .hero-cta-group, .decisive-cta, .pricing-section .price-card, .cta-strip {
    margin-top: 40px;
    margin-bottom: 40px;
}

@media (max-width: 768px) {
    .section {
        padding: var(--section-padding-mobile) 0;
    }
    
    .hero {
        padding: 80px 0;
    }
}

/* ================================
   HEADER STYLES
   ================================ */

.site-header {
    background-color: var(--color-navy);
    padding: 16px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--color-border);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--color-white);
}

.header-logo {
    height: 50px;
    width: auto;
}

.brand-name {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-white);
}

.main-nav {
    display: flex;
    gap: 32px;
}

.nav-link {
    color: var(--color-text-muted);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    padding: 8px 0;
}

.nav-link:hover,
.nav-link.active {
    color: var(--color-green);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--color-white);
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* ================================
   BUTTON STYLES
   ================================ */

.btn {
    display: inline-block;
    padding: 20px 48px;
    font-size: 1.125rem;
    font-weight: 700;
    text-decoration: none;
    border-radius: 32px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    text-align: center;
    letter-spacing: 0.5px;
    margin: 50px 0;
}

.btn-primary, .btn-cta, .btn-get-guide {
    background-color: #00c853;
    color: var(--color-white);
    box-shadow: 0 12px 30px rgba(0, 200, 83, 0.25);
}

.btn-primary:hover, .btn-cta:hover, .btn-get-guide:hover {
    background-color: #00b44b;
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0, 200, 83, 0.35);
}

.btn-large {
    padding: 22px 56px;
    font-size: 1.25rem;
}

.gumroad-button {
  display: inline-block;
  background-color: #00c853;
  color: #1a2d4a;
  padding: 20px 48px;
  border-radius: 32px;
  font-weight: 700;
  font-size: 1.125rem;
  text-decoration: none;
  letter-spacing: 0.5px;
  box-shadow: 0 12px 30px rgba(0, 200, 83, 0.25);
  transition: all 0.3s ease;
  margin: 50px 0;
}

.gumroad-button:hover {
  background-color: #00b44b;
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(0, 200, 83, 0.35);
}

/* ================================
   SECTION STYLES
   ================================ */

.section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
    color: var(--color-white);
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background-color: var(--color-green);
    margin: 20px auto 0;
    border-radius: 2px;
}

/* ================================
   HERO SECTION
   ================================ */

.hero {
    background: linear-gradient(135deg, var(--color-navy) 0%, var(--color-navy-dark) 100%);
    padding: 80px 0 100px;
}

.hero-container {
    max-width: 900px;
}

.hero-title {
    margin-bottom: 24px;
    color: var(--color-white);
    text-align: center;
    font-size: clamp(1.75rem, 4vw, 2.5rem);
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.3rem);
    color: var(--color-text-muted);
    font-weight: 400;
    margin-bottom: 40px;
    text-align: center;
    line-height: 1.6;
}

.hero-content {
    text-align: left;
    margin-bottom: 50px;
}

.hero-problem {
    margin-bottom: 40px;
}

.problem-intro {
    font-size: 1.15rem;
    color: var(--color-white);
    margin-bottom: 20px;
    line-height: 1.7;
}

.problem-list {
    list-style: none;
    margin-bottom: 20px;
    padding-left: 20px;
}

.problem-list li {
    color: var(--color-text-muted);
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.problem-warning {
    color: #e5a33d;
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 16px;
}

.problem-solution {
    color: var(--color-green);
    font-weight: 600;
    font-size: 1.2rem;
}

.hero-solution {
    margin-bottom: 40px;
}

.solution-intro {
    font-size: 1.1rem;
    color: var(--color-white);
    margin-bottom: 20px;
    line-height: 1.7;
}

.solution-intro strong {
    color: var(--color-green);
}

.solution-list {
    list-style: none;
    margin-bottom: 24px;
    padding-left: 0;
}

.solution-list li {
    color: var(--color-text-muted);
    font-size: 1.05rem;
    margin-bottom: 12px;
    padding-left: 28px;
    position: relative;
    line-height: 1.5;
}

.solution-list li::before {
    content: '\2713';
    color: var(--color-green);
    font-weight: bold;
    position: absolute;
    left: 0;
}

.solution-emphasis {
    color: var(--color-white);
    font-weight: 600;
    font-size: 1.1rem;
}

.hero-authority {
    color: var(--color-text-muted);
    font-size: 1.05rem;
    font-style: italic;
    border-left: 3px solid var(--color-green);
    padding-left: 20px;
    margin-bottom: 0;
    line-height: 1.7;
}

.hero-cta {
    text-align: center;
    padding-top: 10px;
}

.hero-cta .btn {
    margin-bottom: 24px;
}

.micro-trust {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
}

.trust-check {
    color: var(--color-text-muted);
    font-size: 0.95rem;
}

.trust-check::first-letter {
    color: var(--color-green);
}

/* ================================
   WHAT YOU'LL LEARN SECTION
   ================================ */

.what-youll-learn {
    background-color: var(--color-navy);
}

.section-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px;
    font-size: 1.15rem;
    color: var(--color-text-muted);
}

.learning-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.learning-item {
    background-color: var(--color-navy-dark);
    padding: 30px;
    border-radius: var(--border-radius);
    border: 1px solid var(--color-border);
    transition: transform 0.3s ease;
}

.learning-item:hover {
    transform: translateY(-5px);
    border-color: var(--color-green);
}

.learning-item h3 {
    color: var(--color-green);
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.learning-item p {
    color: var(--color-text-muted);
    font-size: 1rem;
    line-height: 1.6;
}

.section-reinforcement {
    text-align: center;
    font-weight: 600;
    font-style: italic;
    color: var(--color-white);
    max-width: 700px;
    margin: 0 auto;
    font-size: 1.1rem;
    padding-top: 20px;
}

/* ================================
   WHO THIS IS FOR SECTION
   ================================ */

.who-for {
    background-color: var(--color-background);
}

.persuasive-content {
    background-color: var(--color-navy);
    padding: 40px;
    border-radius: var(--border-radius);
    border: 1px solid var(--color-border);
    margin-bottom: 40px;
    max-width: 850px;
    margin-left: auto;
    margin-right: auto;
}

.persuasive-intro {
    font-size: 1.2rem;
    color: var(--color-green);
    font-weight: 600;
    margin-bottom: 25px;
}

.persuasive-list {
    list-style: none;
    margin-bottom: 30px;
}

.persuasive-list li {
    color: var(--color-text-muted);
    font-size: 1.1rem;
    margin-bottom: 15px;
    padding-left: 30px;
    position: relative;
    line-height: 1.6;
}

.persuasive-list li::before {
    content: '→';
    color: var(--color-green);
    position: absolute;
    left: 0;
    font-weight: bold;
}

.persuasive-emphasis {
    font-size: 1.1rem;
    color: var(--color-white);
    font-weight: 600;
    border-top: 1px solid var(--color-border);
    padding-top: 25px;
    text-align: center;
}

.career-reinforcement {
    text-align: center;
    max-width: 750px;
    margin: 0 auto 40px;
    color: var(--color-text-muted);
    font-size: 1.1rem;
    line-height: 1.7;
}

.career-reinforcement p:first-child {
    color: var(--color-white);
    font-weight: 600;
    margin-bottom: 10px;
}

.section-closing {
    text-align: center;
    font-size: 1.2rem;
    color: var(--color-green);
    font-weight: 700;
    max-width: 800px;
    margin: 0 auto;
    padding: 30px;
    border: 2px solid var(--color-green);
    border-radius: var(--border-radius);
}

/* ================================
   WHY RAIL READY SECTION
   ================================ */

.why-rail-ready {
    background-color: #0b1f3a; /* Dark navy */
    padding: 100px 0 0;
    color: var(--color-white);
}

.why-rail-ready-container {
    max-width: 1100px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.why-rail-ready .section-title {
    font-size: clamp(2.25rem, 5vw, 3rem);
    margin-bottom: 20px;
    color: var(--color-white);
}

.why-rail-ready .section-title::after {
    display: none; /* Remove existing underline if any */
}

.section-subtitle {
    font-size: 1.25rem;
    color: #a8b4c4; /* Slightly lighter text */
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}

.why-rail-ready .value-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 100px;
}

.why-rail-ready .value-card {
    background-color: #1a2d4a; /* Slightly lighter navy */
    padding: 40px 30px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}

.why-rail-ready .value-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    border-color: #00c853; /* Signal green highlight */
}

.why-rail-ready .card-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.why-rail-ready .value-card h3 {
    color: var(--color-white);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.4;
}

.why-rail-ready .value-card p {
    color: #a8b4c4;
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 0;
}

/* CTA Strip */
.cta-strip {
    background-color: #081629; /* Darker navy */
    padding: 80px 0;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.cta-strip-headline {
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    color: var(--color-white);
    margin-bottom: 15px;
}

.cta-strip-body {
    font-size: 1.15rem;
    color: #a8b4c4;
    margin-bottom: 40px;
}

.btn-cta {
    background-color: #00c853; /* Signal green */
    color: var(--color-white);
    padding: 18px 48px;
    font-size: 1.15rem;
    font-weight: 700;
    border-radius: 50px;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-cta:hover {
    background-color: #00a846; /* Slightly darker green */
    transform: scale(1.05);
    box-shadow: 0 5px 20px rgba(0, 200, 83, 0.3);
}

@media (max-width: 992px) {
    .why-rail-ready .value-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .why-rail-ready {
        padding: 80px 0 0;
    }

    .why-rail-ready .value-grid {
        grid-template-columns: 1fr;
        gap: 25px;
        margin-bottom: 80px;
    }

    .cta-strip {
        padding: 60px 0;
    }
}

/* ================================
   GET THE GUIDE PAGE STYLES (Minimal Redesign)
   ================================ */

.get-the-guide-page.minimal-version {
    background-color: #0b1f3a;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.focused-main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 0;
}

.decisive-section {
    width: 100%;
}

.tight-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 24px;
    text-align: center;
}

.decisive-headline {
    font-size: clamp(2.5rem, 7vw, 4rem);
    font-weight: 800;
    margin-bottom: 40px;
    line-height: 1.1;
    color: var(--color-white);
}

.decisive-text {
    font-size: 1.25rem;
    color: #a8b4c4;
    line-height: 1.8;
    margin-bottom: 60px;
}

.decisive-cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.decisive-reassurance {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 400;
}

@media (max-width: 768px) {
    .focused-main {
        padding: 80px 0;
    }
    
    .decisive-headline {
        font-size: 2.25rem;
        margin-bottom: 30px;
    }
    
    .decisive-text {
        font-size: 1.1rem;
        margin-bottom: 40px;
    }
    
    .btn-decisive {
        width: 100%;
        padding: 16px 24px;
        font-size: 1.1rem;
    }
}

/* ================================
   PRICING SECTION
   ================================ */

.pricing-section {
    background: linear-gradient(135deg, var(--color-navy-dark) 0%, var(--color-background) 100%);
    text-align: center;
}

.price-card {
    background-color: var(--color-card);
    padding: 60px 40px;
    border-radius: 12px;
    max-width: 500px;
    margin: 0 auto;
    box-shadow: var(--shadow-strong);
    border: 2px solid var(--color-green);
}

.price-card h2 {
    margin-bottom: 30px;
    color: var(--color-white);
}

.price {
    margin-bottom: 15px;
}

.price .currency {
    font-size: 2.5rem;
    vertical-align: baseline;
    color: var(--color-green);
}

.price .amount {
    font-size: 4rem;
    font-weight: 700;
    color: var(--color-white);
}

.price-note {
    color: var(--color-text-muted);
    margin-bottom: 30px;
}

/* ================================
   FOOTER
   ================================ */

.site-footer {
    background-color: var(--color-navy-dark);
    padding: 50px 0 30px;
    text-align: center;
    margin-top: auto;
    border-top: 1px solid var(--color-border);
}

.footer-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 20px;
}

.footer-logo {
    height: 40px;
    width: auto;
}

.footer-brand-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-white);
}

.disclaimer {
    color: var(--color-text-muted);
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.copyright {
    color: var(--color-text-muted);
    font-size: 0.875rem;
    opacity: 0.7;
}

/* ================================
   CHECKOUT PAGE STYLES
   ================================ */

.checkout-page {
    background-color: var(--color-background);
}

.checkout-main {
    padding: 80px 0;
    flex: 1;
}

.checkout-title {
    text-align: center;
    margin-bottom: 50px;
    color: var(--color-white);
}

.checkout-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background-color: var(--color-green);
    margin: 20px auto 0;
    border-radius: 2px;
}

/* Product Card */
.product-card {
    background-color: var(--color-card);
    padding: 40px;
    border-radius: var(--border-radius);
    text-align: center;
    max-width: 600px;
    margin: 0 auto 40px;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--color-border);
}

.product-card h2 {
    margin-bottom: 20px;
    color: var(--color-white);
}

.product-description {
    color: var(--color-text-muted);
    margin-bottom: 30px;
    line-height: 1.7;
}

.product-price {
    margin-bottom: 10px;
}

.product-price .currency {
    font-size: 2rem;
    vertical-align: baseline;
    color: var(--color-green);
}

.product-price .amount {
    font-size: 3rem;
    font-weight: 700;
    color: var(--color-white);
}

/* Payment Section */
.payment-section {
    text-align: center;
    margin-bottom: 50px;
}

.btn-checkout {
    min-width: 300px;
}

/* Trust Indicators */
.trust-indicators {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 50px;
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--color-text-muted);
    font-size: 0.95rem;
}

.badge-icon {
    font-size: 1.5rem;
    color: var(--color-green);
}

/* Back Navigation */
.back-nav {
    text-align: center;
}

.back-link {
    color: var(--color-green);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.back-link:hover {
    color: var(--color-green-light);
    text-decoration: underline;
}

/* ================================
   RESPONSIVE DESIGN
   ================================ */

@media (max-width: 768px) {
    .brand-name {
        display: none;
    }

    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--color-navy);
        flex-direction: column;
        padding: 20px;
        gap: 0;
        border-top: 1px solid var(--color-border);
    }

    .main-nav.active {
        display: flex;
    }

    .nav-link {
        padding: 15px 0;
        border-bottom: 1px solid var(--color-border);
    }

    .nav-link:last-child {
        border-bottom: none;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .hero {
        padding: 60px 0 80px;
    }

    .section {
        padding: 60px 0;
    }

    .cards-grid,
    .trust-points {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .card {
        padding: 30px 25px;
    }

    .price-card {
        padding: 40px 25px;
    }

    .price .amount {
        font-size: 3rem;
    }

    .btn-large {
        padding: 16px 36px;
        font-size: 1rem;
    }

    .btn-checkout {
        min-width: auto;
        width: 100%;
        max-width: 300px;
    }

    .trust-indicators {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .product-card {
        padding: 30px 20px;
    }

    .product-price .amount {
        font-size: 2.5rem;
    }

    .footer-brand {
        flex-direction: column;
        gap: 8px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .header-logo {
        height: 40px;
    }

    .hero {
        padding: 50px 0 60px;
    }

    .hero-description {
        font-size: 1rem;
    }

    .feature-list li {
        font-size: 1rem;
    }

    .section {
        padding: 50px 0;
    }

    .section-title {
        margin-bottom: 35px;
    }

    .checkout-main {
        padding: 50px 0;
    }
}
