@import url('reset.css');
@import url('variables.css');
@import url('nav.css');
@import url('hero.css');
@import url('specialties.css');
@import url('about.css');
@import url('menu.css');
@import url('peruvian.css');
@import url('contact.css');
@import url('footer.css');
@import url('utils.css');

/* Optionally keep base styles or root here if needed */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #e63737;
    --text-color: #333;
    --background-light: #fff;
    --background-dark: #f5f5f5;
    --spacing-unit: 1rem;
    --section-padding: 6rem;
    --transition-speed: 0.3s;
    
    /* Font Sizes - Desktop */
    --h1-size: 4rem;
    --h2-size: 2.5rem;
    --h3-size: 1.5rem;
    --body-large: 1.25rem;
    --body-normal: 1rem;
    --body-small: 0.9rem;
}

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

@keyframes scaleIn {
    from { transform: scale(0.95); }
    to { transform: scale(1); }
}

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    background: #1a1a1a; /* Match footer background color */
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100%;
    display: flex;
    flex-direction: column;
}

body > * {
    flex-shrink: 0;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
}

.container {
    width: 100%;
    max-width: 1800px;
    margin: 0 auto;
    padding: 0 150px;
}

/* Navigation */
.main-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: #f8f0e3;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    z-index: 1000;
    padding: 1.5rem 0;
    transition: all var(--transition-speed) ease;
}

.main-nav.scrolled {
    padding: 1rem 0;
    background: rgba(248, 240, 227, 0.95);
    backdrop-filter: blur(5px);
}

.nav-container {
    width: 100%;
    max-width: 1800px;
    margin: 0 auto;
    padding: 0 150px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    text-decoration: none;
    transition: transform var(--transition-speed) ease;
    z-index: 1001;
    display: flex;
    align-items: center;
}

.logo:hover {
    transform: scale(1.05);
}

/* Logo sizes for different breakpoints */

/* Hero Section with Background */
.hero {
    position: relative;
    width: 100%;
    min-height: 70vh;
    background-image: url('../img/mastro-pizza_hero.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    z-index: 1;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4); /* dark overlay for readability */
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
}

.logo-img {
    width: auto;
    height: 40px;
}

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

.nav-links {
    display: flex;
    gap: 3rem;
}

.nav-links a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    position: relative;
    transition: color var(--transition-speed) ease;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width var(--transition-speed) ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.hamburger-icon {
    width: 30px;
    height: 20px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.hamburger-icon span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--primary-color);
    transition: all 0.3s ease;
}

/* Mobile Menu Open State */
.mobile-menu-btn.active .hamburger-icon span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.mobile-menu-btn.active .hamburger-icon span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active .hamburger-icon span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* Media Queries for Navigation */
@media (max-width: 1024px) {
    .mobile-menu-btn {
        display: block;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: #f8f0e3;
        flex-direction: column;
        justify-content: center;
        padding: 2rem;
        transition: right 0.3s ease;
    }

    .nav-menu.active {
        right: 0;
    }

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

    .nav-links a {
        font-size: 1.2rem;
    }

    .main-nav .cta-button {
        margin-top: 2rem;
    }

    .mobile-logo {
        display: block;
    }
}

/* Buttons */
.cta-button {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 12px;
    cursor: pointer;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.9rem;
    transition: all var(--transition-speed) ease;
    position: relative;
    overflow: hidden;
    text-decoration: none;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(227, 24, 55, 0.3);
}

.cta-button:active {
    transform: translateY(0);
}

.cta-button i {
    margin-right: 8px;
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('../img/mastro-pizza_hero.png');
    background-size: cover;
    background-position: center;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: calc(80px + 72px); /* 80px standard + navbar height */
    position: relative;
}

.hero-content {
    color: white;
    max-width: 1800px;
    margin: 0 auto;
    padding: 0 150px;
    animation: fadeIn 1s ease-out;
    text-align: center;
    align-items: center;
    display: flex;
    flex-direction: column;
}

