/* ==========================================================================
   Variables & Reset (Custom Color Palette Matching Your Brand Logo)
   ========================================================================== */
:root {
    --primary-color: #0a2d54;    /* Deep Royal Navy Blue (Matches logo bg) */
    --accent-color: #c99b3b;     /* Elegant Antique Gold (Matches logo text) */
    --accent-hover: #b5872a;     /* Slightly deeper bronze-gold */
    --bg-light: #fbfaf7;         /* Soft Bone-China Ivory */
    --bg-white: #ffffff;
    --text-dark: #202b38;        /* Soft navy-black for body text */
    --text-light: #ffffff;       /* Pure white matching your logo frames */
    --text-muted: #5e6875;
    --border-color: #e5dec9;     /* Warm gold-toned borders */
    
    --font-heading: 'Cinzel', Georgia, serif;               /* Matches logo all-caps */
    --font-accent: 'Cormorant Garamond', Georgia, serif;    /* Matches logo's italic "of" */
    --font-body: 'Montserrat', Arial, sans-serif;
    
    --header-height: 80px;       /* Reduced from 90px to compress header empty space */
    --transition-fast: 0.3s ease;
    --transition-normal: 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-height);
    width: 100%;
}

body {
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-light);
    overflow-x: hidden;
    position: relative;
    width: 100%;
}

/* Helper to prevent standard mobile background scrolling when nav menu is active */
body.menu-open {
    overflow: hidden;
    height: 100vh;
}

/* ==========================================================================
   Utility Styles
   ========================================================================== */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.section-padding {
    padding: 100px 0;
}

.relative-z {
    position: relative;
    z-index: 5;
}

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

ul {
    list-style: none;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

/* Common Section Headers */
.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 60px auto;
}

.section-tagline {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 4px;
    color: var(--accent-color);
    display: block;
    margin-bottom: 12px;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 36px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 16px;
    line-height: 1.3;
}

.section-subtitle-text {
    font-size: 14px;
    color: var(--text-muted);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 20px 30px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-radius: 0;
    cursor: pointer;
    transition: var(--transition-fast);
    border: 1px solid transparent;
}

.btn-blue {
    background-color: var(--primary-color);
    color: var(--text-light);
    border: 1px solid var(--primary-color);
}

.btn-blue:hover {
    background-color: var(--bg-white);
    border-color: var(--text-light);
    color: var(--primary-color);
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--text-light);
}

.btn-primary:hover {
    background-color: var(--accent-hover);
}

.btn-secondary {
    background-color: transparent;
    border-color: var(--text-light);
    color: var(--text-light);
}

.btn-secondary:hover {
    background-color: var(--text-light);
    color: var(--primary-color);
    border-color: var(--text-light);
}

/* ==========================================================================
   Header & Centered Brand Logo Reconstructed
   ========================================================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background-color: var(--primary-color);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    z-index: 1000;
}

.nav-container {
    height: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;     /* Establishes positioning anchor for absolute centered logo */
}

/* Styled specifically to mimic the physical logo uploaded */
.brand-logo {
    position: absolute;     /* Absolute positioning bypasses flex margins completely */
    left: 50%;              /* Places left edge exactly at 50% of screen */
    transform: translateX(-50%); /* Shifts it left by half of its own width, centering it perfectly */
    display: flex;
    flex-direction: column;
    align-items: center;
    border: 3px solid var(--text-light);
    outline: 1px solid var(--text-light);
    outline-offset: -5px;   /* Replicates double white border inset */
    padding: 8px 18px;      /* Reduced vertical padding from 10px to 8px to fit 80px header */
    background-color: var(--primary-color);
    text-align: center;
    z-index: 1002;          /* Keeps logo box sitting safely above neighboring elements */
}

.logo-top {
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 2.5px;
    color: var(--accent-color);
    line-height: 1;
}

.logo-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin: 4px 0;
}

.logo-line {
    flex-grow: 1;
    height: 1.5px;
    background-color: var(--accent-color);
    max-width: 60px;
}

.logo-of {
    font-family: var(--font-accent);
    font-style: italic;
    font-size: 15px;
    color: var(--accent-color);
    margin: 0 8px;
    text-transform: lowercase;
    line-height: 0.8;
}

.logo-bottom {
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 3.5px;
    color: var(--accent-color);
    line-height: 1;
}

