/* ============================================ */
/* INDEX PAGE STYLES                             */
/* Requires: main.css                            */
/* ============================================ */

/* ============================================ */
/* VIDEO HERO SECTION                            */
/* ============================================ */


.video-section {
    position: relative;
    width: 100%;
    height: 100svh;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.video-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    z-index: 1;
    pointer-events: none;
}


.background-video {
    width: 100%;
    height: 100%;
    min-width: unset;
    min-height: unset;
    object-fit: cover;
    object-position: center center;
    position: absolute;
}

.ebs-rule-logo svg {
    width: 150px;
    height: auto;
    flex: none !important;
    color: white;
    margin-bottom: 20px;
}

.video-overlay-text {
    display: block;
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--text-on-primary);
    padding: 20px;
    max-width: 1100px;
    margin-bottom: 20px;
}
.video-headline-wrap h2 .word.slide-in{
    font-family: 'Oswald', sans-serif !important;
    font-size: clamp(2.4rem, 6vw, 5.2rem);
    font-weight: 700;
    letter-spacing: 0.04em;
}
.video-headline-wrap p .word.slide-in {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(0.75rem, 1.5vw, 0.95rem);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-on-primary);
    margin: 0;
    font-weight: 600;
}

/* Scroll hint */
        .ph-scroll-cue {
            position: absolute;
            bottom: clamp(18px, 3vh, 32px);
            left: 50%;
            transform: translateX(-50%);
            z-index: 7;
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 6px;
            opacity: 0;
            transition: opacity 0.6s ease;
            pointer-events: none;
        }

        .ph-scroll-cue.show { opacity: 1; }
        .ph-scroll-cue.hide { opacity: 0; }

        .ph-scroll-cue span {
            font-family: 'Oswald', sans-serif;
            font-size: .9rem;
            letter-spacing: 0.28em;
            text-transform: uppercase;
            color: var(--text-on-primary);
        }

        .ph-scroll-cue-line {
            width: 2px;
            height: 36px;
            background: linear-gradient(to bottom, rgba(255,255,255,1), transparent);
            animation: ph-line-drop 2s ease-in-out infinite;
        }

        @keyframes ph-line-drop {
            0%, 100% { transform: scaleY(1); opacity: 0.5; }
            50%       { transform: scaleY(0.6); opacity: 1; }
        }
  /* ── ENTRANCE ANIMATION STATES ── */

        /* Video starts pinned/full, slides up when sequence complete */
        .video-section {
            position: sticky;
            top: 0;
            z-index: 0;
        }

        /* Wrapper that creates scroll space for the pinned effect */
        .video-scroll-wrapper {
            position: relative;
            height: 350vh; /* extra scroll space — one word per scroll step */
        }

        /* The sticky container inside the wrapper */
        .video-scroll-wrapper .video-section {
            position: sticky;
            top: 0;
            height: 100vh;
        }

        /* ── LOGO: fades in immediately on load ── */
        .eb-logo {
            opacity: 0;
            transform: translateY(-12px);
            transition: opacity 0.8s ease 0.3s, transform 0.8s ease 0.3s;
        }

        .eb-logo.visible {
            opacity: 1;
            transform: translateY(0);
        }

        /* ── SCROLL CUE: fades in on load ── */
        .ph-scroll-cue {
            opacity: 0;
            transition: opacity 0.6s ease;
        }

        .ph-scroll-cue.show {
            opacity: 0.6;
        }

        .ph-scroll-cue.hide {
            opacity: 0;
        }

        /* ── HEADLINE + SUBTEXT: per-word animation ── */
        .video-headline-wrap {
            overflow: visible;
        }

        /* Each word is wrapped in a .word span */
        .word {
            display: inline-block;
            opacity: 0;
            transform: translateY(32px);
            transition: opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1),
                        transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
        }

        /* br between lines: preserve line breaks */
        .video-section h2 {
            line-height: 1.15;
        }

        .word.slide-in {
            opacity: 1;
            transform: translateY(0);
        }

        /* Subtext words */
        .video-section p .word {
            font-size: inherit;
        }

        /* ── VIDEO SLIDE UP: after text revealed, video slides up on continued scroll ── */
        .video-section.slide-up {
            transform: translateY(-100%);
            transition: transform 0.9s cubic-bezier(0.76, 0, 0.24, 1);
        }

        /* Content below video — starts hidden under video, revealed as video slides up */
        .below-fold {
            position: relative;
            z-index: 1;
            margin-top: -100vh; 
            background: white;
        }
