html{

    scroll-behavior:smooth;
}
/* ===========================
   RESET
=========================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ===========================
   BODY
=========================== */

body {
    font-family: 'Poppins', sans-serif;
    background-color: #fffdf7;
}

/* ===========================
   NAVIGATION
=========================== */

.navbar {
    position: sticky;
top: 0;
z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 80px;
    background: white;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 28px;
    font-weight: 700;
    color: #F9B233;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 35px;
}

.nav-links a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: 0.3s;
}

.nav-links a:hover {
    color: #F9B233;
}

/* ===========================
   HERO SECTION
=========================== */

.hero {

    /* Height of the hero section */
    height: 90vh;

    /* Hero Image */
    background-image:
        linear-gradient(rgba(0,0,0,0.45), rgba(0,0,0,0.45)),
        url("../images/hero.jpg");

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    display: flex;
    justify-content: center;
    align-items: center;

    text-align: center;
    color: white;
    padding: 20px;
}

.hero-content {
    max-width: 700px;
}

.hero h1 {
    font-size: 58px;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero p {
    font-size: 20px;
    line-height: 1.8;
    margin-bottom: 35px;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* ===========================
   BUTTONS
=========================== */

.btn {
    text-decoration: none;
    padding: 15px 35px;
    border-radius: 50px;
    font-weight: 600;
    transition: 0.3s;
}

.btn-primary {
    background: #F9B233;
    color: white;
}

.btn-primary:hover {
    background: #E79D00;
    transform: translateY(-3px);
}

.btn-secondary {
    border: 2px solid white;
    color: white;
}

.btn-secondary:hover {
    background: white;
    color: #333;
}
/* ===========================
   PRODUCTS SECTION
=========================== */

.products {

    padding: 80px 10%;
    text-align: center;
    background: #fff;
}

.products h2 {

    font-size: 40px;
    color: #333;
    margin-bottom: 15px;
}

.section-text {

    color: #777;
    margin-bottom: 50px;
    font-size: 18px;
}

.product-grid {

    display: grid;

    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));

    gap: 30px;
}

.product-card {

    background: white;

    border-radius: 15px;

    overflow: hidden;

    box-shadow: 0 5px 20px rgba(0,0,0,.1);

    transition: .3s;
}

.product-card:hover {

    transform: translateY(-10px);
}

.product-card img {

    width: 100%;

    height: 220px;

    object-fit: cover;
}

.product-card h3 {

    margin: 20px 0 10px;

    color: #333;
}

.product-card p {

    color: #666;

    padding: 0 20px;
}

.price {

    display: block;

    font-size: 22px;

    font-weight: bold;

    color: #F9B233;

    margin: 20px 0;
}

.product-card .btn {

    display: inline-block;

    margin-bottom: 25px;
}
/* ===========================
   ABOUT SECTION
=========================== */

.about {

    display: flex;
    justify-content: center;
    align-items: center;
    gap: 60px;

    padding: 100px 10%;

    background: #fffdf7;

    flex-wrap: wrap;
}

.about-image {

    flex: 1;
    min-width: 300px;
}

.about-image img {

    width: 100%;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,.15);
}

.about-content {

    flex: 1;
    min-width: 300px;
}

.about-content h2 {

    font-size: 42px;
    color: #333;
    margin-bottom: 20px;
}

.about-content p {

    font-size: 18px;
    line-height: 1.8;
    color: #666;

    margin-bottom: 25px;
}

.about-content ul {

    list-style: none;
    margin-bottom: 35px;
}

.about-content ul li {

    margin-bottom: 15px;

    font-size: 18px;

    color: #444;
}
/* ===========================
   FEATURES
=========================== */

.features{

    padding:90px 10%;
    text-align:center;
    background:#ffffff;
}

.features h2{

    font-size:42px;
    margin-bottom:15px;
    color:#333;
}

.feature-grid{

    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
    gap:30px;
    margin-top:50px;
}

.feature-card{

    background:#fff;
    padding:40px 30px;
    border-radius:20px;
    box-shadow:0 10px 30px rgba(0,0,0,.08);
    transition:.3s;
}

.feature-card:hover{

    transform:translateY(-10px);
}

.feature-card i{

    font-size:55px;
    color:#F9B233;
    margin-bottom:20px;
}

.feature-card h3{

    margin-bottom:15px;
    color:#333;
}

.feature-card p{

    color:#666;
    line-height:1.7;
}
/* ===========================
   TESTIMONIALS
=========================== */

.testimonials{

    padding:100px 10%;
    background:#fffdf7;
    text-align:center;
}

.testimonials h2{

    font-size:42px;
    color:#333;
    margin-bottom:15px;
}

.testimonial-grid{

    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(300px,1fr));
    gap:30px;
    margin-top:50px;
}

.testimonial-card{

    background:white;
    padding:40px 30px;
    border-radius:20px;
    box-shadow:0 10px 30px rgba(0,0,0,.08);

    transition:.3s;
}

.testimonial-card:hover{

    transform:translateY(-10px);
}

.testimonial-card img{

    width:90px;
    height:90px;

    border-radius:50%;

    object-fit:cover;

    margin-bottom:20px;
}

.testimonial-card h3{

    color:#333;
    margin-bottom:10px;
}

