/* =============================================
   TETEBATU — HOMEPAGE SECTIONS
   Mobile-first · All one-page sections
   ============================================= */


/* =============================================
   1. HERO
   ============================================= */
.tt-hero {
    position: relative;
    height: 100svh;
    min-height: 620px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    text-align: center;
    background: var(--tt-green-deep);
}

/* Mobile: immersive full-bleed cover */
.tt-hero__video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    transform: translateZ(0);
    will-change: opacity;
    opacity: 0;
    transition: opacity 0.9s ease;
    z-index: 1;
}
.tt-hero__video.is-ready {
    opacity: 1;
}

/* Shown while video buffers */
.tt-hero__img-fallback {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    z-index: 0;
}

.tt-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(13,35,24,0.08) 0%,
        rgba(13,35,24,0.18) 45%,
        rgba(13,35,24,0.58) 70%,
        rgba(13,35,24,0.90) 87%,
        rgba(13,35,24,1.00) 100%
    );
    z-index: 2;
}

.tt-hero__content {
    position: relative;
    z-index: 4;
    padding: 0 24px;
    max-width: 820px;
}

/* -----------------------------------------------
   Desktop: cinematic framed composition ~76vw
   Portrait video centered, edges fade to bg
   ----------------------------------------------- */
@media (min-width: 768px) {
    /* Frame the video at 76vw, centered — preserves composition, avoids aggressive stretch */
    .tt-hero__video,
    .tt-hero__img-fallback {
        inset: 0 auto 0 50%;
        width: 76vw;
        transform: translateX(-50%) translateZ(0);
        object-position: center center;
    }

    /* Side edge fades: blend the video frame into the background */
    .tt-hero::before,
    .tt-hero::after {
        content: '';
        position: absolute;
        top: 0;
        height: 100%;
        width: 20vw;
        pointer-events: none;
        z-index: 3;
    }
    .tt-hero::before {
        left: 0;
        background: linear-gradient(
            to right,
            var(--tt-green-deep) 0%,
            var(--tt-green-deep) 35%,
            rgba(13, 35, 24, 0) 100%
        );
    }
    .tt-hero::after {
        right: 0;
        background: linear-gradient(
            to left,
            var(--tt-green-deep) 0%,
            var(--tt-green-deep) 35%,
            rgba(13, 35, 24, 0) 100%
        );
    }

    .tt-hero__overlay { z-index: 2; }
    .tt-hero__content { z-index: 5; }
    .tt-hero__scroll  { z-index: 5; }
}
.tt-hero__eyebrow {
    font-family: var(--font-body);
    font-size: 0.72rem;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: var(--tt-gold);
    display: block;
    margin-bottom: 18px;
    opacity: 0;
    animation: hero-up 0.9s ease 0.35s forwards;
    text-shadow: 0 1px 12px rgba(4,10,6,0.85), 0 2px 32px rgba(4,10,6,0.6);
}
.tt-hero__title {
    font-family: var(--font-display);
    font-size: clamp(3rem, 11vw, 7rem);
    font-weight: 600;
    line-height: 1.04;
    color: var(--tt-cream);
    margin-bottom: 22px;
    opacity: 0;
    animation: hero-up 0.9s ease 0.55s forwards;
    text-shadow: 0 2px 18px rgba(4,10,6,0.75), 0 4px 56px rgba(4,10,6,0.55);
}
.tt-hero__title em {
    font-style: italic;
    color: var(--tt-gold);
    display: block;
}
.tt-hero__sub {
    font-family: var(--font-body);
    font-size: clamp(1rem, 2.4vw, 1.2rem);
    color: rgba(245,237,214,0.95);
    font-style: italic;
    margin-bottom: 40px;
    max-width: 540px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0;
    animation: hero-up 0.9s ease 0.75s forwards;
    text-shadow: 0 1px 14px rgba(4,10,6,0.8), 0 3px 40px rgba(4,10,6,0.55);
}
.tt-hero__cta-wrap {
    opacity: 0;
    animation: hero-up 0.9s ease 0.95s forwards;
}
.tt-hero__scroll {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    opacity: 0;
    animation: hero-up 0.9s ease 1.4s forwards;
}
.tt-hero__scroll span {
    font-size: 0.65rem;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: rgba(245,237,214,0.42);
}
.tt-hero__scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, rgba(245,237,214,0.45), transparent);
    animation: scroll-breathe 2.2s ease-in-out infinite;
}

