/* Custom styles on top of Tailwind */

/* Block House Color Scheme */
:root {
    --block-red: #a02c2c;
    --block-dark-red: #8a2121;
    --block-beige: #e9d8c6; /* Updated to RGB 233,216,198 */
    --block-light-beige: #f2eae1; /* Adjusted to match new beige */
    --block-lighter-beige: #f8f3ee; /* Adjusted to match new beige */
    --block-dark: #232323;
    --block-black: #000000;
    --block-white: #ffffff;
    --block-gray: #333333;
}

/* Video background */
.video-background {
    position: fixed; /* Fixed instead of absolute to stay in place during scroll */
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
    transform: none !important; /* Ensure no transforms are applied */
}

.video-background video {
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Overlay for video */
.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(35, 35, 35, 0.7);
}

/* Enhanced video handling for mobile */
@media (max-width: 768px) {
    .video-background {
        height: 100svh; /* Use the small viewport height on mobile */
    }
    
    /* Optimize video performance on mobile */
    .video-background video {
        will-change: transform; /* Hint to browser for better performance */
        transform: translate(-50%, -50%) scale(1.2); /* Slightly larger to ensure coverage */
    }
}

/* Responsive button text size */
.responsive-btn-text {
    font-size: clamp(0.7rem, 2vw, 0.9rem);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    display: inline-block;
}

/* Button minimum width for better appearance */
.location-btn {
    min-width: 110px;
    padding-left: 0.5rem !important;
    padding-right: 0.5rem !important;
}

/* Careers Landing Page */
.careers-hero {
    position: relative;
    min-height: 60vh;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.careers-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(24, 15, 10, 0.85), rgba(24, 15, 10, 0.35));
}

.careers-hero__content {
    position: relative;
    text-align: center;
    color: #fff;
    max-width: 720px;
    padding: 3rem 1.5rem;
}

.careers-hero__kicker {
    text-transform: uppercase;
    letter-spacing: 0.25em;
    font-size: 0.9rem;
    color: #ffd8c2;
    margin-bottom: 0.75rem;
}

.bh-btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #a02c2c;
    color: #fff;
    padding: 0.9rem 2.5rem;
    border-radius: 999px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.bh-btn-primary:hover,
.bh-btn-primary:focus {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(160, 44, 44, 0.3);
}

.careers-overview {
    background-color: var(--block-lighter-beige, #f5eee4);
    padding: 4rem 0 5rem;
}

.careers-overview__header {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 3rem;
}

.careers-overview__kicker {
    text-transform: uppercase;
    letter-spacing: 0.25em;
    font-size: 0.85rem;
    color: #b25555;
    margin-bottom: 0.65rem;
}

.careers-empty {
    text-align: center;
    border: 1px dashed #d4c6b5;
    border-radius: 1rem;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.6);
    color: #5c4b3c;
}

.job-category {
    margin-bottom: 3rem;
}

.job-category__header {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-bottom: 1.5rem;
}

.job-category__icon {
    width: 56px;
    height: 56px;
    border-radius: 18px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #a02c2c;
    font-size: 1.5rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

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

.job-card {
    background: #fff;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 35px 80px rgba(12, 11, 9, 0.12);
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

.job-card__hero {
    width: 100%;
    height: 200px;
    background-size: cover;
    background-position: center;
}

.job-card__body {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    padding: 1.8rem;
}

.job-card__intro h4 {
    font-size: 1.4rem;
    margin-bottom: 0.35rem;
    color: #1b120d;
}

.job-card__intro p {
    color: #5c4b3c;
}

.job-card__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.job-card__eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: 0.75rem;
    color: #a02c2c;
}

.job-tag {
    background: rgba(160, 44, 44, 0.12);
    color: #a02c2c;
    padding: 0.3rem 0.8rem;
    border-radius: 999px;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.job-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    font-size: 0.9rem;
    color: #6b5b4b;
}

.job-card__locations {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    align-items: center;
}

.job-card__locations-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: #7a6a5b;
}

.job-card__location-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.job-chip {
    background: #f3ece0;
    border-radius: 999px;
    padding: 0.4rem 0.8rem;
    font-size: 0.85rem;
    color: #4b3b2e;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.job-chip small {
    font-size: 0.7rem;
    color: #a02c2c;
}

.job-card__content .job-card__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.2rem 1.5rem;
}

.job-card__content section h4 {
    font-weight: 600;
    color: #a02c2c;
    margin-bottom: 0.4rem;
}

.job-card__content ul {
    list-style: disc;
    padding-left: 1.2rem;
    color: #4b3b2e;
    line-height: 1.4;
}

.job-card__cta {
    background: rgba(160, 44, 44, 0.08);
    border-radius: 1rem;
    padding: 1rem 1.2rem;
    color: #4b3b2e;
}

.job-card__note {
    font-size: 0.85rem;
    color: #6b5b4b;
    margin-top: 0.35rem;
}

.job-card__footer {
    margin-top: auto;
    border-top: 1px solid #efe6d9;
    padding-top: 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: space-between;
    color: #6b5b4b;
    font-size: 0.85rem;
}

.job-card__contact a {
    color: #a02c2c;
    font-weight: 600;
    margin-left: 0.75rem;
}

.job-snippet > *:first-child {
    margin-top: 0;
}

.job-snippet > *:last-child {
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .careers-hero__content {
        padding: 2.5rem 1rem;
    }

    .job-card__body {
        padding: 1.25rem;
    }

    .job-card__hero {
        height: 160px;
    }
}

/* Force logo visibility and proper sizing on mobile - use maximum specificity */
@media only screen and (max-width: 640px) {
    /* Basic logo visibility rules - always small size */
    html body .logo-flag-container {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        position: fixed !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        top: 0 !important;
        z-index: 110 !important;
        width: 90px !important;
        height: 90px !important;
        transition: none !important;
        will-change: auto !important;
        animation: none !important;
    }
    
    /* Force consistent styles on all child elements of the logo container */
    html body .logo-flag-container * {
        transition: none !important;
        animation: none !important;
        visibility: visible !important;
        display: block !important;
    }
    
    /* Make sure the logo image itself is visible */
    html body .logo-flag-container img.logo-flag-image {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        max-width: 85% !important;
        max-height: 85% !important;
        margin: 0 auto !important;
        padding-top: 10px !important;
    }
}

