﻿.cb-hero-section {
    min-height: 100vh;
    display: none; /* Hidden by default to prevent flash of content */
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    background: #FFF3EC;
}

@media (max-width: 768px) {
    .cb-hero-section {
        min-height: calc(100vh - var(--header-height));
    }
}

/* ============================================
   APP PROMOTION HERO SECTION
   ============================================ */

/* CSS Custom Properties */
:root {
    /* Spacing */
    --hero-container-max-width: 1190px;
    --hero-content-gap: var(--base-size-x8); /* 64px */
    --hero-section-padding: var(--base-size-x4); /* 48px */

    /* Feature grid */
    --hero-feature-gap: var(--base-size-x2); /* 16px */
    --hero-feature-border-radius: var(--base-size-x2); /* 16px */

    /* App icon - Enlarged by ~12.5% */
    --hero-app-icon-size: 180px;
    --hero-app-icon-size-mobile: 120px;

    /* Store badges - Enlarged by ~14% */
    --hero-store-badge-height: 64px;
    --hero-store-badge-height-mobile: 48px;

    /* Phone mockup - Enlarged by ~40% */
    --hero-phone-max-width: 650px;
    --hero-phone-max-width-tablet: 500px;
    --hero-phone-max-width-mobile: 450px;

    /* Z-index */
    --z-hero-content: 10;
}

/* Content Wrapper (Z-Index Layer) */
.cb-hero-content {
    position: relative;
    z-index: var(--z-hero-content);
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--base-size-x3) var(--base-size-x2);
}

/* Container Grid Layout */
.cb-hero-container {
    display: grid;
    grid-template-columns: 45fr 55fr;
    gap: var(--hero-content-gap);
    align-items: center;
    max-width: var(--hero-container-max-width);
    margin: 0 auto;
    padding: var(--hero-section-padding);
    width: 100%;
}

/* Left Column */
.cb-hero-content-left {
    display: flex;
    flex-direction: column;
    gap: var(--base-size-x4);
}

/* Right Column */
.cb-hero-content-right {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Headline Typography */
.cb-hero-headline {
    font-size: clamp(3rem, 5vw + 1rem, 7rem);
    font-weight: var(--base-heaviest-font-weight);
    font-family: var(--base-font-family);
    line-height: 1.1;
    margin: 0 0 var(--base-size-x3) 0;
    letter-spacing: -0.02em;
    text-align: left;
}

/* Feature Grid */
.cb-hero-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--hero-feature-gap);
    width: 100%;
    /*max-width: 520px;*/
}

/* Feature Item Boxes (Glass Effect) */
.cb-hero-feature-item {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 2px solid rgb(0 0 0 / 30%);
    border-radius: var(--hero-feature-border-radius);
    padding: var(--base-size-x2) var(--base-size-x2);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    cursor: default;
}

.cb-hero-feature-item:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Fallback for browsers without backdrop-filter */
@supports not (backdrop-filter: blur(10px)) {
    .cb-hero-feature-item {
        background: rgba(71, 76, 191, 0.8);
    }
}

/* Feature Text */
.cb-hero-feature-text {
    font-size: clamp(1.125rem, 1.75vw + 0.5rem, 2.25rem);
    font-weight: var(--base-medium-font-weight);
    text-align: center;
    line-height: 1.3;
}

/* App Icon */
.cb-hero-app-icon-wrapper {
    display: flex;
    justify-content: center;
    margin: var(--base-size-x2) 0;
}

