:root {
    --primary-color: #FF4B4B;
    --secondary-color: #2C2C2C;
    --accent-color: #FFA500;
    --background-color: #FFFFFF;
    --text-color: #333333;
    --focus-outline-color: #4A90E2;
    --focus-outline-width: 3px;
}

*:focus {
    outline: none;
}

*:focus-visible {
    outline: var(--focus-outline-width) solid var(--focus-outline-color);
    outline-offset: 2px;
    transition: outline-offset 0.1s ease;
}

*:focus {
    outline: none;
}

*:focus-visible {
    outline: var(--focus-outline-width) solid var(--focus-outline-color);
    outline-offset: 2px;
    transition: outline-offset 0.1s ease;
}

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

body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    padding-top: 112px;
}

/* Navbar Styles */
.navbar {
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    padding: 1rem 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    z-index: 1000;
    position: fixed;
    top: 0;
    backdrop-filter: blur(8px);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.logo img {
    height: 80px;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--text-color);
}

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

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 600;
}

.nav-links a:hover {
    color: var(--primary-color);
}

.nav-links a:focus-visible {
    outline: var(--focus-outline-width) solid var(--focus-outline-color);
    outline-offset: 4px;
    border-radius: 4px;
}

/* Mobile Navigation */
@media screen and (max-width: 768px) {
    .hamburger {
        display: block;
        z-index: 100;
    }
    
    .nav-links {
        opacity: 0;
        visibility: hidden;
        position: fixed;
        top: 112px;
        left: 0;
        width: 100%;
        height: auto;
        background: rgba(255, 255, 255, 0.95);
        flex-direction: column;
        padding: 2rem;
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
        transition: all 0.3s ease-in-out;
    }

    .nav-links.active {
        opacity: 1;
        visibility: visible;
        display: flex;
    }

    .nav-links a {
        width: 100%;
        text-align: center;
        padding: 1rem 0;
    }

    .nav-order-btn {
        width: auto;
        margin-top: 1rem;
    }
}

/* Button Styles */
.primary-btn, .secondary-btn {
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    text-align: center;
}

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

.primary-btn:hover {
    background-color: #e63e3e;
    transform: translateY(-2px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.primary-btn:focus-visible {
    outline: var(--focus-outline-width) solid var(--focus-outline-color);
    outline-offset: 4px;
    box-shadow: 0 0 0 2px var(--background-color);
}

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

.secondary-btn:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.secondary-btn:focus-visible {
    outline: var(--focus-outline-width) solid var(--focus-outline-color);
    outline-offset: 4px;
    box-shadow: 0 0 0 2px var(--background-color);
}

/* Navigation specific button */
.nav-order-btn {
    margin-left: 1rem;
    padding: 0.6rem 1.2rem;
    font-size: 0.95rem;
    background-color: transparent;
    color: #FF4B4B !important;
    border: 2px solid #FF4B4B;
    min-width: 120px;
    text-align: center;
}

.nav-order-btn:hover {
    background-color: #FF4B4B;
    color: white !important;
    border: 2px solid #FF4B4B;
    transform: translateY(-2px);
}

.nav-order-btn:focus-visible {
    outline: var(--focus-outline-width) solid var(--focus-outline-color);
    outline-offset: 4px;
    box-shadow: 0 0 0 2px var(--background-color);
}

/* Hamburger menu focus styles */
.hamburger:focus-visible {
    outline: var(--focus-outline-width) solid var(--focus-outline-color);
    outline-offset: 4px;
    border-radius: 4px;
}

/* Hero Section */
.hero {
    height: 100vh;
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('images/pizza-gene-storefront.avif');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}

.hero-content {
    max-width: 800px;
    padding: 2rem;
}

.hero-content h1 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 5.2rem;
    line-height: 1;
    margin-bottom: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: white;
    position: relative;
    animation: fadeInUp 1.2s ease-out;
}

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

.hero-content h1::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: var(--primary-color);
    opacity: 0.8;
}

.cta-buttons {
    margin-top: 2rem;
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* Section Headings */
section h2 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 2rem;
    text-align: center;
    position: relative;
    padding-bottom: 1rem;
    letter-spacing: 0.5px;
}

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

/* Features Section */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    padding: 4rem 2rem;
    background-color: #f9f9f9;
}

.feature-card {
    text-align: center;
    padding: 2rem;
}

