@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;500;600;700;800;900&display=swap');

/*
  Camada complementar da Carol Barber Shop.
  Mantém tipografia, carrossel do hero e correções de layout/fotos.
  A paleta visual volta a ser a paleta original da Carol Barber Shop:
  preto, vermelho, vinho, branco e cinzas.
*/

body,
button,
input,
textarea,
select {
    font-family: "Nunito", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* Mantém o botão mobile sem a faixa branca que existia em versões anteriores. */
.mobile-booking {
    background: transparent !important;
    border-top: 0 !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    padding: 0 !important;
}

.mobile-booking a {
    width: 100%;
    margin: 0;
    border: 0;
}

/* Ajustes de viewport e composição já existentes na versão atual. */
@supports (-webkit-touch-callout: none) {
    .hero {
        min-height: 100svh;
    }
}

@media (max-width: 860px) {
    .hero-media img {
        object-position: 58% 44%;
    }

    .hero-copy {
        position: relative;
        z-index: 3;
    }

    .hero h1 {
        max-width: 100%;
        overflow-wrap: normal;
        word-break: normal;
    }

    .hero-card {
        position: relative;
        z-index: 3;
    }
}

@media (max-width: 580px) {
    .hero {
        padding-top: calc(var(--header-h) + 34px);
    }

    .hero h1 {
        font-size: clamp(2.8rem, 13.2vw, 4.15rem);
        line-height: .94;
        letter-spacing: -.055em;
    }

    .mobile-booking {
        background: transparent !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
    }
}

/* Galeria automática de trabalhos no Hero */
@keyframes carolWorkSlider {
    from { transform: translate3d(0, 0, 0); }
    to { transform: translate3d(-50%, 0, 0); }
}

.hero-work-slider {
    width: min(100%, 500px);
    padding: 12px 0 10px;
    overflow: hidden;
    transform: none;
}

.work-slider-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 4px 16px 12px;
    color: #f8f7f4;
}

.work-slider-heading > span {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 0 12px;
    border-radius: 999px;
    background: var(--brand-fill, #d71936);
    color: #ffffff;
    border: 1px solid rgba(255,255,255,.13);
    text-transform: uppercase;
    letter-spacing: .09em;
    font-size: .7rem;
    line-height: 1;
    font-weight: 900;
    white-space: nowrap;
}

.work-slider-heading small {
    color: rgba(255,255,255,.58);
    font-size: .72rem;
    font-weight: 700;
    text-align: right;
}

.work-slider-viewport {
    width: 100%;
    overflow: hidden;
    padding: 4px 0 8px;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 7%, #000 93%, transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0%, #000 7%, #000 93%, transparent 100%);
}

.work-slider-track {
    display: flex;
    width: max-content;
    will-change: transform;
    animation: carolWorkSlider 28s linear infinite;
}

.work-slider-group {
    display: flex;
    align-items: stretch;
    gap: 12px;
    padding-right: 12px;
}

.work-slide {
    appearance: none;
    -webkit-appearance: none;
    flex: 0 0 auto;
    width: clamp(142px, 13vw, 184px);
    aspect-ratio: 4 / 5;
    padding: 0;
    border: 0;
    border-radius: 20px;
    overflow: hidden;
    background: #171719;
    box-shadow: 0 12px 28px rgba(0,0,0,.26);
    cursor: pointer;
    transform: translateZ(0);
    transition: transform .28s ease, box-shadow .28s ease, filter .28s ease;
}

.work-slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.002);
    transition: transform .45s cubic-bezier(.2,.7,.2,1), filter .3s ease;
}

.work-slide:hover,
.work-slide:focus-visible {
    transform: translateY(-4px) scale(1.015);
    box-shadow: 0 18px 34px rgba(0,0,0,.34);
}

.work-slide:hover img,
.work-slide:focus-visible img {
    transform: scale(1.045);
    filter: brightness(1.04);
}

