/* Home page specific styles */

/* ===== Hero ===== */
.hero{
    position:relative;
    min-height:560px;
    display:flex;
    align-items:center;
    color:#fff;
    padding:70px 28px;
    overflow:hidden;
    background:var(--dark);
}

.hero-slides{
    position:absolute;
    top:0;
    left:0;
    width:100%;
    height:100%;
}

.hero-slide{
    position:absolute;
    top:0;
    left:0;
    width:100%;
    height:100%;
    display:flex;
    align-items:center;
    opacity:0;
    transition:opacity 0.8s ease-in-out;
    background-size:cover;
    background-position:center;
    background-repeat:no-repeat;
}

.hero-slide::before{
    content:'';
    position:absolute;
    top:0;
    left:0;
    width:100%;
    height:100%;
    background:linear-gradient(100deg, rgba(10, 6, 5, 0.651) 22%, rgba(10, 6, 5, 0.589) 42%, rgba(10,6,5,.15) 62%, rgba(10,6,5,.05) 100%);
}

.hero-slide.active{
    opacity:1;
}

.hero-inner{
    max-width:1300px;
    margin:0 auto;
    width:100%;
    position:relative;
    z-index:2;
    display:flex;
    align-items:center;
    min-height:1px;
}

.hero-content{
    max-width:600px;
    position:relative;
    z-index:2;
    padding-left:64px;
}

.hero-content .eyebrow{
    display:inline-block;
    color:var(--gold);
    font-weight:800;
    font-size:.85rem;
    letter-spacing:3px;
    margin-bottom:16px;
    text-transform:uppercase;
}

.hero h2{
    font-size:4.4rem;
    line-height:1.02;
    font-weight:400;
}

.hero h2 .accent{
    color:var(--gold);
}

.hero p{
    margin:22px 0 32px;
    font-size:1.2rem;
    color:#e9e1db;
    max-width:460px;
    line-height:1.55;
    font-weight:500;
}

.hero-arrows{
    position:absolute;
    top:50%;
    transform:translateY(-50%);
    width:100%;
    display:flex;
    justify-content:space-between;
    padding:0 20px;
    pointer-events:none;
    z-index:10;
}

.hero-arrows button{
    pointer-events:auto;
    width:44px;
    height:44px;
    border-radius:50%;
    background:rgba(0,0,0,.5);
    border:1px solid rgba(255,255,255,.3);
    backdrop-filter:blur(4px);
    color:#fff;
    display:flex;
    align-items:center;
    justify-content:center;
    cursor:pointer;
    transition:all .3s ease;
}

.hero-arrows button:hover{
    background:rgba(0,0,0,.7);
    transform:scale(1.1);
}

.hero-arrows .icon{
    font-size:18px;
}

/* Hero Dots - Fixed positioning */
.hero-dots{
    position:absolute;
    bottom:100px; /* Increased from 30px to 100px to avoid overlap */
    left:50%;
    transform:translateX(-50%);
    display:flex;
    gap:10px;
    z-index:3; /* Lower z-index to stay behind order card */
}

.hero-dots span{
    width:8px;
    height:8px;
    border-radius:50%;
    background:rgba(255,255,255,.4);
    transition:all .3s ease;
    cursor:pointer;
}

.hero-dots span.active{
    background:var(--gold);
    width:24px;
    border-radius:4px;
}

/* ===== Order options ===== */
.order-wrap{
    padding:0 28px;
    margin-top:-76px;
    position:relative;
    z-index:5; /* Higher z-index to stay above hero dots */
    scroll-margin-top:100px;
}

.order-card{
    background:var(--paper);
    max-width:1200px;
    margin:0 auto;
    border-radius:14px;
    box-shadow:var(--shadow-lg);
    padding:40px 36px;
    border:1px solid var(--line);
    position:relative; /* Ensure proper stacking */
}

.order-card h3{
    text-align:center;
    color:var(--red);
    font-size:1.35rem;
    letter-spacing:1px;
    font-weight:400;
    display:flex;
    align-items:center;
    justify-content:center;
    gap:18px;
    margin-bottom:32px;
}

