/* =========================
   General Styles
========================= */
body {
    background-color: #ffffff;
    overflow-x: hidden;
}

/* Fade-in animation */
.appear {
    opacity: 1 !important;
    transform: translateY(0) !important;
    transition: all 1s ease-out;
}

/* =========================
   Navbar
========================= */
.navbar {
    background-color: #ffffff !important;
    padding: 0.5rem 1rem;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar .logo {
    width: 120px;
    height: auto;
    max-height: 80px;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

.navbar-brand img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    display: block;
}

.navbar-nav .nav-link {
    color: #333333;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: transform 0.3s, color 0.3s;
}

.navbar-nav .nav-link i {
    margin-right: 5px;
    font-size: 1.1rem;
    vertical-align: middle;
    transition: transform 0.3s, color 0.3s;
}

.navbar-nav .nav-link:hover {
    color: #0d6efd;
    transform: translateY(-3px);
}

.navbar-nav .nav-link:hover i {
    transform: scale(1.2);
    color: #0d6efd;
}

.navbar-nav .nav-link.active {
    color: #0d6efd !important;
    font-weight: bold;
}

/* =========================
   Hero Section
========================= */
.hero {
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: white;
    overflow: hidden;
    margin-bottom: 50px;
}

.hero .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.4);
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeSlide 1s forwards 0.3s;
}

.hero-content h1 {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 15px;
}

.hero-content p {
    font-size: 1.25rem;
    margin-bottom: 20px;
}

.hero-content a.btn {
    font-size: 1rem;
    padding: 10px 25px;
    transition: all 0.3s ease;
}

.hero-content a.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

@keyframes fadeSlide {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =========================
   Services Section
========================= */
section.container.mt-5 {
    padding-top: 40px;
    padding-bottom: 40px;
    background-color: #ffffff;
    margin-top: 30px;
    margin-bottom: 30px;
}

section.container.mt-5 > .row {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: nowrap;
}

section.container.mt-5 .col-md-4 {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

.service-box {
    text-align: center;
    padding: 10px;
    max-width: 220px;
    background-color: #f8f9fa;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.service-box:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.service-box img {
    width: 140px;
    height: 140px;
    object-fit: contain;
    margin-bottom: 15px;
}

.service-box h4 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-top: 10px;
}

.service-box,
.card {
    opacity: 0;
    transform: translateY(50px);
}

/* Card style for other sections */
.card {
    border: none;
    border-radius: 12px;
    overflow: hidden;
    transition: 0.3s;
}

.card:hover {
    transform: scale(1.03);
}

/* =========================
   Call To Action
========================= */
.bg-primary {
    background-color: #0d6efd !important;
}

section.bg-primary a.btn {
    transition: all 0.3s ease;
}

section.bg-primary a.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* =========================
   Footer
========================= */
footer {
    background-color: #0d6efd !important;
    color: white;
    padding: 1rem 0;
}

footer a {
    color: white;
    text-decoration: none;
    transition: color 0.3s;
}

footer a:hover {
    color: #ffc107;
}

/* Section blanc بين A propos والفوتر */
.contact-footer {
    background-color: #ffffff;
    display: block;
    padding: 0.2rem 1rem;
    font-size: 0.9rem;
    line-height: 1.1;
    border-top: 1px solid #dee2e6;
    border-bottom: 1px solid #dee2e6;
}

.contact-footer p {
    margin: 0;
    font-weight: 600;
}

.contact-footer a {
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.contact-footer a:hover {
    color: #0d6efd;
}

.contact-footer-address {
    flex: 1 1 auto;
    white-space: nowrap;
}

.contact-footer-whatsapp {
    flex: 0 0 auto;
    margin-left: auto;
    white-space: nowrap;
}

@media (max-width: 991px) {
    .contact-footer-address,
    .contact-footer-whatsapp {
        white-space: normal;
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .contact-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.3rem;
    }
}

/* =========================
   Sections General Spacing
========================= */
section {
    margin-bottom: 30px;
    padding-top: 60px;
    padding-bottom: 60px;
}

/* =========================
   Top Bar - Desktop
========================= */
.top-bar {
    font-size: 1.1rem;
    background-color: #0d6efd;
    padding: 1.25rem 0;
    font-weight: 500;
}

.top-bar .container {
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: center !important;
}

.top-bar .contact-info {
    display: flex !important;
    align-items: center !important;
    gap: 0;
}

.top-bar .top-email,
.top-bar .phones {
    display: inline-flex;
    align-items: center;
}

.top-bar .phones {
    gap: 0;
}

.top-bar .contact-info i,
.top-bar .social-links i {
    margin-right: 5px;
    vertical-align: middle;
}

.top-bar a {
    text-decoration: none;
    transition: color 0.3s;
}

.top-bar a:hover {
    color: #ffc107;
}

/* =========================
   Produits populaires fix
========================= */
.bg-light .row > .col-md-4 > div {
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
}

.product-card {
    background-color: #ffffff;
    border-radius: 12px;
    transition: 0.3s;
}

.product-card:hover {
    transform: translateY(-5px);
}

/* =========================
   Mobile Fix - Services & Why Choose Us
========================= */
@media (max-width: 768px) {
    .navbar .logo {
        width: 60px;
        height: 60px;
    }

    .hero-content h1 {
        font-size: 1.8rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .service-box img {
        width: 120px;
        height: 120px;
    }

    section.container.mt-5 > .row {
        flex-direction: column !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
        gap: 25px !important;
    }

    section.container.mt-5 .col-md-4 {
        width: 100% !important;
        max-width: 100% !important;
        flex: 0 0 100% !important;
        display: flex !important;
        justify-content: center !important;
    }

    .service-box {
        width: 100% !important;
        max-width: 280px !important;
        margin: 0 auto !important;
    }

    section.container.mt-5 img {
        max-width: 100% !important;
        height: auto;
    }
}

/* =========================
   Top Bar - Mobile Only
========================= */
@media (max-width: 768px) {
    .top-bar {
        padding: 8px 0 !important;
        font-size: 0.8rem !important;
    }

    .top-bar .container {
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 6px !important;
        text-align: center !important;
    }

    .top-bar .contact-info {
        width: 100%;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        gap: 4px !important;
    }

    .top-bar .top-email {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 6px !important;
        width: 100%;
    }

    .top-bar .phones {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        flex-wrap: nowrap !important;
        gap: 6px !important;
        width: 100%;
    }

    .top-bar .phones a {
        white-space: nowrap !important;
        font-weight: 600;
        font-size: 0.82rem;
    }

    .top-bar .phones i {
        display: none;
    }

    .top-bar .phone-separator {
        display: inline-block !important;
        opacity: 0.6;
        margin: 0 2px !important;
    }

    .top-bar .social-links {
        width: 100%;
        justify-content: center !important;
        gap: 16px !important;
        font-size: 1rem;
        margin-top: 4px;
    }
}