/* ================================
   AB Performance - Home Hero CSS
   Left-Aligned with Vertical Accent
   ================================
   
   Colour Palette:
   - Primary Red: #e1303a
   - Accent Gold: #E9A329
   - Dark: #1a1a1a
   - White: #ffffff
   
   ================================ */

/* --------------------------------
   Hero Section Container
   -------------------------------- */
.ab-performance-hero {
    position: relative;
    min-height: 580px;
    display: flex;
    align-items: center;
    background-image: url('../images/home-hero.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Dark overlay */
.ab-performance-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        90deg,
        rgba(26, 26, 26, 0.92) 0%,
        rgba(26, 26, 26, 0.75) 50%,
        rgba(26, 26, 26, 0.5) 100%
    );
    z-index: 1;
}

/* --------------------------------
   Hero Container
   -------------------------------- */
.ab-performance-hero-container {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 40px;
}

/* --------------------------------
   Hero Content
   -------------------------------- */
.ab-performance-hero-content {
    display: flex;
    align-items: stretch;
    gap: 30px;
    max-width: 700px;
}

/* --------------------------------
   Vertical Accent Bar
   -------------------------------- */
.ab-performance-hero-accent {
    width: 4px;
    background: linear-gradient(180deg, #e1303a 0%, #E9A329 100%);
    border-radius: 2px;
    flex-shrink: 0;
    opacity: 0;
    transform: scaleY(0);
    transform-origin: top;
    animation: abAccentGrow 0.6s ease-out 0.1s forwards;
}

/* --------------------------------
   Text Block
   -------------------------------- */
.ab-performance-hero-text-block {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* --------------------------------
   Main Headline
   -------------------------------- */
.ab-performance-hero-headline {
    font-size: 46px;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.2;
    margin-bottom: 20px;
    letter-spacing: -0.5px;
    opacity: 0;
    transform: translateX(-20px);
    animation: abHeroSlideIn 0.6s ease-out 0.2s forwards;
}

.ab-performance-hero-headline span {
    color: #E9A329;
}

/* --------------------------------
   Supporting Text
   -------------------------------- */
.ab-performance-hero-text {
    font-size: 18px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.7;
    margin-bottom: 30px;
    opacity: 0;
    transform: translateX(-20px);
    animation: abHeroSlideIn 0.6s ease-out 0.35s forwards;
}

/* --------------------------------
   CTA Button Group
   -------------------------------- */
.ab-performance-hero-cta-group {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    opacity: 0;
    transform: translateX(-20px);
    animation: abHeroSlideIn 0.6s ease-out 0.5s forwards;
}

/* Primary CTA */
.ab-performance-hero-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-color: #e1303a;
    color: #ffffff;
    padding: 15px 30px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(225, 48, 58, 0.35);
}

.ab-performance-hero-btn-primary:hover {
    background-color: #c72730;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(225, 48, 58, 0.45);
}

.ab-performance-hero-btn-primary i {
    font-size: 12px;
    transition: transform 0.3s ease;
}

.ab-performance-hero-btn-primary:hover i {
    transform: translateX(3px);
}

/* Secondary CTA */
.ab-performance-hero-btn-secondary {
    display: inline-flex;
    align-items: center;
    background-color: transparent;
    color: #ffffff;
    padding: 15px 30px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 5px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    transition: all 0.3s ease;
}

.ab-performance-hero-btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.7);
    transform: translateY(-2px);
}

/* ================================
   Keyframe Animations
   ================================ */
@keyframes abAccentGrow {
    to {
        opacity: 1;
        transform: scaleY(1);
    }
}

@keyframes abHeroSlideIn {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ================================
   Responsive Design
   ================================ */

/* Tablet */
@media (max-width: 968px) {
    .ab-performance-hero {
        min-height: 520px;
    }
    
    .ab-performance-hero-container {
        padding: 70px 30px;
    }
    
    .ab-performance-hero-content {
        gap: 24px;
    }
    
    .ab-performance-hero-headline {
        font-size: 38px;
        margin-bottom: 18px;
    }
    
    .ab-performance-hero-text {
        font-size: 17px;
        margin-bottom: 26px;
    }
    
    .ab-performance-hero-btn-primary,
    .ab-performance-hero-btn-secondary {
        padding: 14px 26px;
        font-size: 14px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .ab-performance-hero {
        min-height: 480px;
    }
    
    .ab-performance-hero::before {
        background: linear-gradient(
            180deg,
            rgba(26, 26, 26, 0.85) 0%,
            rgba(26, 26, 26, 0.7) 100%
        );
    }
    
    .ab-performance-hero-container {
        padding: 60px 24px;
    }
    
    .ab-performance-hero-content {
        gap: 20px;
    }
    
    .ab-performance-hero-accent {
        width: 3px;
    }
    
    .ab-performance-hero-headline {
        font-size: 30px;
        margin-bottom: 16px;
    }
    
    .ab-performance-hero-text {
        font-size: 16px;
        line-height: 1.6;
        margin-bottom: 24px;
    }
    
    .ab-performance-hero-cta-group {
        flex-direction: column;
        gap: 12px;
    }
    
    .ab-performance-hero-btn-primary,
    .ab-performance-hero-btn-secondary {
        width: 100%;
        justify-content: center;
        padding: 14px 24px;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .ab-performance-hero {
        min-height: 450px;
    }
    
    .ab-performance-hero-container {
        padding: 50px 20px;
    }
    
    .ab-performance-hero-content {
        gap: 16px;
    }
    
    .ab-performance-hero-headline {
        font-size: 26px;
    }
    
    .ab-performance-hero-text {
        font-size: 15px;
    }
    
    .ab-performance-hero-btn-primary,
    .ab-performance-hero-btn-secondary {
        padding: 13px 20px;
        font-size: 14px;
    }
}