:root {
    --primary-color: #2E3A4E;
    --secondary-color: #F8F8F8;
    --accent-color: #FFC000;
    --text-color: #333;
    --light-text-color: #F0F0F0;
    --font-family: 'Poppins', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background-color: var(--secondary-color);
    color: var(--text-color);
}

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

/* Header Styling */
.site-header {
    background-color: white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    padding: 10px 0;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    position: relative; /* Needed for absolute positioning of the nav menu */
}

.hamburger-menu {
    display: none;
}

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

.logo img {
    height: 90px;
    width: 90px;
    object-fit: cover;
    border-radius: 50%;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.logo h1 {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-left: 15px; /* Adds space between the logo and the text */
    font-weight: bold;
}

.site-header nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
}

.site-header nav a {
    color: var(--primary-color);
    text-decoration: none;
    padding: 15px;
    font-weight: bold;
    transition: color 0.3s;
}

.site-header nav a:hover {
    color: var(--accent-color);
}

/* Hero (Banner) Section Styling */
.hero-section {
    background-image: url('images/hero_background.png');
    background-size: cover;
    background-position: center;
    min-height: 450px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    position: relative;
    padding-right: 10%;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(46, 58, 78, 0.4) 0%, rgba(46, 58, 78, 0.1) 60%, rgba(255, 255, 255, 0) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    margin-left: auto;
    max-width: 40%;
    padding: 60px;
    text-align: right;
    box-sizing: border-box;
    color: white;
}

.banner-headline {
    font-size: 2.8rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 6px rgba(0,0,0,0.7);
    color: var(--light-text-color);
    line-height: 1.2;
}

.banner-subtext {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.6);
    color: var(--light-text-color);
}

.btn {
    display: inline-block;
    background-color: var(--accent-color);
    color: var(--primary-color);
    padding: 12px 28px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    margin-top: 15px;
    transition: background-color 0.3s ease;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

.btn:hover {
    background-color: #e0ac00;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.4);
}


/* General Section Styling */
section {
    padding: 50px 0;
}

.about-section, .contact-section {
    background-color: white;
    text-align: center;
    padding: 60px 20px;
}

.menu-section {
    background-color: var(--secondary-color);
    text-align: center;
    padding: 60px 20px;
}

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

.menu-item {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
    padding: 20px;
    text-align: center;
    transition: transform 0.2s ease-in-out;
}

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

.menu-item img {
    max-width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
}

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

.menu-item p {
    font-size: 0.95rem;
    color: #555;
}

/* Footer Styling */
.site-footer {
    background-color: var(--primary-color);
    color: var(--light-text-color);
    text-align: center;
    padding: 1.5rem 0;
    font-size: 0.9rem;
}


#to-top-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: var(--light-text-color);
    border: none;
    border-radius: 50%;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    /* Initially hidden */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
}

#to-top-btn.show-btn {
    opacity: 1;
    visibility: visible;
}

#to-top-btn svg {
    width: 24px;
    height: 24px;
}


/* ===============================
    MOBILE-FIRST RESPONSIVE STYLES
    ===============================
*/

@media (max-width: 768px) {

    main {
        padding-top: 100px; /* Adjust this value to match the height of your header */
    }

    /* Replaces the desktop banner image with the mobile banner image */
    .hero-section {
        background-image: url('images/hero_background_mobile.png');
        background-position: center top;
        align-items: flex-end;
        min-height: 450px;
    }

    .hero-section::before {
        /* Adjusts the gradient overlay for the new vertical banner */
        background: linear-gradient(to top, rgba(46, 58, 78, 0.6) 0%, rgba(46, 58, 78, 0.4) 60%, rgba(255, 255, 255, 0) 100%);
    }

    .hero-content {
        max-width: 100%;
        text-align: center;
        padding: 20px;
        margin-left: 0;
        margin-right: 0;
        width: 100%;
        padding-top: 50px;
        padding-bottom: 10px; /* Adds space above the bottom of the screen */
    }

    .header-container {
        display: flex;
        justify-content: space-between; /* This pushes the first and last items to the edges */
        align-items: center;
        flex-wrap: wrap;
        position: relative;
    }

    .site-header {
        position: fixed; /* This makes the header "stick" to the viewport */
        top: 0; /* Positions the sticky header at the very top of the screen */
        width: 100%;
        z-index: 999; /* Ensures the header stays on top of other content */
        /* Optional: Add a subtle shadow for a better visual effect */
        box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    }

    .site-header nav ul {
        flex-direction: column;
        align-items: center;
        width: 100%;
        padding: 20px 0;
    }

    .site-header nav ul li {
        margin-bottom: 10px; /* Adds space between each list item */
    }

    .site-header nav a {
        padding: 10px 0;
    }

    /* Makes the menu items stack vertically */
    .menu-grid {
        grid-template-columns: 1fr;
    }

    .menu-item {
        padding: 15px;
    }

    .menu-item img {
        height: 200px;
    }

    .logo {
        display: flex;
        align-items: center; /* Vertically aligns logo and text */
        flex-direction: row; /* Aligns logo and text side-by-side */
        text-align: left;
    }

    .logo h1 {
        font-size: 1rem;
        margin-left: 10px; /* Adds space between logo and text */
        margin-top: 0;
        line-height: 1.2; /* Tightens the spacing for two lines */
        max-width: 150px; /* Limits the width to force text wrap */
    }

    /* Hide regular menu on mobile */
    .site-header nav {
        display: none;
        flex-direction: column;
        width: 100%;
        text-align: center;
        background-color: white;
        position: absolute;
        top: 100%; /* Adjust this to sit below your header */
        left: 0;
        z-index: 10;
        box-shadow: 0 5px 5px rgba(0,0,0,0.1);
    }

    /* Show the menu when the 'active' class is present */
    .site-header nav.active {
        display: flex;
    }

    /* Hamburger menu button styling */
    .hamburger-menu {
        display: block; /* Show on mobile */
        border: none;
        background: transparent;
        cursor: pointer;
        padding: 10px;
    }

    /* The three lines of the hamburger icon */
    .hamburger-menu span {
        display: block;
        width: 25px;
        height: 3px;
        background-color: var(--primary-color);
        margin: 5px 0;
        transition: transform 0.3s ease-in-out;
    }

}

@media (max-width: 480px) {
    /* Further adjustments for phones */
    .hero-content {
        max-width: 90%;
        text-align: center;
    }

    .banner-headline {
        font-size: 2rem;
    }
}