/* Arquivo: style_vitrine.css */
/* Estilos para a Vitrine Digital (Landing Page do Cliente) - TEMA DARK/NETFLIX */

/* --- Variáveis e Configurações Base (Dark Mode) --- */
:root {
    /* Mantém as cores primárias do PHP */
    --primary-color: #3B82F6; /* Será ajustado dinamicamente no PHP (Cor de Destaque) */
    --secondary-color: #93C5FD; /* Será ajustado dinamicamente no PHP (Cor de Hover) */
    
    /* Cores Dark Mode (Inspiração Netflix/Streaming) */
    --text-color: #F9FAFB; /* Texto muito claro */
    --text-color-light: #9CA3AF; /* Cinza para descrições */
    --text-color-dark: #D1D5DB; /* Subtítulos */
    --background-color: #111827; /* Fundo principal Dark: Quase preto */
    --card-bg: #1F2937; /* Fundo dos cards/modal: Cinza escuro */
    --border-color: #374151; /* Borda/Divisória sutil */
    --success-color: #10B981; /* Green */
    --danger-color: #EF4444; /* Red */
    --warning-color: #F59E0B; /* Orange-Yellow */
    --input-text-dark: #000000; 
}

/* Base */
body {
    font-family: 'Inter', sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    transition: all 0.5s ease;
    scroll-behavior: smooth;
}

/* Animações e Efeitos */
.transition-all-ease {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); 
}
.shadow-lg-custom {
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4); 
}
.btn-primary:not(:disabled) {
    background-color: var(--primary-color);
    color: var(--background-color); 
    font-weight: 800;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
}
.btn-primary:not(:disabled):hover {
    background-color: var(--secondary-color); 
    transform: translateY(-3px); 
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.3);
}
.btn-secondary {
    background-color: var(--card-bg);
    color: var(--text-color-dark);
    border: 1px solid var(--border-color);
    font-weight: 600;
    transition: all 0.2s ease;
}
.btn-secondary:hover {
    background-color: var(--border-color);
    transform: translateY(-1px);
    color: var(--text-color);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}
.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    background-color: var(--primary-color) !important; 
    color: var(--background-color) !important; 
    transform: none !important;
    box-shadow: none !important;
}

/* --- Layout Principal --- */
#vitrine-page {
    min-height: 100vh;
}
.section-title {
    font-size: 3rem; 
    font-weight: 900;
    text-align: center;
    color: var(--text-color); 
    margin-bottom: 0.5rem;
    padding-top: 4rem; 
    position: relative;
    letter-spacing: -1px;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}
.section-title span {
    color: var(--primary-color); 
}
.section-subtitle {
    font-size: 1.5rem; 
    color: var(--text-color-light); 
    text-align: center;
    margin-bottom: 4rem;
    font-weight: 300;
}

/* --- 1. Banner (Capa Imersiva) --- */
.banner {
    width: 100%;
    height: 600px; 
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-end;
    padding: 50px 8%; 
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5); 
}
.banner::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background: linear-gradient(to top, var(--background-color) 20%, transparent 100%); 
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    width: 100%;
    color: white;
    z-index: 10;
}

.profile-area {
    display: flex;
    align-items: center;
    gap: 30px;
    background: rgba(0, 0, 0, 0.4); 
    padding: 25px 35px;
    border-radius: 15px;
    backdrop-filter: blur(10px); 
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.profile-logo {
    width: 110px; 
    height: 110px;
    border-radius: 50%;
    object-fit: cover;
    border: 6px solid var(--primary-color); 
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.6);
}

.text-area h1 {
    font-size: 3.5rem; 
    font-weight: 900;
    line-height: 1.1;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.8);
}
.location-text {
    font-size: 1.3rem;
    font-weight: 500;
    margin-top: 10px;
    color: var(--text-color-dark);
}
.status-open {
    font-size: 1.1rem;
    color: var(--success-color);
    font-weight: 700;
    margin-top: 8px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}
.status-open i {
    margin-right: 8px;
}

.action-buttons-group {
    display: flex;
    gap: 25px;
    align-items: center;
}

.social-btn {
    background: var(--card-bg); 
    color: var(--primary-color);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: background-color 0.3s ease, transform 0.2s ease, color 0.3s ease;
    border: 1px solid var(--border-color);
}
.social-btn:hover {
    background: var(--primary-color);
    color: white;
    transform: scale(1.1);
}

