/* ===========================
   QUICKORDER - MODERN UI
=========================== */

:root{
    --primary:#ff3d2e;
    --primary-dark:#c91f16;
    --secondary:#ffb703;
    --dark:#171923;
    --text:#2d3748;
    --muted:#718096;
    --light:#fff7f2;
    --card:#ffffff;
    --radius:22px;
    --shadow:0 18px 45px rgba(20,20,43,.12);
}

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

html{
    scroll-behavior:smooth;
}

body{
    font-family:"Segoe UI", Arial, Helvetica, sans-serif;
    background:linear-gradient(180deg,#fff7f2 0%,#f8f9fa 45%,#ffffff 100%);
    color:var(--text);
    overflow-x:hidden;
}

img{
    max-width:100%;
}

/* ===========================
   NAVBAR
=========================== */

.qo-navbar{
    background:rgba(185,28,28,.92);
    backdrop-filter:blur(14px);
}

.navbar-brand{
    font-size:28px;
    letter-spacing:.3px;
}

.brand-icon{
    width:38px;
    height:38px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    border-radius:14px;
    color:#b91c1c;
    background:#fff;
    box-shadow:0 10px 25px rgba(0,0,0,.18);
}

.nav-link{
    font-size:16px;
    font-weight:600;
    margin-left:8px;
    padding:10px 14px!important;
    border-radius:999px;
    transition:.25s ease;
}

.nav-link:hover,
.nav-link.active{
    background:rgba(255,255,255,.18);
    color:#fff!important;
}

.qo-mode-btn{
    width:42px;
    height:42px;
    border-radius:50%;
    color:var(--primary-dark);
    border:none;
}

/* ===========================
   HERO / BANNER
=========================== */

.hero-carousel{
    position:relative;
    min-height:560px;
    overflow:hidden;
    background:#111;
}

.hero-carousel .carousel-item img{
    height:560px;
    object-fit:cover;
    filter:brightness(.58) saturate(1.1);
}

.hero-overlay{
    position:absolute;
    inset:0;
    display:flex;
    align-items:center;
    background:linear-gradient(90deg,rgba(23,25,35,.82),rgba(23,25,35,.35),rgba(23,25,35,.08));
    z-index:2;
}

.hero-content{
    max-width:650px;
    color:white;
}

.hero-badge{
    display:inline-flex;
    align-items:center;
    gap:8px;
    background:rgba(255,255,255,.15);
    border:1px solid rgba(255,255,255,.28);
    padding:10px 16px;
    border-radius:999px;
    margin-bottom:18px;
    font-weight:700;
}

.hero-content h1{
    font-size:clamp(42px,6vw,76px);
    line-height:1.03;
    font-weight:900;
    margin-bottom:18px;
}

.hero-content p{
    font-size:20px;
    color:#fff2e6;
    margin-bottom:28px;
}

.hero-content .btn{
    border-radius:999px;
    padding:13px 28px;
    box-shadow:0 14px 30px rgba(255,183,3,.32);
}

/* ===========================
   SECTIONS
=========================== */

section.container{
    position:relative;
}

.section-title,
.section-heading{
    font-size:clamp(28px,3vw,40px);
    font-weight:900;
    color:var(--dark);
    margin-bottom:28px;
}

.section-title{
    text-align:center;
}

.section-title::after{
    content:"";
    display:block;
    width:90px;
    height:5px;
    border-radius:999px;
    margin:12px auto 0;
    background:linear-gradient(90deg,var(--primary),var(--secondary));
}

.section-head{
    gap:16px;
    flex-wrap:wrap;
    margin-bottom:10px;
}

.card,
.search-panel{
    border:0;
    border-radius:var(--radius);
    background:rgba(255,255,255,.92);
    box-shadow:var(--shadow)!important;
}

.search-panel{
    margin-top:-92px;
    position:relative;
    z-index:5;
}

.form-control,
.form-select{
    height:52px;
    border-radius:15px;
    border:1px solid #edf2f7;
    background:#fff;
    font-weight:600;
}

.form-control:focus,
.form-select:focus{
    border-color:var(--primary);
    box-shadow:0 0 0 .22rem rgba(255,61,46,.12);
}

/* ===========================
   CATEGORY
=========================== */

.category-btn{
    min-height:58px;
    border-radius:18px;
    font-weight:800;
    border:1px solid rgba(255,61,46,.28);
    background:#fff;
    transition:.25s ease;
}

.category-btn:hover{
    transform:translateY(-4px);
    color:white;
    background:linear-gradient(135deg,var(--primary),#ff7a45);
    box-shadow:0 16px 30px rgba(255,61,46,.24);
}

/* ===========================
   RESTAURANT / FOOD CARD
=========================== */

.restaurant-card,
.food-card{
    border:0;
    border-radius:24px;
    overflow:hidden;
    background:var(--card);
    box-shadow:0 16px 35px rgba(20,20,43,.1);
    transition:.28s ease;
}

.restaurant-card:hover,
.food-card:hover{
    transform:translateY(-8px);
    box-shadow:0 24px 55px rgba(20,20,43,.16);
}

.restaurant-card img,
.food-card img{
    width:100%;
    height:220px;
    object-fit:cover;
}

.restaurant-body,
.card-body{
    padding:18px;
}

.restaurant-name,
.food-name{
    font-size:21px;
    font-weight:900;
    color:var(--dark);
}

.restaurant-address{
    color:var(--muted);
    font-size:14px;
}

.rating{
    color:#f59f00;
    font-weight:800;
}

.food-price{
    font-size:24px;
    color:var(--primary);
    font-weight:900;
}

.food-category{
    display:inline-block;
    background:#e8fff4;
    color:#087f5b;
    padding:6px 14px;
    border-radius:999px;
    font-size:13px;
    font-weight:800;
}

/* ===========================
   BUTTONS
=========================== */

.btn{
    border-radius:14px;
    font-weight:700;
}

.btn-danger,
.btn-order{
    background:linear-gradient(135deg,var(--primary),#ff7a45)!important;
    border:0!important;
    color:white!important;
    box-shadow:0 10px 22px rgba(255,61,46,.22);
}

.btn-danger:hover,
.btn-order:hover{
    transform:translateY(-2px);
    background:linear-gradient(135deg,var(--primary-dark),var(--primary))!important;
}

.btn-detail{
    background:#eef5ff;
    color:#0d6efd;
    border:0;
    padding:10px 18px;
    border-radius:14px;
    font-weight:800;
}

/* ===========================
   CART / ORDER / TABLE
=========================== */

.card-header{
    border:0;
    border-radius:var(--radius) var(--radius) 0 0!important;
    padding:18px 22px;
}

.card-header h3{
    margin:0;
    font-weight:900;
}

.table{
    overflow:hidden;
    border-radius:18px;
}

.table thead th{
    border:0;
    padding:15px;
    white-space:nowrap;
}

.table tbody td{
    padding:14px 15px;
    vertical-align:middle;
}

form{
    background:transparent;
    padding:0;
    border-radius:0;
    box-shadow:none;
}

label{
    margin-bottom:7px;
    font-weight:800;
    color:var(--dark);
}

textarea.form-control{
    height:120px;
    resize:none;
}

.text-danger{
    font-size:14px;
    font-weight:700;
}

.progress{
    border-radius:999px;
    background:#fff3bf;
}

.progress-bar{
    border-radius:999px;
    font-weight:800;
}

/* ===========================
   MODAL / TOAST / TOP
=========================== */

.modal-content{
    border:0;
    border-radius:24px;
    overflow:hidden;
}

.modal img{
    width:100%;
    height:350px;
    object-fit:cover;
    border-radius:18px;
}

.modal-title{
    font-size:28px;
    font-weight:900;
}

.toast{
    border:0;
    border-radius:18px;
    box-shadow:var(--shadow);
}

#topBtn{
    width:54px;
    height:54px;
    display:flex;
    align-items:center;
    justify-content:center;
    z-index:20;
}

footer{
    background:linear-gradient(135deg,#111827,#1f2937)!important;
    border-radius:32px 32px 0 0;
}

footer h3,
footer h4{
    font-weight:900;
}

footer i{
    transition:.25s ease;
}

footer i:hover{
    transform:translateY(-4px);
    color:var(--secondary);
}

/* ===========================
   DARK MODE SUPPORT
=========================== */

body.dark,
body.dark-mode{
    background:#10131a;
    color:#e9ecef;
}

body.dark .card,
body.dark-mode .card,
body.dark .search-panel,
body.dark-mode .search-panel,
body.dark .restaurant-card,
body.dark-mode .restaurant-card,
body.dark .food-card,
body.dark-mode .food-card{
    background:#181c25;
    color:#e9ecef;
}

body.dark .section-title,
body.dark-mode .section-title,
body.dark .section-heading,
body.dark-mode .section-heading,
body.dark .restaurant-name,
body.dark-mode .restaurant-name,
body.dark .food-name,
body.dark-mode .food-name,
body.dark label,
body.dark-mode label{
    color:#fff;
}

body.dark .form-control,
body.dark-mode .form-control,
body.dark .form-select,
body.dark-mode .form-select{
    background:#111827;
    color:#fff;
    border-color:#2d3748;
}

/* ===========================
   RESPONSIVE
=========================== */

@media (max-width:991px){
    .nav-link{
        margin-left:0;
        margin-top:6px;
    }

    .hero-carousel,
    .hero-carousel .carousel-item img{
        min-height:520px;
        height:520px;
    }

    .search-panel{
        margin-top:-60px;
    }

    .search-panel .row{
        gap:12px;
    }
}

@media (max-width:576px){
    .navbar-brand{
        font-size:23px;
    }

    .hero-content p{
        font-size:16px;
    }

    .hero-carousel,
    .hero-carousel .carousel-item img{
        min-height:480px;
        height:480px;
    }

    .search-panel{
        margin-top:-42px;
        padding:18px!important;
    }

    .section-head{
        align-items:flex-start!important;
    }

    .table{
        font-size:14px;
    }
}