/* Beautiful framed brand box matching your visual signage exactly */
.hero-brand-box {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    border: 3px solid var(--text-light);
    outline: 1px solid var(--text-light);
    outline-offset: -5px;
    padding: 18px 32px;
    background-color: var(--primary-color);
    text-align: center;
    margin-bottom: 30px;
}

.big-logo-top {
    font-family: var(--font-heading);
    font-size: 25px;
    font-weight: 700;
    letter-spacing: 3.5px;
    color: var(--accent-color);
    line-height: 1;
}

.big-logo-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin: 4px 0;
}

.big-logo-line {
    flex-grow: 1;
    height: 1.5px;
    background-color: var(--accent-color);
    max-width: 125px;
    min-width: 40px;
}

.big-logo-of {
    font-family: var(--font-accent);
    font-style: italic;
    font-size: 20px;
    color: var(--accent-color);
    margin: 0 8px;
    text-transform: lowercase;
    line-height: 0.8;
}

.big-logo-bottom {
    font-family: var(--font-heading);
    font-size: 25px;
    font-weight: 700;
    letter-spacing: 3.5px;
    color: var(--accent-color);
    line-height: 1;
}

/* ==========================================================================
   Header Social Icons
   ========================================================================== */
.header-socials {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-left: 0;
    margin-right: 0;
    z-index: 1001;
}

.header-socials a {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: var(--transition-fast);
    background-color: rgba(255, 255, 255, 0.02);
}

.header-socials a:hover {
    color: var(--accent-color);
    border-color: var(--accent-color);
    background-color: rgba(255, 255, 255, 0.05);
    transform: translateY(-2px);
}

/* Facebook Hover - Classic Brand Blue */
.header-socials a.social-fb {
    background-color: #1877f2;
    color: #ffffff;
    border-color: #1877f2;
}

.header-socials a.social-fb:hover {
    background-color: #1877f2;
    color: #ffffff;
    border-color: #1877f2;
    transform: translateY(-5px);
}

/* Instagram Default & Hover States */
.header-socials a.social-ig {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: #ffffff;
    border-color: transparent;
}

.header-socials a.social-ig:hover {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: #ffffff;
    border-color: transparent;
    transform: translateY(-5px);
}

/* Navigation Links */
.nav-links {
    display: flex;
    gap: 32px;
}

.nav-link {
    color: rgba(255, 255, 255, 0.8);
    font-size: 13px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: 8px 0;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: var(--transition-fast);
}

.nav-link:hover {
    color: var(--text-light);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link.active {
    color: var(--accent-color);
}

/* Hamburger menu button */
.hamburger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
    z-index: 1001;
    position: relative;
    padding: 10px;
    flex-shrink: 0;
}

.bar {
    width: 25px;
    height: 2px;
    background-color: var(--text-light);
    transition: var(--transition-fast);
}

/* Hidden on desktop; only active on mobile breakpoint */
.hamburger-wrapper {
    display: none;
}

/* ==========================================================================
   Hero Section (Pure CSS Crossfade Slideshow Enabled)
   ========================================================================== */
.hero {
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--text-light);
    text-align: center;
    
    /* 18-second infinite loop (6 seconds per image including crossfades) */
    animation: daySlideshow 18s infinite ease-in-out; 
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(10, 45, 84, 0.65), rgba(10, 45, 84, 0.75));
}

.hero-content {
    position: relative;
    z-index: 5;
    max-width: 800px;
    padding: 0 24px;
}

.hero-subtitle {
    font-family: var(--font-accent);
    font-style: italic;
    font-size: 25px;
    color: var(--accent-color);
    display: block;
    margin-bottom: 15px;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 44px;
    line-height: 1.25;
    margin-bottom: 24px;
    font-weight: 700;
    letter-spacing: 1px;
}

.hero-description {
    font-size: 16px;
    max-width: 600px;
    margin: 0 auto 30px auto;
    font-weight: 300;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.9);
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
    animation: bounce 2s infinite;
}

.scroll-indicator a {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.6);
}

.scroll-indicator a:hover {
    color: var(--accent-color);
}

/* Daytime Slideshow Keyframes (3-Image Cycle) */
@keyframes daySlideshow {
    0%, 28% { background-image: url('images/hero.jpg'); }
    33%, 61% { background-image: url('images/breakfast.jpg'); }
    66%, 95% { background-image: url('images/afternoon-tea.jpg'); }
    100% { background-image: url('images/hero.jpg'); }
}

