/* CSS variables, typography standards, and glassmorphism UI layouts */
:root {
    --bg-color: #0d0d0d;
    --text-color: #f2f2f2;
    --primary-color: #d4af37; /* Premium Gold */
    --secondary-bg: #1a1a1a;
    --glass-bg: rgba(26, 26, 26, 0.7);
    --border-color: rgba(255, 255, 255, 0.1);
    
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
    
    --transition-speed: 0.35s; /* Smooth UI state transition speed */
}

/* Base reset and generic layout rules */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    padding-top: 70px; /* Space for fixed navbar */
}

/* Announcement Banner - Top Section */
.announcement-banner {
    background-color: #ffba08;
    color: #121212;
    text-align: center;
    padding: 12px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    position: relative;
    z-index: 1001;
}

/* Typography */
h1, h2, h3, .logo {
    font-family: var(--font-heading);
    font-weight: 600;
}

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

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

/* Navbar */
#navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    transition: background-color var(--transition-speed) ease, padding var(--transition-speed) ease;
}

#navbar.scrolled {
    background-color: rgba(13, 13, 13, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 5%;
    border-bottom: 1px solid var(--border-color);
}

.logo {
    font-size: 1.8rem;
    letter-spacing: 2px;
    color: var(--primary-color);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-color);
    text-decoration: none;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    transition: color var(--transition-speed);
}

.nav-links a:hover {
    color: var(--primary-color);
}

.nav-links a[aria-current="page"] {
    color: var(--primary-color);
    font-weight: 500;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 4px;
}

.nav-cta {
    background: var(--primary-color) !important;
    color: var(--bg-color) !important;
    padding: 0.5rem 1rem;
    border-radius: 2px;
    font-weight: 600;
}

.nav-cta:hover {
    background: #e6c245 !important;
    transform: translateY(-2px);
}

.lang-switch-container {
    display: flex;
    align-items: center;
    margin-left: auto;
    margin-right: 1.5rem;
}

.lang-btn {
    background: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    padding: 0.35rem 0.8rem;
    font-size: 0.85rem;
    font-family: var(--font-body);
    font-weight: 600;
    cursor: pointer;
    border-radius: 4px;
    transition: all var(--transition-speed) ease;
}

.lang-btn:hover {
    background: var(--primary-color);
    color: var(--bg-color);
    box-shadow: 0 4px 10px rgba(212, 175, 55, 0.2);
}

@media (max-width: 768px) {
    .lang-switch-container {
        margin-right: 1rem;
    }
}

.hamburger {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--text-color);
    transition: all 0.3s ease-in-out;
}

/* Hero Section */
#hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background-image: url('assets/bihari_hero.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

#hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to bottom, rgba(13,13,13,0.3) 0%, rgba(13,13,13,0.9) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    padding: 0 2rem;
    animation: fadeIn 1.5s ease-out;
}

.hero-title {
    font-size: clamp(3rem, 6vw, 5.5rem);
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.2rem;
    font-weight: 300;
    margin-bottom: 2.5rem;
    color: #ccc;
    max-width: 600px;
    margin-inline: auto;
}

.cta-btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    background-color: var(--primary-color);
    color: var(--bg-color);
    text-decoration: none;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.cta-btn.secondary {
    background-color: transparent;
    color: var(--text-color);
    border: 1px solid var(--text-color);
    margin-left: 1rem;
}

.cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(212, 175, 55, 0.2);
}

.cta-btn.secondary:hover {
    background-color: var(--text-color);
    color: var(--bg-color);
}

.hero-btns {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

/* Heritage Section */
#heritage {
    padding: 8rem 0;
    background-color: var(--secondary-bg);
}

.heritage-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: center;
}

.section-title.left {
    text-align: left;
}

.section-title.left::after {
    left: 0;
    transform: none;
}

.heritage-text p {
    margin-bottom: 1.5rem;
    color: #ccc;
    font-size: 1.1rem;
    line-height: 1.8;
}

.heritage-image .image-wrapper {
    position: relative;
    height: 400px;
    background: linear-gradient(45deg, #1a1a1a, #2a2a2a);
    border: 1px solid var(--primary-color);
    border-radius: 4px;
}

.premium-badge {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background: var(--primary-color);
    color: var(--bg-color);
    padding: 1rem 1.5rem;
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: 1px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}

/* Menu Section */
#menu {
    padding: 8rem 0;
    background-color: var(--bg-color);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 4rem;
    color: var(--primary-color);
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background-color: var(--primary-color);
}

