/* Color Palette and Variables */
:root {
    --bg-dark: #0A0A0A;
    --text-primary: #EFE9DB;
    --text-muted: #8C8C8C;
    --accent: #EFE9DB;
    
    --font-serif: 'Cormorant Garamond', serif;
    --font-sans: 'Inter', sans-serif;
    --font-script: 'Great Vibes', cursive;
    
    --border-radius-lg: 40px;
    --border-radius-pill: 50px;
    
    --spacing-section: 110px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    background-image: linear-gradient(rgba(10, 10, 10, 0.85), rgba(10, 10, 10, 0.85)), url('assets/leaves_bg.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--text-primary);
    font-family: var(--font-sans);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography Utility */
.serif-font { font-family: var(--font-serif); }
.script-font { font-family: var(--font-script); }
.sans-font { font-family: var(--font-sans); }
.text-center { text-align: center; }

/* Layout & Containers */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}
.container-sm { max-width: 800px; }
.section-spacing { padding: var(--spacing-section) 0; }
.mb-large { margin-bottom: 48px; }

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 24px 0;
    z-index: 1000;
    transition: background-color 0.4s ease, padding 0.4s ease;
}
.navbar.scrolled {
    background-color: transparent;
    padding: 12px 0;
    border-bottom: none;
}
.navbar.compact {
    padding: 8px 0;
}
.navbar.compact .nav-logo-img {
    height: 40px; /* even more compact */
}
.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo {
    font-family: var(--font-script);
    font-size: 2.5rem;
    color: var(--text-primary);
    text-decoration: none;
    line-height: 1;
}
.nav-logo-img {
    height: 50px;
    width: auto;
    display: block;
}
.nav-book-btn {
    padding: 10px 24px;
    font-size: 0.75rem;
    transition: all 0.4s ease;
    white-space: nowrap;
    margin-right: auto; /* Pushes other items to the right in index.html */
}
.navbar.scrolled .nav-book-btn {
    display: none;
}

/* Show Book a Table button on Menu Page (Desktop) */
.menu-page-bg .navbar.scrolled .nav-book-btn {
    display: inline-block;
}
.menu-page-bg .nav-book-btn {
    margin-right: 0;
    margin-left: 20px;
}
.nav-links {
    list-style: none;
    display: flex;
    gap: 30px;
}
.nav-links a {
    text-decoration: none;
    color: var(--text-primary);
    font-size: 0.75rem;
    font-weight: 500;
    transition: color 0.3s ease;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}
.nav-links a:hover, .nav-links a.active {
    color: #DAB98B; /* Gold color for hover and active state */
}

/* Logo Highlight Transition */
.nav-logo-fade {
    opacity: 0;
    display: none;
    transition: opacity 0.5s ease;
}

.navbar.scrolled .nav-logo-fade {
    opacity: 1;
    display: block;
}

.navbar.logo-hidden .nav-logo-fade {
    opacity: 0;
    display: none;
}

