/* ============================================
   COMPONENT-SPECIFIC STYLES
   ============================================ */

/* === HERO SECTION === */
.hero {
    position: relative;
    height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--color-white);
    overflow: hidden;
    margin-top: var(--header-height);
}

.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.hero-slide.active {
    opacity: 1;
}

.hero-background {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(44, 44, 44, 0.85), rgba(0, 174, 239, 0.7));
    z-index: -1;
}

.hero-content {
    max-width: 800px;
    padding: 0 var(--spacing-md);
    animation: fadeIn 1s ease-out;
    text-align: center;
    margin: 0 auto;
}

.hero-title {
    font-size: var(--font-size-5xl);
    font-weight: 700;
    margin-bottom: var(--spacing-md);
    color: var(--color-white);
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
    text-align: center;
}

.hero-subtitle {
    font-size: var(--font-size-xl);
    margin-bottom: var(--spacing-xl);
    color: rgba(255, 255, 255, 0.95);
}

.hero-buttons {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
    flex-wrap: wrap;
}

/* Hero Slider Controls */
.hero-slider-dots {
    position: absolute;
    bottom: var(--spacing-lg);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: var(--spacing-xs);
    z-index: 10;
}

.hero-slider-dot {
    width: 12px;
    height: 12px;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.8);
    cursor: pointer;
    transition: all var(--transition-base);
    padding: 0;
}

.hero-slider-dot.active {
    background: var(--color-white);
    width: 30px;
}

.hero-slider-prev,
.hero-slider-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: var(--radius-full);
    color: var(--color-white);
    font-size: var(--font-size-xl);
    cursor: pointer;
    transition: all var(--transition-base);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    backdrop-filter: blur(5px);
}

.hero-slider-prev:hover,
.hero-slider-next:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: var(--color-white);
}

.hero-slider-prev {
    left: var(--spacing-lg);
}

.hero-slider-next {
    right: var(--spacing-lg);
}

@media (max-width: 768px) {
    .hero-slider-prev,
    .hero-slider-next {
        width: 40px;
        height: 40px;
        font-size: var(--font-size-lg);
    }

    .hero-slider-prev {
        left: var(--spacing-sm);
    }

    .hero-slider-next {
        right: var(--spacing-sm);
    }
}

/* === TESTIMONIAL SLIDER === */
.testimonial-slider {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding: var(--spacing-xl) 0;
    min-height: 300px;
}

.testimonial-slide {
    display: block;
    text-align: center;
    padding: var(--spacing-xl);
    opacity: 0;
    position: absolute;
    width: 100%;
    left: 0;
    top: 0;
    transition: opacity var(--transition-slow);
    pointer-events: none;
}

.testimonial-slide.active {
    opacity: 1;
    position: relative;
    pointer-events: auto;
}

.testimonial-text {
    font-size: var(--font-size-lg);
    font-style: italic;
    color: var(--color-medium-grey);
    margin-bottom: var(--spacing-md);
    line-height: 1.8;
}

.testimonial-author {
    font-weight: 600;
    color: var(--color-charcoal);
    margin-bottom: var(--spacing-xs);
}

.testimonial-role {
    color: var(--color-medium-grey);
    font-size: var(--font-size-sm);
}

.testimonial-rating {
    display: flex;
    justify-content: center;
    gap: 4px;
    margin-bottom: var(--spacing-md);
}

.testimonial-rating svg {
    width: 24px;
    height: 24px;
    fill: var(--color-gold);
}

.star-rating {
    display: flex;
    justify-content: center;
    gap: 4px;
    color: var(--color-gold);
}

.star-rating svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.slider-dots {
    display: flex;
    justify-content: center;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-lg);
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: var(--radius-full);
    background: var(--color-light-grey);
    border: none;
    cursor: pointer;
    transition: all var(--transition-base);
}

