/* 0. FONTS & IMPORTS */

@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@500;700&family=Roboto:wght@400;500&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&family=Oswald:wght@400;700&display=swap');

/* 1. VARIABLES & RESET */

:root {
    --primary-color: #C0392B;
    --secondary-color: #F1C40F;
    --accent-color: #333333;
    --bg-light: #FAFAFA;
    --white: #ffffff;
    --grey: #95a5a6;
    
    --font-heading: 'Oswald', sans-serif;
    --font-body: 'Roboto', sans-serif;
    
    --max-width: 1200px;
    --border-radius: 12px;
    --shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-light);
    color: var(--accent-color);
    line-height: 1.7;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* 2. UTILITY CLASSES & TYPOGRAPHY */

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    letter-spacing: 0.5px;
    line-height: 1.3;
}

.btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--white);
    padding: 14px 35px;
    border-radius: 50px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.1rem;
    text-transform: uppercase;
    border: 2px solid var(--primary-color);
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.btn:hover {
    background-color: transparent;
    color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(192, 57, 43, 0.3);
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
    font-size: 3rem;
    color: var(--primary-color);
    position: relative;
    padding-bottom: 15px;
    text-transform: uppercase;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 5px;
    background-color: var(--secondary-color);
    border-radius: 2px;
}

/* 3. NAVBAR (templates/navbar.php) */

.navbar {
    background-color: var(--white);
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 15px 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 1.1rem;
    color: var(--accent-color);
    padding: 5px 0;
    position: relative;
    text-transform: uppercase;
}

.nav-links a:hover {
    color: var(--primary-color);
}

/* 4. HERO SECTION (index.php) */

.hero {
    background: linear-gradient(rgba(0,0,0,0.6), rgba(60,10,10,0.5)), url('../images/hero-bg.jpg'); 
    background-size: cover;
    background-position: center;
    background-color: #333;
    height: 75vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    background-attachment: fixed;
}

.hero h1 {
    font-size: 4.5rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.6);
    color: var(--white);
}

.hero p {
    font-size: 1.5rem;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 400;
}

/* 5. RESTAURANT CARDS (index.php) */

.brands-section {
    padding: 80px 0;
}

.brand-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
}

.brand-card {
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-align: center;
    display: flex;
    flex-direction: column;
}

.brand-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.brand-img {
    height: 250px;
    object-fit: cover;
    width: 100%;
}

.brand-info {
    padding: 35px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    justify-content: space-between;
}

.brand-info h3 {
    margin-bottom: 15px;
    color: var(--primary-color);
    font-size: 2.2rem;
}

.brand-info p {
    margin-bottom: 25px;
    color: #666;
}

/* 6. MENU GRID (menu.php) */

.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    padding: 40px 0;
}

.menu-item {
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 25px;
    text-align: left;
    transition: var(--transition);
    border: 1px solid #eee;
}

.menu-item:hover {
    border-color: var(--secondary-color);
    transform: translateY(-5px);
}

.menu-item h4 {
    font-size: 1.5rem;
    color: var(--accent-color);
    margin: 10px 0 5px;
}

.menu-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: var(--border-radius);
    margin-bottom: 15px;
}

.price {
    color: var(--primary-color);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.5rem;
    margin: 10px 0;
    text-align: right;
}

/* 7. CONTACT & FORMS (contact.php) */

.contact-section {
    padding: 80px 0;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--accent-color);
}

.form-control {
    width: 100%;
    padding: 15px;
    border: 2px solid #eee;
    border-radius: var(--border-radius);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: all 0.2s;
    background-color: #fff;
}

.form-control:focus {
    border-color: var(--primary-color);
    outline: none;
    background-color: #fff;
    box-shadow: 0 0 0 3px rgba(192, 57, 43, 0.1);
}

.map-container {
    height: 100%;
    min-height: 400px;
    background-color: #eee;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

/* 8. FOOTER (templates/footer.php) */

footer {
    background-color: #222;
    color: var(--white);
    padding: 60px 0 30px;
    margin-top: auto;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.footer-section h4 {
    margin-bottom: 25px;
    color: var(--secondary-color);
    font-size: 1.4rem;
    text-transform: uppercase;
}

.social-links a {
    color: #ccc;
    margin-right: 20px;
    font-size: 1.5rem;
    transition: var(--transition);
}

.social-links a:hover {
    color: var(--secondary-color);
    transform: scale(1.1);
}

.copyright {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    margin-top: 50px;
    text-align: center;
    font-size: 0.9rem;
    color: #888;
}

/* 9. RESPONSIVE MEDIA QUERIES */

@media (max-width: 992px) {
    .brand-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-section {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 3rem;
    }

    .hero p {
        font-size: 1.2rem;
    }
    
    .section-title {
        font-size: 2.5rem;
    }
    
    .nav-links {
        display: none; 
        flex-direction: column;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background-color: var(--white);
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
        border-top: 1px solid #eee;
        padding: 20px 0;
        z-index: 999;
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .nav-links li {
        text-align: center;
        margin: 0;
        padding: 15px 0;
        border-bottom: 1px solid #f9f9f9;
    }
    
    .burger-menu {
        display: block;
        font-size: 2rem;
        cursor: pointer;
        color: var(--primary-color);
    }
    
    .menu-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-section h4 {
        margin-top: 20px;
    }
}

/* 10. TABBED MENU STYLES (menu.php) */

.menu-tabs {
    border-bottom: 2px solid #ddd;
    margin-bottom: 40px;
}

.tab-btn {
    font-family: var(--font-heading);
    background-color: transparent;
    border: none;
    padding: 15px 30px;
    cursor: pointer;
    font-size: 1.2rem;
    color: var(--accent-color);
    transition: var(--transition);
    border-bottom: 3px solid transparent;
    margin: 0 5px;
}

.tab-btn:hover {
    color: var(--primary-color);
    background-color: #f7f7f7;
}

.tab-btn.active {
    color: var(--primary-color);
    border-bottom: 3px solid var(--primary-color);
    font-weight: 700;
}

.menu-tab-content h2 {
    text-align: center;
    color: var(--secondary-color);
    margin-bottom: 25px;
    font-size: 2rem;
}