/* Language selector */
.language-selector img {
    width: 24px;
    height: 16px;
    margin-right: 5px;
}

/* Hybrid flag approach - using real PNG images with custom styling */
.flag-icon {
    position: relative;
    display: inline-block;
    box-shadow: 0 1px 2px rgba(0,0,0,0.2);
    border-radius: 2px;
    overflow: hidden;
}

/* Use the PNG images with proper visibility */
.flag-icon img {
    opacity: 1 !important;
    object-fit: cover;
    display: block;
}

/* Fix for dropdown menu */
.dropdown-menu {
    display: none;
    transition: all 0.3s ease;
}

.dropdown:hover .dropdown-menu,
.dropdown-menu:hover {
    display: block;
}

/* Add a small delay before dropdown disappears and improve hover behavior */
.dropdown .dropdown-menu {
    pointer-events: none;
    opacity: 0;
    display: block;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    visibility: hidden;
}

.dropdown:hover .dropdown-menu,
.dropdown-menu:hover {
    display: block;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
    visibility: visible;
}

/* Adds a small hover area to prevent accidental menu closing */
.dropdown-menu::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 0;
    width: 100%;
    height: 10px;
}

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

/* Animation for sections when scrolling */
.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 1s ease;
    margin-top: 0 !important; /* Prevent margin from being added */
    padding-top: 0 !important; /* Prevent padding from being added */
}

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

/* Fade-down animation for welcome content (without bounce) */
@keyframes fade-down {
    0% {
        opacity: 1;
        transform: translateY(0);
    }
    90% {
        opacity: 1;
        transform: translateY(0);
    }
    100% {
        opacity: 0;
        transform: translateY(20px);
    }
}

/* Responsive button text size */
.responsive-btn-text {
    font-size: clamp(0.7rem, 2vw, 0.9rem);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    display: inline-block;
}

/* Button minimum width for better appearance */
.location-btn {
    min-width: 110px;
    padding-left: 0.5rem !important;
    padding-right: 0.5rem !important;
}

/* Force logo visibility and proper sizing on mobile - use maximum specificity */
@media only screen and (max-width: 640px) {
    /* Basic logo visibility rules - always small size */
    html body .logo-flag-container {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        position: fixed !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        top: 0 !important;
        z-index: 110 !important;
        width: 90px !important;
        height: 90px !important;
        transition: none !important;
        will-change: auto !important;
        animation: none !important;
    }
    
    /* Force consistent styles on all child elements of the logo container */
    html body .logo-flag-container * {
        transition: none !important;
        animation: none !important;
        visibility: visible !important;
        display: block !important;
    }
    
    /* Make sure the logo image itself is visible */
    html body .logo-flag-container img.logo-flag-image {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        max-width: 85% !important;
        max-height: 85% !important;
        margin: 0 auto !important;
        padding-top: 10px !important;
    }
}

.nudge-animation {
    /* Hold in place then move down and fade out */
    animation: fade-down 3s ease forwards;
}

#welcome-content {
    position: relative;
    z-index: 5;
    /* Reduced transition time by 30% (from 0.5s to 0.35s) */
    transition: opacity 0.35s ease;
}

/* Pulsating arrow animation */
@keyframes pulse {
    0% {
        transform: translateX(-50%) scale(1);
        opacity: 0.7;
    }
    50% {
        transform: translateX(-50%) scale(1.1);
        opacity: 1;
    }
    100% {
        transform: translateX(-50%) scale(1);
        opacity: 0.7;
    }
}

/* Responsive button text size */
.responsive-btn-text {
    font-size: clamp(0.7rem, 2vw, 0.9rem);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    display: inline-block;
}

/* Button minimum width for better appearance */
.location-btn {
    min-width: 110px;
    padding-left: 0.5rem !important;
    padding-right: 0.5rem !important;
}

/* Force logo visibility and proper sizing on mobile - use maximum specificity */
@media only screen and (max-width: 640px) {
    /* Basic logo visibility rules - always small size */
    html body .logo-flag-container {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        position: fixed !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        top: 0 !important;
        z-index: 110 !important;
        width: 90px !important;
        height: 90px !important;
        transition: none !important;
        will-change: auto !important;
        animation: none !important;
    }
    
    /* Force consistent styles on all child elements of the logo container */
    html body .logo-flag-container * {
        transition: none !important;
        animation: none !important;
        visibility: visible !important;
        display: block !important;
    }
    
    /* Make sure the logo image itself is visible */
    html body .logo-flag-container img.logo-flag-image {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        max-width: 85% !important;
        max-height: 85% !important;
        margin: 0 auto !important;
        padding-top: 10px !important;
    }
}

#scroll-arrow {
    animation: pulse 1s infinite ease-in-out;
}

/* Logo flag with parent div container and nested link/image structure */
.logo-flag-container {
    position: fixed; /* Fixed to stay in place when scrolling */
    top: 0; /* Attach to the very top of the site */
    left: 2.4rem; /* Position from left edge (reduced by 40% from 4rem) */
    z-index: 110; /* Adjusted z-index hierarchy: logo flag (110) above header (100) */
    height: 150px; /* Initial height */
    width: 150px; /* Initial width */
    text-align: center; /* Center text/images */
    opacity: 0; /* Start hidden */
    animation: fadeInDownLogo 1s ease 0.3s forwards; /* Delayed animation to let header load first */
    will-change: height, width, opacity; /* Performance optimization for animations */
    transition: all 0.3s ease; /* Smooth transition for all properties */
}

