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

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

:root {
    /* New Color Palette */
    --main-text: rgb(188, 58, 69);
    --main-background: rgb(245, 201, 136);
    --secondary-background: rgb(235, 233, 233);

    /* Legacy colors kept for compatibility */
    --primary-dark: rgb(188, 58, 69);
    --primary-red: rgb(188, 58, 69);

    --text-primary: rgb(188, 58, 69);
    --text-secondary: rgb(188, 58, 69);
    --white: #ffffff;
    --off-white: rgb(235, 233, 233);
    --border-light: rgba(188, 58, 69, 0.2);

    /* Typography */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Montserrat', sans-serif;

    /* Spacing - Increased for more breathing room */
    --spacing-xs: 0.75rem;
    --spacing-sm: 1.5rem;
    --spacing-md: 3rem;
    --spacing-lg: 5rem;
    --spacing-xl: 8rem;

    /* Border Radius */
    --radius-sm: 12px;
    --radius-md: 20px;
    --radius-lg: 30px;
    --radius-xl: 40px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text-primary);
    background-color: var(--white);
    line-height: 1.7;
    overflow-x: hidden;
    font-size: 16px;
}

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

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

.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: var(--main-background);
    box-shadow: none;
    border-bottom: 2px solid var(--main-text);
    z-index: 1000;
    padding: 2rem 0;
    transition: all 0.3s ease;
}

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

.logo {
    display: flex;
    align-items: center;
    min-width: 0;
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-dark);
    letter-spacing: -0.01em;
    line-height: 1.1;
    max-width: 100%;
    overflow-wrap: anywhere;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: var(--spacing-lg);
}

.nav-links a {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    font-size: 0.95rem;
    letter-spacing: 0;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--primary-dark);
    transition: width 0.3s ease;
}

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

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

.menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    gap: 5px;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--main-text);
    transition: all 0.3s ease;
}

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

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    position: relative;
    background: var(--main-background);
    overflow: visible;
    padding: 130px 0 var(--spacing-xl);
    border-bottom: 2px solid var(--main-text);
}

.hero-content {
    text-align: center;
    z-index: 10;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 0;
    margin-bottom: var(--spacing-sm);
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(3.5rem, 10vw, 7rem);
    font-weight: 900;
    line-height: 0.95;
    margin-bottom: var(--spacing-sm);
    color: var(--main-text);
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: clamp(1.2rem, 3vw, 2rem);
    color: var(--main-text);
    font-weight: 300;
    letter-spacing: 0.05em;
    text-transform: none;
    line-height: 1.4;
    margin-bottom: 0;
}

.hero-pizza {
    position: relative;
    width: 100%;
    overflow: visible;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-top: calc(var(--spacing-sm) * -0.5);
}

.pizza-image {
    width: clamp(900px, 110vw, 1500px);
    max-width: none;
    height: auto;
    object-fit: contain;
    object-position: center top;
    clip-path: none;
    transform: translateY(0);
}

.carousel-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 2.5rem 0;
    background: transparent;
    z-index: 5;
    opacity: 1 !important;
    margin-top: var(--spacing-sm);
}

.carousel-track {
    display: flex;
    gap: 3rem;
    animation: carousel-scroll 20s linear infinite;
    width: max-content;
    align-items: center;
    opacity: 1 !important;
    will-change: transform;
    margin: 0 auto;
}

.carousel-image {
    height: 55px;
    width: auto;
    object-fit: contain;
    opacity: 1 !important;
    flex-shrink: 0;
}

.carousel-image:hover {
    transform: scale(1.1);
    opacity: 1 !important;
}

@keyframes carousel-scroll {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-33.33%);
    }
}

.btn {
    padding: 1.2rem 3rem;
    border-radius: var(--radius-xl);
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    font-size: 0.9rem;
    display: inline-block;
}

.btn-primary {
    background: linear-gradient(135deg, var(--pizza-red), var(--kawaii-orange));
    color: white;
    box-shadow: 0 10px 30px rgba(255, 107, 107, 0.3);
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '🍕';
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2rem;
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 15px 40px rgba(255, 107, 107, 0.4);
}

.btn-secondary {
    background: var(--cream);
    color: var(--pizza-red);
    border: 3px solid var(--pizza-red);
    position: relative;
}

.btn-secondary::before {
    content: '📞';
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2rem;
}

.btn-secondary:hover {
    background: var(--pizza-red);
    color: white;
    transform: translateY(-3px) scale(1.05);
    border-color: var(--cheese-yellow);
}

.scroll-indicator {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
}

.scroll-indicator span {
    display: block;
    width: 20px;
    height: 30px;
    border: 1px solid var(--text-secondary);
    border-radius: 20px;
    position: relative;
}

