/* ═══════════════════════════════════════════════════════════════
   ECO CLEAN - COMPONENTS.CSS
   Glassmorphism Components & Sections
   ═══════════════════════════════════════════════════════════════ */

/* ═══════════════════════════════════════════════════════════════
   GLASSMORPHISM CARD
   ═══════════════════════════════════════════════════════════════ */

.glass-card {
    background: var(--glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 8px 32px var(--shadow);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px var(--shadow-lg);
}

/* ═══════════════════════════════════════════════════════════════
   SERVICES SECTION
   ═══════════════════════════════════════════════════════════════ */

.services {
    background: var(--bg-secondary);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.service-card {
    position: relative;
    text-align: center;
    cursor: pointer;
    overflow: hidden;
}

.service-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    display: inline-block;
    transition: transform 0.3s ease;
}

.service-card:hover .service-icon {
    transform: scale(1.2) rotate(5deg);
}

.service-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text);
}

.service-desc {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.service-features {
    list-style: none;
    text-align: left;
}

.service-features li {
    padding: 0.5rem 0;
    color: var(--text-secondary);
    position: relative;
    padding-left: 1.5rem;
}

.service-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: bold;
}

/* Ripple Effect Container */
.ripple-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
}

.ripple {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
    transform: scale(0);
    animation: ripple 0.6s ease-out;
    pointer-events: none;
}

/* ═══════════════════════════════════════════════════════════════
   GALLERY SECTION
   ═══════════════════════════════════════════════════════════════ */

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
}

.gallery-item {
    padding: 0;
    overflow: hidden;
}

/* Before/After Slider */
.before-after-slider {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
    --slider-position: 50%;
}

.before-image,
.after-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.before-image img,
.after-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.after-image {
    clip-path: inset(0 50% 0 0);
    transition: clip-path 0.1s ease;
}

/* Vertical Divider Line */
.before-after-slider::before {
    content: '';
    position: absolute;
    left: var(--slider-position);
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom,
            transparent 0%,
            var(--primary) 10%,
            var(--primary) 90%,
            transparent 100%);
    box-shadow: 0 0 10px var(--primary);
    transform: translateX(-50%);
    pointer-events: none;
    z-index: 10;
    transition: left 0.1s ease;
}

/* Slider Input (Hidden) */
.before-after-slider input[type="range"] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: ew-resize;
    z-index: 20;
}

/* Custom Handle */
.before-after-slider::after {
    content: '';
    position: absolute;
    left: var(--slider-position);
    top: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 40px;
    background: var(--glass);
    backdrop-filter: blur(10px);
    border: 2px solid var(--primary);
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    pointer-events: none;
    z-index: 15;
    transition: left 0.1s ease;
}

/* Arrow Icons Container */
.slider-arrows {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 8px;
    pointer-events: none;
    z-index: 16;
    transition: left 0.3s ease;
}

.slider-arrows::before,
.slider-arrows::after {
    font-size: 14px;
    font-weight: bold;
}

/* Left Arrow (White) */
.slider-arrows::before {
    content: '◀';
    color: #fff;
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
}

/* Right Arrow (Green) */
.slider-arrows::after {
    content: '▶';
    color: var(--primary);
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
}

/* ═══════════════════════════════════════════════════════════════
   WHY US SECTION
   ═══════════════════════════════════════════════════════════════ */

.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

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

.why-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: inline-block;
    transition: transform 0.3s ease;
}

.why-card:hover .why-icon {
    transform: scale(1.2) rotate(-5deg);
}

.why-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--text);
}

.why-card p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

/* ═══════════════════════════════════════════════════════════════
   REVIEWS SECTION
   ═══════════════════════════════════════════════════════════════ */

.reviews {
    background: var(--bg-secondary);
}

.reviews-carousel {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.review-card {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.review-stars {
    font-size: 1.25rem;
    color: #FFD700;
}

.review-text {
    color: var(--text);
    font-style: italic;
    line-height: 1.6;
    flex: 1;
}

.review-author {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding-top: 1rem;
    border-top: 1px solid var(--glass-border);
}

.review-author strong {
    color: var(--text);
    font-weight: 600;
}

.review-author span {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

/* ═══════════════════════════════════════════════════════════════
   PROCESS TIMELINE
   ═══════════════════════════════════════════════════════════════ */

.timeline {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    position: relative;
}

.timeline-item {
    text-align: center;
    position: relative;
}

.timeline-number {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--gradient-primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 1rem;
    box-shadow: 0 4px 20px var(--shadow);
}

.timeline-item h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--text);
}

.timeline-item p {
    color: var(--text-secondary);
    margin: 0;
}

/* ═══════════════════════════════════════════════════════════════
   FAQ SECTION
   ═══════════════════════════════════════════════════════════════ */

.faq-list {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-item {
    padding: 0;
    overflow: hidden;
}

.faq-question {
    width: 100%;
    padding: 1.5rem;
    background: none;
    border: none;
    text-align: left;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: color 0.3s ease;
}

.faq-question:hover {
    color: var(--primary);
}

.faq-question svg {
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.faq-item.active .faq-question svg {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding: 0 1.5rem 1.5rem;
}

.faq-answer p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

/* ═══════════════════════════════════════════════════════════════
   FINAL CTA SECTION
   ═══════════════════════════════════════════════════════════════ */

.final-cta {
    position: relative;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: var(--gradient-bg);
    overflow: hidden;
}

.final-cta h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 1rem;
    color: var(--text);
}

.final-cta p {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--text-secondary);
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ═══════════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════════ */

.footer {
    background: var(--bg-secondary);
    position: relative;
    padding-top: 0;
}

.wave-separator {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    transform: translateY(-1px);
}

.wave-separator svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 80px;
}

.wave-separator path {
    fill: var(--bg-secondary);
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 50px 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-col h4 {
    font-size: 1.125rem;
    margin-bottom: 1rem;
    color: var(--text);
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 0.5rem;
}

.footer-col ul li a {
    color: var(--text-secondary);
    transition: color 0.3s ease;
    font-size: 0.9rem;
}

.footer-col ul li a:hover {
    color: var(--primary);
}

.footer-col p {
    color: var(--text-secondary);
    line-height: 1.6;
}

.social-links {
    display: flex;
    gap: 1rem;
    font-size: 1.5rem;
}

.social-links a {
    transition: transform 0.3s ease;
}

.social-links a:hover {
    transform: scale(1.2);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--glass-border);
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.footer-bottom p {
    margin: 0.25rem 0;
}

.footer-bottom a {
    color: var(--primary);
}

/* ═══════════════════════════════════════════════════════════════
   BOOKING PLACEHOLDER
   ═══════════════════════════════════════════════════════════════ */

.booking-placeholder {
    text-align: center;
    padding: 4rem 2rem;
}

.booking-placeholder p {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.booking-placeholder a {
    color: var(--primary);
    font-weight: 600;
    font-size: 1.25rem;
}

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════════ */

@media (max-width: 768px) {

    .services-grid,
    .gallery-grid,
    .why-grid,
    .reviews-carousel,
    .timeline {
        grid-template-columns: 1fr;
    }

    .gallery-item {
        max-width: 100%;
    }

    .before-after-slider {
        height: 300px;
    }

    /* Footer - 2 oszlop tableten */
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }

    .footer-container {
        padding: 40px 20px;
    }
}

@media (max-width: 480px) {

    /* Footer - 1 oszlop mobilon */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

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

    .footer-col ul {
        padding: 0;
    }

    .footer-container {
        padding: 30px 15px;
    }

    .social-links {
        justify-content: center;
    }
}