/*
Theme Name: Gaa Restaurant
Description: Custom single-page WordPress theme for GAA Restaurant by Sierra IT Group
Version: 1.0
Author: Sierra IT Group Co., Ltd.
Author URI: https://www.sierra-group.org
*/

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Cormorant', serif;
    line-height: 1.6;
    color: white;
    background: #927C66;
    overflow-x: hidden;
    position: relative;
}

/* Root variables for dynamic color changes */
:root {
    --margin-small: 20px;
    --overlay-color: rgba(146, 124, 102, 0.65);
    --title-font: 'Marcellus';
    --hero-overlay: rgba(146, 124, 102, 0.4);
    --footer-overlay-color: rgba(55, 39, 16, 0.72);
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--overlay-color);
    z-index: -1;
    pointer-events: none;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Marcellus' !important;
    font-size: 24px !important;
}

section p {
    font-size: 18px !important;
    line-height: 1.6 !important;
}

.phonelink {
	color:#ffffff; text-decoration: none !important;
}

.phonelink:hover {
	color:#ffffff; text-decoration: underline !important;
}

/* WYSIWYG Content Styling */
.fade-in-up p {
    margin-bottom: 1em;
    font-size: 18px !important;
    line-height: 1.6 !important;
}

.fade-in-up p:last-child {
    margin-bottom: 0;
}

.fade-in-up strong {
    font-weight: bold;
    color: inherit;
}

.fade-in-up em {
    font-style: italic;
}

.fade-in-up a {
    color: white;
    text-decoration: underline;
    transition: opacity 0.3s ease;
}

.fade-in-up a:hover {
    opacity: 0.8;
}

/* Newsletter description specific styling */
.newsletter-description p {
    font-size: 16px !important;
    margin-bottom: 1em;
    color: white;
}

.newsletter-description p:last-child {
    margin-bottom: 0;
}

.newsletter-description a {
    color: white !important;
    text-decoration: underline;
}

.newsletter-description a:hover {
    color: #f0f0f0 !important;
    text-decoration: underline;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 150;
    padding: calc((var(--margin-small) * .5) - 2px) calc(var(--margin-small) * .5);
    background: transparent;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: transparent;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.nav-left {
    display: flex;
    align-items: center;
}

.hamburger {
    display: flex;
    flex-direction: column;
    cursor: pointer;
    padding: 8px;
}

.hamburger span {
    width: 25px;
    height: 2px;
    background: white;
    margin: 3px 0;
    transition: 0.3s;
    transform-origin: center;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Fullscreen Menu */
.fullscreen-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: linear-gradient(135deg, #927C66 0%, #A68B73 100%);
    background-size: cover;
    background-position: center;
    background-blend-mode: overlay;
    z-index: 200;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s ease;
    display: flex;
    align-items: center;
    padding-left: 8%;
}

.fullscreen-menu::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(146, 124, 102, 0.9) 0%, rgba(166, 139, 115, 0.95) 100%);
    z-index: 1;
}

.menu-content {
    position: relative;
    z-index: 2;
}

.fullscreen-menu.active {
    opacity: 1;
    visibility: visible;
}

.menu-logo {
    height: 80px;
    width: auto;
    margin-bottom: 40px;
    opacity: 0;
    transform: translateY(-20px);
    transition: all 0.6s ease;
}

.fullscreen-menu.active .menu-logo {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.2s;
}

.menu-content h2 {
    font-family: var(--title-font) !important;
    font-size: 48px;
    color: white;
    margin-bottom: 40px;
    letter-spacing: 3px;
}

.menu-links {
    list-style: none;
}

.menu-links li {
    margin-bottom: 10px;
    transform: translateX(-50px);
    opacity: 0;
    transition: all 0.3s ease;
}

.fullscreen-menu.active .menu-links li {
    transform: translateX(0);
    opacity: 1;
}

.menu-links li:nth-child(1) { transition-delay: 0.1s; }
.menu-links li:nth-child(2) { transition-delay: 0.2s; }
.menu-links li:nth-child(3) { transition-delay: 0.3s; }
.menu-links li:nth-child(4) { transition-delay: 0.4s; }
.menu-links li:nth-child(5) { transition-delay: 0.5s; }
.menu-links li:nth-child(6) { transition-delay: 0.6s; }
.menu-links li:nth-child(7) { transition-delay: 0.7s; }