.scroll-indicator span::before {
    content: '';
    position: absolute;
    top: 5px;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 8px;
    background: var(--text-secondary);
    border-radius: 2px;
    animation: scroll 2s infinite;
}

@keyframes scroll {
    0% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
    100% {
        opacity: 0;
        transform: translateX(-50%) translateY(15px);
    }
}

/* ========================================
   FEATURES SECTION
   ======================================== */

.features {
    padding: var(--spacing-xl) 0;
    background: white;
}

.features .container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-md);
}

.feature-card {
    text-align: center;
    padding: var(--spacing-md);
    border-radius: 20px;
    transition: transform 0.3s ease;
    background: linear-gradient(135deg, #fdfbfb 0%, #f7f7f7 100%);
}

.feature-card:hover {
    transform: translateY(-10px);
}

.feature-icon {
    font-size: 4rem;
    margin-bottom: var(--spacing-sm);
    display: inline-block;
    animation: bounce 2s infinite;
}

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

.feature-card h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--olive-dark);
    margin-bottom: var(--spacing-xs);
}

.feature-card p {
    color: #666;
    font-size: 0.95rem;
}

/* ========================================
   HISTORY SECTION
   ======================================== */

.history {
    padding: var(--spacing-xl) 0;
    background: var(--off-white);
    position: relative;
    overflow: hidden;
    border-bottom: 2px solid var(--main-text);
}

.history .section-title {
    position: relative;
}

.history .section-title::after {
    display: none;
}

.history-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: left;
    position: relative;
    z-index: 2;
}

.history-content p {
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--text-primary);
    margin-bottom: var(--spacing-md);
    font-weight: 400;
    padding: 0;
}

.history-content p:first-child::first-letter {
    display: none;
}

/* ========================================
   INSTAGRAM SECTION
   ======================================== */

.instagram {
    padding: var(--spacing-xl) 0;
    background: var(--secondary-background);
    position: relative;
    overflow: hidden;
    border-bottom: 2px solid var(--main-text);
}

.instagram .section-title::after {
    display: none;
}

.instagram-content {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.instagram-handle {
    font-size: 2rem;
    font-family: var(--font-heading);
    color: var(--primary-dark);
    margin-bottom: var(--spacing-md);
    font-weight: 700;
    position: relative;
    display: inline-block;
}

.instagram-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-lg);
    font-weight: 400;
    line-height: 1.6;
}

.btn-instagram {
    display: inline-block;
    padding: 1.2rem 3rem;
    background: var(--primary-dark);
    color: var(--white);
    text-decoration: none;
    font-weight: 600;
    letter-spacing: 0;
    transition: all 0.3s ease;
    border: 2px solid var(--primary-dark);
    border-radius: 50px;
    position: relative;
    overflow: hidden;
    box-shadow: none;
}

.btn-instagram::before {
    display: none;
}

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

/* ========================================
   LOCATION SECTION
   ======================================== */

.location {
    padding: var(--spacing-xl) 0;
    background: var(--off-white);
    position: relative;
    border-bottom: 2px solid var(--main-text);
}

.location .section-title::after {
    display: none;
}

.location-content {
    max-width: 1000px;
    margin: var(--spacing-lg) auto 0;
}

.location-info {
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

.location-info > div {
    margin-bottom: var(--spacing-lg);
    padding: 0;
}

.location-info h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--primary-dark);
    margin-bottom: var(--spacing-sm);
    font-weight: 700;
    letter-spacing: -0.01em;
}

.location-info p {
    font-size: 1.1rem;
    color: var(--text-primary);
    line-height: 1.8;
    font-weight: 400;
}

.map {
    width: 100%;
    border: none;
    border-radius: 0;
    overflow: hidden;
    box-shadow: none;
    transition: none;
    height: 500px;
}

.map:hover {
    transform: none;
    box-shadow: none;
}

.map iframe {
    display: block;
    height: 100%;
}

/* ========================================
   MENU SECTION
   ======================================== */

.menu {
    padding: var(--spacing-lg) 0;
    background: var(--secondary-background);
    border-bottom: 2px solid var(--main-text);
}

.menu-page {
    padding-top: calc(var(--spacing-lg) + 80px);
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    text-align: center;
    margin-bottom: var(--spacing-lg);
    color: var(--primary-dark);
    font-weight: 700;
    letter-spacing: -0.01em;
    line-height: 1.1;
}

.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: var(--spacing-lg);
    font-weight: 400;
    letter-spacing: 0;
    line-height: 1.6;
}

.menu-category-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: var(--spacing-md);
    color: var(--primary-dark);
    font-weight: 700;
    letter-spacing: -0.01em;
    text-align: left;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.menu-grid {
    max-width: 900px;
    margin: 0 auto;
}