.action-buttons-group .btn-primary {
    padding: 20px 40px; 
    border-radius: 12px;
    font-size: 1.2rem;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

/* Responsividade do Banner */
@media (max-width: 900px) {
    .banner {
        height: 450px;
        padding: 30px 5%;
    }
    .text-area h1 {
        font-size: 2.5rem;
    }
    .location-text {
        font-size: 1.1rem;
    }
    .profile-logo {
        width: 80px;
        height: 80px;
    }
    .profile-area {
        padding: 20px;
        gap: 20px;
    }
}
@media (max-width: 768px) {
    .banner {
        height: 400px;
        align-items: center;
    }
    .header-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .profile-area {
        flex-direction: column;
        margin-bottom: 20px;
    }
    .text-area h1 {
        font-size: 2rem;
    }
    .action-buttons-group {
        width: 100%;
    }
}

/* --- 2. Seção de Serviços (Grid Estilo Catálogo Netflix) --- */
.services-section {
    padding: 80px 8%; 
    background-color: var(--background-color);
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); 
    gap: 35px;
}

.service-card {
    background-color: var(--card-bg);
    border-radius: 15px; 
    overflow: hidden;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.4), 0 5px 15px rgba(0, 0, 0, 0.3); 
    border: 1px solid var(--border-color); 
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease, border-color 0.4s ease;
    cursor: pointer;
}
.service-card:hover {
    transform: scale(1.05); 
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6), 0 0 0 4px var(--secondary-color); 
    border-color: var(--secondary-color);
    z-index: 5; 
}
.service-card.selected {
    border: 3px solid var(--success-color) !important;
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.6); 
    transform: scale(1.02); 
    background-color: rgba(16, 185, 129, 0.1);
}

.service-image {
    width: 100%;
    height: 180px; 
    object-fit: cover;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}
.service-card:hover .service-image {
    opacity: 1;
}

.service-info {
    padding: 20px;
    display: flex;
    flex-direction: column;
}

.service-name {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-color);
    margin-bottom: 5px;
}
.service-duration {
    font-size: 1rem;
    color: var(--text-color-light);
    margin-bottom: 10px;
    font-weight: 500;
}
.service-duration i {
    color: var(--primary-color);
    margin-right: 5px;
}
.service-price {
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--success-color);
    margin-bottom: 15px;
    letter-spacing: -0.5px;
}
.service-description {
    font-size: 1rem;
    color: var(--text-color-light); 
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}
.service-description .read-more {
    font-weight: 600;
    color: var(--secondary-color);
}

.select-service-btn {
    padding: 14px 15px;
    border-radius: 10px;
    font-size: 1.1rem;
}

@media (max-width: 600px) {
    .service-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    .service-image {
        height: 150px;
    }
}


/* --- 3. Seção de Localização --- */
.location-section {
    padding: 80px 8%;
    background-color: var(--background-color);
}
.map-container {
    width: 100%;
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}

/* --- 4. Seção de Comentários --- */
.reviews-section {
    padding: 80px 8%;
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.review-card {
    background-color: var(--card-bg);
    padding: 30px; 
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    border-left: 5px solid var(--warning-color); 
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.review-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.4);
}

.review-stars {
    font-size: 1.8rem;
    color: var(--warning-color); 
    margin-bottom: 15px;
}
.review-comment {
    font-size: 1.1rem;
    font-style: italic;
    color: var(--text-color-dark);
    line-height: 1.7;
    margin-bottom: 20px;
}
.review-client {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary-color);
    border-top: 1px dashed var(--border-color);
    padding-top: 15px;
}

/* --- 5. Anúncio/Contato (Bottom Banner) --- */
.contact-banner {
    padding: 50px 8%;
    background: linear-gradient(135deg, var(--success-color) 0%, #059267 100%);
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.5);
}

.contact-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-text {
    flex-grow: 1;
}

.contact-text h3 {
    font-size: 2rem;
    line-height: 1.2;
    font-weight: 900;
}

.whatsapp-btn {
    padding: 18px 35px;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: 700;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    flex-shrink: 0;
    background-color: #25D366; 
}
.whatsapp-btn:hover {
     background-color: #128C7E !important; 
}


@media (max-width: 600px) {
    .contact-banner {
        padding: 40px 5%;
    }
    .contact-content {
        flex-direction: column;
        text-align: center;
    }
    .contact-text {
        margin-bottom: 25px;
    }
    .contact-text h3 {
        font-size: 1.5rem;
    }
    .whatsapp-btn {
        width: 100%;
        font-size: 1rem;
    }
}

/* --- Estilos de Modal (Agendamento) --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(17, 24, 39, 0.95); 
    backdrop-filter: blur(12px); 
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 50;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}
.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}
.modal-content {
    background-color: var(--card-bg); 
    border-radius: 20px; 
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.9);
    animation: zoomIn 0.5s cubic-bezier(0.2, 0.8, 0.4, 1.2); 
    max-height: 95vh; 
    overflow-y: auto;
    width: 95%;
    max-width: 950px; 
}
@keyframes zoomIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}
/* Scrollbar customizada para o modal (Webkit) */
.modal-content::-webkit-scrollbar {
    width: 8px;
}
.modal-content::-webkit-scrollbar-thumb {
    background-color: var(--primary-color);
    border-radius: 4px;
}
.modal-content::-webkit-scrollbar-track {
    background-color: var(--border-color);
}
.close-modal-btn {
    color: var(--text-color-light) !important;
    transition: color 0.2s ease, transform 0.2s ease;
}
.close-modal-btn:hover {
    color: var(--danger-color) !important;
    transform: rotate(90deg);
}