.menu-links a {
    color: white;
    text-decoration: none;
    font-family: 'Marcellus', serif;
    font-size: 1.3em !important;
    letter-spacing: 2px;
    transition: color 0.3s ease;
    display: block;
    text-transform: uppercase;
}

.menu-links a:hover {
    color: #d4af37;
}

.menu-info {
    margin-top: 20px;
    transform: translateX(-50px);
    opacity: 0;
    transition: all 0.3s ease 0.7s;
}

.fullscreen-menu.active .menu-info {
    transform: translateX(0);
    opacity: 1;
}

.menu-info h3 {
    font-family: 'Marcellus', serif;
    letter-spacing: 2px;
    color: #674723;
    font-size: 1.3em !important;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.menu-info p {
    font-family: 'Cormorant', serif;
    color: rgba(255, 255, 255, 0.8);
    font-size: 18px;
    line-height: 1.6;
}

.close-menu {
    position: absolute;
    top: 30px;
    right: 50px;
    background: none;
    border: none;
    color: white;
    font-size: 40px;
    cursor: pointer;
    transition: transform 0.3s ease;
    z-index: 3;
}

.close-menu:hover {
    transform: rotate(90deg);
}

/* Responsive Menu for Short Screens */
@media (max-height: 840px) {
    .menu-logo {
        height: 60px;
        margin-bottom: 25px;
    }
    
    .menu-content h2 {
        font-size: 36px;
        margin-bottom: 25px;
    }
    
    .menu-links a {
        font-size: 1em !important;
    }
    
    .menu-links li {
        margin-bottom: 6px;
    }
    
    .menu-info {
        margin-top: 30px;
    }
    
    .menu-info h3 {
        font-size: 20px;
        margin-bottom: 15px;
    }
    
    .menu-info p {
        font-size: 16px;
    }
    
    /* Hide opening hours on shorter screens */
    .menu-info h3:nth-of-type(2),
    .menu-info h3:nth-of-type(2) + p,
    .menu-info h3:nth-of-type(2) + p + p,
    .menu-info h3:nth-of-type(2) + p + p + p {
        display: none;
    }
}

@media (max-height: 600px) {
    .menu-logo {
        height: 50px;
        margin-bottom: 20px;
    }
    
    .menu-content h2 {
        font-size: 30px;
        margin-bottom: 20px;
    }
    
    .menu-links a {
        font-size: 1em !important;
    }
    
    .menu-links li {
        margin-bottom: 4px;
    }
    
    .menu-info {
        margin-top: 25px;
    }
    
    .menu-info h3 {
        font-size: 18px;
        margin-bottom: 12px;
    }
    
    .menu-info p {
        font-size: 14px;
        line-height: 1.4;
    }
}

@media (max-height: 500px) {
    .menu-logo {
        height: 40px;
        margin-bottom: 15px;
    }
    
    .menu-content h2 {
        font-size: 24px;
        margin-bottom: 15px;
    }
    
    .menu-links a {
        font-size: 1em !important;
    }
    
    .menu-links li {
        margin-bottom: 2px;
    }
    
    .menu-info {
        margin-top: 20px;
    }
    
    .menu-info h3 {
        font-size: 16px;
        margin-bottom: 8px;
    }
    
    .menu-info p {
        font-size: 12px;
        line-height: 1.3;
    }
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-buttons {
    display: flex;
    align-items: center;
    gap: 15px;
}

.nav-btn {
    padding: 8px 16px;
    border: 1px solid white;
    background: transparent;
    color: white;
    text-decoration: none;
    font-size: .875em;
    font-weight: 400;
    font-family: 'Marcellus', serif;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: all 0.3s ease;
    cursor: pointer;
}

.nav-btn:hover {
    background: #927C66;
    color: white;
}

.nav-btn.primary {
    background: white;
    color: #381f34;
}

.nav-btn.primary:hover {
    background: #927C66;
    color: white;
}

/* Menu Button */
.menu-btn {
    display: inline-block;
    padding: 8px 16px;
    border: 1px solid white;
    background: transparent;
    color: white;
    text-decoration: none;
    font-size: .875em;
    font-weight: 700;
    font-family: 'Marcellus', serif;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: all 0.3s ease;
    cursor: pointer;
    margin: 15px 0;
}

.menu-btn:hover {
    background: white;
    color: #381f34;
}

/* Hide elements on mobile */
@media (max-width: 768px) {
    .nav-btn.secondary {
        display: none;
    }
    
    .navbar {
        background: transparent !important;
    }
    
    .navbar.scrolled {
        background: transparent !important;
    }
    
    .nav-right {
        display: flex !important;
        align-items: center !important;
        gap: 15px !important;
    }
    
    .nav-buttons {
        display: flex !important;
        align-items: center !important;
        gap: 8px !important;
    }
    
    .michelin-star {
        height: 24px !important;
        width: auto !important;
        display: inline-block !important;
    }
    
    .nav-btn.primary {
        display: inline-block !important;
        padding: 4px 8px !important;
        font-size: 0.75em !important;
        white-space: nowrap !important;
    }
}

/* Hero Section */
.hero {
    height: 100vh;
    background: var(--overlay-color, #381f34);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
}

.hero .bg-layer1,
.hero .bg-layer2 {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: opacity 1s ease-in-out;
    z-index: 0;
}

.hero .bg-layer2 {
    opacity: 0;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.hero > * {
    position: relative;
    z-index: 2;
}

.hero-logo {
    height: 192px;
    width: auto;
    margin-bottom: 20px;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-content h1 {
    font-size: 72px;
    font-weight: 400;
    letter-spacing: 8px;
    margin-bottom: 20px;
    animation: fadeInUp 1s ease;
    font-family: 'Marcellus', serif;
}

.hero-content p {
    font-size: 18px;
    font-weight: 400;
    letter-spacing: 2px;
    text-transform: uppercase;
    opacity: 0.9;
    animation: fadeInUp 1s ease 0.3s both;
    font-family: 'Cormorant', serif;
}

/* Section Styling */
.section {
    padding: 100px 0;
    background: url('pattern16.png');
    background-size: 280px 280px;
    background-repeat: repeat;
    position: relative;
}

.section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--overlay-color);
    z-index: 1;
    pointer-events: none;
}

.section > * {
    position: relative;
    z-index: 2;
}

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

.michelin-star {
    height: 32px;
    width: auto;
    display: inline-block;
    vertical-align: middle;
    margin: 0 -2px;
}

/* Event Modal */
.event-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0);
    z-index: 1000;
    transition: background 0.4s ease;
    align-items: center;
    justify-content: center;
}

.event-modal.show {
    display: flex;
    background: rgba(0, 0, 0, 0.9);
}

.modal-content {
    max-width: 500px;
    max-height: 90vh;
    background: white;
    border-radius: 15px;
    overflow: hidden;
    transform: scale(0.7) translateY(100px);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
}

.event-modal.show .modal-content {
    transform: scale(1) translateY(0);
    opacity: 1;
}

.modal-poster {
    width: 100%;
    height: 400px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: rgba(56, 31, 52, 0.9);
    color: white;
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.modal-close:hover {
    background: rgba(56, 31, 52, 1);
}

.modal-info {
    padding: 30px;
    text-align: center;
}

.attend-btn {
    background: #927C66;
    color: white;
    border: none;
    padding: 15px 40px;
    font-size: 16px;
    font-family: 'Marcellus', serif;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.attend-btn:hover {
    background: #927C66;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(56, 31, 52, 0.3);
}

/* Make event images clickable */
.event-image {
    cursor: pointer;
    transition: transform 0.3s ease;
}

.event-image:hover {
    transform: scale(1.02);
}

/* Fade in animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-up.animate {
    opacity: 1;
    transform: translateY(0);
}

/* Animation delays */
.fade-in-up.delay-200 {
    transition-delay: 0.2s;
}

.fade-in-up.delay-400 {
    transition-delay: 0.4s;
}

.fade-in-up.delay-600 {
    transition-delay: 0.6s;
}

.fade-in-up.delay-800 {
    transition-delay: 0.8s;
}

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

.section-title h2 {
    font-size: 56px;
    font-weight: 400;
    margin-bottom: 20px;
    letter-spacing: 4px;
    font-family: var(--title-font) !important;
    text-transform: uppercase;
    color: white;
}

.section-title p {
    font-size: 20px;
    color: white;
    max-width: 600px;
    margin: 0 auto 20px auto;
    opacity: 0.9;
    font-family: 'Cormorant', serif;
    font-weight: 400;
    line-height: 1.6;
    font-family: 'Cormorant', serif;
    font-weight: 400;
}

/* About Section */
.about-showcase {
    background: url('pattern16.png');
    background-size: 280px 280px;
    background-repeat: repeat;
    padding: 80px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.about-showcase::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--overlay-color);
    z-index: 1;
    pointer-events: none;
}

.about-showcase > * {
    position: relative;
    z-index: 2;
}

.about-showcase .section-title {
    text-align: center;
    color: white;
    position: relative;
    z-index: 2;
    max-width: 850px;
    padding: 0 2rem;
}

/* About Image Showcase */
.about-image-showcase {
    height: 100vh;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s ease-out, transform 1s ease-out;
}

.about-image-showcase.animate {
    opacity: 1;
    transform: translateY(0);
}

.about-image-showcase .bg-layer1,
.about-image-showcase .bg-layer2 {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 4s ease-in-out;
}

.about-image-showcase .bg-layer2 {
    z-index: 2;
}

/* Cuisine Section */
.cuisine-showcase {
    background: url('pattern16.png');
    background-size: 280px 280px;
    background-repeat: repeat;
    padding: 80px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.cuisine-showcase::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--overlay-color);
    z-index: 1;
    pointer-events: none;
}

.cuisine-showcase > * {
    position: relative;
    z-index: 2;
}

.cuisine-content {
    text-align: center;
    color: white;
    position: relative;
    z-index: 2;
    max-width: 850px;
    padding: 0 2rem;
}

.cuisine-content h2 {
    font-size: 56px;
    font-weight: 400;
    margin-bottom: 20px;
    letter-spacing: 4px;
    font-family: var(--title-font) !important;
    text-transform: uppercase;
}

.cuisine-content p {
    font-size: 20px;
    margin: 0 auto 20px auto;
    opacity: 0.9;
    font-family: 'Cormorant', serif;
    font-weight: 400;
    line-height: 1.6;
}

/* Cuisine Image Showcase */
.cuisine-image-showcase {
    height: 100vh;
    height: 100dvh; /* Dynamic viewport height for modern browsers */
    min-height: 100vh; /* Fallback */
    min-height: -webkit-fill-available; /* iOS Safari fix */
    position: relative;
    overflow: hidden;
    background: url('pattern16.png');
    background-size: 280px 280px;
    background-repeat: repeat;
}

/* iOS Safari specific fix */
@supports (-webkit-touch-callout: none) {
    .cuisine-image-showcase,
    .cellar-image-showcase,
    .space-image-showcase {
        height: -webkit-fill-available;
        min-height: 100vh;
    }
}

.cuisine-image-showcase::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--overlay-color);
    z-index: 1;
    pointer-events: none;
}