.menu-filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 4rem;
    flex-wrap: wrap;
}

.filter-btn {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-color);
    padding: 0.6rem 1.5rem;
    font-size: 0.9rem;
    font-family: var(--font-body);
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    border-radius: 30px;
    transition: all var(--transition-speed) ease;
}

.filter-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.filter-btn.active {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--bg-color);
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.25);
}

.menu-card.hidden {
    display: none !important;
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
}

.menu-card {
    padding: 2rem;
    background: var(--secondary-bg);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    transition: transform var(--transition-speed), border-color var(--transition-speed);
}

.menu-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.menu-card.special {
    border: 2px solid #ffba08;
}

.menu-card.special .menu-header h3,
.menu-card.special .price {
    color: #ffba08;
}

.menu-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 1rem;
    border-bottom: 1px dashed var(--border-color);
    padding-bottom: 0.5rem;
}

.menu-header h3 {
    font-size: 1.4rem;
    color: #fff;
}

.price {
    font-family: var(--font-heading);
    color: var(--primary-color);
    font-size: 1.2rem;
    font-weight: 600;
}

.menu-desc {
    color: #aaa;
    font-size: 0.9rem;
}

/* Testimonials Section */
#testimonials {
    padding: 8rem 0;
    background-color: var(--bg-color);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    margin-top: 4rem;
}

.testimonial-card {
    background: var(--secondary-bg);
    padding: 3rem 2rem;
    border-radius: 4px;
    border: 1px solid var(--border-color);
    text-align: center;
    transition: transform 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
}

.rating {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

.testimonial-text {
    font-style: italic;
    color: #eee;
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.guest-name {
    color: var(--primary-color);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.1rem;
}

/* Guest Review Form Styles */
.review-form-container {
    max-width: 600px;
    margin: 6rem auto 0;
    padding: 3rem;
    background: var(--secondary-bg);
    border: 1px solid var(--border-color);
    border-radius: 4px;
}

.review-form-title {
    font-family: var(--font-heading);
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 2rem;
    text-align: center;
}

.star-rating {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: 0.2rem;
    font-size: 1.8rem;
}

.star {
    cursor: pointer;
    color: #444;
    transition: color 0.2s ease;
}

.star:hover,
.star:hover ~ .star,
.star.selected,
.star.selected ~ .star {
    color: var(--primary-color);
}

textarea {
    width: 100%;
    padding: 0.8rem;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid var(--border-color);
    color: #fff;
    font-family: var(--font-body);
    font-size: 1rem;
    outline: none;
    resize: vertical;
    transition: border-color var(--transition-speed);
}

textarea:focus {
    border-color: var(--primary-color);
}

/* Reservation Section */
#reservation {
    padding: 6rem 0;
    background: url('assets/bihari_hero.png') center/cover no-repeat fixed;
    position: relative;
}

#reservation::before {
    content: '';
    position: absolute;
    top:0; left:0; width:100%; height:100%;
    background: rgba(13, 13, 13, 0.85);
}