/* ============================================ */
/* EB STATEMENT SECTION                          */
/* ============================================ */
.eb-statement-section {
    background: #f5f5f5;
    padding: 60px 24px 0;
    box-sizing: border-box;
    overflow: hidden;
    position: relative;
    margin-top: -50px;
}

.eb-statement {
    background-color: white;
    padding: 40px 20px;
}

.ebs-statement-wrap {
    display: flex;
    flex-direction: column;
    gap: 36px;
    max-width: 1200px;
    margin: 0 auto 80px;
}

.ebs-headline {
    font-family: var(--label-font);
    font-size: clamp(2.4rem, 7vw, 4.2rem);
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    line-height: 1.1;
    color: var(--secondary-color);
    margin: 30px 0 0;
    white-space: normal;
    width: 100%;
}

.ebs-headline span {
    display: block;
    margin-top: -20px;
    font-family: var(--label-font);
}

.ebs-headline em {
    font-style: normal;
    color: var(--accent-color);
    font-family: var(--accent-font);
    font-size: clamp(2.8rem, 7.4vw, 4.5rem);
    display: block;
    line-height: 1.3;
}

.ebs-body-wrap {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: 32px;
    border-top: 2px solid #ddd;
    border-left: none;
    padding-left: 0;
    width: 100%;
    min-height: auto;
}

.ebs-eyebrow {
    font-family: var(--main-font);
    font-size: 1rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--accent-color);
    text-align: left;
    margin: 0 0 28px;
}

.ebs-body {
    font-family: var(--main-font);
    font-size: var(--text-base-new);
    color: var(--bodyfont-light-bg);
    line-height: 1.85;
    margin: 0 0 28px;
}

.ebs-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--label-font);
    font-size: var(--text-xs);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--secondary-color);
    transition: color 0.2s, gap 0.2s;
}

.ebs-cta::after {
    content: '→';
    display: inline-block;
    transition: transform 0.2s;
}

.ebs-cta:hover {
    color: var(--accent-color);
    gap: 16px;
}

.ebs-cta:hover::after {
    transform: translateX(4px);
}

/* ── Rule / Diamond Divider ── */
.ebs-rule-top {
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: 100px;
}

.ebs-rule-top span:not(.ebs-rule-diamond) {
    flex: 1;
    height: 1px;
    background: #ddd;
}

.ebs-rule-diamond {
    width: 40px;
    height: 40px;
    flex: none !important;
}

/* ============================================ */
/* PILLARS                                       */
/* ============================================ */
.ebs-pillars {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    border-top: 1px solid #1a1a1a;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
}

.ebs-pillar {
    padding: 40px 24px;
    border-right: none;
    border-top: 1px solid #1a1a1a;
    position: relative;
    background: #111;
    transition: background 0.3s;
}

.ebs-pillar:first-child {
    border-top: none;
}

.ebs-pillar::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--accent-color);
    transition: width 0.4s ease;
}

.ebs-pillar:hover {
    background: #1a1a1a;
}

.ebs-pillar:hover::after {
    width: 100%;
}


.ebs-pillar-icon {
    font-size: 2rem;
    margin-bottom: 16px;
    display: block;
    line-height: 1;
}

.ebs-pillar-icon img {
    width: 60px;
}

.ebs-pillar h4 {
    font-family: var(--label-font);
    font-size: var(--text-sm);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-on-primary);
    margin: 0 0 10px;
}

.ebs-pillar p {
    font-family: var(--main-font);
    font-size: var(--text-base-new);
    color: var(--bodyfont-dark-bg);
    line-height: 1.7;
    margin: 0;
}

/* ============================================ */
/* CHARTERS PROMO SECTION (index teaser)         */
/* ============================================ */
.charters-promo-section {
    position: relative;
    width: 100%;
    min-height: 500px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: #0d0d0d;
}

.charters-promo-bg {
    position: absolute;
    inset: 0;
    background-image: url('../assets/charter-img/charter.jpg');
    background-size: cover;
    background-position: center 30%;
    opacity: 0.18;
    filter: grayscale(60%);
    transition: opacity 0.6s ease;
}

.charters-promo-section:hover .charters-promo-bg {
    opacity: 0.28;
}

.charters-promo-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg, rgba(13, 13, 13, 1) 40%, rgba(13, 13, 13, 0.6) 100%);
}

