/* Reset e Configurações Globais */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Variáveis CSS - Tema Preto e Dourado */
:root {
    --primary-color: #C5A049;
    --gold-bright: #D4AF37;
    --secondary-color: #000000;
    --bg-dark: #121010;
    --bg-card: #1a1717;
    --text-dark: #C5A049;
    --text-light: #e5d5b5;
    --white: #ffffff;
    --bg-light: #121010;
}

/* Estilos Base */
body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    background-color: var(--bg-dark);
    color: var(--text-dark);
}

/* ===== BANNER PRINCIPAL ===== */
.banner-principal {
    position: relative;
    width: 100%;
    background: #000000;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.banner-principal .banner-img {
    display: block;
    width: 100%;
    height: clamp(180px, 28vw, 360px);
    object-fit: fill;
    object-position: center;
    /* Recorta a moldura estática original do PNG para exibir apenas o contorno animado */
    clip-path: inset(10.5% 3% 10.5% 3%);
}

.banner-contour {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
}

.banner-contour rect {
    x: 8px;
    y: 8px;
    width: calc(100% - 16px);
    height: calc(100% - 16px);
    rx: 18px;
    ry: 18px;
    fill: none;
}

.banner-contour .contour-base {
    stroke: #C5A049;
    stroke-width: 2.5px;
    opacity: 0.9;
}

/* Container de brilhos estilo Gemini ao redor da borda */
.banner-sparkles {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 5;
    overflow: hidden;
}

/* Container de brilhos globais em todo o site */
.site-sparkles {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 998;
    overflow: hidden;
}

/* Brilho estilo Gemini (estrela de 4 pontas) */
.gemini-sparkle {
    position: absolute;
    width: 11px;
    height: 11px;
    pointer-events: none;
    transform: translate(-50%, -50%) scale(0);
    animation: geminiTwinkle 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    filter: drop-shadow(0 0 2px #FFFFFF) drop-shadow(0 0 6px #D4AF37);
}

/* Brilhos contínuos base no CSS */
.gemini-sparkle.css-sparkle {
    animation-iteration-count: infinite;
    animation-duration: 2.4s;
}

@keyframes geminiTwinkle {
    0% {
        transform: translate(-50%, -50%) scale(0) rotate(-25deg);
        opacity: 0;
    }
    30% {
        transform: translate(-50%, -50%) scale(1.25) rotate(15deg);
        opacity: 1;
    }
    60% {
        transform: translate(-50%, -50%) scale(0.9) rotate(35deg);
        opacity: 0.9;
    }
    100% {
        transform: translate(-50%, -50%) scale(0) rotate(55deg);
        opacity: 0;
    }
}

/* ===== HEADER ===== */
header {
    background: var(--secondary-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
    border-bottom: 1px solid var(--gold-bright);
    position: sticky;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
}

nav {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
}

.logo-img {
    width: 100px;
    height: auto;
    vertical-align: middle;
    margin-right: 10px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 1.5rem;
    align-items: center;
}

.nav-links a {
    display: inline-block;
    padding: 8px 18px;
    border-radius: 25px;
    border: none;
    background: transparent;
    color: var(--primary-color);
    font-weight: 500;
    font-size: 0.95rem;
    text-decoration: none;
    letter-spacing: 0.3px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    user-select: none;
}

/* Ao passar o mouse (hover) */
.nav-links a:hover {
    color: #000000;
    background: linear-gradient(135deg, #F3D57B 0%, #D4AF37 50%, #C5A049 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
}

/* Ao clicar (active) */
.nav-links a:active {
    transform: translateY(1px) scale(0.97);
    background: #C5A049;
    color: #000000;
}

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    color: var(--primary-color);
    cursor: pointer;
}

/* ===== HERO SECTION ===== */
.hero,
#home {
    background: linear-gradient(0deg, #2e2307 0%, #d4af37 50%, #2e2307 100%);
    padding: 80px 5%;
    text-align: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #000000;
    animation: fadeInUp 1s ease;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: #121010;
    animation: fadeInUp 1s ease 0.2s;
    animation-fill-mode: both;
}

.cta-button {
    display: inline-block;
    background: var(--primary-color);
    color: #000000;
    padding: 15px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s;
    animation: fadeInUp 1s ease 0.4s;
    animation-fill-mode: both;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.button-contact {
    display: inline-block;
    background: linear-gradient(135deg, #C5A049, #D4AF37);
    color: #000000;
    padding: 15px 30px;
    border-radius: 50px;
    border: 1px solid var(--gold-bright);
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    animation: fadeInUp 1s ease 0.4s;
    animation-fill-mode: both;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.25);
}

.button-contact:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
}

/* Novo botão secundário (reagendar) */
.button-secondary {
    display: inline-block;
    background: #000000;
    color: var(--primary-color);
    padding: 15px 20px;
    border-radius: 50px;
    border: 1px solid var(--gold-bright);
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s all;
}

.appointment-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 16px;
}

.inline-services[hidden] { display: none; }
.inline-services {
    border: 1px solid var(--gold-bright);
    border-radius: 12px;
    padding: 8px;
    max-height: 240px;
    overflow-y: auto;
}
.inline-service-option {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 44px;
    padding: 8px;
    cursor: pointer;
}
.modal .inline-service-option input {
    width: auto;
    margin: 0;
}

.button-secondary:hover {
    background: var(--gold-bright);
    color: #000000;
}

/* ===== SERVICES & CARDS ===== */
.services,
#services {
    background-color: var(--bg-dark);
    color: var(--primary-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 5%;
}

.services-content h2 {
    text-transform: uppercase;
    text-align: center;
    font-size: 38px;
    margin-bottom: 14px;
    color: var(--primary-color);
}

.services-content p {
    line-height: 150%;
    margin-bottom: 24px;
    text-align: center;
    max-width: 780px;
    color: var(--text-light);
}

.haircuts {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    padding: 0 44px 34px 44px;
    color: var(--primary-color);
}

.haircut {
    flex: 1 1 calc(33.333% - 16px);
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #000000;
    border-radius: 8px;
    box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.7);
    overflow: hidden;
    border: 4px solid var(--gold-bright);
}

