/* =============================================
   BELLA SICILIA - Main Stylesheet
   Authentic Sicilian Pizza & Subs
   ============================================= */

/* CSS Custom Properties */
:root {
    /* Colors */
    --color-primary: #C41E3A;
    --color-primary-dark: #9B1830;
    --color-primary-light: #E8425A;
    --color-secondary: #2E5339;
    --color-secondary-light: #3D6B4A;
    --color-accent: #DAA520;
    --color-accent-light: #E8C547;
    
    --color-cream: #FDF5E6;
    --color-cream-dark: #F5E6D3;
    --color-espresso: #3C1414;
    --color-espresso-light: #5C3434;
    --color-white: #FFFFFF;
    --color-black: #1A1A1A;
    
    /* Typography */
    --font-display: 'Cormorant Garamond', Georgia, serif;
    --font-body: 'Josefin Sans', 'Segoe UI', sans-serif;
    
    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 2rem;
    --space-lg: 4rem;
    --space-xl: 6rem;
    --space-2xl: 8rem;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(60, 20, 20, 0.08);
    --shadow-md: 0 4px 20px rgba(60, 20, 20, 0.12);
    --shadow-lg: 0 8px 40px rgba(60, 20, 20, 0.16);
    
    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    --radius-full: 9999px;
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

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

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

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

ul {
    list-style: none;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.2;
}

h1 { font-size: clamp(2.5rem, 6vw, 5rem); }
h2 { font-size: clamp(2rem, 4vw, 3.5rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
h4 { font-size: clamp(1.125rem, 2vw, 1.5rem); }

p {
    font-size: 1rem;
    line-height: 1.7;
}

/* Layout */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border: 2px solid transparent;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition-normal);
}

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

.btn-primary:hover {
    background-color: var(--color-primary-dark);
    border-color: var(--color-primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background-color: transparent;
    color: var(--color-espresso);
    border-color: var(--color-espresso);
}

.btn-secondary:hover {
    background-color: var(--color-espresso);
    color: var(--color-cream);
    transform: translateY(-2px);
}

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

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

/* =============================================
   NAVIGATION
   ============================================= */
.main-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: rgba(253, 245, 230, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(60, 20, 20, 0.1);
    transition: all var(--transition-normal);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-icon {
    font-size: 1.5rem;
}

.logo-text {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-primary);
}

.logo-image {
    height: 70px;
    width: auto;
    display: block;
}

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

.nav-links a {
    font-size: 0.875rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-espresso);
    position: relative;
}

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

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

.nav-cta {
    background-color: var(--color-primary);
    color: var(--color-white) !important;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-sm);
}

.nav-cta::after {
    display: none !important;
}

.nav-cta:hover {
    background-color: var(--color-primary-dark);
}

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

.mobile-menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--color-espresso);
    transition: all var(--transition-fast);
}

/* =============================================
   HERO SECTION
   ============================================= */
.hero {
    position: relative;
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    padding: calc(80px + var(--space-lg)) var(--space-md) var(--space-lg);
    overflow: hidden;
}

.hero-bg-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(196, 30, 58, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(46, 83, 57, 0.05) 0%, transparent 50%),
        url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%233C1414' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    z-index: -1;
}

.hero-content {
    padding-right: var(--space-lg);
    animation: fadeInUp 0.8s ease forwards;
}

.hero-tagline {
    display: inline-block;
    font-size: 0.875rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--color-secondary);
    margin-bottom: var(--space-md);
    position: relative;
    padding-left: 3rem;
}

.hero-tagline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 2rem;
    height: 1px;
    background-color: var(--color-secondary);
}

.hero-title {
    margin-bottom: var(--space-md);
}

.title-line {
    display: block;
    color: var(--color-espresso);
}

.title-accent {
    color: var(--color-primary);
    font-style: italic;
}

.hero-description {
    font-size: 1.125rem;
    color: var(--color-espresso-light);
    max-width: 480px;
    margin-bottom: var(--space-lg);
}

.hero-actions {
    display: flex;
    gap: var(--space-sm);
    flex-wrap: wrap;
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeInRight 0.8s ease 0.2s forwards;
    opacity: 0;
}

.image-frame {
    position: relative;
    width: 400px;
    height: 400px;
}

.image-frame::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    right: 20px;
    bottom: 20px;
    border: 3px solid var(--color-primary);
    border-radius: var(--radius-lg);
    z-index: -1;
}

