/* =============================
   RESET בסיס
============================= */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    direction: rtl;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: #f5f5f5;
    font-family: 'Heebo', sans-serif;
    color: #111;
}

/* קישורים ותמונות */
a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; }

/* עטיפה כללית */
.container {
    width: 100%;
    max-width: 1180px;
    margin: auto;
    padding: 0 16px;
}

/* =============================
   HEADER – שחור + אדום
============================= */

/* גם site-header וגם main-header משתמשים באותו סגנון */
.site-header,
.main-header {
    background: #000;
    width: 100%;
    padding: 12px 0;
    position: sticky;
    top: 0;
    z-index: 9999;
    box-shadow: 0 4px 20px rgba(229, 57, 53, 0.25); /* אדום, בלי כתום */
}

/* עטיפת תוכן ההדר */
.header-inner,
.header-wrap {
    max-width: 1180px;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
}

/* לוגו – תואם גם header-logo, site-logo וגם logo */
.header-logo img,
.site-logo,
.logo img {
    height: 60px;
    width: auto;
    border-radius: 50%;
    filter: drop-shadow(0 0 8px rgba(229, 57, 53, 0.6)); /* אדום */
    transition: 0.2s;
}

.header-logo img:hover,
.site-logo:hover,
.logo img:hover {
    transform: scale(1.05);
}

/* ניווט – מאחד main-nav, header-nav, nav-menu */
.main-nav ul,
.header-nav,
.nav-menu {
    display: flex;
    align-items: center;
    gap: 30px;
    margin: 0;
    padding: 0;
    list-style: none;
}

/* קישורי תפריט */
.main-nav a,
.nav-link,
.nav-menu a {
    color: #fff;
    font-size: 1rem;
    font-weight: 400;
    text-decoration: none;
    transition: 0.2s;
}

.main-nav a:hover,
.main-nav a.active,
.nav-link:hover,
.nav-link.active,
.nav-menu a:hover,
.nav-menu a.active {
    color: #e53935; /* אדום */
    font-weight: 500;
}

/* כפתור טלפון – מאחד header-call-btn + header-phone */
.header-call-btn,
.header-phone {
    background: #e53935;          /* אדום */
    color: #fff;
    padding: 10px 22px;
    border-radius: 999px;
    font-size: 1rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    box-shadow: 0 0 12px rgba(229, 57, 53, 0.55);
    transition: 0.25s;
    border: none;
}

.header-call-btn:hover,
.header-phone:hover {
    background: #b71c1c;  /* אדום כהה */
    box-shadow: 0 0 18px rgba(183, 28, 28, 0.7);
}

.phone-icon { font-size: 1.2rem; }

/* המבורגר מובייל */
.mobile-toggle,
.menu-toggle {
    background: none;
    border: none;
    color: #fff;
    font-size: 28px;
    cursor: pointer;
    display: none;
}

/* מצב פתוח במובייל – לתפריט */
body.nav-open .main-nav,
body.nav-open .nav-menu {
    display: flex !important;
    flex-direction: column;
    background: #000;
    position: absolute;
    top: 64px;
    right: 0;
    width: 70%;
    padding: 20px;
    gap: 18px;
    border-left: 1px solid #222;
    z-index: 999;
}

/* =============================
   כפתורים כלליים
============================= */

.btn {
    display: inline-block;
    padding: 12px 22px;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    border: none;
}

/* ראשי – אדום */
.btn-primary {
    background: #e53935;
    color: #fff;
}

.btn-primary:hover {
    background: #b71c1c;
}

/* משני לבן */
.btn-secondary {
    background: transparent;
    border: 2px solid #fff;
    color: #fff;
}

/* קו מתאר אדום */
.btn-outline {
    background: transparent;
    border: 2px solid #e53935;
    color: #e53935;
}

.btn-outline:hover {
    background: #e53935;
    color: #fff;
}

/* כפתור מלא לרוחב */
.full-btn {
    width: 100%;
    margin-top: 14px;
}

/* =============================
   HERO – דף הבית
============================= */

.hero {
    position: relative;
    height: 70vh;
    background: url('/assets/img/hero_car.jpg') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
}

.hero-content {
    position: relative;
    max-width: 650px;
    text-align: center;
    z-index: 2;
}

.hero-title,
.hero h1 {
    font-size: 3.3rem;
    margin: 0 0 15px;
    font-weight: 800;
}

.hero-sub,
.hero p {
    font-size: 1.2rem;
    margin: 0 0 24px;
    opacity: 0.95;
}