.order-card h3::before,
.order-card h3::after{
    content:"";
    width:48px;
    height:2px;
    background:var(--red);
    border-radius:2px;
}

.order-grid{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:22px;
}

.order-option{
    border:1px solid var(--line);
    border-radius:10px;
    padding:22px;
    display:flex;
    flex-direction:column;
    gap:12px;
    transition:box-shadow .2s ease, border-color .2s ease;
}

.order-option:hover{
    box-shadow:var(--shadow-sm);
    border-color:#e2d6cc;
}

.order-option .icon-row{
    display:flex;
    align-items:center;
    gap:12px;
}

.icon-circle{
    width:42px;
    height:42px;
    border-radius:50%;
    color:#fff;
    display:flex;
    align-items:center;
    justify-content:center;
    flex:none;
}

.icon-circle .icon{
    font-size:19px;
}

.icon-circle.red{
    background:var(--red);
}

.icon-circle.green{
    background:var(--green);
}

.icon-circle.gold{
    background:var(--gold);
    color:var(--dark);
}

.order-option strong{
    font-size:1.1rem;
    letter-spacing:.4px;
    font-weight:800;
    text-transform:uppercase;
    font-family:'Archivo Black','Inter',sans-serif;
}

.order-option p{
    font-size:.92rem;
    color:var(--muted);
    line-height:1.5;
}

.order-option .fee-note{
    display:inline-flex;
    align-items:center;
    gap:5px;
    color:var(--green);
    font-weight:800;
    font-size:.85rem;
}

.order-option > .btn{
    align-self:flex-start;
    margin-top:auto;
}

/* Delivery Partners */
.delivery-partners{
    display:flex;
    flex-direction:column;
    gap:16px;
    margin-top:8px;
}

.partner-row{
    display:flex;
    align-items:center;
    gap:12px;
    padding:12px;
    background:var(--cream);
    border-radius:10px;
    border:1px solid var(--line);
    transition:all .2s ease;
}

.partner-row:hover{
    box-shadow:var(--shadow-sm);
    border-color:#e2d6cc;
}

.partner-logo{
    width:44px;
    height:44px;
    border-radius:10px;
    object-fit:contain;
    flex-shrink:0;
    background:white;
    padding:4px;
    box-shadow:0 2px 4px rgba(0,0,0,.08);
}

.partner-details{
    display:flex;
    flex-direction:column;
    gap:6px;
    flex:1;
}

.partner-name{
    font-weight:800;
    font-size:0.9rem;
    color:var(--dark);
    letter-spacing:.3px;
}

.partner-btn{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    width:100%;
    padding:10px 16px;
    border-radius:6px;
    border:none;
    font-weight:800;
    font-size:0.75rem;
    letter-spacing:0.5px;
    text-transform:uppercase;
    cursor:pointer;
    transition:all 0.18s ease;
}

.partner-btn:hover{
    transform:translateY(-1px);
    box-shadow:0 4px 8px rgba(0,0,0,.15);
}

.partner-btn.uber{
    background:#000000;
    color:#ffffff;
}

.partner-btn.uber:hover{
    background:#1a1a1a;
}

.partner-btn.mrd{
    background:#00c1ac;
    color:#04231f;
}

.partner-btn.mrd:hover{
    background:#00d4bd;
}

.partner-meta{
    display:flex;
    flex-direction:column;
    gap:2px;
    font-size:0.75rem;
    color:var(--muted);
    line-height:1.3;
}

/* ===== Favourites ===== */
.favourites{
    padding:64px 28px 24px;
    max-width:1200px;
    margin:0 auto;
}

.fav-head{
    display:flex;
    justify-content:space-between;
    align-items:flex-end;
    margin-bottom:28px;
}

.fav-head .eyebrow{
    display:block;
    color:var(--red);
    font-weight:800;
    font-size:.8rem;
    letter-spacing:2.5px;
    margin-bottom:8px;
    text-transform:uppercase;
}

.fav-head h3{
    font-size:2rem;
    letter-spacing:.3px;
    color:var(--dark);
    font-weight:400;
}

.fav-grid{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:24px;
}

