/* ========================================
   Spices Website - Custom Theme Styles
   ======================================== */

/* Color Variables */
:root {
    --primary-color: #DA972E;      /* Golden orange */
    --secondary-color: #c9b883;    /* Golden beige */
    --text-color: #616264;         /* Gray text */
    --heading-color: #000;         /* Black headings */
    --white: #fff;
    --light-gray: #f8f9fa;
    --border-color: #e5e5e5;
    --gold-bg: #c9b883;
}

/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Fira Sans', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white);
    overflow-x: hidden;
}

a {
    color: var(--heading-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--primary-color);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Fira Sans', sans-serif;
    color: var(--heading-color);
    font-weight: 700;
    margin-bottom: 1rem;
}

h1 { font-size: 3.5rem; font-weight: 800; }
h2 { font-size: 2.5rem; font-weight: 800; }
h3 { font-size: 2rem; font-weight: 700; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }

img {
    max-width: 100%;
    height: auto;
}

/* Header / Navbar */
.navbar {
    background-color: var(--white);
    padding: 1rem 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.navbar-brand {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--heading-color) !important;
    font-style: italic;
}

.navbar-nav .nav-link {
    color: var(--heading-color);
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: var(--primary-color);
}

.navbar-contact {
    margin-left: 1rem;
}

.navbar-contact .btn-primary-custom {
    padding: 8px 25px;
    font-size: 0.95rem;
}

/* Hero Section with Carousel */
.hero-section {
    position: relative;
}

.hero-section .carousel,
.hero-section .carousel-inner,
.hero-section .carousel-item {
    height: 600px;
}

.hero-slide {
    background-size: cover;
    background-position: center right;
    background-repeat: no-repeat;
    padding: 120px 0;
    height: 100%;
    position: relative;
    display: flex;
    align-items: center;
}

.hero-content {
    padding-right: 50px;
    position: relative;
    z-index: 2;
}

.hero-content-wrapper {
    background: radial-gradient(ellipse at center,
                rgba(255, 255, 255, 0.75) 0%,
                rgba(255, 255, 255, 0.5) 40%,
                rgba(255, 255, 255, 0) 100%);
    padding: 30px;
}

/* Carousel Controls */
.hero-section .carousel-control-prev,
.hero-section .carousel-control-next {
    width: 60px;
    height: 60px;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(218, 151, 46, 0.7);
    border-radius: 50%;
    opacity: 0.8;
}

.hero-section .carousel-control-prev {
    left: 20px;
}

.hero-section .carousel-control-next {
    right: 20px;
}

.hero-section .carousel-control-prev:hover,
.hero-section .carousel-control-next:hover {
    opacity: 1;
    background-color: rgba(218, 151, 46, 0.9);
}

.hero-section .carousel-control-prev-icon,
.hero-section .carousel-control-next-icon {
    width: 30px;
    height: 30px;
}

/* Carousel Indicators */
.hero-section .carousel-indicators {
    bottom: 30px;
}

.hero-section .carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    border: 2px solid var(--primary-color);
    margin: 0 5px;
}

.hero-section .carousel-indicators button.active {
    background-color: var(--primary-color);
}

.hero-label {
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 2px;
    color: var(--text-color);
    margin-bottom: 1rem;
}

.hero-title {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    font-weight: 800;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-color);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.btn-primary-custom {
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 12px 30px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.btn-primary-custom:hover {
    background-color: #b77d23;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* Featured Products Section */
.featured-products {
    padding: 80px 0;
    text-align: center;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    font-weight: 700;
}

.product-card {
    text-align: center;
    margin-bottom: 2rem;
    transition: transform 0.3s ease;
}

.product-card:hover {
    transform: translateY(-10px);
}

.product-image {
    margin-bottom: 1rem;
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-image img {
    max-height: 100%;
    object-fit: contain;
}

.product-title {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    color: var(--heading-color);
}

.product-price {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-color);
}

.product-price .old-price {
    text-decoration: line-through;
    color: var(--text-color);
    margin-left: 0.5rem;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 2rem;
}

.carousel-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--border-color);
    display: inline-block;
    cursor: pointer;
}

.carousel-dots span.active {
    background-color: var(--heading-color);
}

/* Promotion Banner */
.promo-banner {
    background-color: var(--gold-bg);
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.promo-content {
    text-align: left;
    padding-left: 50px;
}

.promo-label {
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 2px;
    margin-bottom: 1rem;
}

.promo-title {
    font-size: 3rem;
    line-height: 1.2;
    margin-bottom: 2rem;
    font-weight: 800;
}

/* Category Grid */
.category-grid {
    padding: 80px 0;
}

.category-card {
    position: relative;
    overflow: hidden;
    margin-bottom: 2rem;
    cursor: pointer;
    height: 300px;
}

.category-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.category-card:hover img {
    transform: scale(1.05);
}

.category-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255,255,255,0.95);
    padding: 20px;
    text-align: center;
}

