/* premium-home.css (HOME-A): hero, #about, #rooms. Loaded after style.css + premium-core.css. */

/* --------------------------------------------------------------------------
   Hero: one photo layer. site-editor.js writes the CMS image inline on .hero;
   .hero itself must not paint it (that was the doubled/ghosted image), so the
   image is hidden on the box and inherited by ::before, which owns zoom/drift.
   -------------------------------------------------------------------------- */
.hero {
    background-image: url('../images/h1.jpeg');
    background-size: 0 0;
    background-repeat: no-repeat;
}
.hero::before {
    background-image: inherit;
    background-size: cover;
    background-repeat: no-repeat;
    animation: hero-zoom 2.8s var(--mv-ease, var(--ease)) both,
        mv-kenburns 36s ease-in-out 2.8s infinite alternate;
}
.hero::after {
    background:
        radial-gradient(70% 45% at 50% 100%, rgba(184, 147, 90, 0.18), transparent 70%),
        radial-gradient(120% 80% at 50% 45%, transparent 40%, rgba(6, 22, 21, 0.55) 100%),
        linear-gradient(180deg, rgba(8, 28, 27, 0.55) 0%, rgba(8, 28, 27, 0.14) 30%, rgba(8, 28, 27, 0.32) 62%, rgba(8, 28, 27, 0.88) 100%);
}
@keyframes mv-kenburns {
    from { transform: scale(1) translate3d(0, 0, 0); }
    to { transform: scale(1.07) translate3d(-1.4%, -1%, 0); }
}

/* When the label wraps on a phone, split it evenly rather than orphan one word. */
.hero .eyebrow { text-wrap: balance; }

/* Passe-partout hairline, open at the centre for the scroll cue */
.hero-frame {
    position: absolute;
    inset: calc(var(--header-h) + 14px) clamp(10px, 1.6vw, 22px) clamp(10px, 1.6vw, 22px);
    border: 1px solid rgba(230, 210, 174, 0.3);
    border-radius: 4px 4px calc(var(--radius-lg) - 8px) calc(var(--radius-lg) - 8px);
    -webkit-mask-image: linear-gradient(90deg, #000 calc(50% - 140px), transparent calc(50% - 139px), transparent calc(50% + 139px), #000 calc(50% + 140px));
    mask-image: linear-gradient(90deg, #000 calc(50% - 140px), transparent calc(50% - 139px), transparent calc(50% + 139px), #000 calc(50% + 140px));
    pointer-events: none;
    animation: fade-in 1.8s var(--mv-ease, var(--ease)) 1.1s both;
}

@supports (animation-timeline: scroll()) {
    @media (prefers-reduced-motion: no-preference) and (min-width: 701px) {
        .hero::before {
            animation: hero-zoom 2.8s var(--mv-ease, var(--ease)) both, hero-drift linear both,
                mv-kenburns 36s ease-in-out 2.8s infinite alternate;
            animation-timeline: auto, scroll(root), auto;
            animation-range: normal, 0 100vh, normal;
        }
    }
}

/* --------------------------------------------------------------------------
   About: arched image with offset gold hairline, tide-ring motif behind
   -------------------------------------------------------------------------- */
#about { isolation: isolate; overflow: hidden; overflow: clip; }
#about::before {
    position: absolute;
    top: 50%;
    right: -14vw;
    z-index: -1;
    width: min(780px, 72vw);
    aspect-ratio: 1;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'%3E%3Cg fill='none' stroke='%23b8935a' stroke-width='1' vector-effect='non-scaling-stroke'%3E%3Ccircle cx='100' cy='100' r='99' vector-effect='non-scaling-stroke'/%3E%3Ccircle cx='100' cy='100' r='84' vector-effect='non-scaling-stroke'/%3E%3Ccircle cx='100' cy='100' r='68' vector-effect='non-scaling-stroke'/%3E%3Ccircle cx='100' cy='100' r='51' vector-effect='non-scaling-stroke'/%3E%3C/g%3E%3C/svg%3E") center / contain no-repeat;
    content: '';
    opacity: 0.32;
    pointer-events: none;
    transform: translateY(-50%);
}
.editorial-image img,
.editorial-image::after {
    border-radius: 50% 50% var(--radius-lg) var(--radius-lg) / clamp(140px, 18vw, 270px) clamp(140px, 18vw, 270px) var(--radius-lg) var(--radius-lg);
}
.editorial-image::after {
    position: absolute;
    inset: 0;
    z-index: -1;
    border: 1px solid rgba(184, 147, 90, 0.55);
    content: '';
    pointer-events: none;
    transform: translate(clamp(10px, 1.4vw, 20px), clamp(10px, 1.4vw, 20px));
}

/* --------------------------------------------------------------------------
   Rooms: numeral straddling photo/card seam, inner gold hairline, light sweep
   -------------------------------------------------------------------------- */
.room-info { position: relative; }
.room-info::before {
    position: absolute;
    top: -0.62em;
    right: 22px;
    z-index: 2;
    color: var(--paper);
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(3.6rem, 5.6vw, 5.2rem);
    font-weight: 400;
    letter-spacing: -0.02em;
    line-height: 0.8;
    -webkit-text-stroke: 1px rgba(184, 147, 90, 0.6);
    pointer-events: none;
    transition: transform var(--motion-base) var(--mv-ease, var(--ease));
}
.rooms-grid > .room-card:nth-child(1) .room-info::before { content: '01'; content: '01' / ''; }
.rooms-grid > .room-card:nth-child(2) .room-info::before { content: '02'; content: '02' / ''; }
.rooms-grid > .room-card:nth-child(3) .room-info::before { content: '03'; content: '03' / ''; }

.room-card::after {
    position: absolute;
    inset: 8px;
    z-index: 3;
    border: 1px solid rgba(184, 147, 90, 0.45);
    border-radius: calc(var(--radius-lg) - 8px);
    content: '';
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--motion-base) ease;
}
.room-card-image::before {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(115deg, transparent 38%, rgba(255, 255, 255, 0.2) 50%, transparent 62%);
    content: '';
    pointer-events: none;
    transform: translateX(-110%);
}
.room-number { z-index: 2; }

.room-rate { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.room-rate > span { font-size: 2.15rem; letter-spacing: -0.01em; line-height: 1; }
.room-rate small { text-transform: uppercase; letter-spacing: 0.14em; }

@media (hover: hover) and (pointer: fine) {
    .room-card:hover::after { opacity: 1; }
    .room-card:hover .room-info::before { transform: translateY(-6px); }
    .room-card:hover .room-card-image::before {
        transform: translateX(110%);
        transition: transform 1.3s var(--mv-ease, var(--ease));
    }
}
.room-card-link:focus-visible::after { opacity: 1; }

@media (max-width: 700px) {
    #about::before { top: 16%; right: -40vw; width: 120vw; }
    .room-info::before { right: 18px; }
}

@media (prefers-reduced-motion: reduce) {
    .hero::before { animation: none; }
    .hero-frame { animation: none; }
}
