/* =================================================================
   TABLE OF CONTENTS
   -----------------------------------------------------------------
   1.  ROOT VARIABLES & RESET
   2.  ICONS FONT (Placeholder)
   3.  GENERAL & UTILITY CLASSES
   4.  BUTTONS
   5.  HEADER
   6.  HERO SECTION
   7.  WEBLITE PROMO SECTIONS
   8.  SERVICES SECTION
   9.  ABOUT SECTION
   10. TESTIMONIALS SECTION
   11. CONTACT SECTION
   12. FOOTER
   13. RESPONSIVE DESIGN (MOBILE-FIRST)
   ================================================================= */

/* 1. ROOT VARIABLES & RESET
   ================================================================= */
:root {
    --primary-color: #ffc107; /* A vibrant, electric yellow */
    --secondary-color: #0d2c4a; /* A deep, trustworthy navy blue */
    --dark-color: #0a2238;
    --light-color: #f8f9fa;
    --text-color: #343a40;
    --text-muted: #6c757d;
    --white-color: #ffffff;
    --border-color: #dee2e6;

    --font-family: 'Heebo', sans-serif;
    --transition-speed: 0.3s ease;
    --border-radius: 8px;
    --shadow-sm: 0 2px 15px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 5px 25px rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px; /* Offset for sticky header */
}

body {
    font-family: var(--font-family);
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-color);
    background-color: var(--white-color);
    direction: rtl;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: var(--transition-speed);
}

a:hover {
    color: var(--secondary-color);
}

ul {
    list-style: none;
}



/* 3. GENERAL & UTILITY CLASSES
   ================================================================= */
.container {
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 15px;
}

section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--secondary-color);
    margin-bottom: 10px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
}

/* 4. BUTTONS
   ================================================================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    font-size: 1rem;
    font-weight: 700;
    border-radius: var(--border-radius);
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition-speed);
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--secondary-color);
}
.btn-primary:hover {
    background-color: #ffca2c;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: var(--white-color);
}
.btn-secondary:hover {
    background-color: var(--dark-color);
    color: var(--white-color);
}

.btn-tertiary {
    background-color: transparent;
    color: var(--white-color);
    border-color: var(--primary-color);
}
.btn-tertiary:hover {
    background-color: var(--primary-color);
    color: var(--secondary-color);
}


/* 5. HEADER
   ================================================================= */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: var(--secondary-color);
    padding: 15px 0;
    transition: var(--transition-speed);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.site-header.scrolled {
    background-color: var(--dark-color);
    padding: 10px 0;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--white-color);
    font-size: 1.2rem;
    font-weight: 800;
}

.logo .icon-flash-logo {
    color: var(--primary-color);
    font-size: 1.8rem;
}

.main-nav {
    display: none; /* Hidden on mobile */
}

.main-nav ul {
    display: flex;
    gap: 30px;
}

.main-nav a {
    color: var(--white-color);
    font-weight: 500;
    padding-bottom: 5px;
    border-bottom: 2px solid transparent;
}
.main-nav a:hover, .main-nav a.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.header-cta {
    display: flex;
    align-items: center;
    gap: 15px;
}

.mobile-toggle {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 10;
}

.mobile-toggle span {
    width: 30px;
    height: 3px;
    background: var(--white-color);
    border-radius: 10px;
    transition: all 0.3s linear;
    position: relative;
    transform-origin: 1px;
}

/* 6. HERO SECTION
   ================================================================= */
.hero {
    background: linear-gradient(rgba(13, 44, 74, 0.85), rgba(13, 44, 74, 0.85)), url('../img/background.webp') no-repeat center center/cover;
    min-height: 70vh;
    display: flex;
    align-items: center;
    text-align: center;
    padding-top: 120px; /* Header offset */
    color: var(--white-color);
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 15px;
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.hero-description {
    font-size: 1.1rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
}


/* 7. WEBLITE PROMO SECTIONS
   ================================================================= */
.weblite-promo {
    background-color: var(--dark-color);
    color: var(--white-color);
    padding: 20px 0;
    text-align: center;
}
.weblite-promo .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}
.weblite-promo p {
    font-size: 1.1rem;
}
.weblite-promo .promo-cta {
    font-weight: 700;
    text-decoration: underline;
    color: var(--primary-color);
}

.weblite-promo-detailed {
    background-color: var(--light-color);
}

.weblite-promo-detailed .promo-content {
    display: grid;
    gap: 30px;
    align-items: center;
}
.weblite-promo-detailed .promo-title {
    color: var(--secondary-color);
    font-size: 2rem;
}
.weblite-promo-detailed ul {
    margin: 20px 0;
    padding-right: 20px;
    list-style: none;
}
.weblite-promo-detailed li {
    padding: 5px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}
.weblite-promo-detailed .icon-check {
    color: var(--primary-color);
}
.weblite-promo-detailed .price-info {
    font-size: 1.3rem;
    font-weight: 800;
    margin-bottom: 20px;
}

/* 8. SERVICES SECTION
   ================================================================= */
.services-grid {
    display: grid;
    gap: 30px;
    grid-template-columns: 1fr;
}