/* Mobile logo flag positioning and animation */
@media (max-width: 640px) {
    /* Base positioning for the logo container */
    .logo-flag-container {
        /* Center positioning */
        left: 50%;
        right: auto;
        transform: translateX(-50%);
        
        /* Clear any margins */
        margin: 0;
        
        /* Ensure transitions are smooth */
        transform-origin: center center;
        will-change: transform, width, height;
        
        /* Force these styles to take precedence */
        position: fixed !important;
        
        /* Set up the slide-in from top animation */
        animation: mobileFadeInLogo 1s ease 0.3s forwards;
        opacity: 0;
    }
    
    /* Extra space for restaurant selector on booking page */
    #page-restaurant-selector {
        margin-top: 0.75rem;
        margin-bottom: 0.75rem;
        padding-top: 0.375rem;
        padding-bottom: 0.375rem;
    }
}

/* Responsive button text size */
.responsive-btn-text {
    font-size: clamp(0.7rem, 2vw, 0.9rem);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    display: inline-block;
}

/* Button minimum width for better appearance */
.location-btn {
    min-width: 110px;
    padding-left: 0.5rem !important;
    padding-right: 0.5rem !important;
}

/* Force logo visibility and proper sizing on mobile - use maximum specificity */
@media only screen and (max-width: 640px) {
    /* Basic logo visibility rules - always small size */
    html body .logo-flag-container {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        position: fixed !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        top: 0 !important;
        z-index: 110 !important;
        width: 90px !important;
        height: 90px !important;
        transition: none !important;
        will-change: auto !important;
        animation: none !important;
    }
    
    /* Force consistent styles on all child elements of the logo container */
    html body .logo-flag-container * {
        transition: none !important;
        animation: none !important;
        visibility: visible !important;
        display: block !important;
    }
    
    /* Make sure the logo image itself is visible */
    html body .logo-flag-container img.logo-flag-image {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        max-width: 85% !important;
        max-height: 85% !important;
        margin: 0 auto !important;
        padding-top: 10px !important;
    }
}

/* Mobile-specific logo animation */
@keyframes mobileFadeInLogo {
    0% {
        transform: translate(-50%, -100%);
        opacity: 0;
    }
    20% {
        opacity: 1;
    }
    100% {
        transform: translate(-50%, 0);
        opacity: 1;
    }
}

/* Responsive button text size */
.responsive-btn-text {
    font-size: clamp(0.7rem, 2vw, 0.9rem);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    display: inline-block;
}

/* Button minimum width for better appearance */
.location-btn {
    min-width: 110px;
    padding-left: 0.5rem !important;
    padding-right: 0.5rem !important;
}

/* Force logo visibility and proper sizing on mobile - use maximum specificity */
@media only screen and (max-width: 640px) {
    /* Basic logo visibility rules - always small size */
    html body .logo-flag-container {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        position: fixed !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        top: 0 !important;
        z-index: 110 !important;
        width: 90px !important;
        height: 90px !important;
        transition: none !important;
        will-change: auto !important;
        animation: none !important;
    }
    
    /* Force consistent styles on all child elements of the logo container */
    html body .logo-flag-container * {
        transition: none !important;
        animation: none !important;
        visibility: visible !important;
        display: block !important;
    }
    
    /* Make sure the logo image itself is visible */
    html body .logo-flag-container img.logo-flag-image {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        max-width: 85% !important;
        max-height: 85% !important;
        margin: 0 auto !important;
        padding-top: 10px !important;
    }
}

/* White background element - sized to fill the container */
.logo-flag-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%; /* Will always fill the container */
    background-color: #ffffff; /* Pure white background for logo flag */
    border: 1px solid rgba(160, 44, 44, 0.1); /* Very subtle red border */
    border-top: none; /* No border on top */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1), 0 2px 4px rgba(160, 44, 44, 0.05); /* Subtle shadow */
    z-index: 1;
}

/* Link to take up appropriate space */
.logo-flag-container a {
    display: block;
    position: relative;
    z-index: 2; /* Above the background */
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: start; /* Align to top */
    padding-top: 10px; /* Space at top */
}

/* Logo image - sized relative to container */
.logo-flag-image {
    height: auto; /* Auto height based on width */
    width: 80%; /* Width as percentage of container */
    max-height: 80%; /* Never exceed 80% of container height */
    object-fit: contain; /* Maintain aspect ratio */
    transition: all 0.3s ease; /* Match container transition */
}

/* Scrolled state is now handled with JavaScript directly on elements */

