/*
Theme Name: Maestro Pizzeria
Theme URI: https://maestropizzeria.com
Author: Maestro Team
Author URI: https://maestropizzeria.com
Description: A modern, responsive WordPress theme for Maestro Pizzeria with custom pizza ordering system
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: maestro
Tags: woocommerce, restaurant, food, pizza, custom-menu, responsive, mobile-friendly
*/

/* ===================================
   RESET & BASE STYLES
   =================================== */

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

:root {
    --primary-color: #c41e3a;
    --primary-dark: #a01729;
    --primary-light: #e63950;
    --gold: #d4af37;
    --dark-bg: #1a1a1a;
    --light-bg: #f8f8f8;
    --text-dark: #333333;
    --text-light: #666666;
    --white: #ffffff;
    --success: #46b450;
    --warning: #ffb900;
    --error: #dc3232;
    --border: #e0e0e0;
    --shadow: rgba(0, 0, 0, 0.1);
    --max-width: 1200px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-dark);
    background: var(--white);
}

/* ===================================
   TYPOGRAPHY
   =================================== */

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: 1rem;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--primary-dark);
}

/* ===================================
   LAYOUT
   =================================== */

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

.site-header {
    background: var(--dark-bg);
    color: var(--white);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px var(--shadow);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-logo {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary-color);
    text-decoration: none;
}

.site-logo span {
    color: var(--gold);
}

/* ===================================
   NAVIGATION
   =================================== */

.main-navigation {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.main-navigation ul {
    list-style: none;
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.main-navigation a {
    color: var(--white);
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.main-navigation a:hover,
.main-navigation .current-menu-item a {
    background: var(--primary-color);
    color: var(--white);
}

.mobile-menu-toggle {
    display: none;
    background: var(--primary-color);
    border: none;
    cursor: pointer;
    padding: 12px 15px;
    z-index: 1001;
    border-radius: 5px;
    color: white;
    font-size: 14px;
    font-weight: 600;
}

.header-cart {
    z-index: 1001;
}

.header-cart .cart-icon {
    font-size: 1.5rem;
    color: var(--white);
    position: relative;
}

.header-cart .cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--primary-color);
    color: white;
    font-size: 12px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ===================================
   HERO SECTION
   =================================== */

.hero-section {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--white);
    padding: 6rem 0;
    text-align: center;
}

.hero-content h1 {
    color: var(--white);
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.hero-content p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.9);
}

/* ===================================
   BUTTONS
   =================================== */

.btn {
    display: inline-block;
    padding: 12px 30px;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(196, 30, 58, 0.3);
}

.btn-secondary {
    background: var(--gold);
    color: var(--dark-bg);
}

.btn-secondary:hover {
    background: #c9a032;
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-outline:hover {
    background: var(--white);
    color: var(--primary-color);
}

/* ===================================
   CONTENT SECTIONS
   =================================== */

.content-section {
    padding: 4rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--primary-color);
}

.section-description {
    font-size: 1.125rem;
    color: var(--text-light);
    max-width: 700px;
    margin: 1.5rem auto 0;
}

/* ===================================
   FEATURES GRID
   =================================== */

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature-box {
    background: var(--white);
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 15px var(--shadow);
    transition: transform 0.3s ease;
}

.feature-box:hover {
    transform: translateY(-5px);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-box h3 {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

/* ===================================
   PRODUCT GRID
   =================================== */

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

.product-card {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px var(--shadow);
    transition: all 0.3s ease;
}

.product-card:hover {
    box-shadow: 0 8px 25px var(--shadow);
    transform: translateY(-5px);
}

.product-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    background: var(--light-bg);
}

.product-info {
    padding: 1.5rem;
}

.product-title {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.product-price {
    font-size: 1.5rem;
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 1rem;
}

/* ===================================
   FOOTER
   =================================== */

.site-footer {
    background: var(--dark-bg);
    color: var(--white);
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.8);
}

.footer-section a:hover {
    color: var(--white);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
}

/* ===================================
   WOOCOMMERCE COMPATIBILITY
   =================================== */

.woocommerce-page {
    padding: 2rem 0;
}

.woocommerce ul.products {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

.woocommerce .button,
.woocommerce button.button {
    background: var(--primary-color);
    color: var(--white);
}

.woocommerce .button:hover,
.woocommerce button.button:hover {
    background: var(--primary-dark);
}

/* ===================================
   RESPONSIVE
   =================================== */

@media (max-width: 768px) {
    .header-content {
        position: relative;
        flex-wrap: wrap;
    }

    .mobile-menu-toggle {
        display: block !important;
        order: 3;
    }

    .header-cart {
        order: 2;
        margin-left: auto;
        margin-right: 15px;
    }

    .site-branding {
        order: 1;
    }

    .site-branding img {
        max-height: 45px;
        width: auto;
    }

    .site-logo {
        font-size: 1.4rem;
    }

    .main-navigation {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--dark-bg);
        padding: 0;
        box-shadow: 0 4px 10px rgba(0,0,0,0.2);
        width: 100%;
        z-index: 1000;
    }

    .main-navigation.menu-open {
        display: block;
    }

    .main-navigation ul {
        display: flex;
        flex-direction: column;
        padding: 0;
        margin: 0;
        list-style: none;
    }

    .main-navigation ul li {
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }

    .main-navigation ul li:last-child {
        border-bottom: none;
    }

    .main-navigation a {
        display: block;
        padding: 10px 15px;
        text-align: center;
        color: white;
        font-size: 14px;
    }

    .main-navigation a:hover {
        background: var(--primary-color);
    }

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

    .features-grid,
    .products-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    h1 { font-size: 1.75rem; }
    h2 { font-size: 1.5rem; }

    .hero-section {
        padding: 3rem 0;
    }
}