/* Floating CTAs */
.desktop-fixed-btn {
    position: fixed;
    bottom: 40px;
    right: 40px;
    z-index: 2000;
    background-color: #DAB98B; /* High-end gold */
    color: #0A0A0A;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 15px 45px rgba(0,0,0,0.4);
}
.desktop-fixed-btn:hover {
    background-color: #EFE9DB;
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(218, 185, 139, 0.4);
}
.navbar.scrolled ~ .desktop-fixed-btn {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* Hide Floating CTAs near Booking form */
.hide-cta .desktop-fixed-btn,
.hide-cta .mobile-fixed-btn {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
}
.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('assets/hero_pleasant_bg.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    z-index: -3; /* Behind the dark overlay */
}
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(to bottom, #0A0A0A 0%, transparent 25%),
        radial-gradient(circle at center, rgba(10,10,10,0.4) 0%, rgba(10,10,10,0.85) 100%);
    z-index: -1;
}
.hero-content {
    text-align: center;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.hero-logo-img {
    max-width: 420px;
    width: 80vw;
    height: auto;
    margin-bottom: 24px;
    filter: drop-shadow(0 10px 40px rgba(0,0,0,0.6));
}
.hero-subtitle {
    font-size: 1rem;
    letter-spacing: 0.3em;
    font-weight: 400;
    color: var(--text-primary);
    text-transform: uppercase;
}

/* Narrative Section */
.section-heading {
    font-size: 3rem;
    font-weight: 400;
    margin-bottom: 24px;
    color: var(--text-primary);
}
.divider {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-bottom: 32px;
}
.dot {
    width: 4px;
    height: 4px;
    background-color: var(--text-muted);
    border-radius: 50%;
}
.dot.highlight {
    background-color: var(--text-primary);
    transform: scale(1.5);
}
.section-paragraph {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 650px;
    margin: 0 auto;
}

/* Visual Break Section */
.large-image-wrapper {
    width: 100%;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
}
.rounded-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    max-height: 80vh;
}

/* Scrolling Gallery */
.scrolling-gallery {
    position: relative;
    width: 100%;
    margin-top: 60px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 24px;
}
.marquee-track {
    display: flex;
    gap: 24px;
    width: max-content;
}
.track-left {
    animation: scrollLeft 30s linear infinite;
}
.track-right {
    animation: scrollRight 30s linear infinite;
}
.marquee-track img {
    height: 350px;
    width: 280px;
    object-fit: cover;
    border-radius: 20px;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}
.marquee-track img:hover {
    opacity: 1;
}

@keyframes scrollLeft {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-50% - 12px)); }
}
@keyframes scrollRight {
    0% { transform: translateX(calc(-50% - 12px)); }
    100% { transform: translateX(0); }
}

.gallery-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
}
.gallery-btn {
    box-shadow: 0 10px 40px rgba(0,0,0,0.8);
    background-color: #DAB98B;
    color: #0A0A0A;
}
.gallery-btn:hover {
    background-color: #EFE9DB;
    color: #0A0A0A;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 15px 35px;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid transparent;
    font-family: var(--font-sans);
    white-space: nowrap; /* Prevents text stacking on small screens */
}
.btn-pill {
    background-color: var(--accent);
    color: var(--bg-dark);
    border-radius: var(--border-radius-pill);
}
.btn-pill:hover {
    background-color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 0 20px rgba(218, 185, 139, 0.8), 0 10px 30px rgba(218, 185, 139, 0.2);
}

.mobile-fixed-btn {
    display: none;
}

/* Reserve A Table Background */
.book-table {
    position: relative;
    background-image: url('assets/restaurant_front.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* Parallax effect */
    z-index: 1;
}
.book-table::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 10, 10, 0.85); /* Ensures the text and form remain highly visible */
    z-index: -1;
}

/* Booking Grid Form */
.booking-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    max-width: 800px;
    margin: 40px auto 0;
    text-align: left;
}
.booking-grid .grid-input, .booking-grid .select-wrapper {
    width: 100%;
}
.booking-grid .grid-input {
    padding: 18px 20px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #9e9e9e;
    border-radius: 2px;
    font-family: var(--font-sans);
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.3s;
}
.booking-grid .grid-input::placeholder {
    color: #9e9e9e;
}
.booking-grid .grid-input:focus {
    border-color: rgba(255, 255, 255, 0.4);
}
.booking-grid .select-wrapper {
    position: relative;
}
.booking-grid select.grid-input {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    cursor: pointer;
}
.booking-grid .select-wrapper::after {
    content: '';
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 10px;
    height: 6px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6' fill='none'%3E%3Cpath d='M1 1L5 5L9 1' stroke='%239e9e9e' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    pointer-events: none;
}
.booking-grid .grid-input[type="date"]::-webkit-calendar-picker-indicator {
    filter: invert(0.6);
    cursor: pointer;
}
.booking-grid .full-width {
    grid-column: 1 / -1;
}
.booking-grid textarea.grid-input {
    resize: none;
    min-height: 150px;
}
.booking-grid .grid-btn {
    grid-column: 1 / -1;
    background-color: #E6BD92;
    color: #0A0A0A;
    border: none;
    padding: 22px;
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    cursor: pointer;
    transition: opacity 0.3s;
    border-radius: 2px;
    margin-top: 5px;
}
.booking-grid .grid-btn:hover {
    opacity: 0.9;
}