/* Flag logo animation - more like block-house.de */
@keyframes fadeInDownLogo {
    0% {
        transform: translateY(-100%);
        opacity: 0;
    }
    20% {
        opacity: 1;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Responsive button text size */
.responsive-btn-text {
    font-size: clamp(0.7rem, 2vw, 0.9rem);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    display: inline-block;
}

/* Button minimum width for better appearance */
.location-btn {
    min-width: 110px;
    padding-left: 0.5rem !important;
    padding-right: 0.5rem !important;
}

/* Force logo visibility and proper sizing on mobile - use maximum specificity */
@media only screen and (max-width: 640px) {
    /* Basic logo visibility rules - always small size */
    html body .logo-flag-container {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        position: fixed !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        top: 0 !important;
        z-index: 110 !important;
        width: 90px !important;
        height: 90px !important;
        transition: none !important;
        will-change: auto !important;
        animation: none !important;
    }
    
    /* Force consistent styles on all child elements of the logo container */
    html body .logo-flag-container * {
        transition: none !important;
        animation: none !important;
        visibility: visible !important;
        display: block !important;
    }
    
    /* Make sure the logo image itself is visible */
    html body .logo-flag-container img.logo-flag-image {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        max-width: 85% !important;
        max-height: 85% !important;
        margin: 0 auto !important;
        padding-top: 10px !important;
    }
}

/* Add the flag background reveal animation */
@keyframes flagBgReveal {
    0% {
        transform: translateX(-50%) scale(0, 0);
    }
    100% {
        transform: translateX(-50%) scale(1, 1);
    }
}

/* Responsive button text size */
.responsive-btn-text {
    font-size: clamp(0.7rem, 2vw, 0.9rem);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    display: inline-block;
}

/* Button minimum width for better appearance */
.location-btn {
    min-width: 110px;
    padding-left: 0.5rem !important;
    padding-right: 0.5rem !important;
}

/* Force logo visibility and proper sizing on mobile - use maximum specificity */
@media only screen and (max-width: 640px) {
    /* Basic logo visibility rules - always small size */
    html body .logo-flag-container {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        position: fixed !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        top: 0 !important;
        z-index: 110 !important;
        width: 90px !important;
        height: 90px !important;
        transition: none !important;
        will-change: auto !important;
        animation: none !important;
    }
    
    /* Force consistent styles on all child elements of the logo container */
    html body .logo-flag-container * {
        transition: none !important;
        animation: none !important;
        visibility: visible !important;
        display: block !important;
    }
    
    /* Make sure the logo image itself is visible */
    html body .logo-flag-container img.logo-flag-image {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        max-width: 85% !important;
        max-height: 85% !important;
        margin: 0 auto !important;
        padding-top: 10px !important;
    }
}

/* Main header that transforms on scroll */
.main-header {
    background-color: var(--block-beige);
    border-bottom: 2px solid var(--block-red);
    width: 100%;
    transition: all 0.35s cubic-bezier(0.23, 1, 0.32, 1); /* Smoother transition with easing */
    will-change: padding, transform; /* Performance optimization */
}

/* Main header in scrolled state */
.main-header.scrolled {
    padding-top: 0.5rem !important;
    padding-bottom: 0.5rem !important;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Adjust the header spacer dynamically based on header state */
.main-header.scrolled ~ .header-spacer {
    height: 60px !important; /* Smaller height when header is scrolled */
    transition: height 0.35s cubic-bezier(0.23, 1, 0.32, 1);
}

/* Main header nav links */
.main-header nav a {
    transition: all 0.35s cubic-bezier(0.23, 1, 0.32, 1);
    font-size: 16px;
}

/* Main header nav links when scrolled */
.main-header.scrolled nav a {
    font-size: 14px;
}

/* Sticky mobile menu toggle */
.sticky-mobile-menu-toggle {
    z-index: 95;  /* Updated z-index hierarchy: header 100, logo 90, menu toggle 95 */
    margin-right: -8px; /* Slight adjustment for positioning */
}

/* Fix sticky header on small screens */
@media (max-width: 480px) {
    .sticky-header .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    /* Adjust main header structure for flag logo */
    .main-header .container {
        padding-top: 80px; /* Make room for the logo above */
    }
    
    /* Position flag logo for small screens - now right-aligned */
    .logo-flag {
        left: auto; /* Remove left positioning */
        right: 0; /* Align to the right */
        transform: none; /* Remove centering transform */
        top: 0; /* Position at the very top */
        z-index: 50; /* Higher z-index on mobile */
    }
    
    .logo-flag img {
        height: 80px; /* Slightly smaller logo on mobile */
        margin-top: 8px; /* Less top margin on mobile */
    }
    
    .logo-flag::after {
        width: 120px; /* Fixed width on mobile */
        top: 0; /* Connect to the very top */
        height: 145%; /* Keep same proportions */
        border-radius: 0; /* Rectangular edges */
    }
    
    /* Sticky header logo adjustments */
    .sticky-logo {
        left: 0.5rem; /* Position from left on mobile */
    }
    
    .sticky-logo img {
        height: 40px; /* Still large enough to overflow */
    }
    
    .sticky-logo::after {
        width: 65px; /* Square shape */
        height: 65px; /* Square shape - same as width */
    }
    
    /* Animation for mobile - adjusted for right alignment */
    @keyframes fadeInDownLogo {
        0% {
            transform: translateY(-100%);
            opacity: 0;
        }
        30% {
            opacity: 1;
        }
        100% {
            transform: translateY(0);
            opacity: 1;
        }
    }
}

/* Responsive button text size */
.responsive-btn-text {
    font-size: clamp(0.7rem, 2vw, 0.9rem);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    display: inline-block;
}

/* Button minimum width for better appearance */
.location-btn {
    min-width: 110px;
    padding-left: 0.5rem !important;
    padding-right: 0.5rem !important;
}

/* Force logo visibility and proper sizing on mobile - use maximum specificity */
@media only screen and (max-width: 640px) {
    /* Basic logo visibility rules - always small size */
    html body .logo-flag-container {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        position: fixed !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        top: 0 !important;
        z-index: 110 !important;
        width: 90px !important;
        height: 90px !important;
        transition: none !important;
        will-change: auto !important;
        animation: none !important;
    }
    
    /* Force consistent styles on all child elements of the logo container */
    html body .logo-flag-container * {
        transition: none !important;
        animation: none !important;
        visibility: visible !important;
        display: block !important;
    }
    
    /* Make sure the logo image itself is visible */
    html body .logo-flag-container img.logo-flag-image {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        max-width: 85% !important;
        max-height: 85% !important;
        margin: 0 auto !important;
        padding-top: 10px !important;
    }
}

/* Medium screens */
@media (min-width: 481px) and (max-width: 768px) {
    /* Adjust main header for more space */
    .main-header .container {
        padding-top: 30px; /* Add space for logo */
    }
    
    .logo-flag {
        left: auto; /* Remove left positioning */
        right: 2rem; /* Position from right edge */
    }
    
    .logo-flag img {
        height: 90px;
    }
    
    .logo-flag::after {
        width: 130px; /* Fixed width on medium screens */
    }
    
    .sticky-header .logo-flag {
        left: auto; /* Remove left positioning */
        right: 0.75rem; /* Position from right edge */
    }
    
    .sticky-header .logo-flag img {
        height: 35px;
    }
    
    .sticky-header .logo-flag::after {
        width: 80px; /* Width for sticky header on medium screens */
    }
}

/* Responsive button text size */
.responsive-btn-text {
    font-size: clamp(0.7rem, 2vw, 0.9rem);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    display: inline-block;
}

/* Button minimum width for better appearance */
.location-btn {
    min-width: 110px;
    padding-left: 0.5rem !important;
    padding-right: 0.5rem !important;
}

/* Force logo visibility and proper sizing on mobile - use maximum specificity */
@media only screen and (max-width: 640px) {
    /* Basic logo visibility rules - always small size */
    html body .logo-flag-container {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        position: fixed !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        top: 0 !important;
        z-index: 110 !important;
        width: 90px !important;
        height: 90px !important;
        transition: none !important;
        will-change: auto !important;
        animation: none !important;
    }
    
    /* Force consistent styles on all child elements of the logo container */
    html body .logo-flag-container * {
        transition: none !important;
        animation: none !important;
        visibility: visible !important;
        display: block !important;
    }
    
    /* Make sure the logo image itself is visible */
    html body .logo-flag-container img.logo-flag-image {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        max-width: 85% !important;
        max-height: 85% !important;
        margin: 0 auto !important;
        padding-top: 10px !important;
    }
}

/* Sticky menu navigation - compatible with all browsers */
.sticky-menu-nav {
    position: relative;
    width: 100%;
    padding: 0;
    margin-bottom: 0 !important;
    background-color: rgba(233, 216, 198, 0.95) !important; /* More opaque for better readability */
    z-index: 80; /* Updated z-index hierarchy: header 100, logo 110, menu 80, content 50 */
}

/* Firefox-specific static menu styling */
.firefox-static-menu {
    position: relative !important; /* Force relative positioning */
    top: auto !important; /* Reset top position */
    margin-top: 0 !important; /* No top margin */
    margin-bottom: 0 !important; /* No bottom margin */
    z-index: 80 !important; /* Keep consistent z-index */
}

/* For Firefox, ensure content sections have proper margin */
.firefox-browser .content-section:not(.sticky-menu-nav) {
    margin-top: 80px !important; /* Add top margin to content sections */
}

/* Standard sticky behavior for non-Firefox browsers */
.sticky-menu-nav.fixed {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 80; /* Updated z-index hierarchy: header 100, logo 110, menu 80, content 50 */
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
    animation: slideDown 0.3s ease;
    margin-top: 0 !important;
    padding-top: 0 !important;
}

@keyframes slideDown {
    0% {
        transform: translateY(-100%);
        margin-top: 0;
        padding-top: 0;
    }
    100% {
        transform: translateY(0);
        margin-top: 0;
        padding-top: 0;
    }
}

/* Responsive button text size */
.responsive-btn-text {
    font-size: clamp(0.7rem, 2vw, 0.9rem);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    display: inline-block;
}

/* Button minimum width for better appearance */
.location-btn {
    min-width: 110px;
    padding-left: 0.5rem !important;
    padding-right: 0.5rem !important;
}

/* Force logo visibility and proper sizing on mobile - use maximum specificity */
@media only screen and (max-width: 640px) {
    /* Basic logo visibility rules - always small size */
    html body .logo-flag-container {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        position: fixed !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        top: 0 !important;
        z-index: 110 !important;
        width: 90px !important;
        height: 90px !important;
        transition: none !important;
        will-change: auto !important;
        animation: none !important;
    }
    
    /* Force consistent styles on all child elements of the logo container */
    html body .logo-flag-container * {
        transition: none !important;
        animation: none !important;
        visibility: visible !important;
        display: block !important;
    }
    
    /* Make sure the logo image itself is visible */
    html body .logo-flag-container img.logo-flag-image {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        max-width: 85% !important;
        max-height: 85% !important;
        margin: 0 auto !important;
        padding-top: 10px !important;
    }
}

/* Position menu nav below header - completely revised for Firefox compatibility */
.sticky-menu-nav.fixed.with-header {
    position: fixed !important;
    z-index: 80; /* Updated z-index hierarchy: header 100, logo 90, menu 80, content 50 */
    border-bottom: 1px solid rgba(160, 44, 44, 0.2);
    left: 0;
    right: 0;
    top: var(--header-height, 99px); /* Position directly below header */
    width: 100%; /* Ensure full width */
    background-color: rgba(233, 216, 198, 0.95); /* More solid background */
}

/* Adjust based on scrolled state */
.sticky-menu-nav.fixed.with-header.header-scrolled,
.main-header.scrolled ~ .sticky-menu-nav.fixed.with-header {
    top: var(--header-scrolled-height, 55px) !important; /* Use CSS variable for scrolled state */
}

/* Remove gap between menu navigation and sections */
.sticky-menu-nav + section {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* Ensure content containers have no top spacing */
.content-section .container {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* Ensure menu nav section has no top spacing */
#menu-nav-section {
    margin-top: 0 !important;
    padding-top: 0 !important;
    z-index: 80; /* Updated z-index hierarchy: header 100, logo 90, menu 80, content 50 */
    width: 100%; /* Full width container */
}

/* Clean up - removed Firefox-specific menu section fixes */

/* When fixed, give menu a more solid background */
#menu-nav-section.fixed {
    background-color: rgba(233, 216, 198, 0.98) !important; 
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* Google Maps InfoWindow Mobile Styles */
@media (max-width: 640px) {
    .gm-style-iw-c {
        max-width: 260px !important;
    }
    
    .info-window h3 {
        font-size: 16px;
        margin-bottom: 6px;
    }
    
    .info-window p {
        margin-bottom: 5px !important;
    }
    
    /* Improve buttons in info window */
    .info-window .flex.space-x-2 {
        display: flex;
        flex-direction: column;
        align-items: stretch;
    }
    
    .info-window .flex.space-x-2 > a {
        margin: 3px 0 !important;
        text-align: center;
        padding: 8px !important;
    }
    
    /* Make call button more visible on mobile */
    .mobile-call-btn {
        display: inline-flex !important;
    }
}

/* Responsive button text size */
.responsive-btn-text {
    font-size: clamp(0.7rem, 2vw, 0.9rem);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    display: inline-block;
}

/* Button minimum width for better appearance */
.location-btn {
    min-width: 110px;
    padding-left: 0.5rem !important;
    padding-right: 0.5rem !important;
}

/* Force logo visibility and proper sizing on mobile - use maximum specificity */
@media only screen and (max-width: 640px) {
    /* Basic logo visibility rules - always small size */
    html body .logo-flag-container {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        position: fixed !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        top: 0 !important;
        z-index: 110 !important;
        width: 90px !important;
        height: 90px !important;
        transition: none !important;
        will-change: auto !important;
        animation: none !important;
    }
    
    /* Force consistent styles on all child elements of the logo container */
    html body .logo-flag-container * {
        transition: none !important;
        animation: none !important;
        visibility: visible !important;
        display: block !important;
    }
    
    /* Make sure the logo image itself is visible */
    html body .logo-flag-container img.logo-flag-image {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        max-width: 85% !important;
        max-height: 85% !important;
        margin: 0 auto !important;
        padding-top: 10px !important;
    }
}

/* Hide scrollbar for mobile menu navigation but allow scrolling */
.no-scrollbar {
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}

.no-scrollbar::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

/* Mobile menu scroller with fade effects */
.mobile-menu-scroller {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.mobile-menu-scroller .fade-left,
.mobile-menu-scroller .fade-right {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-menu-scroller.has-overflow-left .fade-left {
    opacity: 1;
}

.mobile-menu-scroller.has-overflow-right .fade-right {
    opacity: 1;
}

/* Active menu item styling for mobile scroll navigation */
.mobile-menu-scroller .menu-nav.active {
    background-color: rgba(160, 44, 44, 0.1);
    font-weight: bold;
    color: var(--block-red) !important;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    /* Menu navigation styling */
    .sticky-menu-nav .menu-nav {
        font-size: 13px;
        padding: 6px 10px !important;
        margin: 0 3px;
        border-radius: 20px;
        background-color: rgba(255, 255, 255, 0.5);
        border: 1px solid rgba(160, 44, 44, 0.1);
        transition: all 0.3s ease;
    }
    
    .sticky-menu-nav .menu-nav:active {
        transform: scale(0.95);
    }
    
    .sticky-menu-nav {
        padding: 0;
    }
    
    /* Reduce section margins for mobile */
    .mb-24 {
        margin-bottom: 3rem !important;
    }
    
    .pt-24 {
        padding-top: 5rem !important;
    }
    
    .-mt-24 {
        margin-top: -5rem !important;
    }
    
    /* Improved hamburger menu appearance */
    .hamburger-line {
        width: 24px;
        height: 3px;
        background-color: var(--block-dark-red);
        margin: 4px 0;
        border-radius: 2px;
        transition: all 0.3s ease-in-out;
    }
    
    .mobile-menu-toggle.active .hamburger-line:nth-child(1),
    .sticky-mobile-menu-toggle.active .hamburger-line:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .mobile-menu-toggle.active .hamburger-line:nth-child(2),
    .sticky-mobile-menu-toggle.active .hamburger-line:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-menu-toggle.active .hamburger-line:nth-child(3),
    .sticky-mobile-menu-toggle.active .hamburger-line:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }
    
    /* Mobile menu styling */
    .mobile-menu {
        position: fixed; /* Changed from absolute to fixed */
        top: var(--header-height, 99px); /* Use same variable as menu navigation */
        left: 0;
        width: 100%;
        z-index: 120; /* Increased z-index to be above logo (110) and header (100) */
        max-height: 0;
        overflow: hidden;
        transition: all 0.3s ease-in-out;
        background-color: var(--block-white);
    }
    
    /* Adjust header layout for logo centering and increase height by 25% */
    .main-header {
        padding-top: 20px !important; /* Increase from 15px (25% more) */
        padding-bottom: 30px !important; /* Increase from 25px (25% more) */
        height: auto !important; /* Allow header to expand */
    }
    
    .main-header .container {
        justify-content: center; /* Center the container content */
        padding-top: 30px; /* Increase from 25px (25% more) */
        padding-bottom: 20px; /* Increase from 15px (25% more) */
    }
    
    /* Scrolled state for mobile header - return to slightly larger than previous size */
    .main-header.scrolled {
        padding-top: 20px !important; /* Increased by 5px from 15px */
        padding-bottom: 30px !important; /* Increased by 5px from 25px */
    }
    
    .main-header.scrolled .container {
        padding-top: 30px; /* Increased by 5px from 25px */
        padding-bottom: 20px; /* Increased by 5px from 15px */
    }
    
    /* Hide the spacer div on mobile to allow for true centering */
    .main-header .container .w-32 {
        display: none;
    }
    
    /* Size and appearance of the mobile logo */
    .logo-flag-container {
        /* Fixed dimensions for non-scrolled state */
        width: 120px;
        height: 120px;
        top: 0;
        
        /* Z-index to keep it above header but below mobile menu */
        z-index: 115;
        
        /* Smooth transition for scrolling effects */
        transition: transform 0.35s cubic-bezier(0.23, 1, 0.32, 1),
                    width 0.35s cubic-bezier(0.23, 1, 0.32, 1),
                    height 0.35s cubic-bezier(0.23, 1, 0.32, 1);
    }
    
    /* Logo size and position when scrolled - only modify size, not position */
    .main-header.scrolled ~ .logo-flag-container,
    .logo-flag-container.scrolled {
        /* Smaller when scrolled */
        width: 90px;
        height: 90px;
        
        /* Maintain center position - only translate, no additional transforms */
        transform: translateX(-50%);
    }
    
    /* Adjust mobile menu position when header is scrolled */
    .main-header.scrolled ~ .mobile-menu {
        top: var(--header-scrolled-height, 55px); /* Use scrolled header height variable */
    }
    
    .mobile-menu.visible {
        max-height: 600px; /* Ensure there's enough room for all menu items */
        display: block !important;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    }
    
    /* Special handling for sticky header menu toggle */
    .sticky-mobile-menu-toggle {
        cursor: pointer;
    }
    
    /* Prevent menu from closing on pinch zoom */
    .mobile-menu a, 
    .mobile-menu div {
        touch-action: manipulation;
    }
    
    /* Typography adjustments for mobile */
    h1 {
        font-size: 2rem !important; /* Smaller headings */
    }
    
    h2 {
        font-size: 1.5rem !important;
    }
    
    .text-xl {
        font-size: 1rem !important;
    }
    
    /* Spacing adjustments */
    .py-24 {
        padding-top: 3rem !important;
        padding-bottom: 3rem !important;
    }
    
    .py-16 {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }
    
    .mb-16 {
        margin-bottom: 2rem !important;
    }
    
    /* Grid adjustments */
    .grid-cols-3, .grid-cols-4 {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
    
    /* Form elements */
    input, select, textarea {
        font-size: 16px !important; /* Prevent zoom on iOS */
    }
}

/* Responsive button text size */
.responsive-btn-text {
    font-size: clamp(0.7rem, 2vw, 0.9rem);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    display: inline-block;
}

/* Button minimum width for better appearance */
.location-btn {
    min-width: 110px;
    padding-left: 0.5rem !important;
    padding-right: 0.5rem !important;
}

/* Force logo visibility and proper sizing on mobile - use maximum specificity */
@media only screen and (max-width: 640px) {
    /* Basic logo visibility rules - always small size */
    html body .logo-flag-container {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        position: fixed !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        top: 0 !important;
        z-index: 110 !important;
        width: 90px !important;
        height: 90px !important;
        transition: none !important;
        will-change: auto !important;
        animation: none !important;
    }
    
    /* Force consistent styles on all child elements of the logo container */
    html body .logo-flag-container * {
        transition: none !important;
        animation: none !important;
        visibility: visible !important;
        display: block !important;
    }
    
    /* Make sure the logo image itself is visible */
    html body .logo-flag-container img.logo-flag-image {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        max-width: 85% !important;
        max-height: 85% !important;
        margin: 0 auto !important;
        padding-top: 10px !important;
    }
}

/* Block House custom styles */
body {
    background-color: transparent;
    color: var(--block-dark);
}

/* Semi-transparent content section for video background visibility */
.content-section {
    background-color: rgba(233, 216, 198, 0.75); /* Beige with increased transparency (reduced from 0.85 to 0.75) */
    backdrop-filter: blur(3px); /* Slight blur effect for better readability */
    position: relative;
    z-index: 50; /* Updated z-index hierarchy: header 100, logo 90, menu 80, content 50 */
    margin-top: 0; /* Remove any top margin */
}

/* Ensure main header is visible over video */
.main-header {
    position: relative;
    z-index: 100; /* Updated z-index hierarchy: header 100, logo 90, menu 80, content 50 */
    background-color: var(--block-beige) !important;
}

/* Navigation link styling with active state and hover effects */
.main-header nav a, .sticky-header nav a {
    position: relative;
    padding-bottom: 2px;
    margin-bottom: 2px;
    transition: color 0.3s ease;
}

.main-header nav a:hover, .sticky-header nav a:hover {
    color: var(--block-red) !important;
}

.main-header nav a.active, .sticky-header nav a.active {
    position: relative;
    color: var(--block-red) !important; /* Use Block House red for active menu items */
    font-weight: 600; /* Add slightly bolder font weight for active item */
}

/* Sticky header should be fully opaque */
.sticky-header.visible {
    background-color: var(--block-beige) !important;
}

/* Language selector active state */
.flag-icon {
    position: relative;
}

/* Google Maps InfoWindow Styling */
.info-window {
    padding: 5px;
    max-width: 280px;
    font-size: 14px;
    line-height: 1.4;
}

.info-window h3 {
    color: var(--block-dark-red);
    margin-bottom: 5px;
}

/* Manager image styles */
.manager-image-thumbnail {
    transition: transform 0.2s;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.manager-image-thumbnail:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    cursor: pointer;
}

/* Modal styles */
#image-modal {
    opacity: 0;
    transition: opacity 0.2s ease-in-out;
}

#image-modal.opacity-100 {
    opacity: 1;
}

/* Modal image animation */
#modal-image {
    transform: scale(0.95);
    transition: transform 0.2s ease-out;
}

#image-modal.opacity-100 #modal-image {
    transform: scale(1);
}

.gm-style .gm-style-iw-c {
    padding: 12px !important;
    border-radius: 8px !important;
    max-width: 300px !important;
    max-height: 400px !important;
}

.gm-style .gm-style-iw-d {
    overflow-y: auto !important;
    overflow-x: hidden !important;
    max-height: 360px !important;
    padding-right: 5px !important;
    scrollbar-width: thin;
}

.gm-style .gm-style-iw-t::after {
    background: linear-gradient(45deg, var(--block-beige) 50%, rgba(233, 216, 198, 0) 51%, rgba(233, 216, 198, 0) 100%) !important;
}

a.block-btn-primary {
    background-color: var(--block-red);
    color: var(--block-white);
    transition: all 0.3s ease;
}

a.block-btn-primary:hover {
    background-color: var(--block-dark-red);
}

a.block-btn-secondary {
    background-color: transparent;
    border: 2px solid var(--block-beige);
    color: var(--block-beige);
    transition: all 0.3s ease;
}

a.block-btn-secondary:hover {
    background-color: var(--block-beige);
    color: var(--block-dark);
}

.block-card {
    background-color: rgba(35, 35, 35, 0.8);
    border: 1px solid var(--block-beige);
}

.block-heading {
    color: var(--block-beige);
}

.block-accent {
    color: var(--block-red);
}

.block-divider {
    height: 2px;
    background-color: var(--block-red);
    width: 60px;
    margin: 20px auto;
}

/* Custom Background Classes */
.bg-block-beige {
    background-color: var(--block-beige) !important;
}

/* Override menu items to use white background */
.menu-item.bg-block-beige {
    background-color: white !important;
}

/* Menu card styles for grupo.php */
.menu-card {
    background-color: white;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
    margin-bottom: 2rem;
    position: relative;
    max-width: 210mm; /* A4 width */
    margin-left: auto;
    margin-right: auto;
    min-height: 200px;
    transition: transform 0.2s, box-shadow 0.2s;
    page-break-inside: avoid;
}

.menu-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.menu-card-logo {
    width: 80px;
    margin: 0 auto 1rem auto;
    display: block;
}

.menu-header {
    border-bottom: 1px solid var(--block-red);
    padding-bottom: 0.5rem;
    margin-bottom: 0.75rem;
}

.menu-card-title {
    font-size: 1.4rem;
    font-weight: bold;
    color: var(--block-dark-red);
    margin: 0;
    padding: 0;
    border: none;
    flex: 1;
    text-align: left;
}

.menu-card-price {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--block-red);
    margin: 0;
    text-align: right;
    white-space: nowrap;
}

.menu-card-description {
    text-align: center;
    margin-bottom: 1rem;
    font-style: italic;
    color: var(--block-gray);
    font-size: 0.95rem;
    padding: 0.5rem 0;
}

.menu-card-section {
    margin-bottom: 1.25rem;
}

.menu-card-section-title {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--block-dark-red);
    margin-bottom: 0.75rem;
    text-align: center;
}