.menu-item {
    padding: var(--spacing-sm) 0;
    border-bottom: 1px solid var(--border-light);
    transition: all 0.3s ease;
}

.menu-item:last-child {
    border-bottom: none;
}

.menu-item:hover {
    background: transparent;
}

.menu-card {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: var(--spacing-lg);
}

.menu-card h3 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: var(--primary-dark);
    margin-bottom: 0.3rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    flex: 1;
    text-align: left;
}

.ingredients {
    color: var(--text-secondary);
    font-size: 0.85rem;
    line-height: 1.5;
    font-weight: 400;
    font-style: normal;
    text-align: left;
}

.price {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-dark);
    font-family: var(--font-heading);
    white-space: nowrap;
    padding-top: 0.2rem;
}

/* ========================================
   THE CHEF SECTION
   ======================================== */

.chef {
    padding: var(--spacing-xl) 0;
    background: var(--secondary-background);
    color: var(--text-primary);
    position: relative;
    overflow: hidden;
    border-bottom: 2px solid var(--main-text);
}

.chef-page {
    padding-top: calc(var(--spacing-xl) + 80px);
}

.chef-shapes {
    display: none;
}

.chef-content {
    position: relative;
    z-index: 10;
    max-width: 1000px;
    margin: 0 auto;
}

.chef .section-title {
    color: var(--primary-dark);
    margin-bottom: var(--spacing-lg);
}

.chef-bio {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-xl);
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.chef-photo {
    display: none;
}

.chef-story h3 {
    font-family: var(--font-heading);
    font-size: 2rem;
    margin-bottom: var(--spacing-md);
    color: var(--primary-dark);
    font-weight: 700;
    text-align: center;
    letter-spacing: -0.01em;
}

.chef-story p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: var(--spacing-md);
    color: var(--text-primary);
    text-align: left;
    font-weight: 400;
}

.chef-specialties {
    background: var(--off-white);
    padding: var(--spacing-lg);
    border: none;
    border-radius: 0;
    margin-top: var(--spacing-lg);
    box-shadow: none;
}

.chef-specialties h4 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: var(--spacing-md);
    color: var(--primary-dark);
    font-weight: 700;
    text-align: center;
    letter-spacing: -0.01em;
}

.chef-specialties ul {
    list-style: none;
    padding: 0;
    max-width: 600px;
    margin: 0 auto;
}

.chef-specialties li {
    font-size: 1rem;
    margin-bottom: var(--spacing-sm);
    padding: 0;
    color: var(--text-primary);
    text-align: center;
    font-weight: 400;
}

.chef-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: var(--spacing-md);
    margin-top: var(--spacing-xl);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.stat {
    text-align: center;
    padding: var(--spacing-lg);
    border: 1px solid var(--border-light);
    border-radius: 0;
    background: var(--white);
    box-shadow: none;
    transition: all 0.3s ease;
}

.stat:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.stat-number {
    display: block;
    font-size: 3rem;
    font-weight: 700;
    font-family: var(--font-heading);
    color: var(--primary-dark);
    line-height: 1;
    letter-spacing: -0.02em;
}

.stat-label {
    display: block;
    margin-top: var(--spacing-md);
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 500;
}

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

.footer {
    background: var(--white);
    color: var(--main-text);
    padding: var(--spacing-xl) 0 var(--spacing-lg);
    border-top: 2px solid var(--main-text);
}

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

.footer-logo {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: var(--main-text);
    margin-bottom: var(--spacing-sm);
    letter-spacing: -0.01em;
}

.footer-tagline {
    font-style: normal;
    opacity: 0.7;
    margin-bottom: var(--spacing-md);
    font-size: 1rem;
    font-weight: 400;
}

.footer-info {
    opacity: 0.9;
    font-size: 0.95rem;
    margin-bottom: var(--spacing-sm);
    font-weight: 400;
}

.footer-payment {
    opacity: 0.7;
    font-size: 0.85rem;
    margin-bottom: var(--spacing-lg);
    font-weight: 400;
    font-style: normal;
}

.social-links {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
    margin-bottom: var(--spacing-lg);
}

.social-icon {
    width: 45px;
    height: 45px;
    border: 2px solid var(--main-text);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--main-text);
    font-weight: 500;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.social-icon:hover {
    border-color: var(--main-text);
    background: var(--main-text);
    color: var(--white);
    transform: translateY(-2px);
}

.copyright {
    opacity: 0.5;
    font-size: 0.85rem;
    font-weight: 400;
    letter-spacing: 0;
}

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