.food-card{
    background:var(--paper);
    border-radius:12px;
    overflow:hidden;
    box-shadow:var(--shadow-sm);
    border:1px solid var(--line);
    transition:box-shadow .2s ease, transform .2s ease;
}

.food-card:hover{
    box-shadow:var(--shadow-md);
    transform:translateY(-3px);
}

.food-card .img-wrap{
    position:relative;
    overflow:hidden;
}

.food-card img{
    height:176px;
    width:100%;
    object-fit:cover;
}

.food-card .fc-body{
    padding:16px 18px 20px;
}

.food-card h4{
    font-family:'Inter';
    font-weight:800;
    font-size:1.08rem;
    margin-bottom:8px;
    text-transform:none;
}

.food-card p{
    font-size:.86rem;
    color:var(--muted);
    margin-bottom:16px;
    line-height:1.45;
    min-height:38px;
}

.fc-foot{
    display:flex;
    justify-content:space-between;
    align-items:center;
}

.fc-foot .price{
    color:var(--red);
    font-weight:800;
    font-size:1.05rem;
}

/* ===== Responsive ===== */
@media (max-width:980px){
    .order-grid{
        grid-template-columns:1fr;
    }
    
    .fav-grid{
        grid-template-columns:repeat(2,1fr);
    }
    
    .hero h2{
        font-size:3.2rem;
    }
    
    .hero-content{
        padding-left:52px;
    }
    
    /* Adjust hero dots for tablet */
    .hero-dots{
        bottom:90px;
    }
}

@media (max-width:560px){
    /* Hero Mobile Fixes */
    .hero{
        min-height:560px;
        padding:60px 20px 100px;
    }
    
    .hero-inner{
        display:flex;
        flex-direction:column;
        align-items:center;
        text-align:center;
        padding:0;
    }

    .hero-slide::before{
        content:'';
        position:absolute;
        top:0;
        left:0;
        width:100%;
        height:100%;
        background:linear-gradient(100deg, rgba(10, 6, 5, 0.637) 22%, rgba(10, 6, 5, 0.568) 42%, rgba(10, 6, 5, 0.521) 62%, rgba(10,6,5,.05) 100%);
    }    

    .hero-content{
        padding-left:0;
        margin-top:0;
        margin-bottom:40px;
        max-width:100%;
        text-align:center;
        display:flex;
        flex-direction:column;
        align-items:center;
    }
    
    .hero h2{
        font-size:2.8rem;
        line-height:1.1;
        text-align:center;
    }
    
    .hero p{
        font-size:1rem;
        margin:16px auto 24px;
        text-align:center;
        max-width:280px;
    }
    
    .hero .btn{
        width:auto;
        min-width:200px;
    }
    
    .hero-arrows{
        display:none;
    }
    
    /* Adjust hero dots for mobile */
    .hero-dots{
        bottom:80px;
        gap:8px;
    }
    
    .hero-dots span{
        width:6px;
        height:6px;
    }
    
    .hero-dots span.active{
        width:18px;
        border-radius:3px;
    }
    
    .order-card{
        padding:26px 18px;
    }
    
    /* Delivery Partners Mobile */
    .partner-row{
        padding:10px;
        gap:10px;
    }
    
    .partner-logo{
        width:40px;
        height:40px;
    }
    
    .partner-btn{
        padding:10px 14px;
        font-size:0.7rem;
    }
    
    /* Favourites Mobile Fixes */
    .favourites{
        padding:40px 16px 20px;
    }
    
    .fav-head{
        flex-direction:column;
        align-items:center;
        text-align:center;
        gap:16px;
        margin-bottom:24px;
    }
    
    .fav-head h3{
        font-size:1.6rem;
    }
    
    .fav-grid{
        grid-template-columns:1fr;
        gap:20px;
    }
    
    .food-card img{
        height:200px;
    }
    
    .food-card .fc-body{
        padding:16px;
    }
    
    .food-card h4{
        font-size:1.1rem;
    }
    
    .food-card p{
        font-size:.88rem;
        min-height:auto;
        margin-bottom:12px;
    }
    
    .fc-foot{
        flex-direction:row;
        align-items:center;
    }
    
    .fc-foot .price{
        font-size:1.1rem;
    }
}