/* ========================================================
   Teddy's Pizza Philly - Modern Premium Pizzeria Stylesheet
   Theme: Elegant Deep Teal Gradient (#007979), Glassmorphism, 
          Rich Burgundy Accents (#880D1E) & High Readability
   Target Website: https://teddyspizzaphilly.com
   ======================================================== */

:root {
    --bg-dark: #002828;
    --bg-gradient: linear-gradient(180deg, #002222 0%, #003d3d 40%, #004d4d 70%, #002b2b 100%);
    --bg-card: rgba(0, 60, 60, 0.85);
    --bg-card-hover: rgba(0, 80, 80, 0.92);
    --bg-glass: rgba(0, 45, 45, 0.9);
    --bg-nav: rgba(0, 32, 32, 0.95);
    
    --primary-red: #880D1E;
    --primary-red-hover: #6b0917;
    --primary-red-glow: rgba(136, 13, 30, 0.45);
    
    --accent-teal: #007979;
    --accent-teal-bright: #00a8a8;
    --accent-gold: #fbbf24;
    --accent-amber: #f59e0b;
    --accent-gold-glow: rgba(251, 191, 36, 0.3);
    
    --text-main: #ffffff;
    --text-muted: #e2e8f0;
    --text-dim: #94a3b8;
    
    --border-color: rgba(0, 168, 168, 0.22);
    --border-gold: rgba(251, 191, 36, 0.4);
    --border-red: rgba(136, 13, 30, 0.45);
    
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
    
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    
    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.55);
    --shadow-glow: 0 15px 35px rgba(0, 121, 121, 0.3);
    --transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

body {
    background: var(--bg-gradient);
    background-attachment: fixed;
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
}

.fw-extrabold {
    font-weight: 800;
}

/* Global High-Contrast Soft Off-White Text Overrides for all pages */
.text-muted,
p.text-muted,
span.text-muted,
small.text-muted,
div.text-muted,
label.text-muted,
.text-light-subtle {
    color: #cbd5e1 !important;
    opacity: 0.95 !important;
}

/* Custom Red Overrides for #880D1E */
.btn-danger {
    background-color: #880D1E !important;
    border-color: #880D1E !important;
    box-shadow: 0 4px 14px rgba(136, 13, 30, 0.35);
}

.btn-danger:hover, .btn-danger:focus, .btn-danger:active {
    background-color: #6b0917 !important;
    border-color: #6b0917 !important;
    box-shadow: 0 6px 20px rgba(136, 13, 30, 0.5);
}

.btn-outline-danger {
    color: #f87171 !important;
    border-color: #880D1E !important;
}

.btn-outline-danger:hover, .btn-outline-danger:active {
    background-color: #880D1E !important;
    border-color: #880D1E !important;
    color: #ffffff !important;
}

.bg-danger {
    background-color: #880D1E !important;
}

.bg-danger-subtle {
    background-color: rgba(136, 13, 30, 0.3) !important;
}

.text-danger {
    color: #f87171 !important;
}

.border-danger {
    border-color: #880D1E !important;
}

.text-gradient-gold {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-gradient-red {
    background: linear-gradient(135deg, #f87171 0%, #880D1E 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.max-w-700 {
    max-width: 700px;
}

.max-w-600 {
    max-width: 600px;
}

/* Announcement Top Bar */
.announcement-bar {
    background: linear-gradient(90deg, #570813 0%, #880D1E 50%, #9e1024 100%);
    color: #ffffff;
    font-size: 0.85rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.top-link {
    transition: var(--transition);
}

.top-link:hover {
    opacity: 0.85;
}

/* Glassmorphism Navbar */
.menu-navbar {
    background: var(--bg-nav);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    padding: 6px 0;
    z-index: 1050;
}

.logo-wrapper {
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    background: transparent !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    padding: 0 !important;
}

.logo-wrapper:hover {
    transform: scale(1.05);
}

.nav-logo {
    width: 115px;
    height: 115px;
    max-height: 115px;
    object-fit: contain;
    filter: drop-shadow(0 4px 14px rgba(0, 0, 0, 0.75));
    border: none !important;
    outline: none !important;
}

.brand-name {
    letter-spacing: -0.5px;
}

.navbar-menu-links .nav-link {
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 8px 16px !important;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.navbar-menu-links .nav-link:hover,
.navbar-menu-links .nav-link.active {
    color: #ffffff;
    background: rgba(0, 168, 168, 0.15);
}

/* Hero Section */
.hero-section {
    position: relative;
    background: linear-gradient(180deg, rgba(0, 32, 32, 0.9) 0%, rgba(0, 45, 45, 0.95) 100%),
                radial-gradient(circle at top right, rgba(0, 121, 121, 0.4), transparent 65%),
                radial-gradient(circle at bottom left, rgba(136, 13, 30, 0.35), transparent 55%);
    padding: 70px 0;
    overflow: hidden;
    border-bottom: 1px solid var(--border-color);
}

.live-dot {
    width: 8px;
    height: 8px;
    background-color: #22c55e;
    border-radius: 50%;
    box-shadow: 0 0 10px #22c55e;
    animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7); }
    70% { transform: scale(1.2); box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

.hero-title {
    line-height: 1.15;
    letter-spacing: -1px;
}

.hero-lead {
    color: #e2e8f0;
    font-size: 1.15rem;
}

.hero-pill {
    background: rgba(0, 121, 121, 0.25);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    font-size: 0.85rem;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 999px;
}

.hero-img-card {
    border-radius: var(--radius-xl);
    padding: 10px;
    background: linear-gradient(135deg, rgba(0, 121, 121, 0.5), rgba(136, 13, 30, 0.35));
}

.floating-badge {
    position: absolute;
    background: rgba(0, 40, 40, 0.94);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-gold);
    border-radius: var(--radius-lg);
    padding: 14px 18px;
}

.hero-badge-top {
    top: -15px;
    left: -15px;
}

.hero-badge-bottom {
    bottom: -15px;
    right: -15px;
}

/* Features Ribbon */
.features-ribbon {
    background: rgba(0, 35, 35, 0.95);
}

.feature-card {
    background: rgba(0, 50, 50, 0.75) !important;
    border-color: var(--border-color) !important;
    transition: var(--transition);
}

.feature-card small,
.text-light-subtle {
    color: #cbd5e1 !important;
    font-size: 0.88rem;
    font-weight: 500;
}

.feature-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent-gold) !important;
    background: rgba(0, 70, 70, 0.9) !important;
}

/* Featured Customer Favorites Cards */
.bg-dark-gradient {
    background: linear-gradient(180deg, rgba(0, 40, 40, 0.9) 0%, rgba(0, 50, 50, 0.95) 100%);
}

.featured-card {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    height: 100%;
    position: relative;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
}

.featured-card:hover {
    transform: translateY(-6px);
    border-color: var(--border-gold);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6);
    background: var(--bg-card-hover);
}

.featured-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 10;
    background: var(--primary-red);
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 999px;
    letter-spacing: 0.5px;
}

.featured-img-box {
    width: 100%;
    height: 170px;
    overflow: hidden;
    background: #001a1a;
}

.featured-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.featured-body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.featured-body h5 {
    color: #ffffff !important;
    font-weight: 700;
}

.featured-body p,
.featured-body .featured-desc {
    color: #cbd5e1 !important; /* Soft off-white for clear contrast and readability */
    font-size: 0.88rem;
    line-height: 1.45;
    margin-bottom: 1rem;
    opacity: 0.95;
}

/* SINGLE RESPONSIVE BOX CATEGORY SELECTOR TILE GRID */
.category-box-card {
    background: rgba(0, 50, 50, 0.9);
    backdrop-filter: blur(14px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 24px;
    box-shadow: var(--shadow-soft);
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 12px;
}

.cat-tile-btn {
    background: rgba(0, 35, 35, 0.85);
    color: var(--text-muted);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 12px 16px;
    font-size: 0.92rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-align: left;
    transition: var(--transition);
    width: 100%;
    cursor: pointer;
}

.cat-tile-btn:hover {
    background: rgba(0, 80, 80, 0.9);
    color: #ffffff;
    border-color: var(--accent-gold);
    transform: translateY(-2px);
}

.cat-tile-btn.active {
    background: linear-gradient(135deg, #6b0917 0%, #880D1E 100%);
    color: #ffffff;
    border-color: var(--primary-red);
    box-shadow: 0 4px 16px var(--primary-red-glow);
}

.cat-tile-btn .cat-badge {
    background: rgba(255, 255, 255, 0.15);
    color: inherit;
    font-size: 0.75rem;
    padding: 3px 9px;
    border-radius: 999px;
    font-weight: 700;
}

.cat-tile-btn.active .cat-badge {
    background: rgba(0, 0, 0, 0.35);
    color: #ffffff;
}

/* Category Blocks & Dishes */
.category-block {
    margin-bottom: 50px;
    scroll-margin-top: 100px;
}

.category-header {
    border-left: 5px solid var(--primary-red);
    padding-left: 18px;
    margin-bottom: 25px;
}

.category-title {
    font-size: 1.85rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 4px;
}

.category-description {
    color: var(--accent-gold);
    font-size: 0.95rem;
    margin-bottom: 0;
}

/* Dish Card Component */
.dish-card {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
    box-shadow: var(--shadow-soft);
}

.dish-card:hover {
    transform: translateY(-6px);
    border-color: var(--border-gold);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6);
    background: var(--bg-card-hover);
}

.dish-img-wrapper {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: #001a1a;
}

.dish-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.dish-card:hover .dish-img {
    transform: scale(1.06);
}

.dish-size-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(0, 35, 35, 0.92);
    backdrop-filter: blur(8px);
    color: var(--accent-gold);
    border: 1px solid var(--border-gold);
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
}

.dish-card-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.dish-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 8px;
    line-height: 1.3;
}

