/* Tony's Hibachi - Main Stylesheet */

/* Custom Properties */
:root {
    --primary-red: #8B0000;
    --gold-accent: #D4A574;
    --charcoal: #1A1A1A;
    --warm-white: #F8F6F0;
    --jade-green: #2E8B57;
    --slate-gray: #708090;
    --soft-cream: #F5F5DC;
    --primary: var(--primary-red);
    --secondary: var(--gold-accent);
    --luxury-gold: #B8860B;
    --deep-black: #0A0A0A;
    --platinum: #E5E4E2;
}

/* Typography */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--charcoal);
    padding-top: 70px; /* Account for fixed navbar */
}

/* Page content spacing for fixed navbar */
.page-header {
    margin-top: 2rem;
}

.container {
    padding-top: 1rem;
}

/* Smooth scrolling and anchor positioning */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px; /* Account for fixed navbar + some buffer */
}

/* Ensure content doesn't hide behind fixed navbar */
section, .section {
    scroll-margin-top: 0;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 700;
}

.display-1, .display-2, .display-3, .display-4 {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 900;
}

/* Navigation */
.luxury-navbar {
    background: #000000 !important;
    backdrop-filter: blur(20px);
    transition: all 0.4s ease;
    padding: 1rem 0;
    border-bottom: 2px solid rgba(184, 134, 11, 0.4);
    min-height: 80px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

/* Mobile menu background */
.luxury-navbar .navbar-collapse {
    background: #000000 !important;
}

@media (max-width: 991.98px) {
    .luxury-navbar .navbar-collapse {
        background: #000000 !important;
        border-top: 2px solid rgba(184, 134, 11, 0.4);
        margin-top: 1rem;
        padding: 1.5rem 0;
        border-radius: 0 0 15px 15px;
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    }
}

.luxury-navbar .navbar-brand {
    padding: 0.5rem 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.luxury-navbar .navbar-brand img {
    transition: transform 0.3s ease;
    height: 45px;
    width: auto;
    max-width: 180px;
    object-fit: contain;
    display: block;
}

.navbar-logo {
    height: 45px !important;
    width: auto !important;
    max-width: 180px;
    object-fit: contain;
    display: block;
}

.luxury-navbar .navbar-brand:hover img {
    transform: scale(1.05);
}

/* Navbar Toggle Button Styling */
.luxury-navbar .navbar-toggler {
    border: 2px solid rgba(184, 134, 11, 0.6);
    border-radius: 8px;
    padding: 0.5rem 0.75rem;
    transition: all 0.3s ease;
}

.luxury-navbar .navbar-toggler:focus {
    box-shadow: 0 0 0 0.25rem rgba(184, 134, 11, 0.25);
    border-color: var(--luxury-gold);
}

.luxury-navbar .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(184, 134, 11, 0.8)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Mobile Navigation Enhancements */
@media (max-width: 991.98px) {
    .luxury-navbar .navbar-brand img {
        height: 60px !important;
        max-width: 200px !important;
    }
    
    .luxury-navbar .nav-link {
        padding: 1rem 1.5rem !important;
        margin: 0.25rem 0;
        font-size: 1rem;
        text-align: center;
        border-radius: 12px;
    }
    
    .luxury-navbar .nav-link:hover {
        background: rgba(184, 134, 11, 0.15);
        transform: none;
    }
    
    .luxury-navbar .navbar-nav {
        padding: 1rem 0;
    }
}

/* Tablet and Medium Screen Enhancements */
@media (min-width: 768px) and (max-width: 1199.98px) {
    .luxury-navbar .nav-link {
        padding: 0.75rem 1rem !important;
        margin: 0 0.25rem;
        font-size: 0.85rem;
    }
    
    .luxury-navbar .navbar-brand img {
        height: 40px;
        max-width: 160px;
    }
}

/* Large Screen Enhancements */
@media (min-width: 1200px) {
    .luxury-navbar .nav-link {
        padding: 0.75rem 1.5rem !important;
        margin: 0 0.5rem;
        font-size: 0.95rem;
    }
    
    .luxury-navbar .navbar-brand img {
        height: 50px;
        max-width: 200px;
    }
}

/* Extra Small Mobile Devices */
@media (max-width: 575.98px) {
    .luxury-navbar .navbar-brand img {
        height: 70px !important;
        max-width: 220px !important;
    }
    
    .luxury-navbar {
        padding: 0.75rem 0;
        min-height: 90px;
    }
    
    .luxury-navbar .navbar-brand {
        padding: 0.25rem 0;
    }
}

/* Mobile Menu Animations */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(-20px);
    }
}

