/* ================================
   FINANCIAL FREEDOM ACADEMY
   Landing Page Styles
   ================================ */

/* ================================
   CSS VARIABLES (Design System)
   ================================ */
:root {
    /* Colors */
    --primary-blue: #4169E1;
    --primary-blue-dark: #3457D5;
    --primary-blue-light: #5A7FE8;
    --accent-gold: #F5A623;
    --accent-gold-dark: #D4900A;
    --text-dark: #1a1a1a;
    --text-medium: #444444;
    --text-light: #666666;
    --text-muted: #999999;
    --bg-white: #FFFFFF;
    --bg-light: #F8F9FA;
    --bg-dark: #1a1a1a;
    --footer-dark: #111111;
    --overlay-dark: rgba(0, 0, 0, 0.7);
    --overlay-gradient: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0) 100%);

    /* Typography */
    --font-main: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    --h1-size: clamp(28px, 5vw, 48px);
    --h2-size: clamp(22px, 4vw, 36px);
    --h3-size: clamp(18px, 2.5vw, 24px);
    --body-size: 16px;
    --small-size: 14px;
    --tiny-size: 12px;

    /* Spacing */
    --section-padding-y: clamp(50px, 8vw, 80px);
    --section-padding-x: 20px;
    --container-max-width: 1200px;
    --card-gap: 24px;

    /* Borders & Shadows */
    --border-radius-sm: 4px;
    --border-radius-md: 6px;
    --border-radius-lg: 8px;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.2);

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* ================================
   CSS RESET
   ================================ */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-main);
    font-size: var(--body-size);
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

a {
    text-decoration: none;
    color: inherit;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

ul, ol {
    list-style: none;
}

/* Accessibility */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Focus styles for accessibility */
:focus-visible {
    outline: 3px solid var(--primary-blue);
    outline-offset: 2px;
}

/* ================================
   LAYOUT
   ================================ */
.container {
    width: 100%;
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 var(--section-padding-x);
}

/* ================================
   BUTTONS
   ================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    font-size: var(--body-size);
    font-weight: 600;
    border-radius: var(--border-radius-md);
    transition: all var(--transition-fast);
    text-align: center;
    white-space: nowrap;
}

.btn-icon {
    flex-shrink: 0;
    transition: transform var(--transition-fast);
}

.btn:hover .btn-icon {
    transform: translateX(4px);
}

/* Primary Button (Blue) */
.btn-primary {
    background-color: var(--primary-blue);
    color: var(--bg-white);
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    background-color: var(--primary-blue-dark);
    transform: scale(1.02);
    box-shadow: var(--shadow-md);
}

.btn-primary:active {
    transform: scale(0.98);
}

/* White Button */
.btn-white {
    background-color: var(--bg-white);
    color: var(--primary-blue);
    box-shadow: var(--shadow-sm);
}

.btn-white:hover {
    background-color: var(--bg-light);
    transform: scale(1.02);
    box-shadow: var(--shadow-md);
}

/* Gold Button */
.btn-gold {
    background-color: var(--accent-gold);
    color: var(--text-dark);
    box-shadow: var(--shadow-sm);
}

.btn-gold:hover {
    background-color: var(--accent-gold-dark);
    transform: scale(1.02);
    box-shadow: var(--shadow-md);
}

/* Large Button */
.btn-large {
    padding: 16px 48px;
    font-size: 18px;
}

/* ================================
   HEADER
   ================================ */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: var(--bg-white);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    height: 80px;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo-icon {
    font-size: 28px;
}

.logo-text {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-blue);
    letter-spacing: -0.5px;
}

.header-title {
    display: none;
}

.header-title-text {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-medium);
}

@media (min-width: 768px) {
    .header-title {
        display: block;
    }
}

/* ================================
   HERO SECTION
   ================================ */
.hero-section {
    padding: var(--section-padding-y) var(--section-padding-x);
    text-align: center;
    background-color: var(--bg-white);
}

.hero-title {
    font-size: var(--h1-size);
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-dark);
    max-width: 900px;
    margin: 0 auto 20px;
}

.hero-subtitle {
    font-size: clamp(16px, 2.5vw, 20px);
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.5;
}

/* ================================
   STORIES SECTION
   ================================ */
.stories-section {
    padding: 0 var(--section-padding-x) var(--section-padding-y);
    background-color: var(--bg-white);
}

.stories-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--card-gap);
}

/* Story Card */
.story-card {
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius-lg);
    cursor: pointer;
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
    box-shadow: var(--shadow-sm);
}

.story-card:hover {
    transform: scale(1.03);
    box-shadow: var(--shadow-lg);
}

.story-image {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
}

.story-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.story-card:hover .story-image img {
    transform: scale(1.1);
}

.story-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 80%;
    background: var(--overlay-gradient);
    pointer-events: none;
}

.story-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 24px;
    color: var(--bg-white);
    z-index: 2;
}