.slider-dot.active {
    background: var(--color-blue);
    width: 30px;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: var(--color-white);
    border: 2px solid var(--color-light-grey);
    border-radius: var(--radius-full);
    color: var(--color-charcoal);
    font-size: var(--font-size-xl);
    cursor: pointer;
    transition: all var(--transition-base);
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-btn:hover {
    background: var(--color-blue);
    color: var(--color-white);
    border-color: var(--color-blue);
}

.slider-btn-prev {
    left: 0;
}

.slider-btn-next {
    right: 0;
}

/* === PRODUCT CARD === */
.product-card {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-card:hover {
    box-shadow: var(--shadow-xl);
    transform: translateY(-8px);
}

.product-card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform var(--transition-slow);
    flex-shrink: 0;
}

.product-card:hover .product-card-image {
    transform: scale(1.1);
}

.product-card-body {
    padding: var(--spacing-md);
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-card-category {
    font-size: var(--font-size-xs);
    color: var(--color-blue);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: var(--spacing-xs);
}

.product-card-title {
    font-size: var(--font-size-lg);
    margin-bottom: var(--spacing-xs);
    color: var(--color-charcoal);
    font-weight: 600;
}

.product-card-description {
    color: var(--color-medium-grey);
    margin-bottom: var(--spacing-sm);
    flex-grow: 1;
    font-size: var(--font-size-sm);
    line-height: 1.5;
}

.product-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: var(--spacing-sm);
}

/* === SERVICE CARD === */
.service-card {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
    text-align: center;
}

.service-card:hover {
    box-shadow: var(--shadow-xl);
    transform: translateY(-6px);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--color-blue), var(--color-blue-light));
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--spacing-md);
    color: var(--color-white);
    font-size: 2rem;
}

.service-icon svg {
    width: 40px;
    height: 40px;
    fill: currentColor;
}

.service-title {
    font-size: var(--font-size-2xl);
    margin-bottom: var(--spacing-sm);
    color: var(--color-charcoal);
}

.service-description {
    color: var(--color-medium-grey);
    margin-bottom: var(--spacing-md);
    line-height: 1.8;
}

/* === STATS SECTION === */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-xl);
    text-align: center;
}

.stat-item {
    padding: var(--spacing-lg);
}

.stat-number {
    font-size: var(--font-size-5xl);
    font-weight: 700;
    color: var(--color-blue);
    margin-bottom: var(--spacing-xs);
}

.stat-label {
    font-size: var(--font-size-lg);
    color: var(--color-medium-grey);
    font-weight: 500;
}

/* === BRAND LOGOS === */
.brands-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: var(--spacing-lg);
    align-items: center;
}

.brand-logo {
    padding: var(--spacing-md);
    background: var(--color-white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100px;
}

.brand-logo:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.brand-logo img {
    max-width: 100%;
    max-height: 60px;
    opacity: 0.7;
    transition: opacity var(--transition-base);
}

.brand-logo:hover img {
    opacity: 1;
}

/* === CTA SECTION === */
.cta-section {
    background: linear-gradient(135deg, var(--color-blue), var(--color-blue-dark));
    color: var(--color-white);
    text-align: center;
    padding: var(--spacing-3xl) 0;
}

.cta-section h2 {
    color: var(--color-white);
    margin-bottom: var(--spacing-md);
}

.cta-section p {
    color: rgba(255, 255, 255, 0.9);
    font-size: var(--font-size-lg);
    margin-bottom: var(--spacing-xl);
}

/* === FORM MESSAGE === */
.form-message {
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    margin-bottom: var(--spacing-md);
    font-weight: 500;
}

.form-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.form-input.error,
.form-textarea.error {
    border-color: #dc3545;
}

/* === FAQ ACCORDION === */
.faq-item {
    background: var(--color-white);
    border-radius: var(--radius-md);
    margin-bottom: var(--spacing-md);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.faq-question {
    width: 100%;
    padding: var(--spacing-md) var(--spacing-lg);
    background: var(--color-white);
    border: none;
    text-align: left;
    font-size: var(--font-size-lg);
    font-weight: 600;
    color: var(--color-charcoal);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all var(--transition-base);
}

.faq-question:hover {
    background: var(--color-light-grey);
}

.faq-question.active {
    color: var(--color-blue);
}

.faq-icon {
    transition: transform var(--transition-base);
}

.faq-question.active .faq-icon {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-slow);
}

.faq-answer.active {
    max-height: 500px;
}

.faq-answer-content {
    padding: 0 var(--spacing-lg) var(--spacing-md);
    color: var(--color-medium-grey);
    line-height: 1.8;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .hero {
        height: 500px;
    }

    .hero-title {
        font-size: var(--font-size-3xl);
    }

    .hero-subtitle {
        font-size: var(--font-size-lg);
    }

    .hero-buttons {
        flex-direction: column;
    }

    .slider-btn {
        display: none;
    }

    .product-card-image {
        height: 200px;
    }

    .grid-5 {
        grid-template-columns: repeat(2, 1fr);
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}