.haircut img {
    width: 100%;
    max-width: 354px;
    transition: transform 0.2s;
    cursor: pointer;
}

.haircut img:hover {
    transform: scale(1.2);
    z-index: 1;
}

.haircut-info {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 14px;
    background-color: #000000;
    color: var(--primary-color);
    border-top: 1px solid rgba(212, 175, 55, 0.3);
    z-index: 99;
}

.haircut-info strong {
    color: var(--primary-color);
    font-size: 1.05rem;
}

.haircut-info a {
    color: #000000;
    background-color: var(--primary-color);
    padding: 4px 8px;
    border-radius: 4px;
    border: 0;
    margin-top: 8px;
}

/* Botões lado a lado */
.btn-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 10px;
    justify-content: center;
}

.service-img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 4px 4px 0 0;
}
.descrição {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-top: 4px;
}

/* Mantém os quatro serviços com fotos e cartões no mesmo padrão. */
#services .haircuts {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: stretch;
    width: 100%;
    max-width: 1200px;
    padding: 0 0 34px;
}

#services .haircut {
    min-width: 0;
    justify-content: flex-start;
}

#services .service-img {
    display: block;
    width: 100%;
    max-width: none;
    height: auto;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    object-position: center;
    flex-shrink: 0;
}

#services .haircut-info {
    flex: 1;
    align-items: flex-start;
    text-align: left;
}

@media screen and (max-width: 1000px) {
    #services .haircuts {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media screen and (max-width: 480px) {
    #services .haircuts {
        grid-template-columns: minmax(0, 1fr);
        max-width: 354px;
    }
}

@media screen and (max-width: 700px) {
    .haircuts {
        flex-direction: column;
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 15px;
        padding: 0 14px 34px 14px;
    }

    .haircut {
        background: #000000;
        border-radius: 10px;
        border: 4px solid var(--gold-bright);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
        overflow: hidden;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }
}

/* ===== ANIMAÇÕES ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== CONTAINER & TÍTULOS ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    font-size: 2.0rem;
    margin-bottom: 3rem;
    color: var(--primary-color);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid var(--gold-bright);
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.15);
}

.service-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.service-card p {
    color: var(--text-light);
    line-height: 1.8;
}

/* ===== TESTIMONIALS ===== */
.testimonials {
    padding: 80px 5%;
    background: var(--bg-dark);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    background: #000000;
    padding: 2rem;
    border-radius: 15px;
    border: 2px solid var(--gold-bright);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
}