.story-title {
    font-size: var(--h3-size);
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 8px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.story-description {
    font-size: var(--small-size);
    opacity: 0.9;
    line-height: 1.4;
}

/* Responsive Stories Grid */
@media (min-width: 768px) {
    .stories-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .story-card:first-child {
        grid-column: span 2;
    }

    .story-card:first-child .story-image {
        aspect-ratio: 21 / 9;
    }
}

@media (min-width: 1024px) {
    .stories-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .story-card:first-child {
        grid-column: span 1;
    }

    .story-card:first-child .story-image {
        aspect-ratio: 16 / 10;
    }

    .story-card:hover {
        transform: scale(1.05);
    }
}

/* ================================
   CTA SECTION (Blue Background)
   ================================ */
.cta-section {
    padding: var(--section-padding-y) var(--section-padding-x);
    background-color: var(--primary-blue);
    text-align: center;
}

.cta-eyebrow {
    display: inline-block;
    font-size: var(--small-size);
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 16px;
}

.cta-title {
    font-size: var(--h2-size);
    font-weight: 700;
    line-height: 1.3;
    color: var(--bg-white);
    max-width: 800px;
    margin: 0 auto 20px;
}

.cta-text {
    font-size: clamp(16px, 2vw, 18px);
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    margin: 0 auto 32px;
    line-height: 1.6;
}

/* ================================
   VIDEO SECTION
   ================================ */
.video-section {
    padding: var(--section-padding-y) var(--section-padding-x);
    background-color: var(--bg-light);
}

.video-wrapper {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.video-player {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
    background-color: var(--bg-dark);
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity var(--transition-normal);
}

.video-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.video-overlay-content {
    text-align: center;
    padding: 20px;
    max-width: 500px;
}

.video-emoji {
    font-size: 48px;
    margin-bottom: 16px;
    display: block;
}

.video-overlay-text {
    font-size: clamp(18px, 3vw, 24px);
    font-weight: 600;
    color: var(--bg-white);
    line-height: 1.4;
    margin-bottom: 24px;
}

.video-overlay-text strong {
    color: var(--accent-gold);
}

.video-unmute-btn {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(245, 166, 35, 0.7);
    }
    50% {
        box-shadow: 0 0 0 15px rgba(245, 166, 35, 0);
    }
}

/* ================================
   MAIN CTA SECTION
   ================================ */
.main-cta-section {
    padding: 40px var(--section-padding-x) 60px;
    background-color: var(--bg-light);
}

.main-cta-container {
    text-align: center;
}

.main-cta-section .btn-large {
    width: 100%;
    max-width: 450px;
}

/* ================================
   FOOTER
   ================================ */
.footer {
    background-color: var(--footer-dark);
    color: var(--bg-white);
    padding: 60px var(--section-padding-x);
}

/* Social Icons */
.footer-social {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--bg-white);
    transition: all var(--transition-fast);
}

.social-link:hover {
    background-color: var(--primary-blue);
    transform: scale(1.1);
}

.social-link svg {
    width: 20px;
    height: 20px;
}

/* Disclaimers */
.footer-disclaimers {
    max-width: 900px;
    margin: 0 auto 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.disclaimer-text {
    font-size: var(--tiny-size);
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.7;
    margin-bottom: 16px;
    text-align: center;
}

.disclaimer-text:last-child {
    margin-bottom: 0;
}

.disclaimer-text strong {
    color: rgba(255, 255, 255, 0.8);
}

/* Footer Bottom */
.footer-bottom {
    text-align: center;
}

.copyright {
    font-size: var(--small-size);
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 16px;
}

.footer-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.footer-link {
    font-size: var(--small-size);
    color: rgba(255, 255, 255, 0.7);
    transition: color var(--transition-fast);
    padding: 4px 8px;
}

.footer-link:hover {
    color: var(--bg-white);
}

.footer-separator {
    color: rgba(255, 255, 255, 0.3);
}

/* ================================
   ANIMATIONS
   ================================ */
/* Fade In Up Animation */
[data-animate] {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-animate].animated {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger animation for cards */
.story-card:nth-child(1) { transition-delay: 0s; }
.story-card:nth-child(2) { transition-delay: 0.1s; }
.story-card:nth-child(3) { transition-delay: 0.2s; }

/* ================================
   RESPONSIVE ADJUSTMENTS
   ================================ */
@media (max-width: 480px) {
    .btn-large {
        padding: 14px 32px;
        font-size: 16px;
    }

    .video-emoji {
        font-size: 36px;
    }

    .story-content {
        padding: 16px;
    }

    .footer {
        padding: 40px var(--section-padding-x);
    }
}

@media (min-width: 768px) {
    .footer-nav {
        gap: 16px;
    }

    .footer-link {
        padding: 4px 12px;
    }
}

/* ================================
   PRINT STYLES
   ================================ */
@media print {
    .header,
    .video-section,
    .footer-social {
        display: none;
    }

    .story-card {
        break-inside: avoid;
    }

    body {
        color: #000;
        background: #fff;
    }
}
