/* =========================================
   Smash King - Premium Fast Food Website
   ========================================= */

/* --- Variables --- */
:root {
    /* Burger King Inspired Retro Palette */
    --color-cream: #F5EBDF;
    --color-dark: #502314;
    --color-red: #D62300;
    --color-red-hover: #b51d00;
    --color-yellow: #F2A900;
    --color-orange: #FF8732;
    --color-white: #ffffff;

    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Shadows & Transitions */
    --shadow-soft: 0 10px 30px rgba(80, 35, 20, 0.08);
    --shadow-hover: 0 15px 40px rgba(214, 35, 0, 0.15);
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    
    /* Spacing */
    --section-padding: 6rem 0;
}

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

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

body {
    font-family: var(--font-body);
    background-color: var(--color-cream);
    color: var(--color-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, .logo {
    font-family: var(--font-heading);
    font-weight: 800;
    line-height: 1.1;
}

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

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

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

.section {
    padding: var(--section-padding);
}

/* --- Utility Classes --- */
.text-accent { color: var(--color-red); }
.text-accent-yellow { color: var(--color-yellow); }
.bg-dark { background-color: var(--color-dark); }
.bg-red { background-color: var(--color-red); color: var(--color-white); }
.bg-yellow { background-color: var(--color-yellow); color: var(--color-dark); }
.text-light { color: var(--color-cream); }

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1rem;
    text-transform: uppercase;
    border-radius: 50px;
    cursor: pointer;
    border: 2px solid transparent;
    text-align: center;
}

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

.btn-primary:hover {
    background-color: var(--color-red-hover);
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

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

.btn-secondary:hover {
    background-color: var(--color-orange);
    color: var(--color-dark);
    transform: translateY(-3px);
}

.btn-outline-yellow {
    background-color: transparent;
    color: var(--color-yellow);
    border-color: var(--color-yellow);
}

.btn-outline-yellow:hover {
    background-color: var(--color-yellow);
    color: var(--color-dark);
}

.btn-large {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
}

.btn-full {
    width: 100%;
    margin-top: 1rem;
}

/* --- Header & Nav --- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: var(--transition);
}

.header.scrolled {
    background-color: rgba(245, 235, 223, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    box-shadow: var(--shadow-soft);
}

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

.logo {
    font-size: 2rem;
    color: var(--color-dark);
    letter-spacing: -1px;
}

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

.nav-list {
    display: flex;
    gap: 2rem;
}

.nav-link {
    font-weight: 600;
    font-size: 1.1rem;
    position: relative;
}

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

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

.hamburger {
    display: none;
    cursor: pointer;
    z-index: 1001;
}

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

/* --- Hero Section --- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 5rem;
    overflow: hidden;
}

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

.hero-title {
    font-size: clamp(3rem, 6vw, 5.5rem);
    margin-bottom: 1.5rem;
    text-transform: uppercase;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    font-weight: 500;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-image {
    position: relative;
}

.hero-image img {
    width: 100%;
    filter: drop-shadow(0 20px 30px rgba(0,0,0,0.15));
    animation: float 6s ease-in-out infinite;
}

.badge {
    position: absolute;
    top: 10%;
    right: 5%;
    background-color: var(--color-yellow);
    color: var(--color-dark);
    width: 100px;
    height: 100px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-family: var(--font-heading);
    font-weight: 900;
    transform: rotate(15deg);
    box-shadow: var(--shadow-soft);
    animation: pulse 2s infinite;
}

.badge span:first-child { font-size: 1.5rem; line-height: 1; }
.badge span:last-child { font-size: 1rem; }

/* --- Marquee --- */
.marquee-wrapper {
    background-color: var(--color-red);
    color: var(--color-white);
    padding: 1.5rem 0;
    overflow: hidden;
    position: relative;
    transform: rotate(-2deg);
    margin: 2rem -1rem;
    box-shadow: var(--shadow-soft);
}

.marquee {
    display: flex;
    width: max-content;
    animation: scrollText 20s linear infinite;
}

.marquee-text {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    text-transform: uppercase;
    padding: 0 2rem;
    white-space: nowrap;
}

/* --- Story Section --- */
.story-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.section-title {
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    margin-bottom: 1.5rem;
}

.section-desc {
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
}

.features-list li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.feature-icon {
    font-size: 2rem;
    background-color: var(--color-white);
    width: 60px;
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    box-shadow: var(--shadow-soft);
}

.features-list h3 {
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
}

.story-visual {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.visual-card {
    padding: 3rem 2rem;
    border-radius: 20px;
    text-align: center;
}

.visual-card h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

/* --- Menu Section --- */
.menu {
    border-radius: 40px 40px 0 0;
    margin-top: -20px;
    padding-top: 8rem;
}

.menu-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 4rem;
}

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

.menu-card {
    background-color: rgba(255,255,255,0.05);
    border-radius: 20px;
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid rgba(255,255,255,0.1);
}

.menu-card:hover {
    transform: translateY(-10px);
    background-color: rgba(255,255,255,0.1);
    border-color: var(--color-yellow);
}

.card-img-wrapper {
    height: 250px;
    overflow: hidden;
    background-color: var(--color-cream);
    display: flex;
    justify-content: center;
    align-items: center;
}

.card-img-wrapper img {
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.card-content {
    padding: 2rem;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.card-title {
    font-size: 1.3rem;
}

.card-price {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.25rem;
    color: var(--color-yellow);
}

.card-desc {
    font-size: 0.95rem;
    color: #ccc;
    margin-bottom: 1.5rem;
}

/* --- Contatti / Prenotazioni --- */
.booking-section {
    background-color: var(--color-white);
    padding: 6rem 0;
}

.booking-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

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

.detail-box h3 {
    color: var(--color-red);
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.phone-link {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 900;
    color: var(--color-dark);
    text-decoration: underline;
    text-decoration-color: var(--color-yellow);
    text-decoration-thickness: 4px;
    margin-top: 0.5rem;
}

.phone-link:hover {
    color: var(--color-red);
}

/* --- Footer --- */
.footer {
    background-color: #38180d; /* Darker brown */
    color: var(--color-cream);
    padding: 5rem 0 2rem;
}

.footer-container {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand p {
    margin: 1rem 0 2rem;
    opacity: 0.8;
}

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

.social-links a {
    width: 40px;
    height: 40px;
    background-color: rgba(255,255,255,0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    font-family: var(--font-heading);
    font-weight: 700;
}

.social-links a:hover {
    background-color: var(--color-yellow);
    color: var(--color-dark);
}

.footer-links h4, .footer-newsletter h4 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    color: var(--color-white);
}

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

.footer-links a {
    opacity: 0.8;
}

.footer-links a:hover {
    opacity: 1;
    color: var(--color-yellow);
}

.newsletter-form {
    display: flex;
    margin-top: 1rem;
}

.newsletter-form input {
    flex: 1;
    padding: 0.8rem 1rem;
    border: none;
    border-radius: 50px 0 0 50px;
    outline: none;
    font-family: var(--font-body);
}

.newsletter-form button {
    border-radius: 0 50px 50px 0;
    padding: 0.8rem 1.5rem;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    opacity: 0.6;
    font-size: 0.9rem;
}

/* --- Animations --- */
@keyframes float {
    0% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0); }
}

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

@keyframes scrollText {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Scroll Reveal Classes */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.fade-right { transform: translateX(50px); }
.fade-right.active { transform: translateX(0); }

.delay-1 { transition-delay: 0.2s; }
.delay-2 { transition-delay: 0.4s; }

/* --- Responsive --- */
@media (max-width: 992px) {
    .hero-container, .story-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .hero-image {
        grid-row: 1;
        max-width: 500px;
        margin: 0 auto;
    }
    
    .features-list li {
        text-align: left;
    }
    
    .footer-container {
        grid-template-columns: 1fr;
    }
    
    .booking-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .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-menu {
        position: fixed;
        left: -100%;
        top: 0;
        gap: 0;
        flex-direction: column;
        background-color: var(--color-cream);
        width: 100%;
        height: 100vh;
        text-align: center;
        transition: 0.3s;
        box-shadow: var(--shadow-soft);
        justify-content: center;
        padding: 5rem 0;
    }

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

    .nav-list {
        flex-direction: column;
        gap: 2rem;
    }
    
    .nav-cta {
        display: none;
    }
}
