/*
 * style.css - סגנונות בסיסיים לאתר "עסקה טובה"
 * מבוסס על Bootstrap 5 (RTL)
 */

/* 1. איפוס וגופן בסיסי (Heebo) */
@import url('https://fonts.googleapis.com/css2?family=Heebo:wght@100..900&display=swap');

body {
    /* הגדרת גופן Heebo כברירת מחדל */
    font-family: 'Heebo', sans-serif;
    /* יישור טקסט לימין כברירת מחדל עבור RTL */
    text-align: right;
    color: #333333; /* צבע טקסט כללי כהה */
}

/* 2. הגדרות כותרות כלליות */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700; /* הדגשת כותרות */
    margin-bottom: 0.5em;
    color: #1a237e; /* כחול כהה (Deep Blue) כצבע מותג ראשי */
}

/* 3. Hero Section (החלק העליון) */
.hero-section {
    background: linear-gradient(135deg, #f7f9fc 0%, #e3f2fd 100%);
    color: #1a237e;
    padding-top: 6rem !important;
    padding-bottom: 6rem !important;
    min-height: 80vh; /* גובה מינימלי למילוי המסך */
}

.hero-section h1 {
    font-size: 3rem;
    font-weight: 900; /* כותרת חזקה וברורה */
    line-height: 1.2;
    color: #0d47a1; /* כחול עוד יותר כהה */
}

.hero-section .lead {
    font-size: 1.3rem;
    font-weight: 400;
    margin-top: 1.5rem;
}

/* 4. כפתורי קריאה לפעולה (CTA) */
.btn-primary {
    background-color: #ff9800; /* כתום אנרגטי (CTA Color) */
    border-color: #ff9800;
    font-weight: 700;
    padding: 0.75rem 2rem;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: #fb8c00;
    border-color: #fb8c00;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 152, 0, 0.3);
}

.btn-lg {
    font-size: 1.25rem;
}

/* 5. Features Section */
#features {
    padding-top: 4rem;
    padding-bottom: 4rem;
}

#features h2 {
    color: #1a237e;
}

#features h4 {
    color: #ff9800;
    margin-top: 1rem;
    font-size: 1.3rem;
}

.feature-icon {
    transition: transform 0.3s ease;
}

.feature-icon:hover {
    transform: scale(1.1);
}

/* 6. Products Section */
#products .card {
    transition: all 0.3s ease;
    border: none;
}

#products .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15) !important;
}

#products .card-img-top {
    height: 200px;
    object-fit: cover;
}

/* 7. How It Works Section */
#how-it-works {
    background-color: #e3f2fd; /* רקע תכלת בהיר לשלב-שלב */
    padding-top: 4rem;
    padding-bottom: 4rem;
}

#how-it-works h3 {
    color: #0d47a1;
}

.step-number {
    transition: transform 0.3s ease;
}

.step-number:hover {
    transform: rotate(360deg) scale(1.1);
}

/* 8. עיצוב האקורדיון של FAQ */
#faq .accordion-button {
    font-weight: 600;
    color: #1a237e;
    background-color: #e3f2fd; /* רקע תכלת לשאלה */
    font-size: 1.1rem;
}

#faq .accordion-button:not(.collapsed) {
    color: #ff9800; /* צבע הדגשה כשהשאלה פתוחה */
    background-color: #fff3e0;
    box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.125);
}

#faq .accordion-button:hover {
    background-color: #bbdefb;
}

#faq .accordion-body {
    background-color: #ffffff;
    border: 1px solid #e3f2fd;
    border-top: none;
    font-size: 1rem;
    line-height: 1.7;
}