.dish-description {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 16px;
    flex-grow: 1;
}

.dish-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 14px;
    border-top: 1px solid var(--border-color);
    margin-top: auto;
}

.dish-price {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--accent-gold);
}

/* About & Quality Guarantee */
.bg-dark-glass {
    background: rgba(0, 40, 40, 0.9);
    backdrop-filter: blur(10px);
}

.bg-dark-subtle {
    background-color: rgba(0, 45, 45, 0.85) !important;
}

/* Reviews Cards */
.review-card {
    background: rgba(0, 50, 50, 0.8) !important;
    border-color: var(--border-color) !important;
    transition: var(--transition);
}

.review-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent-gold) !important;
    background: rgba(0, 70, 70, 0.9) !important;
}

.avatar {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Footer */
.footer {
    background: rgba(0, 20, 20, 0.98) !important;
    border-top: 1px solid var(--border-color);
    color: #cbd5e1 !important;
}

.footer h4, 
.footer h5 {
    color: #ffffff !important;
    font-weight: 700;
}

.footer p,
.footer ul,
.footer li,
.footer span,
.footer small,
.footer .text-muted {
    color: #cbd5e1 !important; /* Soft off-white for clear readability */
    opacity: 0.95;
    font-size: 0.92rem;
    line-height: 1.6;
}

.footer a.text-muted,
.footer a.text-muted:hover {
    color: #e2e8f0 !important;
}

.footer-logo {
    width: 56px;
    height: 56px;
    object-fit: contain;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.7));
}

/* Responsive Media Queries */
@media (max-width: 991px) {
    .hero-badge-top {
        left: 10px;
        top: -10px;
    }
    
    .hero-badge-bottom {
        right: 10px;
        bottom: -10px;
    }
}

@media (max-width: 768px) {
    .logo-wrapper {
        width: 85px !important;
        height: 85px !important;
    }
    .nav-logo {
        width: 80px !important;
        height: 80px !important;
        max-height: 80px !important;
    }

    .category-box-card {
        padding: 16px;
    }

    .category-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .cat-tile-btn {
        padding: 10px 12px;
        font-size: 0.82rem;
    }
}

@media (max-width: 480px) {
    .category-grid {
        grid-template-columns: 1fr;
    }
}