.pizza-illustration {
    width: 100%;
    height: 100%;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.pizza-svg {
    width: 80%;
    height: 80%;
    animation: float 6s ease-in-out infinite;
}

.pizza-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: var(--radius-lg);
    animation: float 6s ease-in-out infinite;
}

.scroll-indicator {
    position: absolute;
    bottom: var(--space-md);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-espresso-light);
    animation: fadeIn 1s ease 1s forwards;
    opacity: 0;
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, var(--color-primary), transparent);
    animation: scrollPulse 2s ease infinite;
}

/* =============================================
   FEATURES SECTION
   ============================================= */
.features {
    padding: var(--space-xl) 0;
    background-color: var(--color-white);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
}

.feature-card {
    text-align: center;
    padding: var(--space-lg) var(--space-md);
    background-color: var(--color-cream);
    border-radius: var(--radius-lg);
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto var(--space-md);
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-primary);
    border-radius: 50%;
    color: var(--color-white);
}

.feature-icon svg {
    width: 28px;
    height: 28px;
}

.feature-card h3 {
    margin-bottom: var(--space-sm);
    color: var(--color-espresso);
}

.feature-card p {
    color: var(--color-espresso-light);
    font-size: 0.95rem;
}

/* =============================================
   MENU PREVIEW SECTION
   ============================================= */
.menu-preview {
    padding: var(--space-xl) 0;
    background-color: var(--color-cream);
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-lg);
}

.section-label {
    display: inline-block;
    font-size: 0.875rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--color-primary);
    margin-bottom: var(--space-xs);
}

.section-title {
    color: var(--color-espresso);
}

.menu-categories {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
}

.menu-category {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    background-color: var(--color-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.menu-category:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.category-image {
    min-height: 180px;
    background-size: cover;
    background-position: center;
}

.pizza-bg {
    background: linear-gradient(135deg, #DAA520 0%, #C41E3A 100%);
    position: relative;
}

.pizza-bg::after {
    content: '🍕';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 4rem;
}

.subs-bg {
    background: linear-gradient(135deg, #8B4513 0%, #D2691E 100%);
    position: relative;
}

.subs-bg::after {
    content: '🥖';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 4rem;
}

.pasta-bg {
    background: linear-gradient(135deg, #CD853F 0%, #DEB887 100%);
    position: relative;
}

.pasta-bg::after {
    content: '🍝';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 4rem;
}

.stromboli-bg {
    background: linear-gradient(135deg, #B8860B 0%, #F4A460 100%);
    position: relative;
}

.stromboli-bg::after {
    content: '🥟';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 4rem;
}

.category-content {
    padding: var(--space-md);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.category-content h3 {
    color: var(--color-espresso);
    margin-bottom: var(--space-xs);
}

.category-content p {
    color: var(--color-espresso-light);
    font-size: 0.9rem;
    margin-bottom: var(--space-sm);
}

.price-range {
    font-family: var(--font-display);
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--color-primary);
}

.menu-cta {
    text-align: center;
    margin-top: var(--space-lg);
}

/* =============================================
   QUOTE SECTION
   ============================================= */
.quote-section {
    position: relative;
    padding: var(--space-2xl) 0;
    background-color: var(--color-secondary);
    overflow: hidden;
}

.quote-bg-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M50 50c0-5.523 4.477-10 10-10s10 4.477 10 10-4.477 10-10 10c0 5.523-4.477 10-10 10s-10-4.477-10-10 4.477-10 10-10zM10 10c0-5.523 4.477-10 10-10s10 4.477 10 10-4.477 10-10 10c0 5.523-4.477 10-10 10S0 25.523 0 20s4.477-10 10-10z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

.main-quote {
    text-align: center;
    position: relative;
    z-index: 1;
}

.main-quote p {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 4vw, 3rem);
    font-style: italic;
    color: var(--color-white);
    margin-bottom: var(--space-md);
}

.main-quote footer {
    font-size: 1rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-accent);
}

/* =============================================
   LOCATION SECTION
   ============================================= */
.location-section {
    padding: var(--space-xl) 0;
    background-color: var(--color-white);
}

.location-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
    align-items: center;
}

.location-info .section-label {
    text-align: left;
}

.location-info .section-title {
    text-align: left;
    margin-bottom: var(--space-lg);
}

.info-block {
    margin-bottom: var(--space-md);
}

.info-block h4 {
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-primary);
    margin-bottom: var(--space-xs);
}

.info-block p {
    color: var(--color-espresso-light);
}

.location-visual {
    display: flex;
    justify-content: center;
}

.decorative-frame {
    width: 320px;
    height: 320px;
    background: linear-gradient(135deg, var(--color-cream-dark), var(--color-cream));
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: var(--shadow-lg);
}

.decorative-frame::before {
    content: '';
    position: absolute;
    top: -15px;
    left: -15px;
    right: 15px;
    bottom: 15px;
    border: 2px solid var(--color-accent);
    border-radius: var(--radius-lg);
    z-index: -1;
}

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

.frame-icon {
    font-size: 4rem;
    display: block;
    margin-bottom: var(--space-sm);
}

.frame-content p {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-espresso);
}

.frame-subtitle {
    font-family: var(--font-body) !important;
    font-size: 0.875rem !important;
    font-weight: 400 !important;
    color: var(--color-secondary) !important;
    margin-top: var(--space-xs);
}

/* =============================================
   FOOTER
   ============================================= */
.main-footer {
    position: relative;
    background-color: var(--color-espresso);
    color: var(--color-cream);
    padding: var(--space-xl) 0 var(--space-md);
}

.footer-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, 
        var(--color-secondary) 0%, 
        var(--color-secondary) 33%, 
        var(--color-white) 33%, 
        var(--color-white) 66%, 
        var(--color-primary) 66%, 
        var(--color-primary) 100%
    );
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--space-lg);
    margin-bottom: var(--space-lg);
}