/* Evening Slideshow Keyframes (3-Image Cycle) */
@keyframes eveningSlideshow {
    0%, 28% { background-image: url('images/bar.jpg'); }
    33%, 61% { background-image: url('images/wine.jpg'); }
    66%, 95% { background-image: url('images/cocktails.jpg'); }
    100% { background-image: url('images/bar.jpg'); }
}

/* ==========================================================================
   Hero & About Merged Section
   ========================================================================== */
.hero-about {
    padding-top: calc(var(--header-height) + 60px); /* Keeps content clear of fixed navbar */
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-about-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr; /* Image on left (1fr), narrative text on right (1.2fr) */
    gap: 80px;
    align-items: start;
}

.hero-about-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.hero-subtitle {
    font-family: var(--font-accent);
    font-style: italic;
    font-size: 25px;
    color: var(--accent-color);
    display: block;
    margin-bottom: 15px;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 44px;
    line-height: 1.25;
    margin-bottom: 24px;
    font-weight: 700;
    letter-spacing: 1px;
}

/*
.hero-about-text .hero-subtitle {
    margin-bottom: 12px;
}

.hero-about-text .hero-title {
    margin-bottom: 24px;
}
*/

.hero-about-text .section-desc {
    margin-bottom: 20px;
    font-size: 15px;
    color: var(--text-muted);
}

.hero-about-text .hero-buttons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.hero-about-media {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

/* ==========================================================================
   About Us Section
   ========================================================================== */
.about {
    background-color: var(--bg-white);
}

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

.about-image-wrapper {
    position: relative;
    /* 18-second infinite loop (6 seconds per image including crossfades) */
}

.about-img {
    width: 100%;
    height: 520px;
    object-fit: cover;
    border: 1px solid var(--border-color);
    box-shadow: 20px 20px 0px var(--bg-light);
}

.about-badge {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background-color: var(--primary-color);
    color: var(--text-light);
    padding: 30px;
    border-left: 5px solid var(--accent-color);
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.150);
    z-index: 10;
}

.badge-num {
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 700;
    color: var(--accent-color);
    display: block;
    line-height: 1;
}

.badge-text {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: 5px;
    display: block;
}

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

.section-desc {
    color: var(--text-muted);
    margin-bottom: 24px;
    font-size: 15px;
}

.about-features {
    margin-top: 10px;
    display: grid;
    gap: 24px;
}

.feature-item {
    display: flex;
    gap: 20px;
}

.feature-item i {
    font-size: 22px;
    color: var(--accent-color);
    margin-top: 3px;
}

.feature-item h4 {
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 6px;
    letter-spacing: 1px;
}

.feature-item p {
    color: var(--text-muted);
    font-size: 14px;
}

/* ==========================================================================
   Specialities Section
   ========================================================================== */
.specialities {
    background-color: var(--bg-white);
    border-top: 1px solid var(--border-color);
}

.speciality-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr));
    gap: 40px;
}

.speciality-card {
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    transition: var(--transition-normal);
    display: flex;
    flex-direction: column;
}

.speciality-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(10, 45, 84, 0.08);
    border-color: var(--accent-color);
}

.speciality-img-wrapper {
    position: relative;
    overflow: hidden;
    height: 280px;
}

.speciality-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-normal);
}

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

.speciality-info {
    padding: 35px 30px;
    text-align: center;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.speciality-tag {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent-color);
    font-weight: 600;
    margin-bottom: 12px;
    display: block;
}

.speciality-card-title {
    font-family: var(--font-heading);
    font-size: 21px;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: 600;
}

.speciality-card-desc {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.7;
}

/* ==========================================================================
   Menu Section
   ========================================================================== */
.menu {
    background-color: var(--bg-light);
    border-top: 1px solid var(--border-color);
}

.menu-tabs-container {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.menu-tab {
    background: transparent;
    border: none;
    outline: none;
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: 6px 14px;
    cursor: pointer;
    color: var(--text-muted);
    border-bottom: 2px solid transparent;
    transition: var(--transition-fast);
}

.menu-tab:hover,
.menu-tab.active {
    color: var(--primary-color);
    border-bottom-color: var(--accent-color);
    font-size: 16px;
    font-weight: 800;
}

.menu-category {
    display: none;
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.menu-category.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.menu-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px 30px;
}

.menu-item {
    border-bottom: 1px dashed var(--border-color);
    padding-bottom: 1px;
}

.menu-item-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 8px;
}

.menu-item-name {
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 600;
    color: var(--primary-color);
}