.explore-btn {
    background-color: var(--accent);
    color: #0A0A0A;
    padding: 16px 40px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.4s ease;
    box-shadow: 0 10px 30px rgba(218, 185, 139, 0.2);
}

.explore-btn:hover {
    background-color: #EFE9DB;
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(218, 185, 139, 0.4);
}

@media (max-width: 768px) {
    .explore-btn {
        padding: 12px 30px;
        font-size: 0.8rem;
    }
}

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

/* Massive Branding */
.massive-branding {
    width: 100%;
    overflow: visible; /* Prevent cutting off flourishing script fonts at the top */
    text-align: center;
    padding: 60px 0 80px 0;
}
.massive-branding h1 {
    font-size: 13vw; /* Adjusted down from 22vw to fit 'The Goldenyard' entirely */
    line-height: 1.2; /* Increased line-height so tall letters like 'T' and 'l' don't crop */
    color: rgba(239, 233, 219, 0.04);
    transition: color 0.5s ease, transform 0.5s ease;
    white-space: nowrap;
    cursor: default;
}
.massive-branding h1:hover {
    color: rgba(239, 233, 219, 0.09);
    transform: scale(1.02);
}

/* Footer Section */
.footer {
    border-top: 1px solid rgba(239, 233, 219, 0.05);
}
.footer-logo {
    font-family: var(--font-script);
    font-size: 3rem;
    margin-bottom: 40px;
}
.footer-logo-img {
    max-width: 420px;
    width: 80vw;
    height: auto;
    filter: drop-shadow(0 10px 40px rgba(0,0,0,0.6));
}
.footer-contact p {
    font-family: var(--font-sans);
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    margin-bottom: 12px;
    color: var(--text-muted);
}
.footer-links {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 32px;
    margin: 40px 0;
}
.footer-links a {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.8rem;
    letter-spacing: 0.15em;
    transition: color 0.3s;
}
.footer-links a:hover {
    color: var(--text-muted);
}
.copyright {
    font-size: 0.75rem;
    color: var(--text-muted);
    letter-spacing: 0.05em;
    opacity: 0.5;
}

/* Menu Page Styles */

.menu-page-bg {
    background-image: url('assets/village_menu_bg.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
    min-height: 100vh;
}
.menu-page-bg::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(6, 6, 6, 0.85); /* Dark overlay for readability */
    z-index: 0;
}
.menu-page-bg nav, .menu-page-bg main, .menu-page-bg header, .menu-page-bg .filter-bar-container, .menu-page-bg footer {
    position: relative;
    z-index: 1;
}

/* Filter Bar */
.filter-bar-container {
    padding: 120px 24px 0;
    background-color: transparent;
}
.filter-bar {
    display: flex;
    justify-content: center;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 0;
    border-bottom: 1px solid rgba(239, 233, 219, 0.05);
}
.filter-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-family: var(--font-sans);
    font-size: 0.9rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    cursor: pointer;
    padding-bottom: 4px;
    transition: all 0.3s ease;
    border-bottom: 2px solid transparent;
}
.filter-btn:hover, .filter-btn.active {
    color: var(--text-primary);
    border-bottom-color: var(--accent);
}