.hero h1 {
    font-size: var(--h1-size);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero p {
    font-size: var(--body-large);
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* About Section */
.about {
    padding: var(--section-padding) 0;
    background: var(--background-light);
}

.about-content {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    align-items: center;
}

.about-text {
    flex: 1;
    max-width: 600px;
    padding-right: 2rem;
}

.about-text h2 {
    font-size: var(--h2-size);
    margin-bottom: 1.5rem;
    color: var(--text-color);
}

.about-text p {
    font-size: var(--body-normal);
    line-height: 1.6;
    color: #666;
    margin-bottom: 2rem;
}

.about-text .cta-button {
    margin-top: 1rem;
}

.about-image {
    flex: 1;
    max-width: 600px;
    height: 100%;
}

.about-image .img-placeholder {
    padding-top: 66.67%; /* 2:3 aspect ratio */
    border-radius: 12px;
    background: #f0f0f0;
}

/* Media Queries for About Section */
@media (min-width: 768px) {
    .about-content {
        flex-direction: row;
        align-items: center;
        gap: 4rem;
    }

    .about-text {
        padding-right: 2rem;
    }
}

@media (max-width: 767px) {
    .about-text {
        padding-right: 0;
        text-align: center;
    }

    .about-text h2 {
        font-size: 2rem;
    }

    .about-image {
        width: 100%;
    }
}

/* Specialties Section */
.specialties {
    padding: var(--section-padding) 0;
    background: #f8f0e3;
}

.specialties h2 {
    text-align: center;
    margin-bottom: 4rem;
    font-size: var(--h2-size);
}

.specialties-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

.specialty-card {
    background: #fff;
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform var(--transition-speed);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.specialty-card img {
    width: 100%;
    height: 100%;
    margin-bottom: 1.5rem;
    object-fit: contain;
    transition: transform 0.3s ease;
    animation: none !important;
}

.specialty-card h3 {
    font-size: var(--h3-size);
    margin-bottom: 1rem;
    color: var(--primary-color);
    text-align: center;
}

.specialty-card p {
    font-size: var(--body-small);
    color: #666;
    line-height: 1.4;
    text-align: center;
    margin: 0 auto;
    max-width: 90%;
}

.specialty-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.specialty-card:hover img {
    transform: scale(1.1);
}

.specialty-card:active {
    transform: translateY(-4px) scale(0.98);
}

/* Menu Section */
.menu {
    padding: var(--section-padding) 0;
    background: var(--background-light);
}

.menu h2 {
    text-align: center;
    margin-bottom: 1.5rem;
    font-size: var(--h2-size);
}

.menu-description {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 4rem auto;
    font-size: var(--body-large);
}

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

.pizza-card {
    background: #fff;
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform var(--transition-speed);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.pizza-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    animation: none !important;
}

.pizza-card h3 {
    font-size: var(--h3-size);
    margin-bottom: 0.5rem;
    color: var(--primary-color);
    text-align: center;
}

.pizza-card p {
    font-size: var(--body-small);
    color: #666;
    line-height: 1.4;
    text-align: center;
    margin: 0 auto;
    max-width: 90%;
}

.pizza-card .price {
    font-size: var(--body-large);
    font-weight: bold;
    color: var(--primary-color);
    margin-top: 1rem;
    text-align: center;
}

.pizza-image-space {
    text-align: center !important;
    display: flex !important;
    flex-direction: column;
    align-items: center !important;
    justify-content: center !important;
}

.pizza-img-large {
    width: 30% !important;
    max-width: 600px !important;
    min-width: 150px;
    height: auto !important;
    display: block !important;
    margin-left: auto !important;
    margin-right: auto !important;
    margin-top: 2rem;
    margin-bottom: 2rem;
    animation: none !important;
    object-fit: contain !important;
    box-shadow: none !important;
}

/* Peruvian Section */
.peruvian {
    padding: var(--section-padding) 0;
    background: var(--background-dark);
}

.peruvian h2 {
    text-align: center;
    font-size: var(--h2-size);
    margin-bottom: 4rem;
    color: var(--text-color);
}

.peruvian-content {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    align-items: center;
    margin-bottom: 2rem;
}

.peruvian-img {
    flex: 1;
    width: 100%;
    max-width: 600px;
}

.peruvian-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
    display: block;
    animation: none !important;
}

.peruvian-img .img-placeholder {
    padding-top: 66.67%; /* 2:3 aspect ratio */
    border-radius: 12px;
    background: #f0f0f0;
}

.peruvian-text {
    flex: 1;
    max-width: 600px;
    padding-left: 2rem;
}

.peruvian-text h3 {
    font-size: var(--h3-size);
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.peruvian-text p {
    font-size: var(--body-normal);
    line-height: 1.6;
    color: #666;
    margin-bottom: 2rem;
}

.peruvian-text .cta-button {
    margin-top: 1rem;
}

/* Media Queries for Peruvian Section */
@media (min-width: 768px) {
    .peruvian-content {
        flex-direction: row;
        align-items: center;
        gap: 4rem;
    }

    .peruvian h2 {
        font-size: 2.5rem;
        margin-bottom: 5rem;
    }
}

@media (max-width: 767px) {
    .peruvian h2 {
        font-size: 2rem;
        margin-bottom: 3rem;
    }

    .peruvian-text {
        padding-left: 0;
        text-align: center;
    }

    .peruvian-img {
        width: 100%;
    }

    .peruvian-content {
        gap: 2rem;
    }
}

/* Banner */
.banner {
    background: var(--primary-color);
    color: white;
    padding: 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    height: auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

.banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 100%);
    /* animation: shine 2s infinite; */
}

.banner h2 {
    /* animation: fadeInUp 0.8s ease-out; */
}

.banner-img {
    animation: none !important;
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
}

/* Contact Section */
.contact {
    padding: var(--section-padding) 0;
    background: var(--background-light);
}

.contact h2 {
    text-align: center;
    margin-bottom: 4rem;
    font-size: var(--h2-size);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-details p {
    font-size: var(--body-normal);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.contact-details p i {
    width: 24px;
    color: var(--primary-color);
    margin-right: 15px;
}

.contact-details p a, .footer-contact p a {
    color: inherit;
    text-decoration: none;
    font-size: inherit;
    font-family: inherit;
    transition: color 0.2s;
}

.contact-details p a:hover, .footer-contact p a:hover {
    color: var(--primary-color);
    text-decoration: underline;
    cursor: pointer;
}

.social-links {
    display: flex;
    gap: 2rem;
}

.social-links a {
    color: var(--text-color);
    text-decoration: none;
    transition: all var(--transition-speed) ease;
    font-size: 1.5rem;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #f8f0e3;
}

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

.contact-map {
    width: 100%;
    height: 450px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.contact-map iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/* Responsive adjustments */
@media (max-width: 1400px) {
    .container,
    .nav-container {
        padding: 0 100px;
    }
}

@media (max-width: 1024px) {
    .container,
    .nav-container {
        padding: 0 60px;
    }
}

@media (max-width: 768px) {
    .container,
    .nav-container {
        padding: 0 30px;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .contact-map {
        height: 350px;
    }

    .pizza-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
 
    .menu h2 {
        font-size: 2rem;
        margin-bottom: 1rem;
    }

    .menu-description {
        margin-bottom: 2rem;
        font-size: 1rem;
    }

    .pizza-card {
        padding: 1.25rem;
    }

    .hero-content {
        padding: 0 30px;
        align-items: center;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container,
    .nav-container {
        padding: 0 20px;
    }
}

/* Footer */
.footer {
    background: #1a1a1a;
    color: #fff;
    padding: 0;
    font-size: 1rem;
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    border: none;
}

.footer-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    max-width: 1400px;
    margin: 0 auto;
    padding: 60px 150px 30px 150px;
    flex-wrap: wrap;
}

.footer-col {
    flex: 1 1 110px;
    min-width: 110px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-logo-img {
    height: 32px;
    margin-bottom: 1rem;
}

.footer-brand p {
    color: #ccc;
    font-size: 1rem;
    margin-bottom: 0;
}

.footer-links h4,
.footer-contact h4 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: #fff;
    letter-spacing: 1px;
}

.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

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

.footer-links ul li a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.2s;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

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

.footer-contact p {
    margin: 0 0 0.5rem 0;
    color: #ccc;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.footer-social {
    margin-top: 1rem;
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.footer-social a {
    color: #fff;
    background: var(--primary-color);
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: background 0.2s, color 0.2s;
    text-decoration: none;
}

.footer-social a:hover {
    background: #fff;
    color: var(--primary-color);
}

.footer-bottom {
    background: #1a1a1a;
    border-top: 1px solid #333;
    width: 100%;
    position: relative;
    overflow: hidden;
    margin: 0;
    padding: 0;
}

.footer-bottom-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1.2rem 150px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.95rem;
    flex-wrap: wrap;
    width: 100%;
    box-sizing: border-box;
}

.footer-bottom-links a {
    color: #ccc;
    margin-left: 2rem;
    text-decoration: none;
    transition: color 0.2s;
}

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

/* Responsive */
@media (max-width: 1024px) {
    .footer-container {
        flex-direction: column;
        gap: 2rem;
        padding: 40px 60px 20px;
        text-align: center;
    }
    
    .footer-col {
        width: 100%;
        height: auto;
        padding-bottom: 20px;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .footer-bottom-container {
        flex-direction: column;
        gap: 1rem;
        padding: 1.2rem 60px;
        text-align: center;
    }
    
    .footer-bottom-links {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
        margin-top: 0.5rem;
    }
    
    .footer-bottom-links a {
        margin: 0;
    }
}

@media (max-width: 768px) {
    .footer-container {
        padding: 30px 30px 20px;
    }
    
    .footer-bottom-container {
        padding: 1.2rem 30px;
    }
}

@media (max-width: 480px) {
    .footer-container {
        padding: 25px 15px 15px;
    }
    
    .footer-bottom-container {
        padding: 1rem 15px;
    }
    
    .footer-col {
        padding-bottom: 15px;
    }
    
    .footer-bottom-links {
        width: 100%;
    }
    
    .footer-logo-img {
        height: 28px;
    }
}

/* Media Queries */
@media (min-width: 768px) {
    .nav-links {
        display: flex;
    }

    .specialties-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .about-content,
    .peruvian-content {
        flex-direction: row;
    }

    .footer-content {
        flex-direction: row;
        justify-content: space-between;
        text-align: center;
    }

    .hero h1 {
        font-size: 4rem;
    }
}

@media (min-width: 1024px) {
    .section-container {
        padding: 0 150px;
    }
    
    .navbar {
        padding: 1rem 150px;
    }
}

@media (max-width: 768px) {
    .section-container {
        padding: 0 30px;
    }
    
    .navbar {
        padding: 1rem 30px;
    }
}

@media (max-width: 480px) {
    .section-container {
        padding: 0 20px;
    }
    
    .navbar {
        padding: 1rem 20px;
    }
}

/* Typography Base Styles */
h1 {
    font-size: var(--h1-size);
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

h2 {
    font-size: var(--h2-size);
    line-height: 1.3;
    margin-bottom: 2rem;
}

h3 {
    font-size: var(--h3-size);
    line-height: 1.4;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

p {
    font-size: var(--body-normal);
    line-height: 1.6;
}

/* Section-Specific Typography */
.hero h1 {
    font-size: var(--h1-size);
    margin-bottom: 1.5rem;
}

.hero p {
    font-size: var(--body-large);
    margin-bottom: 2rem;
}

.about-text h2,
.specialties h2,
.menu h2,
.peruvian h2,
.contact h2 {
    font-size: var(--h2-size);
}

.about-text p,
.peruvian-text p {
    font-size: var(--body-normal);
}

.specialty-card p,
.pizza-card p {
    font-size: var(--body-small);
}

.menu-description {
    font-size: var(--body-large);
}

.contact-details p {
    font-size: var(--body-normal);
}

/* Typography Media Queries */
@media (max-width: 1400px) {
    :root {
        --h1-size: 3.5rem;
        --h2-size: 2.25rem;
        --h3-size: 1.35rem;
        --body-large: 1.15rem;
    }
}

@media (max-width: 1024px) {
    :root {
        --h1-size: 3rem;
        --h2-size: 2rem;
        --h3-size: 1.25rem;
        --body-large: 1.1rem;
        --body-normal: 0.95rem;
    }

    .nav-links a {
        font-size: 1.1rem;
    }
}

@media (max-width: 768px) {
    :root {
        --h1-size: 2.5rem;
        --h2-size: 1.75rem;
        --h3-size: 1.2rem;
        --body-large: 1.05rem;
        --body-normal: 0.9rem;
        --body-small: 0.85rem;
    }

    .hero p {
        font-size: var(--body-normal);
    }

    .menu-description {
        font-size: var(--body-normal);
    }

    .nav-links a {
        font-size: 1.2rem;
    }

    .cta-button {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    :root {
        --h1-size: 2rem;
        --h2-size: 1.5rem;
        --h3-size: 1.1rem;
        --body-large: 1rem;
        --body-normal: 0.85rem;
        --body-small: 0.8rem;
    }

    .hero h1 {
        margin-bottom: 1rem;
    }

    .hero p {
        margin-bottom: 1.5rem;
    }

    .section-title {
        margin-bottom: 1.5rem;
    }

    .nav-links a {
        font-size: 1.1rem;
    }

    .cta-button {
        font-size: 0.85rem;
        padding: 0.8rem 1.5rem;
    }
}

/* Logo sizes */
.logo {
    font-size: 1.5rem;
}

@media (max-width: 768px) {
    .logo-img {
        height: 20px;
    }
}

@media (max-width: 480px) {
    .logo-img {
        height: 20px;
    }
}

/* Hover effects */
.specialty-card:hover,
.pizza-card:hover {
    transform: translateY(-5px);
}

/* Grid container styles */
.specialties-grid,
.menu-grid {
    display: grid;
    gap: 2rem;
    justify-content: center;
    align-items: stretch;
}

@media (min-width: 768px) {
    .specialties-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .menu-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    .specialties-grid,
    .menu-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }

    .pizza-card img {
        height: 180px;
    }
}

/* Container Padding */
.section-container {
    padding: 0 150px;
    width: 100%;
    margin: 0 auto;
}

/* Navigation specific padding */
.navbar {
    padding: 1rem 150px;
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    background: var(--background-light);
    transition: all var(--transition-speed);
}

/* Hero section specific padding to account for fixed navbar */
.hero {
    padding-top: calc(80px + 72px); /* 80px standard + navbar height */
}

/* Responsive Padding Adjustments */
@media (max-width: 1400px) {
    .section-container {
        padding: 0 100px;
    }
    
    .navbar {
        padding: 1rem 100px;
    }

    .container,
    .nav-container {
        padding: 0 100px;
    }
}

@media (max-width: 1024px) {
    .section-container {
        padding: 0 60px;
    }
    
    .navbar {
        padding: 1rem 60px;
    }

    .container,
    .nav-container {
        padding: 0 60px;
    }
}

@media (max-width: 768px) {
    .section-container {
        padding: 0 30px;
    }
    
    .navbar {
        padding: 1rem 30px;
    }

    .container,
    .nav-container {
        padding: 0 30px;
    }
}

@media (max-width: 480px) {
    .section-container {
        padding: 0 20px;
    }
    
    .navbar {
        padding: 1rem 20px;
    }

    .container,
    .nav-container {
        padding: 0 20px;
    }
}

/* Apply section-container class to all main sections */
.hero,
.about,
.specialties,
.menu,
.peruvian,
.contact,
.footer {
    position: relative;
}

/* Specific section backgrounds */
.specialties {
    background-color: #f8f0e3;
}

.peruvian {
    background-color: var(--background-dark);
}

/* Container width constraints */
.content-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

/* Ensure grids respect new padding */
.specialties-grid,
.menu-grid {
    margin-top: 3rem;
}

/* Footer specific adjustments */
.footer {
    background-color: var(--text-color);
    color: var(--background-light);
}

/* Contact section map container adjustment */
.map-container {
    margin-top: 2rem;
    width: 100%;
    height: 400px;
}

/* CTA Button Container */
.cta-center-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin-top: 3rem;
}

/* Mobile Logo Styles */
.mobile-logo {
    display: none;
    margin-top: 2rem;
    text-align: center;
}

.mobile-logo-img {
    width: auto;
    height: 40px;
}

@media (max-width: 768px) {
    .mobile-logo-img {
        height: 20px;
    }
}

@media (max-width: 480px) {
    .mobile-logo-img {
        height: 20px;
    }
}

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

@keyframes fadeInLeft {
    from { 
        opacity: 0; 
        transform: translateX(-30px); 
    }
    to { 
        opacity: 1; 
        transform: translateX(0); 
    }
}

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

@keyframes scaleIn {
    from { 
        opacity: 0; 
        transform: scale(0.8); 
    }
    to { 
        opacity: 1; 
        transform: scale(1); 
    }
}

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

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

/* Animation Classes */
.animate-fade-in-up {
    animation: fadeInUp 0.8s ease-out;
}

.animate-fade-in-left {
    animation: fadeInLeft 0.8s ease-out;
}

.animate-fade-in-right {
    animation: fadeInRight 0.8s ease-out;
}

.animate-scale-in {
    animation: scaleIn 0.6s ease-out;
}

.animate-slide-up {
    animation: slideInFromBottom 0.8s ease-out;
}

.animate-pulse {
    animation: pulse 2s infinite;
}

.animate-float {
    animation: float 3s ease-in-out infinite;
}

/* Enhanced Hover Effects */

/* About Section Animations */
.about-text h2 {
    animation: fadeInLeft 0.8s ease-out;
}

.about-text p {
    animation: fadeInLeft 0.8s ease-out 0.2s both;
}

.about-text .cta-button {
    animation: fadeInLeft 0.8s ease-out 0.4s both;
}

.about-image {
    animation: fadeInRight 0.8s ease-out 0.3s both;
}

/* Specialties Section Animations */
.specialties h2 {
    animation: fadeInUp 0.8s ease-out;
}

.specialty-card {
    transition: all 0.3s ease;
}

.specialty-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.specialty-card img {
    transition: transform 0.3s ease;
}

.specialty-card:hover img {
    transform: scale(1.1);
}

.specialty-card:active {
    transform: translateY(-4px) scale(0.98);
}

/* Menu Section Animations */
.menu h2 {
    animation: fadeInUp 0.8s ease-out;
}

.menu-description {
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.pizza-card {
    animation: scaleIn 0.6s ease-out;
    transition: all 0.3s ease;
}

.pizza-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.pizza-card img {
    transition: transform 0.3s ease;
}

.pizza-card:hover img {
    transform: scale(1.05);
}

/* Peruvian Section Animations */
.peruvian h2 {
    animation: fadeInUp 0.8s ease-out;
}

.peruvian-img {
    animation: fadeInLeft 0.8s ease-out 0.2s both;
}

.peruvian-text h3 {
    animation: fadeInRight 0.8s ease-out 0.3s both;
}

.peruvian-text p {
    animation: fadeInRight 0.8s ease-out 0.4s both;
}

.peruvian-text .cta-button {
    animation: fadeInRight 0.8s ease-out 0.5s both;
}

/* Contact Section Animations */
.contact h2 {
    animation: fadeInUp 0.8s ease-out;
}

.contact-details p {
    animation: fadeInLeft 0.8s ease-out;
    transition: all 0.3s ease;
}

.contact-details p:hover {
    transform: translateX(10px);
    color: var(--primary-color);
}

.social-links a {
    animation: scaleIn 0.6s ease-out;
    transition: all 0.3s ease;
}

.social-links a:hover {
    transform: translateY(-5px) scale(1.1);
    animation: pulse 0.6s ease-in-out;
}

/* Footer Animations */
.footer-brand {
    animation: fadeInLeft 0.8s ease-out;
}

.footer-links {
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.footer-contact {
    animation: fadeInRight 0.8s ease-out 0.4s both;
}

.footer-social a {
    transition: all 0.3s ease;
}

.footer-social a:hover {
    transform: translateY(-3px) scale(1.1);
    animation: pulse 0.6s ease-in-out;
}

/* Navigation Enhancements */
.nav-links a {
    position: relative;
    transition: all 0.3s ease;
}

.nav-links a:hover {
    transform: translateY(-2px);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

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

/* Logo Animation */
.logo {
    transition: all 0.3s ease;
}

.logo:hover {
    transform: scale(1.05) rotate(2deg);
}

/* CTA Button Enhancements */
.cta-button {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.cta-button:hover::before {
    left: 100%;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(227, 24, 55, 0.4);
}

/* Section Headers Animation */
.section-title {
    animation: fadeInUp 0.8s ease-out;
}

/* Image Placeholder Animations */
.img-placeholder {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.img-placeholder::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.6s;
}

.img-placeholder:hover::before {
    left: 100%;
}

/* Banner Animation */
.banner h2 {
    /* animation: fadeInUp 0.8s ease-out; */
}

/* Mobile Menu Enhancements */
.mobile-menu-btn {
    transition: all 0.3s ease;
}

.mobile-menu-btn:hover {
    transform: scale(1.1);
}

.hamburger-icon span {
    transition: all 0.3s ease;
}

/* Scroll-triggered animations */
.scroll-animate {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.scroll-animate.animate {
    opacity: 1;
    transform: translateY(0);
}

/* Loading animations for images */
.image-loading {
    animation: pulse 1.5s infinite;
}

/* Enhanced card interactions */
.specialty-card,
.pizza-card {
    cursor: pointer;
}

.specialty-card:active,
.pizza-card:active {
    transform: translateY(-4px) scale(0.98);
}

/* Footer bottom animation */
.footer-bottom {
    animation: slideInFromBottom 0.8s ease-out 0.6s both;
}

/* Navigation Dropdown Styles */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.dropdown-toggle i {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.dropdown.active .dropdown-toggle i {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--background-light);
    min-width: 200px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1001;
    padding: 0.5rem 0;
    margin-top: 0.5rem;
}

.dropdown.active .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu a {
    display: block;
    padding: 0.5rem 1rem;
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.2s;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

.dropdown-menu a:hover {
    background: var(--primary-color);
    color: white;
    transform: translateX(5px);
}

.dropdown-menu a::after {
    display: none;
}

/* Mobile Dropdown Styles */
@media (max-width: 1024px) {
    .dropdown {
        width: 100%;
    }
    
    .dropdown-toggle {
        width: 100%;
        justify-content: center;
        padding: 1rem 0;
        text-align: center;
    }
    
    .dropdown-menu {
        position: static;
        background: transparent;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        padding: 0;
        margin: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }
    
    .dropdown.active .dropdown-menu {
        max-height: 200px;
    }
    
    .dropdown-menu a {
        padding: 0.75rem 2rem;
        font-size: 1rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        text-align: center;
    }
    
    .dropdown-menu a:hover {
        background: rgba(255, 255, 255, 0.1);
        color: var(--text-color);
        transform: none;
    }
    
    .dropdown-toggle i {
        transform: rotate(0deg);
        margin-left: 0.5rem;
    }
    
    .dropdown.active .dropdown-toggle i {
        transform: rotate(180deg);
    }
}

.banner-img {
    animation: none !important;
}

/* Offer Modal Styles */
.modal {
  display: none; /* Hidden by default */
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  overflow: auto;
  background-color: rgba(0,0,0,0.5);
  animation: fadeIn 0.3s;
}
.modal-content {
  background-color: #fff;
  margin: 10% auto;
  padding: 2rem 2.5rem;
  border-radius: 12px;
  width: 90%;
  max-width: 400px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.15);
  text-align: center;
  position: relative;
  animation: scaleIn 0.3s;
}
.close-modal {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 2rem;
  color: #e63737;
  cursor: pointer;
  transition: color 0.2s;
}
.close-modal:hover {
  color: #b71c1c;
}
@media (max-width: 480px) {
  .modal-content {
    padding: 1.2rem 0.5rem;
  }
}

/* Hero Content Responsive Padding */
.hero-content {
    color: white;
    max-width: 1800px;
    margin: 0 auto;
    padding: 0 150px;
    animation: fadeIn 1s ease-out;
    text-align: center;
    align-items: center;
    display: flex;
    flex-direction: column;
}
@media (max-width: 1400px) {
    .hero-content {
        padding: 0 100px;
    }
}
@media (max-width: 1024px) {
    .hero-content {
        padding: 0 60px;
    }
}
@media (max-width: 768px) {
    .hero-content {
        padding: 0 30px;
        align-items: center;
        text-align: center;
    }
}
@media (max-width: 480px) {
    .hero-content {
        padding: 0 20px;
    }
} 

.pizza-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  display: block;
  animation: none !important;
} 