.category-title {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.category-link {
    color: var(--primary-color);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
}

/* About Section */
.about-section {
    padding: 80px 0;
    background-color: var(--light-gray);
}

.about-label {
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 2px;
    color: var(--text-color);
    margin-bottom: 1rem;
}

.about-title {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    font-weight: 700;
}

.about-description {
    margin-bottom: 2rem;
    line-height: 1.8;
}

.about-features {
    list-style: none;
    padding: 0;
    margin-bottom: 2rem;
}

.about-features li {
    padding: 0.5rem 0;
    font-weight: 600;
}

.about-image-wrapper {
    padding-left: 60px;
    padding-right: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Blog Section */
.blog-section {
    padding: 80px 0;
}

.blog-card {
    margin-bottom: 2rem;
    transition: transform 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-5px);
}

.blog-image {
    height: 250px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.blog-card:hover .blog-image img {
    transform: scale(1.05);
}

.blog-date {
    color: var(--primary-color);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.blog-title {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.blog-excerpt {
    color: var(--text-color);
    margin-bottom: 1rem;
}

.blog-link {
    color: var(--primary-color);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
}

/* Features Section */
.features-section {
    padding: 60px 0;
    background-color: var(--white);
}

.feature-box {
    padding: 20px;
    transition: transform 0.3s ease;
}

.feature-box:hover {
    transform: translateY(-5px);
}

.feature-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.feature-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--heading-color);
}

.feature-text {
    color: var(--text-color);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Testimonials Section */
.testimonials-section {
    padding: 80px 0;
    background-color: var(--light-gray);
}

.testimonial-card {
    background-color: var(--white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.testimonial-rating {
    color: #ffc107;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.testimonial-text {
    color: var(--text-color);
    font-style: italic;
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.testimonial-author {
    display: flex;
    flex-direction: column;
}

.testimonial-author strong {
    color: var(--heading-color);
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.testimonial-author span {
    color: var(--text-color);
    font-size: 0.9rem;
}

/* Contact Section */
.contact-section {
    padding: 80px 0;
    background-color: var(--white);
}

.contact-intro {
    color: var(--text-color);
    font-size: 1.1rem;
    margin-bottom: 2rem;
    line-height: 1.8;
}

.contact-info-box {
    margin-top: 2rem;
}

.contact-info-item {
    display: flex;
    gap: 20px;
    margin-bottom: 2rem;
}

.contact-info-icon {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 1.3rem;
}

.contact-info-text h5 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--heading-color);
}

.contact-info-text p {
    color: var(--text-color);
    margin-bottom: 0;
    line-height: 1.6;
}

.contact-form-wrapper {
    background-color: var(--light-gray);
    padding: 40px;
    border-radius: 10px;
}

.contact-form .form-label {
    font-weight: 600;
    color: var(--heading-color);
    margin-bottom: 0.5rem;
}

.contact-form .form-control {
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.contact-form .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(218, 151, 46, 0.15);
}

.contact-form textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

/* Footer */
.footer {
    background-color: var(--light-gray);
    padding: 60px 0 20px;
}

.footer-logo {
    margin-bottom: 1rem;
}

.footer-description {
    color: var(--text-color);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.footer-title {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

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

.footer-contact li {
    margin-bottom: 1rem;
    color: var(--text-color);
    display: flex;
    align-items: flex-start;
}

.footer-contact li i {
    color: var(--primary-color);
    margin-right: 10px;
    margin-top: 3px;
    font-size: 1rem;
}

.footer-address {
    color: var(--text-color);
    line-height: 1.8;
}

.footer-address i {
    color: var(--primary-color);
    margin-right: 10px;
    font-size: 1.2rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    margin-top: 3rem;
    border-top: 1px solid var(--border-color);
}

.social-icons {
    margin-top: 1rem;
}

.social-icons a {
    color: var(--heading-color);
    margin-right: 15px;
    font-size: 1.3rem;
    transition: color 0.3s ease;
}

.social-icons a:hover {
    color: var(--primary-color);
}

/* Responsive */
@media (max-width: 992px) {
    .hero-section .carousel,
    .hero-section .carousel-inner,
    .hero-section .carousel-item {
        height: 500px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    .hero-label {
        font-size: 0.8rem;
    }

    .promo-title {
        font-size: 2rem;
    }

    .hero-content,
    .promo-content {
        padding-left: 0;
        padding-right: 0;
    }

    /* Masquer les boutons de navigation du carousel */
    .hero-section .carousel-control-prev,
    .hero-section .carousel-control-next {
        display: none;
    }
}

@media (max-width: 768px) {
    .hero-section .carousel,
    .hero-section .carousel-inner,
    .hero-section .carousel-item {
        height: 450px;
    }

    .hero-title {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }

    .hero-description {
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
    }

    .hero-label {
        font-size: 0.75rem;
        margin-bottom: 0.5rem;
    }

    .btn-primary-custom {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    h1 { font-size: 2rem; }
    h2 { font-size: 1.5rem; }

    .newsletter-form {
        flex-direction: column;
    }

    .category-card {
        height: 250px;
    }

    .hero-content-wrapper {
        padding: 25px;
    }
}

@media (max-width: 576px) {
    .hero-section .carousel,
    .hero-section .carousel-inner,
    .hero-section .carousel-item {
        height: 400px;
    }

    .hero-slide {
        padding: 60px 0;
    }

    .hero-title {
        font-size: 1.3rem;
        line-height: 1.3;
    }

    .hero-description {
        font-size: 0.85rem;
        line-height: 1.5;
    }

    .hero-label {
        font-size: 0.7rem;
    }

    .btn-primary-custom {
        padding: 8px 16px;
        font-size: 0.85rem;
    }

    .hero-content {
        padding-right: 15px;
    }

    .hero-content-wrapper {
        padding: 20px;
    }
}
