/*
Theme Name: Old Bill Theme
Theme URI: https://oldbill.jdonline.be
Author: JD Online
Author URI: https://jdonline.be
Description: Custom WordPress Block Theme voor The Old Bill Pub - Est 1892 style.
Version: 2.0.0
Requires at least: 6.4
Tested up to: 6.7
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: oldbill-theme
*/

/* Custom Utilities based on Old Bill Design */

/* Gold Gradient Text */
.has-gold-gradient-text {
    background: linear-gradient(135deg, var(--wp--preset--color--gold) 0%, var(--wp--preset--color--gold-light) 50%, var(--wp--preset--color--gold) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: var(--wp--preset--color--gold); /* Fallback */
}

/* Menu Card */
.menu-card {
    background: linear-gradient(145deg, #151515 0%, #0a0a0a 100%);
    border: 1px solid var(--wp--preset--color--zinc-800);
    transition: all 0.4s ease;
}

.menu-card:hover {
    border-color: var(--wp--preset--color--gold);
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(212, 175, 55, 0.1);
}

/* Custom Buttons (if standard WP buttons aren't enough) */
.wp-block-button__link.is-style-gold-gradient {
    background: linear-gradient(135deg, var(--wp--preset--color--gold) 0%, #b8962e 100%);
    color: var(--wp--preset--color--dark) !important;
    transition: all 0.3s ease;
    border: none;
}

.wp-block-button__link.is-style-gold-gradient:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.3);
}

/* Divider */
.gold-divider {
    width: 100px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--wp--preset--color--gold), transparent);
    margin: 1.5rem auto;
}

/* Animations */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.float-animation {
    animation: float 3s ease-in-out infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-15px); }
    60% { transform: translateY(-7px); }
}

/* Hero cover with scroll indicator */
.wp-block-cover.alignfull {
    position: relative;
}

/* Scroll indicator - positioned relative to viewport bottom of hero */
.scroll-indicator {
    position: fixed !important;
    bottom: 2.5rem !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    z-index: 100 !important;
    animation: scroll-bounce 2s infinite !important;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    cursor: pointer;
}

/* Hide scroll indicator when scrolled past hero */
.scroll-indicator.hidden {
    opacity: 0;
    visibility: hidden;
}

@keyframes scroll-bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-15px);
    }
    60% {
        transform: translateX(-50%) translateY(-7px);
    }
}

/* Gallery Hover */
.gallery-item {
    overflow: hidden;
    border-radius: 0.5rem;
}

.gallery-item img {
    transition: transform 0.5s ease;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

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

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--wp--preset--color--dark);
}

::-webkit-scrollbar-thumb {
    background: var(--wp--preset--color--gold);
    border-radius: 4px;
}

/* Navigation Overrides */
.wp-block-navigation .wp-block-navigation-item__content {
    text-transform: uppercase;
    font-size: 0.875rem;
    letter-spacing: 0.1em;
}

.wp-block-navigation .wp-block-navigation-item__content:hover {
    color: var(--wp--preset--color--gold) !important;
}

/* Testimonial Card */
.testimonial-card {
    background: linear-gradient(145deg, #151515 0%, #0a0a0a 100%);
    border: 1px solid var(--wp--preset--color--zinc-800);
    padding: 2rem;
    border-radius: 0.5rem;
}

/* Fixed Header */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 50;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--wp--preset--color--zinc-800);
}

/* Navigation Links */
.nav-link {
    margin: 0;
}

.nav-link a {
    color: #fafafa;
    text-decoration: none;
    transition: color 0.3s ease;
}

.nav-link a:hover {
    color: #d4af37 !important;
}

/* Hero Cover Fix */
.wp-block-cover {
    position: relative;
}

/* Lightbox */
.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.lightbox-overlay.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90%;
    position: relative;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
}

.lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    width: 40px;
    height: 40px;
    background: transparent;
    border: 1px solid #d4af37;
    border-radius: 50%;
    color: #d4af37;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.lightbox-close:hover {
    background: #d4af37;
    color: #0a0a0a;
}