/* Specific Filter Button Colors */
.filter-btn[data-filter="veg"] { color: #9CAF88; }
.filter-btn[data-filter="non-veg"] { color: #C68181; }
.filter-btn[data-filter="egg"] { color: #D6B567; }

.filter-btn[data-filter="veg"]:hover, .filter-btn[data-filter="veg"].active {
    border-bottom-color: #9CAF88;
    text-shadow: 0 0 8px rgba(156, 175, 136, 0.4);
}
.filter-btn[data-filter="non-veg"]:hover, .filter-btn[data-filter="non-veg"].active {
    border-bottom-color: #C68181;
    text-shadow: 0 0 8px rgba(198, 129, 129, 0.4);
}
.filter-btn[data-filter="egg"]:hover, .filter-btn[data-filter="egg"].active {
    border-bottom-color: #D6B567;
    text-shadow: 0 0 8px rgba(214, 181, 103, 0.4);
}

.menu-header {
    text-align: center;
    padding: 60px 24px 80px;
    background-color: transparent;
    position: relative;
    /* Removed overflow: hidden to allow full image visibility */
}

/* Dynamic Floating Images */
.floating-img-left, .floating-img-right {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    width: clamp(200px, 22vw, 350px);
    aspect-ratio: 3/4;
    height: auto;
    object-fit: cover;
    opacity: 0;
    z-index: 0;
    pointer-events: none;
    -webkit-mask-image: radial-gradient(ellipse at center, rgba(0,0,0,1) 20%, rgba(0,0,0,0) 65%);
    mask-image: radial-gradient(ellipse at center, rgba(0,0,0,1) 20%, rgba(0,0,0,0) 65%);
    transition: opacity 0.4s ease-in-out, transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
    will-change: opacity, transform;
    -webkit-transform-style: preserve-3d;
    transform-style: preserve-3d;
}
.floating-img-left.active {
    opacity: 0.95;
    transform: translateY(-50%) translateX(-25%) rotate(-6deg) scale(1.05);
}
.floating-img-right.active {
    opacity: 0.95;
    transform: translateY(-50%) translateX(25%) rotate(6deg) scale(1.05);
}
.floating-img-left {
    left: -2%;
    transform: translateY(-50%) translateX(-40%) rotate(-6deg);
}
.floating-img-right {
    right: -2%;
    transform: translateY(-50%) translateX(40%) rotate(6deg);
}

@media (max-width: 1024px) {
    .floating-img-left, .floating-img-right {
        display: none;
    }
}
@media (max-width: 600px) {
    .filter-bar {
        gap: 16px;
        overflow-x: auto;
        justify-content: flex-start;
        padding-bottom: 15px;
    }
    .filter-btn {
        flex-shrink: 0;
        font-size: 0.8rem;
    }
}

.menu-title {
    font-size: 5rem;
    font-weight: 400;
    color: var(--accent);
    margin-bottom: 20px;
}
.menu-subtitle {
    font-size: 1rem;
    letter-spacing: 0.3em;
    font-weight: 400;
    color: var(--text-muted);
    text-transform: uppercase;
}
.menu-category-section {
    padding: 60px 0;
    border-bottom: 1px solid rgba(239, 233, 219, 0.05);
}
.menu-category-section:last-of-type {
    border-bottom: none;
}
.menu-category-title {
    font-size: 3.5rem;
    font-weight: 400;
    color: var(--accent);
    margin-bottom: 40px;
    text-align: center;
}
.menu-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px 80px;
    max-width: 900px;
    margin: 0 auto;
}
.menu-item {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    border-bottom: 1px dashed rgba(239, 233, 219, 0.1);
    padding-bottom: 8px;
}
.menu-item-name {
    font-size: 1.25rem;
    font-family: var(--font-serif);
    color: var(--text-primary);
    transition: color 0.3s ease;
}
.menu-item-name:has(.veg) {
    color: #FFFFFF;
}
.menu-item-name:has(.non-veg) {
    color: #FFFFFF;
}
.menu-item-name:has(.egg) {
    color: #FFFFFF;
}
.menu-item-price {
    font-size: 1.1rem;
    font-family: var(--font-sans);
    color: var(--accent);
    letter-spacing: 0.05em;
}
.diet-indicator {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    border: 2px solid;
    background-color: #fff;
    border-radius: 2px;
    margin-right: 12px;
    vertical-align: text-bottom;
}
.diet-indicator::after {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
}
.veg {
    border-color: #4CAF50;
}
.veg::after {
    background-color: #4CAF50;
}
.non-veg {
    border-color: #F44336;
}
.non-veg::after {
    background-color: #F44336;
}
.egg {
    border-color: #FFC107;
}
.egg::after {
    background-color: #FFC107;
}
@media (max-width: 768px) {
    .menu-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .menu-title { font-size: 3.5rem; }
    .menu-category-title { font-size: 2.5rem; }
}

/* Social Buttons */
.social-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background-color: #000000;
    color: #FFFFFF;
    height: 50px;
    padding: 0 24px;
    border-radius: 25px;
    text-decoration: none;
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 15px;
    letter-spacing: 0.05em;
    border: 1px solid rgba(255,255,255,0.1);
    transition: transform 0.2s, box-shadow 0.2s;
}
.social-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
}
.social-btn svg {
    width: 24px;
    height: 24px;
}
.social-btn.zomato {
    background-color: #000000; /* As requested, black background for Zomato */
}
.social-btn.zomato span {
    font-family: system-ui, -apple-system, sans-serif;
    font-size: 26px;
    font-weight: 900;
    font-style: italic;
    color: #FFFFFF; /* White Zomato text */
    letter-spacing: -1.2px;
    line-height: 1;
    padding-bottom: 2px;
}