.hero-buttons,
.hero-cta {
    margin-top: 30px;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.hero-buttons .btn-primary,
.hero-cta .btn-primary {
    padding: 14px 30px;
    border-radius: 30px;
    font-size: 1.05rem;
}

.hero-buttons .btn-outline,
.hero-cta .btn-outline {
    padding: 12px 28px;
    border-radius: 30px;
    font-size: 1.05rem;
}

/* =============================
   סקשן יתרונות / למה אצלנו
============================= */

.benefits,
.benefits-section,
.why-us {
    padding: 80px 0;
}

.benefits h2,
.benefits-section h2,
.why-us h2 {
    text-align: center;
    margin-bottom: 35px;
    font-size: 2rem;
}

.benefits-grid,
.why-grid,
.benefits-section .benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
}

.benefit-card,
.why-card {
    background: #fff;
    padding: 24px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.06);
}

.benefit-card h3,
.why-card h3 {
    margin-top: 0;
    font-size: 1.2rem;
}

/* =============================
   כרטיסי רכבים – דף הבית / קטלוג
============================= */

.cards-grid,
.cars-grid,
.featured-section .cards-grid,
.cars-page .cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 24px;
}

.car-card {
    position: relative;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    transition: 0.25s ease;
}

.car-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.15);
}

.car-card-image,
.car-img {
    width: 100%;
    height: 190px;
    background-size: cover;
    background-position: center;
}

/* גוף הכרטיס */
.car-card-body,
.car-info {
    padding: 16px;
    text-align: right;
}

.car-card-body h3,
.car-info h3 {
    margin: 0 0 8px;
    font-size: 1.05rem;
    font-weight: 700;
}

.car-card-meta,
.car-short,
.cars-page .car-card-short {
    color: #555;
    font-size: 0.9rem;
    margin: 6px 0;
}

.car-card-more,
.car-more {
    display: inline-block;
    margin-top: 8px;
    color: #e53935;
    font-weight: 600;
    font-size: 0.9rem;
}

/* סטיקר – כרטיסים */
.card-sticker,
.car-sticker,
.sticker,
.cars-page .card-sticker {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 6px 14px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.8rem;
    color: #fff;
    background: #e53935; /* ברירת מחדל אדומה */
    z-index: 3;
}

