:root {
    --coffee-dark: #101722;
    --coffee-brown: #5B3A21;
    --coffee-copper: #A75A2A;
    --coffee-cream: #E5D3B3;
    --coffee-green: #40533A;
}

html {
    min-height: 100%;
}

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-image: linear-gradient( rgba(16,23,34,.70), rgba(16,23,34,.70) ), url('/images/Background.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    color: #F5E6C8;
    font-family: Georgia, serif;
}

/* Media QUERIES */
@media (max-width: 992px) {

    .navbar-collapse {
        background: #101722;
        padding: 10px 0;
        border-radius: 15px;
        margin-top: 0;
        text-align: center;
    }

    .nav-left,
    .nav-right {
        flex-direction: column;
        width: 100%;
        align-items: center;
        gap: 10px;
    }

    .logo-space {
        order: -1;
        width: auto;
        margin-bottom: 20px;
    }

    
        .logo-center {
            position: absolute;
            left: 50%;
            transform: translateX(-50%);
            z-index: 5000;
        }

            .logo-center img {
                width: 90px;
            }

        .hero-section {
            padding: 100px 20px 50px;
        }

        .hero-content {
            padding: 40px;
        }

        .hero-section h1 {
            font-size: 3rem;
        }

        .logo-center {
            bottom: -75px;
        }

     .logo-center img {
                width: 110px;
     }
}

/* PHONES */

@media(max-width:576px) {

    .hero-content {
        padding: 30px;
    }

    .section-title {
        font-size: 2rem;
    }

    .hero-section {
        min-height: 70vh;
        padding: 60px 15px;
    }

    .hero-content {
        width: 96%;
        padding: 25px;
        border-radius: 20px;
    }

    .hero-section h1 {
        font-size: 2.2rem;
        line-height: 1.15;
    }

    .hero-text {
        font-size: 1rem;
        line-height: 1.7;
    }

    .hero-section .btn {
        width: 100%;
        margin-bottom: 10px;
    }

        .hero-section .btn + .btn {
            margin-left: 0 !important;
        }

    .hero-subtitle {
        font-size: .85rem;
        letter-spacing: 2px;
    }

    .gallery-thumb {
        height: 70px;
    }

    .navbar {
        min-height: 70px;
    }

    .logo-center {
        display: none;
    }
}

/* Tiny Phones */
@media (max-width: 430px) {

    .hero-section h1 {
        font-size: 1.8rem;
    }

    .hero-content {
        padding: 20px;
    }

    .hero-text {
        font-size: .95rem;
    }
}

/* Minature Phones */
@media (max-width:360px) {

    .hero-section h1 {
        font-size: 1.65rem;
        line-height: 1.15;
        margin: 12px 0;
    }

    .hero-subtitle {
        font-size: .72rem;
        letter-spacing: 1px;
    }

    .hero-text {
        font-size: .9rem;
        line-height: 1.5;
        margin: 15px 0 20px;
    }
}

/* NAVBAR */

.navbar {
    display: flex;
    align-items: center;
    background-color: var(--coffee-dark) !important;
    position: relative;
    font-size: 1.2rem;
    z-index: 1000;
    min-height: 95px;
}

.nav-left, .nav-right {
    flex: 1;
    display: flex;
}

.nav-left {
    justify-content: space-evenly;
    
}

.nav-right {
    justify-content: space-evenly;
    
}
.navbar-brand,
.nav-link {
    color: var(--coffee-cream) !important;
}

    .nav-link:hover {
        color: var(--coffee-copper) !important;
    }

.logo-space {
    width: 220px; /* adjust to fit your logo */
    flex-shrink: 0;
    position: relative;
    
}

.logo-center {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: -145px;
    z-index: 5000;
}

.logo-center img {
    width: 150px;
    height: auto;
}



/* ================= HERO ================= */

.hero-section {
    position: relative;
    width: 100%;
    min-height: 82vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 90px 40px 80px;
    background: linear-gradient(rgba(0,0,0,.45), rgba(0,0,0,.45)), url('/images/Hero.PNG');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
}
    /* Dark overlay */

    .hero-section::before {
        content: "";
        position: absolute;
        inset: 0;
        background: radial-gradient(circle at center, rgba(255,255,255,.04), rgba(0,0,0,.35));
    }

/* Hero content */

.hero-content {
    position: relative;
    z-index: 2;
    width: min(900px, 92%);
    padding: clamp(20px, 5vw, 60px);
    text-align: center;
    border-radius: 30px;
    background: rgba(16,23,34,.48);
    backdrop-filter: blur(14px);
    border: 1px solid rgba(255,255,255,.10);
    box-shadow: 0 30px 80px rgba(0,0,0,.45);
}


/* Small title */

.hero-subtitle {
    display: block;
    color: #d9b36c;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 3px;
    line-height: 1.5;
    white-space: normal;
    overflow-wrap: break-word;
    max-width: 100%;
}
/* Main title */

.hero-section h1 {
    color: white;
    font-size: clamp(2rem,8vw,5.8rem);
    font-weight: 800;
    line-height: 1.1;
    word-break: normal;
    margin: 20px 0;
    text-shadow: 0 8px 25px rgba(0,0,0,.5);
}

.hero-section::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url('/images/noise.png');
    opacity: .05;
    pointer-events: none;
}

/* Description */

.hero-text {
    color: rgba(255,255,255,.92);
    font-size: 1.3rem;
    line-height: 2;
    max-width: 760px;
    margin: 30px auto 40px;
}

/* Buttons */

