/* Deckari carousel controls
 * Load this file AFTER css/style.css.
 * It intentionally overrides only the hero carousel navigation controls.
 */

.hero__dots {
    z-index: 6;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem;
    border: 1px solid rgba(245, 234, 212, 0.22);
    border-radius: 999px;
    background: rgba(42, 24, 16, 0.66);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    pointer-events: auto;
}

.hero__dots .dot {
    position: relative;
    z-index: 1;
    display: inline-grid;
    place-items: center;
    flex: 0 0 auto;
    width: 2.25rem;
    min-width: 2.25rem;
    height: 2.25rem;
    min-height: 2.25rem;
    margin: 0;
    padding: 0;
    appearance: none;
    -webkit-appearance: none;
    border: 1px solid rgba(245, 234, 212, 0.52);
    border-radius: 999px;
    background: rgba(42, 24, 16, 0.72);
    color: rgba(245, 234, 212, 0.9);
    cursor: pointer;
    pointer-events: auto;
    opacity: 1;
    transform: none;
    transition:
        width 180ms ease,
        background-color 180ms ease,
        border-color 180ms ease,
        color 180ms ease,
        transform 180ms ease;
}

.hero__dots .dot::before,
.hero__dots .dot::after {
    content: none;
}

.hero__dots .dot:hover {
    border-color: var(--brass-hi);
    background: rgba(92, 56, 38, 0.92);
    color: var(--ink);
    transform: translateY(-1px);
}

.hero__dots .dot.is-active,
.hero__dots .dot[aria-current="true"] {
    width: 3.4rem;
    border-color: var(--brass-hi);
    background: var(--brass);
    color: var(--pine);
}

.hero__dots .dot.is-active:hover,
.hero__dots .dot[aria-current="true"]:hover {
    background: var(--brass-hi);
    color: var(--pine);
}

.hero__dots .dot:focus-visible {
    outline: 3px solid var(--brass-hi);
    outline-offset: 3px;
}

.dot__number {
    font-family: var(--f-mono);
    font-size: 0.68rem;
    font-weight: 600;
    line-height: 1;
    letter-spacing: 0.02em;
}

@media (max-width: 760px) {
    .hero__dots {
        left: 50%;
        right: auto;
        transform: translateX(-50%);
        gap: 0.35rem;
        max-width: calc(100vw - 2rem);
        padding: 0.35rem;
    }

    .hero__dots .dot {
        width: 1.9rem;
        min-width: 1.9rem;
        height: 1.9rem;
        min-height: 1.9rem;
    }

    .hero__dots .dot.is-active,
    .hero__dots .dot[aria-current="true"] {
        width: 2.75rem;
    }

    .dot__number {
        font-size: 0.61rem;
    }
}

@media (max-width: 360px) {
    .hero__dots {
        gap: 0.25rem;
        padding: 0.3rem;
    }

    .hero__dots .dot {
        width: 1.5rem;
        min-width: 1.5rem;
        height: 1.75rem;
        min-height: 1.75rem;
    }

    .hero__dots .dot.is-active,
    .hero__dots .dot[aria-current="true"] {
        width: 2.1rem;
    }

    .dot__number {
        font-size: 0.56rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero__dots .dot {
        transition: none;
    }
}