/* Enhanced Navbar Animations */
.luxury-navbar .nav-link {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.luxury-navbar .navbar-brand {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Google Maps Styling */
.map-container {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.map-container iframe {
    transition: transform 0.3s ease;
}

.map-container:hover iframe {
    transform: scale(1.02);
}

/* Responsive Map Adjustments */
@media (max-width: 768px) {
    .map-container iframe {
        height: 250px !important;
    }
}

@media (max-width: 576px) {
    .map-container iframe {
        height: 200px !important;
    }
}

.luxury-navbar .nav-link {
    color: var(--platinum) !important;
    font-weight: 500;
    margin: 0 0.5rem;
    position: relative;
    transition: all 0.4s ease;
    padding: 0.75rem 1.25rem !important;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    font-size: 0.9rem;
    line-height: 1.2;
    border-radius: 8px;
}

.luxury-navbar .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--luxury-gold);
    transition: all 0.4s ease;
    transform: translateX(-50%);
    border-radius: 1px;
}

.luxury-navbar .nav-link:hover::after {
    width: 80%;
}

.luxury-navbar .nav-link:hover {
    color: var(--luxury-gold) !important;
    background: rgba(184, 134, 11, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(184, 134, 11, 0.2);
}

.luxury-navbar .nav-link:active {
    transform: translateY(0);
    transition: transform 0.1s ease;
}

/* Hero Carousel */
.carousel {
    margin-top: 0;
}

.carousel-item {
    height: 90vh;
    min-height: 600px;
}

.carousel-item {
    height: 80vh;
    min-height: 500px;
}

.carousel-item img {
    object-fit: cover;
    height: 100%;
    width: 100%;
}

.carousel-caption {
    background: rgba(10, 10, 10, 0.8);
    border: 1px solid rgba(184, 134, 11, 0.3);
    border-radius: 0;
    padding: 3rem;
    bottom: 15%;
    left: 8%;
    right: 8%;
    max-width: 700px;
    margin: 0 auto;
    backdrop-filter: blur(10px);
}

.carousel-caption h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.carousel-caption .lead {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

/* Quick Info Bar */
.quick-info {
    background: linear-gradient(135deg, var(--charcoal) 0%, var(--primary-red) 100%);
}

.quick-info a:hover {
    color: var(--gold-accent) !important;
}

/* Cards */
.luxury-card {
    border: none;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    overflow: hidden;
}

.luxury-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.luxury-card .card-body {
    padding: 2rem;
}

.luxury-card-dark {
    background: var(--charcoal);
    border: 1px solid var(--gold-accent);
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.luxury-card-dark:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

.luxury-card-dark img {
    transition: transform 0.3s ease;
}

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

/* Menu Category Cards */
.menu-category-card {
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.menu-category-card img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border: 3px solid var(--gold-accent);
    transition: all 0.3s ease;
}

.menu-category-card:hover img {
    transform: scale(1.1);
    border-color: var(--primary-red);
}

.menu-category-card h5 {
    margin: 1rem 0;
    color: var(--charcoal);
}

/* Buttons */
.btn-primary {
    background: var(--primary-red);
    border: 2px solid var(--primary-red);
    border-radius: 25px;
    padding: 0.75rem 2rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: transparent;
    color: var(--primary-red);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(139, 0, 0, 0.3);
}

.btn-outline-primary {
    border: 2px solid var(--primary-red);
    color: var(--primary-red);
    border-radius: 25px;
    padding: 0.75rem 2rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-outline-primary:hover {
    background: var(--primary-red);
    color: white;
    transform: translateY(-2px);
}

.btn-light {
    background: var(--warm-white);
    border: 2px solid var(--warm-white);
    color: var(--charcoal);
    border-radius: 25px;
    padding: 0.75rem 2rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-light:hover {
    background: transparent;
    color: var(--warm-white);
    transform: translateY(-2px);
}

.btn-outline-light {
    border: 2px solid var(--warm-white);
    color: var(--warm-white);
    border-radius: 25px;
    padding: 0.75rem 2rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-outline-light:hover {
    background: var(--warm-white);
    color: var(--charcoal);
    transform: translateY(-2px);
}

/* Sections */
.bg-primary {
    background: var(--primary-red) !important;
}

.bg-dark {
    background: var(--charcoal) !important;
}

.text-primary {
    color: var(--primary-red) !important;
}

/* Footer */
footer {
    background: #000000 !important;
    background: linear-gradient(to bottom, #000000, #000000) !important;
    background: rgb(0, 0, 0) !important;
    background: rgba(0, 0, 0, 1) !important;
    background: black !important;
    border-top: 1px solid rgba(184, 134, 11, 0.3);
}

/* Override Bootstrap's bg-dark class */
footer.bg-dark {
    background-color: #000000 !important;
    background: #000000 !important;
}

/* More aggressive Bootstrap override */
.bg-dark {
    background-color: #000000 !important;
}

footer.bg-dark,
footer.bg-dark * {
    background-color: #000000 !important;
    background: #000000 !important;
}

/* Force footer to be absolutely black */
footer * {
    background: transparent !important;
}

/* Force footer to be absolutely black */
footer * {
    background: transparent !important;
}

footer .container {
    background: transparent !important;
}

footer .row {
    background: transparent !important;
}

footer .col {
    background: transparent !important;
}

/* Ensure logo blends with footer */
footer .navbar-brand {
    background: transparent !important;
}

footer .navbar-brand img {
    background: transparent !important;
}

/* Footer link hover effects */
footer a {
    transition: all 0.3s ease;
    position: relative;
}

footer a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--luxury-gold);
    transition: width 0.3s ease;
}

footer a:hover::after {
    width: 100%;
}

footer a:hover {
    color: var(--luxury-gold) !important;
}

.social-links a {
    transition: all 0.3s ease;
}

.social-links a:hover {
    color: var(--gold-accent) !important;
    transform: translateY(-3px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .carousel-caption {
        bottom: 10%;
        left: 5%;
        right: 5%;
        padding: 1.5rem;
    }
    
    .carousel-caption h1 {
        font-size: 2.5rem;
    }
    
    .carousel-caption .lead {
        font-size: 1.1rem;
    }
    
    .carousel-item {
        height: 60vh;
    }
    
    .quick-info .col-md-3 {
        margin-bottom: 1rem;
    }
}

@media (max-width: 576px) {
    .carousel-caption h1 {
        font-size: 2rem;
    }
    
    .carousel-caption .lead {
        font-size: 1rem;
    }
    
    .navbar-logo {
        height: 18px !important;
        max-width: 100px;
    }
    
    .luxury-card .card-body {
        padding: 1.5rem;
    }
}

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

.fade-in-up {
    animation: fadeInUp 0.8s ease-out;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Image optimization */
img {
    max-width: 100%;
    height: auto;
}

/* Loading states */
.lazy {
    opacity: 0;
    transition: opacity 0.3s;
}

.lazy.loaded {
    opacity: 1;
}

/* Timeline styles */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--gold-accent);
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
}

.timeline-marker {
    position: absolute;
    left: 50%;
    top: 0;
    width: 20px;
    height: 20px;
    background: var(--primary-red);
    border: 3px solid var(--gold-accent);
    border-radius: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.timeline-content {
    position: relative;
    width: 45%;
    padding: 1.5rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.timeline-item:nth-child(odd) .timeline-content {
    left: 0;
    text-align: right;
}

.timeline-item:nth-child(even) .timeline-content {
    left: 55%;
    text-align: left;
}

.timeline-content h4 {
    color: var(--primary-red);
    margin-bottom: 0.5rem;
}

@media (max-width: 768px) {
    .timeline::before {
        left: 30px;
    }
    
    .timeline-marker {
        left: 30px;
    }
    
    .timeline-content {
        width: calc(100% - 60px);
        left: 60px !important;
        text-align: left !important;
    }
}