.charters-promo-inner {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 60px 24px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 40px;
    box-sizing: border-box;
}

.charters-promo-text {
    max-width: 560px;
}

.charters-promo-eyebrow {
    display: inline-block;
    font-family: var(--main-font);
    font-size: var(--text-xs);
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--accent-color);
    margin-bottom: 16px;
}

.charters-promo-text h2 {
    font-family: var(--label-font);
    font-size: var(--text-sub-title);
    color: var(--text-on-primary);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    line-height: 1.05;
    margin: 0 0 20px;
}

.charters-promo-text h2 span {
    color: var(--accent-color);
    font-family: var(--accent-font), var(--label-font);
    font-size: var(--text-sub-title);
}

.charters-promo-text p {
    font-family: var(--main-font);
    font-size: var(--text-base-new);
    color: var(--bodyfont-dark-bg);
    line-height: 1.8;
    margin: 0 0 36px;
}

.charters-promo-btn {
    display: inline-block;
    font-family: var(--label-font);
    font-size: var(--text-sm);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    text-decoration: none;
    color: #111;
    background: var(--accent-color);
    padding: 14px 40px;
    border: 2px solid var(--accent-color);
    border-radius: 2px;
    transition: background 0.25s ease, color 0.25s ease;
}

.charters-promo-btn:hover {
    background: transparent;
    color: var(--accent-color);
}

.charters-promo-image {
    width: 100%;
    overflow: hidden;
    border-radius: 4px;
    flex-shrink: 0;
}

.charters-promo-image img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    object-position: center 30%;
    display: block;
    filter: grayscale(20%);
    transition: filter 0.4s ease, transform 0.4s ease;
}

.charters-promo-section:hover .charters-promo-image img {
    filter: grayscale(0%);
    transform: scale(1.02);
}

/* ============================================ */
/* ADVANTAGE TWO-COLUMN SECTION                  */
/* ============================================ */
.advantage-columns {
    display: flex;
    flex-direction: column;
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
    gap: 0;
}

.advantage-col {
    flex: 1;
    padding: 32px 20px;
}

.advantage-col-left {
    border-bottom: 1px solid #ddd;
    position: relative;
}

.advantage-left-inner {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
}

.advantage-world-bg {
    position: absolute;
    top: 0%;
    left: 10%;
    transform: translate(-50%, -50%);
    width: 90%;
    height: 100%;
    opacity: 0.15;
    pointer-events: none;
    overflow: visible;
}

.advantage-statement {
    position: relative;
    z-index: 1;
    font-family: var(--label-font) !important;
    font-size: clamp(1.6rem, 4vw, 2.6rem) !important;
    font-weight: 500;
    color: var(--secondary-color) !important;
    line-height: 1.25 !important;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin: 0 !important;
    text-align: left;
}

.advantage-statement span {
    font-family: var(--accent-font), var(--label-font) !important;
    font-size: var(--text-title-accent);
    color: var(--accent-color) !important;
}

.advantage-col p {
    line-height: 1.85;
    margin: 0;
}




/* ============================================ */
/* TABLET — min-width: 768px                     */
/* ============================================ */
@media (min-width: 768px) {
     .video-section {

    height: 100vh;

}


.background-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
    z-index: 0;
}
    .eb-statement-section {
        padding: 80px 40px 0;
    }

    .ebs-pillars {
        grid-template-columns: repeat(2, 1fr);
    }

    .ebs-pillar {
        border-right: 1px solid #1a1a1a;
        border-top: 1px solid #1a1a1a;
    }

    .ebs-pillar:nth-child(2) {
        border-right: none;
    }

    .ebs-pillar:nth-child(3),
    .ebs-pillar:nth-child(4) {
        border-top: 1px solid #1a1a1a;
    }

    .ebs-pillar:nth-child(4) {
        border-right: none;
    }

    .charters-promo-image img {
        height: 300px;
    }
    .eb-statement {
        padding: 60px 40px;
    }

    .ebs-rule-logo svg {
        width: 200px;
        margin-bottom: 30px;
    }

    .tours-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 25px;
    }

    .tours-section {
        padding: 60px 40px;
    }

    .advantage-col {
        padding: 32px 40px;
    }
}

