/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Assistant', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    direction: rtl;
    text-align: right;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

.navbar {
    padding: 1rem 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: inherit;
    transition: opacity 0.3s ease;
}

.logo-link:hover {
    opacity: 0.8;
}

.nav-logo h2 {
    color: #2c5530;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
}

.logo-img {
    height: 60px;
    width: auto;
    object-fit: contain;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #2c5530;
}

.nav-link.phone {
    background: #2c5530;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    transition: background 0.3s ease;
}

.nav-link.phone:hover {
    background: #1e3a21;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: #333;
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #2c5530 0%, #4a7c59 100%);
    color: white;
    padding: 120px 0 80px;
    margin-top: 80px;
    position: relative; /* מאפשר מיקום יחסי לתמונה הדקורטיבית */
}

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

/* תמונת הדברה בצד שמאל עם שילוב עדין לרקע הירוק */
.hero::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: min(520px, 45vw);
    background-image: url('images/pest-clean.png');
    background-repeat: no-repeat;
    background-position: left bottom;
    background-size: contain;
    z-index: 0; /* מאחורי התוכן */
    pointer-events: none;
    /* מסכה לריכוך קצה התמונה אל תוך הירוק ללא שינוי צבעיה */
    -webkit-mask-image: linear-gradient(90deg, rgba(0,0,0,1) 60%, rgba(0,0,0,0) 100%);
    mask-image: linear-gradient(90deg, rgba(0,0,0,1) 60%, rgba(0,0,0,0) 100%);
}

/* ודא שהתוכן מעל התמונה */
.hero > * {
    position: relative;
    z-index: 1;
}

.hero-content h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: #fff;
    color: #2c5530;
}

.btn-primary:hover {
    background: #f0f0f0;
    transform: translateY(-2px);
}

.btn-whatsapp {
    background: #25d366;
    color: white;
}

.btn-whatsapp:hover {
    background: #1ea952;
    transform: translateY(-2px);
}

.hero-image img {
    width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

/* Trust Bar */
.trust-bar {
    background: #f8f9fa;
    padding: 2rem 0;
    border-bottom: 1px solid #e9ecef;
}

.trust-items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    text-align: center;
}

.trust-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.trust-item i {
    font-size: 2rem;
    color: #2c5530;
    margin-bottom: 0.5rem;
}

.trust-item span {
    font-weight: 600;
    color: #333;
    font-size: 0.9rem;
}

.license-number {
    background: #2c5530;
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-top: 0.5rem;
    display: inline-block;
    box-shadow: 0 2px 8px rgba(44, 85, 48, 0.3);
    letter-spacing: 0.5px;
}

/* Problem & Solution */
.problem-solution {
    padding: 4rem 0;
    background: white;
}

.section-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.section-content h2 {
    font-size: 2.2rem;
    color: #2c5530;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.section-content p {
    font-size: 1.1rem;
    color: #666;
    line-height: 1.8;
}

/* Services */
.services {
    padding: 4rem 0;
    background: #f8f9fa;
}

.services h2 {
    text-align: center;
    font-size: 2.2rem;
    color: #2c5530;
    margin-bottom: 3rem;
    font-weight: 700;
}

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

.service-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #2c5530, #4a7c59);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.service-icon i {
    font-size: 2rem;
    color: white;
}

.service-icon .custom-icon {
    width: 2.3rem;
    height: 2.3rem;
    max-width: 2.3em;
    max-height: 2.3rem;
    object-fit: contain;
    filter: brightness(0) invert(1);
    transition: transform 0.8s ease;
    display: block;
}

.service-card:hover .service-icon .custom-icon {
    transform: scale(1.1);
}

.service-card h3 {
    font-size: 1.3rem;
    color: #2c5530;
    margin-bottom: 1rem;
    font-weight: 600;
}

.service-card p {
    color: #666;
    line-height: 1.6;
}

/* כפתור עוד */
.more-btn {
    background: #2c5530;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.more-btn:hover {
    background: #1e3a21;
    transform: translateY(-2px);
}