.gallery-item {
    cursor: pointer;
}

/* FooGallery Styling */
.foogallery {
    margin: 0 auto;
}

.foogallery .fg-item {
    border-radius: 8px;
    overflow: hidden;
}

.foogallery .fg-item img {
    transition: transform 0.5s ease;
}

.foogallery .fg-item:hover img {
    transform: scale(1.1);
}

.foogallery .fg-caption {
    background: rgba(0, 0, 0, 0.8);
    color: #fafafa;
}

/* FooGallery Lightbox dark theme */
.foogallery-lightbox .fg-modal {
    background: rgba(0, 0, 0, 0.95);
}

/* Body padding for fixed header */
body {
    padding-top: 0;
}

main {
    padding-top: 80px;
}

/* Custom Logo */
.custom-logo-link {
    display: flex;
    align-items: center;
}

.custom-logo {
    width: 50px;
    height: auto;
    display: block;
}

/* Responsive Images */
.wp-block-image img,
.wp-block-cover__image-background,
figure img {
    max-width: 100%;
    height: auto;
    object-fit: cover;
}

.wp-block-column .wp-block-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

/* Hero full height minus header */
.wp-block-cover.alignfull:first-child {
    margin-top: -80px;
    padding-top: 80px;
}

/* ==========================================================================
   WooCommerce Dark Theme Styling
   ========================================================================== */

/* General WooCommerce */
.woocommerce,
.woocommerce-page {
    background-color: #0a0a0a;
    color: #f5f5f5;
}

