/* ============================================
   TOP OF THE WORLD PIZZERIA - MODERN DESIGN
   ============================================ */

/* GOOGLE FONTS */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;700;900&family=Inter:wght@400;500;600;700&display=swap');

/* Root Variables for Consistency */
:root {
    --pizza-red: #D32F2F;
    --pizza-red-dark: #B71C1C;
    --pizza-orange: #FF6F00;
    --pizza-cream: #FFF8E1;
    --pizza-dark: #1a1a1a;
    --pizza-white: #ffffff;
    --pizza-green: #2E7D32;
    --pizza-gold: #FFB300;
}

/* Hero Banner - Full Width Breakout */
.totw-hero {
    position: relative;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    min-height: 650px;
    height: 85vh;
    max-height: 900px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: url('https://blackboxpizzaco.com/wp-content/uploads/2025/02/pizza_hero_banner.png');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    padding: 0 !important;
    overflow: hidden;
}

/* Enhanced Overlay with Gradient */
.totw-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg, 
        rgba(26, 26, 26, 0.75) 0%, 
        rgba(183, 28, 28, 0.55) 50%,
        rgba(255, 111, 0, 0.3) 100%
    );
    z-index: 1;
}

/* Content Container with Animation */
.totw-hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: 80px 40px;
    text-align: center;
    animation: fadeInUp 1.2s ease-out;
}

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

/* Eyebrow Text */
.totw-hero-eyebrow {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--pizza-gold);
    margin: 0 0 24px 0;
    opacity: 0;
    animation: fadeIn 1s ease-out 0.3s forwards;
}

@keyframes fadeIn {
    to { opacity: 1; }
}

/* Enhanced Hero Title */
.totw-hero-title {
    font-family: 'Playfair Display', serif;
    font-size: 72px;
    font-weight: 700;
    line-height: 1.15;
    color: var(--pizza-white);
    margin: 0 0 20px 0;
    letter-spacing: -1px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.8);
    opacity: 0;
    animation: fadeIn 1s ease-out 0.5s forwards;
}

/* Accent Words */
.totw-hero-title .accent {
    color: var(--pizza-gold);
    font-style: italic;
    position: relative;
    display: inline-block;
}

/* Decorative Separator */
.totw-hero-separator {
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--pizza-gold), transparent);
    margin: 0 auto 28px;
    position: relative;
    opacity: 0;
    animation: fadeIn 1s ease-out 0.7s forwards;
}

.totw-hero-separator::before {
    content: '🍕';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 20px;
    background: rgba(26, 26, 26, 0.9);
    padding: 0 12px;
}

/* Enhanced Hero Subtitle */
.totw-hero-subtitle {
    font-family: 'Inter', sans-serif;
    font-size: 24px;
    font-weight: 400;
    line-height: 1.7;
    color: var(--pizza-cream);
    margin: 0 0 48px 0;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0;
    animation: fadeIn 1s ease-out 0.9s forwards;
}

/* Emphasis in Subtitle */
.totw-hero-subtitle strong {
    color: var(--pizza-gold);
    font-weight: 600;
}

/* CTA Button Container */
.totw-hero-cta-group {
    display: flex;
    gap: 20px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 48px;
    opacity: 0;
    animation: fadeIn 1s ease-out 1.1s forwards;
}

/* Primary CTA Button */
.totw-hero-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 20px 48px;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--pizza-white);
    background: linear-gradient(135deg, var(--pizza-red) 0%, var(--pizza-red-dark) 100%);
    border: none;
    border-radius: 8px;
    box-shadow: 0 6px 25px rgba(211, 47, 47, 0.5);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

/* Button Shine Effect */
.totw-hero-btn::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.5s;
}

.totw-hero-btn:hover::before {
    left: 100%;
}

.totw-hero-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 35px rgba(211, 47, 47, 0.7);
    background: linear-gradient(135deg, #E53935 0%, #C62828 100%);
    color: var(--pizza-white);
}

.totw-hero-btn:active {
    transform: translateY(-1px);
    box-shadow: 0 5px 20px rgba(211, 47, 47, 0.6);
}

/* Secondary CTA Button (Ghost Style) */
.totw-hero-btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 20px 40px;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--pizza-white);
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.6);
    border-radius: 8px;
    transition: all 0.35s ease;
}

.totw-hero-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--pizza-gold);
    color: var(--pizza-gold);
    transform: translateY(-2px);
}

/* Scroll Indicator */
.totw-hero-scroll {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    opacity: 0;
    animation: fadeIn 1s ease-out 1.5s forwards, bounce 2s ease-in-out 2.5s infinite;
}

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

.totw-hero-scroll-text {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.8);
}

.totw-hero-scroll-icon {
    width: 24px;
    height: 36px;
    border: 2px solid rgba(255, 255, 255, 0.6);
    border-radius: 12px;
    position: relative;
}

.totw-hero-scroll-icon::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background: var(--pizza-gold);
    border-radius: 2px;
    animation: scrollDown 2s ease-in-out infinite;
}

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

/* ============================================
   SECTIONS STYLING
   ============================================ */

.totw-section {
    padding: 100px 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.totw-section-title {
    font-family: 'Playfair Display', serif;
    font-size: 48px;
    font-weight: 700;
    color: var(--pizza-dark);
    text-align: center;
    margin-bottom: 20px;
    position: relative;
}

.totw-section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--pizza-red);
    margin: 20px auto 0;
    border-radius: 2px;
}

