/* ===== Body & Fonts ===== */
body {
    background-color: #fff;
    font-family: 'Cairo', sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Inline SVG icons (FontAwesome replacement) */
.ep-icon {
    width: 1.1em;
    height: 1.1em;
    display: inline-block;
    vertical-align: -0.125em;
}
.ep-icon-beat {
    animation: epBeat 1.2s ease-in-out infinite;
}
@keyframes epBeat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.12); }
}

/* Header is sticky (not fixed), so no spacer is needed */
.header-spacer { height: 0; }
/* ===== Dropdown Menu ===== */
.menu-item-has-children {
  position: relative;
}

.menu-item-has-children > ul {
  position: absolute;
  top: 100%;
  right: 0;
  background: white;
  min-width: 220px;
  padding: 10px 0;
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
  display: none;
  z-index: 999;
}

.menu-item-has-children:hover > ul {
  display: block;
}

.menu-item-has-children ul li {
  padding: 8px 20px;
  white-space: nowrap;
}

.menu-item-has-children ul li:hover {
  background: #f5f5f5;
}

/* sub sub menu */
.menu-item-has-children ul li.menu-item-has-children {
  position: relative;
}

.menu-item-has-children ul li.menu-item-has-children ul {
  top: 0;
  right: 100%;
}
/* ===== Hero Section ===== */
.hero-section {
    background: url('../images/him1.jpeg') center/cover no-repeat;
    height: 90vh;
    display: block   ;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    padding: 0 20px;
}
.hero-section .hero-content h1.hero-title {
    font-size: 4rem;
    font-weight: 700;
}
.hero-section .hero-content p.hero-subtitle {
    font-size: 1.5rem;
    margin: 20px 0;
}
.hero-section .hero-btn {
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
}

/* ===== About Section ===== */
.about-section {
    padding: 100px 20px;
    background: #f7f7f7;
    text-align: center;
}
.about-section h2 {
    font-size: 3rem;
    margin-bottom: 50px;
}
.about-section p {
    max-width: 900px;
    margin: 0 auto 30px auto;
    font-size: 1.2rem;
    line-height: 1.8;
}
.about-section ul {
    list-style: disc;
    margin: 20px auto;
    padding-left: 20px;
    max-width: 600px;
    text-align: left;
    font-size: 1.1rem;
}
.about-section .about-images {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
    flex-wrap: wrap;
}
.about-section .about-images img {
    width: 300px;
    border-radius: 10px;
    transition: transform 0.3s;
}
.about-section .about-images img:hover {
    transform: scale(1.05);
}

/* ===== Services Section ===== */
.services-section {
    padding: 100px 20px;
    text-align: center;
}
.services-section h2 {
    font-size: 3rem;
    margin-bottom: 60px;
}
.services-section .services-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
}
.services-section .service-item {
    background: white;
    padding: 30px;
    border-radius: 10px;
    width: 300px;
    text-align: center;
    box-shadow: 0 0 15px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}
.services-section .service-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}
.services-section .service-item i {
    font-size: 2.5rem;
    color: #2563eb;
    margin-bottom: 20px;
}
.services-section .service-item h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

/* ===== Gallery Section ===== */
.gallery-section {
    padding: 100px 20px;
    background: #f7f7f7;
    text-align: center;
}
.gallery-section h2 {
    font-size: 3rem;
    margin-bottom: 60px;
}
.gallery-section .gallery-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}
.gallery-section .gallery-grid img {
    width: 300px;
    border-radius: 10px;
    transition: transform 0.3s;
}
.gallery-section .gallery-grid img:hover {
    transform: scale(1.05);
}

/* ===== Team Section ===== */
.team-section {
    padding: 100px 20px;
    text-align: center;
}
.team-section h2 {
    font-size: 3rem;
    margin-bottom: 60px;
}
.team-section .team-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
}
.team-section .team-member {
    width: 250px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}