/* Estilos dos Steps (Navegação superior - LINHA DO TEMPO) */
#agendamento-steps {
    display: flex;
    justify-content: space-between;
    width: 100%;
    max-width: 800px; 
    margin: 0 auto 50px auto; 
    position: relative;
    padding: 0 20px;
    padding-bottom: 25px; 
}
#agendamento-steps::before {
    content: '';
    position: absolute;
    top: 50px; 
    left: 20px;
    right: 20px;
    height: 4px; 
    background-color: var(--border-color);
    z-index: 1;
    border-radius: 2px;
}
/* Linha de Progresso */
#agendamento-steps::after {
    content: '';
    position: absolute;
    top: 50px; 
    left: 20px;
    height: 4px;
    background-color: var(--primary-color);
    z-index: 1;
    width: 0%; 
    transition: width 0.4s ease-in-out;
    border-radius: 2px;
}


.step-wrapper {
    position: relative;
    text-align: center;
}

.step {
    width: 50px; 
    height: 50px;
    border-radius: 50%;
    background-color: var(--border-color);
    color: var(--text-color-dark);
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 700;
    font-size: 1.1rem;
    z-index: 2;
    border: 4px solid var(--card-bg); 
    box-shadow: 0 0 0 2px var(--border-color);
    transition: all 0.3s ease;
    position: relative; 
    top: 25px; 
}
.step.active {
    background-color: var(--primary-color);
    color: var(--background-color);
    box-shadow: 0 0 0 4px var(--secondary-color);
    transform: scale(1.1);
}
.step.completed {
    background-color: var(--success-color);
    color: var(--background-color);
    box-shadow: 0 0 0 4px var(--success-color);
}
/* Estilo para a descrição do step */
.step-text {
    position: absolute;
    top: -15px; 
    left: 50%;
    transform: translateX(-50%);
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-color-dark);
    white-space: nowrap;
    transition: color 0.3s ease;
}
.step-wrapper.active .step-text {
    color: var(--primary-color);
}
.step-wrapper.completed .step-text {
    color: var(--success-color);
}

/* Estilos para a Etapa 1 (Cards de Serviço no Modal - Carrinho) */
.service-card-modal {
    background-color: var(--background-color); 
    border-radius: 10px;
    border: 1px solid var(--border-color);
    transition: all 0.2s ease;
    cursor: pointer;
    overflow: hidden;
    position: relative;
    height: 100%;
}
.service-card-modal:hover {
    border-color: var(--primary-color);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}
.service-card-modal.selected {
    border-color: var(--success-color);
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.6), 0 0 5px rgba(16, 185, 129, 0.4);
    background-color: rgba(16, 185, 129, 0.15); 
    transform: translateY(-2px); 
}
.service-card-modal.selected::after {
    content: 'PRINCIPAL';
    position: absolute;
    top: 0;
    right: 0;
    background-color: var(--success-color);
    color: white;
    font-size: 0.8rem; 
    font-weight: 700;
    padding: 6px 12px;
    border-bottom-left-radius: 10px;
    z-index: 10;
}

/* Estilos para a Etapa 2 (Horários) */
#horarios-disponiveis {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 10px;
    max-height: 300px; 
    overflow-y: auto;
}
.horario-btn {
    border: 1px solid var(--secondary-color) !important;
    color: var(--text-color-dark) !important;
    background-color: var(--card-bg) !important; 
    padding: 10px 15px !important;
    border-radius: 8px !important;
    transition: all 0.2s ease !important;
    font-weight: 600 !important;
}
.horario-btn:hover {
    background-color: var(--secondary-color) !important;
    color: var(--background-color) !important; 
}
.horario-btn.selected-time {
    background-color: var(--success-color) !important;
    border-color: var(--success-color) !important;
    color: white !important;
    font-weight: 700 !important;
    transform: scale(1.05);
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.8);
}

/* Estilo de Inputs na modal */
.form-input {
    background-color: var(--background-color);
    border: 1px solid var(--border-color);
    padding: 0.75rem;
    border-radius: 0.5rem;
    width: 100%;
    color: var(--text-color);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.form-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.3); 
    outline: none;
}

