:root {
    --primary: #2c3e50;
    --primary-light: #3d566e;
    --secondary: #3498db;
    --accent: #e74c3c;
    --light: #f8f9fa;
    --dark: #2c3e50;
    --text: #333;
    --text-light: #777;
    --border-radius: 8px;
    --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Heebo', sans-serif;
    line-height: 1.7;
    color: var(--text);
    direction: rtl;
    background-color: var(--light);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* ניווט */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: var(--transition);
}

.navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo img {
    height: 40px;
    vertical-align: middle;
}

.nav-links {
    display: flex;
    list-style: none;
    align-items: center;
}

.nav-links li {
    margin-right: 25px;
    margin-left: 0;
}

.nav-links a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 500;
    transition: var(--transition);
    padding: 5px 0;
    position: relative;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--secondary);
}

.hamburger {
    display: none;
    font-size: 24px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 5px;
}

/* כפתור WhatsApp */
.whatsapp-float {
    position: fixed;
    bottom: 25px;
    right: 25px;
    background: #25D366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    z-index: 101;
    transition: var(--transition);
    text-decoration: none;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    background: #128C7E;
}

/* תוכן ראשי */
.main-content {
    margin-top: 120px;
    padding: 40px 0;
}

/* סקשן Hero */
.hero {
    background-color: #e0efff;
    padding: 80px 0;
    text-align: center;
    margin-bottom: 20px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.hero h1 {
    color: var(--primary);
    font-size: clamp(2.5rem, 5vw, 3.2rem);
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero p {
    color: var(--text-light);
    font-size: clamp(1.1rem, 3vw, 1.3rem);
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    border: 2px solid transparent;
}

.btn-primary {
    background: var(--secondary);
    color: white;
}

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

/* קטגוריות */
.category-bar {
    background: white;
    padding: 15px 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    position: sticky;
    top: 70px;
    width: 100%;
    z-index: 999;
}

.categories {
    display: flex;
    overflow-x: auto;
    white-space: nowrap;
    padding-bottom: 10px;
}

.categories::-webkit-scrollbar {
    height: 6px;
}

.categories::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 5px;
}

.categories a {
    margin-left: 20px;
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    padding: 8px 15px;
    border-radius: 20px;
    transition: var(--transition);
    flex-shrink: 0;
}

.categories a:hover {
    background: #f0f0f0;
    color: var(--secondary);
}

/* סקציות */
section {
    padding: 60px 15px;
    background: white;
    margin-bottom: 20px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

h2 {
    text-align: center;
    margin-bottom: 40px;
    color: var(--primary);
    position: relative;
    padding-bottom: 15px;
}

h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 50%;
    transform: translateX(50%);
    width: 80px;
    height: 3px;
    background: var(--secondary);
}

/* כרטיסי שירות */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--light);
    padding: 30px;
    border-radius: var(--border-radius);
    transition: var(--transition);
    border: 1px solid #e9ecef;
}

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

.service-card i {
    font-size: 40px;
    color: var(--secondary);
    margin-bottom: 20px;
}

.service-card h3 {
    margin-bottom: 15px;
    color: var(--primary);
}

.service-card p {
    color: var(--text-light);
    line-height: 1.6;
}

/* טופס קשר */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    font-family: 'Heebo', sans-serif;
    transition: var(--transition);
    background-color: #fff;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--secondary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(52,152,219,0.2);
}

.submit-btn {
    background: var(--secondary);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    transition: var(--transition);
    width: 100%;
}

.submit-btn:hover {
    background: #2980b9;
}

/* בלוג */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.blog-card {
    border: 1px solid #eee;
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

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

.blog-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.blog-content h3 {
    margin-bottom: 10px;
    color: var(--primary);
}

.blog-content p {
    color: var(--text-light);
    margin-bottom: 15px;
    flex-grow: 1;
}

.read-more {
    color: var(--secondary);
    text-decoration: none;
    font-weight: 600;
}

/* רספונסיביות */
@media (max-width: 768px) {
    .hamburger {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 70px;
        right: -100%;
        width: 80%;
        height: calc(100vh - 70px);
        background: white;
        flex-direction: column;
        align-items: center;
        padding-top: 20px;
        transition: right 0.3s ease-in-out;
        box-shadow: -5px 0 10px rgba(0,0,0,0.1);
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links li {
        margin: 15px 0;
        width: 100%;
        text-align: center;
    }
    
    .nav-links a.btn {
        width: 80%;
        margin: 10px auto;
    }

    .category-bar {
        top: 60px;
        padding: 10px 15px;
    }

    .main-content {
        margin-top: 100px;
    }

    section {
        padding: 40px 15px;
    }

    .hero h1 {
        font-size: 2.5em;
    }

    .hero p {
        font-size: 1.1em;
    }
}

/* Newsletter Banner Styles */
.newsletter-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--primary);
    color: white;
    padding: 20px 40px;
    box-shadow: 0 -5px 15px rgba(0,0,0,0.2);
    z-index: 10000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    transform: translateY(100%);
    transition: transform 0.5s ease-in-out;
}

.newsletter-banner.is-visible {
    transform: translateY(0);
}

.newsletter-content h4 {
    margin: 0 0 5px 0;
    font-size: 1.2em;
}

.newsletter-content p {
    margin: 0;
    opacity: 0.9;
}

.newsletter-form {
    display: flex;
    gap: 10px;
}

.newsletter-form input[type="email"] {
    min-width: 250px;
    padding: 10px 15px;
    border: 1px solid var(--primary-light);
    border-radius: var(--border-radius);
    background-color: var(--primary-light);
    color: white;
}

.newsletter-form input[type="email"]::placeholder {
    color: #ccc;
}

.newsletter-form button {
    background-color: var(--secondary);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: var(--border-radius);
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.newsletter-form button:hover {
    background-color: #2980b9;
}

.close-banner-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    line-height: 1;
}

/* Responsive for Newsletter */
@media (max-width: 768px) {
    .newsletter-banner {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }
    .newsletter-content {
        margin-bottom: 15px;
    }
    .newsletter-form {
        width: 100%;
        flex-direction: column;
    }
    .newsletter-form input[type="email"] {
        min-width: 100%;
        text-align: center;
    }
    .close-banner-btn {
        top: 5px;
        right: 5px;
    }
}