/* צבעי סטיקר לפי סוג */
.deal_day,
.sticker-new { background: #0bbf56; }        /* ירוק – דיל מיוחד */
.deal_week { background: #1e88e5; }          /* כחול */
.sale,
.sticker-hot { background: #e53935; }        /* אדום */
.new_stock { background: #ffd600; color:#000;}/* צהוב – יותר צהוב מפחות כתום */
.sold,
.sticker-sold { background: #444; }

/* =============================
   עמוד רכב ישיר (page-car / car-page)
============================= */

/* גרסה כללית */
.car-page {
    padding: 40px 0 60px;
}

/* גרסת page-car המורחבת */
.page-car {
    background: #f5f5f5;
    padding-bottom: 40px;
}

.page-car .car-top-bar {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 24px;
    padding: 32px 0 8px;
}

.page-car .car-page-title,
.car-title {
    margin: 0;
    font-size: 2.1rem;
    font-weight: 700;
}

.page-car .car-page-subtitle,
.car-sub-title {
    margin-top: 6px;
    color: #666;
    font-size: 0.95rem;
}

/* סטיקר בעמוד רכב */
.page-car .car-page-sticker {
    display: inline-block;
    margin-top: 10px;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 700;
    color: #fff;
    background: #e53935;
}

/* מחיר */
.page-car .car-top-left { text-align: left; }

.page-car .car-price-label {
    font-size: 0.85rem;
    color: #777;
}

.page-car .car-price-value {
    font-size: 1.6rem;
    font-weight: 800;
}

/* לייאאוט שני טורים */
.page-car .car-main-layout {
    display: flex;
    gap: 32px;
    align-items: flex-start;
    padding-bottom: 32px;
}

.page-car .car-info-column {
    flex: 0 0 34%;
    max-width: 380px;
}

.page-car .car-gallery-column {
    flex: 1;
}

/* תיאור קצר */
.car-short-desc,
.page-car .car-short-description {
    background: #fff3e0;
    padding: 14px 16px;
    border-radius: 12px;
    margin: 12px 0 18px;
    font-size: 1rem;
    line-height: 1.6;
    border-right: 4px solid #e53935;
}

/* כרטיס פרטים */
.car-details-box,
.page-car .car-details-card,
.page-car .car-benefits-card {
    background: #fff;
    padding: 18px 18px 20px;
    border-radius: 18px;
    box-shadow: 0 10px 28px rgba(0,0,0,0.06);
    margin-bottom: 18px;
}

.car-details-box h3,
.page-car .card-title {
    margin-top: 0;
    font-size: 1.1rem;
}

.car-details-list,
.page-car .car-details-list {
    margin: 0 0 16px;
    padding: 0;
    list-style: none;
}

.car-details-list li,
.page-car .car-details-list .row {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    font-size: 0.95rem;
    border-bottom: 1px solid #eee;
}

.car-details-list li:last-child,
.page-car .car-details-list .row:last-child {
    border-bottom: none;
}

/* תיאור מלא */
.page-car .car-section {
    margin-bottom: 28px;
}

.page-car .car-description-text {
    background: #fff;
    padding: 18px 20px;
    border-radius: 18px;
    box-shadow: 0 10px 28px rgba(0,0,0,0.05);
    line-height: 1.7;
    font-size: 0.96rem;
}

/* גלריה – תמונה ראשית + ת'אמבס */
.car-main,
.car-main-image,
.page-car .car-main-image-wrap img {
    width: 100%;
    max-height: 520px;
    object-fit: cover;
    border-radius: 14px;
    box-shadow: 0 10px 28px rgba(0,0,0,0.08);
}

.car-gallery,
.car-thumbs,
.page-car .car-thumbs-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

/* תמונות קטנות */
.car-thumb img,
.car-thumbs .thumb,
.page-car .car-thumb img {
    width: 110px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.2s;
    border: 2px solid transparent;
    box-shadow: 0 4px 12px rgba(0,0,0,0.18);
}

.car-thumb img:hover,
.car-thumbs .thumb:hover,
.page-car .car-thumb img:hover {
    transform: scale(1.05);
    border-color: #e53935;
}

/* הגבלה כדי שלא יגדלו */
.car-thumbs img,
.car-gallery img {
    max-width: 110px !important;
    max-height: 80px !important;
}

/* BENEFITS בעמוד הרכב */
.page-car .benefits-list {
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 0.9rem;
    column-count: 2;
    column-gap: 18px;
}

.page-car .benefits-list li { margin-bottom: 6px; }

/* =============================
   קטלוג רכבים – cars.php
============================= */

.cars-page {
    padding: 40px 0 60px;
}

.cars-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 12px 0 8px;
}

.cars-filters select {
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid #ddd;
    font-size: 0.9rem;
    min-width: 140px;
    background: #fff;
}

.filter-btn {
    padding: 8px 18px;
    border-radius: 999px;
    border: none;
    background: #e53935;
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    font-size: 0.9rem;
}

.filter-btn:hover {
    background: #b71c1c;
}

.cars-count {
    margin: 6px 0 16px;
    font-size: 0.9rem;
    color: #666;
}

/* כרטיס קטלוג – מעטפת פנימית */
.cars-page .car-card {
    position: relative;
    overflow: visible;
}

.cars-page .car-card-inner {
    position: relative;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.06);
    overflow: hidden;
    transition: transform .18s ease-out, box-shadow .18s ease-out;
}

.cars-page .car-card-inner:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 28px rgba(0,0,0,0.12);
}

/* השוואה */
.compare-toggle {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #fff;
    border-radius: 999px;
    padding: 4px 10px;
    font-size: 0.8rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.18);
    z-index: 2;
}

.compare-toggle input {
    margin-left: 4px;
}

.compare-bar {
    margin-top: 22px;
    text-align: center;
}

.compare-btn {
    padding: 11px 28px;
    border-radius: 999px;
    border: none;
    background: #1e88e5;
    color: #fff;
    font-size: 0.98rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 5px 16px rgba(30,136,229,0.4);
    transition: background .15s ease-out, transform .15s ease-out, box-shadow .15s ease-out;
}

.compare-btn:disabled {
    background: #b0bec5;
    box-shadow: none;
    cursor: default;
}

.compare-btn:not(:disabled):hover {
    background: #1565c0;
    transform: translateY(-2px);
}

/* =============================
   דף השוואת רכבים
============================= */

.compare-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.compare-card {
    background: #fff;
    border-radius: 18px;
    padding: 20px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.08);
    text-align: center;
}

.compare-image {
    width: 100%;
    height: 220px;
    border-radius: 16px;
    background-size: cover;
    background-position: center;
    margin-bottom: 15px;
}

.compare-price {
    font-size: 1.4rem;
    font-weight: 700;
    color: #e53935;
}

.compare-table {
    width: 100%;
    margin: 15px 0;
    border-collapse: collapse;
}

.compare-table td {
    padding: 8px;
    font-size: 0.95rem;
    border-bottom: 1px solid #eee;
    text-align: right;
}