.menu-item-price {
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 600;
    color: var(--accent-color);
}

.menu-item-desc {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
    white-space: pre-line; /* PRESERVES GOOGLE SHEETS MULTI-LINE TEXT BREAKS NATIVELY */
}

/* ==========================================================================
   Gallery Section
   ========================================================================== */
.gallery {
    background-color: var(--bg-white);
    border-top: 1px solid var(--border-color);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
    gap: 20px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    height: 280px;
    border: 1px solid var(--border-color);
}

.gallery-img-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

.gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-normal);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(10, 45, 84, 0.7);
    opacity: 0;
    transition: var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-item:hover .gallery-img {
    transform: scale(1.05);
}

.gallery-overlay i {
    color: var(--accent-color);
    font-size: 24px;
    transform: scale(0.8);
    transition: var(--transition-fast);
}

.gallery-item:hover .gallery-overlay i {
    transform: scale(1);
}

/* ==========================================================================
   Opening Hours Section (Perfectly Aligned 3-Column Grid)
   ========================================================================== */
.hours {
    position: relative;
    background-image: url('images/hero.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.hours-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(10, 45, 84, 0.85);
}

.hours-box {
    background-color: var(--primary-color);
    max-width: 650px;
    margin: 0 auto;
    padding: 60px;
    color: var(--text-light);
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.hours-box .section-title {
    color: var(--text-light);
    margin-bottom: 40px;
}

.hours-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.hours-row {
    display: grid;
    /* Defines exactly three columns: 100px for the day, and two equal columns for the times */
    grid-template-columns: 100px 1fr 1fr;
    gap: 20px;
    padding-bottom: 5px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    text-align: left; /* Left align for clean tabular flow */
    align-items: center;
}

/* Header row styling overrides */
.hours-row.header-row {
    text-align: left;
}

.hours-row .day {
    font-family: var(--font-heading);
    font-size: 13px;
    letter-spacing: 1px;
}

.hours-row .time {
    color: var(--accent-color);
    font-weight: 500;
    font-size: 13px;
}

.hours-row.highlight {
    border-bottom-color: var(--accent-color);
}

.hours-row.highlight .day,
.hours-row.highlight .time {
    font-weight: 600;
    color: var(--accent-color);
}

.hours-note {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
}

.hours-note i {
    color: var(--accent-color);
    margin-right: 5px;
}

/* Responsive Gaps for Hours */
@media (max-width: 768px) {
    .hours-box {
        padding: 40px 20px;
    }
}

@media (max-width: 480px) {
    .hours-box {
        padding: 40px 15px; /* Compresses box padding on small mobile screens */
    }

    .hours-row {
        grid-template-columns: 80px 1fr 1fr; /* Narrower columns to prevent layout breakages */
        gap: 10px;
        font-size: 11.5px; /* Marginally tighter font size to fit A4/Letter ratios */
    }

    .hours-row .day {
        font-size: 11.5px;
    }

    .hours-row .time {
        font-size: 11px;
    }
}

/* ==========================================================================
   Contact Section
   ========================================================================== */
.contact {
    background-color: var(--bg-white);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 80px;
    align-items: flex-start;
}

.contact-heading {
    font-family: var(--font-heading);
    font-size: 24px;
    color: var(--primary-color);
    margin-bottom: 16px;
    letter-spacing: 1px;
}

.contact-intro {
    color: var(--text-muted);
    margin-bottom: 40px;
}

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

.info-item {
    display: flex;
    gap: 20px;
}

.info-item i {
    font-size: 18px;
    color: var(--accent-color);
    margin-top: 4px;
}

.info-item h4 {
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 4px;
    letter-spacing: 1px;
}

.info-item p {
    color: var(--text-muted);
    font-size: 14px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    color: var(--primary-color);
}

.social-links a:hover {
    background-color: var(--primary-color);
    color: var(--text-light);
    border-color: var(--primary-color);
}

/* ==========================================================================
   Form Styles
   ========================================================================== */
.contact-form-container {
    background-color: var(--bg-light);
    padding: 25px;
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.03);
    position: relative;
    min-height: 450px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    transition: opacity var(--transition-fast);
}

.form-group-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--primary-color);
}