.cuisine-image-showcase .bg-layer1,
.cuisine-image-showcase .bg-layer2 {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-attachment: scroll; /* Better iOS performance */
    transition: opacity 1s ease-in-out;
    will-change: transform;
    z-index: 2; /* Images on top of the overlay */
    -webkit-transform: translateZ(0); /* Hardware acceleration */
    transform: translateZ(0); /* Hardware acceleration */
    -webkit-backface-visibility: hidden; /* iOS performance fix */
    backface-visibility: hidden; /* iOS performance fix */
}

.cuisine-image-showcase .bg-layer2 {
    opacity: 0;
}

/* Cellar Section */
.cellar-showcase {
    background: url('pattern16.png');
    background-size: 280px 280px;
    background-repeat: repeat;
    padding: 80px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.cellar-showcase::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--overlay-color);
    z-index: 1;
    pointer-events: none;
}

.cellar-showcase > * {
    position: relative;
    z-index: 2;
}

.cellar-content {
    max-width: 850px;
    text-align: center;
    padding: 0 50px;
}

.cellar-content h2 {
    font-size: 56px;
    font-weight: 400;
    margin-bottom: 20px;
    letter-spacing: 4px;
    font-family: var(--title-font) !important;
    text-transform: uppercase;
}

.cellar-content p {
    font-size: 20px;
    color: white;
    margin: 0 auto 20px auto;
    opacity: 0.9;
    font-family: 'Cormorant', serif;
    font-weight: 400;
    line-height: 1.6;
}

