/* CSS Design System for HUGO's Pizza & Grill */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Playfair+Display:ital,wght@0,600;0,700;1,500&display=swap');

:root {
    /* Color Palette */
    --bg-dark: #faf8f5; /* Soft warm parchment cream background */
    --bg-card: #ffffff;
    --bg-card-hover: #ffffff;
    --border-color: rgba(15, 23, 42, 0.08); /* Soft slate border */
    --border-hover: rgba(225, 29, 72, 0.25);
    
    --text-primary: #0f172a; /* Deep slate */
    --text-secondary: #475569; /* Medium slate */
    --text-muted: #64748b;
    
    /* Branding Colors */
    --primary-red: #e11d48; /* Premium bold red */
    --primary-red-hover: #f43f5e;
    --accent-gold: #b45309; /* Darker amber-gold for text contrast */
    --accent-gold-hover: #78350f;
    --accent-green: #059669; /* Basil green */
    --accent-green-bg: rgba(5, 150, 105, 0.1);
    
    /* Fonts */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Outfit', sans-serif;
    --font-serif: 'Playfair Display', serif;
    
    /* Layout */
    --max-width: 1200px;
    --border-radius-sm: 8px;
    --border-radius-md: 16px;
    --border-radius-lg: 24px;
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-premium: 0 12px 30px -10px rgba(0, 0, 0, 0.08);
}

/* Reset & Base Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    padding-bottom: 0;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

p {
    color: var(--text-secondary);
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-smooth);
}

/* Utility Classes */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Header & Navigation */
header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(250, 248, 245, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
}

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

.logo {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.6rem;
    letter-spacing: -0.03em;
    text-transform: uppercase;
    color: var(--primary-red);
}

.logo span {
    font-weight: 400;
    color: var(--text-primary);
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-secondary);
    position: relative;
    padding: 0.5rem 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-red);
    transition: var(--transition-smooth);
}

.nav-link:hover {
    color: var(--text-primary);
}

.nav-link:hover::after {
    width: 100%;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Language Toggle Buttons */
.lang-toggle {
    display: flex;
    background: rgba(15, 23, 42, 0.04);
    border: 1px solid var(--border-color);
    border-radius: 30px;
    padding: 2px;
    overflow: hidden;
}

.lang-btn {
    border: none;
    background: transparent;
    color: var(--text-muted);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.8rem;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.lang-btn.active {
    background: var(--primary-red);
    color: var(--text-primary);
    box-shadow: 0 2px 10px rgba(225, 29, 72, 0.4);
}

/* Hero Section */
.hero {
    padding: 4rem 0 3rem;
    text-align: center;
    position: relative;
}

.hero-logo {
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 3.5rem;
    text-transform: uppercase;
    color: var(--primary-red);
    margin-bottom: 0.5rem;
    letter-spacing: -0.04em;
    line-height: 1;
}

.hero-subtitle {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-style: italic;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

/* Opening Hours Badge */
.status-badge-container {
    display: inline-flex;
    margin-bottom: 2rem;
}

.status-badge {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.02em;
    transition: var(--transition-smooth);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.status-badge.open {
    background: rgba(16, 185, 129, 0.1);
    border-color: rgba(16, 185, 129, 0.2);
    color: var(--accent-green);
}

.status-badge.closed {
    background: rgba(225, 29, 72, 0.1);
    border-color: rgba(225, 29, 72, 0.2);
    color: var(--primary-red);
}

.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    position: relative;
}

.status-badge.open .status-dot {
    background-color: var(--accent-green);
    box-shadow: 0 0 10px var(--accent-green);
    animation: pulse 2s infinite;
}

.status-badge.closed .status-dot {
    background-color: var(--primary-red);
    box-shadow: 0 0 10px var(--primary-red);
}

@keyframes pulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.status-countdown {
    font-weight: 400;
    opacity: 0.9;
}

/* Call to action buttons */
.hero-cta {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0.9rem 1.8rem;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    border: none;
}

.btn-primary {
    background: var(--primary-red);
    color: var(--text-primary);
    box-shadow: 0 8px 24px -6px rgba(225, 29, 72, 0.5);
}

.btn-primary:hover {
    background: var(--primary-red-hover);
    transform: translateY(-2px);
    box-shadow: 0 12px 28px -4px rgba(225, 29, 72, 0.6);
}

.btn-secondary {
    background: rgba(15, 23, 42, 0.04);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: rgba(15, 23, 42, 0.08);
    border-color: var(--text-secondary);
    transform: translateY(-2px);
}

/* Offers Grid */
.offers-section {
    margin-bottom: 4rem;
}

.offers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
}

.offer-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    padding: 2rem;
    position: relative;
    overflow: hidden;
    transition: var(--transition-smooth);
}

.offer-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-hover);
    box-shadow: var(--shadow-premium);
}

