/*
=====================
    GLOBAL STYLES
=====================
*/
.bg-mesh {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
}

body {
    font-family: "Segoe UI", Arial, sans-serif;
    background: rgba(73, 49, 30, 0.569);
    color: #2A1E16;
    margin: 0;
}

h1, h2, h3 {
    font-family: Georgia, "Times New Roman", serif;
}

a {
    text-decoration: none;
}

/*
==================
    LOGO BLOCK
==================
*/
.logo-block {
    display: flex;
    justify-content: center;
    padding: 25px 0;
}

.logo img {
    width: 300px;
    height: auto;
}

/*
====================
    HERO SECTION
====================
*/
.hero {
    text-align: center;
    padding: 200px 20px;
    position: relative;
    color: white;
    background: url("/img/CafeHero.png");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(43, 28, 16, 0.65);
    z-index: 1;
}

.hero h1,
.hero p,
.cta-button {
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 2.8rem;
    margin-bottom: 15px;
    color: #6B4F3B;
}

.hero p {
    max-width: 700px;
    margin: auto;
    font-size: 1.1rem;
    line-height: 1.5;
    color: gray;
}

.cta-button {
    display: inline-block;
    margin-top: 25px;
    padding: 12px 24px;
    background: #C49C6C;
    color: white;
    border-radius: 6px;
    font-weight: 600;
    transition: 0.3s;
}

.cta-button:hover {
    background: #6B4F3B;
}

/*
======================
    FEATURED ITEMS
======================
*/
.featured {
    padding: 70px 20px;
    text-align: center;
}

.featured h2 {
    font-size: 2rem;
    margin-bottom: 10px;
}

.featured h2::after {
    content: "";
    display: block;
    width: 60px;
    height: 3px;
    background: #C49C6C;
    margin: 12px auto 20px;
    border-radius: 2px;
}

.featured p {
    margin-bottom: 40px;
    color: #5A4636;
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px,1fr));
    gap: 30px;
    max-width: 1200px;
    margin: auto;
}

.feature-item {
    display: block;
    color: inherit;
    background: #DDC7B3;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 24px rgba(0,0,0,0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.feature-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.12);
}

.feature-item:hover::after {
    background: rgba(0, 0, 0, 0.05);
}

.feature-item img {
    display: block;
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-bottom: 1px solid #C49C6C;
    filter: brightness(85%);
    transition: transform 0.6s ease, filter 0.6s ease;
}

.feature-item:hover img {
    transform: scale(1.15);
    filter: brightness(100%);
}

.feature-item p {
    padding: 15px;
    font-weight: 600;
}

/*
=====================
    DAILY SPECIAL
=====================
*/
.daily-special {
    text-align: center;
}

.daily-special h2 {
    font-size: 2rem;
    margin-bottom: 30px;
}

.daily-special h2::after {
    content: "";
    display: block;
    width: 60px;
    height: 3px;
    background: #C49C6C;
    margin: 12px auto 25px;
    border-radius: 2px;
}

.special-card {
    max-width: 500px;
    margin: auto;
    background: #DDC7B3;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 24px rgba(0,0,0,0.1);
    border: 1px solid rgba(196, 156, 108, 0.3);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.special-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 38px rgba(0, 0, 0, 0.18);
}

.special-card img {
    width: 500px;
    height: 400px;
    object-fit: contain;
    object-position: center;
    filter: brightness(90%);
    transition: transform 0.6s ease, filter 0.6s ease;
    transform: scale(0.8);
}

.special-card:hover img {
    transform: scale(1.05);
    filter: brightness(100%);
}

.special-info {
    padding: 25px;
}

.special-info h3 {
    margin: 0 0 10px;
    font-size: 1.5rem;
}

.special-info p {
    margin: 0 0 15px;
    color: #5A4636;
}

.special-info span {
    font-weight: bold;
    color: #6B4F3B;
}

/*
==================
    QUICK MENU
===================
*/
.quick-menu {
    text-align: center;
}

.quick-menu h2 {
    font-size: 2rem;
    margin-bottom: 30px;
}

.quick-menu h2::after {
    content: "";
    display: block;
    width: 60px;
    height: 3px;
    background: #C49C6C;
    margin: 12px auto 25px;
    border-radius: 2px;
}