/* Force inputs and textareas to always stretch to 100% of parent on all viewports */
.form-group input,
.form-group textarea,
.contact-form select {
    width: 100%;
    min-width: 0;
    height: 50px;
    padding: 14px;
    font-family: var(--font-body);
    font-size: 14px;
    border: 1px solid var(--border-color);
    background-color: var(--bg-white);
    outline: none;
    transition: var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus,
.contact-form select:focus {
    border-color: var(--accent-color);
}

/* Custom styling for native date & time pickers to prevent browser-native padding bloating */
input[type="date"],
input[type="time"] {
    display: block;    /* Overrides mobile WebKit native inline-flex user-agent layouts */
    width: 100% !important;
    min-width: 0;
    height: 50px;
    padding: 0 14px;   /* Removes vertical padding completely, letting height: 50px center placeholder */
    line-height: 50px;
    box-sizing: border-box;
}

/* Dynamic Booking Fields Grid Layout - 2 columns for perfect horizontal clearance */
.booking-fields-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* 2 columns to give date/time inputs ample room */
    gap: 20px;
    transition: opacity var(--transition-fast), transform var(--transition-fast);
}

/* Force the 3rd item (Guests input) to span cleanly across both columns */
.booking-fields-grid .form-group:nth-child(3) {
    grid-column: span 2;
}

.booking-fields-grid.hidden {
    display: none !important;
}

.btn-submit {
    align-self: flex-start;
    padding: 16px 40px;
}

/* Form Success State */
.hidden {
    display: none !important;
}

.form-success-msg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    width: 80%;
}

.form-success-msg i {
    font-size: 54px;
    color: var(--accent-color);
    margin-bottom: 20px;
}