/* ============================================ */
/* DESKTOP — min-width: 1024px                   */
/* ============================================ */
@media (min-width: 1024px) {
    .ebs-statement-wrap {
        flex-direction: row;
        gap: 0;
        margin: 0 auto 150px;
    }

    .ebs-headline {
        margin: 50px 0 80px 0;
        flex: 0 0 auto;
        white-space: nowrap;
        width: 50%;
        font-size: clamp(3rem, 7vw, 4.2rem);
    }

    .ebs-body-wrap {
        border-left: 2px solid #ddd;
        border-top: none;
        padding-left: 48px;
        padding-top: 8px;
        width: 50%;
        min-height: 400px;
    }

    .ebs-eyebrow {
        font-size: 1.2rem;
        margin: 0 0 40px;
    }

    .eb-statement-section {
        padding: 120px 40px 0px;
    }

    .ebs-pillars {
        grid-template-columns: repeat(4, 1fr);
    }

    .ebs-pillar {
        padding: 48px 36px;
        border-right: 1px solid #1a1a1a;
        border-top: none;
    }

    .ebs-pillar:first-child {
        border-top: none;
    }

    .ebs-pillar:last-child {
        border-right: none;
    }

    .ebs-pillar:nth-child(2) {
        border-right: 1px solid #1a1a1a;
    }

    .ebs-pillar:nth-child(3),
    .ebs-pillar:nth-child(4) {
        border-top: none;
    }

    .charters-promo-inner {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 60px;
        padding: 80px 40px;
    }

    .charters-promo-image {
        width: 420px;
        border-left: none;
    }

    .charters-promo-image img {
        height: 100%;
        min-height: 320px;
        border-radius: 4px;
    }

    .advantage-columns {
        flex-direction: row;
    }

    .advantage-col-left {
        border-bottom: none;
        border-right: 1px solid #ddd;
    }

    .advantage-col {
        padding: 80px 48px 20px;
    }

    .advantage-col:first-child {
        padding-left: 0;
    }

    .advantage-col:last-child {
        padding-right: 0;
    }

    .advantage-left-inner {
        min-height: 260px;
    }
}
@media (min-width: 481px) {
  .background-video { object-position: center center; }
}

     /* Section Container */
        .grid-section {
            max-width: 1400px;
            margin: 0 auto;
            padding: 60px 20px;
        }

        .section-title {
            font-size: var(--text-sub-title);
            text-align: center;
            margin-bottom: 50px;
            color: var(--secondary-color);
        }

        /* Two Column Hover Grid */
        .hover-grid {
            display: flex;
            gap: 0;
            height: 70vh;
            min-height: 500px;
            position: relative;
        }

        /* Grid Item */
        .grid-item {
            position: relative;
            /*border-radius: 12px;*/
            overflow: hidden;
            cursor: pointer;
            background: #000;
            transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
            width: 50%;
            z-index: 1;
        }

        /* First item stays on left */
        .grid-item:first-child {
            border-top-right-radius: 0;
            border-bottom-right-radius: 0;
        }

        /* Second item stays on right */
        .grid-item:last-child {
            border-top-left-radius: 0;
            border-bottom-left-radius: 0;
        }

        /* When hovering first item (left), expand to 70% */
        .grid-item:first-child:hover {
            width: 70%;
            z-index: 10;
           /* border-radius: 12px;*/
        }

        /* When hovering second item (right), expand to 70% */
        .grid-item:last-child:hover {
            width: 70%;
            z-index: 10;
           /* border-radius: 12px;*/
        }

        /* When first item is hovered, second shrinks */
        .hover-grid:has(.grid-item:first-child:hover) .grid-item:last-child {
            width: 30%;
        }

        /* When second item is hovered, first shrinks */
        .hover-grid:has(.grid-item:last-child:hover) .grid-item:first-child {
            width: 30%;
        }

        /* Gray overlay for non-hovered item */
        .grid-item::after {
            content: '';
            position: absolute;
            inset: 0;
            background: rgba(128, 128, 128, 0.6);
            opacity: 0;
            transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1);
            z-index: 1;
            pointer-events: none;
        }

        .hover-grid:has(.grid-item:hover) .grid-item:not(:hover)::after {
            opacity: 1;
        }

        /* Mobile: stack vertically */
        @media (max-width: 767px) {
            .hover-grid {
                flex-direction: column;
                height: auto;
            }

            .grid-item {
                width: 100% !important;
                height: 70vh;
                /*border-radius: 12px !important;*/
            }
        }

        /* Image Flipbook Container */
        .image-flipbook {
            width: 100%;
            height: 100%;
            position: relative;
            overflow: hidden;
        }

