/* =========================================================================
   Rantia Storage - Hero slider component (.heroslider*)
   Exact 1:1 port of Fix It's #fxHero pattern (Claude Code/Fixit/assets/css/
   style.css, ".heroslider*"/".ticket*"/".btn--hero"/".btn__orb" rules) -
   structure, sizing, spacing and timing values are unchanged from the
   source. Only color tokens are remapped to Rantia's design system
   (--color-primary/--color-surface-dark instead of Fix It's --blue/#000)
   and the font family is Manrope (--font-body) instead of SF Pro, per the
   approved 2026-08-14 design spec.
   ========================================================================= */

.heroslider {
    position: relative;
    height: 92vh;
    min-height: 620px;
    max-height: 960px;
    overflow: hidden;
    background: var(--color-surface-dark);
}

.heroslider__slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1200ms ease-in-out;
}
.heroslider__slide.is-active {
    opacity: 1;
}

.heroslider__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1);
}

/* Ken Burns slow zoom, applied to the incoming slide's image only */
@keyframes heroKenBurns {
    to { transform: scale(1.08); }
}
.heroslider__img.kb-active {
    animation: heroKenBurns 6.5s ease-out forwards;
}

/* Placeholder fill for demo photography not yet swapped for a real photo */
.heroslider__placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    padding: var(--sp-lg);
    background:
        repeating-linear-gradient(135deg, rgba(255,255,255,0.03) 0px, rgba(255,255,255,0.03) 2px, transparent 2px, transparent 14px),
        linear-gradient(135deg, #1a1c20 0%, #0a0b0d 100%);
}
.heroslider__placeholder-caption {
    font-size: var(--fs-caption);
    color: var(--color-on-dark-soft);
    font-style: italic;
}

/* Shade gradient overlay, constant across slides */
.heroslider__shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(10,11,13,0.82) 0%, rgba(10,11,13,0.6) 45%, rgba(10,11,13,0.38) 100%);
    pointer-events: none;
}

.heroslider__content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: 72px; /* matches .site-nav__inner height */
}

/* Eyebrow "ticket" - plain inline dot + mono label, not a filled pill */
.ticket {
    display: inline-flex;
    align-items: center;
    gap: var(--sp-xs);
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--color-muted);
    margin-bottom: var(--sp-lg);
}
.ticket__dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--color-primary);
    flex-shrink: 0;
}
.ticket--onphoto { color: rgba(255,255,255,0.85); }
.ticket--onphoto .ticket__dot { background: var(--color-primary); }

.heroslider__copy { display: none; }
.heroslider__copy.is-active { display: block; }
.heroslider__copy.is-leaving,
.heroslider__copy.is-entering { display: block; }
.heroslider__copy {
    transition: opacity 600ms cubic-bezier(0.23,1,0.32,1), transform 600ms cubic-bezier(0.23,1,0.32,1);
}
.heroslider__copy.is-leaving { opacity: 0; transform: translateY(-12px); position: absolute; width: 100%; }
.heroslider__copy.is-entering { opacity: 0; transform: translateY(16px); transition: none; }

.heroslider__title {
    font-family: var(--font-body);
    font-size: clamp(38px, 5.2vw, 64px);
    /* 2026-08-16 sitewide heading treatment: bumped from 600 to the real
       Manrope 800 (Extra Bold) cut - see includes/header.php's Google
       Fonts <link> for the loaded weight list. Only the weight changed
       here; font-size/line-height/letter-spacing are untouched, this is
       still the exact-port sizing. The highlighted word inside each
       slide's heading (pages/home.php) uses .text-accent for its color;
       that class already reads fine against this same shaded hero photo,
       matching the existing .heroslider__dash / .btn--primary use of
       --color-primary in this exact spot. */
    font-weight: 800;
    line-height: 1.07;
    letter-spacing: -0.28px;
    color: #fff;
    margin-top: var(--sp-lg);
    max-width: 700px;
}
.heroslider__dash {
    display: inline-block;
    width: 44px;
    height: 3px;
    margin-left: 18px;
    vertical-align: middle;
    background: var(--color-primary);
    border-radius: 2px;
}
.heroslider__sub {
    margin-top: var(--sp-lg);
    font-size: 18px;
    line-height: 1.5;
    color: rgba(255,255,255,0.78);
    max-width: 470px;
}

.heroslider__ctas {
    display: flex;
    align-items: center;
    gap: 32px;
    margin-top: var(--sp-xl);
}
@media (max-width: 600px) {
    .heroslider__ctas { gap: 48px; }
}

.btn--hero {
    padding: 8px 8px 8px 26px;
    gap: 14px;
    font-size: 17px;
    display: inline-flex;
    align-items: center;
}
.btn__orb {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255,255,255,0.18);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.btn__orb svg { width: 17px; height: 17px; }

.heroslider__dots {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 28px;
}
.heroslider__dot {
    width: 8px;
    height: 8px;
    border-radius: 4px;
    border: none;
    padding: 0;
    background: rgba(255,255,255,0.3);
    transition: width 300ms ease, background-color 300ms ease;
    cursor: pointer;
}
.heroslider__dot.is-active { width: 32px; background: var(--color-primary); }
.heroslider__dot:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 3px; }

@media (prefers-reduced-motion: reduce) {
    .heroslider__img.kb-active { animation: none; }
    .heroslider__copy { transition: none; }
}

@media (max-width: 640px) {
    /* height/min-height bumped from Fix It's source values (60vh/400px) -
       measured against Rantia's actual 3 hero slides: the longest slide's copy
       stack (ticket + title + sub + ctas) overflowed the old 400px floor and
       pushed its top edge up behind the 72px nav bar (verified via
       getBoundingClientRect on all 3 slides). 72vh/560px clears the nav on
       every slide down to ~667px-tall viewports, at the narrow widths real
       phones use (360/375/390px). Fix It's copy is shorter, which is why its
       source values are lower - this is a deliberate divergence, not a drift. */
    .heroslider { height: 72vh; min-height: 560px; }
    /* .heroslider__dash stays visible on mobile - pages/home.php's inline
       <style> deliberately overrides this to display:block and wins the
       cascade; the dash renders at every width and looks correct. */
}
