/* ---------------- GLOBAL ---------------- */
body {
    margin: 0;
    font-family: 'Poppins', Arial, sans-serif;
    background: #C7A17A; /* Latte background */
    color: #2B1D1A;      /* Dark text */
}

/* ---------------- HEADER ---------------- */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0px 25px;
    background: #4B2E2B; /* Dark coffee brown */
    color: white;
    position: fixed;
    width: 100%;
    z-index: 1000;
    box-sizing: border-box;
    height: 80px;
}

.logo {
    height: 90px;
    animation: logo-bounce 1s ease forwards;
    cursor: pointer;
    max-height: 100%;
}

@keyframes logo-bounce {
    0% { transform: translateY(-50px); opacity: 0; }
    50% { transform: translateY(10px); opacity: 1; }
    70% { transform: translateY(-5px); }
    100% { transform: translateY(0); }
}

.logo:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 15px rgba(0,0,0,0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

nav a {
    color: #FFF8F1;
    margin-left: 18px;
    text-decoration: none;
    font-weight: 500;
}

nav a:hover {
    color: #D1A054; /* caramel hover */
}

/* ---------------- HERO ---------------- */
.hero {
    text-align: center;
    padding: 80px 20px;
    background: url('images/coffee-bg.jpg') center/cover no-repeat;
    color: #2B1D1A;
    /* text-shadow: 2px 2px 4px rgba(0,0,0,0.4); */
}

.hero h2 {
    font-size: 3rem;
    margin-bottom: 2px;
}

.hero p {
    font-size: 1.2rem;
    font-weight: bold;
}

@keyframes fadeSlide {
    0% { opacity: 0; transform: translateY(30px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* ---------------- MENU SECTION ---------------- */
.menu-section {
    padding: 40px 20px;
}

.menu-section h2 {
    display: flex;
    align-items: center;
    font-size: xx-large;
    text-align: center;
}

.menu-section h2 .icon {
    width: 30px;
    margin-right: 10px;
    transition: transform 0.3s ease;
}

.menu-section .icon:hover {
    transform: rotate(15deg);
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.menu-item {
    background: #F3EDE2; /* Cream card */
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.menu-item .icon {
    width: 100%;
    height: fit-content;
    object-fit: cover;
    margin-bottom: 12px;
    border-radius: 10px;
}

.menu-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.menu-item button {
    padding: 10px 15px;
    background: #4B2E2B; /* Medium coffee brown */
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    margin-top: 10px;
    transition: transform 0.2s ease, background 0.2s ease;
}

.menu-item button:hover {
    background: #7A5C58;
    transform: scale(1.05);
}

.desc {
    font-size: 14px;
    font-style: italic;
    color: #6b4f3a;
}

/* ---------------- CART SECTION ---------------- */
.cart-section {
    background: #FFF8F1;
    padding: 40px 20px;
    border-radius: 12px;
    width: 90%;
    margin: auto;
}

#order-btn {
    background: #4B2E2B;
    color: white;
    padding: 12px 18px;
    border: none;
    margin-top: 15px;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease;
}

#order-btn:hover {
    background: #7A5C58;
    transform: scale(1.05);
}

/* ---------------- ABOUT & CONTACT ---------------- */
section {
    padding: 40px 20px;
}

form input,
form textarea {
    display: block;
    width: 90%;          /* responsive width */
    max-width: 500px;    /* optional max width */
    padding: 12px 15px;  /* comfortable padding */
    margin: 10px auto;   /* center horizontally */
    border-radius: 8px;
    border: 1px solid #C9B8A4;
    background: #FFF8F1;
    box-sizing: border-box;
}


form button {
    background: #4B2E2B;
    color: white;
    padding: 12px 40px ;
    display: block;
    margin: 0 auto;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease;
    font-weight: 500;
    font-size: medium;
}

form button:hover {
    background: #7A5C58;
    transform: scale(1.05);
}


#contact h2 {
  text-align: center;
}

#about {
    text-align: center;
}

.stock-btn {
     background-color: #4B2E2B;
     color: white;
     padding: 12px 40px;
     border: none;
     border-radius: 8px;
     cursor: pointer;
     margin-top: 10px;
     transition: transform 0.2s ease, background 0.2 ease;
     font-weight: 500;
     font-size: medium;
     margin: 0 auto;
     display: block;
}

.stock-btn:hover {
    background-color: #7A5C58;
    transform: scale(1.05)
}

.modal {
    display: none;
    position: fixed;
    left: 0;
    top: 0;
    z-index: 1000;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    animation: fadeIn 0.4s ease;
}

.modal-content {
    background-color: #fff7f0;
    margin: 10% auto;
    padding: 20px;
    border-radius: 12px;
    width: 60%;
    box-shadow: 0 0 20px rgba(0,0,0,0.4);
    animation: slideDown 0.4s ease;
}

.close {
    float: right;
    font-size: 24px;
    cursor: pointer;
    color: #8B5E3C;
}

.close:hover {
    color: black;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideDown {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

#inventory-report {
    font-size: 1.1rem;
    line-height: 1.8;
}

/* ---------------- FOOTER ---------------- */
footer {
    background: #4B2E2B;
    color: #FFF8F1;
    text-align: center;
    padding: 15px;
    margin-top: 40px;
}

/* Mobile Responsive Layout */
@media (max-width: 768px) {
    #coffee-list {
        display: grid;
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 10px;
    }

    .menu-item {
        padding: 15px;
        text-align: center;
    }

    .menu-item img {
        width: 120px;
    }

    button {
        width: 100%;
        padding: 12px;
        font-size: 16px;
    }

    #cart, #inventory-report {
        font-size: 14px;
    }

    .modal-content {
        width: 90%;
        padding: 15px;
    }
}