.compare-short {
    background: #fafafa;
    padding: 12px;
    border-radius: 10px;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

/* =============================
   FOOTER
============================= */

footer {
    background: #000;
    padding: 16px 0;
    color: #aaa;
    text-align: center;
    font-size: 0.9rem;
    margin-top: 60px;
}

/* =============================
   רספונסיביות
============================= */

@media (max-width: 980px) {
    .page-car .car-main-layout {
        flex-direction: column-reverse;
    }
    .page-car .car-info-column,
    .page-car .car-gallery-column {
        flex: 1 1 auto;
        max-width: 100%;
    }
    .page-car .benefits-list {
        column-count: 1;
    }
    .page-car .car-top-bar {
        flex-direction: column-reverse;
        align-items: flex-start;
    }
    .page-car .car-top-left {
        text-align: right;
    }
}

@media (max-width: 900px) {
    .main-nav,
    .nav-menu {
        display: none;
    }
    .mobile-toggle,
    .menu-toggle {
        display: block;
    }
    .hero-title,
    .hero h1 {
        font-size: 2.3rem;
    }
    .hero {
        height: 430px;
    }
    .cars-filters {
        flex-direction: column;
        align-items: flex-start;
    }
    .cars-filters select,
    .filter-btn {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .cards-grid,
    .cars-grid,
    .cars-page .cards-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .car-card-body,
    .car-info {
        padding: 12px;
    }
    .compare-bar {
        position: sticky;
        bottom: 0;
        background: rgba(245,245,245,0.95);
        padding: 10px 0 4px;
        z-index: 5;
    }
}
/* =============================
   BENEFITS – מה תקבל אצלנו
============================= */

.benefits {
    padding: 90px 0;
    background: #f7f7f7;
}

.benefits h2 {
    text-align: center;
    font-size: 2.4rem;
    font-weight: 800;
    margin-bottom: 55px;
    color: #111;
}

/* גריד */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
}

/* כרטיס */
.benefit-card {
    background: #fff;
    padding: 30px 25px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 6px 24px rgba(0,0,0,0.08);
    transition: .25s ease-out;
    border-top: 4px solid #e53935; /* פס אדום עדין */
}

.benefit-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.12);
}

/* כותרת */
.benefit-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: #000;
}

/* טקסט */
.benefit-card p {
    font-size: 1rem;
    color: #444;
    line-height: 1.65;
    margin: 0;
}
/* BENEFITS – עם אייקונים */
.benefits {
    padding: 80px 0;
}

.benefits h2 {
    text-align: center;
    font-size: 2.4rem;
    font-weight: 800;
    margin-bottom: 60px;
    color: #111;
}

/* גריד */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
}

/* כרטיס */
.benefit-card {
    background: #fff;
    padding: 32px 25px;
    border-radius: 18px;
    text-align: center;
    box-shadow: 0 6px 24px rgba(0,0,0,0.08);
    transition: .25s ease-out;
    border-top: 4px solid #e53935;
}

/* אפקט ריחוף */
.benefit-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 32px rgba(0,0,0,0.13);
}

/* אייקון */
.benefit-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 18px;
    opacity: 0.9;
    filter: drop-shadow(0 3px 3px rgba(0,0,0,0.12));
}

/* כותרת */
.benefit-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: #000;
}

/* טקסט */
.benefit-card p {
    font-size: 1rem;
    color: #444;
    line-height: 1.65;
    margin: 0;
}
/* WHY CHOOSE – עיצוב מלא */
.whychoose {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-size: 2.3rem;
    font-weight: 800;
    margin-bottom: 55px;
    color: #111;
}

/* גריד */
.whychoose-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
}

/* כרטיסים */
.whychoose-card {
    background: #fff;
    padding: 32px 25px;
    border-radius: 18px;
    text-align: center;
    box-shadow: 0 6px 24px rgba(0,0,0,0.08);
    transition: .25s ease;
    border-top: 4px solid #d11b1b; /* אדום כהה יוקרתי – לא כתום */
}

.whychoose-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 32px rgba(0,0,0,0.14);
}

/* אייקון */
.why-icon {
    width: 58px;
    height: 58px;
    margin-bottom: 16px;
    opacity: 0.92;
    filter: drop-shadow(0 3px 3px rgba(0,0,0,0.15));
}

/* כותרות */
.whychoose-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: #000;
}

/* טקסט */
.whychoose-card p {
    font-size: 1rem;
    color: #444;
    line-height: 1.6;
}
/* ===== SHARE FIX – שורת שיתוף ===== */

.car-share {
    margin-top: 12px;
    display: flex;
    justify-content: center;
    gap: 10px;
    padding-top: 10px;
    border-top: 1px solid #eee;
}

.share-btn {
    padding: 6px 14px;
    font-size: 0.85rem;
    border-radius: 30px;
    font-weight: 600;
    color: #fff;
    text-decoration: none;
    display: inline-block;
    transition: 0.2s;
}

.share-btn.fb {
    background: #1877f2;
}

.share-btn.fb:hover {
    background: #0d5bd7;
}

.share-btn.wa {
    background: #25D366;
}

.share-btn.wa:hover {
    background: #1dbb59;
}

/* כדי למנוע שהכפתורים יימתחו בטעות */
.car-share a {
    white-space: nowrap;
}
