/* ==========================================================================
   Components CSS - Shared UI Components for Time Machine AI Website
   ========================================================================== */

/* ==========================================================================
   1. HERO SECTIONS
   Common hero patterns used across all pages.
   Pages override backgrounds/colors in their own <style> blocks.
   ========================================================================== */

.hero {
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

/* Centered hero (about-us, partners, contact, careers) */
.hero--centered {
    text-align: center;
    color: white;
}

.hero--centered h1 {
    font-size: 56px;
    font-weight: 900;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero--centered p {
    font-size: 24px;
    max-width: 800px;
    margin: 0 auto 40px;
    opacity: 0.9;
}

/* Two-column hero (enterprise, ai-roleplay) */
.hero--split .hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

/* Hero text column */
.hero-text h1 {
    font-size: 48px;
    font-weight: 900;
    margin-bottom: 20px;
    line-height: 1.2;
    color: var(--dark-navy);
}

.hero-text .subtitle {
    font-size: 24px;
    margin-bottom: 30px;
}

.hero-text p {
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 40px;
}

/* Hero h1 - standalone (non-split heroes) */
.hero h1 {
    font-size: 56px;
    font-weight: 900;
    margin-bottom: 20px;
    line-height: 1.1;
}

.hero .subtitle {
    font-size: 24px;
    margin-bottom: 30px;
    opacity: 0.95;
}

.hero p {
    font-size: 20px;
    line-height: 1.8;
    margin-bottom: 40px;
    max-width: 600px;
}

/* Hero stats row */
.hero-stats {
    display: flex;
    gap: 40px;
    margin-top: 50px;
}

.hero-stat {
    text-align: center;
}

.hero-stat-number {
    font-size: 36px;
    font-weight: 800;
    color: var(--primary-blue);
}

.hero-stat-label {
    font-size: 14px;
    color: var(--text-gray);
}

/* Hero badges row */
.hero-badges {
    display: flex;
    gap: 30px;
    margin-top: 50px;
    flex-wrap: wrap;
}

.badge {
    background: rgba(255, 255, 255, 0.2);
    padding: 15px 30px;
    border-radius: 30px;
    backdrop-filter: blur(10px);
    font-weight: 600;
}

/* Hero visual (image/animation column in split heroes) */
.hero-visual {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Hero decorative overlay */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    pointer-events: none;
}


/* ==========================================================================
   2. SECTION HEADERS
   Centered section titles used on nearly every page.
   ========================================================================== */

.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 60px;
}

.section-header h2 {
    font-size: 42px;
    font-weight: 900;
    margin-bottom: 20px;
    color: var(--dark-navy);
}

.section-header p {
    font-size: 18px;
    color: var(--text-gray);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Light variant for dark-background sections */
.section-header--light h2 {
    color: white;
}

.section-header--light p {
    color: rgba(255, 255, 255, 0.8);
}


/* ==========================================================================
   3. CARD COMPONENTS
   Base card + common variants used across pages.
   ========================================================================== */

/* Base card */
.card {
    background: white;
    border-radius: 20px;
    padding: 40px;
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Feature card (enterprise features, partner types, contact options) */
.feature-card {
    background: var(--bg-light);
    padding: 40px;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.feature-card h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: var(--dark-navy);
}

.feature-card p {
    color: var(--text-gray);
    line-height: 1.8;
}

/* Feature icon container (used inside feature cards) */
.feature-icon {
    width: 64px;
    height: 64px;
    background: var(--primary-blue);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.feature-icon svg {
    width: 32px;
    height: 32px;
    fill: white;
}

/* Bordered card variant (partner type-cards, contact option-cards) */
.card--bordered {
    background: white;
    border: 1px solid var(--border-light);
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    transition: all 0.3s ease;
}

.card--bordered:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
    border-color: var(--primary-blue);
}

/* Stat card */
.stat-card {
    text-align: center;
}

.stat-number {
    font-size: 48px;
    font-weight: 800;
    color: var(--accent-orange);
    margin-bottom: 10px;
}

.stat-label {
    font-size: 16px;
    color: var(--text-gray);
}

/* Step card (how-it-works steps) */
.step-card {
    background: white;
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    position: relative;
    transition: all 0.3s ease;
}

.step-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.step-number {
    width: 60px;
    height: 60px;
    background: var(--accent-orange);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 800;
    margin: 0 auto 30px;
}

.step-card h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: var(--dark-navy);
}

/* Value/culture card (about-us values, careers culture) */
.value-card {
    background: white;
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    transition: all 0.3s ease;
}

.value-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.value-card h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: var(--dark-navy);
}

.value-card p {
    color: var(--text-gray);
    line-height: 1.8;
}

/* Round icon container (values, culture, partner types) */
.icon-circle {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-blue), #0080d0);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 30px;
}

.icon-circle svg {
    width: 40px;
    height: 40px;
    fill: white;
}

.icon-circle--lg {
    width: 100px;
    height: 100px;
}

.icon-circle--lg svg {
    width: 50px;
    height: 50px;
}


/* ==========================================================================
   4. CTA SECTIONS
   Bottom-of-page call-to-action blocks.
   ========================================================================== */

.cta {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--primary-blue), var(--dark-navy));
    color: white;
    text-align: center;
}

.cta-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

.cta h2 {
    font-size: 48px;
    margin-bottom: 30px;
}

.cta p {
    font-size: 24px;
    margin-bottom: 40px;
    opacity: 0.9;
}

