/* ============================================
   Randal's Restro Café
   style.css
============================================ */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

html{
    scroll-behavior:smooth;
}

body{
    font-family:'Poppins',sans-serif;
    background:#f5f5f5;
    color:#222;
}

/* ================= HEADER ================= */

header{

    background:#ffffff;

    position:sticky;

    top:0;

    z-index:999;

    padding:15px 25px;

    box-shadow:0 3px 12px rgba(0,0,0,.08);

}

.logo-area{

    display:flex;

    align-items:center;

}

.logo-area img{

    width:75px;

    height:75px;

    border-radius:50%;

    margin-right:18px;

    border:3px solid #ff6b00;

    object-fit:cover;

}

.restaurant-details h1{

    color:#ff6b00;

    font-size:28px;

}

.restaurant-details p{

    color:#777;

    margin-top:4px;

}

/* ================= HERO ================= */

.hero{

    height:220px;

    background:linear-gradient(135deg,#ff6b00,#ff9a3c);

    display:flex;

    align-items:center;

    justify-content:center;

    text-align:center;

    color:white;

}

.hero-overlay{

    background:rgba(0,0,0,.25);

    width:100%;

    height:100%;

    display:flex;

    flex-direction:column;

    justify-content:center;

}

.hero h2{

    font-size:34px;

    margin-bottom:12px;

}

.hero p{

    font-size:18px;

}

/* ================= SEARCH ================= */

.search-box{

    background:white;

    padding:20px;

    position:sticky;

    top:106px;

    z-index:998;

}

.search-wrapper{

    position:relative;

}

.search-wrapper i{

    position:absolute;

    left:18px;

    top:16px;

    color:#888;

}

.search-wrapper input{

    width:100%;

    padding:15px 20px 15px 50px;

    border:none;

    border-radius:14px;

    background:#f0f0f0;

    font-size:16px;

    outline:none;

}

.search-wrapper input:focus{

    background:white;

    box-shadow:0 0 0 3px rgba(255,107,0,.2);

}

/* ================= CATEGORY ================= */

#categoryBar{

    background:white;

    display:flex;

    overflow-x:auto;

    gap:10px;

    padding:15px;

    position:sticky;

    top:182px;

    z-index:997;

    box-shadow:0 2px 8px rgba(0,0,0,.06);

}

#categoryBar::-webkit-scrollbar{

    display:none;

}

.category{

    border:none;

    background:#ececec;

    padding:10px 18px;

    border-radius:30px;

    cursor:pointer;

    white-space:nowrap;

    transition:.3s;

    font-size:15px;

}

.category:hover{

    background:#ff6b00;

    color:white;

}

/* ================= MENU ================= */

#menuContainer{

    max-width:1300px;

    margin:auto;

    padding:30px 20px;

}

.menu-section{

    margin-bottom:50px;

}

.menu-section h2{

    font-size:30px;

    color:#ff6b00;

    margin-bottom:20px;

}


/* ================= GRID ================= */

.menu-grid{

    display:grid;

    grid-template-columns:repeat(auto-fill,minmax(320px,1fr));

    gap:25px;

}

/* ================= CARD ================= */

.menu-card{

    background:white;

    border-radius:18px;

    overflow:hidden;

    box-shadow:0 5px 18px rgba(0,0,0,.08);

    transition:.3s;

}

.menu-card:hover{

    transform:translateY(-8px);

    box-shadow:0 10px 25px rgba(0,0,0,.15);

}

.menu-card img{

    width:100%;

    height:220px;

    object-fit:cover;

}

.card-content{

    padding:18px;

}

.food-name{

    font-size:20px;

    font-weight:600;

    margin-bottom:8px;

}

.food-desc{

    color:#777;

    font-size:14px;

    line-height:1.6;

    min-height:65px;

}

.food-bottom{

    display:flex;

    justify-content:space-between;

    align-items:center;

    margin-top:18px;

}

.price{

    color:#ff6b00;

    font-size:24px;

    font-weight:bold;

}

/* ================= LOADER ================= */

#loader{

    position:fixed;

    inset:0;

    background:white;

    display:flex;

    justify-content:center;

    align-items:center;

    z-index:9999;

}

.spinner{

    width:60px;

    height:60px;

    border-radius:50%;

    border:6px solid #ececec;

    border-top:6px solid #ff6b00;

    animation:spin 1s linear infinite;

}

/* ================= FOOTER ================= */

footer{

    margin-top:60px;

    padding:40px;

    text-align:center;

    background:white;

    border-top:1px solid #ddd;

}

footer img{

    width:70px;

    height:70px;

    border-radius:50%;

    margin-bottom:15px;

}

footer h3{

    color:#ff6b00;

    margin-bottom:8px;

}

footer p{

    color:#666;

}

footer small{

    display:block;

    margin-top:15px;

    color:#999;

}

/* ================= UTILITIES ================= */

.hidden{

    display:none;

}

/* ================= ANIMATION ================= */

@keyframes spin{

    from{

        transform:rotate(0deg);

    }

    to{

        transform:rotate(360deg);

    }

}

.category{

    border:none;
    background:#efefef;
    color:#444;
    padding:10px 20px;
    border-radius:25px;
    cursor:pointer;
    white-space:nowrap;
    transition:all .25s ease;

}

.category:hover{

    background:#ffd7bf;

}

.category.active{

    background:#ff6b00;
    color:white;
    font-weight:600;
    box-shadow:0 8px 20px rgba(255,107,0,.35);
    transform:translateY(-2px);

}

/* ================= GO TO TOP ================= */

#goTopBtn{

    position:fixed;

    bottom:25px;

    right:25px;

    width:50px;

    height:50px;

    border:none;

    border-radius:50%;

    background:#ff6b00;

    color:white;

    font-size:20px;

    cursor:pointer;

    display:none;

    align-items:center;

    justify-content:center;

    box-shadow:0 8px 20px rgba(0,0,0,.25);

    z-index:999;

    transition:all .3s ease;

}

#goTopBtn:hover{

    background:#e55d00;

    transform:translateY(-3px);

}