/* home.css — ajustes específicos da home (cards, avaliações) */

/* O tamanho/altura do hero é controlado por `public/assets/css/hero.css`.
   Aqui mantemos apenas ajustes que não devem alterar o layout do carrossel. */

#heroCarousel .carousel-item {
    position: relative;
}

#hero .hero-carousel-img {
    display: block;
    height: 100%;
    width: 100%;
    object-fit: cover;
    max-height: none;
    min-height: 0;
}

#hero .hero-overlay .container {
    min-height: 280px;
}

#hero .hero-overlay h1.display-4 {
    line-height: 1.1;
}

#hero .hero-subtitle {
    line-height: 1.45;
}

#hero .hero-highlight {
    display: inline-block;
    min-width: 200px;
}

#hero .hero-rating-caption {
    display: flex;
    justify-content: flex-start;
    align-items: flex-end;
    top: auto;
    right: 0;
    left: 0;
    bottom: 1rem;
    padding-left: 1rem;
    padding-right: 1rem;
    background: transparent;
    z-index: 5;
    pointer-events: none;
}

#hero .hero-rating-box {
    display: inline-flex;
    flex-direction: column;
    gap: 0.25rem;
    margin: 0;
    padding: 0.625rem 0.75rem;
    border-radius: 0.75rem;
    background: rgba(0, 0, 0, 0.45);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: var(--bs-white);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
    max-width: 26rem;
    line-height: 1.3;
    font-size: 0.875rem;
}

#hero .hero-stars {
    letter-spacing: 0.08em;
}

.bi {
    display: inline-block;
    width: 1em;
    height: 1em;
    line-height: 1;
    vertical-align: -0.125em;
}

.bi::before {
    display: inline-block;
    line-height: 1;
}

#scrollTopBtn {
    line-height: 1;
}

#mobileWhatsAppBtn {
    min-height: 44px;
    line-height: 1;
}

#mobileWhatsAppBtn .bi {
    line-height: 1;
}

#cardapio .cardapio-card {
    overflow: hidden;
}

#cardapio .cardapio-img {
    display: block;
    width: 100%;
    height: 180px;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    object-position: center;
    background-color: var(--bs-gray-200);
}

/* Sobre */
#sobre {
    min-height: 600px;
}

#sobre .row {
    min-height: 400px;
}

#sobre .col-lg-6 {
    min-height: 380px;
}

#sobre .rating-score {
    font-size: 1.5rem;
    font-weight: 700;
}

#sobre .rating-count {
    color: var(--bs-secondary-color);
    font-size: 0.9rem;
}

#sobre .redes-sociais .btn {
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
}

#sobre .redes-sociais .btn:hover {
    transform: translateY(-3px);
}

#sobre .info-horario {
    background-color: var(--bs-gray-100);
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    min-height: 72px;
    padding: 0.75rem 1rem;
}

#sobre .google-reviews {
    min-height: 80px;
}

#sobre .redes-sociais {
    min-height: 112px;
}

/* Correção visual: remove linhas/barras não intencionais no hero */
#hero::before,
#hero::after,
#hero .hero-overlay::before,
#hero .hero-overlay::after,
#hero .hero-highlight::before,
#hero .hero-highlight::after,
#hero .carousel-caption::before,
#hero .carousel-caption::after {
    content: none !important;
    display: none !important;
}

#hero .hero-highlight,
#hero h1,
#hero .hero-overlay h1,
#hero .hero-overlay p {
    border-bottom: 0 !important;
    box-shadow: none !important;
    text-decoration: none;
}

#hero hr,
#hero .divider,
#hero .separator {
    display: none !important;
}

/* ============================================
   PREVENÇÃO DE CLS - SOBRE (ajuste residual)
============================================ */

#sobre {
    contain: layout;
    min-height: 550px;
}

#sobre .row {
    min-height: 450px;
}

#sobre .col-lg-6 {
    min-height: 400px;
}

#sobre p {
    line-height: 1.5;
}

#sobre p.lead {
    min-height: 72px;
}

#sobre p.mb-3 {
    min-height: 96px;
}

#sobre .info-horario {
    min-height: 72px;
}

#sobre .google-reviews {
    min-height: 88px;
}

#sobre .google-reviews .d-flex {
    min-height: 56px;
}

#sobre .redes-sociais {
    min-height: 112px;
}

#sobre .rating-count {
    display: inline-block;
    min-height: 1.5em;
}

#sobre img[width][height] {
    height: auto;
}

.navbar-collapse {
    min-height: 0;
}

@media (max-width: 991.98px) {
    .navbar .navbar-collapse {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        z-index: 1040;
        margin-top: 0;
        padding: 1rem;
        background-color: #1E1E1E;
        border-radius: 0 0 12px 12px;
    }
}

@media (min-width: 768px) {
    #sobre {
        min-height: 520px;
    }

    #sobre .row {
        min-height: 420px;
    }

    #sobre .col-lg-6 {
        min-height: 380px;
    }

    #sobre p.lead {
        min-height: 68px;
    }

    #sobre p.mb-3 {
        min-height: 92px;
    }
}

@media (min-width: 992px) {
    #sobre {
        min-height: 500px;
    }

    #sobre .row {
        min-height: 400px;
    }

    #sobre .col-lg-6 {
        min-height: 360px;
    }

    #sobre p.lead {
        min-height: 64px;
    }

    #sobre p.mb-3 {
        min-height: 88px;
    }
}

/* ============================================
   PREVENÇÃO DE CLS - CONTAINER SOBRE (crítico)
============================================ */

#sobre .container {
    min-height: 650px;
    contain: layout style;
}

#sobre .row {
    min-height: 550px;
}

#sobre .col-lg-6 {
    min-height: 500px;
}

#sobre h2 {
    min-height: 60px;
}

#sobre p {
    min-height: 120px;
}

#sobre .info-horario,
#sobre .google-reviews {
    min-height: 65px;
}

#sobre .redes-sociais {
    min-height: 85px;
}

#sobre img {
    min-height: 384px;
    background-color: #f0f0f0;
}

@media (min-width: 768px) {
    #sobre .container {
        min-height: 600px;
    }

    #sobre .row {
        min-height: 500px;
    }

    #sobre .col-lg-6 {
        min-height: 450px;
    }

    #sobre p {
        min-height: 100px;
    }
}

@media (min-width: 992px) {
    #sobre .container {
        min-height: 550px;
    }

    #sobre .row {
        min-height: 450px;
    }

    #sobre .col-lg-6 {
        min-height: 400px;
    }

    #sobre p {
        min-height: 80px;
    }
}
