/* ==========================================================================
   Home Page Styles - SyncLync
   ========================================================================== */

/* Variables / Theme Colors */
:root {
    --sync-navy: #042E3D;
    --sync-navy-light: #164658;
    --sync-orange: #FF6828;
    --sync-orange-light: #FF9060;
    --sync-orange-hero: #FF9256;
    --sync-purple-light: #B4B9EB;
    --sync-bg-offwhite: #FDF9F6;
    --sync-white: #ffffff;
    --sync-text-dark: #042E3D;
}

/* Global / Typography Updates for Home */
.home-page-wrapper {
    font-family: 'Roboto', sans-serif;
    color: var(--sync-text-dark);
    line-height: 1.5;
    overflow-x: hidden;
}

.home-page-wrapper h1,
.home-page-wrapper h2,
.home-page-wrapper h3 {
    font-weight: 800;
    margin-top: 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Buttons */
.btn-help,
.btn-product,
.btn-orange {
    display: inline-block;
    padding: 10px 24px;
    border-radius: 4px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 14px;
}

.btn-help {
    background-color: var(--sync-white);
    color: var(--sync-navy);
}

.btn-help:hover {
    background-color: #f0f0f0;
    color: var(--sync-navy);
    text-decoration: none;
}

.btn-product {
    background-color: var(--sync-white);
    color: var(--sync-navy);
    margin: 0 10px;
}

.btn-product:hover {
    background-color: #f0f0f0;
    text-decoration: none;
}

.btn-orange {
    background-color: var(--sync-orange);
    color: var(--sync-white);
}

.btn-orange:hover {
    background-color: #e55a1d;
    color: var(--sync-white);
    text-decoration: none;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.home-hero {
    position: relative;
    background-color: var(--sync-navy);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 0;
    min-height: 600px;
    display: flex;
    align-items: flex-end;
    /* Align box to bottom */
}

.home-hero .container {
    width: 100%;
    display: flex;
    justify-content: flex-end;
    /* Align box to right */
    padding-bottom: 60px;
    position: relative;
    z-index: 2;
}

.hero-content-box {
    background-color: var(--sync-white);
    padding: 50px 40px;
    border-radius: 12px;
    max-width: 480px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.hero-content-box h1 {
    font-size: 38px;
    line-height: 1.2;
    color: var(--sync-text-dark);
    margin-bottom: 20px;
}

.hero-content-box p {
    font-size: 16px;
    line-height: 1.6;
    color: var(--sync-text-dark);
    margin-bottom: 0;
}

/* ==========================================================================
   Help Section
   ========================================================================== */
.home-help {
    background-color: var(--sync-navy);
    padding: 60px 0;
    color: var(--sync-white);
}

.home-help h2 {
    color: var(--sync-white);
    font-size: 28px;
    margin-bottom: 30px;
}

.home-help-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.help-card {
    background-color: var(--sync-navy-light);
    border-radius: 12px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.help-card h3 {
    font-size: 20px;
    color: var(--sync-white);
    margin-bottom: 20px;
}

/* ==========================================================================
   Products Section
   ========================================================================== */
.home-products {
    background-color: var(--sync-navy);
    padding: 40px 0 0 0;
    /* Removed bottom padding so squiggle can start immediately after products box */
}

.home-products-box {
    background-color: var(--sync-purple-light);
    border-radius: 24px;
    padding: 0px 40px;
    position: relative;
    overflow: hidden;
}

.products-images {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.product-img {
    flex: 1;
    display: flex;
    justify-content: center;
}

.product-img-left {
    padding-top: 40px;
}

.product-img-right {
    padding-bottom: 40px;
}

.product-img img {
    max-width: 100%;
    height: auto;
    max-height: 250px;
    object-fit: contain;
}

.products-content {
    flex: 1;
    text-align: center;
    z-index: 2;
}

.products-content h2 {
    color: var(--sync-navy);
    font-size: 32px;
    margin-bottom: 20px;
}

.products-buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
}

/* ==========================================================================
   Stats Section
   ========================================================================== */
.home-stats-section {
    background-color: var(--sync-navy);
    background-image: url('../images/squiggle.png');
    background-repeat: no-repeat;
    background-position: center center;
    background-size: auto 118%;
    /* Perfectly spans height from top to bottom */
    padding: 100px 0;
    /* Adjust overall padding to let content breathe over the squiggle */
    color: var(--sync-white);
}

.stats-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
}

.stats-text-block {
    flex: 1 1 400px;
    padding-right: 40px;
}

.stats-text-block h2 {
    color: var(--sync-purple-light);
    font-size: 24px;
    margin-bottom: 15px;
}

.stats-text-block p {
    font-size: 16px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
}

.stats-number-block {
    flex: 1 1 400px;
    text-align: center;
}

.stats-big-number {
    font-size: 120px;
    font-weight: 900;
    line-height: 1;
    display: block;
    color: var(--sync-white);
}

.stats-number-block p {
    font-size: 18px;
    font-weight: 600;
    margin-top: 10px;
}

.stats-citation {
    color: var(--sync-purple-light);
    font-size: 12px;
    text-decoration: underline;
}

/* ==========================================================================
   Features Section
   ========================================================================== */
.home-features {
    background-color: var(--sync-bg-offwhite);
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.features-bg-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('../images/innovationBG.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
}

.features-container {
    position: relative;
    z-index: 1;
}

.features-header-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 50px;
}

.features-header {
    margin-bottom: 0;
}

.features-header h2 {
    font-size: 42px;
    color: var(--sync-navy);
    max-width: 700px;
    line-height: 1.2;
}

.features-controls {
    display: none;
    /* Hidden on desktop */
    gap: 15px;
    margin-bottom: 15px;
}

.features-controls.has-many-cards {
    display: flex;
    /* Show on desktop if >3 cards */
}

.feature-arrow {
    background-color: var(--sync-orange);
    color: var(--sync-white);
    border: none;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.feature-arrow:hover {
    background-color: #e55a1d;
}

.features-slider-container {
    width: 100%;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 20px;
    /* Hide scrollbar */
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.features-slider-container::-webkit-scrollbar {
    display: none;
}

.features-grid.slider-track {
    display: flex;
    gap: 30px;
    width: max-content;
    margin: 0 auto;
}

.feature-card.slide-item {
    flex: 0 0 auto;
    width: 350px;
    scroll-snap-align: start;
    padding: 40px 30px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.feature-card.orange-bg {
    background-color: var(--sync-orange);
    color: var(--sync-white);
}

.feature-card.orange-bg h3,
.feature-card.orange-bg p,
.feature-card.orange-bg .feature-link {
    color: var(--sync-white);
}

.feature-card.white-bg {
    background-color: var(--sync-white);
    color: var(--sync-navy);
}

.feature-card.white-bg h3,
.feature-card.white-bg p,
.feature-card.white-bg .feature-link {
    color: var(--sync-navy);
}

.feature-icon {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-shrink: 0;
}

.feature-icon img {
    height: 48px;
    width: auto;
    max-width: 100%;
}

.feature-icon.svg-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background-color: var(--svg-bg);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background-color;
}

.feature-icon.svg-icon .svg-mask {
    width: 32px;
    height: 32px;
    background-color: var(--svg-fg);
    -webkit-mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-size: contain;
    mask-repeat: no-repeat;
    mask-position: center;
    transition: background-color 0.3s ease;
}

/* Card State Inheritance for Container SVGs */
.feature-card.white-bg .feature-icon.svg-icon {
    --svg-bg: var(--sync-orange);
    --svg-fg: var(--sync-white);
}

.feature-card.orange-bg .feature-icon.svg-icon {
    --svg-bg: var(--sync-white);
    --svg-fg: var(--sync-orange);
}

.feature-card-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    width: 100%;
    color: var(--sync-navy);
}

.feature-card h3 {
    font-size: 20px;
    margin: 0;
    line-height: 1.2;
}

.feature-card p {
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

.feature-link {
    font-weight: 700;
    text-decoration: none;
    font-size: 14px;
    color: var(--sync-navy);
    display: inline-flex;
    align-items: center;
}

/* ==========================================================================
   CTA Section
   ========================================================================== */
.home-cta-section {
    background-color: var(--sync-navy);
    padding: 80px 0;
}

.home-cta-section .cta-content-box {
    background-color: var(--sync-white);
    border-radius: 16px;
    display: flex;
    overflow: hidden;
    min-height: 350px;
}

.home-cta-section .cta-text {
    flex: 1 1 50%;
    padding: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}

.home-cta-section .cta-text h2 {
    font-size: 32px;
    color: var(--sync-navy);
    margin-bottom: 20px;
}

.home-cta-section .cta-text p {
    font-size: 16px;
    line-height: 1.6;
    color: var(--sync-navy);
    margin-bottom: 30px;
}

.home-cta-section .cta-image {
    flex: 1 1 50%;
}

.home-cta-section .cta-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ==========================================================================
   Responsive Styles
   ========================================================================== */
@media screen and (max-width: 991px) {
    .products-images {
        flex-direction: column;
        gap: 30px;
    }

    .home-cta-section .cta-content-box {
        flex-direction: column;
    }

    .home-cta-section .cta-image {
        min-height: 300px;
    }
}

@media screen and (max-width: 768px) {
    .hero-content-box {
        padding: 30px 20px;
    }

    .hero-content-box h1 {
        font-size: 32px;
    }

    .home-help-grid {
        grid-template-columns: 1fr;
    }

    .features-header-wrapper {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .features-controls {
        display: flex;
    }

    .stats-container {
        flex-direction: column;
        text-align: center;
    }

    .stats-text-block {
        padding-right: 0;
        margin-bottom: 40px;
    }

    .stats-big-number {
        font-size: 80px;
    }

    .home-cta-section .cta-text {
        padding: 40px 20px;
    }
}