.team-section .team-member:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}
.team-section .team-member img {
    width: 100%;
    border-radius: 10px;
    margin-bottom: 15px;
}

/* ===== CTA Section ===== */
.cta-section {
    padding: 100px 20px;
    background: #1d4ed8;
    color: white;
    text-align: center;
}
.cta-section h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}
.cta-section p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}
.cta-section .btn-primary {
    padding: 15px 30px;
    background: white;
    color: #1d4ed8;
    border-radius: 5px;
    font-weight: bold;
    text-decoration: none;
    transition: background 0.3s, color 0.3s;
}
.cta-section .btn-primary:hover {
    background: #eff6ff;
    color: #1e40af;
}

/* ===== Products Section ===== */
.products-section {
    padding: 80px 20px;
    background: #f7f7f7;
}
.products-section .section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 50px;
}
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    justify-items: center;
}
.car-card, .product-card {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 6px 18px rgba(0,0,0,0.2);
    transition: transform 0.3s, box-shadow 0.3s;
}
.car-card:hover, .product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.3);
}
.car-image, .product-img img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    transition: transform 0.3s ease;
}
.car-image:hover, .product-img img:hover {
    transform: scale(1.05);
}
.car-details h3 {
    color: #111827;
    font-size: 1.5rem;
    margin-bottom: 10px;
    font-weight: 600;
}
.car-details p {
    color: #333;
    font-size: 1rem;
    margin-bottom: 15px;
}