.feature-card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* Story Section */
section {
    scroll-margin-top: 100px;
}

.story {
    padding: 4rem 2rem;
    background-color: white;
}

.story-content {
    max-width: 1200px;
    margin: 0 auto;
}

.story-content h2 {
    margin-bottom: 2rem;
}

.story-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    align-items: center;
}

.story-text {
    text-align: left;
}

.story-text p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.story-image img {
    width: 100%;
    height: auto;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Menu Section */
.menu {
    padding: 4rem 2rem;
    text-align: center;
    background-color: #f9f9f9;
}

.menu-showcase-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    background-color: #f9f9f9;
    border-radius: 8px;
    overflow: hidden;
}

.menu-showcase {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
    margin-bottom: 0;
    padding: 0.5rem;
    background-color: #f9f9f9;
}

@media screen and (max-width: 1200px) {
    .menu-showcase {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .menu-showcase img {
        height: 200px;
    }
}

@media screen and (max-width: 600px) {
    .menu-showcase img {
        height: 150px;
    }
    
    .menu {
        padding: 4rem 1rem;
    }
    
    .menu-showcase-container {
        margin-bottom: 1.5rem;
    }
}

.menu-showcase img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
    display: block;
}

.menu-overlay {
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    right: 0.5rem;
    bottom: 0.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    background: transparent;
    transition: background-color 0.3s ease;
    z-index: 2;
}

.menu-showcase-container:hover .menu-overlay,
.menu-showcase-container.show-overlay .menu-overlay {
    background: rgba(0, 0, 0, 0.5);
    border-radius: 8px;
}

.menu-overlay .primary-btn {
    transform: translateY(20px);
    transition: all 0.3s ease;
    background-color: var(--primary-color);
    color: white;
    padding: 1.2rem 2.5rem;
    font-size: 1.3rem;
    font-weight: 600;
    opacity: 1;
    white-space: nowrap;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3),
                0 0 30px rgba(255, 255, 255, 0.3),
                0 0 50px rgba(255, 255, 255, 0.1);
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(5px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    letter-spacing: 0.5px;
}

.menu-showcase-container:hover .menu-overlay .primary-btn,
.menu-showcase-container.show-overlay .menu-overlay .primary-btn {
    transform: translateY(0);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4),
                0 0 40px rgba(255, 255, 255, 0.4),
                0 0 80px rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.5);
    background-color: #ff3b3b;
}

.menu-overlay .primary-btn:hover {
    transform: translateY(-2px);
}

@media screen and (max-width: 600px) {
    .menu-overlay .primary-btn {
        padding: 1rem 2rem;
        font-size: 1.2rem;
    }
}