.offer-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--primary-red);
}

.offer-card.lunch::before {
    background: var(--accent-gold);
}

.offer-badge {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.offer-card.lunch .offer-badge {
    background: rgba(245, 158, 11, 0.15);
    color: var(--accent-gold);
}

.offer-card.stamp .offer-badge {
    background: rgba(225, 29, 72, 0.15);
    color: var(--primary-red);
}

.offer-title {
    font-size: 1.35rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.offer-subtitle {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

.offer-text {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 1.25rem;
}

.offer-list {
    list-style: none;
}

.offer-list li {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    padding-left: 1.25rem;
    position: relative;
}

.offer-list li::before {
    content: '•';
    color: var(--accent-gold);
    position: absolute;
    left: 0;
    font-weight: bold;
}

.offer-card.stamp .offer-list li::before {
    color: var(--primary-red);
}

/* Interactive Menu Navigation Tabs */
.menu-nav-wrapper {
    position: sticky;
    top: 80px; /* aligns directly below header */
    background: var(--bg-dark);
    z-index: 90;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
}

.menu-tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    padding-bottom: 0.5rem;
}

.menu-tab {
    background: rgba(15, 23, 42, 0.03);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 0.75rem 1.25rem;
    border-radius: 30px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.menu-tab:hover {
    background: rgba(15, 23, 42, 0.06);
    color: var(--text-primary);
}

.menu-tab.active {
    background: var(--primary-red);
    color: var(--text-primary);
    border-color: var(--primary-red);
    box-shadow: 0 4px 15px rgba(225, 29, 72, 0.3);
}

/* Menu Display Container */
.menu-section {
    padding: 3rem 0 5rem;
}

.category-group {
    display: none; /* Controlled by active tab JS */
    animation: fadeIn 0.4s ease;
}

.category-group.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.category-header {
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1rem;
}

.category-title {
    font-size: 2rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.category-desc {
    font-size: 1rem;
    color: var(--text-secondary);
}

/* Menu Grid */
.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5rem;
}

/* Menu Card Design */
.menu-item-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.menu-item-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px -8px rgba(15, 23, 42, 0.08);
}

.menu-item-top {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.menu-item-no {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    background: rgba(225, 29, 72, 0.1);
    border: 1px solid rgba(225, 29, 72, 0.2);
    color: var(--primary-red);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
}

.menu-item-details {
    flex-grow: 1;
}

.menu-item-title {
    font-size: 1.15rem;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 0.35rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.menu-item-star {
    color: var(--accent-gold);
    font-size: 0.9rem;
    cursor: help;
}

.menu-item-ingredients {
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-style: italic;
    line-height: 1.4;
}

/* Price Section */
.menu-item-price-wrapper {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 1rem;
    margin-top: auto;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.price-single {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--accent-gold);
}

/* Multi-Price Layout (e.g. Pizza: Alm, Deep, Fam) */
.pizza-prices-container {
    display: flex;
    gap: 0.5rem;
    width: 100%;
}

.pizza-price-pill {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(15, 23, 42, 0.02);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    padding: 0.4rem 0.2rem;
    transition: var(--transition-smooth);
}

.pizza-price-pill:hover {
    background: rgba(15, 23, 42, 0.05);
    border-color: rgba(15, 23, 42, 0.15);
}

.price-label {
    font-size: 0.65rem;
    text-transform: uppercase;
    color: var(--text-muted);
    font-weight: 700;
    letter-spacing: 0.05em;
    margin-bottom: 0.1rem;
}

.price-val {
    font-size: 1rem;
    font-weight: 700;
    color: var(--accent-gold);
}

/* Burger/Menu Price Layout */
.burger-prices-container {
    display: flex;
    gap: 0.5rem;
    width: 100%;
}

.burger-price-pill {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(15, 23, 42, 0.02);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    padding: 0.5rem 0.8rem;
}

.burger-price-pill .price-val {
    color: var(--accent-gold);
}

/* Toppings and Extras Panel */
.toppings-panel {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    padding: 2rem;
    margin-top: 3rem;
}

.toppings-title {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-red);
}

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

.topping-category {
    background: rgba(15, 23, 42, 0.02);
    padding: 1.25rem;
    border-radius: var(--border-radius-sm);
    border: 1px solid var(--border-color);
}

.topping-cat-name {
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 0.5rem;
}

.topping-price-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 0.4rem;
}

.topping-price-row:last-child {
    margin-bottom: 0;
}

/* Contact / About / Location Info */
.info-section {
    padding: 4rem 0 5rem;
    background: linear-gradient(180deg, var(--bg-dark) 0%, rgba(15, 23, 42, 0.02) 100%);
    border-top: 1px solid var(--border-color);
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
}

.info-col {
    display: flex;
    flex-direction: column;
}

.info-header {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.info-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--primary-red);
}

.contact-row {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.25rem;
    font-size: 1rem;
}

.contact-icon {
    color: var(--primary-red);
    flex-shrink: 0;
    margin-top: 0.2rem;
}

.hours-table {
    width: 100%;
    border-collapse: collapse;
}

.hours-table tr {
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.hours-table tr:last-child {
    border-bottom: none;
}

.hours-table td {
    padding: 0.75rem 0;
    font-size: 0.95rem;
}

.hours-table td.day {
    font-weight: 500;
    color: var(--text-primary);
}

.hours-table td.time {
    text-align: right;
    color: var(--text-secondary);
}

/* Map Embed */
.map-container {
    height: 250px;
    border-radius: var(--border-radius-md);
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-premium);
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
    filter: grayscale(0.2) contrast(1.1);
}

/* Footer Section */
footer {
    background: #18181b; /* Charcoal background for contrast grounding */
    padding: 3rem 0;
    border-top: 1px solid var(--border-color);
    font-size: 0.85rem;
    color: #a1a1aa;
}

.footer-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    text-align: center;
}