@media (max-width: 768px) {
    /* Layout */
    .container {
        padding: 0 var(--spacing-sm);
        width: 100%;
    }

    .navbar {
        padding: 1rem 0;
    }

    .navbar .container {
        padding: 0 var(--spacing-sm);
        gap: var(--spacing-sm);
    }

    .logo-text {
        font-size: 1.35rem;
        white-space: normal;
    }

    .nav-links {
        position: fixed;
        top: 60px;
        left: -100%;
        flex-direction: column;
        background: var(--main-background);
        width: 100%;
        padding: var(--spacing-md) var(--spacing-sm);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        transition: left 0.3s ease;
        gap: var(--spacing-sm);
    }

    .nav-links.active {
        left: 0;
    }

    .menu-toggle {
        display: flex;
        flex-shrink: 0;
    }

    /* Hero section responsive */
    .hero {
        min-height: auto;
        padding: 80px var(--spacing-sm) var(--spacing-md);
        align-items: center;
        text-align: center;
        overflow: hidden;
    }

    .hero-content {
        padding: 0;
        margin-bottom: var(--spacing-sm);
    }

    .hero-title {
        font-size: clamp(2.75rem, 9vw, 4rem);
        margin-bottom: var(--spacing-sm);
    }

    .hero-subtitle {
        font-size: 1rem;
        line-height: 1.5;
        margin-bottom: 0;
    }

    .hero-pizza {
        order: 2;
        width: 100%;
        height: auto;
        min-height: 380px;
        margin-top: calc(var(--spacing-sm) * -0.2);
        justify-content: center;
    }

    .pizza-image {
        width: min(960px, 220vw);
        max-width: none;
        object-position: center;
    }

    .carousel-container {
        position: static;
        width: 100%;
        padding: 1rem 0 0;
        text-align: center;
    }

    .carousel-track {
        gap: 1.5rem;
        justify-content: center;
        animation: carousel-scroll 18s linear infinite;
    }

    .carousel-image {
        height: 34px;
    }

    /* Typography & sections */
    .section-title {
        font-size: clamp(2.2rem, 7vw, 3.2rem);
    }

    .section-subtitle,
    .history-content p,
    .instagram-description,
    .location-info p {
        font-size: 1rem;
        line-height: 1.6;
    }

    .history,
    .instagram,
    .location,
    .menu,
    .chef,
    .footer {
        padding: var(--spacing-lg) 0;
    }

    .history-content,
    .instagram-content,
    .location-info,
    .chef-story {
        text-align: center;
    }

    .history-content p {
        margin-bottom: var(--spacing-sm);
    }

    .menu-category-title {
        text-align: center;
    }

    .menu-card {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--spacing-xs);
    }

    .price {
        margin-top: var(--spacing-xs);
    }

    .location-content {
        padding: 0 var(--spacing-sm);
    }

    .location-info {
        padding: 0;
    }

    .map {
        height: 360px;
        border-radius: var(--radius-md);
    }

    .chef-bio {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .chef-photo {
        margin: 0 auto var(--spacing-md);
    }

    .chef-specialties {
        padding: var(--spacing-md);
    }
}

@media (max-width: 480px) {
    /* Extra small screens */
    .container {
        padding: 0 1rem;
    }

    .navbar {
        padding: 0.75rem 0;
    }

    .navbar .container {
        padding: 0 1rem;
    }

    .logo-text {
        font-size: 1.1rem;
        white-space: normal;
    }

    .nav-links {
        top: 52px;
    }

    .hero {
        padding: 70px 1rem var(--spacing-md);
    }

    .hero-content {
        margin-bottom: var(--spacing-xs);
    }

    .hero-title {
        font-size: clamp(2.2rem, 9vw, 3rem);
        margin-bottom: 0.5rem;
        line-height: 1;
    }

    .hero-subtitle {
        font-size: 0.95rem;
        line-height: 1.4;
    }

    .hero-pizza {
        min-height: 360px;
        margin-top: -0.5rem;
    }

    .pizza-image {
        width: min(820px, 320vw);
        object-position: center;
    }

    .carousel-container {
        padding: 0.5rem 0 0;
    }

    .carousel-image {
        height: 30px;
    }

    .carousel-track {
        gap: 1rem;
        animation: carousel-scroll 16s linear infinite;
    }

    .section-title {
        font-size: clamp(1.8rem, 8.5vw, 2.4rem);
    }

    .section-subtitle,
    .history-content p,
    .instagram-description,
    .location-info p {
        font-size: 0.95rem;
    }

    .btn-instagram,
    .btn-primary,
    .btn-secondary {
        width: 100%;
        text-align: center;
    }

    .menu-card {
        gap: var(--spacing-xs);
    }

    .map {
        height: 280px;
    }

    .location-content {
        padding: 0;
    }

    .location-info {
        padding: 0;
        gap: var(--spacing-md);
    }

    .map iframe {
        border-radius: var(--radius-md);
    }
}