.stars {
    color: var(--gold-bright);
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.testimonial-text {
    font-style: italic;
    color: var(--text-light);
    margin-bottom: 1rem;
}

.testimonial-author {
    font-weight: 600;
    color: var(--primary-color);
}

/* ===== CTA SECTION ===== */
.cta-section {
    padding: 80px 5%;
    background: #000000;
    border-top: 1px solid rgba(212, 175, 55, 0.25);
    border-bottom: 1px solid rgba(212, 175, 55, 0.25);
}

.professional-section {
    padding: 80px 5%;
    background: var(--bg-dark);
    border-top: 1px solid rgba(212, 175, 55, 0.25);
    border-bottom: 1px solid rgba(212, 175, 55, 0.25);
}

.professional-content {
    max-width: 850px;
    margin: 0 auto;
    text-align: center;
    color: var(--text-light);
}

.professional-content h2 {
    margin-bottom: 0.75rem;
    color: var(--primary-color);
    font-size: 2rem;
}

.professional-content p {
    margin: 0 auto 1.25rem;
    font-size: 0.95rem;
    line-height: 1.8;
    text-align: justify;
}

.professional-content .professional-highlight,
.professional-content .professional-signature {
    color: var(--primary-color);
}

.professional-content .professional-signature {
    margin-top: 2rem;
    margin-bottom: 0;
}

.cta-section .cta-button {
    display: block;
    width: fit-content;
    max-width: 100%;
    margin: 0 auto;
    padding: 18px 36px;
    border: 2px solid #ffe5a0;
    background: linear-gradient(135deg, #ffe5a0, #d4af37);
    font-family: inherit;
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    font-weight: 700;
    cursor: pointer;
    animation: appointmentGlow 2.8s ease-in-out infinite;
    transition: transform 0.2s ease;
}

.cta-section .cta-button:hover {
    transform: translateY(-3px);
}

.cta-section .cta-button:focus-visible {
    outline: 3px solid #ffffff;
    outline-offset: 5px;
}

.cta-section .cta-button:active {
    transform: translateY(0) scale(0.98);
}

.cta-section .section-title {
    max-width: 850px;
    margin: 0 auto 1.5rem;
    color: #ffe5a0;
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: 700;
    line-height: 1.3;
    text-shadow: 0 2px 18px rgba(212, 175, 55, 0.25);
}

@keyframes appointmentGlow {
    0%, 100% { box-shadow: 0 4px 18px rgba(212, 175, 55, 0.3); }
    50% { box-shadow: 0 4px 30px rgba(212, 175, 55, 0.6); }
}

@media (prefers-reduced-motion: reduce) {
    .cta-section .cta-button {
        animation: none;
        transition: none;
        transform: none;
    }
}

.cta-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: #fff4dd;
    max-width: 800px;
    margin: 0 auto 2.5rem;
    line-height: 1.8;
}

.cta-content {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.whatsapp-button {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    background: #25d366;
    color: white;
    padding: 20px 50px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 600;
    transition: all 0.3s;
    box-shadow: 0 5px 20px rgba(37, 211, 102, 0.3);
    margin-bottom: 3rem;
}

.whatsapp-button:hover {
    background: #128c7e;
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(37, 211, 102, 0.4);
}

.whatsapp-button i {
    font-size: 1.8rem;
}

.contact-info {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--primary-color);
    font-weight: 500;
}

.info-item i {
    font-size: 1.5rem;
    color: var(--gold-bright);
}

/* ===== MAP / IFRAME ===== */
.iframe {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px 20px 20px;
    background: #000000;
}

.iframe-title {
    color: var(--primary-color);
    font-size: 2rem;
    letter-spacing: 0.5px;
}

iframe {
    display: block;
    width: 100%;
    /* Deixa o mapa escuro integrado ao tema */
    filter: invert(90%) hue-rotate(180deg) contrast(95%);
    border: none;
    border-top: 1px solid rgba(212, 175, 55, 0.4);
    border-bottom: 1px solid rgba(212, 175, 55, 0.4);
    background: #121010;
}

.location-actions {
    display: flex;
    justify-content: center;
    padding: 24px 20px 32px;
}

.location-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 48px;
    max-width: 100%;
    padding: 14px 24px;
    border: 1px solid var(--gold-bright);
    border-radius: 50px;
    background: var(--primary-color);
    color: var(--secondary-color);
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    box-shadow: 0 4px 18px rgba(197, 160, 73, .18);
    transition: background-color .2s, box-shadow .2s;
}

.location-link i { font-size: 1.5rem; flex-shrink: 0; }
.location-link:hover { background: var(--gold-bright); box-shadow: 0 6px 22px rgba(197, 160, 73, .3); }
.location-link:focus-visible { outline: 3px solid var(--text-light); outline-offset: 4px; }
@media (prefers-reduced-motion: reduce) { .location-link { transition: none; } }

/* ===== FOOTER ===== */
footer {
    background: #000000;
    color: var(--primary-color);
    border-top: 1px solid var(--gold-bright);
    padding: 40px 5%;
    text-align: center;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: var(--bg-dark);
    color: var(--gold-bright);
    border: 1px solid var(--gold-bright);
    border-radius: 50%;
    font-size: 1.3rem;
    transition: all 0.3s;
}

.social-links a:hover {
    background: var(--gold-bright);
    color: #000000;
    transform: translateY(-3px);
}

/* ===== WHATSAPP BUTTON ===== */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #25d366;
    color: white;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 2rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    z-index: 999;
    transition: all 0.3s;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    background: #128c7e;
}

/* ===== RESPONSIVIDADE MOBILE ===== */
@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        right: -100%;
        top: 70px;
        flex-direction: column;
        background: #000000;
        border-bottom: 1px solid var(--gold-bright);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.5);
        padding: 2rem 0;
    }

    .nav-links.active {
        right: 0;
    }

    .menu-toggle {
        display: block;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .services-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .cta-content {
        padding: 0 20px;
    }

    .whatsapp-button {
        padding: 15px 30px;
        font-size: 1rem;
    }

    .contact-info {
        gap: 2rem;
    }

    .info-item {
        font-size: 0.9rem;
    }
}