/* Cellar Image Showcase */
.cellar-image-showcase {
    height: 100vh;
    height: 100dvh;
    min-height: 100vh;
    min-height: -webkit-fill-available;
    position: relative;
    overflow: hidden;
    background: url('pattern16.png');
    background-size: 280px 280px;
    background-repeat: repeat;
}

.cellar-image-showcase::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--overlay-color);
    z-index: 1;
    pointer-events: none;
}

.cellar-image-showcase .bg-layer1,
.cellar-image-showcase .bg-layer2 {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-attachment: scroll;
    transition: opacity 1s ease-in-out;
    will-change: transform;
    z-index: 2;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

.cellar-image-showcase .bg-layer2 {
    opacity: 0;
}

/* Space Section */
.space-showcase {
    background: url('pattern16.png');
    background-size: 280px 280px;
    background-repeat: repeat;
    padding: 80px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.space-showcase::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--overlay-color);
    z-index: 1;
    pointer-events: none;
}

.space-showcase > * {
    position: relative;
    z-index: 2;
}

.space-content {
    max-width: 850px;
    text-align: center;
    padding: 0 50px;
}

.space-content h2 {
    font-size: 56px;
    font-weight: 400;
    margin-bottom: 20px;
    letter-spacing: 4px;
    font-family: var(--title-font) !important;
    text-transform: uppercase;
}