/* * CORREÇÃO CRÍTICA PARA A ETAPA 2 (DATA/HORÁRIO)
* O cliente quer o texto preto (LEGÍVEL) nos painéis de Data e Horário.
* E o ícone de calendário branco.
*/
#step-2-data .bg-gray-50 label,
#step-2-data .bg-gray-50 p {
    /* Força o texto a ser preto (#000000) para alto contraste */
    color: #000000 !important; 
}

/* Corrigindo a cor do PLACEHOLDER do Horário Disponível */
#horario-placeholder {
    color: #000000 !important; /* Força a cor preta */
}

/* Corrigindo o ícone de calendário (Data) no input (ele é um ícone nativo, mas o CSS atinge o label) */
/* Se a imagem que você viu tiver o ícone customizado, o ajuste é via Webkit/CSS. 
Como é nativo, vou garantir que o texto do input em si use a cor correta (preto).
*/
#agendamento-data {
    color: #000000 !important; /* Texto da data selecionada em preto */
    /* Fundo do input da data em branco, se estiver dark */
    background-color: #FFFFFF !important; 
}

/* Ícone de Calendário Branco */
/* Não temos um ícone FA no label da data, mas o ícone de cabeçalho da Etapa 2 deve ser branco */
#step-2-data h4 .fa-calendar-day {
     color: var(--text-color) !important; /* Cor branca para o ícone */
}

/* Estilo para o bloco de duração/serviço */
.duration-info-block {
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--background-color); 
    padding: 18px 25px; 
    border-radius: 10px;
    font-weight: 600;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
}
.duration-info-block span {
    font-weight: 900;
}

/* Estilo para os Opcionais (Etapa 3) */
.opcional-checkbox:checked + label {
    font-weight: 700;
    color: var(--primary-color);
}
.opcional-checkbox:checked + label span {
     color: var(--success-color);
}
.opcional-checkbox {
    color: var(--success-color) !important;
    border-color: var(--border-color) !important;
    background-color: var(--card-bg) !important;
}

/* Estilos para a Etapa 4 (Revisão) */
#rev-total-previsto {
    font-size: 4rem; 
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.4);
}

/* Rodapé do Modal */
#agendamento-footer {
    border-color: var(--border-color);
}
#agendamento-footer > div {
    display: flex;
    align-items: baseline;
    gap: 10px;
}
#agendamento-footer h5 {
    color: var(--text-color);
}
#agendamento-footer .text-gray-600 {
    color: var(--text-color-light);
}


/* Ajustes de responsividade para o modal */
@media (max-width: 640px) {
    .modal-content {
        padding: 20px;
        max-height: 100vh;
        border-radius: 0;
    }
    #agendamento-steps {
        max-width: 100%;
        padding: 0 10px;
        margin-bottom: 20px; 
    }
    .step-wrapper {
        flex: 1; 
    }
    .step {
        width: 30px;
        height: 30px;
        font-size: 0.8rem;
        top: 25px; 
        left: 50%;
        transform: translateX(-50%);
        position: absolute; 
    }
    .step-text {
        font-size: 0.75rem;
        top: 0; 
        left: 50%;
        transform: translateX(-50%);
    }
    #agendamento-steps::before, #agendamento-steps::after {
        left: 10px;
        right: 10px;
        top: 40px; 
    }
    
    /* Etapa 2: Reduz o layout de data e hora para coluna única */
    #step-2-data .grid-cols-1.md\:grid-cols-2 {
        grid-template-columns: 1fr;
    }
    /* Etapa 3: Reduz o layout de contato e opcionais para coluna única */
    #step-3-contato .grid-cols-1.md\:grid-cols-3,
    #step-3-contato .grid-cols-1.sm\:grid-cols-2.lg\:grid-cols-3 {
        grid-template-columns: 1fr;
    }
    
    /* Rodapé do Modal */
    #agendamento-footer {
        flex-direction: column-reverse; 
        gap: 15px;
        align-items: stretch;
    }
    #agendamento-footer button {
        width: 100%;
        padding: 15px 10px; 
    }
    #agendamento-footer > div { 
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
    }
    #agendamento-footer h5 {
        font-size: 2rem;
    }
    
    /* Etapa 4: Revisão */
    #step-4-revisao .grid-cols-1.md\:grid-cols-2 {
        grid-template-columns: 1fr;
    }
    .duration-info-block {
         flex-direction: column;
         align-items: flex-start;
         gap: 5px;
    }
    .duration-info-block span {
        text-align: left;
    }
}

/* Utilitário de Scrollbar para Webkit (Chrome, Safari) */
.custom-scrollbar::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
.custom-scrollbar::-webkit-scrollbar-thumb {
    background-color: var(--secondary-color);
    border-radius: 3px;
}
.custom-scrollbar::-webkit-scrollbar-track {
    background-color: var(--border-color);
}