﻿/* ============================================================
   משתנים גלובליים
============================================================ */
:root {
    --color-primary: #0066cc;
    --color-primary-dark: #004a99;
    --color-accent: #eef6fb;
    --color-bg-light: rgba(247, 247, 247, 0.8);
    --color-bg-white: #fff;
    --color-text: #222;
    --color-heading: #111;
    --color-success-bg: #d4edda;
    --color-success-text: #155724;
    --font-main: 'Segoe UI', Arial, sans-serif;
    --max-width: 1200px;
    --background-image: url('/images/background.jpg');
    --font-secondary: 'Inter', sans-serif;
    --text-color-light: #f5f5f5;
    --text-color-heading: #e0f0ff;
    --text-highlight: #ffd700;
    --overlay-dark: rgba(0, 0, 0, 0.6);
    --color-button-text: #fff;
}

/* ============================================================
   כללי
============================================================ */
*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: var(--font-main);
    font-size: 16px;
    line-height: 1.6;
    background: var(--background-image) center/cover no-repeat, var(--color-bg-white);
}

h1, h2, h3 {
    margin: 0 0 20px;
}

section {
    position: relative;
    padding: 60px 20px;
    margin-bottom: 60px;
    text-align: center;
    color: var(--text-color-light);
    font-family: var(--font-secondary);
}

    section .overlay, .hero .overlay {
        position: absolute;
        top: 0;
        right: 0;
        bottom: 0;
        left: 0;
        background: var(--overlay-dark);
        z-index: 0;
    }

    section .container, .hero-content {
        position: relative;
        z-index: 1;
        max-width: var(--max-width);
        margin: 0 auto;
    }

        section h2, .hero-content h1 {
            font-size: 2.5rem;
            color: var(--text-color-heading);
            margin-bottom: 20px;
            letter-spacing: 1px;
            font-family: var(--font-secondary);
        }

.overlay {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: var(--overlay-dark);
    z-index: 0;
}

/* ============================================================
   כפתור ראשי
============================================================ */
.button-primary {
    display: inline-block;
    background: var(--color-primary);
    color: var(--color-button-text);
    padding: 12px 24px;
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s;
}

    .button-primary:hover,
    .button-primary:focus {
        background: var(--color-primary-dark);
    }

/* ============================================================
   HERO
============================================================ */
.hero {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 80vh; /* לפחות 80% גובה מסך */
    text-align: center;
    padding: 20px;
    background: var(--background-image) center/cover no-repeat;
    color: var(--text-color-light);
    font-family: var(--font-secondary);
    margin-bottom: 60px;
}

    .hero .overlay {
        position: absolute;
        top: 0;
        right: 0;
        bottom: 0;
        left: 0;
        background: rgba(0, 0, 0, 0.5); /* טיפה כהה יותר */
        z-index: 0;
    }

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
    animation: fadeInUp 1s ease-out;
}

    .hero-content h1 {
        font-size: clamp(2.5rem, 5vw, 4rem); /* רספונסיבי */
        color: var(--text-color-heading);
        margin-bottom: 20px;
        letter-spacing: 1px;
        text-transform: uppercase;
        text-shadow: 0 2px 6px rgba(0,0,0,0.8);
    }

    .hero-content p {
        font-size: 1.25rem;
        color: var(--text-color-light);
        line-height: 1.8;
        max-width: 600px;
        margin: 0 auto 20px auto;
        text-shadow: 0 1px 3px rgba(0,0,0,0.6);
    }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* ============================================================
   WHY CHOOSE US
============================================================ */
.why-choose-us ul {
    list-style: none;
    padding: 0;
    max-width: 600px;
    margin: 0 auto;
    text-align: left;
}

.why-choose-us li {
    margin-bottom: 10px;
    font-size: 1rem;
    color: var(--text-color-light);
    line-height: 1.6;
}

/* ============================================================
   TESTIMONIALS
============================================================ */
.testimonials blockquote {
    font-style: italic;
    font-size: 1.25rem;
    color: var(--text-color-light);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.8;
}

/* ============================================================
   CONTACT
============================================================ */
.contact p {
    max-width: 600px;
    margin: 20px auto 0 auto;
    font-size: 1rem;
    color: var(--text-color-light);
}

.lead-form {
    max-width: 400px;
    margin: 0 auto;
    padding: 0 10px;
}

.form-group {
    margin-bottom: 15px;
    text-align: left;
}

    .form-group label {
        display: block;
        margin-bottom: 5px;
        font-weight: bold;
        color: var(--text-color-light);
    }

    .form-group input {
        width: 100%;
        padding: 12px;
        border: 1px solid #ccc;
        border-radius: 4px;
        font-size: 1rem;
    }

.message-success {
    background: var(--color-success-bg);
    color: var(--color-success-text);
    padding: 10px;
    margin-bottom: 20px;
    border-radius: 4px;
    font-weight: bold;
}

/* ============================================================
   footer
============================================================ */

footer {
    background-color: rgba(238, 246, 251, 0.8); /* תכלת־אפור בהיר שקוף קצת */
    color: var(--color-primary-dark); /* טקסט כחול כהה */
    font-size: 1.1rem; /* מגדיל את הטקסט */
    text-align: center; /* ממרכז את הטקסט */
    padding: 1rem 0; /* רווחים אנכיים */
}

    footer a {
        color: var(--color-primary-dark); /* גם הלינקים כחולים כהים */
    }


/* ============================================================
   MEDIA QUERIES — טאבלטים ומעלה
============================================================ */
@media (min-width: 768px) {
    .hero {
        padding: 100px 20px;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .services .service-list {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }

    .services .service-item {
        flex: 1 1 250px;
        max-width: 250px;
    }

    section h2, .hero-content h1 {
        font-size: 3rem;
    }

    .about p,
    .why-choose-us li,
    .testimonials blockquote,
    .contact p {
        font-size: 1.125rem;
    }

    section, .hero {
        margin-bottom: 80px;
    }
}

/* ============================================================
   MEDIA QUERIES — מחשבים גדולים
============================================================ */
@media (min-width: 1024px) {
    .hero-content h1 {
        font-size: 3rem;
    }

    .container {
        padding: 40px;
    }

    .about .container,
    .why-choose-us .container,
    .testimonials .container,
    .contact .container {
        max-width: 1000px;
    }

    .about p,
    .why-choose-us li,
    .testimonials blockquote,
    .contact p {
        font-size: 1.25rem;
    }

    section, .hero {
        margin-bottom: 100px;
    }
}
