/**
 * /assets/css/pages/home.css
 *
 * Homepage-specific styles for Rara Avis
 * Contains hero, marquee, and other home-only components
 */

/* ========================================
   HERO SECTION
   ======================================== */
.hero-cinema {
    position: relative;
    height: 100vh;
    max-height: 1200px;
    width: 100%;
    overflow: hidden;
    background-color: var(--void); /* fallback if poster doesn't load */
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.7) contrast(1.1);
    transform: scale(1.1);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 70% 30%, transparent 0%, rgba(2,2,4,0.45) 70%),
        linear-gradient(to bottom, rgba(2,2,4,0.35) 0%, rgba(2,2,4,0.15) 35%, rgba(2,2,4,0.25) 60%, rgba(2,2,4,0.9) 100%);
    pointer-events: none;
}

/* Hero content — explicit positioning so text renders above
   the absolute-positioned video/overlay in all renderers
   (Tailwind's .relative .z-10 alone is unreliable in Google's WRS) */
.hero-content {
    position: relative;
    z-index: 10;
}

/* ========================================
   MARQUEE (pure CSS - 40s duration)
   ======================================== */
.marquee-container {
    overflow: hidden;
    white-space: nowrap;
    border-top: 1px solid rgba(248, 246, 241, 0.08);
    border-bottom: 1px solid rgba(248, 246, 241, 0.08);
    background: rgba(248, 246, 241, 0.02);
    padding: 3rem 0;
    position: relative;
}

/* Edge fade — left */
.marquee-container::before,
.marquee-container::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 12rem;
    z-index: 2;
    pointer-events: none;
}

.marquee-container::before {
    left: 0;
    background: linear-gradient(to right, rgba(2, 2, 4, 1) 0%, transparent 100%);
}

.marquee-container::after {
    right: 0;
    background: linear-gradient(to left, rgba(2, 2, 4, 1) 0%, transparent 100%);
}

.marquee-content {
    display: inline-flex;
    align-items: center;
    animation: marquee-scroll 40s linear infinite;
    will-change: transform;
}

/* Pause on hover */
.marquee-container:hover .marquee-content {
    animation-play-state: paused;
}

/* Compass star separator */
.marquee-sep {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    color: var(--gold);
    opacity: 0.4;
}

.marquee-sep svg {
    width: 16px;
    height: 16px;
}

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

@media (max-width: 768px) {
    .marquee-container::before,
    .marquee-container::after { width: 5rem; }
}

/* ========================================
   VESSEL SECTION
   ======================================== */
@media (max-width: 893px) {
    .vessel-image {
        object-position: 60% center;
    }
}

/* ========================================
   CHARTER HIGHLIGHTS
   ======================================== */
.charter-items {
    display: flex;
    flex-direction: column;
}

.charter-item {
    display: grid;
    grid-template-columns: 3rem 1fr 2fr;
    align-items: center;
    gap: 2rem;
    padding: 2rem 0;
    border-top: 1px solid rgba(248, 246, 241, 0.06);
    transition: background 0.3s ease;
    cursor: default;
}

.charter-item:last-child {
    border-bottom: 1px solid rgba(248, 246, 241, 0.06);
}

.charter-item-num {
    font-size: 1rem;
    color: var(--gold);
    opacity: 0.35;
    transition: opacity 0.3s ease;
    line-height: 1;
}

.charter-item-title {
    font-size: 1.35rem;
    color: rgba(248, 246, 241, 0.85);
    line-height: 1.2;
    transition: color 0.3s ease;
    white-space: nowrap;
}

.charter-item-desc {
    font-size: 0.85rem;
    color: rgba(248, 246, 241, 0.3);
    font-weight: 300;
    line-height: 1.8;
    transition: color 0.3s ease;
}

.charter-item:hover .charter-item-num   { opacity: 0.8; }
.charter-item:hover .charter-item-title { color: var(--gold); }
.charter-item:hover .charter-item-desc  { color: rgba(248, 246, 241, 0.5); }

@media (max-width: 1023px) {
    .charter-item {
        grid-template-columns: 2.5rem 1fr;
        grid-template-rows: auto auto;
        gap: 0.5rem 1.5rem;
    }

    .charter-item-num {
        grid-row: 1;
        grid-column: 1;
        align-self: start;
        padding-top: 0.2rem;
    }

    .charter-item-title {
        grid-row: 1;
        grid-column: 2;
        white-space: normal;
    }

    .charter-item-desc {
        grid-row: 2;
        grid-column: 2;
    }
}

/* ========================================
   DESTINATIONS LIST
   ======================================== */
@media (max-width: 1023px) {
    #destinations .grid {
        text-align: center;
    }

    #destinations .line-accent {
        margin-left: auto;
        margin-right: auto;
    }

    #destinations .btn-elegant {
        display: inline-block;
    }

    #destinations p.text-white\/40 {
        margin-left: auto;
        margin-right: auto;
    }

    .destination-item {
        justify-content: center;
        text-align: left;
    }
}

.destination-item:last-child {
    border-bottom: none;
}

.destination-item h3 {
    transition: color 0.3s ease;
}

/* ========================================
   FAQ ACCORDION
   ======================================== */
.faq-item:first-child {
    border-top: 1px solid rgba(248, 246, 241, 0.06);
}

.faq-trigger {
    background: none;
    border: none;
    cursor: none;
    color: inherit;
}

.faq-trigger:hover h3 {
    color: rgba(248, 246, 241, 0.95);
}

.faq-icon {
    flex-shrink: 0;
    color: var(--gold);
}

.faq-plus {
    transition: transform 0.3s ease;
    transform-origin: center;
}