.form-success-msg h4 {
    font-family: var(--font-heading);
    font-size: 26px;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.form-success-msg p {
    color: var(--text-muted);
}

/* ==========================================================================
   Footer Section
   ========================================================================== */
.footer {
    background-color: var(--primary-color);
    color: rgba(255, 255, 255, 0.6);
    padding: 50px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-logo {
    color: var(--text-light);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 2px;
}

.footer-copy {
    font-size: 12px;
    font-style: italic;
}

/* ==========================================================================
   Back to Top Button
   ========================================================================== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: var(--primary-color);
    color: var(--accent-color);
    border: 1px solid var(--accent-color);
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-fast);
    z-index: 999;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: var(--accent-color);
    color: var(--text-light);
}

@media (max-width: 480px) {
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 38px;
        height: 38px;
    }
}

/* ==========================================================================
   Medium Desktops (Prevents menu items from wrapping on smaller laptops)
   ========================================================================== */
@media (min-width: 1101px) and (max-width: 1250px) {
    .nav-links {
        gap: 16px; /* Compresses gaps from 32px to 16px to save space */
    }
    .nav-link {
        font-size: 11px; /* Slightly smaller text */
        letter-spacing: 1px;
    }
    .header-socials {
        gap: 10px; /* Tighter social gaps */
    }
    .brand-logo {
        padding: 8px 12px; /* Marginally smaller logo borders */
    }
}

/* ==========================================================================
   Responsive Media Queries
   ========================================================================== */
@media (max-width: 1024px) {
    .hero-about-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    .about-img {
        height: 450px;
    }
}

/* ==========================================================================
   Mobile Header & Navigation Breakpoint (Now triggers at 1100px)
   ========================================================================== */
@media (max-width: 1100px) {
    /* Navbar Toggle */
    .hamburger {
        display: flex;
    }

    .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);
    }

    /* Navbar Toggle */
    .hamburger-wrapper {
        display: flex;
        flex: 1 1 0%;          /* Takes up 1/3 of the navbar on mobile */
        justify-content: flex-end; /* Aligns hamburger to the far right */
        z-index: 1001;
    }

    /* KEEP logo absolutely centered on mobile viewports as well */
    .brand-logo {
        position: absolute;     /* Locks logo to absolute coordinate space on mobile too */
        left: 50%;              /* Places left edge exactly at 50% of screen */
        transform: translateX(-50%); /* Shifts it left by half of its own width, centering it perfectly */
        z-index: 1002;          /* Keeps logo box sitting safely above neighboring elements */
    }

    .nav-container {
        display: flex;
        justify-content: space-between;
        align-items: center;
        position: relative;     /* Essential for mobile absolute centering */
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: var(--header-height);
        width: 100%;
        height: calc(100vh - var(--header-height));
        background-color: var(--primary-color);
        transition: var(--transition-normal);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch; /* ENABLES smooth, native momentum scrolling on iOS Safari */
        flex: none; /* Disables flex cell settings inside mobile overlay */
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-links {
        flex-direction: column;
        align-items: center;
        padding: 30px 0; /* Reduced from 50px to save vertical space on mobile */
        gap: 20px;       /* Reduced from 35px to fit all links cleanly on one screen */
    }

    .nav-link {
        font-size: 16px;
        padding: 10px 0;
        display: block;
        width: 100%;
        text-align: center;
    }

    /* Collapse the absolute positioning on mobile to let links flow vertically */
    .dropdown-menu {
        position: static;
        transform: none;
        opacity: 1;
        visibility: visible;
        border: none;
        box-shadow: none;
        padding: 5px 0 0 0; /* Reduced top padding */
        gap: 12px;          /* Compressed gap between sub-menu items slightly */
        background-color: transparent;
        text-align: center;
        width: 100%;
    }

    .nav-dropdown:hover .dropdown-menu {
        transform: none;
    }

    .nav-link-sub {
        font-size: 14px;
        padding: 8px 0; /* Marginally tighter padding for mobile taps */
    }

    /* Hide the small desktop chevron icon on vertical mobile menus */
    .nav-dropdown .dropdown-toggle i {
        display: none;
    }

    .header-socials {
        flex: 1 1 0%;
        display: flex;
        justify-content: flex-start;
        margin-right: 0; /* Clears mobile margins that were shifting the logo to the right */
    }
}

/* ==========================================================================
   Page Content Grid Breakpoint (Stays at 768px)
   ========================================================================== */
@media (max-width: 768px) {
    /* Compress extensive section padding for dynamic mobile viewports */
    .section-padding {
        padding: 60px 0;
    }

    .section-title {
        font-size: 30px;
    }

    /* About Image Responsive */
    .about-image-wrapper {
        position: relative; /* Unlocks absolute positioning for the badge */
    }
    
    .about-img {
        width: 100%;
        height: 520px;
        object-fit: cover;
        border: 1px solid var(--border-color);
        box-shadow: 20px 20px 0px var(--bg-light);
    }

    /* Contains the absolute-positioned badge cleanly inside the screen borders on mobile */
    .about-badge {
        position: absolute;
        bottom: -20px;
        right: -20px;
        background-color: var(--primary-color);
        color: var(--text-light);
        padding: 30px;
        border-left: 5px solid var(--accent-color);
        text-align: center;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
        z-index: 10;
    }

    /* Menu Responsive */
    .menu-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    /* Contact Responsive */
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    
    .contact-form-container {
        padding: 30px 20px;
        min-height: auto;
    }
    
    .form-group-row {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    /* Stacks date, time, and guest inputs vertically on all mobile/tablet viewports to prevent layout spills */
    .booking-fields-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    /* Reset the column span to 1 so the Guests input behaves normally on mobile */
    .booking-fields-grid .form-group:nth-child(3) {
        grid-column: span 1;
    }

    .hours-box {
        padding: 40px 20px;
    }

    /* Footer Responsive */
    .footer-content {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    /* Automatically converts your gallery grid into a native horizontal swipe track */
    .gallery-grid {
        display: flex;                  /* Switches grid to a single horizontal row */
        overflow-x: auto;               /* Enables horizontal swipe scrolling */
        scroll-snap-type: x mandatory;   /* Forces the browser to snap perfectly to the next image */
        -webkit-overflow-scrolling: touch; /* Unlocks smooth native swipe momentum on iOS Safari */
        gap: 15px;
        padding-bottom: 15px;           /* Subtle spacing beneath the slider */
        scrollbar-width: none;          /* Hides ugly scrollbar on Firefox */
    }

    /* Hide the scrollbar completely on WebKit browsers (Safari/Chrome) for a cleaner look */
    .gallery-grid::-webkit-scrollbar {
        display: none;
    }

    .gallery-item {
        flex: 0 0 270px;                /* Forces each slide to remain exactly 270px wide */
        height: 270px;                  /* Keeps them as clean, uniform squares */
        scroll-snap-align: start;       /* Sets the point where the image snaps to on the screen */
        border-radius: 0;
    }
}

/* ==========================================================================
   Scroll Reveal Animations
   ========================================================================== */

/* Fade and Slide Up effect */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1), 
                transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
    will-change: opacity, transform;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Elegant Scale/Zoom effect */
.reveal-zoom {
    opacity: 0;
    transform: scale(0.93);
    transition: opacity 1s cubic-bezier(0.25, 1, 0.5, 1), 
                transform 1s cubic-bezier(0.25, 1, 0.5, 1);
    will-change: opacity, transform;
}

.reveal-zoom.active {
    opacity: 1;
    transform: scale(1);
}

/* Dietary Quick-Filter Buttons */
.filter-tag-btn {
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    color: var(--text-dark);
    padding: 6px 14px;
    font-size: 10px;
    font-family: var(--font-body);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: var(--transition-fast);
}

.filter-tag-btn.active,
.filter-tag-btn:hover {
    background-color: var(--accent-color);
    color: var(--text-light);
    border-color: var(--accent-color);
}

/* Menu Subcategory Headers */
.menu-subcategory-header {
    grid-column: 1 / -1; /* Forces the header to stretch across both columns */
    margin-top: 50px;
    margin-bottom: 25px;
}

/* If the header is the very first item inside the grid, remove the top margin gap */
.menu-grid > .menu-subcategory-header:first-child {
    margin-top: 0;
}

.menu-subcategory-header h3 {
    font-family: var(--font-heading);
    color: var(--accent-color);
    font-size: 20px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 8px;
}

@media (max-width: 480px) {
    :root {
        --header-height: 80px;
    }

    .section-title {
        font-size: 26px;
    }
    
    .hero-title {
        font-size: 28px;
    }

    /* Keep logo centered on small mobile screens */
    .brand-logo {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        padding: 6px 12px;
        outline-offset: -3px;
    }

    .logo-top {
        font-size: 11px;
        letter-spacing: 1.5px;
    }

    .logo-bottom {
        font-size: 10px;
        letter-spacing: 2px;
    }

    .logo-of {
        font-size: 12px;
        margin: 0 4px;
    }

    .hero-brand-box {
        padding: 12px 20px;
        margin-bottom: 20px;
    }

    .big-logo-top {
        font-size: 18px;
        letter-spacing: 1.5px;
    }
    
    .big-logo-of {
        font-size: 15px;
    }
    
    .big-logo-bottom {
        font-size: 18px;
        letter-spacing: 2px;
    }

    #openStatusBadge {
        font-size: 12px !important;
    }
    
    #openStatusBadge span {
        padding: 4px 10px !important;
    }

    .form-group input,
    .form-group textarea,
    .contact-form select {
        font-size: 16px;
    }

    .header-socials {
        gap: 10px;
        margin-right: 0; /* Clears mobile margin-right that was shifting the logo to the right */
    }
    
    .header-socials a {
        width: 30px;
        height: 30px;
        font-size: 12px;
    }

    input[type="date"],
    input[type="time"] {
        display: block;    /* Overrides mobile WebKit native inline-flex user-agent layouts */
        width: 100% !important;
        min-width: 0;
        height: 50px;
        padding: 0;   /* Removes vertical padding completely, letting height: 50px center placeholder */
        line-height: 50px;
        box-sizing: border-box;
    }  
}