/* Flipbook Images */
.flip-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    /* Total duration matches the number of images for easy math */
    animation: flipbook 7s infinite; 
}

/* Flipbook Animation */
@keyframes flipbook {
    0%, 100% {
        opacity: 0;
    }
    /* Fade in quickly */
    5% {
        opacity: 1;
    }
    /* Stay visible until the next image starts its fade-in (1/7th of the time) */
    14.28% {
        opacity: 1;
    }
    /* Fade out as the next one takes over */
    19.28% {
        opacity: 0;
    }
}

/* Scale effect on hover */
.grid-item:hover .image-flipbook {
    transform: scale(1.08);
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
        /* Overlay */
        .grid-overlay {
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            padding: 40px;
            background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.6) 60%, transparent 100%);
            color: white;
            transition: all 0.4s ease;
        }

        .grid-overlay h3 {
            font-size: 2.2rem;
            margin-bottom: 12px;
            font-weight: 600;
            transition: all 0.4s ease;
        }

        .grid-overlay p {
            font-size: var(--text-base);
            opacity: 0.9;
            line-height: 1.5;
            transition: all 0.4s ease;
        }

        /* Shrink text when not hovered */
        .hover-grid:has(.grid-item:hover) .grid-item:not(:hover) .grid-overlay h3 {
            font-size: 1.5rem;
        }

        .hover-grid:has(.grid-item:hover) .grid-item:not(:hover) .grid-overlay p {
            font-size: 0.85rem;
            opacity: 0.7;
        }

        /* Enlarge text when hovered */
        .grid-item:hover .grid-overlay h3 {
            font-size: 2.8rem;
        }

        .grid-item:hover .grid-overlay p {
            font-size: 1.1rem;
        }

        /* Border Animation on Hover */
        .grid-item::before {
            content: '';
            position: absolute;
            inset: 0;
            /*border: 3px solid var(--accent-color);*/
            opacity: 0;
            transition: opacity 0.3s ease;
            z-index: 2;
            pointer-events: none;
            /*border-radius: 12px;*/
        }

        .grid-item:hover::before {
            opacity: 1;
        }

        /* Category Badge */
        .category-badge {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            transition: transform 0.3s ease, box-shadow 0.3s ease;
        }

        .category-badge:hover {
            transform: translate(-50%, -52%);
            box-shadow: 0 6px 16px rgba(0,0,0,0.3);
        }

        /* Scale badge when sibling is hovered */
        .hover-grid:has(.grid-item:hover) .grid-item:not(:hover) .category-badge {
            transform: translate(-50%, -50%) scale(0.85);
            opacity: 0.8;
        }

        .grid-item:hover .category-badge {
            transform: translate(-50%, -50%) scale(1.05);
        }

        /* ===== STATIC RIGHT PANEL ===== */
        .grid-item--static {
            background: #111;
            cursor: default;
        }

        .static-panel {
            position: absolute;
            inset: 0;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            padding: 48px;
            text-align: center;
            gap: 16px;
        }

        .static-panel-eyebrow {
            font-family: var(--main-font);
            font-size: 0.7rem;
            letter-spacing: 0.35em;
            text-transform: uppercase;
            color: #a1cd3a;
        }

        .static-panel-heading {
            font-family: var(--label-font);
            font-size: var(--text-title);
            color: #fff;
            text-transform: uppercase;
            letter-spacing: 0.08em;
            line-height: 1.05;
            margin: 0;
        }

        .static-panel-heading span {
           font-family: var(--accent-font);
             color: #a1cd3a;
            font-size: var(--text-title-accent);
        }

        .static-panel-sub {
            font-family: var(--main-font);
            font-size: var(--text-base);
            color: #999;
            line-height: 1.7;
            max-width: 420px;
            margin: 0;
        }

        .static-btn {
        font-family: var(--label-font);
        font-size: var(--text-sm);
        letter-spacing: 0.2em;
        text-transform: uppercase;
        text-decoration: none;
        color: #111;
        background: #a1cd3a;
        padding: 14px 40px;
        border: 2px solid #a1cd3a;
        transition: background 0.25s ease, color 0.25s ease;
            position: static !important;
            transform: none !important;
            margin-top: 8px;
            cursor: pointer;
        }

        .static-btn:hover {
            box-shadow: 0 6px 16px rgba(0,0,0,0.3);
              background: transparent;
        color: #a1cd3a;
        }