/* ---
    Template Name: Avi Levi Shiputzim
    Author: WebLite
--- */

/* --- Custom Properties (Variables) --- */
:root {
    --primary-color: #D35400; /* כתום בנייה, משדר אנרגיה וביטחון */
    --secondary-color: #2C3E50; /* כחול-אפור כהה, משדר מקצועיות ואמינות */
    --dark-color: #34495E; /* אפור כהה לטקסט */
    --light-color: #F8F9FA; /* רקע אפרפר בהיר */
    --white-color: #FFFFFF;
    --gray-color: #7f8c8d; /* אפור לטקסט משני */
    --font-family: 'Heebo', sans-serif;
    --box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08);
    --border-radius: 8px;
}

/* --- General & Reset --- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-family);
    line-height: 1.7;
    background-color: var(--white-color);
    color: var(--dark-color);
    text-align: right;
    overflow-x: hidden;
}
.container { width: 90%; max-width: 1140px; margin: 0 auto; }
h1, h2, h3, h4 { line-height: 1.3; margin-bottom: 1rem; font-weight: 700; color: var(--secondary-color); }
h1 { font-size: 2.5rem; font-weight: 800; }
h2 { font-size: 2.2rem; }
h3 { font-size: 1.4rem; }
p { margin-bottom: 1rem; color: var(--gray-color); }
a { text-decoration: none; color: var(--primary-color); transition: color 0.3s ease; }
a:hover { color: #a04000; }
img, picture { max-width: 100%; height: auto; display: block; }
section { padding: 80px 0; }
.section-title { text-align: center; margin-bottom: 3rem; }
.section-title .subtitle { color: var(--primary-color); font-weight: 500; display: block; margin-bottom: 0.5rem; }

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 12px 35px;
    border-radius: 50px;
    font-weight: 700;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
}
.btn-primary { background-color: var(--primary-color); color: var(--white-color); }
.btn-primary:hover { background-color: #a04000; transform: translateY(-3px); }
.btn-secondary { background-color: var(--secondary-color); color: var(--white-color); }
.btn-secondary:hover { background-color: #1a2530; transform: translateY(-3px); }
.btn-lg { padding: 15px 40px; font-size: 1.1rem; }


/* --- Header --- */
.main-header {
    background-color: var(--white-color);
    padding: 15px 0;
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.3s ease;
}
.main-header.scrolled { padding: 10px 0; box-shadow: var(--box-shadow); }
.main-header .container { display: flex; justify-content: space-between; align-items: center; }
.logo { font-size: 1.4rem; font-weight: 500; color: var(--secondary-color); }
.logo i { color: var(--primary-color); margin-left: 8px; }
.main-nav { display: none; }
.nav-links { list-style: none; display: flex; }
.nav-links li { margin: 0 18px; }
.nav-links a { color: var(--dark-color); font-weight: 500; transition: color 0.3s; position: relative; padding-bottom: 5px; }
.nav-links a:hover, .nav-links a.active { color: var(--primary-color); }
.nav-links a::after { content: ''; position: absolute; bottom: 0; right: 0; width: 0; height: 2px; background: var(--primary-color); transition: width 0.3s; }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.header-cta { display: none; }
.hamburger-menu { display: block; cursor: pointer; font-size: 1.8rem; color: var(--secondary-color); }

/* Mobile Nav */
.mobile-nav {
    display: none; position: fixed; top: 0; right: -100%; width: 300px; height: 100vh;
    background: var(--white-color); z-index: 1001;
    flex-direction: column; align-items: center; justify-content: center;
    box-shadow: -5px 0 15px rgba(0,0,0,0.1); transition: right 0.4s ease;
}
.mobile-nav.active { display: flex; right: 0; }
.mobile-nav .nav-links { flex-direction: column; text-align: center; }
.mobile-nav .nav-links li { margin: 20px 0; }
.mobile-nav .nav-links a { font-size: 1.5rem; }
.close-menu { position: absolute; top: 25px; right: 25px; font-size: 2rem; cursor: pointer; color: var(--dark-color); }


