/* --- Core Stylesheet for Taste of Town --- */

/* 1. Variables & Global Resets */
:root {
    --primary-color: #E74C3C;      /* Bright Energetic Red */
    --secondary-color: #F1C40F;    /* Vibrant Sunflower Yellow */
    --background-color: #F8F9FA;   /* Very Light Grey for contrast */
    --surface-color: #FFFFFF;      /* Pure White for cards */
    --text-color: #343A40;         /* Dark Grey for readability */
    --text-on-dark: #FFFFFF;       /* White for text on red/dark backgrounds */
    --card-shadow: 0 8px 25px rgba(0,0,0,0.08);
}

* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
}

html { 
    scroll-behavior: smooth; 
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.7;
    overflow-x: hidden;
}

body.menu-open { 
    overflow: hidden; 
}

/* 2. General Layout & Typography */
.container { 
    max-width: 1200px; 
    margin: auto; 
    padding: 0 25px; 
}

/* Base styles for headings */
h1, h2, h3, h4 {
    font-family: 'Jaini Purva', cursive;
    font-weight: normal;
    color: var(--primary-color);
    letter-spacing: 1px;
}

/* Base style for content sections */
section { 
    padding: 100px 0; 
}

/* General Purpose Button */
.btn {
    display: inline-block; 
    background: var(--primary-color); 
    color: var(--text-on-dark);
    padding: 1rem 3rem; 
    text-decoration: none; 
    border-radius: 50px;
    font-size: 1.1rem; 
    font-weight: 600;
    transition: background 0.3s, transform 0.3s;
}

.btn:hover { 
    background: var(--secondary-color); 
    transform: translateY(-5px); 
}

/* 3. Header & Navigation */
.main-header {
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100%;
    display: flex; 
    justify-content: space-between; 
    align-items: center;
    padding: 1rem 2rem; 
    z-index: 1000;
    background: transparent;
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

.main-header.scrolled {
    background: rgba(255, 255, 255, 0.9); /* Transparent white */
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.header-logo {
    position: absolute; 
    left: 50%; 
    transform: translateX(-50%);
    display: flex; 
    align-items: center; 
    text-decoration: none;
}

.header-logo img {
    height: 65px; 
    width: 65px; 
    border-radius: 50%;
    border: 2px solid var(--primary-color);
    transition: transform 0.5s ease;
}

.header-logo:hover img { 
    transform: rotate(360deg) scale(1.05); 
}

.menu-toggle { 
    background: transparent; 
    border: none; 
    cursor: pointer; 
    z-index: 1200; 
    padding: 10px; 
}

.menu-toggle .hamburger line {
    stroke: var(--primary-color); 
    stroke-width: 3; 
    stroke-linecap: round;
    transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
}

.menu-toggle.active .hamburger line.top { transform: rotate(45deg) translate(6px, -6px); }
.menu-toggle.active .hamburger line.middle { opacity: 0; }
.menu-toggle.active .hamburger line.bottom { transform: rotate(-45deg) translate(7px, 6px); }

.sidebar-nav {
    position: fixed; top: 0; left: 0; width: 300px; height: 100vh;
    background: var(--secondary-color); /* Yellow sidebar */
    z-index: 1100; transform: translateX(-100%);
    transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    display: flex; flex-direction: column; justify-content: center; align-items: center;
}
.sidebar-nav.active { transform: translateX(0); }
.sidebar-nav ul { list-style: none; padding: 0; width: 100%; text-align: center; }
.sidebar-nav ul li a {
    font-family: 'Jaini Purva', cursive;
    font-size: 2.5rem; color: var(--text-on-dark);
    text-decoration: none; display: block; padding: 1rem 0;
    transition: color 0.3s, letter-spacing 0.3s;
}
.sidebar-nav ul li a:hover { color: var(--primary-color); letter-spacing: 3px; }

.overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.5); z-index: 1050;
    opacity: 0; visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}
.overlay.active { opacity: 1; visibility: visible; }

/* 4. Footer */
footer {
    background: var(--primary-color); color: var(--text-on-dark);
    padding: 4rem 0 2rem 0;
    text-align: left;
}
.footer-content {
    display: flex; flex-wrap: wrap; justify-content: space-between;
    gap: 2.5rem; margin-bottom: 3rem;
}
.footer-contact, .footer-map { flex: 1; min-width: 300px; }
.footer-contact h3 { font-size: 2rem; color: var(--secondary-color); margin-bottom: 1rem; }
.contact-list { list-style: none; padding: 0; margin-top: 1.5rem; }
.contact-item { display: flex; align-items: flex-start; margin-bottom: 1rem; }
.contact-item i {
    font-size: 1.1rem; color: var(--secondary-color); margin-right: 15px;
    width: 20px; padding-top: 5px;
}
.contact-item a { color: var(--text-on-dark); text-decoration: none; transition: color 0.3s; }
.contact-item a:hover { color: var(--secondary-color); }
.footer-map iframe { width: 100%; height: 250px; border: 0; border-radius: 10px; }
.footer-bottom { text-align: center; padding-top: 2rem; border-top: 1px solid rgba(255, 255, 255, 0.2); }
.footer-bottom p { margin: 0.5rem 0; }
.footer-legal-links a { color: var(--text-on-dark); text-decoration: none; margin: 0 10px; transition: color 0.3s ease; }
.footer-legal-links a:hover { color: var(--secondary-color); }

/* 5. Responsive Styles for Template */
@media (max-width: 768px) {
    .header-logo { 
        transform: translateX(-50%) scale(0.9); 
    }
}