.more-btn.active {
    background: #dc3545;
}

.more-btn.active:hover {
    background: #c82333;
}

/* חלון מידע על מזיקים */
.pest-info {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-in-out;
    background: #f8f9fa;
    border-radius: 10px;
    margin-top: 1rem;
}

.pest-info.active {
    max-height: 500px;
}

.info-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: #2c5530;
    color: white;
    border-radius: 10px 10px 0 0;
}

.info-header h4 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.2s ease;
}

.close-btn:hover {
    background: rgba(255,255,255,0.2);
}

.info-content {
    padding: 1rem;
}

.info-content h5 {
    color: #2c5530;
    font-size: 1rem;
    font-weight: 600;
    margin: 1rem 0 0.5rem 0;
}

.info-content h5:first-child {
    margin-top: 0;
}

.info-content ul {
    margin: 0 0 1rem 0;
    padding-right: 1.5rem;
}

.info-content li {
    color: #666;
    margin-bottom: 0.3rem;
    line-height: 1.5;
}

/* How It Works */
.how-it-works {
    padding: 4rem 0;
    background: white;
}

.how-it-works h2 {
    text-align: center;
    font-size: 2.2rem;
    color: #2c5530;
    margin-bottom: 3rem;
    font-weight: 700;
}

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

.step {
    text-align: center;
    position: relative;
}

.step-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #2c5530, #4a7c59);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 1.5rem;
}

.step h3 {
    font-size: 1.3rem;
    color: #2c5530;
    margin-bottom: 1rem;
    font-weight: 600;
}

.step p {
    color: #666;
    line-height: 1.6;
}

/* Why Choose Us */
.why-choose-us {
    padding: 4rem 0;
    background: #f8f9fa;
}

.why-choose-us h2 {
    text-align: center;
    font-size: 2.2rem;
    color: #2c5530;
    margin-bottom: 3rem;
    font-weight: 700;
}

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