/* --- Hero Section --- */
.hero {
    padding-top: 140px;
    background: linear-gradient(to right, rgba(44, 62, 80, 0.8), rgba(44, 62, 80, 0.7)), url('../img/hero.webp') center center/cover no-repeat;
    color: var(--white-color);
    min-height: 90vh;
    display: flex; align-items: center; justify-content: center;
    text-align: center;
}
.hero-content { max-width: 800px; }
.hero h1 { color: var(--white-color); margin-bottom: 1rem; }
.hero .subtitle { font-size: 1.2rem; color: #f1c40f; font-weight: 500; margin-bottom: 1rem; }
.hero p { max-width: 600px; margin: 0 auto 2.5rem auto; color: var(--light-color); font-size: 1.1rem; }


/* --- Services Section --- */
#services { background-color: var(--light-color); }
.services-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; }
.service-card {
    background-color: var(--white-color);
    padding: 2.5rem 2rem;
    text-align: center;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    border-bottom: 4px solid transparent;
    transition: transform 0.3s ease, border-color 0.3s ease;
}
.service-card:hover { transform: translateY(-10px); border-color: var(--primary-color); }
.service-card .icon { font-size: 3rem; color: var(--primary-color); margin-bottom: 1.5rem; }
.service-card h3 { margin-bottom: 0.5rem; }


/* --- About Section --- */
.about-section { background-color: var(--white-color); }
.about-grid { display: grid; grid-template-columns: 1fr; gap: 2.5rem; align-items: center; }
.about-image { border-radius: var(--border-radius); overflow: hidden; box-shadow: var(--box-shadow); }
.about-content ul { list-style-type: none; padding-right: 0; }
.about-content li { display: flex; align-items: flex-start; margin-bottom: 1rem; }
.about-content li i { color: var(--primary-color); margin-left: 10px; font-size: 1.2rem; margin-top: 5px; }

/* --- Why Us Trust Bar --- */
.why-us-bar {
    background-color: var(--secondary-color);
    padding: 60px 0;
}
.why-us-grid {
    display: grid;
    /* --- 2 עמודות כברירת מחדל (מובייל) --- */
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem; /* הקטנו קצת את הרווח שיתאים למובייל */
    color: var(--white-color);
}
.why-us-item {
    text-align: center;
}
.why-us-item .icon {
    /* הקטנו קצת את האייקון שיתאים ל-2x2 במובייל */
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}
.why-us-item h3 {
    color: var(--white-color);
    /* הקטנו קצת את הכותרת */
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}
.why-us-item p {
    color: #bdc3c7;
    margin-bottom: 0;
    /* הקטנו קצת את הפסקה */
    font-size: 0.9rem;
}

/* --- WebLite Promo Sections --- */
.weblite-promo-1 { background-color: var(--secondary-color); color: var(--white-color); text-align: center; }
.weblite-promo-1 h2 { color: var(--white-color); }
.weblite-promo-1 p { color: var(--light-color); max-width: 700px; margin: 0 auto 2rem auto; }

.weblite-promo-2 { background-color: var(--light-color); }
.weblite-promo-2 .container {
    display: flex; flex-direction: column; align-items: center; text-align: center;
    background: var(--white-color); padding: 2.5rem; border-radius: var(--border-radius); box-shadow: var(--box-shadow);
}
.weblite-promo-2 h3 { color: var(--primary-color); }
.weblite-promo-2 .logo-text { font-weight: 700; color: var(--dark-color); }


/* --- Projects (Portfolio) Section --- */
#projects { background-color: var(--white-color); }
.projects-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
.project-card { position: relative; overflow: hidden; border-radius: var(--border-radius); box-shadow: var(--box-shadow); }
.project-card img { transition: transform 0.4s ease; }
.project-card:hover img { transform: scale(1.1); }
.project-info {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: var(--white-color);
    padding: 30px 20px 20px;
    transform: translateY(100%);
    transition: transform 0.4s ease;
}
.project-card:hover .project-info { transform: translateY(0); }
.project-info h3 { color: var(--white-color); margin-bottom: 0.2rem; }
.project-info span { font-size: 0.9rem; }


/* --- Testimonials Section --- */
#testimonials { background-color: var(--light-color); }
.testimonial-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; }
.testimonial-card {
    background-color: var(--white-color); padding: 2rem; border-radius: var(--border-radius);
    box-shadow: var(--box-shadow); border-right: 5px solid var(--primary-color);
    position: relative;
}
.testimonial-card::before {
    content: '\f10d'; font-family: 'Font Awesome 6 Free'; font-weight: 900;
    position: absolute; top: 15px; left: 20px; font-size: 2.5rem; color: #e0e0e0; z-index: 1;
}
.testimonial-card p { position: relative; z-index: 2; }
.author { display: flex; align-items: center; margin-top: 1.5rem; }
.author img { width: 60px; height: 60px; border-radius: 50%; margin-left: 15px; }
.author-info strong { display: block; color: var(--dark-color); }


