/* =============================================================================
   GLOBAL SECTION SYSTEM
   Reusable full-width sections and contained inner layouts.
============================================================================= */

.tbe-section,
.tbe-page-hero,
.tbe-page-cta {
    position: relative;
    width: 100vw !important;
    max-width: 100vw !important;
    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;
}

.tbe-section {
    padding-top: 56px;
    padding-bottom: 56px;
}

.tbe-section--compact {
    padding-top: 34px;
    padding-bottom: 34px;
}

.tbe-section--large {
    padding-top: 80px;
    padding-bottom: 80px;
}

.tbe-section--white {
    background: #ffffff;
}

.tbe-section--light {
    background: #f7fafa;
}

.tbe-section--soft {
    background: linear-gradient(180deg, #ffffff 0%, #f7fafa 100%);
}

.tbe-section--teal {
    background: #005751;
    color: #ffffff;
}

.tbe-section--teal h1,
.tbe-section--teal h2,
.tbe-section--teal h3,
.tbe-section--teal p {
    color: #ffffff;
}

/* Inner contained row */

.tbe-container {
    width: min(1500px, calc(100% - 48px));
    margin-left: auto;
    margin-right: auto;
}

/* Narrow content option */

.tbe-container--narrow {
    width: min(900px, calc(100% - 40px));
    margin-left: auto;
    margin-right: auto;
}

/* Homepage section headings */

.tbe-section-heading {
    max-width: 760px;
    margin-bottom: 34px;
}

.tbe-section-heading--center {
    max-width: 820px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.tbe-section-heading h2 {
    margin: 0 0 14px;
    font-size: clamp(2rem, 3.5vw, 3.2rem);
    line-height: 1;
    letter-spacing: -0.035em;
}

.tbe-section-heading p {
    margin: 0;
    font-size: 1.08rem;
    line-height: 1.65;
    color: #4b5563;
}

.tbe-section--teal .tbe-section-heading p {
    color: rgba(255, 255, 255, 0.9);
}

@media (max-width: 600px) {
    .tbe-section {
        padding-top: 56px;
        padding-bottom: 56px;
    }

    .tbe-section--compact {
        padding-top: 38px;
        padding-bottom: 38px;
    }

    .tbe-section--large {
        padding-top: 70px;
        padding-bottom: 70px;
    }

    .tbe-container,
    .tbe-container--narrow {
        width: calc(100vw - 32px);
        max-width: none;
        margin-left: auto;
        margin-right: auto;
    }

}

/* =============================================================================
   GLOBAL CONTAINER RESPONSIVE WIDTHS
   Keeps inner content aligned consistently across full-width sections.
============================================================================= */

@media (max-width: 900px) {
    .tbe-container,
    .tbe-container--narrow,
    .tbe-page-hero__content {
        width: calc(100vw - 40px);
        max-width: none;
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 600px) {
    .tbe-container,
    .tbe-container--narrow,
    .tbe-page-hero__content {
        width: calc(100vw - 32px);
        max-width: none;
        margin-left: auto;
        margin-right: auto;
    }
}


/* =============================================================================
   GLOBAL CONTENT CARDS
   Reusable card style for Kadence-built utility sections.
============================================================================= */

.tbe-content-card {
    position: relative;
    overflow: hidden;
    height: 100%;
    padding: 34px;
    border-radius: 26px;
    border: 1px solid transparent;
    border-top-width: 5px;
    background:
        linear-gradient(#ffffff, #ffffff) padding-box,
        linear-gradient(90deg, #008277 0%, #ba0002 100%) border-box;
    box-shadow: 0 14px 36px rgba(15, 23, 42, 0.07);
}

/* Disable old pseudo top bar if it still exists */

.tbe-content-card::before {
    content: none !important;
}

.tbe-content-card h2,
.tbe-content-card h3 {
    margin-top: 0;
    color: #111827;
}

.tbe-content-card p {
    color: #4b5563;
    line-height: 1.65;
}

@media (max-width: 600px) {
    .tbe-content-card {
        padding: 24px;
        border-radius: 20px;
    }
}

/* =============================================================================
   TEAM MEMBER CARDS
   Styles simple team member cards on the About page.
============================================================================= */

.tbe-team-card {
    text-align: center;
    height: 100%;
}

.tbe-team-card img {
    width: 150px !important;
    height: 150px !important;
    max-width: 150px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    object-position: center center !important;
    display: block !important;
    margin: 0 auto 24px !important;
}

.tbe-team-card h2,
.tbe-team-card h3,
.tbe-team-card h4 {
    margin-top: 0;
    margin-bottom: 8px;
    text-align: center;
}

.tbe-team-card p {
    text-align: center;
}

.tbe-team-card .tbe-team-role {
    margin-top: 0;
    margin-bottom: 0;
    color: #4b5563;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-size: 0.9rem;
}

/* =============================================================================
   FULL WIDTH PAGE HERO
   Reusable hero styling for coded landing pages.
============================================================================= */

.tbe-page-hero {
    min-height: 420px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    background-color: #008277;
    margin-bottom: 0;
    isolation: isolate;
}

.tbe-page-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        rgba(0, 130, 119, 0.92) 0%,
        rgba(0, 130, 119, 0.72) 45%,
        rgba(0, 0, 0, 0.36) 100%
    );
    z-index: 1;
}

.tbe-page-hero__content {
    position: relative;
    z-index: 2;
    width: min(1500px, calc(100% - 48px));
    padding: 90px 0;
    margin: 0 auto;
    color: #ffffff;
}

.tbe-page-hero__content h1 {
    max-width: 850px;
    margin: 0 0 20px;
    font-size: clamp(2.4rem, 4.8vw, 4.8rem);
    line-height: 0.98;
    letter-spacing: -0.05em;
    color: #ffffff;
}

.tbe-page-hero__intro {
    max-width: 760px;
    font-size: 1.18rem;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.94);
}

.tbe-page-hero__intro p {
    margin: 0;
}

@media (max-width: 900px) {
    .tbe-page-hero {
        min-height: 360px;
        margin-bottom: 0;
    }

    .tbe-page-hero__content {
        width: min(100% - 40px, 1500px);
        padding: 74px 0;
    }

    .tbe-page-hero__overlay {
        background: linear-gradient(
            90deg,
            rgba(0, 130, 119, 0.94) 0%,
            rgba(0, 130, 119, 0.76) 58%,
            rgba(0, 0, 0, 0.30) 100%
        );
    }
}

@media (max-width: 600px) {
    .tbe-page-hero {
        min-height: 320px;
        margin-bottom: 0;
    }

    .tbe-page-hero__content {
        width: calc(100vw - 32px);
        max-width: none;
        margin-left: auto;
        margin-right: auto;
        padding: 58px 0;
        box-sizing: border-box;
    }

    .tbe-page-hero__content h1 {
        max-width: 100%;
        font-size: clamp(2.15rem, 11vw, 3.2rem);
        line-height: 1;
    }

    .tbe-page-hero__content p,
    .tbe-page-hero__intro {
        max-width: 100%;
        font-size: 1.02rem;
        line-height: 1.6;
    }

    .tbe-page-hero__overlay {
        background: linear-gradient(
            90deg,
            rgba(0, 130, 119, 0.95) 0%,
            rgba(0, 130, 119, 0.82) 70%,
            rgba(0, 0, 0, 0.20) 100%
        );
    }
}


/* =============================================================================
   ANCHOR POSITIONING
   Keeps filtered results from sitting too close to the top after reload.
============================================================================= */

#all-experiences,
#category-experiences,
#location-experiences {
    scroll-margin-top: 120px;
}


/* =============================================================================
   UTILITIES
   Temporary layout helpers and cross-page fixes.
============================================================================= */

/* Add temporary one-off overrides here during styling checks, then move them
   into the relevant page CSS file once confirmed. */

   /* =============================================================================
   DECORATIVE BACKGROUND UTILITIES
   Adds soft branded background circles for depth and energy.
============================================================================= */

.tbe-bg-pop {
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.tbe-bg-pop > * {
    position: relative;
    z-index: 2;
}

.tbe-bg-pop::before {
    content: "";
    position: absolute;
    top: 40px;
    right: -175px;
    width: 360px;
    height: 360px;
    border-radius: 999px;
    background: rgba(0, 130, 119, 0.08);
    pointer-events: none;
    z-index: 0;
}

.tbe-bg-pop::after {
    content: "";
    position: absolute;
    left: -120px;
    bottom: 40px;
    width: 260px;
    height: 260px;
    border-radius: 999px;
    background: rgba(186, 0, 2, 0.06);
    pointer-events: none;
    z-index: 0;
}

/* Reverse version */

.tbe-bg-pop--reverse::before {
    left: -140px;
    right: auto;
}

.tbe-bg-pop--reverse::after {
    right: -120px;
    left: auto;
}

/* Stronger version for bigger feature sections */

.tbe-bg-pop--strong::before {
    background: rgba(0, 130, 119, 0.295);
}

.tbe-bg-pop--strong::after {
    background: rgba(186, 0, 3, 0.171);
}

/* Softer version for text-heavy sections */

.tbe-bg-pop--soft::before {
    background: rgba(0, 130, 119, 0.055);
}

.tbe-bg-pop--soft::after {
    background: rgba(186, 0, 2, 0.04);
}

/* =============================================================================
   DECORATIVE BACKGROUND MOBILE POSITIONING
   Keeps circles consistent on smaller screens.
============================================================================= */

@media (max-width: 900px) {
    .tbe-bg-pop::before {
        top: 28px;
        right: -95px;
        width: 260px;
        height: 260px;
    }

    .tbe-bg-pop::after {
        left: -85px;
        bottom: 28px;
        width: 210px;
        height: 210px;
    }

    .tbe-bg-pop--reverse::before {
        left: -95px;
        right: auto;
    }

    .tbe-bg-pop--reverse::after {
        right: -85px;
        left: auto;
    }
}

@media (max-width: 600px) {
    .tbe-bg-pop::before {
        top: 24px;
        right: -80px;
        width: 190px;
        height: 190px;
    }

    .tbe-bg-pop::after {
        left: -70px;
        bottom: 24px;
        width: 150px;
        height: 150px;
    }

    .tbe-bg-pop--reverse::before {
        left: -80px;
        right: auto;
    }

    .tbe-bg-pop--reverse::after {
        right: -70px;
        left: auto;
    }
}

/* =============================================================================
   GLOBAL FAQ ACCORDION
   Reusable collapsible FAQ styling for coded pages.
============================================================================= */

.tbe-faq-accordion {
    max-width: 1080px;
    margin: 0 auto;
}

.tbe-faq-accordion__item {
    border-bottom: 1px solid rgba(0, 130, 119, 0.12);
}

.tbe-faq-accordion__item:first-child {
    border-top: 1px solid rgba(0, 130, 119, 0.12);
}

.tbe-faq-accordion__question {
    position: relative;
    display: block;
    padding: 24px 54px 24px 22px;
    color: #111827;
    font-size: 1.05rem;
    line-height: 1.35;
    font-weight: 900;
    cursor: pointer;
    list-style: none;
}

.tbe-faq-accordion__question::-webkit-details-marker {
    display: none;
}

.tbe-faq-accordion__question::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 22px;
    width: 11px;
    height: 11px;
    border-right: 2px solid #008277;
    border-bottom: 2px solid #008277;
    transform: translateY(-65%) rotate(45deg);
    transition: transform 0.2s ease;
}

.tbe-faq-accordion__item[open] .tbe-faq-accordion__question {
    color: #008277;
    background: #f7fafa;
}

.tbe-faq-accordion__item[open] .tbe-faq-accordion__question::after {
    transform: translateY(-35%) rotate(225deg);
}

.tbe-faq-accordion__answer {
    padding: 0 22px 24px;
    border: 1px solid rgba(0, 130, 119, 0.16);
    border-top: 0;
    border-radius: 0 0 14px 14px;
    color: #374151;
    font-size: 1.05rem;
    line-height: 1.75;
}

.tbe-faq-accordion__answer p {
    margin: 0 0 14px;
}

.tbe-faq-accordion__answer p:last-child {
    margin-bottom: 0;
}

.tbe-faq-accordion__item[open] {
    margin-bottom: 14px;
}

.tbe-faq-accordion__item[open] .tbe-faq-accordion__question {
    border-radius: 0;
}

@media (max-width: 600px) {
    .tbe-faq-accordion__question {
        padding: 20px 46px 20px 0;
        font-size: 1rem;
    }

    .tbe-faq-accordion__question::after {
    right: 4px;
}

    .tbe-faq-accordion__answer {
        padding: 0 18px 22px;
        font-size: 1rem;
    }
}

/* =============================================================================
   FULL WIDTH CTA SECTIONS
   Used for page-wide call-to-action blocks across coded pages.
============================================================================= */

.tbe-page-cta {
    position: relative;
    padding: 76px 24px;
    background: #005751;
    color: #ffffff;
    text-align: center;
    overflow: hidden;
    isolation: isolate;
}

/* Top-right soft circle */

.tbe-page-cta::before {
    content: "";
    position: absolute;
    top: 20px;
    right: -120px;
    width: 340px;
    height: 340px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    pointer-events: none;
    z-index: 0;
}

/* Bottom-left red circle */

.tbe-page-cta::after {
    content: "";
    position: absolute;
    left: -100px;
    bottom: 20px;
    width: 260px;
    height: 260px;
    border-radius: 999px;
    background: rgba(186, 0, 2, 0.28);
    pointer-events: none;
    z-index: 0;
}

.tbe-page-cta__inner {
    position: relative;
    z-index: 2;
    width: min(900px, 100%);
    margin: 0 auto;
}

.tbe-page-cta h2 {
    margin: 0 0 16px;
    color: #ffffff;
    font-size: clamp(2rem, 3.2vw, 3.4rem);
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.tbe-page-cta p {
    max-width: 720px;
    margin: 0 auto 26px;
    color: rgba(255, 255, 255, 0.92);
    font-size: 1.08rem;
    line-height: 1.7;
}

.tbe-page-cta .tbe-button {
    background: #ba0002;
    border-color: #ba0002;
    color: #ffffff;
    box-shadow: 0 14px 30px rgba(186, 0, 2, 0.28);
}

.tbe-page-cta .tbe-button:hover {
    background: #8f0001;
    border-color: #8f0001;
    color: #ffffff;
    box-shadow: 0 18px 38px rgba(143, 0, 1, 0.34);
}

@media (max-width: 900px) {
    .tbe-page-cta {
        padding: 66px 24px;
    }

    .tbe-page-cta::before {
        top: -85px;
        right: -95px;
        width: 250px;
        height: 250px;
    }

    .tbe-page-cta::after {
        left: -85px;
        bottom: -95px;
        width: 210px;
        height: 210px;
    }
}

@media (max-width: 600px) {
    .tbe-page-cta {
        padding: 56px 22px;
    }

    .tbe-page-cta::before {
        top: -65px;
        right: -75px;
        width: 180px;
        height: 180px;
    }

    .tbe-page-cta::after {
        left: -70px;
        bottom: -75px;
        width: 160px;
        height: 160px;
    }
}

/* =============================================================================
   KADENCE ENTRY CONTENT WRAP FINAL CTA FIX
   Removes the gap between full-width CTA sections and the footer.
============================================================================= */

body:not(.home) .entry-content-wrap {
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
}

body:not(.home) .entry-content {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

body:not(.home) .site-main {
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
}

/* =============================================================================
   CODED PAGE FULL WIDTH LAYOUT FIX
   Makes non-home coded pages use true full-width content areas.
============================================================================= */

body:not(.home):has(.tbe-page-hero) .content-container,
body:not(.home):has(.tbe-page-hero) .content-container.site-container,
body:not(.home):has(.tbe-page-hero) .content-area,
body:not(.home):has(.tbe-page-hero) .entry-content-wrap,
body:not(.home):has(.tbe-page-hero) .entry-content {
    width: 100% !important;
    max-width: none !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

/* On coded pages, do not use breakout maths. The parent is now full-width. */

body:not(.home):has(.tbe-page-hero) .tbe-page-hero,
body:not(.home):has(.tbe-page-hero) .tbe-section,
body:not(.home):has(.tbe-page-hero) .tbe-page-cta {
    left: auto !important;
    right: auto !important;
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

/* =============================================================================
   CODED PAGE WRAPPER RESET
   Stops old page wrappers restricting full-width heroes and sections.
============================================================================= */

.tbe-experiences-landing,
.tbe-category-landing,
.tbe-categories-landing,
.tbe-location-landing,
.tbe-locations-landing,
.tbe-venue-landing,
.tbe-venues-landing,
.tbe-blog-landing,
.tbe-contact-landing,
.tbe-shortlist-landing {
    width: 100% !important;
    max-width: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    overflow: visible !important;
}

/* =============================================================================
   ENQUIRY PAGE STICKY GUIDE
   Keeps the left enquiry guide visible beside long enquiry forms.
============================================================================= */

.tbe-enquiry-section,
.tbe-enquiry-section .kt-row-column-wrap,
.tbe-enquiry-section .wp-block-kadence-column,
.tbe-enquiry-section .kt-inside-inner-col {
    overflow: visible !important;
}

.tbe-enquiry-section .kt-row-column-wrap {
    align-items: flex-start !important;
}

@media (min-width: 1000px) {
    .tbe-enquiry-guide {
        position: sticky !important;
        top: 120px;
        align-self: flex-start !important;
        height: auto !important;
    }
}

@media (min-width: 1000px) {
    .tbe-enquiry-guide,
    .tbe-enquiry-guide .kt-inside-inner-col {
        position: sticky !important;
        top: 120px;
        align-self: flex-start !important;
        height: auto !important;
    }
}

/* =============================================================================
   404 PAGE
   Styles the custom page-not-found template.
============================================================================= */

.tbe-404-page .tbe-section:first-child {
    padding-top: 110px;
    padding-bottom: 90px;
}

.tbe-404-page__card {
    text-align: center;
}

.tbe-404-page__eyebrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 18px;
    width: 72px;
    height: 72px;
    border-radius: 999px;
    background: rgba(186, 0, 2, 0.10);
    color: #ba0002 !important;
    font-size: 1.25rem;
    font-weight: 900;
}

.tbe-404-page__card h1 {
    margin-top: 0;
    margin-bottom: 18px;
    color: #111827;
}

.tbe-404-page__card p {
    max-width: 680px;
    margin-left: auto;
    margin-right: auto;
}

.tbe-404-page__buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
    margin-top: 30px;
}

.tbe-404-page__links {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.tbe-404-page__link-card {
    display: block;
    text-decoration: none;
    color: inherit;
}

.tbe-404-page__link-card:hover {
    transform: translateY(-3px);
    text-decoration: none;
}

.tbe-404-page__link-card h3 {
    margin-bottom: 10px;
}

@media (max-width: 900px) {
    .tbe-404-page__links {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .tbe-404-page .tbe-section:first-child {
        padding-top: 72px;
        padding-bottom: 62px;
    }

    .tbe-404-page__buttons {
        flex-direction: column;
    }

    .tbe-404-page__buttons .tbe-button {
        width: 100%;
    }
}