.space-content p {
    font-size: 20px;
    color: white;
    margin: 0 auto 20px auto;
    opacity: 0.9;
    font-family: 'Cormorant', serif;
    font-weight: 400;
    line-height: 1.6;
}

/* Space Image Showcase */
.space-image-showcase {
    height: 100vh;
    height: 100dvh;
    min-height: 100vh;
    min-height: -webkit-fill-available;
    position: relative;
    overflow: hidden;
    background: url('pattern16.png');
    background-size: 280px 280px;
    background-repeat: repeat;
}

.space-image-showcase::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--overlay-color);
    z-index: 1;
    pointer-events: none;
}

.space-image-showcase .bg-layer1,
.space-image-showcase .bg-layer2 {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-attachment: scroll;
    transition: opacity 1s ease-in-out;
    will-change: transform;
    z-index: 2;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

.space-image-showcase .bg-layer2 {
    opacity: 0;
}

/* Events Swiper */
.events-swiper-container {
    margin-top: 50px;
    overflow: hidden;
}

.events-swiper {
    overflow: visible;
}

.events-swiper .swiper-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Center slides when fewer than max slidesPerView */
@media (min-width: 480px) {
    .events-swiper .swiper-wrapper {
        justify-content: center;
    }
}

.swiper-slide {
    text-align: center;
    display: flex;
    justify-content: center;
    width: auto;
    flex-shrink: 0;
}

/* Responsive slide widths */
@media (max-width: 768px) {
    .swiper-slide {
        width: auto;
    }
}

@media (max-width: 480px) {
    .swiper-slide {
        width: auto;
    }
}

.event-item {
    width: 100%;
    max-width: 350px;
    margin: 0 auto;
}

.event-image {
    width: 100%;
    height: 400px;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 10px;
    transition: transform 0.3s ease;
    cursor: default;
}

.event-image:hover {
    transform: scale(1.02);
}

.event-button-container {
    padding: 20px 0;
    text-align: center;
}

.event-attend-btn {
    background: #381f34;
    color: white;
    border: none;
    padding: 12px 30px;
    font-size: 14px;
    font-family: 'Marcellus', serif;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.event-attend-btn:hover {
    background: #a8567a;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(56, 31, 52, 0.3);
    color: white;
    text-decoration: none;
}

/* Footer */
footer {
    background-size: 280px 280px;
    background-repeat: repeat;
    padding: 20px 0 20px;
    position: relative;
    background: #2a1a1f;
    background-size: cover;
    background-position: center;
    background-blend-mode: overlay;
}

/* Default pattern background - only when no custom background is set */
footer:not([style*="background-image"]) {
    background: url('pattern16.png');
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--footer-overlay-color);
    z-index: 1;
    pointer-events: none;
}

footer > * {
    position: relative;
    z-index: 2;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 60px;
    align-items: center;
    padding: 0 50px;
    color: white;
}

.footer-column {
    text-align: left;
}

.footer-column:last-child {
    text-align: right;
}

.footer-center {
    text-align: center;
}

.footer-title {
    font-family: 'Marcellus', serif !important;
    font-size: 18px !important;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
    color: white;
}

.footer-logo {
    height: 80px;
    width: auto;
    margin-bottom: 20px;
}

.footer-column p {
    font-size: 18px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    font-family: 'Cormorant', serif;
}

.footer-column span {
    display: inline-block;
    min-width: 120px;
    color: rgba(255, 255, 255, 0.7);
}

.footer-column a {
    color: #b19b81;
    text-decoration: none;
    font-weight: 600;
}

.footer-column p:last-child a:hover {
    text-decoration: underline;
}

/* Social Media Icons */
.social-icons {
    margin-top: 15px;
    display: flex;
    gap: 15px;
    justify-content: center;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    text-decoration: none;
    color: white;
    font-size: 12px;
    transition: all 0.3s ease;
}

.social-icon.facebook {
    background-color: black;
}

.social-icon.instagram {
    background-color: black;
}

.social-icon:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 0 20px;
        text-align: center;
    }
    
    .footer-column:first-child {
        display: none;
    }
    
    .footer-column:last-child {
        text-align: center;
    }
    
    .footer-center {
        order: -1;
    }
    
    .footer-column span {
        min-width: auto;
        display: block;
        margin-bottom: 5px;
    }
}

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

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Desktop: completely hide mobile-break element */
.mobile-break {
    display: none !important;
}

