/**
 * Visit Page Styles
 * Tenuta Bally Theme
 */

/* ==========================================================================
   Page Container
   ========================================================================== */

.tb-visit-page .site-main {
    padding: 0;
    margin-bottom: 0;
    max-width: none;
    overflow: visible;
    background: transparent;
}

.tb-visit-page .content-area {
    overflow: visible;
    margin-bottom: 0;
}

.tb-visit-page #primary,
.tb-visit-page #main {
    margin-bottom: 0;
}

/* ==========================================================================
   Hero Section - Fullscreen
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Great+Vibes&display=swap');

.tb-visit-hero {
    position: relative;
    min-height: 100vh;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding-bottom: 80px;
    overflow: visible;
    z-index: 1;
}

.tb-visit-hero__overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.2);
    pointer-events: none;
}

.tb-visit-hero__content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 2rem;
    margin-bottom: auto;
    margin-top: auto;
}

.tb-visit-hero__title {
    display: block;
    position: relative;
    text-align: center;
}

.tb-visit-hero__back {
    display: block;
    font-family: 'Great Vibes', cursive;
    font-size: clamp(60px, 10vw, 130px);
    font-weight: 400;
    color: var(--tb-accent-color, #dda759);
    line-height: 1.3;
    text-transform: none;
    letter-spacing: 0;
}

.tb-visit-hero__front {
    display: block;
    font-family: 'EB Garamond', Georgia, serif;
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 600;
    color: #fff;
    text-transform: none;
    letter-spacing: 0;
    line-height: 1.2;
    margin-top: -0.1em;
}

/* Hero Navigation */
.tb-visit-hero__nav {
    position: absolute;
    bottom: calc(33% - 100px);
    left: 50%;
    transform: translateX(-50%);
    width: 50vw;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0;
    padding: 0;
}

.tb-visit-hero__nav-link {
    color: #fff;
    text-decoration: none;
    font-family: 'Lora', Georgia, serif;
    font-size: 20px;
    text-transform: none;
    letter-spacing: 0;
    padding: 8px 0;
    position: relative;
    border-bottom: 1px solid rgba(255, 255, 255, 0.6);
    transition: color 0.3s ease, border-color 0.3s ease;
}

.tb-visit-hero__nav-link::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 2px;
    background: #fff;
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.tb-visit-hero__nav-link:hover {
    color: #fff;
    border-bottom-color: transparent;
}

.tb-visit-hero__nav-link:hover::after {
    transform: scaleX(1);
}

/* ==========================================================================
   Intro Section - Overlapping Black Box Design
   ========================================================================== */

.tb-visit-intro {
    background: transparent;
    position: relative;
    z-index: 2;
    margin-top: -100px;
    padding: 0 0 100px;
    overflow: visible;
    width: 100%;
}

/* Full-width creamy background - starts below the overlapping image */
.tb-visit-intro::before {
    content: '';
    position: absolute;
    top: 100px;
    left: 50%;
    transform: translateX(-50%);
    width: 100vw;
    height: calc(100% - 100px);
    background: #f9f7f4;
    z-index: -1;
}

.tb-visit-intro__wrapper {
    position: relative;
    width: 100%;
    margin: 0;
    padding: 0;
    min-height: 640px;
}

.tb-visit-intro__image {
    position: absolute;
    left: 0;
    top: 0;
    width: 90%;
    height: 640px;
    overflow: hidden;
}

.tb-visit-intro__cycler {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
}

.tb-visit-intro__slide {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.8s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 0;
}

.tb-visit-intro__slide.active {
    opacity: 1;
    z-index: 1;
}

.tb-visit-intro__slide.fade-out {
    opacity: 0;
    z-index: 1;
}

.tb-visit-intro__box {
    position: absolute;
    right: 0;
    top: 350px;
    width: 35%;
    max-width: 450px;
    min-width: 320px;
    background-color: #000;
    box-shadow: -20px 20px 0 0 #f9f7f4;
    padding: 40px 50px;
    z-index: 2;
    will-change: transform;
    transition: transform 0.05s linear;
}

.tb-visit-intro__location {
    font-family: 'EB Garamond', Georgia, serif;
    font-size: 32px;
    font-weight: 400;
    color: #fff;
    line-height: 1.5;
    margin: 0;
    padding-bottom: 16px;
    text-align: left;
}

.tb-visit-intro__text {
    font-family: 'Lora', Georgia, serif;
    font-size: 14px;
    color: #fff;
    line-height: 1.8;
    margin: 0;
    padding-bottom: 7px;
    text-align: left;
}