.footer-copyright {
    color: #f4f4f5;
}

.footer-designer {
    color: #a1a1aa;
}

.footer-designer a {
    color: #f4f4f5;
    border-bottom: 1px dashed #71717a;
}

.footer-designer a:hover {
    color: var(--primary-red);
    border-bottom-style: solid;
}

.footer-meta-badges {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    margin-top: 0.5rem;
}

.footer-meta-badges svg {
    display: block;
    flex-shrink: 0;
}

/* Media Queries & Responsive Design */

/* Large Tablets & Small Desktops */
@media (max-width: 1024px) {
    .hero-logo {
        font-size: 3rem;
    }
}

/* Small Tablets & Mobile Landscape */
@media (max-width: 768px) {
    html {
        font-size: 15px;
    }
    
    .header-container {
        flex-direction: column;
        height: auto;
        padding: 0.75rem 1.25rem;
        gap: 0.5rem;
    }
    
    .nav-links {
        display: flex;
        gap: 1.5rem;
        justify-content: center;
        width: 100%;
        margin-top: 0.25rem;
    }
    
    .header-actions {
        position: absolute;
        top: 0.75rem;
        right: 1.25rem;
    }
    
    .menu-nav-wrapper {
        top: 95px; /* aligns directly below the two-row header on mobile */
    }
    
    .hero {
        padding: 3rem 0 2rem;
    }
    
    .hero-logo {
        font-size: 2.5rem;
    }
    
    .offers-grid {
        grid-template-columns: 1fr;
    }
    
    .menu-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

/* Small Mobile Phones */
@media (max-width: 480px) {
    .container {
        padding: 0 1.25rem; /* Ensure space / indentation on the left and right */
    }
    
    .hero-logo {
        font-size: 2rem;
    }
    
    .hero-cta {
        flex-direction: column;
        gap: 0.75rem;
        width: 100%;
    }
    
    .btn {
        width: 100%; /* Full width buttons for fat fingers */
        padding: 1rem 1.5rem;
    }
    
    .menu-tab {
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
    }
    
    .menu-item-card {
        padding: 1.25rem; /* Responsive padding */
    }
    
    .pizza-prices-container {
        flex-direction: row; /* Horizontal pills are perfect */
        gap: 0.35rem;
    }
    
    .pizza-price-pill {
        padding: 0.35rem 0.15rem;
    }
    
    .price-val {
        font-size: 0.9rem;
    }
}

/* Scroll Offset for Sticky Navigation Header */
#menu-nav,
#about-info,
#contact-info {
    scroll-margin-top: 95px; /* Offset matching desktop header + padding */
}

@media (max-width: 768px) {
    #menu-nav,
    #about-info,
    #contact-info {
        scroll-margin-top: 80px; /* Offset matching mobile header + padding */
    }
}