.hero-section .btn {
    padding: 16px 38px;
    border-radius: 14px;
    transition: .3s;
    font-weight: 600;
}

    .hero-section .btn:hover {
        transform: translateY(-5px);
    }


.hero-section::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 180px;
    background: linear-gradient(to bottom, rgba(16,23,34,0), rgba(16,23,34,.95));
}

/* BUTTONS */

.btn-coffee {
    background-color: var(--coffee-copper);
    color: white;
    border: none;
    padding: 12px 30px;
}

    .btn-coffee:hover {
        background-color: var(--coffee-brown);
        color: white;
    }

 

/* CART STYLE */
.cart-badge {
    position: absolute;
    top: -6px;
    right: -8px;
    background: #A75A2A;
    color: white;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: .7rem;
    font-weight: bold;
}

/* CARDS */

.card {
    border-radius: 24px;
    overflow: hidden;
    background: white;
    transition: .35s;
}

    .card:hover {
        transform: translateY(-12px);
        box-shadow: 0 30px 60px rgba(0,0,0,.20);
    }

.card-body {
    background-color: white;
    color: black;
}

.card .btn {
    width: 100%;
}

.card img {
    transition: .45s;
}

.card:hover img {
    transform: scale(1.08);
}

.product-card .card-body {
    display: flex;
    flex-direction: column;
}

.product-card .btn-coffee {
    margin-top: auto;
}

/* SECTION TITLES */

.section-title {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    text-align: center;
}

/* FOOTER */

.footer {
    background: #1d120d;
    color: #e7d7c5;
    padding: 30px 0 10px;
}

    .footer h4,
    .footer h5 {
        color: #d9b36c;
        margin-bottom: 18px;
    }

    .footer p {
        color: #d3c7bb;
        line-height: 1.7;
    }

    .footer a {
        color: #e7d7c5;
        text-decoration: none;
        transition: .3s;
    }

        .footer a:hover {
            color: #d9b36c;
            text-decoration: none;
        }

    .footer hr {
        border-color: rgba(255,255,255,.15);
        margin: 20px 0;
    }

    .footer small {
        color: #9f9489;
    }


.product-image {
    border-radius: 20px;
    transition: .35s;
    cursor: pointer;
    transition: transform .45s;
}

    .product-image:hover {
        transform: scale(1.03);
        
    }

.coffee-price {
    color: #6F4E37;
    font-weight: bold;
    font-size: 2.2rem;
}

.quantity-box {
    max-width: 140px;
}



.btn-coffee {
    background: #6F4E37;
    color: white;
    border-radius: 10px;
}

    .btn-coffee:hover {
        background: #4A3224;
        color: white;
    }

.cart-card {
    border: none;
    border-radius: 18px;
    overflow: hidden;
    transition: .25s;
    box-shadow: 0 5px 15px rgba(0,0,0,.08);
}

    .cart-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 12px 30px rgba(0,0,0,.15);
    }

.cart-image {
    height: 220px;
    object-fit: cover;
}

.summary-card {
    border: none;
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(0,0,0,.15);
    top: 100px;
}

.coffee-price {
    color: #6F4E37;
    font-weight: bold;
}

.btn-coffee {
    background: #6F4E37;
    color: white;
}

    .btn-coffee:hover {
        background: #4E3527;
        color: white;
    }

.quantity-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.card-body h4 {
    font-weight: 700;
}

.summary-card hr {
    opacity: .2;
}

.btn {
    transition: .25s;
}

    .btn:hover {
        transform: translateY(-2px);
    }

.btn-coffee:hover {
    box-shadow: 0 12px 25px rgba(0,0,0,.2);
}



    .product-image:hover {
        transform: scale(1.05);
    }

.fade-up {
    animation: fadeUp .8s;
}

@keyframes fadeUp {

    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.gallery-thumb {
    width: 100%;
    height: 90px;
    object-fit: cover;
    border-radius: 12px;
    cursor: pointer;
    transition: .25s;
    opacity:.7;
}

.gallery-thumb:hover {
     transform: scale(1.05);
     box-shadow: 0 10px 20px rgba(0,0,0,.15);
     opacity: 1;
}



.coffee-badge {
    display: inline-block;
    background: #4A5B35;
    color: white;
    padding: 8px 16px;
    border-radius: 50px;
    margin: 5px;
    font-weight: 600;
    font-size: .9rem;
}

/* Accordion */

.accordion-item {
    border: none;
    margin-bottom: 15px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,.08);
}

.accordion-button {
    background: white;
    font-weight: 600;
    font-size: 1.1rem;
    padding: 18px;
}

    .accordion-button:not(.collapsed) {
        background: #5E3A1E;
        color: white;
    }

    .accordion-button:focus {
        box-shadow: none;
    }

.accordion-body {
    padding: 25px;
    line-height: 1.8;
    color: #555;
    background: #fcfcfc;
}

.main-image-container {
    width: 100%;
    height: 650px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: white;
    border-radius: 18px;
    overflow: hidden;
}

.main-product-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: opacity .25s ease;
}

.text-coffee {
    color: #5a3b22;
}

.display-1 {
    animation: float404 4s ease-in-out infinite;
}

@keyframes float404 {

    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0px);
    }
}

.hero-content {
    animation: heroFade 1.2s ease;
}

@keyframes heroFade {

    from {
        opacity: 0;
        transform: translateY(35px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ANIMATIONS */
.reveal {
    opacity: 0;
    transform: translateY(60px);
    transition: all .9s ease;
}

    .reveal.active {
        opacity: 1;
        transform: translateY(0);
    }