/* Cman – Slider Hero Block  (cman/slider-hero) */

/* Height variants */
.gm-hero-slider--screen { min-height: 100svh; }
.gm-hero-slider--lg     { min-height: 80vh; }
.gm-hero-slider--md     { min-height: 60vh; }

/* Container */
.gm-hero-slider {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: #000;
}

/* Slides wrapper */
.gm-hero-slides {
    position: absolute;
    inset: 0;
}

/* Individual slide */
.gm-hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1s ease;
    background-size: cover;
    background-position: center;
}
.gm-hero-slide.is-active { opacity: 1; }

/* Background image */
.gm-hero-slide__bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
    transition: transform 8s ease;
}
.gm-hero-slider.is-ready .gm-hero-slide.is-active .gm-hero-slide__bg {
    transform: scale(1.05);
}

/* Gradient overlay */
.gm-hero-slide__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.35) 50%, rgba(0,0,0,0.15) 100%);
    pointer-events: none;
}

/* Content */
.gm-hero-content {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2rem 1.5rem 6rem;
    gap: 0.75rem;
}

@media (min-width: 640px) {
    .gm-hero-content { padding: 3rem 2.5rem 7rem; }
}

@media (min-width: 1024px) {
    .gm-hero-content { padding: 4rem 3rem 8rem; }
}

.gm-hero-content--center {
    align-items: center;
    text-align: center;
}

.gm-hero-content--left {
    align-items: flex-start;
    text-align: left;
}

.gm-hero-content--right {
    align-items: flex-end;
    text-align: right;
}

.gm-hero-content__subtitle {
    margin: 0;
    letter-spacing: 0.02em;
}

.gm-hero-content__title {
    color: #fff;
    margin: 0;
    max-width: 760px;
}

.gm-hero-content__desc {
    max-width: 560px;
    margin: 0;
}

/* Controls bar */
.gm-hero-controls {
    position: absolute;
    bottom: 2rem;
    left: 0;
    right: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

@media (min-width: 640px) { .gm-hero-controls { bottom: 2.5rem; } }

/* Arrow buttons */
.gm-hero-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 9999px;
    border: 1px solid rgba(255,255,255,0.30);
    background: transparent;
    color: #fff;
    cursor: pointer;
    transition: background 0.2s;
}
.gm-hero-btn:hover { background: rgba(255,255,255,0.20); }
.gm-hero-btn:focus-visible { outline: 2px solid rgba(255,255,255,0.5); }

@media (min-width: 640px) {
    .gm-hero-btn { width: 3rem; height: 3rem; }
}

/* Dots */
.gm-hero-dots {
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.gm-hero-dot {
    height: 0.25rem;
    border: none;
    border-radius: 0;
    background: rgba(255,255,255,0.40);
    cursor: pointer;
    padding: 0;
    transition: width 0.3s ease, background 0.2s ease;
    width: 40px;
}

@media (min-width: 640px) {
    .gm-hero-dot { height: 0.25rem; width: 60px; }
}

.gm-hero-dot.is-active { background: var(--primary-color, #fff); width: 40px; }

@media (min-width: 640px) {
    .gm-hero-dot.is-active { width: 60px; }
}

/* Slide counter */
.gm-hero-counter {
    position: absolute;
    bottom: 1.5rem;
    right: 1.25rem;
    z-index: 10;
    color: rgba(255,255,255,0.55);
    font-size: 0.75rem;
    letter-spacing: 0.06em;
}

@media (min-width: 640px) { .gm-hero-counter { bottom: 2rem; right: 2rem; } }

/* Play/Pause */
.gm-hero-playpause {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    z-index: 10;
    width: 2rem;
    height: 2rem;
    border-radius: 9999px;
    border: 1px solid rgba(255,255,255,0.25);
    background: rgba(0,0,0,0.25);
    backdrop-filter: blur(4px);
    color: rgba(255,255,255,0.7);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}
.gm-hero-playpause:hover { background: rgba(0,0,0,0.45); color: #fff; }

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
    .gm-hero-slide { transition: opacity 0.1s; }
    .gm-hero-slide.is-active .gm-hero-slide__bg { transform: none; }
}