/* ===== MODAIS ===== */
.modal {
    display: none;
    position: fixed;
    z-index: 999;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    justify-content: center;
    align-items: center;
    padding: 16px;
}

.modal-content {
    background: #121010;
    color: var(--primary-color);
    border: 2px solid var(--gold-bright);
    width: 100%;
    max-width: 420px;
    border-radius: 12px;
    padding: 24px;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-family: 'Poppins', system-ui, -apple-system, Arial, sans-serif;
}

.modal-content h2 {
    margin-bottom: 12px;
    color: var(--primary-color);
    font-weight: 600;
}

.modal-content label {
    font-weight: bold;
    color: var(--primary-color);
}

.modal-content input,
.modal-content select,
.modal-content button {
    width: 100%;
    margin-top: 10px;
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid var(--gold-bright);
    font-size: 14px;
}

.modal-content input,
.modal-content select {
    background: #000000;
    color: var(--primary-color);
}

.modal-content input::placeholder {
    color: rgba(197, 160, 73, 0.6);
}

.modal-content button {
    border: 1px solid var(--gold-bright);
    background: var(--primary-color);
    color: #000000;
    cursor: pointer;
    font-weight: 600;
    transition: filter 0.2s;
}

.modal-content button:hover {
    filter: brightness(1.1);
}

#confirmarBtn {
    margin-top: 15px;
    background-color: var(--primary-color);
    color: #000000;
    border: 1px solid var(--gold-bright);
    padding: 10px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
}

#confirmarBtn[disabled] {
    opacity: 0.7;
    cursor: not-allowed;
}

.row-actions a {
    display: block;
    width: 100%;
    padding: 10px 0;
    margin-top: 8px;
    text-align: center;
    text-decoration: none;
    border-radius: 6px;
    background: var(--primary-color);
    color: #000000;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    border: 1px solid var(--gold-bright);
    transition: filter 0.3s ease;
}

.row-actions a:hover {
    filter: brightness(1.1);
}

.modal-content .close {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    position: absolute;
    right: 12px;
    top: 8px;
    font-size: 22px;
    cursor: pointer;
    color: var(--primary-color);
}

/* =================================================================
   MODAIS ESPECÍFICOS (Produtos e RA Club) — RESPONSIVOS
   ================================================================= */

#modalProdutos .modal-content,
#modalRAClub .modal-content {
    width: calc(100% - 32px);
    max-width: 520px;
    max-height: 88vh;
    overflow-y: auto;
    padding: 20px 18px 16px;
}

#modalProdutos .muted,
#modalRAClub .muted,
.muted {
    color: var(--text-light);
    font-size: 0.95rem;
}

#modalProdutos .prod-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 10px;
    margin: 8px 0;
}

#modalProdutos .prod-card {
    border: 1px solid var(--gold-bright);
    border-radius: 12px;
    padding: 12px;
    background: #000000;
    display: flex;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    transition: transform 0.12s, box-shadow 0.12s, border-color 0.12s;
}

#modalProdutos .prod-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(212, 175, 55, 0.15);
}

#modalProdutos .prod-card .p-name {
    font-weight: 600;
    color: var(--primary-color);
}

#modalProdutos .prod-card .p-price {
    color: var(--gold-bright);
    font-weight: 600;
}

#modalProdutos .prod-card.active {
    border-color: var(--gold-bright);
    box-shadow: 0 0 0 3px rgba(197, 160, 73, 0.25);
}

#modalProdutos .prod-total {
    display: flex;
    justify-content: flex-end;
    font-weight: 600;
    margin-top: 6px;
}

#modalProdutos .row-actions,
#modalRAClub .row-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 10px;
}

#modalProdutos .btn-secondary,
#modalRAClub .btn-secondary {
    background: #000000;
    color: var(--primary-color);
    border: 1px solid var(--gold-bright);
}

#modalRAClub .raclub-list {
    margin: 6px 0 8px 20px;
    line-height: 1.5;
    color: var(--text-light);
}

#modalRAClub .ra-form {
    display: grid;
    gap: 8px;
    margin-top: 8px;
}

#modalRAClub .ra-form.hidden,
.hidden {
    display: none !important;
}

@media (max-width: 600px) {
    #modalProdutos .modal-content,
    #modalRAClub .modal-content {
        max-width: 100%;
        border-radius: 12px;
        padding: 18px 14px;
    }

    #modalProdutos .prod-grid {
        grid-template-columns: 1fr;
    }

    #modalProdutos .row-actions,
    #modalRAClub .row-actions {
        flex-direction: column;
    }
}

@media (max-height: 680px) {
    #modalProdutos .modal-content,
    #modalRAClub .modal-content {
        max-height: 92vh;
    }
}

#modalProdutos,
#modalAssinatura {
    padding-top: calc(env(safe-area-inset-top, 0px) + 32px);
}