.footer-brand {
    padding-right: var(--space-lg);
}

.footer-logo {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-primary);
    display: block;
    margin-bottom: var(--space-xs);
}

.footer-logo-image {
    height: 120px;
    width: auto;
    display: block;
    margin-bottom: var(--space-xs);
}

.footer-brand p {
    color: var(--color-cream);
    opacity: 0.8;
}

.footer-tagline {
    font-style: italic;
    color: var(--color-accent) !important;
    opacity: 1 !important;
    margin-top: var(--space-sm);
}

.footer-nav h4,
.footer-hours h4 {
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-accent);
    margin-bottom: var(--space-md);
}

.footer-nav ul {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.footer-nav a {
    color: var(--color-cream);
    opacity: 0.8;
    transition: opacity var(--transition-fast);
}

.footer-nav a:hover {
    opacity: 1;
    color: var(--color-primary-light);
}

.footer-hours p {
    opacity: 0.8;
    margin-bottom: var(--space-xs);
}

.footer-bottom {
    padding-top: var(--space-md);
    border-top: 1px solid rgba(253, 245, 230, 0.1);
    text-align: center;
}

.footer-bottom p {
    font-size: 0.875rem;
    opacity: 0.6;
}

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

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

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

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

@keyframes scrollPulse {
    0%, 100% { 
        opacity: 1;
        transform: scaleY(1);
    }
    50% { 
        opacity: 0.5;
        transform: scaleY(0.8);
    }
}

/* =============================================
   RESPONSIVE DESIGN
   ============================================= */
@media (max-width: 1024px) {
    .hero {
        grid-template-columns: 1fr;
        text-align: center;
        padding-top: calc(80px + var(--space-lg));
    }
    
    .hero-content {
        padding-right: 0;
        order: 1;
    }
    
    .hero-tagline {
        padding-left: 0;
    }
    
    .hero-tagline::before {
        display: none;
    }
    
    .hero-description {
        margin: 0 auto var(--space-lg);
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .hero-image {
        order: 0;
        margin-bottom: var(--space-lg);
    }
    
    .image-frame {
        width: 280px;
        height: 280px;
    }
    
    .scroll-indicator {
        display: none;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }
    
    .menu-categories {
        grid-template-columns: 1fr;
    }
    
    .location-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .location-info .section-label,
    .location-info .section-title {
        text-align: center;
    }
    
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-md);
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        flex-direction: column;
        background-color: var(--color-cream);
        padding: 100px var(--space-md) var(--space-md);
        box-shadow: var(--shadow-lg);
        transition: right var(--transition-normal);
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .menu-category {
        grid-template-columns: 1fr;
    }
    
    .category-image {
        min-height: 120px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-brand {
        padding-right: 0;
    }
}

@media (max-width: 480px) {
    :root {
        --space-lg: 3rem;
        --space-xl: 4rem;
        --space-2xl: 5rem;
    }
    
    .hero-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .btn {
        width: 100%;
    }
    
    .image-frame {
        width: 220px;
        height: 220px;
    }
}
