/* The Haven Collection | Polish (micro-animations, skeletons, etc.)
 * Applied additively to existing components without breaking them.
 * All animations honour the visitor's motion preferences. */

/* ============================================================
   Scroll-triggered fade-in-up
   ============================================================ */

.hc-reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.9s cubic-bezier(0.22, 0.61, 0.36, 1),
                transform 0.9s cubic-bezier(0.22, 0.61, 0.36, 1);
    will-change: opacity, transform;
}

.hc-reveal.hc-reveal-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    .hc-reveal { opacity: 1; transform: none; transition: none; }
}

/* ============================================================
   Card hover elevation (applied to destination + service + blog cards)
   ============================================================ */

.destination-card,
.service-aman-card,
.collection-card {
    transition: transform 0.55s cubic-bezier(0.22, 0.61, 0.36, 1),
                box-shadow 0.55s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.destination-card:hover,
.service-aman-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 24px 60px rgba(20, 16, 10, 0.16);
}

/* Journal cards stay open editorial blocks: lift only, no shadow box
   (a shadow outlines the transparent card and its edge lands right
   on the date line). */
.blog-card {
    transition: transform 0.55s cubic-bezier(0.22, 0.61, 0.36, 1);
}

@media (prefers-reduced-motion: reduce) {
    .destination-card, .service-aman-card, .blog-card, .collection-card {
        transition: none;
    }
    .destination-card:hover, .service-aman-card:hover, .blog-card:hover {
        transform: none;
        box-shadow: none;
    }
    .blog-card:hover {
        transform: none;
    }
}

/* ============================================================
   Skeleton placeholders (used when images load or content is pending)
   ============================================================ */

.hc-skeleton {
    background: linear-gradient(
        90deg,
        rgba(0,0,0,0.06) 0%,
        rgba(0,0,0,0.12) 50%,
        rgba(0,0,0,0.06) 100%
    );
    background-size: 200% 100%;
    animation: hc-skeleton-shimmer 1.4s ease-in-out infinite;
    border-radius: 2px;
}

@keyframes hc-skeleton-shimmer {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

@media (prefers-reduced-motion: reduce) {
    .hc-skeleton { animation: none; background: rgba(0,0,0,0.06); }
}

/* Skeleton variants for image tiles */
.hc-skeleton-image {
    width: 100%;
    aspect-ratio: 4 / 3;
    display: block;
}

.hc-skeleton-text {
    height: 12px;
    width: 60%;
    margin: 8px 0;
}

/* ============================================================
   Founder video slot on the About page
   ============================================================ */

.about-founder-video {
    padding: 7rem 2rem;
    background: #1c1a17;
    color: #f5efe2;
}

.about-founder-video-container {
    max-width: 960px;
    margin: 0 auto;
    text-align: center;
}

.about-founder-video-header {
    margin-bottom: 3rem;
}

.about-founder-video-header .hero-eyebrow {
    font-family: var(--font-sans, 'Montserrat', sans-serif);
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: #c9a96e;
    margin: 0 0 0.5rem;
}

.about-founder-video-header h2 {
    font-family: var(--font-serif, 'Cormorant Garamond', Georgia, serif);
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 400;
    color: #f5efe2;
    margin: 0.5rem 0 1rem;
    letter-spacing: 0.02em;
}

.about-founder-video-header p {
    font-family: var(--font-sans, 'Montserrat', sans-serif);
    font-size: 0.95rem;
    color: rgba(245, 239, 226, 0.7);
    line-height: 1.7;
    max-width: 620px;
    margin: 0 auto;
}

.about-founder-video-frame {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #0f0d0a;
    border: 1px solid rgba(201, 169, 110, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.about-founder-video-frame video,
.about-founder-video-frame iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.about-founder-video-placeholder {
    text-align: center;
    padding: 2rem;
    color: rgba(245, 239, 226, 0.6);
    font-family: var(--font-serif, 'Cormorant Garamond', Georgia, serif);
    font-style: italic;
    font-size: 1.25rem;
    line-height: 1.5;
}

.about-founder-video-placeholder svg {
    width: 48px;
    height: 48px;
    margin-bottom: 0.75rem;
    opacity: 0.5;
}

@media (max-width: 768px) {
    .about-founder-video { padding: 4rem 1rem; }
}


/* ============================================================
   Homepage hero crossfade (Aman-style slow dissolve)
   ============================================================ */

[data-crossfade] .hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 2.8s ease-in-out;
}

[data-crossfade] .hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

[data-crossfade] .hero-slide.hero-slide-active {
    opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
    [data-crossfade] .hero-slide { transition: none; }
}

/* ============================================================
   Page arrival fade: navigation feels like turning a page
   ============================================================ */

@keyframes hc-page-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

body {
    animation: hc-page-in 0.45s ease-out;
}

@media (prefers-reduced-motion: reduce) {
    body { animation: none; }
}
