/**
 * Component Styles
 *
 * Reusable component styling for Rapid Teck theme
 * Components include: Page Hero, Stats Section, CTA Section, etc.
 *
 * @package RapidTeck
 */

/* ============================================
   PAGE HERO COMPONENT
   ============================================ */

.page-hero {
    background: linear-gradient(135deg, #484169 0%, #342e4d 100%);
    padding: 10rem 0 4rem;
    color: #ffffff;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Background image variant */
.page-hero.has-background-image {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.page-hero .hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.page-hero .container {
    position: relative;
    z-index: 2;
}

.page-hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.page-hero h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #ffffff;
}

.page-hero p {
    font-size: 1.25rem;
    opacity: 0.95;
    margin-bottom: 0;
    color: #ffffff;
}

/* Service hero variant (with icon) */
.service-hero .hero-content-service {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.service-hero .hero-icon {
    font-size: 5rem;
    line-height: 1;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.service-hero h1 {
    margin-bottom: 0.5rem;
}

/* Responsive */
@media (max-width: 992px) {
    .page-hero {
        padding: 8rem 0 3rem;
        margin-top: -90px;
    }

    .page-hero h1 {
        font-size: 2.5rem;
    }

    .page-hero p {
        font-size: 1.125rem;
    }

    .service-hero .hero-icon {
        font-size: 4rem;
    }
}

@media (max-width: 768px) {
    .page-hero {
        padding: 7rem 0 2.5rem;
        margin-top: -80px;
    }

    .page-hero h1 {
        font-size: 2rem;
    }

    .page-hero p {
        font-size: 1rem;
    }

    .service-hero .hero-icon {
        font-size: 3.5rem;
    }
}


/* ============================================
   STATS SECTION COMPONENT
   ============================================ */

.stats-section {
    padding: 4rem 0;
    background: #f8f9fa;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    max-width: 1000px;
    margin: 0 auto;
}

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

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color, #484169);
    margin-bottom: 0.5rem;
    line-height: 1;
}

.stat-label {
    font-size: 1rem;
    color: #d1d1d1;
    font-weight: 500;
}

@media (max-width: 768px) {
    .stats-section {
        padding: 3rem 0;
    }

    .stats-grid {
        gap: 2rem;
    }

    .stat-number {
        font-size: 2.5rem;
    }

    .stat-label {
        font-size: 0.9rem;
    }
}


/* ============================================
   CTA SECTION COMPONENT
   ============================================ */

.service-cta {
    background: linear-gradient(135deg, #484169 0%, #342e4d 100%);
    color: #ffffff;
    padding: 4rem 0;
}

.cta-content {
    max-width: 800px;
    margin: 0 auto;
}

.service-cta h2 {
    color: #ffffff;
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.service-cta p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-large {
    padding: 1rem 3rem;
    font-size: 1.1rem;
}

.btn-outline.btn-large {
    background: transparent;
    color: #ffffff;
    border-color: #ffffff;
}

.btn-outline.btn-large:hover {
    background: #ffffff;
    color: var(--primary-color, #484169);
}

@media (max-width: 768px) {
    .service-cta {
        padding: 3rem 0;
    }

    .service-cta h2 {
        font-size: 2rem;
    }

    .service-cta p {
        font-size: 1.1rem;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .btn-large {
        width: 100%;
    }
}


/* ============================================
   VIDEO SECTION COMPONENT
   ============================================ */

.video-section {
    padding: 4rem 0;
}

.video-section h2 {
    text-align: center;
    margin-bottom: 3rem;
}

.video-container {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.video-container img {
    width: 100%;
    height: auto;
    display: block;
}

.video-play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.video-play-button:hover {
    transform: translate(-50%, -50%) scale(1.1);
    background: #ffffff;
}

.video-play-button::after {
    content: '';
    width: 0;
    height: 0;
    border-left: 20px solid var(--primary-color, #484169);
    border-top: 12px solid transparent;
    border-bottom: 12px solid transparent;
    margin-left: 5px;
}

@media (max-width: 768px) {
    .video-section {
        padding: 3rem 0;
    }

    .video-play-button {
        width: 60px;
        height: 60px;
    }

    .video-play-button::after {
        border-left-width: 15px;
        border-top-width: 9px;
        border-bottom-width: 9px;
    }
}


/* ============================================
   SECTION UTILITIES
   ============================================ */

.section-padding {
    padding: 4rem 0;
}

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

@media (max-width: 768px) {
    .section-padding {
        padding: 3rem 0;
    }
}