.service-card {
    background-color: var(--white-color);
    padding: 30px;
    text-align: center;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-speed);
    border: 1px solid var(--border-color);
}
.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
}
.service-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}
.service-card h3 {
    font-size: 1.3rem;
    color: var(--secondary-color);
    margin-bottom: 10px;
}
.service-card p {
    color: var(--text-muted);
}

/* 9. ABOUT SECTION
   ================================================================= */
.about {
    background-color: var(--light-color);
}
.about-content {
    display: grid;
    gap: 30px;
    align-items: center;
}
.about-image img {
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
}
.about-description {
    margin-bottom: 20px;
}
.features-list {
    padding: 0;
    list-style: none;
}
.features-list li {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}
.features-list .icon-check {
    color: var(--primary-color);
}


/* 10. TESTIMONIALS SECTION
   ================================================================= */
.testimonials-grid {
    display: grid;
    gap: 30px;
}
.testimonial-card {
    background-color: var(--light-color);
    padding: 25px;
    border-radius: var(--border-radius);
    border-right: 5px solid var(--primary-color);
}
.testimonial-card p {
    font-style: italic;
    margin-bottom: 15px;
}
.author-info {
    text-align: left;
}
.stars {
    color: var(--primary-color);
}

/* 11. CONTACT SECTION
   ================================================================= */
.contact-wrapper {
    display: grid;
    gap: 40px;
}
.contact-form .form-group {
    margin-bottom: 20px;
}
.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-family: var(--font-family);
}
.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 5px rgba(255,193,7,0.5);
}
.contact-details h3 {
    margin-bottom: 15px;
    color: var(--secondary-color);
}
.contact-details p {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.contact-details a {
    color: var(--text-color);
}


/* 12. FOOTER
   ================================================================= */
.site-footer {
    background-color: var(--dark-color);
    color: var(--light-color);
    padding: 60px 0 20px;
}
.footer-grid {
    display: grid;
    gap: 40px;
    margin-bottom: 40px;
}
.footer-title {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-bottom: 15px;
}
.footer-column p {
    color: var(--text-muted);
}
.social-links {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}
.social-links a {
    color: var(--white-color);
    font-size: 1.5rem;
}
.footer-links li a {
    color: var(--text-muted);
}
.footer-links li a:hover {
    color: var(--primary-color);
    padding-right: 5px;
}
.contact-info li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}
.contact-info a {
    color: var(--text-muted);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-muted);
}
.weblite-credit a {
    color: var(--white-color);
    font-weight: bold;
}


/* 13. RESPONSIVE DESIGN (MOBILE-FIRST)
   ================================================================= */
/* Small tablets */
@media (min-width: 768px) {
    .hero-buttons {
        flex-direction: row;
        justify-content: center;
    }
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .weblite-promo .container {
        flex-direction: row;
        justify-content: center;
    }
    .weblite-promo-detailed .promo-content {
        grid-template-columns: 1fr 1fr;
    }
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .contact-wrapper {
        grid-template-columns: 2fr 1fr;
    }
    .footer-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Desktops */
@media (min-width: 992px) {
    .header-cta .btn-tertiary { display: none; } /* Hide phone button next to nav on desktop */
    .mobile-toggle { display: none; }

    .main-nav {
        display: block;
    }

    .hero-title {
        font-size: 4rem;
    }
    .services-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    .about-content {
        grid-template-columns: 1fr 1fr;
    }
}
/* =================================================================
   9B. UPGRADED ABOUT SECTION
   ================================================================= */

.about-upgraded {
    background-color: var(--light-color);
}

/* --- Value Cards --- */
.value-cards-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 40px;
    text-align: center;
}

.value-card {
    background-color: var(--white-color);
    padding: 30px 25px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    border-bottom: 4px solid transparent;
    transition: var(--transition-speed);
}

.value-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
    border-bottom-color: var(--primary-color);
}

.card-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.card-title {
    font-size: 1.25rem;
    color: var(--secondary-color);
    margin-bottom: 10px;
}