/* ==========================================================================
   Navigation Dropdown Menu
   ========================================================================== */
.nav-dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background-color: var(--primary-color);
    border: 1px solid var(--border-color);
    padding: 10px 0;
    min-width: 170px;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-fast);
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

/* Hover reveal trigger on desktop */
.nav-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.nav-link-sub {
    color: rgba(255, 255, 255, 0.8);
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 10px 20px;
    display: block;
    transition: var(--transition-fast);
}

.nav-link-sub:hover {
    color: var(--accent-color);
    background-color: rgba(255, 255, 255, 0.04);
}

/* ==========================================================================
   Header / Section Title PDF Links
   ========================================================================== */
.title-pdf-link {
    font-size: 22px;              /* Keeps the icon proportionate to the 36px title */
    color: var(--accent-color);   /* Brand Gold */
    margin-left: 12px;
    display: inline-block;
    vertical-align: middle;       /* Vertically centers the icon with your text */
    transition: var(--transition-fast);
}

.title-pdf-link:hover {
    color: var(--accent-hover);   /* Darker Gold on hover */
    transform: scale(1.1) translateY(-2px); /* Subtle hover lift effect */
}

/* ==========================================================================
   Interactive Photo Lightbox
   ========================================================================= */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(10, 20, 36, 0.95); /* Deep dark background */
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-fast);
}

.lightbox.show {
    opacity: 1;
    visibility: visible;
}

.lightbox-content {
    max-width: 85%;
    max-height: 80%;
    border: 3px solid var(--accent-color);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    transform: scale(0.95);
    transition: var(--transition-normal);
}

