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

/* Body and general styles */
body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff8f0;
    /*#f4f4f4*/
}

/* Header and Navigation */
header {
    background-color: #8B4513;
    /* Brown */
    color: #fff;
    position: sticky;
    width: 100%;
    top: 0;
    z-index: 1000;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-img {
    width: 50px;
    height: 50px;
    margin-right: 10px;
    border-radius: 50%;
}

/* Hamburger Button */
.hamburger {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}

.hamburger-line {
    width: 25px;
    height: 3px;
    background-color: #fff;
    margin: 3px 0;
    transition: all 0.3s ease;
    border-radius: 2px;
}

/* Navigation Menu */
.nav-menu {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
}

.nav-menu li {
    margin: 0 1rem;
}

.nav-menu li a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.nav-menu li a:hover {
    text-decoration: underline;
}

/* Mobile Menu Styles */
.nav-menu.active {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: #6B3B1A;
    /* Slightly darker brown for contrast */
    flex-direction: column;
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    animation: slideDown 0.3s ease-out;
}

.nav-menu.active li {
    margin: 0;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-menu.active li:last-child {
    border-bottom: none;
}

.nav-menu.active li a {
    display: block;
    padding: 1rem;
    font-size: 1.1rem;
}

.nav-menu.active li a:hover {
    background-color: rgba(255, 255, 255, 0.15);
    text-decoration: none;
}

/* Hamburger Animation */
.hamburger.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.hamburger.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Animations */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hero Section */
#hero {
    background: linear-gradient(rgba(139, 69, 19, 0.7), rgba(139, 69, 19, 0.7)), url('../images/background.jpg');
    /* Coffee shop image */
    background-size: cover;
    background-position: center;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    margin-top: 0;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.btn {
    background-color: #228B22;
    /* Green */
    color: #fff;
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s;
}

.btn:hover {
    background-color: #32CD32;
    /* Lighter green */
}

/* Main content */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.contact-layout {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

.contact-layout #location,
.contact-layout #contact-info {
    flex: 1;
}

section {
    margin-bottom: 2rem;
    padding: 2rem;
    background-color: #fff;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

#popular .popular-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}

.popular-item {
    text-align: center;
    border: 1px solid #e0d8cc;
    border-radius: 8px;
    padding: 1rem;
    background-color: #fffaf4;
}

.popular-img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 0.75rem;
}

/* About content */
.about-content {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.about-content img {
    width: 400px;
    height: 300px;
    object-fit: cover;
    border-radius: 8px;
}

.about-content .text {
    flex: 1;
}

/* Intro sections */
#menu-intro,
#about-intro {
    text-align: center;
    background: linear-gradient(135deg, #fffaf4 0%, #fff5e6 100%);
    border-left: 5px solid #228B22;
    border-bottom: 3px solid #8B4513;
    padding: 3rem 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    position: relative;
}

#menu-intro h1,
#about-intro h1 {
    text-transform: uppercase;
}

#menu-intro::before,
#about-intro::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, #228B22, transparent);
}

#menu-intro h1,
#about-intro h1 {
    color: #228B22;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: bold;
    letter-spacing: -0.5px;
}

#menu-intro p,
#about-intro p {
    font-size: 1.1rem;
    color: #555;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.8;
    font-weight: 500;
}

ul {
    list-style: none;
    padding-left: 0;
}

/* Menu items */
.menu-item {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    padding: 1rem;
    background-color: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.menu-item img {
    width: 100px;
    height: 75px;
    object-fit: cover;
    border-radius: 5px;
    margin-right: 1rem;
}

.menu-item h3 {
    margin: 0 0 0.5rem 0;
    color: #228B22;
}

.menu-item p {
    margin: 0.5rem 0;
}

.price {
    font-weight: bold;
    color: #8B4513;
}

/* Footer */
footer {
    background-color: #8B4513;
    /* Brown */
    color: #fff;
    padding: 40px 20px;
}

.footer-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    max-width: 1200px;
    margin: auto;
}

.footer-section {
    flex: 1;
    margin: 10px;
    min-width: 250px;
}

.footer-section h3 {
    margin-bottom: 15px;
    color: #FFD700;
    /* Gold */
}

.footer-section p,
.footer-section a {
    color: #ddd;
    text-decoration: none;
    font-size: 17px;
    line-height: 1.6;
}

.footer-section a:hover {
    color: #fff;
}

.social-icons {
    display: flex;
    gap: 10px;
    justify-content: flex-start;
}

.social-link {
    display: inline-flex;
    width: 36px;
    height: 36px;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.social-link:hover {
    transform: translateY(-2px);
    background-color: rgba(255, 255, 255, 0.3);
}

.social-icon {
    width: 20px;
    height: 20px;
    filter: invert(100%);
    /* white icon on dark background */
}

.footer-bottom {
    text-align: center;
    margin-top: 30px;
    border-top: 1px solid #e2c555;
    padding-top: 15px;
    font-size: 17px;
    color: #eaeaea;
}

/* Form styles */
form {
    max-width: 600px;
    margin: 0 auto;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
}

input,
textarea {
    width: 100%;
    padding: 0.5rem;
    margin-bottom: 1rem;
    border: 1px solid #ccc;
    border-radius: 4px;
}

button {
    background-color: #228B22;
    /* Green */
    color: #fff;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
}

button:hover {
    background-color: #32CD32;
    /* Lighter green */
}

.price {
    font-size: 1.05rem;
    font-weight: bold;
    color: #8B4513;
    margin-top: 0.5rem;
}

.map-container {
    width: 100%;
    height: 400px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.map-error {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
    text-align: center;
    background-color: #f8f8f8;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 2rem;
}

.map-error p {
    margin: 0.5rem 0;
    color: #666;
    font-size: 1rem;
}

.map-error p:first-child {
    font-weight: bold;
    color: #8B4513;
}

/* Responsive design */
@media (max-width: 768px) {
    nav {
        position: relative;
    }

    .hamburger {
        display: flex;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #8B4513;
        flex-direction: column;
        padding: 0;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    }

    .nav-menu.active {
        display: flex;
    }

    #hero h1 {
        font-size: 2rem;
    }

    #hero p {
        font-size: 1rem;
    }

    .footer-container {
        flex-direction: column;
        text-align: center;
    }

    main {
        padding: 1rem 0.5rem;
    }

    section {
        padding: 1rem;
    }

    .map-container {
        height: 300px;
    }

    .contact-layout {
        flex-direction: column;
    }

    .about-content {
        flex-direction: column;
        text-align: center;
    }

    #menu-intro h1,
    #about-intro h1 {
        font-size: 2rem;
    }

    #menu-intro p,
    #about-intro p {
        font-size: 1rem;
    }

    .footer-section {
        align-items: center;
        justify-content: center;
    }

    #hero {
        height: 60vh;

    }
    .social-icons{
        justify-content: center;
    }
}