/* Responsive */
@media (max-width: 768px) {
    .navbar {
        padding: calc((var(--margin-small) * .25) - 2px) calc(var(--margin-small) * .25);
    }

    .navbar.scrolled {
        background: rgba(56, 31, 52, 0.95);
        backdrop-filter: blur(10px);
    }

    .nav-btn.secondary {
        display: none;
    }

    /* About image showcase mobile responsive */
    .about-image-showcase {
        height: auto !important;
        background-size: cover !important;
        background-position: center !important;
    }

    .hero-content h1 {
        font-size: 48px;
        letter-spacing: 4px;
    }

    .hero-logo {
        height: 130px;
    }

    .about-showcase {
        padding: 60px 0;
    }

    .about-showcase .section-title {
        max-width: 850px;
        padding: 0 2rem;
    }

    .space-content {
        max-width: 850px;
        padding: 0 2rem;
    }

    .container {
        padding: 0 20px;
    }

    .section-title h2 {
        font-size: 36px;
        font-family: 'Marcellus' !important;
    }

    .cuisine-content h2 {
        font-size: 36px;
        font-family: 'Marcellus' !important;
    }

    .cellar-content h2 {
        font-size: 36px;
        font-family: 'Marcellus' !important;
    }

    .space-content h2 {
        font-size: 36px;
        font-family: 'Marcellus' !important;
    }

    .hero-content h1 {
        font-size: 48px;
        letter-spacing: 4px;
        font-family: 'Marcellus' !important;
    }

    /* Mobile line break for reservation hours */
    
    .mobile-break {
        display: inline !important;
    }
    
    .mobile-break::after {
        content: "\A";
        white-space: pre;
    }
}

/* Mobile: ensure Newsletter button is visible and compact */
@media (max-width: 768px) {
    .nav-btn.secondary {
        display: inline-block !important;
        padding: 4px 8px !important;
        font-size: 0.75em !important;
        white-space: nowrap !important;
    }
}

/* Mobile: prevent horizontal overflow in Events & Reservations combined section */
@media (max-width: 768px) {
    .events-reservations-combined,
    .events-reservations-combined .container {
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: hidden !important;
        padding-left: 16px !important;
        padding-right: 16px !important;
    }

    .events-swiper-container,
    .events-swiper,
    .events-swiper .swiper-wrapper,
    .events-swiper .swiper-slide {
        width: 100% !important;
    }
    
    .events-swiper-container {
        margin-top: 30px !important;
    }
    
    .swiper-slide {
        display: flex !important;
        justify-content: center !important;
    }

    .events-reservations-combined img,
    .events-reservations-combined video,
    .events-reservations-combined iframe {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    
    .events-reservations-combined .event-image {
        max-width: 100% !important;
        width: 100% !important;
        height: 300px !important;
        min-height: 300px !important;
    }

    .events-reservations-combined p,
    .events-reservations-combined a {
        overflow-wrap: anywhere;
        word-break: break-word;
    }

    /* iOS Safari specific fixes */
    .cuisine-image-showcase,
    .cellar-image-showcase,
    .space-image-showcase {
        height: 100vh;
        height: -webkit-fill-available;
        min-height: 100vh;
    }
}

/* iOS Safari viewport fix */
@media screen and (max-width: 768px) {
    @supports (-webkit-touch-callout: none) {
        .cuisine-image-showcase,
        .cellar-image-showcase,
        .space-image-showcase {
            height: 100vh;
            height: -webkit-fill-available;
            min-height: 100vh;
        }
        
        /* Reduce parallax on iOS for better performance */
        .cuisine-image-showcase .bg-layer1,
        .cuisine-image-showcase .bg-layer2,
        .cellar-image-showcase .bg-layer1,
        .cellar-image-showcase .bg-layer2,
        .space-image-showcase .bg-layer1,
        .space-image-showcase .bg-layer2 {
            will-change: auto; /* Reduce GPU usage */
        }
    }
}

/* Newsletter Modal */
.newsletter-modal-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1001;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0s linear 0.4s;
}