#modalProdutos .modal-content,
#modalAssinatura .modal-content {
    margin-top: 8px;
}

@media (max-width: 600px) {
    #modalProdutos,
    #modalAssinatura {
        padding-top: calc(env(safe-area-inset-top, 0px) + 40px);
    }

    #modalProdutos .modal-content,
    #modalAssinatura .modal-content {
        margin-top: 12px;
    }
}

/* ===== MODAL DE SERVIÇOS ===== */
#servicoModal .modal-content {
    border-radius: 18px;
    width: min(640px, 92vw);
    max-width: 640px;
    padding: 0;
    overflow: hidden;
    background: #121010;
    border: 2px solid var(--gold-bright);
}

.svc-header {
    padding: 14px 16px 8px;
    border-bottom: 1px solid rgba(212, 175, 55, 0.3);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.svc-title {
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--primary-color);
}

.svc-close {
    cursor: pointer;
    font-size: 1.6rem;
    line-height: 1;
    color: var(--primary-color);
}

.svc-search {
    padding: 0 16px 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.svc-list {
    max-height: 55vh;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
    background: #000000;
}

.svc-row {
    display: grid;
    grid-template-columns: 1fr 40px;
    align-items: center;
    gap: 12px;
    padding: 16px;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
    cursor: pointer;
    line-height: 1.15;
}

.svc-row:last-child {
    border-bottom: 0;
}

.svc-left {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.svc-name {
    font-weight: 600;
    font-size: 1.02rem;
    color: var(--primary-color);
    word-break: break-word;
}

.svc-muted {
    font-size: 0.95rem;
    color: var(--text-light);
}

.svc-radio {
    justify-self: center;
    width: 20px;
    height: 20px;
    margin: 0;
    accent-color: var(--gold-bright);
    cursor: pointer;
}

.svc-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    padding: 12px;
    border-top: 1px solid rgba(212, 175, 55, 0.3);
    background: #121010;
}

.svc-btn {
    padding: 12px 16px;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    border: 1px solid var(--gold-bright);
}

.svc-btn-ghost {
    background: #000000;
    color: var(--primary-color);
}

.svc-btn-dark {
    background: var(--primary-color);
    color: #000000;
}

@media (max-width: 420px) {
    .svc-name {
        font-size: 1rem;
    }

    .svc-muted {
        font-size: 0.9rem;
    }
}

/* ============================================================
   ==== BLOQUEIOS / FEEDBACK DE DATA (sem mudar HTML) =====
   ============================================================ */

.modal-content input[type="date"]:invalid {
    outline: none;
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15);
    animation: shakeX 0.18s 2;
}

.modal-content input[type="date"].date-bloqueada,
.modal-content input[type="date"].input-error {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15);
}

option[disabled].reservado,
.modal-content select option[disabled].reservado {
    background: #1f1f1f;
    color: #666666;
}

@keyframes shakeX {
    0% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-2px);
    }

    50% {
        transform: translateX(2px);
    }

    75% {
        transform: translateX(-2px);
    }

    100% {
        transform: translateX(0);
    }
}

/* Lista de resultados de reagendamento e resumo de confirmação */
.conf-resumo {
    display: grid;
    gap: 8px;
    margin: 10px 0;
    padding: 12px;
    background: #000000;
    border: 1px solid var(--gold-bright);
    border-radius: 8px;
}

.conf-resumo .line {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    font-size: 0.95rem;
    color: var(--text-light);
}

.conf-resumo .label {
    font-weight: 600;
    color: var(--primary-color);
}

.rea-lista {
    margin-top: 10px;
    display: grid;
    gap: 8px;
}

