:root {
    --primary-red: #BE1E2D;
    --primary-dark: #8B1621;
    --cream: #FCFBF9;
    --white: #FFFFFF;
    --black: #1A1A1A;
    --gray-light: #F4F4F4;
    --gray-medium: #999999;
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    --shadow: 0 10px 30px rgba(0,0,0,0.08);
}

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

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--cream);
    color: var(--black);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: 'Montserrat', sans-serif;
    text-transform: uppercase;
    font-weight: 900;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.text-primary { color: var(--primary-red); }
.text-gradient {
    background: linear-gradient(90deg, var(--primary-red), #FF4D4D);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Header */
#main-header {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1200px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(15px);
    padding: 15px 30px;
    border-radius: 50px;
    z-index: 1000;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    transition: var(--transition);
}

#main-header.scrolled {
    top: 0;
    width: 100%;
    border-radius: 0;
    padding: 10px 50px;
    background: rgba(255, 255, 255, 0.95);
}

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

.logo img {
    height: 40px;
    border-radius: 5px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-links a {
    text-decoration: none;
    color: var(--black);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    transition: var(--transition);
    position: relative;
}

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

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

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.btn-order {
    background: var(--primary-red);
    color: white;
    border: none;
    padding: 10px 25px;
    border-radius: 25px;
    font-weight: 800;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 5px 15px rgba(190, 30, 45, 0.3);
}

.btn-order:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(190, 30, 45, 0.4);
    background: var(--primary-dark);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    padding-top: 150px;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.hero-content {
    display: flex;
    max-width: 1200px;
    margin: 0 auto;
    align-items: center;
    padding: 0 20px;
    gap: 50px;
}

.hero-text {
    flex: 1;
}

.badge {
    background: #FFD700;
    color: var(--black);
    padding: 5px 15px;
    border-radius: 5px;
    font-weight: 900;
    font-size: 0.7rem;
    letter-spacing: 1px;
    display: inline-block;
    margin-bottom: 20px;
}

.hero-text h1 {
    font-size: 5rem;
    line-height: 0.9;
    margin-bottom: 20px;
}

.hero-text p {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 30px;
    max-width: 500px;
}

.hero-btns {
    display: flex;
    gap: 15px;
}

.btn {
    padding: 15px 35px;
    border-radius: 50px;
    font-weight: 800;
    cursor: pointer;
    transition: var(--transition);
    font-family: 'Outfit', sans-serif;
    display: inline-block;
    text-decoration: none;
}

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

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

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

.btn-outline:hover {
    border-color: var(--primary-red);
    color: var(--primary-red);
    transform: translateY(-3px);
}

.hero-visual {
    flex: 1;
    position: relative;
    height: 700px; /* Slightly taller for more breathing room */
    display: flex;
    align-items: flex-end; /* Push to bottom of container */
    justify-content: center;
    padding-top: 100px; /* Space from navbar */
}

.mascot-hero-fade {
    width: 100%;
    max-width: 550px;
    height: auto;
    object-fit: contain;
    /* Gradient mask to fade out the bottom */
    -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 65%, rgba(0,0,0,0) 95%);
    mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 65%, rgba(0,0,0,0) 95%);
    animation: bounce 4s ease-in-out infinite;
    transform: translateY(20px); /* Manual nudge down */
}

.floating-pizza {
    width: 100%;
    animation: float 6s ease-in-out infinite;
    z-index: 2;
    position: relative;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}

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

/* Service Selectors */
.service-selectors {
    display: flex;
    gap: 20px;
    margin-top: 50px;
    z-index: 10;
}

.service-card {
    background: white;
    padding: 20px 40px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow);
    border: 2px solid transparent;
}

.service-card:hover, .service-card.active {
    border-color: var(--primary-red);
    transform: translateY(-5px);
}

.service-icon {
    width: 40px;
    height: 40px;
    background: var(--gray-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-red);
    font-size: 1.2rem;
}