.lightbox.show .lightbox-content {
    transform: scale(1);
}

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 40px;
    color: var(--text-light);
    font-size: 40px;
    font-weight: 300;
    cursor: pointer;
    transition: var(--transition-fast);
}

.lightbox-close:hover {
    color: var(--accent-color);
}

/* ==========================================================================
   Drawing Room by Night - Theme Overrides
   ========================================================================== */
body.night-mode {
    /* Transitions day shades into cozy midnight blue, gold & warm ivory */
    --primary-color: #051329;    /* Deeper midnight navy */
    --bg-light: #080d1a;         /* Dark velvet night background */
    --bg-white: #0c1424;         /* Soft slate container background */
    --text-dark: #f5f5f7;        /* Soft readability white text */
    --text-muted: #a0aec0;       /* Muted silver grey */
    --border-color: #1e2d42;     /* Subtle midnight dark borders */
}

/* Specific background updates for the evening page using CSS keyframes slideshow */
body.night-mode .hero {
    /* 18-second infinite loop for evening images */
    animation: eveningSlideshow 18s infinite ease-in-out;
}

body.night-mode .hours {
    /* Warm ambient bar image for the hours section background */
    background-image: url('images/wine.jpg');
}

/* Fixes default focus styling for dark inputs */
body.night-mode .form-group input,
body.night-mode .form-group textarea,
body.night-mode .contact-form select {
    background-color: #080d1a;
    color: var(--text-light);
    border-color: #1e2d42;
}

body.night-mode .form-group input:focus,
body.night-mode .form-group textarea:focus,
body.night-mode .contact-form select:focus {
    border-color: var(--accent-color);
}

body.night-mode .feature-item h4 {
    color: var(--accent-color);
}

/* Floating WhatsApp Button */
.whatsapp-float {
    position: fixed;
    /*bottom: 30px;
    right: 80px;*/ /* Positioned neatly next to the Back to Top button */
    bottom: 90px;
    right: 30px;
    background-color: #25d366; /* Official WhatsApp Green */
    color: #ffffff;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    cursor: pointer;
    z-index: 999;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    transition: var(--transition-fast);
    font-size: 20px;
}

.whatsapp-float:hover {
    background-color: #128c7e; /* Darker WhatsApp Teal */
    transform: translateY(-2px);
}

@media (max-width: 480px) {
    .whatsapp-float {
        /*bottom: 20px;
        right: 75px;*/ /* Offset adjusted for smaller smartphone screen borders */
        bottom: 75px;
        right: 20px;
        width: 38px;
        height: 38px;
        font-size: 18px;
    }
}

/* Adjust secondary button color boundaries on dark backdrop */
body.night-mode .btn-blue {
    background-color: var(--accent-color);
    color: var(--text-light);
    border-color: var(--accent-color);
    padding: 20px 30px;
}

body.night-mode .btn-blue:hover {
    background-color: transparent;
    color: var(--accent-color);
    border-color: var(--accent-color);
}

body.night-mode .menu-tab:hover {
    color: var(--text-light);
    border-bottom-color: var(--accent-color);
}

body.night-mode .menu-tab.active {
    color: var(--accent-color);
    border-bottom-color: var(--accent-color);
}

body.night-mode .menu-item-name {
    color: var(--accent-color);
}

body.night-mode .section-title {
    color: var(--accent-color);
}

body.night-mode .contact-heading {
    color: var(--accent-color);
}

body.night-mode .info-item h4 {
    color: var(--accent-color);
}

body.night-mode .form-group label {
    color: var(--accent-color);
}

/* ==========================================================================
   Floating Phone Call Button
   ========================================================================== */
.phone-float {
    position: fixed;
    
    /*bottom: 30px;
    right: 130px;*/ /* Aligns horizontally: 30px (Top), 90px (WhatsApp), 150px (Phone) */
    bottom: 150px;
    right: 30px;

    background-color: var(--accent-color); /* Gold background */
    color: #ffffff;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    cursor: pointer;
    z-index: 999;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    transition: var(--transition-fast);
    font-size: 16px;
}

.phone-float:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
}

@media (max-width: 480px) {
    .phone-float {
        /*bottom: 20px;
        right: 130px;*/ /* Offset adjusted to fit next to WhatsApp and Back to Top on mobile screens */
        bottom: 130px;
        right: 20px;
        width: 38px;
        height: 38px;
        font-size: 14px;
    }
}