/* --- Contact CTA Section --- */
.contact-cta {
     background: linear-gradient(rgba(211, 84, 0, 0.9), rgba(211, 84, 0, 0.9)), url('https://images.unsplash.com/photo-1557804506-669a67965ba0?q=80&w=1574&auto=format&fit=crop') center center/cover fixed;
     text-align: center; color: var(--white-color);
}
.contact-cta h2, .contact-cta p { color: var(--white-color); }
.contact-cta p { max-width: 600px; margin: 0 auto 2rem auto; }


/* --- Footer --- */
.main-footer { background-color: var(--secondary-color); color: var(--light-color); padding-top: 60px; }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 2.5rem; padding-bottom: 40px; }
.footer-col h4 { color: var(--white-color); font-size: 1.2rem; margin-bottom: 1.5rem; position: relative; padding-bottom: 10px; }
.footer-col h4::after { content: ''; position: absolute; bottom: 0; right: 0; width: 50px; height: 2px; background: var(--primary-color); }
.footer-col p, .footer-col ul { color: #bdc3c7; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 0.8rem; }
.footer-col a { color: #bdc3c7; transition: color 0.3s; }
.footer-col a:hover { color: var(--primary-color); }
.social-links a {
    display: inline-flex; align-items: center; justify-content: center;
    width: 40px; height: 40px; background-color: rgba(255,255,255,0.1);
    color: var(--white-color); border-radius: 50%; margin-left: 8px; transition: background-color 0.3s;
}
.social-links a:hover { background-color: var(--primary-color); }
.footer-col .contact-info i { margin-left: 10px; }
.footer-bottom { border-top: 1px solid #4a627c; padding: 20px 0; text-align: center; font-size: 0.9rem; color: #bdc3c7; }
.footer-bottom a { color: #f1c40f; font-weight: 500; }

/* --- Floating CTA Buttons --- */
.floating-cta { position: fixed; bottom: 20px; left: 20px; z-index: 999; display: flex; flex-direction: column; gap: 10px; }
.floating-cta a {
    width: 55px; height: 55px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: var(--white-color); font-size: 1.8rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    transition: transform 0.3s ease;
}
.floating-cta a:hover { transform: scale(1.1); }
.floating-cta .btn-whatsapp { background: #25D366; }
.floating-cta .btn-call { background: var(--primary-color); }

/* --- Back to Top Button --- */
.back-to-top-btn {
    position: fixed; bottom: 20px; right: 20px; z-index: 999;
    width: 50px; height: 50px; background-color: var(--secondary-color);
    color: var(--white-color); border-radius: 50%;
    display: none; align-items: center; justify-content: center;
    font-size: 1.2rem; box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    opacity: 0; visibility: hidden; transform: translateY(20px);
    transition: all 0.3s;
}
.back-to-top-btn.visible { display: flex; opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top-btn:hover { background-color: var(--dark-color); }


/* --- Media Queries (Tablet & Up) --- */
@media (min-width: 768px) {
    h1 { font-size: 3.2rem; }
    h2 { font-size: 2.5rem; }
    .hamburger-menu { display: none; }
    .main-nav { display: block; }
    .header-cta { display: inline-flex; align-items: center; gap: 8px; }
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .about-grid { grid-template-columns: 40% 1fr; gap: 3rem; }
    .about-content { text-align: right; }
    .projects-grid { grid-template-columns: repeat(2, 1fr); }
    .testimonial-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
    .weblite-promo-2 .container { flex-direction: row; justify-content: space-between; text-align: right; }
    /* אין צורך בכלל ל-why-us כאן, כי הוא כבר 2 עמודות מהמובייל */
}

/* --- Media Queries (Desktop & Up) --- */
@media (min-width: 992px) {
    .services-grid { grid-template-columns: repeat(3, 1fr); }
    .footer-grid { grid-template-columns: repeat(4, 1fr); }
    .projects-grid { grid-template-columns: repeat(3, 1fr); }

    /* --- הכלל הנכון לדסקטופ --- */
    .why-us-grid {
        grid-template-columns: repeat(4, 1fr); /* 4 עמודות בדסקטופ */
        gap: 2.5rem; /* הגדלנו חזרה רווח לדסקטופ */
    }

    /* מחזירים פונטים לגודל מקורי בדסקטופ */
    .why-us-item .icon {
        font-size: 2.8rem;
    }
    .why-us-item h3 {
        font-size: 1.3rem;
    }
    .why-us-item p {
        font-size: 0.95rem;
    }
}

@media (min-width: 1200px) {
    .projects-grid { grid-template-columns: repeat(4, 1fr); }
}