/* ========================================================================
   Oráculo Hero — Estilos
   ========================================================================
   1. Banner   — overlay quente, H1 serifado itálico, CTA dourado
   2. Search   — glassmorphism quente, borda dourada, z-index isolado
   3. Carousel — cards com borda dourada ao hover, glow champagne,
                  fade-edges indicando overflow
   ========================================================================
   Design: Luxo minimalista escuro · Dourado champagne · Tipografia elegante
   Plataforma de atendimento de tarot — estética wellness premium
   ======================================================================== */

/* =========================================================================
   1. BANNER
   ========================================================================= */

.hero {
    position: relative;
    width: 100%;
    background-color: var(--color-bg-primary, #0B0A09);
    font-family: var(--font-primary, 'Outfit', sans-serif);
}

.hero__banner {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 320px;
    padding: 48px 24px 56px;
    background-image: var(--hero-bg-desktop, none);
    background-color: var(--color-bg-primary, #0B0A09);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
}

/* Overlay gradiente — transição suave quente para legibilidade */
.hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(11, 10, 9, 0)    0%,
        rgba(11, 10, 9, 0.45)  50%,
        rgba(11, 10, 9, 0.85) 100%
    );
    z-index: 1;
}

/* Filete dourado lateral esquerdo — assinatura de elegância */
.hero__banner::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(
        180deg,
        transparent  0%,
        var(--color-cta-active, #A67F3A) 30%,
        var(--color-cta, #C9A96E)        50%,
        var(--color-accent, #D4BA82)     70%,
        transparent 100%
    );
    z-index: 3;
}

.hero__banner-content {
    position: relative;
    z-index: 2;
    max-width: 720px;
    text-align: center;
}

/* H1 — serifado itálico, elegância literária para transmitir sabedoria */
.hero__title {
    font-family: var(--font-display, 'Cormorant Garamond', 'Georgia', serif);
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 500;
    font-style: italic;
    line-height: 1.1;
    color: var(--color-text-primary, #F2EDE7);
    margin: 0 0 14px;
    letter-spacing: -0.01em;
}

.hero__subtitle {
    font-family: var(--font-primary, 'Outfit', sans-serif);
    font-size: clamp(0.875rem, 1.8vw, 1.0625rem);
    font-weight: 300;
    line-height: 1.7;
    color: var(--color-text-secondary, #A09889);
    margin: 0 0 32px;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
}

/* CTA — dourado champagne, uppercase refinado */
.hero__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 32px;
    font-family: var(--font-primary, 'Outfit', sans-serif);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-text-inverse, #0B0A09);
    background-color: var(--color-cta, #C9A96E);
    border: none;
    border-radius: var(--radius-sm, 4px);
    text-decoration: none;
    cursor: pointer;
    transition:
        background-color var(--transition-base, 0.25s ease),
        transform var(--transition-fast, 0.15s ease),
        box-shadow var(--transition-base, 0.25s ease);
}

.hero__cta:hover {
    background-color: var(--color-cta-hover, #B8944F);
    transform: translateY(-1px);
    box-shadow: var(--shadow-glow-cta, 0 4px 24px rgba(201, 169, 110, 0.35));
}

.hero__cta:focus-visible {
    outline: 2px solid var(--color-accent, #D4BA82);
    outline-offset: 3px;
    box-shadow: var(--shadow-glow, 0 0 16px rgba(201, 169, 110, 0.25));
}

.hero__cta:active {
    transform: translateY(0);
    background-color: var(--color-cta-active, #A67F3A);
}

/* =========================================================================
   2. BARRA DE PESQUISA
   =========================================================================
   • position: relative + z-index: 20 → acima do banner
   • isolation: isolate → stacking context independente
   • Borda dourada champagne com glow sutil ao focar
   ========================================================================= */

.hero__search-wrapper {
    position: relative;
    z-index: 20;
    isolation: isolate;
    max-width: 580px;
    margin: -22px auto 0;
    padding: 0 24px;
}

.hero__search {
    position: relative;
}

.hero__search-input-wrapper {
    display: flex;
    align-items: center;
    background-color: var(--color-surface, #171513);
    border: 1px solid var(--color-border-focus, #C9A96E);
    border-radius: var(--radius-sm, 4px);
    padding: 0 16px;
    height: 48px;
    box-shadow:
        var(--shadow-md, 0 4px 28px rgba(0, 0, 0, 0.6)),
        0 0 0 1px rgba(201, 169, 110, 0.15);
    transition:
        border-color var(--transition-base, 0.25s ease),
        box-shadow var(--transition-base, 0.25s ease);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.hero__search-input-wrapper:focus-within {
    border-color: var(--color-accent, #D4BA82);
    box-shadow:
        var(--shadow-md, 0 4px 28px rgba(0, 0, 0, 0.6)),
        0 0 0 1px rgba(212, 186, 130, 0.30),
        0 0 20px var(--color-accent-glow, rgba(201, 169, 110, 0.12));
}

.hero__search-icon {
    flex-shrink: 0;
    color: var(--color-cta, #C9A96E);
    margin-right: 12px;
    opacity: 0.85;
}

.hero__search-input {
    flex: 1;
    height: 100%;
    background: none;
    border: none;
    outline: none;
    font-family: inherit;
    font-size: 0.9375rem;
    color: var(--color-text-primary, #F2EDE7);
    caret-color: var(--color-accent, #D4BA82);
}

.hero__search-input::placeholder {
    color: var(--color-text-secondary, #A09889);
    opacity: 0.6;
}

.hero__search-clear {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    padding: 0;
    background: none;
    border: none;
    border-radius: 50%;
    color: var(--color-text-secondary, #A09889);
    cursor: pointer;
    transition:
        background-color var(--transition-base, 0.25s ease),
        color var(--transition-base, 0.25s ease);
}

.hero__search-clear:hover {
    background-color: var(--color-accent-glow, rgba(201, 169, 110, 0.12));
    color: var(--color-accent, #D4BA82);
}

.hero__search-clear:focus-visible {
    outline: 2px solid var(--color-accent, #D4BA82);
    outline-offset: 2px;
}

/* Dropdown de resultados */
.hero__search-results {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    max-height: 260px;
    overflow-y: auto;
    background-color: var(--color-surface, #171513);
    border: 1px solid var(--color-border-strong, #3D3830);
    border-radius: var(--radius-base, 8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.7);
    list-style: none;
    margin: 0;
    padding: 6px 0;
    z-index: 50;
}

.hero__search-results[hidden] {
    display: none;
}

.hero__search-result-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    font-size: 0.875rem;
    color: var(--color-text-primary, #F2EDE7);
    cursor: pointer;
    border-left: 2px solid transparent;
    transition: background-color var(--transition-fast, 0.15s ease);
}

.hero__search-result-item:hover,
.hero__search-result-item[aria-selected="true"] {
    background-color: rgba(201, 169, 110, 0.08);
    border-left-color: var(--color-cta, #C9A96E);
}

.hero__search-result-item mark {
    background: none;
    color: var(--color-accent, #D4BA82);
    font-weight: 600;
}

.hero__search-no-results {
    padding: 14px 16px;
    font-size: 0.875rem;
    color: var(--color-text-secondary, #A09889);
    text-align: center;
}

/* =========================================================================
   3. CARROSSEL DE ATENDENTES / SERVIÇOS
   =========================================================================
   Cards com cantos sutis, borda dourada ao hover, glow champagne
   Proporção 4:3 para imagem, label centralizado abaixo
   ========================================================================= */

.hero__carousel-wrapper {
    position: relative;
    max-width: 1280px;
    margin: 20px auto 0;
    padding: 0 24px 28px;
}

.hero__carousel {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Track com scroll horizontal e fade nas bordas */
.hero__carousel-track {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 6px 2px 12px;
    flex: 1;
    mask-image: linear-gradient(
        to right,
        transparent 0px,
        black 24px,
        black calc(100% - 24px),
        transparent 100%
    );
    -webkit-mask-image: linear-gradient(
        to right,
        transparent 0px,
        black 24px,
        black calc(100% - 24px),
        transparent 100%
    );
}

.hero__carousel-track::-webkit-scrollbar {
    display: none;
}

/* Card — cantos suaves, borda dourada ao hover */
.hero__carousel-item {
    flex: 0 0 auto;
    width: 140px;
    scroll-snap-align: start;
    text-decoration: none;
    color: var(--color-text-primary, #F2EDE7);
    border-radius: var(--radius-base, 8px);
    overflow: hidden;
    background-color: var(--color-surface, #171513);
    border: 1px solid var(--color-border, #2A2622);
    border-top: 2px solid transparent;
    transition:
        border-color var(--transition-base, 0.25s ease),
        transform var(--transition-base, 0.25s ease),
        box-shadow var(--transition-base, 0.25s ease),
        background-color var(--transition-base, 0.25s ease);
}

.hero__carousel-item:hover {
    border-color: var(--color-cta, #C9A96E);
    border-top-color: var(--color-accent, #D4BA82);
    transform: translateY(-3px);
    background-color: var(--color-surface-elevated, #1D1B18);
    box-shadow:
        var(--shadow-md, 0 6px 20px rgba(0, 0, 0, 0.5)),
        var(--shadow-glow, 0 0 16px rgba(201, 169, 110, 0.15));
}

.hero__carousel-item:focus-visible {
    outline: 2px solid var(--color-accent, #D4BA82);
    outline-offset: 2px;
    box-shadow: var(--shadow-glow, 0 0 16px rgba(201, 169, 110, 0.20));
}

/* Imagem do card */
.hero__carousel-img-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background-color: var(--color-bg-secondary, #100F0D);
}

.hero__carousel-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-elegant, 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94));
}

.hero__carousel-item:hover .hero__carousel-img {
    transform: scale(1.05);
}

.hero__carousel-img-wrapper--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(
        135deg,
        var(--color-bg-secondary, #100F0D) 0%,
        var(--color-surface, #171513)       100%
    );
}

.hero__carousel-img-wrapper--placeholder svg {
    color: var(--color-border-strong, #3D3830);
    opacity: 0.4;
}

/* Label do card */
.hero__carousel-label {
    display: block;
    padding: 8px 10px;
    font-family: var(--font-primary, 'Outfit', sans-serif);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.03em;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--color-text-primary, #F2EDE7);
}

/* Botões de navegação — estilo minimalista com borda dourada ao hover */
.hero__carousel-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    padding: 0;
    background-color: var(--color-surface, #171513);
    border: 1px solid var(--color-border, #2A2622);
    border-radius: var(--radius-sm, 4px);
    color: var(--color-text-secondary, #A09889);
    cursor: pointer;
    transition:
        background-color var(--transition-base, 0.25s ease),
        border-color var(--transition-base, 0.25s ease),
        color var(--transition-fast, 0.15s ease),
        box-shadow var(--transition-base, 0.25s ease);
}

.hero__carousel-btn:hover:not(:disabled) {
    background-color: var(--color-surface-elevated, #1D1B18);
    border-color: var(--color-cta, #C9A96E);
    color: var(--color-text-primary, #F2EDE7);
    box-shadow: 0 0 10px rgba(201, 169, 110, 0.18);
}

.hero__carousel-btn:focus-visible {
    outline: 2px solid var(--color-accent, #D4BA82);
    outline-offset: 2px;
    box-shadow: var(--shadow-glow, 0 0 12px rgba(201, 169, 110, 0.18));
}

.hero__carousel-btn:disabled {
    opacity: 0.2;
    cursor: default;
}

/* =========================================================================
   RESPONSIVO
   ========================================================================= */

@media (max-width: 767px) {

    .hero__banner {
        min-height: 260px;
        padding: 36px 16px 44px;
        background-image: var(--hero-bg-mobile, var(--hero-bg-desktop, none));
    }

    .hero__title {
        font-size: clamp(1.625rem, 7vw, 2.25rem);
    }

    .hero__subtitle {
        font-size: 0.875rem;
        margin-bottom: 24px;
    }

    .hero__cta {
        padding: 10px 24px;
        font-size: 0.75rem;
    }

    .hero__search-wrapper {
        margin-top: -18px;
        padding: 0 16px;
    }

    .hero__search-input-wrapper {
        height: 44px;
        padding: 0 12px;
    }

    .hero__carousel-wrapper {
        padding: 0 16px 20px;
        margin-top: 14px;
    }

    /* Esconde botões no mobile — swipe nativo via scroll-snap */
    .hero__carousel-btn {
        display: none;
    }

    .hero__carousel {
        gap: 0;
    }

    .hero__carousel-track {
        gap: 10px;
        mask-image: linear-gradient(
            to right,
            transparent 0px,
            black 12px,
            black calc(100% - 12px),
            transparent 100%
        );
        -webkit-mask-image: linear-gradient(
            to right,
            transparent 0px,
            black 12px,
            black calc(100% - 12px),
            transparent 100%
        );
    }

    .hero__carousel-item {
        width: 110px;
    }

    .hero__carousel-label {
        font-size: 0.6875rem;
        padding: 6px 8px;
    }
}

@media (min-width: 768px) and (max-width: 1024px) {

    .hero__banner {
        min-height: 280px;
    }

    .hero__carousel-item {
        width: 125px;
    }
}

@media (min-width: 1441px) {

    .hero__banner {
        min-height: 360px;
    }

    .hero__carousel-item {
        width: 155px;
    }

    .hero__carousel-label {
        font-size: 0.8125rem;
    }
}