/* ========================================
   JB's Pizza and Subs — Stylesheet
   Bold Editorial · Teal + Slate Grey
   ======================================== */

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

:root {
    --teal-50: #f0fdfa;
    --teal-100: #ccfbf1;
    --teal-200: #99f6e4;
    --teal-400: #2dd4bf;
    --teal-500: #14b8a6;
    --teal-600: #0d9488;
    --teal-700: #0f766e;
    --teal-800: #115e59;
    --teal-900: #134e4a;
    
    --slate-50: #f8fafc;
    --slate-100: #f1f5f9;
    --slate-200: #e2e8f0;
    --slate-300: #cbd5e1;
    --slate-400: #94a3b8;
    --slate-500: #64748b;
    --slate-600: #475569;
    --slate-700: #334155;
    --slate-800: #1e293b;
    --slate-900: #0f172a;
    --slate-950: #020617;
    
    --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
    
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    
    --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.08);
    --shadow-md: 0 4px 20px rgba(15, 23, 42, 0.1);
    --shadow-lg: 0 12px 40px rgba(15, 23, 42, 0.12);
    --shadow-xl: 0 24px 60px rgba(15, 23, 42, 0.15);
}

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

body {
    font-family: var(--font-sans);
    color: var(--slate-800);
    background-color: var(--slate-50);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

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

a {
    color: inherit;
    text-decoration: none;
}

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

/* ========================================
   Navigation
   ======================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(248, 250, 252, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--slate-200);
    transition: box-shadow 0.3s ease;
}

.navbar.scrolled {
    box-shadow: var(--shadow-md);
}

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

.logo {
    font-family: var(--font-serif);
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--slate-900);
    display: flex;
    align-items: center;
    gap: 10px;
    letter-spacing: -0.02em;
}

.logo-icon {
    color: var(--teal-600);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-links a {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--slate-600);
    transition: color 0.2s ease;
    position: relative;
}

.nav-links a:not(.btn):hover {
    color: var(--teal-700);
}

.nav-links a:not(.btn)::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--teal-600);
    transition: width 0.3s ease;
}

.nav-links a:not(.btn):hover::after {
    width: 100%;
}

/* Mobile Toggle */
.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.mobile-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--slate-700);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.mobile-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ========================================
   Buttons
   ======================================== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 0.9375rem;
    padding: 14px 28px;
    border-radius: var(--radius-xl);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn-primary {
    background: var(--teal-600);
    color: #ffffff;
    border-color: var(--teal-600);
}

.btn-primary:hover {
    background: var(--teal-700);
    border-color: var(--teal-700);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(13, 148, 136, 0.3);
}

.btn-outline {
    background: transparent;
    color: var(--slate-700);
    border-color: var(--slate-300);
}

.btn-outline:hover {
    border-color: var(--teal-600);
    color: var(--teal-700);
    transform: translateY(-2px);
}

.btn-sm {
    padding: 10px 20px;
    font-size: 0.875rem;
}

/* ========================================
   Section Helpers
   ======================================== */
.section-eyebrow {
    font-family: var(--font-sans);
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--teal-600);
    margin-bottom: 12px;
}

.section-title {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 4vw, 3.25rem);
    font-weight: 700;
    color: var(--slate-900);
    line-height: 1.15;
    letter-spacing: -0.025em;
    margin-bottom: 24px;
}

.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-divider {
    background: var(--slate-900);
    height: 4px;
}

/* ========================================
   Hero Section
   ======================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 72px;
    background: var(--slate-50);
    overflow: hidden;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
    width: 100%;
    padding-top: 40px;
    padding-bottom: 40px;
}

.hero-content {
    max-width: 540px;
}

.hero-eyebrow {
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--teal-600);
    margin-bottom: 20px;
}

.hero-headline {
    font-family: var(--font-serif);
    font-size: clamp(2.75rem, 5.5vw, 4.5rem);
    font-weight: 900;
    color: var(--slate-900);
    line-height: 1.05;
    letter-spacing: -0.03em;
    margin-bottom: 28px;
}

.hero-headline em {
    font-style: italic;
    color: var(--teal-600);
}

.hero-subheadline {
    font-size: 1.125rem;
    color: var(--slate-600);
    line-height: 1.7;
    margin-bottom: 40px;
    max-width: 440px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-image {
    position: relative;
}

.hero-img-wrapper {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    aspect-ratio: 600/750;
}

.hero-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-badge {
    position: absolute;
    bottom: -20px;
    left: -20px;
    background: var(--teal-600);
    color: #ffffff;
    font-family: var(--font-sans);
    font-size: 0.8125rem;
    font-weight: 600;
    padding: 14px 20px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: var(--shadow-lg);
}

/* ========================================
   Menu Section
   ======================================== */
.menu-section {
    padding: 100px 0;
    background: var(--slate-50);
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-bottom: 64px;
}

.menu-card {
    background: #ffffff;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.4s ease;
    border: 1px solid var(--slate-100);
}

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

.menu-card-img {
    overflow: hidden;
    aspect-ratio: 4/3;
}

.menu-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

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

.menu-card-body {
    padding: 28px;
}

.menu-card-body h3 {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--slate-900);
    margin-bottom: 12px;
    letter-spacing: -0.01em;
}

