/**
 * homepage.css
 * Style dedykowane dla strony głównej (index.php)
 * Świat MINI - swiatmini.pl
 */

/* ==========================================================================
   HERO SECTION
   ========================================================================== */

.hero-section {
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--color-black) 0%, var(--color-dark) 100%);
    position: relative;
    overflow: hidden;
}

.hero-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-title {
    font-size: 56px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.1;
}

.text-accent {
    color: var(--color-accent);
}

.hero-subtitle {
    font-size: 20px;
    opacity: 0.9;
    margin-bottom: 40px;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 20px;
}

.hero-image {
    position: relative;
}

.hero-image img {
    width: 100%;
    height: auto;
    border-radius: 10px;
}

/* ==========================================================================
   FEATURES GRID
   ========================================================================== */

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 60px;
}

.feature-card {
    text-align: center;
    padding: 40px 30px;
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 10px;
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-5px);
    background: rgba(255,255,255,0.05);
    border-color: var(--color-accent);
}

.feature-icon {
    font-size: 48px;
    color: var(--color-accent);
    margin-bottom: 20px;
}

/* ==========================================================================
   SERVICES SECTION
   ========================================================================== */

.section-dark {
    background-color: rgba(255,255,255,0.02);
}

.services-slider {
    z-index: 1;
    position: relative;
}

.swiper-slide {
    height: auto;
}

.service-card {
    background: var(--color-dark);
    border-radius: 10px;
    overflow: hidden;
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.service-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.service-card h3 {
    padding: 20px 20px 10px;
}

.service-card p {
    padding: 0 20px 20px;
    opacity: 0.8;
    flex-grow: 1;
}

.service-link {
    display: block;
    padding: 15px 20px;
    background: rgba(255,255,255,0.05);
    text-align: center;
    color: var(--color-accent);
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    position: relative;
    z-index: 10;
    cursor: pointer;
    pointer-events: auto !important;
    user-select: none;
}

.service-link:hover {
    background: rgba(255,255,255,0.08);
    color: var(--color-white);
}

/* Swiper navigation */
.swiper-button-next,
.swiper-button-prev {
    z-index: 10;
    color: var(--color-accent);
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
    color: var(--color-white);
}

.swiper-pagination {
    display: none;
}

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

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    text-align: center;
}

.stat-number {
    font-size: 48px;
    font-weight: 700;
    color: var(--color-accent);
    margin-bottom: 10px;
}

.stat-label {
    font-size: 18px;
    opacity: 0.8;
}

/* ==========================================================================
   REVIEWS SECTION
   ========================================================================== */

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 60px;
}

.review-card {
    background: rgba(255,255,255,0.05);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
}

.review-stars {
    color: #FFD700;
    margin-bottom: 20px;
}

.review-text {
    font-style: italic;
    margin-bottom: 20px;
    line-height: 1.6;
}

.review-author strong {
    display: block;
    margin-bottom: 5px;
}

.review-author span {
    opacity: 0.7;
    font-size: 14px;
}

.google-rating {
    display: inline-flex;
    align-items: center;
    gap: 20px;
    margin-top: 40px;
}

.google-logo {
    height: 40px;
}

.rating-stars {
    color: #FFD700;
}

.rating-score {
    font-size: 24px;
    font-weight: 700;
    margin: 0 10px;
}

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

.cta-box {
    background: linear-gradient(135deg, #990000 0%, #660000 100%);
    padding: 30px 40px;
    border-radius: 10px;
    text-align: center;
    border: 1px solid rgba(255,0,0,0.3);
}

.cta-box h2 {
    color: var(--color-white);
    margin-bottom: 10px;
    font-size: 24px;
    font-weight: 600;
}

.cta-box p {
    font-size: 16px;
    margin-bottom: 20px;
    opacity: 0.9;
}

.btn-large {
    padding: 12px 30px;
    font-size: 16px;
}

/* ==========================================================================
   ANIMATIONS
   ========================================================================== */

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   RESPONSIVE - TABLET (1024px)
   ========================================================================== */

@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-image {
        display: none;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ==========================================================================
   RESPONSIVE - MOBILE (768px)
   ========================================================================== */

@media (max-width: 768px) {
    .hero-title {
        font-size: 36px;
    }

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

    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .features-grid,
    .reviews-grid {
        grid-template-columns: 1fr;
    }

    .cta-box {
        padding: 40px 20px;
    }
}