.reservation-container {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.reservation-info h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.reservation-info p {
    font-size: 1.1rem;
    color: #ddd;
}

/* Reservations Booking Manager Styles */
.my-bookings-container {
    margin-top: 2.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 1.5rem;
    backdrop-filter: blur(10px);
}

.my-bookings-container h3 {
    font-family: var(--font-heading);
    color: var(--primary-color);
    font-size: 1.3rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.5rem;
}

.booking-search-bar {
    margin-bottom: 1rem;
}

.booking-search-bar input {
    background: rgba(0, 0, 0, 0.4);
    border-radius: 4px;
    font-size: 0.9rem;
    padding: 0.6rem 0.8rem;
}

.bookings-list {
    max-height: 200px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.no-bookings {
    color: #888;
    font-size: 0.9rem;
    font-style: italic;
    text-align: center;
    padding: 1rem 0;
}

.booking-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(0, 0, 0, 0.3);
    padding: 0.8rem;
    border-left: 3px solid var(--primary-color);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.booking-item.cancelling {
    opacity: 0;
    transform: translateX(-20px);
}

.booking-details {
    display: flex;
    flex-direction: column;
}

.booking-name {
    font-weight: 500;
    color: #fff;
    font-size: 0.95rem;
}

.booking-meta {
    font-size: 0.8rem;
    color: #888;
}

.booking-actions {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.booking-badge {
    font-size: 0.75rem;
    padding: 0.2rem 0.5rem;
    border-radius: 20px;
    font-weight: 600;
    text-transform: uppercase;
}

.booking-badge.confirmed {
    background: rgba(40, 167, 69, 0.2);
    color: #28a745;
    border: 1px solid rgba(40, 167, 69, 0.4);
}

.cancel-booking-btn {
    background: transparent;
    border: 1px solid rgba(220, 53, 69, 0.5);
    color: #dc3545;
    padding: 0.3rem 0.6rem;
    font-size: 0.75rem;
    cursor: pointer;
    border-radius: 2px;
    transition: all 0.2s ease;
}

.cancel-booking-btn:hover {
    background: #dc3545;
    color: #fff;
}

.reservation-form {
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    border: 1px solid var(--border-color);
    padding: 3rem;
    border-radius: 4px;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group.row {
    display: flex;
    gap: 1.5rem;
}

.form-group.row .col {
    flex: 1;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #ccc;
}

input, select {
    width: 100%;
    padding: 0.8rem;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid var(--border-color);
    color: #fff;
    font-family: var(--font-body);
    font-size: 1rem;
    outline: none;
    transition: border-color var(--transition-speed);
}

input:focus, select:focus {
    border-color: var(--primary-color);
}

input[type="date"]::-webkit-calendar-picker-indicator {
    filter: invert(1);
    cursor: pointer;
}

.submit-btn {
    width: 100%;
    padding: 1rem;
    background: var(--primary-color);
    color: var(--bg-color);
    border: none;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: background 0.3s;
    margin-top: 1rem;
}

.submit-btn:hover {
    background: #e6c245;
}

/* Newsletter Section */
#newsletter {
    padding: 6rem 0;
    background-color: var(--secondary-bg);
    border-top: 1px solid var(--border-color);
}

.newsletter-container {
    max-width: 800px;
    text-align: center;
}

.newsletter-content h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.newsletter-content p {
    color: #ccc;
    margin-bottom: 2.5rem;
}

.newsletter-form {
    display: flex;
    gap: 1rem;
    max-width: 600px;
    margin: 0 auto;
}

.newsletter-form input {
    flex: 1;
    background: rgba(0,0,0,0.3);
}

.newsletter-btn {
    padding: 0.8rem 2rem;
    background: var(--primary-color);
    color: var(--bg-color);
    border: none;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: background 0.3s;
}

.newsletter-btn:hover {
    background: #e6c245;
}

/* Footer Refactor */
footer {
    background: #000;
    padding: 6rem 0 2rem;
    border-top: 1px solid #1a1a1a;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
}

.footer-col h3 {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-col p {
    color: #888;
    margin-bottom: 0.8rem;
    font-size: 0.95rem;
}

.brand p {
    max-width: 300px;
}

.footer-logo {
    margin-bottom: 1rem;
}

.social-links {
    justify-content: flex-start;
    margin-top: 2rem;
}

.footer-bottom {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid #1a1a1a;
    text-align: center;
}

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

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .footer-logo, .social-links {
        justify-content: center;
    }
    .brand p {
        margin-inline: auto;
    }
}

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

/* Mobile Responsive Styles */
@media (max-width: 768px) {
    .reservation-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .form-group.row {
        flex-direction: column;
        gap: 1.5rem;
    }
    .nav-links {
        position: fixed;
        right: -100%;
        top: 70px;
        flex-direction: column;
        background: var(--secondary-bg);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        padding: 2rem 0;
        box-shadow: 0 10px 15px rgba(0,0,0,0.5);
    }
    .nav-links.active {
        right: 0;
    }
    .hamburger {
        display: block;
    }
    .hamburger.active .bar:nth-child(2) { opacity: 0; }
    .hamburger.active .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .hamburger.active .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
}

/* Back to Top Button */
#backToTop {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: var(--bg-color);
    border: none;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    display: none; /* Hidden by default */
    z-index: 999;
    transition: transform 0.3s, background-color 0.3s, opacity 0.3s;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

#backToTop:hover {
    transform: translateY(-5px);
    background-color: #e6c245;
}

/* Utility classes for accessibility */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

/* Improve global styling accessibility */


/* Responsive mobile overrides section */




/* maintain consistent styling */

:focus-visible { outline: 2px solid var(--primary-color); outline-offset: 4px; border-radius: 2px; }