.newsletter-modal-container.active {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.4s ease;
}

.newsletter-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
}

.newsletter-modal-content {
    position: relative;
    width: 90%;
    max-width: 550px;
    padding: 50px 40px;
    border-radius: 8px;
    color: #fff;
    text-align: center;
    z-index: 1;
    transform: scale(0.9);
    transition: transform 0.4s ease;
    overflow: hidden; /* Contain the pseudo-element */

    /* User requested background */
    background: #2a1a1f;
    background-size: cover;
    background-position: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.newsletter-modal-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--footer-overlay-color, rgba(55, 39, 16, 0.72)); /* Overlay color */
    z-index: 1;
}

.newsletter-modal-container.active .newsletter-modal-content {
    transform: scale(1);
}

.newsletter-close-btn {
    position: relative;
    z-index: 2;
    float: right;
    top: -35px;
    right: -25px;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 32px;
    line-height: 1;
    cursor: pointer;
    transition: color 0.3s ease;
}

.newsletter-close-btn:hover {
    color: #fff;
}

.newsletter-modal-content h2,
.newsletter-modal-content p,
#newsletter-form {
    position: relative;
    z-index: 2;
}

.newsletter-modal-content h2 {
    font-family: var(--title-font) !important;
    font-size: 36px;
    text-transform: uppercase;
    font-weight: 400;
    letter-spacing: 4px;
    margin-bottom: 15px;
    color: #fff;
}

.newsletter-modal-content p {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 30px;
    color: rgba(255, 255, 255, 0.8);
}

#newsletter-form .input-wrapper {
    margin-bottom: 20px;
}

#newsletter-form input[type="email"] {
    width: 100%;
    padding: 15px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 5px;
    color: #fff;
    font-size: 16px;
    text-align: center;
    transition: all 0.3s ease;
}

#newsletter-form input[type="email"]::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

#newsletter-form input[type="email"]:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.5);
    background: rgba(0, 0, 0, 0.5);
}

#newsletter-form .nav-btn {
    width: 100%;
    padding: 15px;
}

/* Newsletter Message Box */
.newsletter-message {
    position: relative;
    z-index: 2;
    margin: 20px 0;
    padding: 15px 20px;
    border-radius: 8px;
    text-align: center;
    font-size: 16px;
    font-family: 'Cormorant', serif;
    animation: slideDown 0.3s ease-out;
}

.newsletter-message.success {
    background: rgba(76, 175, 80, 0.9);
    border: 1px solid rgba(76, 175, 80, 1);
    color: #fff;
}

.newsletter-message.error {
    background: rgba(244, 67, 54, 0.9);
    border: 1px solid rgba(244, 67, 54, 1);
    color: #fff;
}

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

/* Responsive */
@media (max-width: 768px) {
    .newsletter-modal-content {
        padding: 40px 30px;
    }
    
    .newsletter-modal-content h2 {
        font-size: 28px;
    }
    
    .newsletter-modal-content p {
        font-size: 16px;
    	line-height: 1.3 !important;
		margin-bottom: 10px;
    }
    
    #newsletter-form input[type="email"] {
        padding: 12px;
        font-size: 14px;
    }
    
    #newsletter-form .nav-btn {
        padding: 12px;
        font-size: 14px;
    }
}

/* Reservation Content Grid */
.reservation-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-top: 40px;
    color: white;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.reservation-column {
    font-family: 'Cormorant', serif;
}

.reservation-column p {
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 15px;
    color: rgba(255, 255, 255, 0.9);
}

.reservation-column strong {
    color: white;
}

.reservation-column a {
    color: white;
    text-decoration: underline;
}

.reservation-column a:hover {
    color: #d4af37;
}

@media (max-width: 768px) {
    .reservation-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .reservation-column p {
        font-size: 16px;
    }
}