:root {
    --accent: #27293e;
}

html {
    /* Suporta a ancora do botao "Agendar agora"/link do header ("#servicos")
       rolando suavemente ate a secao de servicos, sem JS extra. */
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    color: #333333;
    background: #fff;
    /* Rodape "grudado" embaixo mesmo quando o conteudo e curto (ex:
       Minha conta com poucos agendamentos) - sem isso, o footer aparecia
       logo depois do conteudo, deixando um vao em branco ate a barra fixa
       do mobile (.mobile-tab-bar), em vez de ficar colado nela. */
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1 0 auto;
}

a {
    color: var(--accent);
}

/* ---------- Header (logo + navegacao + acao) ---------- */

.site-header {
    background: #fff;
    border-bottom: 1px solid #eee;
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 20;
}

.brand-logo {
    width: 50px;
    height: 50px;
    border-radius: 10%;
    background: var(--accent);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
    overflow: hidden;
}

.brand-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.brand-name {
    font-weight: 700;
    font-size: 1.3rem;
    letter-spacing: -0.5px;
    margin: 0 0 0 0.75rem;
    color: #333;
}

.header-link {
    color: rgba(0, 0, 0, .6);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
}

.header-link:hover {
    color: var(--accent);
}

.header-action {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    font-size: 0.95rem;
    color: #333;
    text-decoration: none;
    white-space: nowrap;
}

.header-action i {
    font-size: 1.5rem;
    color: var(--accent);
}

.site-footer {
    background: var(--accent);
    color: rgba(255, 255, 255, .85);
    padding: 1.5rem 0;
    margin-top: 3rem;
}

/* ---------- Barra de navegacao fixa (so mobile) ---------- */
/* "Agendar"/"Entrar"/"Minha conta" ficam escondidos no header em telas
   pequenas (.header-link e "d-none d-md-flex") - sem essa barra, mobile
   nao tinha jeito nenhum de acessar essas acoes. */

.mobile-tab-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 30;
    display: flex;
    background: #fff;
    border-top: 1px solid #eee;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, .06);
}

.mobile-tab-bar__item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    padding: 8px 0 6px;
    font-size: 0.7rem;
    color: rgba(0, 0, 0, .55);
    text-decoration: none;
}

.mobile-tab-bar__item i {
    font-size: 1.3rem;
}

.mobile-tab-bar__item:hover,
.mobile-tab-bar__item:active {
    color: var(--accent);
}

@media (max-width: 767.98px) {
    body {
        padding-bottom: 60px;
    }
}

/* ---------- Capa + avatar ---------- */

/* Envolve tanto a capa estatica (.cover-banner, padrao) quanto o carrossel
   de banners (opcional, ver TenantBannerSlide) - o avatar fica posicionado
   em relacao a esse wrapper, nao a um ou outro especificamente, entao os
   dois casos posicionam o avatar do mesmo jeito sem duplicar CSS. */
.hero-media {
    position: relative;
    margin-bottom: 46px;
}

.cover-banner {
    background: linear-gradient(135deg, var(--accent), #4a4e9c);
    height: 130px;
}

.hero-carousel-img {
    height: 220px;
    object-fit: cover;
}

@media (min-width: 768px) {
    .hero-carousel-img {
        height: 420px;
    }
}

.cover-avatar {
    position: absolute;
    left: 50%;
    bottom: -45px;
    transform: translateX(-50%);
    width: 90px;
    height: 90px;
    background: #fff;
    border-radius: 12%;
    box-shadow: 0 0 5px rgba(0, 0, 0, .2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--accent);
    z-index: 3;
    overflow: hidden;
}

.cover-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ---------- Bloco de informacoes centralizado ---------- */

.app-info {
    text-align: center;
    padding: 4px 12px 0;
}

.app-info h1 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.app-info .description {
    font-size: 0.9rem;
    color: rgba(0, 0, 0, .6);
    margin-bottom: 14px;
}

.btn-hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 26px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    margin-bottom: 18px;
}

.btn-hero-cta:hover {
    color: #fff;
    opacity: 0.9;
}

.info-badges-row {
    display: flex;
    justify-content: center;
    max-width: 460px;
    margin: 0 auto 18px;
}

.info-badges-row .badge-item {
    flex: 1;
    padding: 6px 12px;
    border-right: 1px solid rgba(0, 0, 0, .12);
    font-size: 0.75rem;
    color: rgba(0, 0, 0, .7);
    line-height: 1.3;
}

.info-badges-row .badge-item:last-child {
    border-right: 0;
}

.info-badges-row .badge-item i {
    display: block;
    font-size: 1.4rem;
    color: rgba(0, 0, 0, .45);
    margin-bottom: 4px;
}