.card-text {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* --- Experience Section --- */
.experience-section {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    align-items: center;
    margin-top: 80px;
    padding-top: 60px;
    border-top: 1px solid var(--border-color);
}

.experience-image img {
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
}

.experience-content {
    text-align: right;
}

.experience-counter {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
    background: linear-gradient(to left, var(--primary-color), #ffd452);
    color: var(--secondary-color);
    padding: 15px 25px;
    border-radius: var(--border-radius);
    width: fit-content;
}

.counter-number {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1;
}

.counter-text {
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.4;
}

.experience-title {
    font-size: 1.5rem;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.experience-text {
    margin-bottom: 30px;
}


/* --- Responsive Adjustments for Upgraded About --- */
@media (min-width: 768px) {
    .value-cards-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .experience-section {
        grid-template-columns: 1fr 1.5fr; /* Image takes less space */
        gap: 50px;
    }
}
/* =================================================================
   11B. UPGRADED CONTACT SECTION
   ================================================================= */

.contact-upgraded {
    background: linear-gradient(to top, var(--white-color) 0%, var(--light-color) 100%);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin-top: 40px;
}

.contact-info-panel,
.contact-form-panel {
    padding: 30px;
    border-radius: var(--border-radius);
    background-color: var(--white-color);
    box-shadow: var(--shadow-sm);
}

.panel-title {
    font-size: 1.5rem;
    color: var(--secondary-color);
    margin-bottom: 8px;
}

.panel-description {
    color: var(--text-muted);
    margin-bottom: 25px;
}

/* --- Info Panel Specifics --- */
.contact-options {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-card {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    border-radius: var(--border-radius);
    color: var(--white-color);
    transition: var(--transition-speed);
}

.contact-card:hover {
    transform: scale(1.03);
}

.contact-card.phone {
    background: linear-gradient(135deg, #2a9d8f, #264653);
}

.contact-card.whatsapp {
    background: linear-gradient(135deg, #25D366, #128C7E);
}

.contact-card .card-icon {
    flex-shrink: 0;
}

.contact-card .card-content h4 {
    margin: 0;
    font-size: 1.1rem;
}

.contact-card .card-content span {
    font-size: 0.9rem;
    opacity: 0.9;
}


/* --- Form Panel Specifics --- */
.contact-form-panel .form-group {
    margin-bottom: 20px;
}

.contact-form-panel label {
    display: block;
    font-weight: 500;
    margin-bottom: 5px;
    font-size: 0.9rem;
}

.contact-form-panel input,
.contact-form-panel textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-family: var(--font-family);
    transition: var(--transition-speed);
}
.contact-form-panel input:focus,
.contact-form-panel textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 5px rgba(255,193,7,0.5);
}

.contact-form-panel .btn {
    width: 100%;
}


/* --- Responsive Adjustments for Upgraded Contact --- */
@media (min-width: 992px) {
    .contact-grid {
        grid-template-columns: 1fr 1fr;
    }
}
/* =================================================================
   14. FIXES & ADJUSTMENTS
   ================================================================= */

/* --- Fix for Mobile Header Phone Button --- */
.header-cta .btn-tertiary {
    padding: 3px 7px; /* מקטין את הריפוד הפנימי */
    font-size: 0.9rem;  /* מקטין את הפונט */
    border-width: 1px;  /* הופך את הגבול לעדין יותר */
    background: transparent;
}

.header-cta .btn-tertiary:hover {
    background-color: var(--primary-color);
    color: var(--secondary-color);
}

/* מסתיר את הטקסט ומשאיר רק אייקון במסכים ממש צרים */
@media (max-width: 360px) {
    .header-cta .btn-tertiary span {
        display: none;
    }
    .header-cta .btn-tertiary {
        padding: 8px; /* ריפוד ריבועי לאייקון בלבד */
    }
}
/* =================================================================
   7B. UPGRADED WEBLITE PROMO SECTION
   ================================================================= */

.weblite-promo-upgraded {
    padding: 80px 0;
    background: var(--light-color);
}

.promo-box {
    background-color: var(--white-color);
    border-radius: 16px; /* A more modern, rounded look */
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    padding: 40px;
    text-align: center;
    border: 1px solid var(--border-color);
}

.promo-header {
    margin-bottom: 40px;
}

.promo-icon {
    color: var(--primary-color);
    width: 40px;
    height: 40px;
    margin: 0 auto 15px;
}

.promo-title {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--secondary-color);
    margin-bottom: 10px;
}

.promo-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 500px;
    margin: 0 auto;
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
    margin-bottom: 40px;
}

.feature-item {
    padding: 20px;
    background-color: var(--light-color);
    border-radius: var(--border-radius);
}

.feature-item svg {
    color: var(--secondary-color);
    margin-bottom: 10px;
}

.feature-item h4 {
    font-size: 1.1rem;
    color: var(--dark-color);
    margin-bottom: 5px;
}

.feature-item p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.promo-footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
}

.price-tag {
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--text-color);
}

.price-tag span {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--secondary-color);
}

/* --- Responsive for Upgraded Promo --- */
@media (min-width: 768px) {
    .features-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .promo-footer {
        flex-direction: row;
        justify-content: space-between;
    }
}
/* --- Mobile Menu Styles --- */
@media (max-width: 991px) {
    .main-nav {
        display: block;
        position: absolute;
        top: 100%; /* ממקם את התפריט בדיוק מתחת ל-header */
        right: 0;
        background-color: var(--dark-color);
        width: 100%;
        
        /* מאפסים ריפודים מיותרים */
        padding: 0;
        
        /* הסתרה כברירת מחדל */
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease-out;
    }

    .main-nav.active {
        max-height: 500px; /* גובה מספיק להצגת כל הקישורים */
        /* מוסיפים ריפוד רק כשהתפריט פתוח */
        padding: 20px 0; 
    }

    .main-nav ul {
        /* איפוס מלא של ברירות המחדל של הרשימה */
        margin: 0;
        padding: 0;
        list-style: none;
        
        /* הגדרות flex ליישור הקישורים */
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    /* אנימציה של כפתור ההמבורגר ל-"X" */
    .mobile-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    .mobile-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    .mobile-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }
}