.service-card.active .service-icon {
    background: var(--primary-red);
    color: white;
}

/* Section Common */
.section {
    padding: 100px 0;
    position: relative;
}

.section-bg-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-5deg);
    font-size: 15rem;
    font-weight: 900;
    color: rgba(190, 30, 45, 0.03);
    pointer-events: none;
    white-space: nowrap;
    z-index: 0;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 2.5rem;
}

.view-all {
    color: var(--primary-red);
    text-decoration: none;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Product Cards */
.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    position: relative;
    z-index: 1;
}

.product-card {
    background: white;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.1);
}

.product-img {
    height: 250px;
    background: var(--gray-light);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.product-img img {
    width: 80%;
    transition: var(--transition);
}

.product-card:hover .product-img img {
    transform: scale(1.1) rotate(5deg);
}

.product-info {
    padding: 25px;
}

.product-info h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.product-info p {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 20px;
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.price {
    font-weight: 900;
    font-size: 1.2rem;
}

.btn-add {
    background: white;
    border: 2px solid var(--primary-red);
    color: var(--primary-red);
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: 800;
    cursor: pointer;
    transition: var(--transition);
}

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

/* Franchise Section */
.franchise-section {
    background: var(--black);
    color: white;
    padding: 0;
    overflow: hidden;
}

.franchise-container {
    display: flex;
}

.franchise-image {
    flex: 1;
    position: relative;
    min-height: 600px;
}

.franchise-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.franchise-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to right, transparent, var(--black));
}

.franchise-content {
    flex: 1;
    padding: 100px 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.franchise-content h2 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.franchise-content p {
    color: #ccc;
    margin-bottom: 40px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 40px;
}

.stat-card {
    background: rgba(255,255,255,0.1);
    padding: 15px 10px;
    border-radius: 12px;
    text-align: center;
    border: 1px solid rgba(255,255,255,0.05);
}

.stat-card h4 {
    font-size: 1.8rem;
    color: #ffffff;
    margin-bottom: 2px;
}

.stat-card p {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.8);
    margin: 0;
}

/* App Section */
.app-section {
    background: var(--cream);
}

.app-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    background: var(--white);
    border-radius: 50px;
    padding: 50px 100px;
    box-shadow: var(--shadow);
}

.app-text {
    flex: 1.2;
}

.app-text h2 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.app-btns {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.app-btns img {
    height: 40px;
    cursor: pointer;
}

.app-mockup {
    flex: 1;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: flex-end;
}

.app-mascot-large {
    width: 100%;
    max-width: 500px;
    height: auto;
    object-fit: contain;
    transform: translateY(30px);
}

/* Footer */
footer {
    background: var(--black);
    color: white;
    padding: 100px 50px 50px;
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 50px;
    margin-bottom: 50px;
    border-bottom: 1px solid #333;
    padding-bottom: 50px;
}

.footer-logo {
    height: 50px;
    margin-bottom: 20px;
    border-radius: 5px;
}

.brand-col p {
    color: #888;
    margin-bottom: 30px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: #333;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--primary-red);
    transform: translateY(-5px);
}

.footer-col h4 {
    margin-bottom: 25px;
    font-size: 1.1rem;
}

.footer-col ul {
    list-style: none;
}

.footer-col li {
    margin-bottom: 12px;
}

.footer-col a {
    color: #888;
    text-decoration: none;
    transition: var(--transition);
}

.footer-col a:hover {
    color: white;
    padding-left: 5px;
}

.footer-bottom {
    text-align: center;
    color: #555;
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 1024px) {
    .hero-text h1 { font-size: 3.5rem; }
    .product-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-top { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .hero-content { flex-direction: column; text-align: center; }
    .hero-btns { justify-content: center; }
    .service-selectors { flex-wrap: wrap; justify-content: center; }
    .franchise-container { flex-direction: column; }
    .app-container { flex-direction: column; padding: 50px 20px; }
}