@keyframes hero-up {
    from { opacity: 0; transform: translateY(22px); }
    to   { opacity: 1; transform: none; }
}
@keyframes scroll-breathe {
    0%, 100% { transform: scaleY(1); opacity: 0.45; }
    50%       { transform: scaleY(1.25); opacity: 0.9; }
}


/* =============================================
   2. INTRO — "The Place"
   ============================================= */
.tt-intro {
    background: var(--tt-green-deep);
    padding: 80px 24px;
}
.tt-intro__inner {
    display: flex;
    flex-direction: column;
    gap: 48px;
    max-width: var(--container-max);
    margin: 0 auto;
}
.tt-intro__text { flex: 1; }
.tt-intro__body {
    font-size: 1.05rem;
    line-height: 1.85;
    color: rgba(245,237,214,0.82);
    margin-top: 18px;
    margin-bottom: 32px;
}
.tt-intro__stats {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    max-width: 520px;
}
.tt-intro__stat {
    background: rgba(46,93,64,0.38);
    border: 1px solid rgba(201,146,74,0.28);
    border-radius: 100px;
    padding: 9px 22px;
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--tt-gold);
    line-height: 1.2;
    white-space: nowrap;
}
.tt-intro__stat span {
    font-family: var(--font-body);
    font-size: 0.72rem;
    font-weight: 400;
    color: rgba(245,237,214,0.52);
    margin-left: 5px;
}
.tt-intro__image {
    border-radius: 18px;
    overflow: hidden;
    aspect-ratio: 4/3;
    flex-shrink: 0;
}
.tt-intro__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.65s ease;
}
.tt-intro__image:hover img { transform: scale(1.04); }

@media (min-width: 768px) {
    .tt-intro { padding: 110px 24px; }
    .tt-intro__inner { flex-direction: row; align-items: center; gap: 64px; }
    .tt-intro__text { flex: 1.1; }
    .tt-intro__image { flex: 0 0 44%; aspect-ratio: 3/4; }
    .tt-intro__stats { flex-direction: row; flex-wrap: wrap; align-items: flex-start; }
}


/* =============================================
   3. THE FOUR GREAT MARVELS
   ============================================= */
.tt-marvels {
    position: relative;
    padding: 80px 24px;
    overflow: hidden;
}
.tt-marvels__bg {
    position: absolute;
    inset: 0;
    background-image: url('../assets/images/ricebed_drone.jpeg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}
.tt-marvels__overlay {
    position: absolute;
    inset: 0;
    background: rgba(8,15,10,0.74);
}
.tt-marvels__inner {
    position: relative;
    z-index: 2;
    max-width: var(--container-max);
    margin: 0 auto;
}
.tt-marvels__header {
    text-align: center;
    margin-bottom: 52px;
}
.tt-marvels__header .section-label { color: rgba(201,146,74,0.85); }
.tt-marvels__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 22px;
}

/* Marvel Card */
.marvel-card {
    border-radius: 22px;
    overflow: hidden;
    background: rgba(13,35,24,0.58);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid rgba(201,146,74,0.18);
    border-top: 2px solid var(--tt-gold);
    transition: transform 0.32s ease, border-color 0.32s ease, box-shadow 0.32s ease;
}
.marvel-card:hover {
    transform: translateY(-5px);
    border-color: rgba(201,146,74,0.5);
    box-shadow: 0 16px 48px rgba(0,0,0,0.35);
}
.marvel-card__image {
    aspect-ratio: 16/9;
    overflow: hidden;
}
.marvel-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.65s ease;
}
.marvel-card:hover .marvel-card__image img { transform: scale(1.06); }
.marvel-card__image--placeholder {
    aspect-ratio: 16/9;
    background: linear-gradient(135deg, rgba(92,61,46,0.65) 0%, rgba(26,58,42,0.4) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.8rem;
    opacity: 0.7;
}
.marvel-card__body { padding: 30px; }
.marvel-card__number {
    font-family: var(--font-body);
    font-size: 0.68rem;
    font-weight: 400;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--tt-gold);
    display: block;
    margin-bottom: 8px;
}
.marvel-card__title {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--tt-cream);
    line-height: 1.15;
}
.marvel-card__subtitle {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-style: italic;
    color: var(--tt-gold);
    margin-bottom: 14px;
    margin-top: 2px;
    display: block;
}
.marvel-card__desc {
    font-size: 0.95rem;
    line-height: 1.78;
    color: rgba(245,237,214,0.78);
}