/* Animations */
.reveal {
    opacity: 0;
    transition: all 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.up {
    transform: translateY(40px);
}
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}
.delay-1 { transition-delay: 0.2s; }
.delay-2 { transition-delay: 0.4s; }

/* Responsive */
@media (max-width: 768px) {
    .hero-title { font-size: 4.5rem; }
    .hero-subtitle { font-size: 0.85rem; }
    
    .nav-logo-fade, .sticky-logo { display: none !important; }
    .navbar { padding: 16px 0; background-color: transparent !important; border: none !important; }
    .navbar.scrolled { background-color: transparent !important; border-bottom: none !important; }
    .nav-container { flex-direction: row; justify-content: center; gap: 0; }
    .nav-links { 
        display: flex; 
        justify-content: center; 
        flex-wrap: wrap;
        gap: 16px; 
        width: 100%; 
    }
    .nav-links a { font-size: 0.65rem; }
    
    .desktop-only { display: none !important; }
    
    .mobile-fixed-btn {
        display: inline-block;
        position: fixed;
        bottom: 0;
        left: 0;
        transform: none;
        width: 100%;
        text-align: center;
        padding: 18px 0;
        font-size: 0.9rem;
        z-index: 2000;
        border-radius: 0;
        box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.5);
    }
    .mobile-fixed-btn:hover {
        transform: none;
        opacity: 0.9;
    }

    .section-spacing { padding: 100px 0; }
    .section-heading { font-size: 2.2rem; }

    /* Force all 3 social buttons into one line */
    .footer-links {
        gap: 8px !important;
        flex-wrap: nowrap !important;
        justify-content: center;
        width: 100%;
        padding: 0 10px;
    }
    .social-btn {
        height: 38px;
        padding: 0 10px;
        gap: 6px;
        border-radius: 19px;
        font-size: 10px;
        letter-spacing: 0.02em;
        flex: 1; /* Stretch buttons evenly */
        min-width: 0; /* Allow shrinking below content size if necessary */
    }
    .social-btn svg {
        width: 16px;
        height: 16px;
        flex-shrink: 0;
    }
    .social-btn.zomato span {
        font-size: 18px;
        letter-spacing: -0.5px;
    }
}