.work-slide:focus-visible {
    outline: 3px solid var(--red-2, #ff2849);
    outline-offset: 3px;
}

.hero-work-slider:hover .work-slider-track,
.hero-work-slider:focus-within .work-slider-track {
    animation-play-state: paused;
}

.hero-work-slider .hero-card-body {
    padding: 13px 16px 4px;
}

.hero-work-slider .hero-card-body strong {
    max-width: 280px;
}

@media (min-width: 1101px) {
    .hero-content {
        grid-template-columns: minmax(0, 1fr) minmax(420px, .75fr);
        gap: clamp(42px, 6vw, 82px);
    }
}

@media (max-width: 1100px) and (min-width: 821px) {
    .hero-content {
        grid-template-columns: minmax(0, 1fr) 390px;
        gap: 30px;
    }

    .hero-work-slider {
        width: 390px;
    }

    .work-slide {
        width: 148px;
    }
}

@media (max-width: 820px) {
    .hero-work-slider {
        width: min(100%, 680px);
        justify-self: stretch;
        margin-top: 4px;
    }

    .work-slide {
        width: clamp(168px, 42vw, 230px);
    }
}

@media (max-width: 580px) {
    .hero-work-slider {
        margin-top: 12px;
        padding: 10px 0 8px;
        border-radius: 24px;
    }

    .work-slider-heading {
        align-items: flex-start;
        padding: 2px 14px 10px;
    }

    .work-slider-heading small {
        max-width: 142px;
        font-size: .66rem;
        line-height: 1.3;
    }

    .work-slider-viewport {
        -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 5%, #000 95%, transparent 100%);
        mask-image: linear-gradient(90deg, transparent 0%, #000 5%, #000 95%, transparent 100%);
    }

    .work-slider-group {
        gap: 10px;
        padding-right: 10px;
    }

    .work-slide {
        width: min(58vw, 220px);
        border-radius: 18px;
    }

    .hero-work-slider .hero-card-body {
        padding: 12px 14px 4px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .work-slider-viewport {
        overflow-x: auto;
        -webkit-mask-image: none;
        mask-image: none;
        scrollbar-width: none;
    }

    .work-slider-viewport::-webkit-scrollbar {
        display: none;
    }

    .work-slider-track {
        animation: none;
    }

    .work-slider-group[aria-hidden="true"] {
        display: none;
    }
}

/* Fotos da equipe continuam redondas como na versão atual. */
.team-avatar {
    width: min(320px, calc(100% - 24px)) !important;
    height: auto !important;
    aspect-ratio: 1 / 1 !important;
    margin: 12px auto 0 !important;
    border-radius: 50% !important;
    overflow: hidden !important;
    display: grid !important;
    place-items: center !important;
    background: #000 !important;
    border: 0 !important;
}

.team-avatar::before,
.team-avatar::after {
    display: none !important;
}

.team-avatar img {
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    aspect-ratio: 1 / 1 !important;
    display: block !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    object-position: center center !important;
    border: 0 !important;
    box-shadow: none !important;
}

@media (max-width: 580px) {
    .team-avatar {
        width: min(300px, calc(100% - 20px)) !important;
    }
}

.section-team .team-card .team-avatar {
    position: relative !important;
    width: min(280px, calc(100% - 40px)) !important;
    height: auto !important;
    aspect-ratio: 1 / 1 !important;
    margin: 20px auto 8px !important;
    padding: 0 !important;
    display: block !important;
    overflow: hidden !important;
    border-radius: 9999px !important;
    clip-path: circle(50% at 50% 50%) !important;
    background: #000 !important;
    border: 0 !important;
    box-shadow: 0 14px 32px rgba(0,0,0,.12) !important;
}

.section-team .team-card .team-avatar::before,
.section-team .team-card .team-avatar::after {
    content: none !important;
    display: none !important;
}

.section-team .team-card .team-avatar img {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    max-height: none !important;
    margin: 0 !important;
    padding: 0 !important;
    display: block !important;
    object-fit: cover !important;
    object-position: center center !important;
    border: 0 !important;
    border-radius: 9999px !important;
    clip-path: circle(50% at 50% 50%) !important;
    box-shadow: none !important;
}

@media (max-width: 580px) {
    .section-team .team-card .team-avatar {
        width: min(260px, calc(100% - 34px)) !important;
        height: auto !important;
        aspect-ratio: 1 / 1 !important;
    }
}


/* WhatsApp mantém a identidade visual oficial e fica mais baixo no mobile. */
.site-theme .whatsapp-fab {
    background: #25d366 !important;
    color: #ffffff !important;
}

.site-theme .whatsapp-fab svg {
    color: #ffffff !important;
    fill: currentColor !important;
    stroke: none !important;
}

.site-theme .whatsapp-fab:focus-visible {
    outline-color: #25d366 !important;
}

@media (max-width: 860px) {
    .whatsapp-fab {
        bottom: max(76px, calc(env(safe-area-inset-bottom) + 64px)) !important;
    }
}

@media (max-width: 580px) {
    .whatsapp-fab {
        bottom: max(72px, calc(env(safe-area-inset-bottom) + 60px)) !important;
    }
}