.menu-card-body p {
    font-size: 0.9375rem;
    color: var(--slate-500);
    line-height: 1.7;
}

.menu-cta {
    text-align: center;
    padding: 48px;
    background: var(--slate-900);
    border-radius: var(--radius-lg);
}

.menu-cta p {
    font-size: 1.0625rem;
    color: var(--slate-300);
    margin-bottom: 28px;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
}

.menu-cta .btn-primary {
    background: var(--teal-500);
    border-color: var(--teal-500);
}

.menu-cta .btn-primary:hover {
    background: var(--teal-400);
    border-color: var(--teal-400);
}

/* ========================================
   About Section
   ======================================== */
.about-section {
    padding: 100px 0;
    background: #ffffff;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-image {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 560/640;
}

.about-content .section-title {
    margin-bottom: 24px;
}

.about-content p {
    font-size: 1.0625rem;
    color: var(--slate-600);
    line-height: 1.8;
    margin-bottom: 20px;
}

.about-stats {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-top: 40px;
    padding-top: 40px;
    border-top: 1px solid var(--slate-200);
}

.stat {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stat-number {
    font-family: var(--font-serif);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--teal-600);
    line-height: 1;
}

.stat-label {
    font-size: 0.8125rem;
    color: var(--slate-500);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.stat-divider {
    width: 1px;
    height: 48px;
    background: var(--slate-200);
    flex-shrink: 0;
}

/* ========================================
   Location Section
   ======================================== */
.location-section {
    padding: 100px 0;
    background: var(--slate-50);
}

.location-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: start;
}

.location-info .section-title {
    margin-bottom: 40px;
}

.info-block {
    display: flex;
    flex-direction: column;
    gap: 28px;
    margin-bottom: 40px;
}

.info-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.info-item svg {
    color: var(--teal-600);
    flex-shrink: 0;
    margin-top: 2px;
}

.info-item h4 {
    font-family: var(--font-serif);
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--slate-900);
    margin-bottom: 4px;
}

.info-item p {
    font-size: 0.9375rem;
    color: var(--slate-600);
    line-height: 1.6;
}

.info-item a {
    color: var(--teal-600);
    font-weight: 600;
    transition: color 0.2s ease;
}

.info-item a:hover {
    color: var(--teal-700);
    text-decoration: underline;
}

.map-wrapper {
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border-radius: var(--radius-md);
}

.location-visual {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.location-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 560/700;
}

/* ========================================
   Footer
   ======================================== */
.footer {
    background: var(--slate-900);
    color: var(--slate-300);
    padding: 72px 0 32px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 56px;
}

.footer-logo {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 700;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.footer-logo svg {
    color: var(--teal-400);
}

.footer-brand p {
    font-size: 0.9375rem;
    line-height: 1.7;
    color: var(--slate-400);
    max-width: 300px;
}

.footer-contact h4,
.footer-links h4 {
    font-family: var(--font-serif);
    font-size: 1.0625rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 16px;
}

.footer-contact p {
    font-size: 0.9375rem;
    line-height: 1.8;
    color: var(--slate-400);
    margin-bottom: 4px;
}

.footer-contact a {
    color: var(--teal-400);
    transition: color 0.2s ease;
}

.footer-contact a:hover {
    color: var(--teal-300);
    text-decoration: underline;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    font-size: 0.9375rem;
    color: var(--slate-400);
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--teal-400);
}

.footer-bottom {
    padding-top: 32px;
    border-top: 1px solid var(--slate-800);
    text-align: center;
}

.footer-bottom p {
    font-size: 0.8125rem;
    color: var(--slate-500);
}

/* ========================================
   Scroll Reveal Animations
   (Progressive enhancement — content visible without JS)
   ======================================== */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(32px);
        transition: opacity 0.7s ease, transform 0.7s ease;
    }
    
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   Responsive
   ======================================== */
@media (max-width: 1024px) {
    .hero-container {
        gap: 48px;
    }
    
    .about-grid {
        gap: 48px;
    }
    
    .location-grid {
        gap: 48px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        background: rgba(248, 250, 252, 0.98);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        flex-direction: column;
        padding: 32px 24px;
        gap: 24px;
        border-bottom: 1px solid var(--slate-200);
        transform: translateY(-120%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        box-shadow: var(--shadow-lg);
    }
    
    .nav-links.open {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .mobile-toggle {
        display: flex;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .hero-content {
        max-width: 100%;
    }
    
    .hero-subheadline {
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .hero-image {
        max-width: 480px;
        margin: 0 auto;
    }
    
    .menu-grid {
        grid-template-columns: 1fr;
        max-width: 480px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .about-image {
        max-width: 480px;
        margin: 0 auto;
    }
    
    .about-stats {
        justify-content: center;
    }
    
    .location-grid {
        grid-template-columns: 1fr;
    }
    
    .location-visual {
        max-width: 480px;
        margin: 0 auto;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }
}

@media (max-width: 480px) {
    .hero-headline {
        font-size: 2.25rem;
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-actions .btn {
        width: 100%;
        justify-content: center;
    }
    
    .section-title {
        font-size: 1.875rem;
    }
    
    .about-stats {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
    
    .stat-divider {
        width: 48px;
        height: 1px;
    }
}
