/* ===== Global Styles ===== */
body {
    margin: 0;
    font-family: 'Poppins', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    /* background: #ffffff; */
    /* background: #faf4ed; */
    color: #333;
}

section {
    scroll-margin-top: 100px;
    /* adjust based on your header height */
}

/* ===== Hero Section ===== */
.hero {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    /* vertical align */
    justify-content: center;
    /* center horizontally */
    padding: 80px 120px;
    min-height: 75vh;
    gap: 80px;
    /* space between text & carousel */
    text-align: center;
    /* centers text when stacked */
    position: relative;
    /* needed for ::before background layer */

    /* Base background (if you want a full bg for whole hero) */
    background: url('../images/bgs/hero-bg-4.png') no-repeat center center;
    background-size: cover;
}

/* Right-half background image */
.hero::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    /* covers right half of hero */
    height: 100%;
    background: url('../images/bgs/hero-bg-5.png') no-repeat center center;
    background-size: cover;
    z-index: 0;
    /* behind text & carousel */
}

.hero-text {
    flex: 1 1 45%;
    max-width: 500px;
    z-index: 1;
    /* make sure it's above background */
}

.hero-text h2 {
    font-size: 4.5rem;
    font-weight: bold;
    margin: 0 0 20px;
    color: #d4242a;
}

.hero-text span {
    color: #ffae42;
}

.hero-text p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: #555;
}

/* ===== Carousel ===== */
.hero-carousel {
    flex: 1 1 50%;
    /* give it more space */
    max-width: 750px;
    /* increase from 550px */
    height: 500px;
    /* fix a bigger height */
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    background-color: #fff;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.75);
    z-index: 1;
}

/* Carousel track */
.carousel-track {
    display: flex;
    width: 100%;
    transition: transform 0.6s ease-in-out;
}

.carousel-slide {
    flex: 0 0 100%;
}

/* Bigger images */
.carousel-slide img {
    width: 100%;
    height: 100%;
    max-height: none;
    /* remove limit */
    object-fit: cover;
    /* fill the container */
    display: block;
    margin: 0 auto;
}


/* Dots */
.carousel-dots {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}

.carousel-dots button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: none;
    background: #ffae42;
    cursor: pointer;
    transition: background 0.3s;
}

.carousel-dots button.active {
    background: #d4242a;
}


/* ===== Buttons ===== */
.buttons a {
    display: inline-block;
    padding: 12px 24px;
    margin-right: 15px;
    border-radius: 8px;
    font-weight: bold;
    text-decoration: none;
    transition: 0.3s;
}

.buttons .order {
    background: #d4242a;
    color: #fff;
}

.buttons .order:hover {
    background: #ffae42;
}

.buttons .learn {
    border: 2px solid #d4242a;
    color: #d4242a;
}

.buttons .learn:hover {
    background: #d4242a;
    color: #fff;
}

/* ===== Featured Section ===== */
.featured {
    padding: 80px 40px;
    background: #fafafa;
    text-align: center;
}

.featured h2 {
    font-size: 1.5rem;
    margin-bottom: 5px;
    color: #d4242a;
}

/* Featured Side by Side */
.featured-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    /* max 3 per row */
    gap: 1.5rem;
    margin-top: 1.5rem;
}

/* Each card */
.featured .card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;

    background: url("../images/bgs/low-opacity-pattern-1.png") no-repeat center center;
    background-size: cover;

    border-radius: 12px;
    padding: 1rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s ease;
    position: relative;
    overflow: hidden;
}

/* Little hover pop */
.featured .card:hover {
    transform: translateY(-4px);
}

/* Responsive: shrink to 2 per row on medium, 1 on small */
@media (max-width: 1024px) {
    .featured-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .featured-grid {
        grid-template-columns: 1fr;
    }
}

/* Left column (image + title + desc) */
.card-left img {
    width: 100%;
    /* responsive image */
    height: auto;
    border-radius: 10px;
    display: block;
    margin: 0 auto;
}

.card-left h3 {
    margin: 0.5rem 0 0.25rem;
    font-size: 1.2rem;
}

.card-left small {
    display: block;
    color: #666;
    font-size: 0.9rem;
}

/* Right column (prices) */
.card-right {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    /* align content to the top */
    gap: 0.35rem;
    height: 100%;
    /* make sure it fills the card height */
}

.card-right>div {
    display: grid;
    grid-template-columns: 1fr auto;
    /* item takes left, price hugs right */
    align-items: center;
    /* vertical alignment */
    border-bottom: 1px solid #cacaca;
    padding: 0.25rem 0;
    width: 100%;
}

.card-right span:first-child {
    text-align: left;
}

.card-right span:last-child {
    text-align: right;
    font-weight: 600;
    padding-left: 1rem;
    /* optional spacing */
}

.card-right span:last-child {
    font-weight: 600;
}

/* Text Styles */
.fw-bold {
    font-weight: bold;
}

.italic {
    font-style: italic;
}

.help-text {
    color: #727272;
}


/* Color Styles */
.color-primary {
    color: #d4242a;
}

.color-secondary {
    color: #ffae42;
}

.color-black {
    color: #000000;
}

.color-white {
    color: #ffffff;
}

.mt-35 {
    margin-top: 35px;
}

.mr-5 {
    margin-right: 5px;
}

.ml-5 {
    margin-left: 5px;
}

.mr-12 {
    margin-right: 12px;
}

.ml-12 {
    margin-left: 12px;
}

.mr-15 {
    margin-right: 15px;
}

.ml-15 {
    margin-left: 15px;
}

.mr-20 {
    margin-right: 20px;
}

.ml-20 {
    margin-left: 20px;
}


/* ===== Responsive Styles ===== */
@media (max-width: 1421px) {
    .hero::before {
        background: url('../images/bgs/hero-bg-6.png') no-repeat center center;
        background-size: cover;
    }
}

@media (max-width: 992px) {
    .hero {
        padding: 60px;
    }
}

@media (max-width: 768px) {
    nav {
        display: none;
        position: absolute;
        top: 70px;
        right: 20px;
        background: #fff;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
        flex-direction: column;
        padding: 15px;
    }

    nav a {
        margin: 10px 0;
    }

    nav.active {
        display: flex;
    }

    .menu-toggle {
        display: flex;
    }

    .hero {
        flex-direction: column;
        padding: 40px 20px;
        text-align: center;
    }

    .hero-text {
        max-width: 100%;
    }

    .hero-text h2 {
        font-size: 2.2rem;
    }

    .hero-carousel {
        width: 80%;
        height: 80%;
        max-width: none;
        /* remove old limits */
        max-height: none;
    }

    .carousel-slide img {
        object-fit: cover;
        /* make sure images scale properly */
    }

}