.menu-items-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

@media (max-width: 768px) {
    .menu-items-grid {
        grid-template-columns: 1fr;
    }
}

/* Responsive button text size */
.responsive-btn-text {
    font-size: clamp(0.7rem, 2vw, 0.9rem);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    display: inline-block;
}

/* Button minimum width for better appearance */
.location-btn {
    min-width: 110px;
    padding-left: 0.5rem !important;
    padding-right: 0.5rem !important;
}

/* Force logo visibility and proper sizing on mobile - use maximum specificity */
@media only screen and (max-width: 640px) {
    /* Basic logo visibility rules - always small size */
    html body .logo-flag-container {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        position: fixed !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        top: 0 !important;
        z-index: 110 !important;
        width: 90px !important;
        height: 90px !important;
        transition: none !important;
        will-change: auto !important;
        animation: none !important;
    }
    
    /* Force consistent styles on all child elements of the logo container */
    html body .logo-flag-container * {
        transition: none !important;
        animation: none !important;
        visibility: visible !important;
        display: block !important;
    }
    
    /* Make sure the logo image itself is visible */
    html body .logo-flag-container img.logo-flag-image {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        max-width: 85% !important;
        max-height: 85% !important;
        margin: 0 auto !important;
        padding-top: 10px !important;
    }
}