@media (min-width: 768px) {
    .tt-marvels { padding: 110px 24px; }
    .tt-marvels__grid { grid-template-columns: 1fr 1fr; gap: 26px; }
}


/* =============================================
   4. THE 4-HOUR ODYSSEY — Logistics
   ============================================= */
.tt-odyssey {
    background: var(--tt-dark);
    padding: 80px 24px;
    border-top: 1px solid rgba(255,255,255,0.045);
    border-bottom: 1px solid rgba(255,255,255,0.045);
}
.tt-odyssey__inner {
    max-width: var(--container-max);
    margin: 0 auto;
}
.tt-odyssey__header { margin-bottom: 44px; }
.tt-odyssey__tagline {
    font-size: 1.08rem;
    font-style: italic;
    color: rgba(245,237,214,0.68);
    margin-top: 18px;
    max-width: 660px;
    line-height: 1.82;
}
.tt-odyssey__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    margin-bottom: 48px;
}
.odyssey-item {
    background: rgba(26,58,42,0.38);
    border: 1px solid rgba(201,146,74,0.14);
    border-radius: 16px;
    padding: 22px 26px;
    display: flex;
    gap: 18px;
    align-items: flex-start;
    transition: border-color 0.2s ease, background 0.2s ease;
}
.odyssey-item:hover {
    border-color: rgba(201,146,74,0.3);
    background: rgba(26,58,42,0.55);
}
.odyssey-item__icon {
    font-size: 1.5rem;
    flex-shrink: 0;
    line-height: 1;
    margin-top: 3px;
}
.odyssey-item__label {
    font-family: var(--font-body);
    font-size: 0.68rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--tt-gold);
    display: block;
    margin-bottom: 4px;
}
.odyssey-item__value {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--tt-cream);
    line-height: 1.25;
}
.odyssey-item__note {
    font-size: 0.84rem;
    color: rgba(245,237,214,0.48);
    margin-top: 4px;
    line-height: 1.5;
}
.tt-odyssey__cta { text-align: center; }
.tt-odyssey__cta-note {
    font-size: 0.82rem;
    color: rgba(245,237,214,0.38);
    margin-top: 14px;
    font-style: italic;
}

@media (min-width: 640px) {
    .tt-odyssey__grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 768px) {
    .tt-odyssey { padding: 110px 24px; }
    .tt-odyssey__grid { grid-template-columns: repeat(3, 1fr); }
}


/* =============================================
   5. GALLERY
   ============================================= */
.tt-gallery {
    background: var(--tt-green-mid);
    padding: 80px 0;
}
.tt-gallery__inner {
    max-width: var(--container-max);
    margin: 0 auto;
}
.tt-gallery__header {
    text-align: center;
    margin-bottom: 44px;
    padding: 0 24px;
}
.tt-gallery__swipe-hint {
    text-align: center;
    font-size: 0.68rem;
    letter-spacing: 0.12em;
    color: rgba(245,237,214,0.38);
    margin-bottom: 16px;
    padding: 0 24px;
}
@media (min-width: 580px) {
    .tt-gallery__swipe-hint { display: none; }
}

/* Mobile: horizontal swipe strip */
.tt-gallery__columns {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 12px;
    padding: 0 24px 4px;
    scrollbar-width: none;
}
.tt-gallery__columns::-webkit-scrollbar { display: none; }
.gallery-item {
    flex-shrink: 0;
    width: 75vw;
    aspect-ratio: 3/4;
    scroll-snap-align: start;
    border-radius: 14px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
}
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.55s ease;
}
.gallery-item__caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 16px;
    background: linear-gradient(to top, rgba(8,15,10,0.88), transparent);
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(245,237,214,0.78);
    opacity: 1;
    transition: opacity 0.3s ease, transform 0.3s ease;
}
.gallery-item:hover img { transform: scale(1.04); }

