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

:root {
    --primary-color: #4CAF50; /* Green - for accents, buttons */
    --secondary-color: #212121; /* Dark Grey - for text, header background */
    --accent-color: #FFC107; /* Amber - for highlights */
    --light-bg: #f5f5f5; /* Light Grey - for section backgrounds */
    --dark-bg: #333; /* Dark Grey - for footer/header */
    --text-color-light: #fff;
    --text-color-dark: #333;
    --coffee-brown: #6F4E37; /* Coffee brown */
    --cream: #F5DEB3; /* Creamy color */
}

body {
    font-family: 'Montserrat', sans-serif; /* Modern sans-serif font */
    line-height: 1.6;
    color: var(--text-color-dark);
    background-color: var(--light-bg);
}

/* Background Image for Hero Section */
.hero-section {
    background-image: url("../Starbucks_Front-end/images/bg.jpg"); /* Ensure this path is correct */
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--text-color-light); /* White text for hero */
    position: relative;
    /* Overlay for better text readability */
    &::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.4); /* Dark overlay */
        z-index: 1;
    }
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 20px;
    max-width: 800px;
}

.hero-content h1 {
    font-family: 'Pacifico', cursive; /* Script font for heading */
    font-size: 4rem;
    margin-bottom: 20px;
    color: var(--accent-color); /* Amber color for heading */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.hero-content p {
    font-size: 1.5rem;
    margin-bottom: 30px;
    color: var(--cream);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* Header */
header {
    width: 100%;
    background-color: var(--dark-bg);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

#heading {
    font-family: 'Pacifico', cursive;
    font-size: 2.8rem;
    color: var(--accent-color);
    letter-spacing: 2px;
}

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

.nav-links {
    list-style: none;
    display: flex;
    gap: 30px;
    margin-right: 30px;
}

.nav-links li a {
    color: var(--text-color-light);
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
    padding: 8px 0;
    position: relative;
    transition: color 0.3s ease;
}

.nav-links li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    bottom: 0;
    left: 0;
    transition: width 0.3s ease;
}

.nav-links li a:hover {
    color: var(--primary-color);
}

.nav-links li a:hover::after {
    width: 100%;
}

/* Search Bar */
.search-bar {
    display: flex;
    align-items: center;
    gap: 8px;
}

.search-bar input {
    font-size: 1rem;
    padding: 8px 15px;
    border: none;
    border-radius: 20px;
    background-color: rgba(255, 255, 255, 0.8);
    width: 200px;
    transition: width 0.3s ease;
    outline: none;
}

.search-bar input:focus {
    width: 250px;
    background-color: var(--text-color-light);
}

.search-bar button {
    background-color: var(--primary-color);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.search-bar button i {
    color: var(--text-color-light);
    font-size: 1rem;
}

.search-bar button:hover {
    background-color: var(--accent-color);
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none; /* Hidden on desktop */
    font-size: 1.8rem;
    color: var(--text-color-light);
    cursor: pointer;
}

/* General Section Styling */
section {
    padding: 80px 0;
    margin-top: 100px; /* To prevent content from being hidden by fixed header */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

h2 {
    font-size: 2.8rem;
    text-align: center;
    margin-bottom: 50px;
    color: var(--coffee-brown);
    position: relative;
}

h2::after {
    content: '';
    position: absolute;
    width: 80px;
    height: 4px;
    background-color: var(--primary-color);
    left: 50%;
    transform: translateX(-50%);
    bottom: -15px;
    border-radius: 2px;
}

.main-btn {
    background-color: var(--primary-color);
    color: var(--text-color-light);
    padding: 12px 25px;
    border: none;
    border-radius: 30px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    text-decoration: none; /* For potential button links */
    display: inline-block; /* Allows padding and margin to work correctly */
}

.main-btn:hover {
    background-color: var(--accent-color);
    transform: translateY(-3px);
}

/* About Section */
.about-section {
    background-color: var(--text-color-light);
    padding-top: 50px; /* Adjust padding for first section below header */
}

.about-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
    font-size: 1.1rem;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    color: var(--secondary-color);
}

/* Menu Section */
.menu-section {
    background-color: var(--light-bg);
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.menu-item {
    background-color: var(--text-color-light);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease;
}

.menu-item:hover {
    transform: translateY(-10px);
}

.menu-item .menu-icon {
    font-size: 3.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.menu-item h3 {
    font-size: 1.6rem;
    margin-bottom: 10px;
    color: var(--coffee-brown);
}

.menu-item p {
    font-size: 1rem;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.menu-item span {
    font-weight: bold;
    color: var(--primary-color);
    font-size: 1.1rem;
}

/* Services Section */
.services-section {
    background-color: var(--cream);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.service-item {
    background-color: var(--text-color-light);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease;
}

.service-item:hover {
    transform: translateY(-10px);
}

.service-item .service-icon {
    font-size: 3.5rem;
    color: var(--coffee-brown);
    margin-bottom: 20px;
}

.service-item h3 {
    font-size: 1.6rem;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.service-item p {
    font-size: 1rem;
    color: var(--secondary-color);
}

/* Contact Section */
.contact-section {
    background-color: var(--text-color-light);
}

.contact-content {
    display: flex;
    flex-wrap: wrap; /* Allows wrapping on smaller screens */
    gap: 40px;
    justify-content: center;
}

.contact-info, .contact-form {
    flex: 1;
    min-width: 300px;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    background-color: var(--light-bg);
}

.contact-info h3, .contact-form h3 {
    font-size: 2rem;
    color: var(--coffee-brown);
    margin-bottom: 25px;
    text-align: center;
}

.contact-info p {
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: var(--secondary-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact-info p i {
    color: var(--primary-color);
    font-size: 1.3rem;
}

.social-icons {
    margin-top: 30px;
    text-align: center;
}

.social-icons a {
    display: inline-block;
    color: var(--text-color-light);
    background-color: var(--coffee-brown);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    line-height: 45px; /* Vertically centers icon */
    font-size: 1.3rem;
    margin: 0 8px;
    transition: background-color 0.3s ease;
}

.social-icons a:hover {
    background-color: var(--primary-color);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 1rem;
    margin-bottom: 8px;
    color: var(--coffee-brown);
    font-weight: bold;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    background-color: var(--text-color-light);
    color: var(--secondary-color);
    outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 5px rgba(76, 175, 80, 0.3);
}

.contact-form .main-btn {
    width: 100%;
    padding: 15px;
    font-size: 1.2rem;
}

/* Footer */
footer {
    background-color: var(--dark-bg);
    color: var(--text-color-light);
    text-align: center;
    padding: 25px 0;
    font-size: 0.9rem;
    margin-top: 50px;
}

/* Responsive Design */
@media (max-width: 992px) {
    .nav-links {
        gap: 20px;
        margin-right: 20px;
    }

    .hero-content h1 {
        font-size: 3.5rem;
    }

    .hero-content p {
        font-size: 1.3rem;
    }

    .menu-grid, .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    }
}

@media (max-width: 768px) {
    header {
        flex-wrap: wrap; /* Allow wrapping of items */
        justify-content: space-between;
        padding: 15px 20px;
        height: auto; /* Allow header to adjust height */
    }

    #heading {
        font-size: 2.2rem;
        margin-bottom: 0;
    }

    .navbar {
        width: 100%; /* Take full width below heading */
        flex-direction: column;
        align-items: flex-start;
        margin-top: 15px; /* Space between heading and nav */
    }

    .nav-links {
        flex-direction: column;
        width: 100%;
        margin-right: 0;
        gap: 0;
        display: none; /* Hidden by default for mobile */
        background-color: var(--dark-bg);
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

    .nav-links.active {
        display: flex; /* Show when active */
    }

    .nav-links li {
        width: 100%;
        text-align: center;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

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

    .nav-links li a {
        padding: 15px 20px;
        display: block;
        font-size: 1.2rem;
    }

    .search-bar {
        width: 100%;
        margin-top: 15px;
        justify-content: center;
    }

    .search-bar input {
        width: calc(100% - 60px); /* Adjust width considering button */
    }

    .menu-toggle {
        display: block; /* Show hamburger icon */
        order: 1; /* Place it nicely */
    }

    /* Adjust main section padding as header is now taller when expanded */
    section {
        padding: 60px 0;
        margin-top: 0; /* No need for margin-top if padding takes care of it */
    }
    .hero-section {
        padding-top: 100px; /* Push down hero content to clear fixed header */
        height: auto; /* Allow height to adjust based on content */
        min-height: 80vh; /* Ensure it's still tall enough */
    }


    h2 {
        font-size: 2.2rem;
        margin-bottom: 40px;
    }

    .hero-content h1 {
        font-size: 3rem;
        line-height: 1.2;
    }

    .hero-content p {
        font-size: 1.2rem;
        line-height: 1.5;
    }

    .contact-info, .contact-form {
        min-width: unset; /* Remove min-width to allow stacking */
        width: 100%; /* Take full width */
    }

    .contact-info {
        margin-bottom: 20px; /* Space between info and form */
    }
}

@media (max-width: 480px) {
    #heading {
        font-size: 1.8rem;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    h2 {
        font-size: 1.8rem;
    }

    .main-btn {
        padding: 10px 20px;
        font-size: 1rem;
    }

    .menu-item, .service-item {
        padding: 20px;
    }

    .menu-item .menu-icon, .service-item .service-icon {
        font-size: 3rem;
    }

    .contact-info h3, .contact-form h3 {
        font-size: 1.8rem;
    }

    .contact-info p, .form-group label, .form-group input, .form-group textarea {
        font-size: 0.95rem;
    }
}