﻿/* slide.css
   luxury gold hero styles
   place in: wwwroot/css/slide.css
*/

/* layout */
.hero-slider {
    position: relative;
    width: 100%;
    overflow: hidden;
    /*background: #0f0f10;*/
}

    .hero-slider .slide-track {
        display: flex;
        will-change: transform;
        transition: transform 700ms ease-in-out;
    }

    .hero-slider .slide {
        flex: 0 0 100%;
        position: relative;
        min-height: 240px;
        /* use aspect-ratio to size slides relative to the container width so the slider fits within layout columns */
        aspect-ratio: 16 / 6;
        overflow: hidden;
        display: block;
        border-radius: 12px; /* rounded corners for the slide container */
    }

@media (min-width: 768px) {
    .hero-slider .slide {
        min-height: 420px;
        aspect-ratio: 16 / 6; /* slightly shorter landscape */
    }
}

/* image */
.hero-slider .slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    border-radius: 12px; /* ensure image matches slide rounding */
}

/* overlays */
.slide-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
    border-radius: 12px; /* match rounding */
}

.slide-content {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 1rem;
    pointer-events: auto;
}

@media (min-width: 768px) {
    .slide-content {
        padding: 3rem 4rem;
    }
}

/* text blocks */
.hero-headline {
    font-family: "Merriweather", serif;
    font-size: 1.25rem;
    line-height: 1.02;
    letter-spacing: -0.02em;
    font-weight: 400;
}

@media (min-width: 768px) {
    .hero-headline {
        font-size: 2.25rem;
    }
}

.hero-sub {
    font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
    font-size: 0.95rem;
    margin-top: 0.6rem;
    opacity: 0.95;
}

/* deep charcoal + warm gold */
.hero-text-wrap {
    color: rgba(255,245,230,0.98);
    text-shadow: 0 6px 18px rgba(0,0,0,0.55);
    max-width: 45rem;
}

/* gold shimmer for headlines */
@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.shimmer {
    background: linear-gradient(90deg, rgba(255,245,230,0.04) 0%, rgba(255,210,120,0.55) 50%, rgba(255,245,230,0.04) 100%);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: shimmer 3s linear infinite;
}

/* subtle tint & vignette per slide */
.slide .tint {
    position: absolute;
    inset: 0;
    pointer-events: none;
    border-radius: 12px; /* match rounding */
}

.tint-soft { background: linear-gradient(180deg, rgba(0,0,0,0.12), rgba(0,0,0,0.45)); }
.tint-gold { background: linear-gradient(90deg, rgba(0,0,0,0.18), rgba(14,11,10,0.25)); mix-blend-mode: multiply; }

/* controls */
.hero-prev, .hero-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 30;
    background: rgba(0,0,0,0.45);
    border: 0;
    width: 40px;
    height: 40px;
    border-radius: 9999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.hero-prev { left: 0.75rem; }
.hero-next { right: 0.75rem; }

    .hero-prev svg, .hero-next svg { width: 18px; height: 18px; color: rgba(255,210,120,0.98); }

/* dots */
.hero-dots { position: absolute; left: 50%; transform: translateX(-50%); bottom: 0.75rem; display: flex; gap: 0.5rem; z-index: 30; }
.hero-dots button { width: 10px; height: 10px; border-radius: 9999px; background: rgba(255,210,120,0.28); border: 0; cursor: pointer; transition: width 220ms ease, background 220ms ease; }
.hero-dots button.active { width: 34px; background: linear-gradient(90deg, rgba(255,210,120,0.95), rgba(255,180,80,0.9)); box-shadow: 0 6px 20px rgba(255,170,60,0.08); }

/* cta button styles inside slides */
.slide .cta { display: inline-block; padding: 0.55rem 0.9rem; border-radius: 999px; font-weight: 600; background: linear-gradient(90deg,#f6c46a,#f0a82f); color: #111; text-decoration: none; box-shadow: 0 8px 30px rgba(240,160,47,0.12); }

/* reduced motion handling */
@media (prefers-reduced-motion: reduce) { .hero-slider .slide-track { transition: none !important; } .shimmer { animation: none !important; } }

/* accessibility focus */
.hero-prev:focus, .hero-next:focus, .hero-dots button:focus, .slide .cta:focus { outline: 3px solid rgba(255,200,80,0.18); outline-offset: 3px; }