/* Tablet+: revert to masonry columns */
@media (min-width: 580px) {
    .tt-gallery { padding: 80px 24px; }
    .tt-gallery__columns {
        display: block;
        columns: 2;
        column-gap: 24px;
        overflow-x: visible;
        padding: 0;
    }
    .gallery-item {
        width: auto;
        aspect-ratio: unset;
        break-inside: avoid;
        flex-shrink: unset;
        margin-bottom: 24px;
        scroll-snap-align: unset;
    }
    .gallery-item img { height: auto; }
    .gallery-item__caption {
        opacity: 0;
        transform: translateY(6px);
    }
    .gallery-item--clip { max-height: 420px; }
    .gallery-item:hover .gallery-item__caption { opacity: 1; transform: none; }
}
@media (min-width: 768px) {
    .tt-gallery { padding: 110px 24px; }
    .tt-gallery__columns { columns: 3; }
}


/* =============================================
   6. AS FEATURED IN
   ============================================= */
.tt-featured {
    background: var(--tt-cream);
    padding: 80px 24px;
}
.tt-featured__inner {
    max-width: var(--container-max);
    margin: 0 auto;
}
.tt-featured__header {
    text-align: center;
    margin-bottom: 44px;
}
.tt-featured__header .section-label { color: var(--tt-earth); }
.tt-featured__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}
.featured-card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(92,61,46,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.featured-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 44px rgba(13,35,24,0.12);
}
.featured-card__embed {
    aspect-ratio: 16/9;
    overflow: hidden;
    background: var(--tt-green-deep);
    position: relative;
}
.featured-card__embed iframe {
    position: absolute;
    top: -8%;
    left: -5%;
    width: 110%;
    height: 120%;
    border: none;
    display: block;
}
/* YouTube facade — thumbnail + play button, replaced by iframe on click */
.yt-facade {
    cursor: pointer;
}
.yt-facade__thumb {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: filter 0.3s ease;
}
.yt-facade:hover .yt-facade__thumb {
    filter: brightness(0.75);
}
.yt-facade__play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 68px;
    height: 48px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    transition: transform 0.2s ease, opacity 0.2s ease;
    opacity: 0.92;
}
.yt-facade:hover .yt-facade__play {
    transform: translate(-50%, -50%) scale(1.12);
    opacity: 1;
}
.yt-facade__play svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 2px 8px rgba(0,0,0,0.5));
}
/* Once activated, the iframe fills the container normally */
.yt-facade iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Blog card header image */
.featured-card__img {
    aspect-ratio: 16/9;
    overflow: hidden;
}
.featured-card__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.55s ease;
}
.featured-card:hover .featured-card__img img { transform: scale(1.04); }
.featured-card__body { padding: 28px; }
.featured-card__source {
    font-size: 0.68rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--tt-gold-dark);
    display: block;
    margin-bottom: 8px;
}
.featured-card__title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--tt-green-deep);
    margin-bottom: 10px;
    line-height: 1.2;
}
.featured-card__quote {
    font-size: 0.9rem;
    line-height: 1.72;
    color: var(--tt-earth);
    font-style: italic;
    margin-bottom: 18px;
}
.featured-card__link {
    font-size: 0.85rem;
    color: var(--tt-gold-dark);
    font-weight: 500;
    letter-spacing: 0.04em;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: gap 0.2s;
}
.featured-card__link:hover { gap: 10px; }

@media (min-width: 768px) {
    .tt-featured { padding: 110px 24px; }
    .tt-featured__grid { grid-template-columns: 1fr 1fr; }
}


/* =============================================
   7. BOOKING CTA
   ============================================= */
.tt-booking {
    background: var(--tt-green-deep);
    padding: 100px 24px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.tt-booking::before {
    content: '';
    position: absolute;
    top: -140px;
    left: 50%;
    transform: translateX(-50%);
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(46,93,64,0.38) 0%, transparent 68%);
    pointer-events: none;
}
.tt-booking__inner {
    position: relative;
    z-index: 1;
    max-width: 660px;
    margin: 0 auto;
}
.tt-booking__title {
    font-family: var(--font-display);
    font-size: clamp(2.4rem, 7vw, 4.4rem);
    font-weight: 600;
    line-height: 1.1;
    color: var(--tt-cream);
    margin-bottom: 20px;
}
.tt-booking__title em {
    font-style: italic;
    color: var(--tt-gold);
    display: block;
}
.tt-booking__sub {
    font-size: 1.05rem;
    color: rgba(245,237,214,0.65);
    margin-bottom: 44px;
    line-height: 1.72;
}
.tt-booking__note {
    margin-top: 14px;
    font-size: 0.78rem;
    color: rgba(245,237,214,0.35);
    font-style: italic;
}

@media (min-width: 768px) {
    .tt-booking { padding: 140px 24px; }
}
