/* ========================================
   FABSOFT HERO SECTIONS
   fabsoft-hero.css
   
   Hero section styles for all pages
   Requires: fabsoft-variables.css, fabsoft-buttons.css
   Updated: January 27, 2026 - Added dark hero variant to match homepage
   ======================================== */

/* ----------------------------------------
   BASE HERO SECTION (Light - original)
   ---------------------------------------- */
.hero-section,
.product-hero {
    background: var(--bg-gradient);
    padding: 120px 16px 60px;
    position: relative;
    overflow: visible;
}

/* ----------------------------------------
   DARK HERO SECTION (Matches Homepage)
   ---------------------------------------- */
.product-hero-dark {
    background: linear-gradient(135deg, #4a2c4a 0%, #3a1c3a 50%, #2d1a2d 100%);
    padding: 120px 20px 80px 20px;
    text-align: center;
    min-height: 500px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
}

/* Background image overlay for dark hero */
.product-hero-dark::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('/media/sbrfgzir/officewindow.png') center center / cover no-repeat;
    opacity: 0.15;
    z-index: 0;
}

.product-hero-dark::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(74, 44, 74, 0.9) 0%, rgba(58, 28, 58, 0.95) 100%);
    z-index: 1;
}

.product-hero-dark > * {
    position: relative;
    z-index: 2;
}

/* Dark hero title - white text */
.product-hero-dark .product-hero-title {
    font-size: clamp(32px, 5vw, 56px);
    font-weight: var(--font-weight-bold, 700);
    line-height: 1.1;
    letter-spacing: -0.015em;
    color: #ffffff;
    margin: 0 auto 24px;
    max-width: 900px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* Dark hero subtitle - white text with opacity */
.product-hero-dark .product-hero-subtitle {
    font-size: clamp(16px, 2vw, 20px);
    line-height: 1.5;
    letter-spacing: 0.007em;
    color: rgba(255, 255, 255, 0.9);
    margin: 0 auto 40px;
    max-width: 700px;
}

/* Dark hero CTA buttons */
.product-hero-dark .product-hero-ctas {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 32px;
}

.product-hero-dark .product-hero-cta-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 32px;
    background-color: #e74c3c;
    color: #ffffff !important;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.3);
}

.product-hero-dark .product-hero-cta-primary:hover {
    background-color: #c0392b;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(231, 76, 60, 0.4);
}

.product-hero-dark .product-hero-cta-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 32px;
    background-color: transparent;
    color: #ffffff !important;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    border: 2px solid rgba(255, 255, 255, 0.6);
    border-radius: 6px;
    transition: all 0.2s ease;
}

.product-hero-dark .product-hero-cta-secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: #ffffff;
}

/* Dark hero trust line */
.product-hero-dark .product-hero-trust {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 16px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
}

.product-hero-dark .product-hero-trust-separator {
    color: rgba(255, 255, 255, 0.3);
}

/* ----------------------------------------
   LIGHT HERO (Original styles)
   ---------------------------------------- */