.rea-item {
    border: 1px solid var(--gold-bright);
    background: #000000;
    border-radius: 10px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.rea-item .rea-line {
    font-size: 0.95rem;
    color: var(--text-light);
}

.rea-item button {
    align-self: flex-end;
}
/* Cabeçalho, catálogo e portfólio */
.site-header { position: fixed; inset: 0 0 auto; z-index: 1000; background: #000; }
.site-header header { position: relative; }
.header-spacer { height: calc(clamp(180px, 28vw, 360px) + 73px); }
.site-header .banner-principal { height: clamp(180px, 28vw, 360px); transition: height .25s ease; }
.site-header .banner-img { transition: width .25s ease; }
.site-header.is-compact .banner-principal { height: 0; }
.site-header.is-compact .banner-img { width: 230px; height: 74px; object-fit: fill; }
.site-header.is-compact .banner-contour, .site-header.is-compact .banner-sparkles { display: none; }
.site-header.is-compact header { position: relative; width: 100%; height: 86px; }
.site-header.is-compact nav { height: 86px; padding: 0 3%; justify-content: space-between; gap: 24px; }
.nav-brand { display: none; flex-shrink: 0; width: 190px; line-height: 0; }
.nav-brand img { display: block; width: 100%; height: auto; }
.site-header.is-compact .nav-brand { display: block; }
section[id], article[id] { scroll-margin-top: 100px; }
.services-nav { position: relative; }
.services-nav-heading { display: flex; align-items: center; }
.services-nav-heading > a { padding-right: 2px; }
.services-toggle, .menu-toggle { background: transparent; border: 0; color: var(--primary-color); cursor: pointer; min-width: 44px; min-height: 44px; }
.services-submenu { display: none; position: absolute; top: 100%; left: 0; width: 310px; padding: 10px; list-style: none; background: #151212; border: 1px solid var(--primary-color); border-radius: 12px; box-shadow: 0 15px 35px #0008; max-height: 65vh; overflow-y: auto; }
.services-submenu li a { display: block; font-size: .83rem; padding: 10px 12px; border-radius: 6px; }
.services-nav:hover .services-submenu, .services-nav:focus-within .services-submenu, .services-nav.is-open .services-submenu { display: block; }
.services-nav.is-closed .services-submenu { display: none; }
a:focus-visible, button:focus-visible, video:focus-visible { outline: 2px solid #f3d57b; outline-offset: 4px; }
.service-catalog { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 26px; max-width: 1200px; margin: 0 auto; }
.service-catalog .haircut { width: auto; min-width: 0; }
.service-catalog .haircut-info { display: flex; flex-direction: column; align-items: stretch; gap: 12px; height: auto; padding: 24px; }
.service-catalog h3 { font-size: 1.05rem; }
.service-catalog .descrição { color: var(--text-light); font-size: .9rem; }
.service-catalog .service-img { width: 100%; height: 240px; object-fit: cover; }
.service-book { color: var(--primary-color); font-size: .85rem; text-underline-offset: 5px; }
.professional-layout { display: grid; grid-template-columns: minmax(230px, .75fr) 1.25fr; align-items: center; gap: 60px; max-width: 1100px; margin: auto; }
.professional-photo { margin: 0; }
.professional-portrait { display: block; width: 100%; height: auto; aspect-ratio: 3/4; object-fit: cover; border: 1px solid var(--primary-color); border-radius: 160px 160px 20px 20px; }
.professional-photo figcaption { text-align: center; font-size: .8rem; margin-top: 16px; }
.portfolio-section { padding: 80px 5%; background: #0c0b0b; text-align: center; }
.section-eyebrow { letter-spacing: 3px; font-size: .75rem; color: var(--primary-color); margin-bottom: 12px; }
.portfolio-carousel { display: grid; grid-template-columns: 48px minmax(0, 1fr) 48px; align-items: center; gap: 16px; margin-top: 32px; }
.portfolio-track { display: flex; gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin; scrollbar-color: var(--primary-color) var(--bg-card); padding: 4px 0 16px; }
.portfolio-card { flex: 0 0 calc((100% - 48px) / 3); min-width: 0; margin: 0; overflow: hidden; border: 1px solid #c5a04944; border-radius: 14px; background: var(--bg-card); scroll-snap-align: start; }
.portfolio-card img, .portfolio-card video { display: block; width: 100%; height: auto; aspect-ratio: 4/5; object-fit: cover; }
.portfolio-card video { object-fit: contain; background: #000; }
.portfolio-arrow { display: grid; place-items: center; width: 48px; height: 48px; padding: 0; border: 1px solid var(--primary-color); border-radius: 50%; background: var(--primary-color); color: var(--secondary-color); font: 36px/1 'Poppins', sans-serif; cursor: pointer; }
.portfolio-arrow:hover:not(:disabled) { background: var(--gold-bright); }
.portfolio-arrow:disabled { opacity: .35; cursor: default; }
.portfolio-arrow:focus-visible, .portfolio-track:focus-visible { outline: 3px solid var(--text-light); outline-offset: 4px; }
@media (max-width: 768px) { .portfolio-card { flex-basis: calc((100% - 16px) / 2); } .portfolio-track { gap: 16px; } .portfolio-carousel { gap: 8px; grid-template-columns: 44px minmax(0, 1fr) 44px; } .portfolio-arrow { width: 44px; height: 44px; } }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.portfolio-intro { max-width: 480px; margin: 0 auto; color: var(--text-light); line-height: 1.7; }
.portfolio-track { scrollbar-width: none; cursor: grab; overscroll-behavior-x: contain; border-radius: 18px; }
.portfolio-track::-webkit-scrollbar { display: none; }
.portfolio-track.is-continuous { scroll-snap-type: none; }
.portfolio-autoplay { min-height: 44px; margin-top: 8px; padding: 8px 20px; border: 1px solid var(--primary-color); border-radius: 24px; background: transparent; color: var(--primary-color); font: inherit; font-size: .8rem; cursor: pointer; }
.portfolio-autoplay:focus-visible { outline: 2px solid var(--text-light); outline-offset: 4px; }
.portfolio-track.is-dragging { cursor: grabbing; scroll-snap-type: none; user-select: none; }
.portfolio-card { border-radius: 18px; position: relative; }
.portfolio-card img { transition: transform 280ms ease; }
.portfolio-arrow { background: transparent; color: var(--primary-color); transition: background 200ms ease, color 200ms ease; }
.portfolio-arrow:hover:not(:disabled) { color: var(--secondary-color); }
.portfolio-pagination { display: flex; justify-content: center; flex-wrap: wrap; gap: 4px; margin: 12px 0 0; padding: 0; border: 0; min-inline-size: 0; }
.portfolio-dot { display: grid; place-items: center; width: 44px; height: 44px; border: 0; padding: 0; background: transparent; cursor: pointer; }
.portfolio-dot[hidden] { display: none; }
.portfolio-dot::after { content: ''; width: 6px; height: 6px; border-radius: 20px; background: #9b8b68; transition: width 200ms ease, background 200ms ease; }
.portfolio-dot[aria-current="true"]::after { width: 24px; background: var(--primary-color); }
.portfolio-dot:focus-visible { outline: 2px solid var(--primary-color); outline-offset: -3px; border-radius: 50%; }
@media (hover: hover) { .portfolio-card:hover img { transform: scale(1.035); } }
@media (max-width: 480px) {
 .portfolio-carousel { grid-template-columns: minmax(0, 1fr) 44px 44px; gap: 12px; }
 .portfolio-track { grid-column: 1 / -1; grid-row: 1; gap: 12px; }
 .portfolio-card { flex-basis: 85%; }
 .portfolio-prev { grid-column: 2; }
 .portfolio-next { grid-column: 3; }
 .portfolio-pagination { margin-top: 4px; gap: 0; }
 .portfolio-dot { width: 44px; }
}
@media (prefers-reduced-motion: reduce) { .portfolio-dot::after, .portfolio-arrow { transition: none; } }
@media (max-width: 1100px) and (min-width: 769px) { .nav-links { gap: 0; } .nav-links a { padding-left: 10px; padding-right: 10px; font-size: .8rem; } }
@media (max-width: 768px) {
 .site-header nav { min-height: 60px; justify-content: flex-end; }
 .header-spacer { height: calc(clamp(180px, 28vw, 360px) + 61px); }
 .site-header.is-compact header { width: 100%; }
 .nav-links { top: calc(clamp(180px, 28vw, 360px) + 61px); visibility: hidden; max-height: 65vh; overflow-y: auto; gap: 8px; padding: 16px; }
 .nav-links.active { visibility: visible; }
 .site-header.is-compact .nav-links { top: 86px; }
 .services-submenu { position: static; width: min(310px, 85vw); margin: 0 auto; max-height: 36vh; text-align: left; }
 .services-nav-heading { justify-content: center; }
 .service-catalog { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
 .professional-layout { grid-template-columns: 1fr; gap: 28px; }
 .professional-photo { width: min(310px,100%); margin: auto; }

}
@media (max-width: 480px) { .service-catalog { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .site-header *, .portfolio-card img { transition: none; } }
#services .service-catalog { grid-template-columns: repeat(3,minmax(0,1fr)); }
#services .service-catalog .service-img { height: 260px; aspect-ratio: auto; }
.service-description { color: var(--text-light); font-size: .9rem; }
.modal { z-index: 1100; }
@media (max-width: 768px) { #services .service-catalog { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media (max-width: 480px) { #services .service-catalog { grid-template-columns: 1fr; } }
/* Catálogo de serviços aberto pelo menu */
.services-open { display: inline-block; padding: 8px 2px 8px 18px; min-height: 44px; background: transparent; border: 0; border-radius: 25px; color: var(--primary-color); font: 500 .95rem 'Poppins', sans-serif; letter-spacing: .3px; cursor: pointer; }
.services-open:hover { background: var(--primary-color); color: #000; }
#services-dialog { position: fixed; inset: 0; margin: auto; width: min(1180px,94vw); max-height: 88dvh; padding: 30px; border: 1px solid var(--primary-color); border-radius: 20px; background: var(--bg-dark); color: var(--text-light); overscroll-behavior: contain; }
#services-dialog::backdrop { background: #000c; backdrop-filter: blur(5px); }
body.services-dialog-active { overflow: hidden; }
.services-dialog-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; }
.services-dialog-heading h2 { color: var(--primary-color); font-size: 2rem; }
.services-dialog-close { position: sticky; top: 0; flex-shrink: 0; border: 1px solid var(--primary-color); border-radius: 50%; width: 44px; height: 44px; background: #000; color: var(--primary-color); font-size: 28px; cursor: pointer; }
.services-dialog-intro { margin: 16px 0 26px; color: var(--text-light); font-size: .9rem; }
.services-dialog-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 24px; }
.services-dialog-grid .haircut { min-width: 0; width: 100%; display: flex; flex-direction: column; background: var(--bg-card); border: 1px solid #c5a04955; border-radius: 12px; overflow: hidden; }
.services-dialog-grid .service-img { display: block; width: 100%; height: 250px; object-fit: cover; }
.services-dialog-grid .haircut-info { flex: 1; align-items: stretch; text-align: left; gap: 14px; padding: 22px; }
.services-dialog-grid h3 { color: var(--primary-color); }
.haircut-info a.service-source { padding: 0; margin: 0; background: none; color: var(--primary-color); font-size: .75rem; }
.services-dialog-grid .service-book { margin-top: auto; text-align: center; padding: 10px; }
@media (max-width: 1000px) { .services-dialog-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media (max-width: 768px) { .services-open { padding-left: 18px; } }
@media (max-width: 580px) { #services-dialog { padding: 20px; max-height: 92dvh; } .services-dialog-grid { grid-template-columns: 1fr; } .services-dialog-heading h2 { font-size: 1.5rem; } }
.services-dialog-grid.single-service { grid-template-columns: 1fr; }
.services-dialog-grid.single-service .haircut { display: grid; grid-template-columns: 1fr 1fr; }
.services-dialog-grid.single-service .service-img { height: 100%; min-height: 360px; object-fit: contain; background: #000; }
@media (max-width: 580px) { .services-dialog-grid.single-service .haircut { grid-template-columns: 1fr; } .services-dialog-grid.single-service .service-img { height: 280px; min-height: 0; } }
/* Menu: serviços oferecidos e referências de formatos em abas separadas. */
.formats-open { display: inline-block; padding: 8px 12px; min-height: 44px; border: 0; border-radius: 25px; background: transparent; color: var(--primary-color); font: 500 .85rem 'Poppins', sans-serif; letter-spacing: .3px; white-space: nowrap; cursor: pointer; }
.formats-open:hover { background: var(--primary-color); color: #000; }
#services .service-catalog { grid-template-columns: repeat(4,minmax(0,1fr)); }
@media (min-width: 769px) { .site-header.is-compact .nav-links { gap: 0; } .site-header.is-compact .nav-links > li > a { padding: 8px 10px; font-size: .8rem; } .site-header.is-compact nav { gap: 12px; } }
@media (max-width: 1100px) and (min-width: 769px) { .site-header.is-compact .nav-brand { width: 140px; } .site-header.is-compact nav { padding: 0 12px; gap: 8px; } .formats-open { padding: 8px; font-size: .75rem; } .services-open { padding-left: 8px; font-size: .8rem; } .site-header.is-compact .nav-links > li > a { padding: 8px 6px; font-size: .72rem; } .services-toggle { min-width: 32px; } }
@media (max-width: 1000px) { #services .service-catalog { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media (max-width: 480px) { #services .service-catalog { grid-template-columns: 1fr; } }
/* Lista de formatos e estilos */
.formats-nav { position: relative; }
.formats-nav-heading { display: flex; align-items: center; }
.formats-nav-heading .formats-open { padding-right: 2px; }
.formats-toggle { min-width: 32px; min-height: 44px; background: transparent; border: 0; color: var(--primary-color); cursor: pointer; }
.formats-submenu { display: none; position: absolute; top: 100%; left: 0; width: 230px; padding: 10px; list-style: none; background: #151212; border: 1px solid var(--primary-color); border-radius: 12px; box-shadow: 0 15px 35px #0008; max-height: 65vh; overflow-y: auto; }
.formats-submenu li a { display: block; font-size: .83rem; padding: 10px 12px; border-radius: 6px; }
.formats-nav:hover .formats-submenu, .formats-nav:focus-within .formats-submenu, .formats-nav.is-open .formats-submenu { display: block; }
.formats-nav.is-closed .formats-submenu { display: none; }
@media (max-width: 768px) {
 .formats-nav-heading { justify-content: center; }
 .formats-toggle { min-width: 44px; }
 .formats-submenu { position: static; width: min(310px,85vw); max-height: 36vh; margin: 0 auto; text-align: left; }
}
#formatoAgenda { margin-top: 16px; padding: 14px; border: 1px solid #c5a04966; border-radius: 10px; }
#formatoAgenda[hidden], #formatoAgendaOpcoes[hidden] { display: none; }

/* Mantém os formulários acessíveis em telas baixas e com teclado aberto. */
.modal-content {
    max-height: calc(100vh - 32px);
    max-height: calc(100dvh - 32px);
    overflow-y: auto;
    overscroll-behavior: contain;
}

.modal-content > * {
    flex-shrink: 0;
}

.modal-content h2 {
    padding-right: 24px;
}

.modal-content input:not([type="radio"]),
.modal-content select,
.modal-content button {
    min-height: 44px;
    font-size: 16px;
}

@media (max-width: 768px) {
    .nav-links {
        max-height: calc(100dvh - clamp(180px, 28vw, 360px) - 61px);
        overscroll-behavior: contain;
    }

    .site-header.is-compact .nav-links {
        max-height: calc(100dvh - 86px);
    }
}