/* Product Grid */
.woocommerce ul.products {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

.woocommerce ul.products li.product {
    background: linear-gradient(145deg, #151515 0%, #0a0a0a 100%);
    border: 1px solid #27272a;
    border-radius: 8px;
    padding: 1.5rem;
    transition: all 0.4s ease;
    text-align: center;
}

.woocommerce ul.products li.product:hover {
    border-color: #d4af37;
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(212, 175, 55, 0.1);
}

/* Product Images */
.woocommerce ul.products li.product a img,
.woocommerce div.product div.images img {
    border-radius: 8px;
    transition: transform 0.5s ease;
}

.woocommerce ul.products li.product:hover a img {
    transform: scale(1.05);
}

/* Product Titles */
.woocommerce ul.products li.product .woocommerce-loop-product__title,
.woocommerce div.product .product_title {
    color: #f5f5f5;
    font-family: var(--wp--preset--font-family--heading);
    font-size: 1.25rem;
    margin-top: 1rem;
}

/* Product Prices */
.woocommerce ul.products li.product .price,
.woocommerce div.product p.price,
.woocommerce div.product span.price {
    color: #d4af37;
    font-size: 1.25rem;
    font-weight: 600;
}

.woocommerce ul.products li.product .price del,
.woocommerce div.product p.price del {
    color: #71717a;
}

.woocommerce ul.products li.product .price ins,
.woocommerce div.product p.price ins {
    color: #d4af37;
    text-decoration: none;
}

/* Add to Cart Button */
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit,
.woocommerce a.button.alt,
.woocommerce button.button.alt,
.woocommerce input.button.alt {
    background: linear-gradient(135deg, #d4af37 0%, #b8962e 100%);
    color: #0a0a0a !important;
    border: none;
    border-radius: 6px;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all 0.3s ease;
    cursor: pointer;
}

.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce #respond input#submit:hover,
.woocommerce a.button.alt:hover,
.woocommerce button.button.alt:hover,
.woocommerce input.button.alt:hover {
    background: linear-gradient(135deg, #e5c349 0%, #d4af37 100%);
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.3);
}

/* Outline/Secondary Button */
.woocommerce a.button.wc-forward,
.woocommerce .woocommerce-message a.button {
    background: transparent;
    border: 2px solid #d4af37;
    color: #d4af37 !important;
}

.woocommerce a.button.wc-forward:hover,
.woocommerce .woocommerce-message a.button:hover {
    background: #d4af37;
    color: #0a0a0a !important;
}

/* Sale Badge */
.woocommerce span.onsale {
    background: #d4af37;
    color: #0a0a0a;
    font-weight: 700;
    border-radius: 4px;
    padding: 0.5rem 1rem;
}

/* Star Rating */
.woocommerce .star-rating {
    color: #d4af37;
}

.woocommerce .star-rating::before {
    color: #27272a;
}

/* Product Page */
.woocommerce div.product {
    background: #0a0a0a;
}

.woocommerce div.product .woocommerce-tabs ul.tabs {
    background: transparent;
    border-bottom: 1px solid #27272a;
    padding: 0;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li {
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    margin: 0 1rem 0 0;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li.active {
    border-bottom-color: #d4af37;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li a {
    color: #71717a;
    padding: 1rem 0;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li.active a,
.woocommerce div.product .woocommerce-tabs ul.tabs li a:hover {
    color: #d4af37;
}

.woocommerce div.product .woocommerce-tabs .panel {
    background: transparent;
    color: #a1a1aa;
    border: none;
    padding: 2rem 0;
}

/* Quantity Input */
.woocommerce .quantity .qty {
    background: #151515;
    border: 1px solid #27272a;
    color: #f5f5f5;
    border-radius: 4px;
    padding: 0.5rem;
}

.woocommerce .quantity .qty:focus {
    border-color: #d4af37;
    outline: none;
}

/* Cart Page */
.woocommerce table.shop_table {
    background: #0a0a0a;
    border: 1px solid #27272a;
    border-radius: 8px;
}

.woocommerce table.shop_table th {
    background: #151515;
    color: #d4af37;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.875rem;
    border-bottom: 1px solid #27272a;
}

.woocommerce table.shop_table td {
    background: transparent;
    color: #f5f5f5;
    border-bottom: 1px solid #27272a;
}

.woocommerce table.shop_table tbody tr:hover td {
    background: #151515;
}

.woocommerce-cart table.cart td.actions .coupon .input-text {
    background: #151515;
    border: 1px solid #27272a;
    color: #f5f5f5;
    border-radius: 4px;
    padding: 0.75rem;
}

.woocommerce-cart table.cart td.actions .coupon .input-text:focus {
    border-color: #d4af37;
    outline: none;
}

/* Cart Totals */
.woocommerce .cart_totals,
.woocommerce-page .cart_totals {
    background: linear-gradient(145deg, #151515 0%, #0a0a0a 100%);
    border: 1px solid #27272a;
    border-radius: 8px;
    padding: 1.5rem;
}

.woocommerce .cart_totals h2 {
    color: #d4af37;
    font-family: var(--wp--preset--font-family--heading);
}

.woocommerce .cart_totals table {
    border: none;
}

.woocommerce .cart_totals table th,
.woocommerce .cart_totals table td {
    border: none;
    background: transparent;
    color: #f5f5f5;
    padding: 0.75rem 0;
    border-bottom: 1px solid #27272a;
}

/* Checkout Page */
.woocommerce form .form-row label {
    color: #a1a1aa;
}

.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select {
    background: #151515;
    border: 1px solid #27272a;
    color: #f5f5f5;
    border-radius: 4px;
    padding: 0.75rem;
}

.woocommerce form .form-row input.input-text:focus,
.woocommerce form .form-row textarea:focus,
.woocommerce form .form-row select:focus {
    border-color: #d4af37;
    outline: none;
    box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.1);
}

.woocommerce-checkout #payment {
    background: linear-gradient(145deg, #151515 0%, #0a0a0a 100%);
    border: 1px solid #27272a;
    border-radius: 8px;
}

.woocommerce-checkout #payment ul.payment_methods {
    border-bottom: 1px solid #27272a;
}

.woocommerce-checkout #payment ul.payment_methods li {
    color: #f5f5f5;
}

.woocommerce-checkout #payment div.payment_box {
    background: #0a0a0a;
    color: #a1a1aa;
}

/* Order Review */
.woocommerce-checkout-review-order-table {
    background: transparent;
}

/* Messages */
.woocommerce-message,
.woocommerce-info {
    background: linear-gradient(145deg, #151515 0%, #0a0a0a 100%);
    border: 1px solid #27272a;
    border-left: 4px solid #d4af37;
    color: #f5f5f5;
}

.woocommerce-error {
    background: linear-gradient(145deg, #151515 0%, #0a0a0a 100%);
    border: 1px solid #27272a;
    border-left: 4px solid #ef4444;
    color: #f5f5f5;
}

.woocommerce-message::before,
.woocommerce-info::before {
    color: #d4af37;
}

/* Breadcrumbs */
.woocommerce .woocommerce-breadcrumb {
    color: #71717a;
    font-size: 0.875rem;
}

.woocommerce .woocommerce-breadcrumb a {
    color: #a1a1aa;
}

.woocommerce .woocommerce-breadcrumb a:hover {
    color: #d4af37;
}

/* Pagination */
.woocommerce nav.woocommerce-pagination ul {
    border: none;
}

.woocommerce nav.woocommerce-pagination ul li {
    border: none;
}

.woocommerce nav.woocommerce-pagination ul li a,
.woocommerce nav.woocommerce-pagination ul li span {
    background: #151515;
    color: #f5f5f5;
    border: 1px solid #27272a;
    padding: 0.5rem 1rem;
}

.woocommerce nav.woocommerce-pagination ul li a:hover,
.woocommerce nav.woocommerce-pagination ul li span.current {
    background: #d4af37;
    color: #0a0a0a;
    border-color: #d4af37;
}

/* Mini Cart Widget */
.woocommerce .widget_shopping_cart,
.woocommerce.widget_shopping_cart {
    background: #151515;
    border: 1px solid #27272a;
    border-radius: 8px;
    padding: 1rem;
}

.woocommerce .widget_shopping_cart .cart_list li,
.woocommerce.widget_shopping_cart .cart_list li {
    border-bottom: 1px solid #27272a;
    padding: 0.75rem 0;
}

.woocommerce .widget_shopping_cart .cart_list li a {
    color: #f5f5f5;
}

.woocommerce .widget_shopping_cart .total {
    color: #d4af37;
    border-top: 1px solid #27272a;
    padding-top: 0.75rem;
}

/* Product Categories Widget */
.woocommerce .widget_product_categories ul li a {
    color: #a1a1aa;
}

.woocommerce .widget_product_categories ul li a:hover {
    color: #d4af37;
}

/* Remove Link */
.woocommerce a.remove {
    color: #ef4444 !important;
}

.woocommerce a.remove:hover {
    background: #ef4444;
    color: #fff !important;
}

/* Shop Page Title */
.woocommerce-products-header__title {
    color: #f5f5f5;
    font-family: var(--wp--preset--font-family--heading);
}

/* Result Count & Ordering */
.woocommerce .woocommerce-result-count,
.woocommerce .woocommerce-ordering select {
    color: #71717a;
}

.woocommerce .woocommerce-ordering select {
    background: #151515;
    border: 1px solid #27272a;
    border-radius: 4px;
    padding: 0.5rem;
}

.woocommerce .woocommerce-ordering select:focus {
    border-color: #d4af37;
    outline: none;
}

/* My Account */
.woocommerce-account .woocommerce-MyAccount-navigation ul {
    background: linear-gradient(145deg, #151515 0%, #0a0a0a 100%);
    border: 1px solid #27272a;
    border-radius: 8px;
    padding: 1rem;
    list-style: none;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li {
    border-bottom: 1px solid #27272a;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li:last-child {
    border-bottom: none;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li a {
    color: #a1a1aa;
    display: block;
    padding: 0.75rem;
    transition: all 0.3s ease;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li.is-active a,
.woocommerce-account .woocommerce-MyAccount-navigation ul li a:hover {
    color: #d4af37;
    background: rgba(212, 175, 55, 0.1);
}

.woocommerce-account .woocommerce-MyAccount-content {
    color: #f5f5f5;
}

/* Loading Overlay */
.woocommerce .blockUI.blockOverlay {
    background: rgba(10, 10, 10, 0.8) !important;
}

.woocommerce .blockUI.blockOverlay::before {
    border-color: #d4af37 transparent transparent transparent;
}

/* ==========================================================================
   Mobile Navigation
   ========================================================================== */

/* Hamburger Menu Button */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    box-sizing: content-box;
    z-index: 1001;
    position: relative;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.hamburger-line {
    display: block;
    width: 30px;
    height: 3px;
    background-color: #d4af37;
    transition: all 0.3s ease;
    border-radius: 2px;
    pointer-events: none;
}

/* Hamburger animation when open */
.mobile-menu-toggle.is-active .hamburger-line:nth-child(1) {
    transform: translateY(10px) rotate(45deg);
}

.mobile-menu-toggle.is-active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.is-active .hamburger-line:nth-child(3) {
    transform: translateY(-11px) rotate(-45deg);
}

/* Mobile Navigation Overlay */
.mobile-nav {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    max-width: 320px;
    height: 100vh;
    height: 100dvh;
    background: rgba(10, 10, 10, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 0;
    padding: 2rem;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 9999;
    border-left: 1px solid #27272a;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    transform: translateX(100%);
    visibility: hidden;
}

.mobile-nav.is-open {
    transform: translateX(0);
    visibility: visible;
}

/* Ensure hamburger is above everything */
.mobile-menu-toggle {
    z-index: 10000 !important;
}

/* Mobile Navigation Links */
.mobile-nav-link {
    display: block;
    width: 100%;
    padding: 1rem 1.5rem;
    color: #fafafa;
    text-decoration: none;
    font-size: 1.125rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    text-align: center;
    transition: all 0.3s ease;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-nav-link:hover,
.mobile-nav-link:focus {
    color: #d4af37;
    background: rgba(212, 175, 55, 0.1);
}

/* CTA Button in Mobile Nav */
.mobile-nav-cta {
    margin-top: 1rem;
    background: linear-gradient(135deg, #d4af37 0%, #b8962e 100%);
    color: #0a0a0a !important;
    border-radius: 6px;
    font-weight: 600;
}

.mobile-nav-cta:hover,
.mobile-nav-cta:focus {
    background: linear-gradient(135deg, #e5c349 0%, #d4af37 100%);
    color: #0a0a0a !important;
}

/* Mobile Nav Backdrop */
.mobile-nav-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    height: 100dvh;
    background: rgba(0, 0, 0, 0.6);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 9998;
}

.mobile-nav-backdrop.is-visible {
    opacity: 1;
    visibility: visible;
}

/* Contact Links Styling */
.contact-link {
    color: #71717a;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-link:hover {
    color: #d4af37;
}

/* Gallery Album Cards */
.gallery-album-card {
    background: linear-gradient(145deg, #151515 0%, #0a0a0a 100%);
    border: 1px solid #27272a;
    border-radius: 12px;
    padding: 1rem;
    transition: all 0.4s ease;
}

.gallery-album-card:hover {
    border-color: #d4af37;
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(212, 175, 55, 0.1);
}

.gallery-album-card:hover .gallery-album-thumb img {
    transform: scale(1.1);
}

.gallery-album-link:hover h3 {
    color: #d4af37 !important;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */

@media (max-width: 768px) {
    /* Header becomes relative for absolute positioning */
    .site-header > .wp-block-group {
        position: relative !important;
    }

    /* Show hamburger with absolute positioning at right */
    .mobile-menu-toggle {
        display: flex !important;
        position: absolute !important;
        right: 1rem !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
    }

    /* Hide ALL desktop navigation elements - maximum specificity */
    body .site-header .desktop-nav,
    body header .desktop-nav,
    body .wp-block-template-part .desktop-nav,
    body .site-header .wp-block-buttons,
    body header .wp-block-buttons,
    body .site-header .wp-block-button,
    body header .wp-block-button,
    body .site-header .wp-block-button__link,
    body .site-header .nav-link,
    body .site-header p.nav-link,
    .wp-site-blocks header .desktop-nav,
    .wp-site-blocks header .wp-block-button,
    .wp-site-blocks .site-header .desktop-nav,
    .wp-site-blocks .site-header .wp-block-button {
        display: none !important;
        visibility: hidden !important;
        height: 0 !important;
        width: 0 !important;
        overflow: hidden !important;
        opacity: 0 !important;
    }

    /* Adjust header padding on mobile - extra right padding for hamburger */
    .site-header .wp-block-group[style*="padding"] {
        padding-left: 1rem !important;
        padding-right: 4rem !important;
    }

    /* Hero adjustments */
    .wp-block-cover.alignfull {
        min-height: 100svh !important;
    }

    .wp-block-cover__inner-container {
        padding: 0 1rem !important;
    }

    /* Section padding - override inline styles */
    .wp-block-group.alignfull[style*="padding"] {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }

    /* Inner container padding override */
    .wp-block-group.alignfull > div[style*="padding"],
    .wp-block-group.alignfull > div[style*="max-width"] {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }

    /* Column stacking - force vertical */
    .wp-block-columns {
        flex-direction: column !important;
        flex-wrap: wrap !important;
        gap: 2rem !important;
    }

    .wp-block-columns.are-vertically-aligned-center {
        align-items: stretch !important;
    }

    .wp-block-column {
        flex-basis: 100% !important;
        width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        margin-bottom: 0 !important;
    }

    /* Gallery grid on mobile */
    .wp-block-gallery.columns-3,
    .wp-block-gallery.has-nested-images.columns-3 {
        columns: 2 !important;
        gap: 0.5rem !important;
    }

    .gallery-item,
    .wp-block-gallery .wp-block-image {
        margin-bottom: 0.5rem !important;
    }

    /* Gallery album cards */
    .gallery-albums.wp-block-columns {
        gap: 1.5rem !important;
    }

    .gallery-album-card {
        padding: 0.75rem !important;
    }

    /* Button sizing for touch */
    .wp-block-button__link {
        min-height: 48px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 0.875rem 1.5rem;
    }

    /* Hero buttons stack on small screens */
    .wp-block-cover .wp-block-buttons {
        flex-direction: column !important;
        align-items: center !important;
        gap: 0.75rem !important;
    }

    .wp-block-cover .wp-block-button {
        width: 100%;
        max-width: 250px;
    }

    /* Typography scaling */
    h2.wp-block-heading {
        font-size: 1.75rem !important;
    }

    h3.wp-block-heading {
        font-size: 1.25rem !important;
    }

    /* Fix images in columns */
    .wp-block-column .wp-block-image img,
    .wp-block-column figure img,
    .wp-block-image img,
    figure.wp-block-image img {
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        object-fit: cover;
        border-radius: 8px;
    }

    /* Logo on mobile */
    .custom-logo {
        width: 40px !important;
        height: auto !important;
    }

    /* Events section */
    #events .wp-block-columns .wp-block-column {
        margin-bottom: 2rem !important;
    }

    /* Menu section items */
    #menu .wp-block-columns {
        gap: 1rem !important;
    }

    #menu h4.wp-block-heading {
        font-size: 1rem !important;
        margin-bottom: 0.25rem !important;
    }
}

@media (max-width: 480px) {
    /* Even smaller screens */
    .wp-block-gallery.columns-3,
    .wp-block-gallery.has-nested-images.columns-3 {
        columns: 1 !important;
    }

    .mobile-nav {
        max-width: 100%;
    }

    /* Smaller typography */
    h2.wp-block-heading {
        font-size: 1.5rem !important;
    }

    h3.wp-block-heading {
        font-size: 1.125rem !important;
    }

    /* Tighter section padding */
    .wp-block-group.alignfull[style*="padding"] {
        padding-top: 3rem !important;
        padding-bottom: 3rem !important;
    }

    /* Hero content */
    .wp-block-cover__inner-container p {
        font-size: 1rem !important;
    }

    /* Contact section */
    #contact h4.wp-block-heading {
        margin-top: 1.5rem !important;
    }

    /* Feature cards */
    #about + .wp-block-group .wp-block-column {
        padding: 1rem !important;
    }
}

