/* ==========================================================================
   Banya London - Custom Theme Enhancements Stylesheet
   Preserves 100% fidelity of original layout with zero builder bloat.
   ========================================================================== */

/* 1. Typography & Local Font Faces */
@font-face {
    font-family: 'Iowan Old Style';
    src: url('../fonts/IowanOldStyleBT-Bold.otf') format('opentype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Avenir Book';
    src: url('../fonts/avenir_lt_std_45_book.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Avenir';
    src: url('../fonts/Avenir-Regular.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Bartender';
    src: url('../fonts/Bartender.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'icomoon';
    src: url('../fonts/icomoon.woff') format('woff'),
         url('../fonts/icomoon.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* 2. Theme CSS Variables */
:root {
    --color-terracotta: #954b2e;
    --color-green: #596a5c;
    --color-cream: #e1ddd3;
    --color-navy: #283349;
    --color-dark: #1b1b1b;
    --color-white: #ffffff;
    --font-heading: 'Iowan Old Style', Georgia, serif;
    --font-body: 'Avenir Book', 'Segoe UI', sans-serif;
    --font-accent: 'Bartender', cursive;
    --transition: 0.3s ease;
}

/* 3. Utility Classes */
.hidden {
    display: none !important;
}

.banya-section-title {
    font-family: var(--font-heading);
    font-size: 32px;
    color: var(--color-terracotta);
    text-transform: uppercase;
    letter-spacing: 2px;
    text-align: center;
    margin: 40px 0 24px;
}

.banya-btn-container {
    text-align: center;
    margin: 28px 0;
}

.banya-image-container {
    text-align: center;
    margin: 24px 0;
}

.banya-image-container img {
    margin: 0 auto;
    border-radius: 8px;
}

.banya-divider {
    border: 0;
    height: 1px;
    background: rgba(149, 75, 46, 0.2);
    margin: 40px 0;
}

/* 4. Hero Section Video Background */
.et_pb_section_0.et_pb_section_video {
    position: relative;
    overflow: hidden;
    min-height: 550px;
}

.et_pb_section_0 .et_pb_section_video_bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

.et_pb_section_0 .et_pb_section_video_bg video {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 100%;
    min-height: 100%;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.et_pb_section_0 .et_pb_row_0 {
    position: relative;
    z-index: 2;
}

/* 5. Fullwidth Breakout Video */
.vw-video {
    width: 100vw;
    margin-left: 50%;
    transform: translateX(-50%);
}

.vw-video video {
    width: 100%;
    aspect-ratio: 16 / 9;
    height: auto;
    display: block;
    object-fit: cover;
    border: 0;
}

/* 5. Interactive Accordions (FAQ, Terms & Conditions, Membership) */
.interactive-sections-two {
    max-width: 1200px;
    margin: auto;
    padding: 30px 0;
    font-family: var(--font-heading);
}

.section-item-two {
    border: 1px solid var(--color-green);
    margin-bottom: 20px;
    cursor: pointer;
    overflow: hidden;
    border-radius: 8px;
    transition: background-color 0.3s ease;
}

.section-header-two {
    display: flex;
    align-items: center;
    padding: 20px;
    background-color: var(--color-cream);
}

.section-header-two h3 {
    margin: 0;
    font-size: 1.4rem;
    letter-spacing: 1px;
    line-height: 1.4em;
    color: var(--color-green);
}

.icon-img-two {
    width: 40px;
    height: 40px;
    margin-right: 15px;
    perspective: 1000px;
    flex-shrink: 0;
}

.icon-inner {
    width: 100%;
    height: 100%;
    position: relative;
    transition: transform 0.6s;
    transform-style: preserve-3d;
}

.section-item-two.active .icon-inner {
    transform: rotateY(180deg);
}

.icon-front,
.icon-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
}

.icon-front img,
.icon-back img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.icon-back {
    transform: rotateY(180deg);
}

.section-content-two {
    max-height: 0;
    overflow: hidden;
    padding: 0 20px;
    background-color: var(--color-terracotta);
    transition: max-height 0.4s ease, padding 0.4s ease;
    font-family: var(--font-body);
    color: var(--color-cream);
}

.section-item-two.active .section-content-two {
    max-height: 5000px;
    padding: 24px 20px;
}

.section-content-two p {
    margin: 0 0 16px 0;
    font-size: 17px;
    line-height: 1.7;
    color: var(--color-cream);
}

.section-content-two p:last-child {
    margin-bottom: 0;
}

/* 6. Treatments & Packages Cards */
.treatment-card {
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
}

.treatment-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.treatment-card .treatment-title {
    font-family: var(--font-heading);
    text-transform: uppercase;
    color: var(--color-cream);
    font-weight: normal;
    font-size: 24px;
    letter-spacing: 1px;
}

.media-container {
    width: 100%;
    height: 250px;
    overflow: hidden;
    position: relative;
    border-radius: 8px 8px 0 0;
}

.media-container img,
.rounded-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.glass-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 16px 20px;
    background: rgba(40, 51, 73, 0.7);
    backdrop-filter: blur(8px);
    color: var(--color-cream);
}

/* 7. Flip Leaf Carousel Buttons */
.carousel-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 20px 0;
}

.dot {
    width: 40px;
    height: 40px;
    perspective: 1000px;
    cursor: pointer;
}

.dot-inner {
    width: 100%;
    height: 100%;
    position: relative;
    transition: transform 0.6s;
    transform-style: preserve-3d;
}

.dot.active .dot-inner {
    transform: rotateY(180deg);
}

.dot-front,
.dot-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 50%;
}

.dot-front img,
.dot-back img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.dot-back {
    transform: rotateY(180deg);
}

/* 8. Contact Widgets (Packages & Booking) */
.contact-widget {
    display: flex;
    justify-content: center;
    margin: 15px 0;
}

.contact-widget .contact-icons {
    display: flex;
    gap: 20px;
}

.contact-widget .contact-icon {
    width: 44px;
    height: 44px;
    transition: transform 0.2s;
    cursor: pointer;
}

.contact-widget .contact-icon:hover {
    transform: scale(1.1);
}

/* 9. Horizontal Gallery Scroller (Private Banya) */
.scroll-container {
    display: flex;
    gap: 24px;
    padding: 24px 0;
    justify-content: center;
    flex-wrap: wrap;
}

.scroll-item {
    flex: 0 0 auto;
    width: 280px;
    height: 380px;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
}

.scroll-item:hover {
    transform: translateY(-6px);
}

.scroll-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 10. Endless Text Ribbon (How to Banya) */
.scrolling-container {
    width: 100%;
    overflow: hidden;
    position: relative;
    white-space: nowrap;
    padding: 24px 0;
    display: flex;
    justify-content: center;
    background: var(--color-navy);
}

.scrolling-text {
    display: flex;
    white-space: nowrap;
    font-size: 20px;
    font-family: var(--font-heading);
    color: var(--color-cream);
    align-items: center;
    animation: scrollText 300s linear infinite;
    will-change: transform;
}

.scrolling-text span {
    display: flex;
    align-items: center;
    padding: 0 14px;
}

.scrolling-text span::after {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    background-color: var(--color-terracotta);
    margin-left: 20px;
}

@keyframes scrollText {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