/* Button group (used in heroes and CTAs) */
.btn-group {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* CTA button overrides - common pattern */
.cta .btn-primary {
    background: white;
    color: var(--dark-navy);
}

.cta .btn-secondary {
    border-color: white;
    color: white;
}


/* ==========================================================================
   5. FEATURE CONTENT SECTIONS
   Two-column feature blocks with content + visual.
   ========================================================================== */

.feature-content h3 {
    font-size: 32px;
    margin-bottom: 20px;
    color: var(--dark-navy);
}

.feature-content p {
    color: var(--text-gray);
    line-height: 1.8;
    margin-bottom: 20px;
}

/* Feature list (checkmark lists inside feature content) */
.feature-list {
    list-style: none;
    padding: 0;
}

.feature-list li {
    padding: 15px 0;
    display: flex;
    align-items: start;
    gap: 15px;
}

.feature-check {
    color: var(--success-green);
    font-size: 20px;
    flex-shrink: 0;
}

/* Feature visual container */
.feature-visual {
    background: var(--bg-light);
    padding: 40px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
}

.feature-visual svg {
    width: 60%;
    height: 60%;
    fill: var(--primary-blue);
    opacity: 0.1;
}


/* ==========================================================================
   6. STATS SECTIONS
   Stat grids and stat bars used across pages.
   ========================================================================== */

.stats-section {
    padding: 80px 0;
    background: var(--bg-light);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Dark stat bar variant */
.stats-bar {
    background: var(--dark-navy);
    padding: 40px 0;
    color: white;
}

.stats-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    text-align: center;
}

.stat-item {
    text-align: center;
}

.stat-item h3 {
    font-size: 36px;
    color: var(--accent-orange);
    margin-bottom: 10px;
}

.stat-item p {
    font-size: 16px;
    opacity: 0.9;
}


/* ==========================================================================
   7. TESTIMONIAL / QUOTE SECTIONS
   ========================================================================== */

.testimonial {
    padding: 100px 0;
    background: var(--bg-light);
}

.testimonial-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
}

.quote {
    font-size: 28px;
    line-height: 1.6;
    color: var(--dark-navy);
    margin-bottom: 40px;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.author-avatar {
    width: 60px;
    height: 60px;
    background: var(--primary-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 24px;
}

.author-info h4 {
    font-size: 18px;
    margin-bottom: 5px;
}

.author-info p {
    color: var(--text-gray);
}

/* Quote block (used in blog/case study pages) */
.quote-block {
    background: var(--bg-light);
    padding: 40px;
    border-left: 4px solid var(--primary-blue);
    margin: 40px 0;
    font-size: 24px;
    font-style: italic;
    color: var(--primary-blue);
    position: relative;
}

.quote-author {
    font-size: 18px;
    font-style: normal;
    color: var(--text-gray);
    margin-top: 20px;
}


/* ==========================================================================
   8. MOBILE RESPONSIVE OVERRIDES
   ========================================================================== */

@media (max-width: 768px) {
    /* Hero */
    .hero {
        padding: 60px 0;
    }

    .hero--centered h1,
    .hero h1 {
        font-size: 32px;
    }

    .hero--centered p,
    .hero p {
        font-size: 18px;
    }

    .hero--split .hero-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .hero-text h1 {
        font-size: 30px;
    }

    .hero-text .subtitle {
        font-size: 18px;
    }

    .hero-text p {
        font-size: 16px;
    }

    .hero-stats {
        flex-wrap: wrap;
        gap: 20px;
    }

    .hero-stat-number {
        font-size: 28px;
    }

    .hero-badges {
        gap: 15px;
    }

    .badge {
        padding: 10px 20px;
        font-size: 14px;
    }

    .hero-visual {
        height: 300px;
    }

    /* Section headers */
    .section-header {
        margin-bottom: 40px;
    }

    .section-header h2 {
        font-size: 28px;
    }

    /* Cards */
    .feature-card {
        padding: 24px;
    }

    .feature-card h3 {
        font-size: 20px;
    }

    .step-card {
        padding: 30px;
    }

    .step-card h3 {
        font-size: 20px;
    }

    .value-card {
        padding: 25px;
    }

    .card--bordered {
        padding: 30px 25px;
    }

    /* Feature content sections */
    .feature-content h3 {
        font-size: 24px;
    }

    .feature-visual {
        min-height: 250px;
        padding: 20px;
    }

    /* Stats */
    .stats-section {
        padding: 60px 0;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .stat-number {
        font-size: 36px;
    }

    .stats-bar {
        padding: 30px 0;
    }

    .stats-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .stat-item h3 {
        font-size: 28px;
    }

    /* Testimonials */
    .testimonial {
        padding: 60px 0;
    }

    .quote {
        font-size: 20px;
    }

    .quote-block {
        padding: 20px;
        font-size: 20px;
    }

    /* CTA */
    .cta {
        padding: 60px 0;
    }

    .cta h2 {
        font-size: 28px;
    }

    .cta p {
        font-size: 18px;
    }

    .btn-group {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
}

@media (max-width: 480px) {
    /* Hero */
    .hero--centered h1,
    .hero h1 {
        font-size: 26px;
    }

    .hero-text h1 {
        font-size: 26px;
    }

    .hero-visual {
        height: 220px;
    }

    /* Section headers */
    .section-header h2 {
        font-size: 24px;
    }

    /* Stats */
    .stats-grid,
    .stats-container {
        grid-template-columns: 1fr;
    }

    .stat-number {
        font-size: 32px;
    }

    .stat-item h3 {
        font-size: 24px;
    }

    /* Feature content */
    .feature-content h3 {
        font-size: 22px;
    }

    /* Testimonials */
    .quote {
        font-size: 18px;
    }

    /* CTA */
    .cta h2 {
        font-size: 24px;
    }

    .cta p {
        font-size: 16px;
    }
}