.feature {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.feature:hover {
    transform: translateY(-5px);
}

.feature i {
    font-size: 3rem;
    color: #2c5530;
    margin-bottom: 1rem;
}

.feature h3 {
    font-size: 1.3rem;
    color: #2c5530;
    margin-bottom: 1rem;
    font-weight: 600;
}

.feature p {
    color: #666;
    line-height: 1.6;
}

/* Gallery */
/* Carousel */
.carousel {
    padding: 4rem 0;
    background: white;
}

.carousel h2 {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 2rem;
    font-weight: 700;
}

.carousel-wrapper {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    min-height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-slide {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.7s ease-in-out;
    z-index: 1; /* מאחורי החיצים */
    pointer-events: none; /* לא לחסום קליקים כשלא פעיל */
}

.carousel-slide.is-active {
    opacity: 1;
    pointer-events: auto; /* רק השקופית הפעילה מקבלת אירועים */
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* ממלא את כל שטח הקרוסלה */
    display: block;
    transform: scale(1.12); /* הגדלה קלה של התמונה בתוך המכולה */
}

/* חיצי ניווט לקרוסלה */
.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(0,0,0,0.4);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: none;
    z-index: 5; /* מעל השקופיות */
    transition: background 0.2s ease;
}

.carousel-arrow:hover {
    background: rgba(0,0,0,0.55);
}

.carousel-arrow:focus {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

.carousel-arrow.prev { left: 12px; }
.carousel-arrow.next { right: 12px; }

.carousel-arrow i {
    font-size: 1.1rem;
}

/* Testimonials */
.testimonials {
    padding: 4rem 0;
    background: #f8f9fa;
}

.testimonials h2 {
    text-align: center;
    font-size: 2.2rem;
    color: #2c5530;
    margin-bottom: 3rem;
    font-weight: 700;
}

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

.testimonial {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    text-align: center;
}

.stars {
    color: #ffc107;
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.testimonial p {
    font-size: 1.1rem;
    color: #333;
    margin-bottom: 1.5rem;
    font-style: italic;
    line-height: 1.6;
}

.testimonial-author strong {
    color: #2c5530;
    font-weight: 600;
    display: block;
    margin-bottom: 0.5rem;
}

.testimonial-author span {
    color: #666;
    font-size: 0.9rem;
}

/* FAQ */
.faq {
    padding: 4rem 0;
    background: white;
}

.faq h2 {
    text-align: center;
    font-size: 2.2rem;
    color: #2c5530;
    margin-bottom: 3rem;
    font-weight: 700;
}

.faq-items {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border: 1px solid #e9ecef;
    border-radius: 10px;
    margin-bottom: 1rem;
    overflow: hidden;
}

.faq-question {
    padding: 1.5rem;
    background: #f8f9fa;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.3s ease;
}

.faq-question:hover {
    background: #e9ecef;
}

.faq-question h3 {
    font-size: 1.1rem;
    color: #2c5530;
    font-weight: 600;
}

.faq-question i {
    color: #2c5530;
    transition: transform 0.3s ease;
}

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

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

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

.faq-answer p {
    color: #666;
    line-height: 1.6;
}

/* Contact */
.contact {
    padding: 4rem 0;
    background: #f8f9fa;
}

.contact h2 {
    text-align: center;
    font-size: 2.2rem;
    color: #2c5530;
    margin-bottom: 3rem;
    font-weight: 700;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    max-width: 1000px;
    margin: 0 auto;
}

.contact-form {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #2c5530;
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.privacy-notice {
    font-size: 0.9rem;
    color: #666;
    text-align: center;
    margin-top: 1rem;
}

.contact-info {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.contact-info h3 {
    color: #2c5530;
    margin-bottom: 2rem;
    font-size: 1.5rem;
    font-weight: 600;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 2rem;
}

.contact-item i {
    font-size: 1.5rem;
    color: #2c5530;
    margin-top: 0.2rem;
}

.contact-item strong {
    color: #2c5530;
    font-weight: 600;
    display: block;
    margin-bottom: 0.5rem;
}

.contact-item a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: #2c5530;
}

.contact-item p {
    color: #666;
    margin: 0;
    line-height: 1.5;
}

/* Footer */
.footer {
    background: #2c5530;
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
    font-weight: 600;
}

.footer-section h3 {
    font-size: 1.5rem;
}

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

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

.footer-section ul li a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: white;
}

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

.social-link {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: background 0.3s ease;
}

.social-link:hover {
    background: rgba(255,255,255,0.2);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 1rem;
    text-align: center;
    color: #ccc;
}

/* Responsive Design */
@media (max-width: 768px) {
    .carousel-wrapper {
        min-height: 240px;
    }
    .carousel-slide img {
        max-height: 280px;
    }
    .carousel-arrow { width: 40px; height: 40px; }
    
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        background: white;
        flex-direction: column;
        padding: 2rem 0;
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        z-index: 999;
    }
    
    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .nav-menu .nav-link {
        padding: 1rem 2rem;
        border-bottom: 1px solid #e9ecef;
        text-align: center;
    }
    
    .nav-menu .nav-link:last-child {
        border-bottom: none;
    }
    
    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    /* במסכים קטנים נצמצם את התמונה כדי לא לחפוף תוכן */
    .hero::before {
        width: min(320px, 55vw);
        opacity: 0.9;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .trust-items {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .process-steps {
        grid-template-columns: 1fr;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .carousel-wrapper {
        min-height: 200px;
    }
    .carousel-slide img {
        max-height: 220px;
    }
    .carousel-arrow { width: 36px; height: 36px; }
    .container {
        padding: 0 15px;
    }
    
    .hero {
        padding: 100px 0 60px;
    }

    .hero::before {
        width: min(260px, 60vw);
        opacity: 0.9;
    }
    
    .hero-content h1 {
        font-size: 1.8rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .section-content h2,
    .services h2,
    .how-it-works h2,
    .why-choose-us h2,
    .gallery h2,
    .testimonials h2,
    .faq h2,
    .contact h2 {
        font-size: 1.8rem;
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Loading animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}
