/* Global font family */
body { font-family: 'Montserrat', system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif; }

/* ==========================================================================
   Slider Integration Styles
   ========================================================================== */

/* Hero Slider Section */
.hero-slider-section {
    margin: 0;
    padding: 0;
    position: relative;
}

/* Ensure slider doesn't interfere with navigation */
.hero-slider-section .slider-container {
    z-index: 1;
}

.hero-slider-section .slick-prev,
.hero-slider-section .slick-next {
    z-index: 10;
}

.hero-slider-section .slick-dots {
    z-index: 10;
}

/* Slider integration with theme colors */
.hero-slider-section .slide-button {
    background: var(--primary-color, #1D5C8C);
    border: 2px solid transparent;
}

.hero-slider-section .slide-button:hover {
    background: var(--primary-dark, #0c324f);
}

/* Ensure slider works well with sticky header */
body.has-sticky-header .hero-slider-section {
    margin-top: 0;
}

/* Slider accessibility improvements */
.hero-slider-section .slick-slide:focus {
    outline: 2px solid var(--primary-color, #1D5C8C);
    outline-offset: 2px;
}

.hero-slider-section .slide-button:focus {
    outline: 2px solid white;
    outline-offset: 2px;
}

/* Slider loading state */
.hero-slider-section .slider-wrapper:not(.slick-initialized) {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.hero-slider-section .slider-wrapper.slick-initialized {
    opacity: 1;
}

/* Responsive slider adjustments */
@media (max-width: 768px) {
    .hero-slider-section .slide-title {
        font-size: 1.75rem;
    }
    
    .hero-slider-section .slide-description {
        font-size: 1rem;
    }
    
    .hero-slider-section .slide-button {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .hero-slider-section .slide-title {
        font-size: 1.5rem;
    }
    
    .hero-slider-section .slide-description {
        font-size: 0.9rem;
    }
    
    .hero-slider-section .slide-inner {
        padding: 1rem 0.5rem;
    }
}

/* Base Navigation Styles */
.main-navigation,
.sticky-navigation {
    position: relative;
}

/* ================= Animations ================= */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ================= Front Page Hero ================= */
/* Hero section styles moved to ACF block: hero-section.css */

/* ================= Home CTA Tiles ================= */
/* Home CTA Tiles styles moved to ACF block: home-cta-tiles.css */

/* ================= Testimonials Section ================= */
.testimonials-section { background-size: auto; background-position: center top; background-repeat: repeat; padding: 30px 0 60px; }
.cta-pill-row { display: grid; grid-template-columns: repeat(3,1fr); gap: 26px; margin-bottom: 28px; }
.cta-pill { 
    display: inline-flex; 
    align-items: center; 
    justify-content: center; 
    background: #cb3638; 
    color: #fff; 
    text-decoration: none; 
    font-weight: 900; 
    letter-spacing: .5px; 
    padding: 18px 24px; 
    border-radius: 999px; 
    box-shadow: 0 8px 22px rgba(0,0,0,.25);
    transition: background-color 0.3s ease, color 0.3s ease;
}
.cta-pill:hover { 
    background: #fff; 
    color: #cb3638;
}

.testimonial-shell { background-size: auto; background-position: center top; background-repeat: repeat; border-radius: 8px; overflow: hidden; box-shadow: 0 12px 28px rgba(0,0,0,.35); }
.testimonial-header { text-align: center; padding: 30px 20px 0; color: #fff; }
.testimonial-kicker { 
    font-family: "Averia Serif Libre", sans-serif;
    font-weight: 400;
    font-size: 2rem;
    line-height: 1.2;
    margin: 0 0 6px;
}
.testimonial-title { color: #cb3638; font-size: 56px; margin: 0 0 10px; font-weight: 900; text-transform: uppercase; }
.testimonial-slider { position: relative; padding: 24px 28px 36px; color: #fff; min-height: 220px; }
.testimonial { display: none; text-align: center; max-width: 1000px; margin: 0 auto; }
.testimonial.active { display: block; }
.testimonial-text { font-size: 20px; line-height: 1.6; margin: 0 0 16px; }
.testimonial-author { font-weight: 900; color: #cb3638; letter-spacing: .5px; }
.testimonial-dots { display: flex; gap: 12px; justify-content: center; padding: 0 0 26px; }
.testimonial-dots .dot { width: 10px; height: 10px; border-radius: 50%; background: #cb3638; opacity: .6; border: none; cursor: pointer; }
.testimonial-dots .dot.active { opacity: 1; }

@media (max-width: 1024px) {
  .cta-pill-row { grid-template-columns: 1fr 1fr 1fr; }
  .testimonial-title { font-size: 44px; }
}

/* ================= Photo Gallery ================= */
/* Home Photo Gallery styles moved to ACF block: home-photo-gallery.css */

/* ================= Footer (new layout) ================= */
.site-footer { background: #000; color: #fff; }
.footer-branding-centered { display: flex; justify-content: center; align-items: center; padding: 24px 0 8px; text-align: center; }
.footer-centered-logo { max-width: 420px; height: auto; display: block; margin: 0 auto; }
.footer-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 28px; padding: 14px 0 28px; }
.footer-heading { 
    color: #cb3638; 
    font-family: 'Montserrat', sans-serif; 
    font-weight: 900; 
    font-size: 22px; 
    line-height: 1; 
    text-transform: uppercase;
    margin: 0 0 10px; 
}
.footer-links-list { list-style: none; margin: 0; padding: 0; }
.footer-links-list a { color: #fff; text-decoration: none; }
.footer-links-list a:hover { color: #cb3638; }
.footer-address { margin: 0 0 8px; }
.footer-phone a { color: #fff; text-decoration: none; }
.footer-social-link { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; background: #cb3638; color: #fff; font-size: 12px; text-decoration: none; margin-right: 8px; }

@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
  .footer-centered-logo { max-width: 300px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  /* Home Photo Gallery mobile styles moved to ACF block: home-photo-gallery.css */
}

@media (max-width: 768px) {
  .cta-pill-row { grid-template-columns: 1fr; }
  .testimonial-title { font-size: 36px; }
  .testimonial-text { font-size: 18px; }
}

@media (max-width: 768px) {
  /* Home CTA Tiles mobile styles moved to ACF block: home-cta-tiles.css */
}

/* Header layout to match provided reference */
.site-header {
    background-color: #000; /* dark background */
    color: #fff;
}

/* Make header containers full-width so logo can reach far left */
.site-header .container { max-width: 100%; padding-left: 16px; padding-right: 16px; margin-left: 0; margin-right: 0; }
.sticky-header .container { max-width: 100%; padding-left: 16px; padding-right: 16px; margin-left: 0; margin-right: 0; background-color: #000; }

.site-header .header-content {
    display: grid;
    grid-template-columns: auto 1fr; /* logo natural width, nav right */
    align-items: center;
    gap: 24px;
    padding: 10px 0;
}

.site-header .site-branding { justify-self: start; }
.site-header .header-right { justify-self: end; }

.site-header .large-logo img {
    width: auto;
    height: auto;
}

.site-header .placeholder-logo {
    display: inline-flex;
    width: 280px;
    height: 84px;
    align-items: center;
    justify-content: center;
    background: #b91c1c;
    color: #fff;
    border-radius: 12px;
    font-weight: 800;
    letter-spacing: 1px;
    text-decoration: none;
}

.site-header .header-right {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: flex-end;
}

/* Large pill CTA above nav */
.order-online-button {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0px;
    padding: 12px 100px;
    background: #ffffff;
    color: #000000;
    border-radius: 999px;
    text-decoration: none;
    box-shadow: 0 6px 20px rgba(0,0,0,.25);
    font-family: 'Montserrat', sans-serif;
    font-size: 18px;
    text-shadow: none;
    line-height: .9;
    font-weight: 900;
    font-style: normal;
    text-align: center;
    letter-spacing: normal;
    word-spacing: normal;
    text-transform: uppercase;
    min-width: 430px;
}

.order-online-button .order-online-title { font-weight: 900; letter-spacing: normal; font-size: 18px; }
.order-online-button .order-online-sub { display: block; font-size: 16px; opacity: .95; text-transform: uppercase; }

.order-online-button:hover { 
    background: #cb3638; 
    color: #ffffff;
    transition: background-color 0.6s ease, color 0.6s ease;
}

/* Utility links row */
.header-utility { display: flex; align-items: center; gap: 16px; width: 100%; justify-content: space-between; }
.utility-left { display: flex; align-items: center; gap: 16px; }
.utility-links { list-style: none; display: flex; gap: 28px; margin: 0; padding: 0; }
.utility-links a { color: #fff; text-decoration: none; font-weight: 900; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; opacity: .95; }
.utility-links a:hover { opacity: 1; }
.utility-social { display: flex; align-items: center; gap: 18px; }
.utility-social .social-link { color: #fff; opacity: .9; text-decoration: none; display: inline-flex; width: 30px; height: 30px; align-items: center; justify-content: center; }
.utility-social .social-link svg { display: block; width: 30px; height: 30px; }
.utility-social .social-link:hover { 
    opacity: 1; 
}

.utility-social .social-link:hover svg {
    fill: #cb3638;
}

/* Primary menu style to match bigger sizing */
.primary-menu,
.sticky-menu {
    display: flex;
    align-items: center;
    gap: 6px;
    justify-content: flex-end; /* move menu links to the right */
}

.main-navigation .menu-wrapper { display: flex; align-items: center; justify-content: flex-end; gap: 20px; width: 100%; }

.primary-menu a,
.sticky-menu a {
    padding: 14px 18px;
    color: #cb3638;
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: 2rem;
    line-height: 1;
    text-transform: none;
    letter-spacing: 0;
    white-space: nowrap;
}

/* Active/current menu item white */
.primary-menu .current-menu-item > a,
.primary-menu .current_page_item > a,
.sticky-menu .current-menu-item > a,
.sticky-menu .current_page_item > a { color: #ffffff; }

.primary-menu a:hover,
.sticky-menu a:hover {
    color: #cb3638; /* red hover accent */
    background: transparent;
}

/* Top bar overrides for dark header */
.top-bar { background: #000; color: #fff; }
.top-bar a { color: #fff; }

/* Dropdown menus on dark header */
.dropdown-menu { background: #0b0b0b; border-color: rgba(255,255,255,.1); }
.dropdown-menu a { color: #f5f5f5; }
.dropdown-menu a:hover { background: rgba(255,255,255,.06); color: #fff; }

.primary-menu,
.sticky-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
}

.primary-menu li,
.sticky-menu li {
    position: relative;
    margin: 0;
    padding: 0;
}

.primary-menu a,
.sticky-menu a {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

/* Dropdown Arrow */
.dropdown-arrow { display: none !important; }

/* Dropdown Menu Styles */
.dropdown-menu {
    position: absolute;
    top: calc(100% - 12px); /* overlap parent by ~12px to eliminate hover gap */
    left: 0;
    min-width: 420px; /* wider base width to contain long labels */
    width: max-content; /* grow to fit the longest link */
    background: #0b0b0b; /* solid dark background so links sit inside */
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 0;
    box-shadow: none;
    opacity: 0;
    visibility: hidden;
    transform: none;
    transition: none;
    z-index: 1000;
    list-style: none;
    margin: 0;
    padding: 6px 0; /* vertical breathing room */
    white-space: nowrap; /* avoid wrapping and keep background covering width */
}

/* Create a small invisible hover bridge between parent and submenu to prevent flicker */
.primary-menu .menu-item-has-children,
.sticky-menu .menu-item-has-children { position: relative; }

.primary-menu .menu-item-has-children::after,
.sticky-menu .menu-item-has-children::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    height: 16px; /* larger buffer area to prevent hover loss */
}

.menu-item-has-children:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Sub-menu items */
.dropdown-menu li {
    margin: 0;
    padding: 0;
}

.dropdown-menu a {
    display: block;
    padding: 14px 22px;
    color: #cb3638; /* default red */
    text-decoration: none;
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: 2rem;
    line-height: 1;
    transition: color 0.2s ease;
    border: none;
    background: transparent;
}

.dropdown-menu a:hover { background: transparent; color: #ffffff; }

/* Nested sub-menus (sub-submenu) */
.sub-submenu {
    position: absolute;
    left: 100%;
    top: 0;
    min-width: 180px;
    margin-left: 1px;
}

/* Tablet sizes now use sidebar overlay - no need to hide navigation */

/* Tablet breakpoint - reduce button size and hide utility links */
@media (max-width: 1023px) {
    .order-online-button { 
        min-width: 350px; 
        padding: 14px 80px;
    }
    .utility-links {
        display: none;
    }
}

/* Small tablet breakpoint */
@media (max-width: 900px) {
    .order-online-button { 
        min-width: 300px; 
        padding: 12px 60px;
    }
}

/* Mobile Navigation Styles */
@media (max-width: 768px) {
    .site-header .header-content { grid-template-columns: auto 1fr; align-items: center; }
    .site-header .header-right { align-items: flex-end; }
    .site-header .placeholder-logo { max-height: 60px; height: 60px; width: auto; }
    .order-online-button { 
        min-width: 250px; 
        padding: 10px 40px;
    }
}

/* Small mobile breakpoint */
@media (max-width: 480px) {
    .order-online-button { 
        min-width: 200px; 
        padding: 8px 30px;
    }
}
    .primary-menu,
    .sticky-menu {
        display: none;
        flex-direction: column;
        align-items: stretch;
        width: 100%;
    }
    
    /* Show menu only when wrapper is active */
    .menu-wrapper.active .primary-menu {
        display: flex;
    }
    
    /* Show sticky menu only when sticky header is active AND menu is toggled */
    .sticky-header.active .sticky-menu {
        display: none; /* Keep hidden by default even when sticky header is active */
    }
    
    .sticky-header.active .sticky-menu.active {
        display: flex; /* Only show when both sticky header is active AND menu is toggled */
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: #000;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
        z-index: 1000;
        padding: 1rem 0;
        margin: 0;
        width: 100vw;
        margin-left: calc(-50vw + 50%);
    }
    
    .primary-menu li,
    .sticky-menu li {
        width: 100%;
    }
    
    .primary-menu a,
    .sticky-menu a { padding: 1rem 1.5rem; border-bottom: 1px solid rgba(255,255,255,.08); }
    
    /* Mobile dropdown styles */
    .dropdown-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        box-shadow: none;
        border: none;
        background: #0b0b0b;
        margin-left: 0;
        border-radius: 0;
        transition: all 0.3s ease;
        display: block;
        width: 100%;
        z-index: 1001;
        max-height: none;
        overflow: visible;
    }
    
    .menu-item-has-children.active .dropdown-menu {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
    
    .menu-item-has-children .dropdown-menu.show {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
    
    /* Ensure dropdowns can be toggled multiple times */
    .menu-item-has-children.active .dropdown-menu,
    .menu-item-has-children .dropdown-menu.show {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
    
    /* Reset dropdown state when not active */
    .menu-item-has-children:not(.active) .dropdown-menu {
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
    }
    
    .dropdown-menu a {
        padding: 1rem 1.5rem;
        width: 100%;
        display: block;
        text-decoration: none;
        border-radius: 0;
        transition: all var(--transition-fast);
    }
    
    .dropdown-menu a:hover { background-color: rgba(255,255,255,.06); color: #fff; }
    
    .sub-submenu {
        position: static;
        margin-left: 0;
        background: transparent;
        width: 100%;
    }
    
    /* Mobile dropdown arrow */
    .dropdown-arrow {
        margin-left: auto;
    }
    
    .menu-item-has-children.active .dropdown-arrow {
        transform: rotate(180deg);
    }

@media (max-width: 1023px) {
    .menu-wrapper {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        width: 100%;
        height: 100vh;
        background-color: rgba(0, 0, 0, 0.92);
        backdrop-filter: blur(12px);
        z-index: 9999;
        display: block;
        overflow-y: auto;
        transform: translateX(100%);
        transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
        opacity: 0;
        visibility: hidden;
    }

    .menu-wrapper.active {
        transform: translateX(0);
        opacity: 1;
        visibility: visible;
    }

    body.has-sticky-header .menu-wrapper {
        left: 0;
        right: 0;
        width: 100%;
        height: 100vh;
    }

    .primary-menu {
        padding: 120px 30px 30px;
        gap: 20px;
    }

    .primary-menu a {
        white-space: normal;
        line-height: 1.4;
        word-break: break-word;
    }

    .dropdown-menu {
        min-width: 100%;
        width: 100%;
    }

    .dropdown-menu a {
        white-space: normal;
        line-height: 1.4;
        word-break: break-word;
    }
}


/* Accessibility Improvements */
.dropdown-toggle:focus {
    outline: 2px solid #cb3638;
    outline-offset: 2px;
}

.dropdown-menu:focus-within {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Keyboard Navigation Support */
.menu-item-has-children:focus-within .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .dropdown-menu {
        border: 2px solid #000;
    }
    
    .dropdown-menu a:hover {
        background-color: #000;
        color: #fff;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .dropdown-menu,
    .dropdown-arrow,
    .dropdown-menu a {
        transition: none;
    }
}

/* Sticky header dropdown adjustments */
.sticky-header .dropdown-menu { background: #0b0b0b; border: 1px solid rgba(255,255,255,.12); }

.sticky-header .dropdown-menu a { color: #cb3638; }

.sticky-header .dropdown-menu a:hover { background: transparent; color: #ffffff; }

/* Animation for dropdown appearance */
@keyframes dropdownFadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dropdown-menu { animation: none; }

/* Hover delay for better UX */
.menu-item-has-children {
    transition: all 0.2s ease;
}

/* Focus styles for better accessibility */
.menu-item-has-children:focus-within {
    background-color: rgba(0, 124, 186, 0.05);
}

/* Dropdown positioning adjustments */
.menu-item-has-children:last-child .dropdown-menu {
    right: 0;
    left: auto;
}

/* Ensure dropdowns don't go off-screen */
.dropdown-menu {
    max-width: 300px;
    word-wrap: break-word;
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    .menu-item-has-children:hover .dropdown-menu {
        opacity: 0;
        visibility: hidden;
    }
    
    .menu-item-has-children.active .dropdown-menu {
        opacity: 1;
        visibility: visible;
    }
}

/* JavaScript-controlled dropdown states */
.menu-item-has-children.hover .dropdown-menu,
.menu-item-has-children.active .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.menu-item-has-children.hover .dropdown-arrow,
.menu-item-has-children.active .dropdown-arrow {
    transform: rotate(180deg);
}

/* Show class for JavaScript control */
.dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Rotated arrow class for JavaScript control */
.dropdown-arrow.rotated {
    transform: rotate(180deg);
}

/* Mobile active state */
@media (max-width: 768px) {
    .menu-item-has-children.active .dropdown-menu {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
    
    .menu-item-has-children.active .dropdown-arrow {
        transform: rotate(180deg);
    }
}

/* ==========================================================================
   Header Search Bar Styles
   ========================================================================== */

/* Header Search Container */
.header-search-container {
    display: flex;
    align-items: center;
    margin-left: var(--spacing-md);
    margin-right: var(--spacing-md);
}

/* Header Search Form */
.header-search-form {
    position: relative;
    display: flex;
    align-items: center;
}

/* Search Input Wrapper */
.search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 25px;
    padding: 8px 12px;
    transition: all 0.3s ease;
    min-width: 200px;
}

.search-input-wrapper:hover {
    border-color: #cbd5e1;
    background: #ffffff;
}

.search-input-wrapper:focus-within {
    border-color: var(--primary-color, #1D5C8C);
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(29, 92, 140, 0.1);
}

/* Header Search Input */
.header-search-input {
    border: none;
    background: transparent;
    padding: 0;
    margin: 0;
    font-size: 14px;
    color: #374151;
    width: 100%;
    outline: none;
    flex: 1;
}

.header-search-input::placeholder {
    color: #9ca3af;
    font-style: italic;
}

.header-search-input:focus {
    outline: none;
}

/* Header Search Submit Button */
.header-search-submit {
    background: none;
    border: none;
    padding: 0;
    margin-left: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b7280;
    transition: color 0.3s ease;
    border-radius: 50%;
    width: 24px;
    height: 24px;
}

.header-search-submit:hover {
    color: var(--primary-color, #1D5C8C);
    background: rgba(29, 92, 140, 0.1);
}

.header-search-submit:focus {
    outline: none;
    color: var(--primary-color, #1D5C8C);
    background: rgba(29, 92, 140, 0.1);
}

.header-search-submit svg {
    width: 16px;
    height: 16px;
}

/* Responsive Header & Search Bar Design */
@media (max-width: 1350px) {
    .header-search-container {
        display: none;
    }
}

@media (max-width: 768px) {
    .header-search-container {
        display: none;
    }
}

@media (max-width: 1024px) {
    .search-input-wrapper {
        min-width: 180px;
    }
}

@media (min-width: 1025px) {
    .search-input-wrapper {
        min-width: 220px;
    }
}

/* Focus styles for accessibility */
.header-search-form:focus-within .search-input-wrapper {
    border-color: var(--primary-color, #1D5C8C);
    box-shadow: 0 0 0 3px rgba(29, 92, 140, 0.1);
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .search-input-wrapper {
        border-width: 2px;
    }
    
    .header-search-submit:hover {
        background: rgba(0, 0, 0, 0.1);
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .search-input-wrapper,
    .header-search-submit {
        transition: none;
    }
}

/* ==========================================================================
   Pagination Styles
   ========================================================================== */

/* Pagination Wrapper */
.pagination-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 3rem 0 2rem;
    padding: 0;
    width: 100%;
}

/* WordPress Default Pagination Navigation */
.pagination-wrapper .navigation {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: nowrap;
    justify-content: space-between;
    white-space: nowrap;
    width: 100%;
    max-width: 600px;
    position: relative;
}

/* Center page numbers container */
.pagination-wrapper .navigation > *:not(.prev):not(.next) {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 0.25rem;
    flex-wrap: nowrap;
}

/* Page Numbers - Small Circles */
.pagination-wrapper .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    margin: 0 0.25rem;
    background: #ffffff;
    border: 2px solid #e5e7eb;
    border-radius: 50%;
    color: #374151;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.75rem;
    line-height: 1;
    transition: all 0.2s ease-in-out;
    position: relative;
    overflow: hidden;
}

.pagination-wrapper .page-numbers:hover {
    background: var(--primary-color, #1D5C8C);
    border-color: var(--primary-color, #1D5C8C);
    color: #ffffff;
    transform: scale(1.1);
    box-shadow: 0 2px 8px rgba(29, 92, 140, 0.2);
}

.pagination-wrapper .page-numbers:focus {
    outline: none;
    background: var(--primary-color, #1D5C8C);
    border-color: var(--primary-color, #1D5C8C);
    color: #ffffff;
    box-shadow: 0 0 0 3px rgba(29, 92, 140, 0.1);
}

/* Current Page */
.pagination-wrapper .page-numbers.current {
    background: var(--primary-color, #1D5C8C);
    border-color: var(--primary-color, #1D5C8C);
    color: #ffffff;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(29, 92, 140, 0.2);
}

.pagination-wrapper .page-numbers.current:hover {
    background: var(--primary-dark, #0c324f);
    border-color: var(--primary-dark, #0c324f);
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(12, 50, 79, 0.25);
}

/* Previous/Next Navigation */
.pagination-wrapper .prev,
.pagination-wrapper .next {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 120px;
    height: 44px;
    padding: 0.75rem 1.25rem;
    margin: 0 0.25rem;
    background: #ffffff;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    color: #374151;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.875rem;
    line-height: 1.25rem;
    transition: all 0.2s ease-in-out;
    position: relative;
    overflow: hidden;
    white-space: nowrap;
}

.pagination-wrapper .prev:hover,
.pagination-wrapper .next:hover {
    background: var(--primary-color, #1D5C8C);
    border-color: var(--primary-color, #1D5C8C);
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(29, 92, 140, 0.15);
}

.pagination-wrapper .prev:focus,
.pagination-wrapper .next:focus {
    outline: none;
    background: var(--primary-color, #1D5C8C);
    border-color: var(--primary-color, #1D5C8C);
    color: #ffffff;
    box-shadow: 0 0 0 3px rgba(29, 92, 140, 0.1);
}

/* Navigation Text */
.pagination-wrapper .nav-prev-text,
.pagination-wrapper .nav-next-text {
    display: inline-block;
    margin: 0 0.5rem;
    font-weight: 500;
    white-space: nowrap;
}

/* SVG Icons in Navigation */
.pagination-wrapper .prev svg,
.pagination-wrapper .next svg {
    width: 16px;
    height: 16px;
    transition: transform 0.2s ease-in-out;
}

.pagination-wrapper .prev:hover svg,
.pagination-wrapper .next:hover svg {
    transform: scale(1.1);
}

/* Dots/Ellipsis */
.pagination-wrapper .dots {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    margin: 0 0.25rem;
    background: #f9fafb;
    border: 2px solid #e5e7eb;
    border-radius: 50%;
    color: #6b7280;
    font-weight: 500;
    font-size: 0.75rem;
    line-height: 1;
}

/* Disabled States */
.pagination-wrapper .page-numbers.disabled,
.pagination-wrapper .prev.disabled,
.pagination-wrapper .next.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.pagination-wrapper .page-numbers.disabled:hover,
.pagination-wrapper .prev.disabled:hover,
.pagination-wrapper .next.disabled:hover {
    background: #ffffff;
    border-color: #e5e7eb;
    color: #374151;
    transform: none;
    box-shadow: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .pagination-wrapper {
        margin: 2rem 0 1.5rem;
    }
    
    .pagination-wrapper .navigation {
        max-width: 100%;
        justify-content: space-between;
    }
    
    /* Center page numbers container */
    .pagination-wrapper .navigation > *:not(.prev):not(.next) {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        display: flex;
        align-items: center;
        gap: 0.125rem;
        flex-wrap: nowrap;
    }
    
    .pagination-wrapper .page-numbers {
        width: 28px;
        height: 28px;
        font-size: 0.7rem;
        margin: 0;
    }
    
    .pagination-wrapper .prev,
    .pagination-wrapper .next {
        min-width: 100px;
        height: 40px;
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
        margin: 0 0.125rem;
    }
    
    .pagination-wrapper .nav-prev-text,
    .pagination-wrapper .nav-next-text {
        display: none;
    }
    
    .pagination-wrapper .prev svg,
    .pagination-wrapper .next svg {
        width: 14px;
        height: 14px;
    }
}

@media (max-width: 480px) {
    .pagination-wrapper .navigation {
        gap: 0.25rem;
        max-width: 100%;
    }
    
    /* Center page numbers container */
    .pagination-wrapper .navigation > *:not(.prev):not(.next) {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        display: flex;
        align-items: center;
        gap: 0.125rem;
        flex-wrap: nowrap;
    }
    
    .pagination-wrapper .page-numbers {
        width: 24px;
        height: 24px;
        font-size: 0.65rem;
        margin: 0;
    }
    
    .pagination-wrapper .prev,
    .pagination-wrapper .next {
        min-width: 80px;
        height: 36px;
        padding: 0.5rem 0.75rem;
        font-size: 0.75rem;
        margin: 0 0.125rem;
    }
    
    .pagination-wrapper .dots {
        width: 24px;
        height: 24px;
        padding: 0;
        font-size: 0.65rem;
        border-radius: 50%;
    }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .pagination-wrapper .page-numbers,
    .pagination-wrapper .prev,
    .pagination-wrapper .next {
        border-width: 2px;
    }
    
    .pagination-wrapper .page-numbers.current {
        border-width: 3px;
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    .pagination-wrapper .page-numbers,
    .pagination-wrapper .prev,
    .pagination-wrapper .next {
        transition: none;
    }
    
    .pagination-wrapper .prev svg,
    .pagination-wrapper .next svg {
        transition: none;
    }
}

/* Focus Visible for Accessibility */
.pagination-wrapper .page-numbers:focus-visible,
.pagination-wrapper .prev:focus-visible,
.pagination-wrapper .next:focus-visible {
    outline: 2px solid var(--primary-color, #1D5C8C);
    outline-offset: 2px;
}

/* Dark Mode Support (if implemented) */
@media (prefers-color-scheme: dark) {
    .pagination-wrapper .page-numbers,
    .pagination-wrapper .prev,
    .pagination-wrapper .next {
        background: #1f2937;
        border-color: #374151;
        color: #d1d5db;
    }
    
    .pagination-wrapper .page-numbers:hover,
    .pagination-wrapper .prev:hover,
    .pagination-wrapper .next:hover {
        background: var(--primary-color, #1D5C8C);
        border-color: var(--primary-color, #1D5C8C);
        color: #ffffff;
    }
    
    .pagination-wrapper .page-numbers.current {
        background: var(--primary-color, #1D5C8C);
        border-color: var(--primary-color, #1D5C8C);
        color: #ffffff;
    }
    
    .pagination-wrapper .dots {
        background: #111827;
        border-color: #374151;
        color: #9ca3af;
    }
}

/* ==========================================================================
   Gravity Forms Event Booking Styling
   ========================================================================== */

/* Form wrapper with brick background - full width breakout */
.gform_wrapper {
    position: relative;
    background-image: url('../images/brick-banner.jpg');
    background-size: auto;
    background-position: center top;
    background-repeat: repeat;
    background-attachment: scroll;
    /* Break out of container to full width */
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    padding: 60px 40px;
    /* Ensure proper positioning */
    box-sizing: border-box;
}

/* Center the form content within the full-width background */
.gform_wrapper .gform_heading,
.gform_wrapper form,
.gform_wrapper .gform_body,
.gform_wrapper .gform_fields {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
}

/* Ensure form body and fields are centered */
.gform_wrapper .gform_body {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Center the form fields container */
.gform_wrapper .gform_fields {
    max-width: 1200px;
    margin: 0 auto;
}

/* Form description - white text */
.gform_description {
    color: #ffffff !important;
    text-align: center;
    font-size: 1.5rem;
    margin-bottom: 20px;
    font-weight: 400;
}

/* Required fields indicator */
.gform_description + *,
.gform_description::after {
    color: #ffffff;
    font-size: 0.875rem;
    text-align: left;
}

/* Force all field labels to uppercase - matching footer-heading style */
.gfield_label,
.gform-field-label {
    text-transform: uppercase !important;
    color: #cb3638 !important;
    font-family: 'Montserrat', sans-serif !important;
    font-weight: 900 !important;
    font-size: 24px !important;
    line-height: 1 !important;
    margin-bottom: 8px;
    display: block;
}

/* Sub-labels (First, Last) */
.gform-field-label--type-sub {
    text-transform: none !important;
    color: #ffffff !important;
    font-size: 0.875rem;
    font-weight: 400;
    margin-bottom: 4px;
}

/* Required indicator styling */
.gfield_required {
    color: #cb3638 !important;
}

.gfield_required_text {
    text-transform: none;
    font-size: 0.875rem;
}

/* All input fields - white glassy semi-transparent effect */
.gform_wrapper input[type="text"],
.gform_wrapper input[type="email"],
.gform_wrapper input[type="tel"],
.gform_wrapper input[type="number"],
.gform_wrapper input[type="date"],
.gform_wrapper textarea,
.gform_wrapper select {
    background: rgba(255, 255, 255, 0.85) !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    border-radius: 0;
    padding: 12px 16px;
    font-size: 1rem;
    color: #112337;
    width: 100%;
    transition: all 0.3s ease;
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}

.gform_wrapper input[type="text"]:focus,
.gform_wrapper input[type="email"]:focus,
.gform_wrapper input[type="tel"]:focus,
.gform_wrapper input[type="number"]:focus,
.gform_wrapper input[type="date"]:focus,
.gform_wrapper textarea:focus,
.gform_wrapper select:focus {
    background: rgba(255, 255, 255, 0.95) !important;
    border-color: rgba(255, 255, 255, 0.5) !important;
    outline: none;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.2);
}

/* Textarea specific */
.gform_wrapper textarea {
    min-height: 120px;
    resize: vertical;
}

/* Date picker icon */
.gform_wrapper .ui-datepicker-trigger {
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 8px;
    cursor: pointer;
}

/* Time field inputs */
.gfield_time_hour input,
.gfield_time_minute input {
    background: rgba(255, 255, 255, 0.85) !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
}

.gfield_time_ampm select {
    background: rgba(255, 255, 255, 0.85) !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
}

/* Center Name of Group/Event and Number of Guests fields */
#field_2_6,
#field_2_7 {
    text-align: center;
    margin: 0 auto;
}

#field_2_6 .gfield_label,
#field_2_7 .gfield_label {
    text-align: center;
}

#field_2_6 .ginput_container,
#field_2_7 .ginput_container {
    display: flex;
    justify-content: center;
}

#field_2_6 input,
#field_2_7 input {
    max-width: 400px;
    margin: 0 auto;
}

/* Ensure the fields are centered even when side-by-side */
.gform_wrapper .gform-grid-row #field_2_6,
.gform_wrapper .gform-grid-row #field_2_7 {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Submit button - red with white text */
.gform_button,
#gform_submit_button_2 {
    background: #cb3638 !important;
    color: #ffffff !important;
    border: none !important;
    padding: 14px 40px;
    font-size: 1.125rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: block;
    margin: 30px auto 0;
    min-width: 200px;
}

.gform_button:hover,
#gform_submit_button_2:hover {
    background: #a92e2f !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.gform_button:active,
#gform_submit_button_2:active {
    transform: translateY(0);
}

/* Form footer - centered */
.gform_footer {
    text-align: center;
    margin-top: 30px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
}

/* Character counter - white text */
.ginput_counter,
.charleft,
.ginput_counter.gfield_description,
.charleft.ginput_counter.gfield_description {
    color: #ffffff !important;
    font-size: 0.875rem;
    margin-top: 4px;
}

/* reCAPTCHA styling */
.gform_wrapper .gfield_captcha_container {
    margin: 24px 0;
}

.gform_wrapper .gfield_captcha_container .gfield_label {
    text-transform: uppercase;
    color: #cb3638;
    font-weight: 700;
    margin-bottom: 12px;
}

/* Optional: Add "* indicates required fields" text styling if added manually */
.gform_wrapper .required-indicator {
    color: #ffffff;
    font-size: 0.875rem;
    text-align: left;
    margin-bottom: 20px;
    padding-left: 0;
}

/* Field spacing */
.gfield {
    margin-bottom: 24px;
}

/* Name field complex layout */
.ginput_complex.ginput_container_name {
    display: flex;
    gap: 16px;
}

.ginput_complex.ginput_container_name .name_first,
.ginput_complex.ginput_container_name .name_last {
    flex: 1;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .gform_wrapper {
        padding: 40px 20px;
        width: 100vw;
        max-width: 100vw;
        margin-left: calc(50% - 50vw);
        margin-right: calc(50% - 50vw);
    }
    
    /* Keep form content centered on mobile */
    .gform_wrapper .gform_heading,
    .gform_wrapper form,
    .gform_wrapper .gform_body,
    .gform_wrapper .gform_fields,
    .gform_wrapper .gform_footer {
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }
    
    .gform_description {
        font-size: 1.25rem;
        color: #ffffff !important;
    }
    
    #field_2_6 input,
    #field_2_7 input {
        max-width: 100%;
    }
    
    .ginput_complex.ginput_container_name {
        flex-direction: column;
        gap: 12px;
    }
    
    /* Ensure character counter stays white on mobile */
    .ginput_counter,
    .charleft,
    .ginput_counter.gfield_description,
    .charleft.ginput_counter.gfield_description {
        color: #ffffff !important;
    }
}