@media screen and (max-width: 768px) {
    .menu-showcase {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .menu-showcase-container {
        display: flex;
        flex-direction: column;
    }

    .menu-overlay {
        position: relative;
        order: -1;
        top: auto;
        left: auto;
        right: auto;
        bottom: auto;
        background: transparent;
        padding: 1rem;
        margin-bottom: 0.5rem;
    }

    .menu-overlay .primary-btn {
        transform: none;
        opacity: 1;
        width: 100%;
        text-align: center;
        background-color: var(--primary-color);
    }

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

@media screen and (max-width: 600px) {
    .menu {
        padding: 4rem 1rem;
    }
    
    .menu-showcase-container {
        margin-bottom: 1.5rem;
    }

    .menu-showcase img {
        height: 180px;
    }

    .menu-overlay {
        padding: 0.8rem;
    }

    .menu-overlay .primary-btn {
        padding: 0.8rem 1.5rem;
        font-size: 1.1rem;
    }
}

/* Contact/Visit Section */
.contact {
    padding: 4rem 2rem;
    background-color: #f9f9f9;
}

.contact-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.contact-content h2 {
    margin-bottom: 2rem;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-bottom: 2rem;
}

.contact-info i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.contact-info p {
    font-size: 1.1rem;
}

/* Contact Section Links */
.contact-info a {
    color: inherit;
    text-decoration: none;
    border-bottom: 1px dotted #666;
    transition: all 0.2s ease;
}

.contact-info a:hover {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

/* Careers Section */
.careers {
    padding: 4rem 2rem;
    background-color: white;
}

.careers-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.careers-content h2 {
    margin-bottom: 2rem;
}

.careers-text {
    max-width: 800px;
    margin: 0 auto;
}

.careers-text p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.positions {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin: 2rem 0;
}

.positions h3 {
    color: #333;
    margin-bottom: 1rem;
}

.positions ul {
    list-style: none;
    padding: 0;
}

.positions li {
    padding: 0.5rem 0;
    font-size: 1.1rem;
    color: #555;
}

.careers-cta {
    margin-top: 2rem;
}

.careers-cta .primary-btn {
    margin-top: 1rem;
    display: inline-block;
}

/* Preview Modal Styles */
.preview-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.preview-modal.show {
    opacity: 1;
    visibility: visible;
}

.preview-modal-content {
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    text-align: center;
    max-width: 90%;
    width: 500px;
    position: relative;
    transform: translateY(20px);
    opacity: 0;
    transition: transform 0.4s ease, opacity 0.4s ease;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.preview-modal.show .preview-modal-content {
    transform: translateY(0);
    opacity: 1;
}

.preview-badge {
    background: var(--primary-color);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    display: inline-block;
    margin-bottom: 1.5rem;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.preview-modal h2 {
    margin-bottom: 1rem;
    color: var(--secondary-color);
    font-family: 'Playfair Display', serif;
}

.preview-modal p {
    margin-bottom: 2rem;
    color: #666;
    line-height: 1.6;
}

.preview-modal button {
    min-width: 150px;
}

@media (max-width: 768px) {
    .preview-modal-content {
        padding: 2rem;
        width: 90%;
    }
}

/* Footer */
footer {
    background-color: var(--secondary-color);
    color: white;
    padding: 3rem 0 1rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.footer-main {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    gap: 2rem;
    align-items: start;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-logo {
    display: flex;
    align-items: flex-start;
}

.footer-logo img {
    height: 75px;
    filter: brightness(0) invert(1);
}

.footer-nav {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-right: 4rem;
    text-align: center;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.footer-links a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-links a:hover {
    color: var(--primary-color);
}

.footer-social {
    display: flex;
    justify-content: center;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 0.95rem;
}

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

.social-link i {
    font-size: 1.2rem;
}

.footer-right {
    display: flex;
    gap: 3rem;
    align-items: flex-start;
    justify-content: flex-end;
    min-width: 400px;
}

.footer-hours,
.footer-location {
    text-align: left;
    min-width: 180px;
}

.footer-hours .hours-label,
.footer-location .location-label {
    color: var(--accent-color);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

.footer-hours p,
.footer-location p {
    color: var(--background-color);
    margin-bottom: 0.25rem;
}

@media screen and (max-width: 768px) {
    .footer-right {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        min-width: unset;
        width: 100%;
    }

    .footer-nav {
        align-items: center;
        margin-right: 0;
        width: 100%;
        text-align: center;
    }

    .footer-links {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }

    .footer-social {
        display: flex;
        justify-content: center;
        width: 100%;
    }

    .footer-hours,
    .footer-location {
        text-align: center;
        min-width: unset;
        width: 100%;
    }

    .footer-logo {
        display: flex;
        justify-content: center;
        width: 100%;
    }

    .footer-logo img {
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .story-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-content h1 {
        font-size: 4rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .contact-info {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .hamburger {
        display: block;
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .nav-links {
        position: fixed;
        top: -200%;
        left: 0;
        gap: 0;
        flex-direction: column;
        background: rgba(255, 255, 255, 0.95);
        width: 100%;
        text-align: center;
        transition: 0.3s ease-in-out;
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
        padding: 20px 0;
        display: flex;
        margin-top: 0;
        z-index: 999;
    }

    .nav-links.active {
        top: 140px;
    }

    .nav-links a {
        margin: 16px 0;
    }

    .nav-order-btn {
        margin: 16px auto;
    }
}

@media (max-width: 768px) {
    .footer-main {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .footer-logo {
        justify-content: center;
    }

    .footer-hours {
        text-align: center;
    }

    .footer-location {
        text-align: center;
    }
}

/* iPad Pro Layout Fix */
@media screen and (max-width: 1024px) {
    .footer-right {
        min-width: 350px;
        gap: 2rem;
    }
    
    .footer-hours,
    .footer-location {
        min-width: 160px;
    }
}

.footer-bottom {
    text-align: center;
    padding-top: 1.5rem;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.7);
}