.quick-menu ul {
    list-style: none;
    padding: 0;
    margin: 0 auto 35px;
    max-width: 500px;
}

.quick-menu li {
    display: flex;
    gap: 10px;
    align-items: center;
    padding: 12px 15px;
    margin-bottom: 10px;
    background: #DDC7B3;
    border-radius: 8px;
    font-weight: 500;
    box-shadow: 0 6px 14px rgba(0,0,0,0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.quick-menu li:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.12);
}

.quick-menu li span:last-child {
    font-weight: 600;
    color: #6B4F3B;
}

.dots {
    flex: 1;
    border-bottom: 1px dotted rgba(0, 0, 0, 0.25);
}

/*
===================================
    HOME SECTION (SIDE BY SIDE)
===================================
*/
.home-section {
    display: flex;
    gap: 30px;
    justify-content: center;
    align-items: flex-start;
    flex-wrap: wrap;
    padding: 70px 20px;
}

.home-section .daily-special,
.home-section .quick-menu {
    flex: 1 1 500px;
    max-width: 500px;
}

/*
===================
    BACK TO TOP
===================
*/
#backToTopCafe {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 50px;
    height: 50px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 6px 15px rgba(0,0,0,0.2);
    opacity: 0;
    transform: translateY(20px);
    transition: 0.35s;
}

#backToTopCafe.show {
    opacity: 1;
    transform: translateY(0);
}

#backToTopCafe:hover {
    transform: scale(1.1);
}


/*
======================================
    RESPONSIVE CODE (SMALL MOBILE)
======================================
*/
@media (max-width: 480px) {
    .hero {
        padding: 90px 15px;
    }

    .hero h1 {
        font-size: 1.7rem;
    }

    .hero p {
        font-size: 0.9rem;
    }

    .featured h2,
    .daily-special h2,
    .quick-menu h2 {
        font-size: 1.4rem;
    }

    .feature-item img {
        height: 200px;
    }

    .quick-menu li {
        font-size: 0.85rem;
    }
}


/*
================================
    RESPONSIVE CODE (MOBILE)
================================
*/
@media (max-width: 768px) {
    .logo img {
        width: 180px;
    }

    .hero {
        padding: 110px 20px;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 0.95rem;
        line-height: 1.5;
    }

    .cta-button {
        padding: 10px 18px;
        font-size: 0.95rem;
    }

    .featured {
        padding: 45px 20px;
    }

    .featured-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .feature-item img {
        height: 220px;
    }

    .home-section {
        flex-direction: column;
        gap: 45px;
        padding: 45px 20px;
    }

    .daily-special h2,
    .quick-menu h2 {
        font-size: 1.6rem;
    }

    .special-card {
        max-width: 100%;
    }

    .special-card img {
        width: 100%;
        height: auto;
        transform: scale(1);
    }

    .special-info {
        padding: 18px;
    }

    .special-info h3 {
        font-size: 1.2rem;
    }

    .quick-menu ul {
        max-width: 100%;
    }

    .quick-menu li {
        font-size: 0.9rem;
        padding: 10px 12px;
    }

    .dots {
        display: none;
    }

    #backToTopCafe {
        width: 42px;
        height: 42px;
        bottom: 18px;
        right: 18px;
    }
}

/*
================================
    RESPONSIVE CODE (TABLET)
================================
*/
@media (min-width: 769px) and (max-width: 1024px) {
    .logo img {
        width: 240px;
    }

    .hero {
        padding: 160px 20px;
    }

    .hero h1 {
        font-size: 2.4rem;
    }

    .hero p {
        font-size: 1.05rem;
        max-width: 600px;
    }

    .featured {
        padding: 60px 20px;
    }

    .featured-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }

    .feature-item img {
        height: 260px;
    }

    .home-section {
        gap: 25px;
        padding: 60px 20px;
    }

    .home-section .daily-special,
    .home-section .quick-menu {
        flex: 1 1 420px;
        max-width: 480px;
    }

    .special-card {
        max-width: 100%;
    }

    .special-card img {
        width: 100%;
        height: 320px;
        object-fit: contain;
    }

    .quick-menu ul {
        max-width: 420px;
    }
}