.stars{

    font-size:22px;
    margin-bottom:20px;
}

.testimonial-card p{

    color:#666;
    line-height:1.8;
}
/* ===========================
   CALL TO ACTION
=========================== */

.cta{

    padding:100px 10%;

    background:linear-gradient(rgba(0,0,0,.65),
    rgba(0,0,0,.65)),
    url("../images/cta-bg.jpg");

    background-size:cover;

    background-position:center;

    text-align:center;

    color:white;
}

.cta-content{

    max-width:700px;

    margin:auto;
}

.cta h2{

    font-size:48px;

    margin-bottom:20px;
}

.cta p{

    font-size:20px;

    line-height:1.8;

    margin-bottom:35px;
}
/* ===========================
   FOOTER
=========================== */

.footer{

    background:#222;

    color:white;

    padding:70px 10% 30px;
}

.footer-container{

    display:grid;

    grid-template-columns:repeat(auto-fit,minmax(220px,1fr));

    gap:40px;

    margin-bottom:40px;
}

.footer-box h3{

    margin-bottom:20px;

    color:#F9B233;
}

.footer-box p{

    line-height:1.8;

    color:#ddd;
}

.footer-box ul{

    list-style:none;
}

.footer-box ul li{

    margin-bottom:12px;
}

.footer-box ul li a{

    color:#ddd;

    text-decoration:none;

    transition:.3s;
}

.footer-box ul li a:hover{

    color:#F9B233;
}

.social-icons{

    display:flex;

    gap:15px;
}

.social-icons a{

    color:white;

    font-size:22px;

    transition:.3s;
}

.social-icons a:hover{

    color:#F9B233;
}

.footer hr{

    border:none;

    height:1px;

    background:#555;

    margin:25px 0;
}

.copyright{

    text-align:center;

    color:#bbb;
}
/* ===========================
   PAGE HEADER
=========================== */

.page-header{

    background:#F9B233;

    color:white;

    text-align:center;

    padding:80px 20px;
}

.page-header h1{

    font-size:48px;

    margin-bottom:20px;
}

.page-header p{

    font-size:20px;
}
/* ===========================
   CONTACT PAGE
=========================== */

.contact{

    display:flex;

    gap:50px;

    padding:80px 10%;

    flex-wrap:wrap;
}

.contact-info{

    flex:1;

    min-width:300px;
}

.contact-info h2{

    margin-bottom:25px;

    color:#333;
}

.contact-info p{

    margin-bottom:18px;

    color:#555;

    font-size:18px;
}

.contact-form{

    flex:1;

    min-width:300px;
}

.contact-form form{

    display:flex;

    flex-direction:column;

    gap:20px;
}

.contact-form input,
.contact-form textarea{

    padding:15px;

    border:1px solid #ddd;

    border-radius:10px;

    font-size:16px;

    font-family:Poppins,sans-serif;
}

.contact-form textarea{

    resize:none;
}
/* ===========================
   RESPONSIVE DESIGN
=========================== */

@media (max-width: 992px){

    .navbar{

        flex-direction:column;

        padding:20px;
    }

    .nav-links{

        margin-top:20px;

        gap:20px;

        flex-wrap:wrap;

        justify-content:center;
    }

    .hero h1{

        font-size:42px;
    }

    .hero p{

        font-size:18px;
    }

    .about{

        flex-direction:column;
    }

    .contact{

        flex-direction:column;
    }

}

@media (max-width:768px){

    .hero{

        height:auto;

        padding:80px 20px;
    }

    .hero h1{

        font-size:34px;
    }

    .hero p{

        font-size:16px;
    }

    .hero-buttons{

        flex-direction:column;
    }

    .btn{

        width:100%;
        text-align:center;
    }

    .navbar{

        padding:15px;
    }

    .nav-links{

        flex-direction:column;

        align-items:center;

        gap:15px;
    }

    .products{

        padding:60px 20px;
    }

    .about{

        padding:60px 20px;
    }

    .features{

        padding:60px 20px;
    }

    .testimonials{

        padding:60px 20px;
    }

    .cta{

        padding:70px 20px;
    }

    .footer{

        padding:60px 20px;
    }

}
.product-card img{

    transition:.4s;
}

.product-card:hover img{

    transform:scale(1.08);
}
/* ===========================
   MOBILE MENU
=========================== */

.menu-toggle{

    display:none;

    font-size:30px;

    cursor:pointer;
}

@media(max-width:768px){

    .menu-toggle{

        display:block;
    }

    .nav-links{

        display:none;

        flex-direction:column;

        width:100%;

        text-align:center;

        margin-top:20px;
    }

    .nav-links.active{

        display:flex;
    }
}
// ===============================
// PRICE CALCULATOR
// ===============================

const eggType = document.getElementById("eggType");
const quantity = document.getElementById("quantity");
const totalPrice = document.getElementById("totalPrice");

function updateTotal() {

    if (!eggType || !quantity || !totalPrice) return;

    const price = Number(eggType.value);
    const qty = Number(quantity.value);

    const total = price * qty;

    totalPrice.textContent = "₦" + total.toLocaleString();

}

if (eggType && quantity) {

    eggType.addEventListener("change", updateTotal);

    quantity.addEventListener("input", updateTotal);

    updateTotal();

}