/* ===== Cart Widget ===== */
.cart-widget {
    position: fixed;
    left: 20px;
    bottom: 20px;
    z-index: 9999;
}
.open-cart-btn {
    background:#2563eb;
    color:#fff;
    padding:10px 14px;
    border-radius:8px;
    border:none;
    cursor:pointer;
}
.cart-panel {
    width:340px;
    max-width:90vw;
    background:#fff;
    padding:16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    border-radius:10px;
}
.cart-panel.hidden { display:none; }
.cart-item { display:flex; justify-content:space-between; align-items:center; padding:8px 0; border-bottom:1px solid #eee; }
.ci-title { font-weight:600; }
.ci-controls { display:flex; gap:8px; align-items:center; }
.ci-qty { width:60px; padding:6px; border-radius:6px; border:1px solid #ddd; }
.ci-remove { background:#ddd; border:none; padding:6px 8px; border-radius:6px; cursor:pointer; }

/* ===== Inputs & Buttons ===== */
input, textarea, select, button {
    width: 100%;
    padding: 12px 15px;
    margin: 8px 0;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 1rem;
    font-family: 'Cairo', sans-serif;
    box-sizing: border-box;
    transition: all 0.3s ease;
    text-align: center;
}
input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 5px rgba(37, 99, 235, 0.35);
}
button, .btn-primary, .btn-buy, .btn-place {
    cursor: pointer;
    font-weight: 700;
    transition: all 0.3s ease;
}
.btn-primary { background-color:#2563eb; color:#fff; }
.btn-primary:hover { background-color:#1d4ed8; }
.btn-buy { background-color:#2563eb; color:#fff; }
.btn-buy:hover { background-color:#1d4ed8; }
.btn-place { background-color:#1d4ed8; color:#fff; }
.btn-place:hover { background-color:#1e40af; }

/* ===== Contact CTA ===== */
.contact-cta {
    padding: 80px 20px;
    text-align: center;
    background: #fff;
}
.contact-cta h2 {
    font-size: 2rem;
    margin-bottom: 20px;
}
.contact-cta p {
    font-size: 1.2rem;
    margin-bottom: 25px;
}

/* ===== Floating Contact Buttons ===== */
.contact-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 9999;
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
}

/* ===== Performance: Defer offscreen rendering for huge grids (keeps design the same) ===== */
.ep-cv-auto {
    content-visibility: auto;
    contain-intrinsic-size: 1px 900px;
}

/* Hide contact buttons when mobile menu is open */
@media (max-width: 767px) {
    body.mobile-menu-open .contact-float {
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform: translateY(20px);
    }
}
.contact-float a,
.contact-float button {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 18px;
    border-radius: 50px;
    color: #fff;
    font-weight: 600;
    text-decoration: none;
    font-size: 16px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    transition: 0.3s;
    border: none;
    cursor: pointer;
}
.whatsapp-btn { background-color: #25D366; }
.whatsapp-btn:hover { background-color: #1ebe5d; }
.call-btn { background-color: #007bff; }
.call-btn:hover { background-color: #0056b3; }
.quote-btn { background-color: #2563eb; }
.quote-btn:hover { background-color: #1d4ed8; }
.contact-float i { font-size: 18px; }

/* ===== Footer Fix for Small Screens ===== */
footer {
    width: 100%;
    background: #222;
    color: #fff;
    text-align: center;
    padding: 30px 20px;
    position: relative;
    bottom: 0;
}
@media(max-width:768px){
    footer { position: relative; padding: 20px 15px; font-size: 0.9rem; }
    .hero-section .hero-title { font-size: 2.5rem; }
    .hero-section .hero-subtitle { font-size: 1.2rem; }
    .about-section h2, .services-section h2, .gallery-section h2, .team-section h2 { font-size:2rem; }
    .about-section p, .about-section ul li, .services-section .service-item p, .gallery-section .gallery-grid img, .team-section .team-member { font-size:1rem; width:100%; max-width:300px; }
    .products-grid { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
    .contact-float { right: 15px; bottom: 15px; }
    .contact-float a, .contact-float button { font-size: 14px; padding: 10px 14px; }
}

/* ===== Quote Modal (Products) ===== */
.ep-quote-modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.55);
    z-index: 12000;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 16px;
}
.ep-quote-modal.hidden { display: none; }
.ep-quote-dialog {
    width: 100%;
    max-width: 560px;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.25);
    overflow: hidden;
}
.ep-quote-head {
    padding: 14px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #f1f5f9;
}
.ep-quote-head h3 { margin: 0; font-size: 16px; font-weight: 800; color: #111827; }
.ep-quote-close {
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 18px;
    color: #64748b;
    padding: 6px 8px;
}
.ep-quote-body { padding: 14px 16px 16px; }
.ep-quote-body label { display:block; font-size:12px; font-weight:700; color:#374151; margin: 10px 0 6px; text-align:right; }
.ep-quote-body input, .ep-quote-body textarea {
    width: 100%;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 10px 12px;
    font-size: 13px;
    text-align: right;
}
.ep-quote-actions { display:flex; gap:10px; justify-content:flex-end; margin-top: 12px; }
.ep-quote-submit {
    width: auto;
    padding: 10px 14px;
    border-radius: 12px;
    background: #2563eb;
    color: #fff;
    border: 1px solid rgba(37,99,235,0.35);
    font-weight: 800;
}
.ep-quote-submit:disabled { opacity: 0.65; cursor: not-allowed; }
.ep-quote-status { margin-top: 10px; font-size: 12px; color: #64748b; text-align: right; }

/* ===== B2B Folder & Cosmetics Pages – Mobile Tweaks ===== */
@media (max-width: 640px) {
    main.bg-gray-50 section:first-of-type header h1 {
        font-size: 1.5rem;
        line-height: 1.5;
    }
    main.bg-gray-50 section:first-of-type header p {
        font-size: 0.9rem;
    }

    main.bg-gray-50 .grid.sm\:grid-cols-2.md\:grid-cols-3.lg\:grid-cols-4 {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    main.bg-gray-50 article {
        border-radius: 16px;
    }

    main.bg-gray-50 article .bg-gray-50,
    main.bg-gray-50 article .bg-gray-100 {
        height: 180px;
    }

    main.bg-gray-50 article img {
        max-height: 160px;
    }

    main.bg-gray-50 article .p-4 {
        padding: 10px;
    }

    main.bg-gray-50 article p {
        font-size: 0.75rem;
    }
}