.tb-visit-intro__cta {
    display: block;
    font-family: 'EB Garamond', Georgia, serif;
    font-size: 20px;
    font-weight: 500;
    color: var(--tb-accent-color, #dda759);
    text-decoration: none;
    margin-top: 30px;
    padding-bottom: 10px;
    text-align: left;
    background: none;
}

.tb-visit-intro__cta:hover {
    text-decoration: underline;
    color: var(--tb-accent-color, #dda759);
}

.tb-visit-intro__phone {
    font-family: 'Lora', Georgia, serif;
    font-size: 14px;
    color: #fff;
    line-height: 1.8;
    margin: 0;
    text-align: left;
}

/* ==========================================================================
   Tasting Section with Tabs
   ========================================================================== */

/* Wrapper for tasting + facilities with dark mode transition */
.tb-visit-content-wrapper {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    background-color: #fff;
    transition: background-color 0.6s ease;
}

.tb-visit-content-wrapper.tb-visit-content--dark {
    background-color: #000;
}

.tb-visit-tasting {
    background: transparent;
    padding: 2rem 2rem 70px;
    margin-top: 3rem;
    position: relative;
    overflow: hidden;
}

.tb-visit-tabs {
    display: flex;
    justify-content: center;
    gap: 0;
    margin-bottom: 70px;
}

.tb-visit-tabs__btn {
    background: none;
    border: none;
    font-family: 'EB Garamond', Georgia, serif;
    font-size: 1.05rem;
    font-weight: 600;
    color: #000;
    cursor: pointer;
    padding: 0 2rem 10px;
    position: relative;
    transition: color 0.3s ease;
}

.tb-visit-tabs__btn span {
    display: inline-block;
    border-bottom: 1px solid transparent;
    padding-bottom: 2px;
    transition: border-color 0.3s ease;
}

.tb-visit-tabs__btn:hover span {
    border-bottom-color: #000;
}

.tb-visit-tabs__btn.active span {
    border-bottom-color: #000;
}

/* Slider Container */
.tb-visit-slider {
    position: relative;
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
}

.tb-visit-slider__track {
    flex: 1;
    position: relative;
    overflow: hidden;
    background-color: #f9f7f4;
}

/* Prevent height jump during transitions */
.tb-visit-tab-content:not(.active) {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
}

/* Arrow Buttons */
.tb-visit-slider__arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'EB Garamond', Georgia, serif;
    font-size: 24px;
    font-weight: 300;
    color: #333;
    transition: all 0.3s ease;
    z-index: 10;
}

.tb-visit-slider__arrow:hover {
    color: #000;
}

.tb-visit-slider__arrow--prev {
    left: -70px;
}

.tb-visit-slider__arrow--next {
    right: -70px;
}

/* Tab Content */
.tb-visit-tab-content {
    display: none;
    opacity: 0;
    transform: translateX(100%);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.tb-visit-tab-content.active {
    display: block;
    opacity: 1;
    transform: translateX(0);
}

.tb-visit-tab-content.slide-out-left {
    display: block;
    opacity: 0;
    transform: translateX(-100%);
}

.tb-visit-tab-content.slide-out-right {
    display: block;
    opacity: 0;
    transform: translateX(100%);
}

.tb-visit-tab-content.slide-in-left {
    transform: translateX(-100%);
}

.tb-visit-tab-content.slide-in-right {
    transform: translateX(100%);
}

/* Feature Layout - Two column */
.tb-visit-feature {
    display: flex;
    align-items: stretch;
    gap: 0;
    background: transparent;
}

.tb-visit-feature__image {
    flex: 0 0 45%;
    max-width: 450px;
}

.tb-visit-feature__image figure {
    margin: 0;
    overflow: hidden;
    height: 100%;
}

.tb-visit-feature__image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.tb-visit-feature__content {
    flex: 1;
    padding: 40px 42px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.tb-visit-feature__content h2 {
    font-family: 'EB Garamond', Georgia, serif;
    font-size: 36px;
    font-weight: 400;
    color: #000;
    line-height: 1.5;
    margin: 0 0 0.25rem;
}

/* Gold italic subtitle with left bar */
.tb-visit-feature__subtitle {
    display: inline-block;
    font-family: 'EB Garamond', Georgia, serif;
    font-size: 15px;
    font-style: italic;
    font-weight: 700;
    color: var(--tb-accent-color, #dda759);
    padding-left: 45px;
    margin-bottom: 8px;
    position: relative;
}

.tb-visit-feature__subtitle::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 35px;
    height: 1px;
    background: var(--tb-accent-color, #dda759);
}

/* Horizontal divider */
.tb-visit-feature__divider {
    width: 112px;
    max-width: 112px;
    height: 1px;
    background-color: #e9e1e1;
    border: none;
    margin: 0 0 0;
}

.tb-visit-feature__content p {
    font-family: 'Lora', Georgia, serif;
    font-size: 14px;
    color: #000;
    line-height: 1.8;
    margin: 0;
    padding: 14px 0;
}

/* Black button */
.tb-visit-feature__btn {
    display: inline-block;
    width: max-content;
    font-family: 'Lora', Georgia, serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #fff;
    background-color: #000;
    border: 1px solid #000;
    padding: 14px 28px;
    margin-top: 20px;
    text-decoration: none;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.tb-visit-feature__btn:hover {
    background-color: #fff;
    color: #000;
}

/* Text animations inside slides */
.tb-visit-feature__content h2,
.tb-visit-feature__subtitle,
.tb-visit-feature__divider,
.tb-visit-feature__content p,
.tb-visit-feature__btn {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.tb-visit-tab-content.active .tb-visit-feature__content h2 {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.1s;
}

.tb-visit-tab-content.active .tb-visit-feature__subtitle {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.2s;
}

.tb-visit-tab-content.active .tb-visit-feature__divider {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.3s;
}

.tb-visit-tab-content.active .tb-visit-feature__content p {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.4s;
}

.tb-visit-tab-content.active .tb-visit-feature__btn {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.5s;
}

/* ==========================================================================
   Facilities Grid Section
   ========================================================================== */

.tb-visit-facilities {
    background: transparent;
    padding: 60px 0;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    position: relative;
    z-index: 1;
}

.tb-visit-facilities__grid {
    display: flex;
    width: 100%;
    max-width: 1242px;
    margin: 0 auto;
    padding: 0 15px;
    box-sizing: border-box;
}

.tb-visit-facilities__col {
    flex: 1 1 33.333%;
    display: flex;
    flex-direction: column;
}

.tb-visit-facilities__col--offset {
    margin-top: 40px;
}

/* Box Styles */
.tb-visit-box {
    min-height: 480px;
    position: relative;
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

.tb-visit-box__overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.tb-visit-box:hover .tb-visit-box__overlay {
    opacity: 1;
}

.tb-visit-box__content {
    position: absolute;
    top: 35px;
    left: 0;
    right: 0;
    padding: 40px;
    max-width: 100%;
    opacity: 0;
    transform: translateX(-100%);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.tb-visit-box:hover .tb-visit-box__content {
    opacity: 1;
    transform: translateX(0);
}

.tb-visit-box h4 {
    font-family: 'EB Garamond', Georgia, serif;
    font-size: 36px;
    font-weight: 400;
    line-height: 1.5;
    margin: 0 0 0;
}

.tb-visit-box p {
    font-family: 'Lora', Georgia, serif;
    font-size: 14px;
    line-height: 1.8;
    margin: 0;
    padding-top: 14px;
}

/* Light Box (no background image) */
.tb-visit-box--light {
    background: #f9f7f4;
}

.tb-visit-box--light .tb-visit-box__content {
    opacity: 1;
    transform: translateX(0);
}

.tb-visit-box--light h4 {
    color: #000;
}

.tb-visit-box--light p {
    color: #000;
}

/* Dark Box */
.tb-visit-box--dark {
    background-color: #1a1a1a;
}

.tb-visit-box--dark h4,
.tb-visit-box--dark p {
    color: #fff;
}

/* Accent Box - Gold overlay */
.tb-visit-box--accent {
    background-color: #dda759;
}

.tb-visit-box--accent .tb-visit-box__overlay {
    background: rgba(221, 167, 89, 1);
}

.tb-visit-box--accent h4,
.tb-visit-box--accent p {
    color: #fff;
}

/* ==========================================================================
   Our Table Section
   ========================================================================== */

.tb-visit-table {
    position: relative;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
}

.tb-visit-table__overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
}

.tb-visit-table__content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 2rem;
}

.tb-visit-table__content h2 {
    font-family: 'EB Garamond', Georgia, serif;
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 400;
    color: #fff;
    margin-bottom: 0.25rem;
}

.tb-visit-table__content p {
    font-family: 'EB Garamond', Georgia, serif;
    font-size: clamp(1.75rem, 4vw, 2rem);
    font-weight: 400;
    color: #fff;
    margin: 0;
}

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

@media (max-width: 992px) {
    .tb-visit-hero {
        padding-bottom: 60px;
    }

    .tb-visit-intro {
        margin-top: -80px;
        padding: 0 0 80px;
    }

    .tb-visit-intro::before {
        top: 80px;
        height: calc(100% - 80px);
    }

    .tb-visit-intro__wrapper {
        min-height: 500px;
    }

    .tb-visit-intro__image {
        width: 85%;
        height: 500px;
    }

    .tb-visit-intro__box {
        top: 60px;
        width: 40%;
        right: 0;
        min-width: 280px;
        padding: 30px 35px;
    }

    .tb-visit-intro__location {
        font-size: 26px;
    }

    .tb-visit-intro__text {
        font-size: 13px;
    }

    .tb-visit-intro__cta {
        font-size: 18px;
        margin-top: 20px;
    }

    .tb-visit-tasting {
        padding: 80px 1.5rem 50px;
    }

    .tb-visit-tabs {
        margin-bottom: 50px;
    }

    .tb-visit-feature {
        flex-direction: column;
        gap: 2rem;
    }

    .tb-visit-feature__image {
        flex: 0 0 auto;
        max-width: 100%;
        width: 100%;
    }

    .tb-visit-feature__content {
        padding: 0 20px;
    }

    /* Slider arrows - move inside on tablet */
    .tb-visit-slider__arrow--prev {
        left: 10px;
    }

    .tb-visit-slider__arrow--next {
        right: 10px;
    }

    .tb-visit-slider__arrow {
        width: 40px;
        height: 40px;
    }

    .tb-visit-feature__content h2 {
        font-size: 28px;
    }

    .tb-visit-facilities__grid {
        flex-direction: column;
    }

    .tb-visit-facilities__col {
        flex-direction: row;
    }

    .tb-visit-facilities__col--offset {
        margin-top: 0;
    }

    .tb-visit-box {
        min-height: 350px;
        flex: 1;
    }

    .tb-visit-box h4 {
        font-size: 28px;
    }

    .tb-visit-box__content {
        padding: 25px;
    }

    .tb-visit-hero__nav {
        bottom: calc(28% - 50px);
        width: 70vw;
        gap: 0.5rem;
    }

    .tb-visit-hero__nav-link {
        font-size: 16px;
        padding: 6px 0;
    }

    .tb-visit-hero__back {
        font-size: 80px;
    }

    .tb-visit-hero__front {
        font-size: 32px;
    }
}

@media (max-width: 768px) {
    .tb-visit-hero {
        padding-bottom: 50px;
    }

    .tb-visit-hero__nav {
        bottom: 15%;
        width: 90vw;
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }

    .tb-visit-hero__nav-link {
        font-size: 14px;
        padding: 5px 0;
    }

    .tb-visit-hero__back {
        font-size: 50px;
    }

    .tb-visit-hero__front {
        font-size: 24px;
    }

    .tb-visit-intro {
        margin-top: -60px;
        padding: 0 0 60px;
    }

    .tb-visit-intro::before {
        top: 60px;
        height: calc(100% - 60px);
    }

    .tb-visit-intro__wrapper {
        display: flex;
        flex-direction: column;
        min-height: auto;
    }

    .tb-visit-intro__image {
        position: relative;
        left: auto;
        width: 100%;
        height: 350px;
    }

    .tb-visit-intro__box {
        position: relative;
        top: -40px;
        right: auto;
        width: calc(100% - 20px);
        max-width: none;
        min-width: auto;
        margin-left: auto;
        box-shadow: -15px 15px 0 0 #fff;
        padding: 30px 25px;
    }

    .tb-visit-intro__location {
        font-size: 24px;
    }

    .tb-visit-intro__cta {
        font-size: 16px;
        margin-top: 15px;
    }

    .tb-visit-tasting {
        padding: 60px 1rem 40px;
    }

    .tb-visit-tabs {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
        margin-bottom: 40px;
    }

    .tb-visit-tabs__btn {
        padding: 0.5rem 1rem;
    }

    .tb-visit-feature__content h2 {
        font-size: 24px;
    }

    .tb-visit-feature__subtitle {
        font-size: 13px;
        padding-left: 35px;
    }

    .tb-visit-feature__subtitle::before {
        width: 25px;
    }

    .tb-visit-feature__content p {
        font-size: 13px;
    }

    /* Slider arrows on mobile */
    .tb-visit-slider__arrow {
        width: 36px;
        height: 36px;
    }

    .tb-visit-slider__arrow--prev {
        left: 5px;
    }

    .tb-visit-slider__arrow--next {
        right: 5px;
    }

    .tb-visit-facilities__col {
        flex-direction: column;
    }

    .tb-visit-box {
        min-height: 300px;
    }

    .tb-visit-box h4 {
        font-size: 24px;
    }

    .tb-visit-box p {
        font-size: 13px;
    }

    .tb-visit-box__content {
        padding: 20px;
        top: 20px;
    }
}