.menu-card-item {
    background-color: var(--block-lighter-beige);
    padding: 0.6rem;
    border-radius: 4px;
    margin-bottom: 0.25rem;
}

.menu-card-item-title {
    font-weight: bold;
    margin-bottom: 0.15rem;
    font-size: 0.95rem;
}

.menu-card-item-description {
    font-size: 0.9rem;
    color: var(--block-gray);
}

.menu-card-item-description.small {
    font-size: 0.85rem;
    line-height: 1.3;
}

/* Print styles */
@media print {
    /* Hide elements not needed for printing */
    .main-header, 
    .mobile-menu, 
    .header-spacer, 
    .logo-flag-container, 
    .sticky-menu-nav, 
    .video-background,
    #menu-nav-section,
    .mobile-menu-scroller,
    footer,
    .py-16 {
        display: none !important;
    }
    
    /* Reset background for printing */
    body, .content-section {
        background: white !important;
        background-color: white !important;
        color: black !important;
    }
    
    /* Remove shadows and animations for printing */
    .menu-card {
        box-shadow: none !important;
        border: 1px solid #ccc !important;
        margin: 0 !important;
        padding: 1rem !important;
        break-inside: avoid !important;
        page-break-inside: avoid !important;
    }
    
    /* Ensure page breaks appropriately */
    .menu-card {
        page-break-after: always;
    }
    
    /* Last card shouldn't force a page break after */
    .menu-card:last-child {
        page-break-after: auto;
    }
    
    /* Optimize space for print */
    .menu-card-logo {
        width: 70px !important;
        margin-bottom: 0.75rem !important;
    }
    
    .menu-card-title {
        font-size: 14pt !important;
    }
    
    .menu-card-price {
        font-size: 13pt !important;
    }
    
    .menu-card-description {
        font-size: 10pt !important;
        margin-bottom: 0.5rem !important;
        padding: 0.25rem 0 !important;
    }
    
    .menu-card-section-title {
        font-size: 12pt !important;
        margin-bottom: 0.5rem !important;
    }
    
    .menu-card-item {
        padding: 0.5rem !important;
        margin-bottom: 0.2rem !important;
    }
    
    .menu-card-item-title {
        font-size: 10pt !important;
        margin-bottom: 0.1rem !important;
    }
    
    .menu-card-item-description {
        font-size: 9pt !important;
        line-height: 1.2 !important;
    }
    
    .menu-items-grid {
        gap: 0.5rem !important;
    }
    
    /* Ensure content is visible */
    .reveal {
        opacity: 1 !important;
        transform: none !important;
    }
    
    /* Force background images/colors to print */
    * {
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }
}

/* Responsive button text size */
.responsive-btn-text {
    font-size: clamp(0.7rem, 2vw, 0.9rem);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    display: inline-block;
}

/* Button minimum width for better appearance */
.location-btn {
    min-width: 110px;
    padding-left: 0.5rem !important;
    padding-right: 0.5rem !important;
}

/* Force logo visibility and proper sizing on mobile - use maximum specificity */
@media only screen and (max-width: 640px) {
    /* Basic logo visibility rules - always small size */
    html body .logo-flag-container {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        position: fixed !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        top: 0 !important;
        z-index: 110 !important;
        width: 90px !important;
        height: 90px !important;
        transition: none !important;
        will-change: auto !important;
        animation: none !important;
    }
    
    /* Force consistent styles on all child elements of the logo container */
    html body .logo-flag-container * {
        transition: none !important;
        animation: none !important;
        visibility: visible !important;
        display: block !important;
    }
    
    /* Make sure the logo image itself is visible */
    html body .logo-flag-container img.logo-flag-image {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        max-width: 85% !important;
        max-height: 85% !important;
        margin: 0 auto !important;
        padding-top: 10px !important;
    }
}
}