.totw-section-desc {
    font-family: 'Inter', sans-serif;
    font-size: 18px;
    color: #666;
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
    line-height: 1.7;
}

/* Menu Preview Section */
.totw-menu-preview {
    background: var(--pizza-cream);
}

.totw-menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.totw-menu-item {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.totw-menu-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.totw-menu-item-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.totw-menu-item-content {
    padding: 24px;
}

.totw-menu-item-title {
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    font-weight: 700;
    color: var(--pizza-dark);
    margin-bottom: 12px;
}

.totw-menu-item-desc {
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 16px;
}

.totw-menu-item-price {
    font-family: 'Inter', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: var(--pizza-red);
}

/* Story Section */
.totw-story-section {
    background: white;
}

.totw-story-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    margin-top: 60px;
}

.totw-story-image {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.12);
}

.totw-story-text h3 {
    font-family: 'Playfair Display', serif;
    font-size: 36px;
    font-weight: 700;
    color: var(--pizza-dark);
    margin-bottom: 24px;
}

.totw-story-text p {
    font-family: 'Inter', sans-serif;
    font-size: 17px;
    color: #555;
    line-height: 1.8;
    margin-bottom: 20px;
}

.totw-text-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: var(--pizza-red);
    text-decoration: none;
    margin-top: 20px;
    transition: gap 0.3s ease;
}

.totw-text-link:hover {
    gap: 14px;
}

/* Stats Section */
.totw-stats-section {
    background: var(--pizza-dark);
    color: white;
    text-align: center;
}

.totw-stats-section .totw-section-title {
    color: white;
}

.totw-stats-section .totw-section-title::after {
    background: var(--pizza-gold);
}

.totw-stats-section .totw-section-desc {
    color: rgba(255, 255, 255, 0.8);
}

.totw-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 60px;
    margin-top: 60px;
}

.totw-stat {
    text-align: center;
}

.totw-stat-num {
    font-family: 'Playfair Display', serif;
    font-size: 56px;
    font-weight: 700;
    color: var(--pizza-gold);
    display: block;
    margin-bottom: 12px;
}

.totw-stat-label {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Contact Section */
.totw-contact-section {
    background: var(--pizza-cream);
}

.totw-contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    margin-top: 60px;
}

.totw-contact-info h3,
.totw-contact-hours h3 {
    font-family: 'Playfair Display', serif;
    font-size: 28px;
    font-weight: 700;
    color: var(--pizza-dark);
    margin-bottom: 20px;
}

.totw-contact-info p,
.totw-contact-hours p {
    font-family: 'Inter', sans-serif;
    font-size: 17px;
    color: #555;
    line-height: 1.8;
    margin-bottom: 12px;
}

.totw-contact-info a,
.totw-contact-hours a {
    color: var(--pizza-red);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.totw-contact-info a:hover,
.totw-contact-hours a:hover {
    color: var(--pizza-red-dark);
}

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

@media screen and (max-width: 1024px) {
    .totw-hero-title {
        font-size: 60px;
    }
    
    .totw-hero-subtitle {
        font-size: 20px;
    }
    
    .totw-story-grid,
    .totw-contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media screen and (max-width: 768px) {
    .totw-hero {
        min-height: 550px;
        height: 75vh;
        background-attachment: scroll;
    }
    
    .totw-hero-content {
        padding: 60px 30px;
    }
    
    .totw-hero-eyebrow {
        font-size: 12px;
        letter-spacing: 2px;
        margin-bottom: 18px;
    }
    
    .totw-hero-title {
        font-size: 44px;
        margin-bottom: 16px;
        letter-spacing: -0.5px;
    }
    
    .totw-hero-separator {
        width: 60px;
        margin-bottom: 20px;
    }
    
    .totw-hero-subtitle {
        font-size: 18px;
        margin-bottom: 36px;
        line-height: 1.6;
    }
    
    .totw-hero-cta-group {
        flex-direction: column;
        gap: 16px;
        margin-top: 36px;
    }
    
    .totw-hero-btn,
    .totw-hero-btn-secondary {
        width: 100%;
        max-width: 320px;
        padding: 16px 36px;
        font-size: 14px;
        justify-content: center;
    }
    
    .totw-hero-scroll {
        bottom: 30px;
    }
    
    .totw-section {
        padding: 60px 5%;
    }
    
    .totw-section-title {
        font-size: 36px;
    }
    
    .totw-section-desc {
        font-size: 16px;
    }
    
    .totw-menu-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media screen and (max-width: 480px) {
    .totw-hero-title {
        font-size: 36px;
    }
    
    .totw-hero-subtitle {
        font-size: 16px;
    }
    
    .totw-hero-btn,
    .totw-hero-btn-secondary {
        padding: 14px 28px;
        font-size: 13px;
        letter-spacing: 1.5px;
    }
    
    .totw-section-title {
        font-size: 30px;
    }
    
    .totw-stat-num {
        font-size: 42px;
    }
}

/* Accessibility Improvements */
@media (prefers-reduced-motion: reduce) {
    .totw-hero-content,
    .totw-hero-eyebrow,
    .totw-hero-title,
    .totw-hero-separator,
    .totw-hero-subtitle,
    .totw-hero-cta-group,
    .totw-hero-scroll {
        animation: none;
        opacity: 1;
    }
    
    .totw-hero-btn::before {
        display: none;
    }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .totw-hero-overlay {
        background: rgba(0, 0, 0, 0.85);
    }
    
    .totw-hero-title,
    .totw-hero-subtitle {
        text-shadow: none;
    }
}