.product-hero {
    padding: 194px 20px 80px 20px;
    text-align: center;
    min-height: 500px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* ----------------------------------------
   HERO CONTENT CONTAINER
   ---------------------------------------- */
.hero-content {
    max-width: var(--container-max);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 40px;
    align-items: center;
}

.hero-text {
    text-align: center;
    width: 100%;
}

/* ----------------------------------------
   HERO TITLES
   ---------------------------------------- */
.hero-title,
.product-hero-title {
    font-size: var(--font-size-3xl);
    font-weight: var(--font-weight-bold);
    line-height: var(--line-height-tight);
    letter-spacing: -0.02em;
    color: var(--text-primary);
    margin-bottom: 16px;
    animation: fadeInUp 0.8s ease-out;
}

.product-hero-title {
    font-size: var(--font-size-8xl);
    line-height: 1.05;
    letter-spacing: -0.015em;
    margin: 0 auto 24px;
    max-width: 980px;
}

/* ----------------------------------------
   HERO SUBTITLES
   ---------------------------------------- */
.hero-subtitle,
.product-hero-subtitle {
    font-size: var(--font-size-md);
    font-weight: var(--font-weight-normal);
    line-height: var(--line-height-normal);
    color: var(--text-primary);
    margin-bottom: 28px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeInUp 0.8s ease-out 0.1s both;
}

.product-hero-subtitle {
    font-size: var(--font-size-2xl);
    line-height: 1.14;
    letter-spacing: 0.007em;
    margin: 0 auto 40px;
    max-width: 800px;
}

/* ----------------------------------------
   HERO CTA GROUPS
   ---------------------------------------- */
.hero-cta-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 320px;
    margin: 0 auto 24px;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.product-hero-ctas {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 32px;
}

.product-hero-cta-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 32px;
    background-color: var(--primary-blue, #0071e3);
    color: #ffffff !important;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.product-hero-cta-primary:hover {
    background-color: var(--primary-blue-hover, #0056b3);
    transform: translateY(-2px);
}

.product-hero-cta-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 32px;
    background-color: transparent;
    color: var(--text-primary, #1D1D1F) !important;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    border: 2px solid var(--border-color, #E5E5E7);
    border-radius: 6px;
    transition: all 0.2s ease;
}

.product-hero-cta-secondary:hover {
    border-color: var(--primary-blue, #0071e3);
    color: var(--primary-blue, #0071e3) !important;
}

/* ----------------------------------------
   HERO TRUST LINE
   ---------------------------------------- */
.hero-trust-line,
.product-hero-trust {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 16px;
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    animation: fadeInUp 0.8s ease-out 0.3s both;
}

.product-hero-trust {
    font-size: var(--font-size-sm);
}

.product-hero-trust-separator {
    color: var(--border-color);
}

.hero-trust-line .trust-check {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

/* ----------------------------------------
   ANIMATIONS
   ---------------------------------------- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ----------------------------------------
   RESPONSIVE - TABLET (768px+)
   ---------------------------------------- */
@media (min-width: 768px) {
    .hero-section {
        padding: 120px 40px 80px;
    }

    .hero-content {
        flex-direction: row;
        align-items: center;
        gap: 60px;
    }

    .hero-text {
        text-align: left;
        flex: 1;
        min-width: 0;
        max-width: 50%;
    }

    .hero-title {
        font-size: var(--font-size-4xl);
    }

    .hero-subtitle {
        font-size: 18px;
        margin-left: 0;
        margin-right: 0;
    }

    .hero-cta-group {
        flex-direction: row;
        max-width: none;
        margin: 0 0 24px 0;
    }

    .hero-trust-line {
        justify-content: flex-start;
    }
}

/* ----------------------------------------
   RESPONSIVE - DESKTOP (1024px+)
   ---------------------------------------- */
@media (min-width: 1024px) {
    .hero-section {
        padding: 120px 60px 100px;
    }

    .hero-title {
        font-size: var(--font-size-6xl);
    }

    .hero-subtitle {
        font-size: 20px;
    }
}

/* ----------------------------------------
   RESPONSIVE - PRODUCT HERO (Tablet 1068px)
   ---------------------------------------- */
@media (max-width: 1068px) {
    .product-hero-title {
        font-size: var(--font-size-7xl);
    }

    .product-hero-subtitle {
        font-size: var(--font-size-xl);
    }
    
    .product-hero-dark .product-hero-title {
        font-size: clamp(28px, 4vw, 48px);
    }
}

/* ----------------------------------------
   RESPONSIVE - PRODUCT HERO (Mobile 734px)
   ---------------------------------------- */
@media (max-width: 734px) {
    .product-hero,
    .product-hero-dark {
        padding: 100px 16px 60px;
        min-height: auto;
    }

    .product-hero-title {
        font-size: var(--font-size-4xl);
    }
    
    .product-hero-dark .product-hero-title {
        font-size: clamp(24px, 6vw, 32px);
    }

    .product-hero-subtitle {
        font-size: 19px;
    }

    .product-hero-ctas,
    .product-hero-dark .product-hero-ctas {
        flex-direction: column;
        gap: 16px;
        width: 100%;
    }

    .product-hero-cta-primary,
    .product-hero-cta-secondary,
    .product-hero-dark .product-hero-cta-primary,
    .product-hero-dark .product-hero-cta-secondary {
        width: 100%;
        max-width: 300px;
    }
    
    .product-hero-trust,
    .product-hero-dark .product-hero-trust {
        flex-direction: column;
        gap: 8px;
    }
    
    .product-hero-trust-separator,
    .product-hero-dark .product-hero-trust-separator {
        display: none;
    }
}