/* 9. Final CTA Section (קריאה לפעולה סופית) */
.final-cta {
    background: linear-gradient(135deg, #1a237e 0%, #0d47a1 100%) !important;
    color: white !important;
    padding-top: 4rem !important;
    padding-bottom: 4rem !important;
}

.final-cta h2 {
    color: white;
}

.final-cta .btn-warning {
    background-color: #ffc107;
    border-color: #ffc107;
    color: #333333;
    font-weight: 700;
    transition: all 0.3s ease;
}

.final-cta .btn-warning:hover {
    background-color: #ffb300;
    border-color: #ffb300;
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(255, 193, 7, 0.4);
}

/* 10. Footer */
footer {
    background-color: #1c1c1c !important; /* רקע כהה לפוטר */
    font-size: 0.9rem;
}

footer h5 {
    color: white !important;
    text-align: right;
}

footer a {
    color: #cccccc !important;
    text-decoration: none;
    transition: color 0.3s;
}

footer a:hover {
    color: #ff9800 !important;
}

footer .list-unstyled {
    list-style: none;
    padding-right: 0;
}

footer .list-unstyled li {
    text-align: right;
}

.social-links {
    padding-right: 0;
}

.social-links a {
    color: #cccccc !important;
    transition: all 0.3s ease;
}

.social-links a:hover {
    color: #ff9800 !important;
    transform: scale(1.2);
}

/* 11. Navbar Customization */
.navbar-brand {
    font-size: 1.5rem;
    color: #1a237e !important;
}

.navbar-brand:hover {
    color: #ff9800 !important;
}

.nav-link {
    font-weight: 500;
    color: #333333 !important;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #ff9800 !important;
}

/* 12. כללי - ריווח של סקשנים */
section {
    padding-top: 4rem;
    padding-bottom: 4rem;
}

/* 13. Responsive Design */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .hero-section .lead {
        font-size: 1.1rem;
    }
    
    .step-number {
        width: 60px !important;
        height: 60px !important;
        font-size: 1.5rem !important;
    }
}

/* 14. Smooth Scroll */
html {
    scroll-behavior: smooth;
}

/* 15. קישורים כלליים */
a {
    transition: all 0.3s ease;
}


/* Hero Section with Background Image */
.hero-with-bg {
    position: relative;
    background-image: url('baner.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 500px;
    display: flex;
    align-items: center;
    color: white;
}

/* Dark Overlay for Better Text Readability */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-with-bg {
        min-height: 400px;
        padding: 60px 0;
    }

    .hero-with-bg h1 {
        font-size: 1.8rem;
    }
}

/* 16. Cookie Consent Banner */
#cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #1a237e 0%, #0d47a1 100%);
    color: white;
    padding: 15px 20px;
    z-index: 9999;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

#cookie-banner.cookie-banner-hide {
    animation: slideDown 0.3s ease-out forwards;
}

@keyframes slideDown {
    from {
        transform: translateY(0);
        opacity: 1;
    }
    to {
        transform: translateY(100%);
        opacity: 0;
    }
}

.cookie-banner-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
}

.cookie-banner-text {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 250px;
}

.cookie-banner-text i {
    font-size: 1.5rem;
    color: #ff9800;
}

.cookie-banner-text span {
    font-size: 0.95rem;
    line-height: 1.5;
}

.cookie-banner-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.cookie-link {
    color: #90caf9;
    text-decoration: underline;
    font-size: 0.9rem;
    white-space: nowrap;
}

.cookie-link:hover {
    color: #bbdefb;
}

.cookie-accept-btn {
    background-color: #ff9800;
    color: white;
    border: none;
    padding: 10px 25px;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.cookie-accept-btn:hover {
    background-color: #fb8c00;
    transform: scale(1.05);
}

@media (max-width: 576px) {
    #cookie-banner {
        padding: 10px 12px;
    }

    .cookie-banner-content {
        flex-direction: row;
        flex-wrap: nowrap;
        gap: 10px;
        align-items: center;
    }

    .cookie-banner-text {
        min-width: unset;
        gap: 8px;
    }

    .cookie-banner-text i {
        display: none;
    }

    .cookie-banner-text span {
        font-size: 0.75rem;
        line-height: 1.3;
    }

    .cookie-banner-actions {
        flex-direction: column;
        gap: 5px;
        flex-shrink: 0;
    }

    .cookie-link {
        font-size: 0.7rem;
    }

    .cookie-accept-btn {
        padding: 6px 16px;
        font-size: 0.8rem;
    }
}