/* ---------- Abas de categoria (underline) ---------- */

.category-tabs {
    border-bottom: 1px solid #eee;
    background: #fff;
    position: sticky;
    top: 91px;
    z-index: 10;
    padding: 12px 0;
}

/* Alinhado a esquerda por padrao (mobile) - com overflow, "justify-content:
   center" cortava o primeiro/ultimo item de um jeito estranho (o navegador
   centraliza pelo tamanho TOTAL do conteudo, nao pelo que cabe na tela).
   Centraliza so a partir de telas onde normalmente cabe tudo sem rolar. */
.category-tabs-scroll {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 8px;
    justify-content: flex-start;
    padding-right: 24px;
    scrollbar-width: none;
}

.category-tabs-scroll::-webkit-scrollbar {
    display: none;
}

@media (min-width: 768px) {
    .category-tabs-scroll {
        justify-content: center;
    }
}

.category-tabs a {
    padding: 8px 18px;
    font-size: 0.85rem;
    font-weight: 500;
    color: rgba(0, 0, 0, .6);
    background: #f1f2f5;
    border-radius: 999px;
    white-space: nowrap;
    text-decoration: none;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.2s, color 0.2s, transform 0.15s;
}

.category-tabs a:hover {
    background: #e5e7ec;
    color: #000;
}

.category-tabs a.active {
    background: var(--accent);
    color: #fff;
    transform: scale(1.05);
}

/* ---------- Card de servico ---------- */

.item-card {
    border: 0;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 0 4px rgba(0, 0, 0, .08);
    height: 100%;
    transition: box-shadow 0.2s;
}

.item-card:hover {
    box-shadow: 0 4px 14px rgba(0, 0, 0, .12);
}

.item-card__media {
    height: 190px;
    background: #eef0f3;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.6rem;
    color: var(--accent);
    overflow: hidden;
}

.item-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.item-card__body {
    padding: 10px 14px 14px;
}

.item-card__category {
    font-size: 0.7rem;
    color: rgba(0, 0, 0, .45);
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.item-card__name {
    font-size: 0.95rem;
    font-weight: 500;
    margin: 2px 0 8px;
}

.item-card__price {
    font-weight: 550;
    font-size: 1.05rem;
    margin-bottom: 10px;
}

.item-card__cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: var(--accent);
    color: #fff;
    text-align: center;
    padding: 10px;
    border-radius: 5px;
    border: 0;
    width: 100%;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
}

.item-card__cta:hover {
    opacity: 0.9;
    color: #fff;
}

.btn-accent {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

.btn-accent:hover {
    background: #1c1d2e;
    border-color: #1c1d2e;
    color: #fff;
}

/* ---------- Modal de agendamento ---------- */

.booking-steps {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
}

.step-dot {
    width: 28px;
    height: 4px;
    border-radius: 2px;
    background: #dee2e6;
}

.step-dot.active {
    background: var(--accent);
}

.professional-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 0.75rem;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    margin-bottom: 0.5rem;
    cursor: pointer;
}

.professional-option:has(input:checked) {
    border-color: var(--accent);
    background: #f8f9fa;
}

.professional-option__avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #eef0f3;
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 600;
    flex-shrink: 0;
}

.time-slot-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
}

.btn-time-slot {
    color: #333;
    border-color: #dee2e6;
}

.btn-time-slot.selected {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}

.booking-summary > div {
    padding: 0.4rem 0;
}

/* ---------- Secoes opcionais (galeria, depoimentos) ---------- */

.site-section {
    padding: 3rem 0;
}

.site-section--muted {
    background: #f8f9fb;
}

.site-section-title {
    text-align: center;
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1.75rem;
}

.gallery-thumb {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    transition: opacity 0.2s;
}

.gallery-thumb:hover {
    opacity: 0.85;
}

.testimonial-card {
    max-width: 560px;
    text-align: center;
    padding: 0 3rem;
}

.testimonial-stars {
    color: #f5a623;
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
}

.testimonial-quote {
    font-size: 1.05rem;
    font-style: italic;
    color: #333;
    margin-bottom: 0.75rem;
}

.testimonial-name {
    font-weight: 600;
    color: rgba(0, 0, 0, .6);
    font-size: 0.9rem;
}

/* As setas do carrossel do Bootstrap sao brancas por padrao (pensadas pra
   ficar em cima de foto/fundo escuro) - nas secoes com fundo claro
   (depoimentos), preciso escurecer o icone (SVG embutido via
   background-image) pra ficar visivel. */
.site-section .carousel-control-prev-icon,
.site-section .carousel-control-next-icon {
    filter: invert(1) grayscale(100);
}