.cb-hero-app-icon {
    width: var(--hero-app-icon-size);
    height: var(--hero-app-icon-size);
    border-radius: 20%;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.cb-hero-app-icon:hover {
    transform: scale(1.05);
}

.cb-hero-download{
    display: flex;
    flex-direction: row;
    gap: 3rem;
}

/* Download Buttons */
.cb-hero-download-buttons {
    display: flex;
    flex-direction: column;
    gap: var(--base-size-x2);
    flex-wrap: wrap;
    justify-content: center;
}

.cb-hero-download-link {
    display: inline-block;
    transition: transform 0.3s ease;
    outline-offset: 4px;
    justify-items: stretch;
    width: -webkit-fill-available;
}

.cb-hero-download-link:hover {
    transform: scale(1.05);
}

.cb-hero-download-link:focus-visible {
    outline: 3px solid var(--base-color-white);
    outline-offset: 6px;
    border-radius: 8px;
}

/* Remove default focus for mouse users */
.cb-hero-download-link:focus:not(:focus-visible) {
    outline: none;
}

.cb-hero-store-badge {
    height: var(--hero-store-badge-height);
    width: auto;
    display: block;
}

/* Phone Mockup */
.cb-hero-phone-wrapper {
    position: relative;
    max-width: var(--hero-phone-max-width);
    width: 100%;
}

.cb-hero-phone-mockup {
    width: 100%;
    height: auto;
    display: block;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.3));
    transition: transform 0.5s ease;
}

.cb-hero-phone-mockup:hover {
    transform: translateY(-10px);
}

/* ============================================
   RESPONSIVE BREAKPOINTS
   ============================================ */

/* Large Desktop (≥1200px) */
@media (min-width: 1200px) {
    .cb-hero-container {
        max-width: 1500px;
        gap: var(--base-size-x10);
    }
}

/* Tablet (768px - 1023px) */
@media (max-width: 1023px) and (min-width: 768px) {
    .cb-hero-container {
        grid-template-columns: 1fr;
        gap: var(--base-size-x6);
        padding: var(--base-size-x5);
    }

    .cb-hero-content-left {
        text-align: center;
        align-items: center;
    }

    .cb-hero-content-right {
        order: -1;
    }

    .cb-hero-phone-wrapper {
        max-width: var(--hero-phone-max-width-tablet);
    }
}

/* Mobile (≤767px) */
@media (max-width: 767px) {
    .cb-hero-content {
        min-height: calc(100vh - var(--header-height));
        padding: var(--base-size-x3) var(--base-size-x1);
    }

    .cb-hero-container {
        display: flex;
        flex-direction: column;
        gap: var(--base-size-x2);
        padding: 0 var(--base-size-x1);
    }

    .cb-hero-content-left {
        text-align: center;
        align-items: center;
        gap: var(--base-size-x2);
    }

    .cb-hero-content-right {
        order: 1;
    }

    .cb-hero-features {
        max-width: 100%;
    }

    .cb-hero-app-icon {
        width: var(--hero-app-icon-size-mobile);
        height: var(--hero-app-icon-size-mobile);
    }

    .cb-hero-download {
        gap: 2rem;
    }

    .cb-hero-download-buttons {
        flex-direction: column;
        align-items: start;
        gap: var(--base-size-x2);
    }

    .cb-hero-store-badge {
        height: var(--hero-store-badge-height-mobile);
    }

    .cb-hero-phone-wrapper {
        max-width: var(--hero-phone-max-width-mobile);
    }
}

/* Small Mobile (≤479px) */
@media (max-width: 479px) {
    .cb-hero-headline {
        font-size: 3.5rem;
        margin: 0 0 var(--base-size-x1) 0;
    }

    .cb-hero-feature-item {
        padding: var(--base-size-x2) var(--base-size-x1);
    }

    .cb-hero-feature-text {
        font-size: 2rem;
    }

    .cb-hero-features {
        grid-template-columns: 1fr 1fr;
        max-width: 100%;
    }
}

/* ============================================
   ACCESSIBILITY FEATURES
   ============================================ */

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .cb-hero-feature-item {
        background: rgba(255, 255, 255, 0.25);
        border-color: rgba(255, 255, 255, 0.7);
        border-width: 3px;
    }

    .cb-hero-headline,
    .cb-hero-feature-text {
        text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
    }
}

/* Reduced Motion Preference */
@media (prefers-reduced-motion: reduce) {
    .cb-hero-feature-item,
    .cb-hero-download-link,
    .cb-hero-app-icon,
    .cb-hero-phone-mockup {
        transition: none;
        animation: none;
    }

    .cb-hero-feature-item:hover,
    .cb-hero-download-link:hover,
    .cb-hero-app-icon:hover,
    .cb-hero-phone-mockup:hover {
        transform: none;
    }
}