/*
 * ARQUIVO ÚNICO: ./assets/css/style.css
 * ESTILOS GLOBAIS, INDEX, AGENDAMENTO, SERVIÇOS, CONTATO, DEPOIMENTOS, DICAS E PRODUTOS.
 * OTIMIZADO PARA RESPONSIVIDADE (>= 300px) & CONTRASTE DARK/LIGHT
 */

/* === VARIÁVEIS DE COR === */
:root {
    --primary-color: #735A33;
    --secondary-color: #4B3923;
    --bg-body: #1e1d1d;
    --bg-card: #FFFFFF;
    --bg-nav: #e6c099;
    --gray-light: #D9D9D9;
    --text-light: #F7ECE0;
}

/* === RESET BÁSICO E FLUIDEZ === */
* {
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', Arial, sans-serif;
    background-color: var(--bg-body);
    color: var(--secondary-color);
    margin: 0;
    padding: 0;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

img, iframe {
    max-width: 100%;
    height: auto;
    display: block;
}

/* === TIPOGRAFIA === */
h1, h2, h3 {
    font-family: 'Ruda', sans-serif;
    line-height: 1.2;
    margin-bottom: 0.5em;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s;
}

a:hover {
    color: var(--secondary-color);
}

/* === SPLASH SCREEN (INDEX) === */
#splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--bg-body) 0%, var(--secondary-color) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease-out;
}

#splash-screen.fade-out {
    opacity: 0;
}

#splash-logo img {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    border: 5px solid var(--primary-color);
    animation: pulse 1.5s infinite;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* === MAIN CONTENT === */
.main-content {
    opacity: 0;
    transition: opacity 0.5s ease-in;
}

.main-content.loaded {
    opacity: 1;
}

/* === CONTAINERS E CARDS (UI CONTRAST) === */
.service-item, 
.contact-section, 
.testimonial-card, 
.tip-post, 
.product-card,
fieldset,
#booking-form,
#confirmation-message,
.summary {
    background-color: var(--bg-card);
    color: var(--secondary-color);
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    border: 1px solid rgba(255,255,255,0.05);
    margin-bottom: 20px;
    padding: 20px;
}

/* Títulos dentro dos cards */
.service-item h3, 
.contact-section h2, 
.testimonial-card h3,
.product-card h3,
legend,
.summary h3 {
    color: var(--primary-color);
    margin-top: 0;
}

/* === CABEÇALHO (HEADER) === */
#site-header {
    background-color: var(--bg-body);
    padding: 30px 15px 20px;
    text-align: center;
    position: relative;
    max-width: 600px;
    margin: 0 auto;
}

#logo-principal {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 15px auto;
    border: 4px solid var(--primary-color);
}

.greeting {
    font-family: 'Shadow Script', cursive;
    font-size: 1.4em;
    color: var(--text-light);
    margin: 0 0 5px 0;
}

#site-header h1 {
    font-size: 1.8em;
    margin: 0 0 10px 0;
    color: var(--text-light);
}

#site-header p {
    color: var(--gray-light);
    font-size: 0.95em;
}

/* Botão Voltar */
.back-link {
    position: absolute;
    top: 20px;
    left: 20px;
    color: var(--text-light);
    font-size: 1.5em;
    padding: 10px;
    z-index: 10;
    transition: transform 0.2s;
}

.back-link:hover {
    transform: translateX(-5px);
}

/* === BOTÕES E CTA === */
.cta-button {
    background-color: var(--primary-color);
    color: #FFFFFF;
    padding: 12px 20px;
    border-radius: 50px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-transform: uppercase;
    font-size: 0.9em;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    margin: 10px auto 0;
    width: fit-content;
    transition: transform 0.2s;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

.menu-btn {
    display: block;
    text-align: center;
    background-color: var(--bg-nav);
    color: var(--secondary-color);
    padding: 12px;
    border-radius: 5px;
    margin: 20px auto;
    max-width: 600px;
    font-weight: 600;
    transition: background-color 0.3s;
}

.menu-btn:hover {
    background-color: var(--primary-color);
    color: #fff;
}

/* === GRID DE NAVEGAÇÃO (HOME) === */
#navigation-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    padding: 20px;
    max-width: 600px;
    margin: 0 auto;
}

.nav-card {
    background-color: var(--bg-nav);
    color: var(--secondary-color);
    padding: 20px 10px;
    border-radius: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
}

.nav-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

.nav-card:active {
    transform: scale(0.98);
}

.nav-card .card-icon {
    font-size: 2.2em;
    margin-bottom: 10px;
}

.card-label {
    font-weight: 600;
    font-size: 0.95em;
}

#navigation-grid a:last-child {
    grid-column: 1 / -1;
    max-width: 100%;
}

/* === AGENDAMENTO === */
#booking-main, #services-main, #tips-main, #products-main, #contact-main, #testimonials-main {
    max-width: 600px;
    margin: 10px auto;
    padding: 0 15px;
}

#booking-form fieldset {
    border: 1px solid #eee;
    padding: 20px;
    margin: 0 0 20px 0;
}

#booking-form legend {
    font-size: 1.1em;
    font-weight: 700;
    padding: 0 5px;
}

.booking-step {
    display: none;
}

.booking-step.active {
    display: block;
}

/* Dropdown Customizado */
.booking-dropdown {
    width: 100%;
    padding: 15px;
    font-size: 1rem;
    border: 1px solid var(--primary-color);
    border-radius: 8px;
    background-color: #fff;
    color: var(--secondary-color);
    font-family: 'Poppins', sans-serif;
    margin-bottom: 15px;
    appearance: none; 
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23735A33' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1em;
    cursor: pointer;
}

/* Inputs Gerais */
input[type="date"], 
input[type="text"], 
input[type="tel"] {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
    margin-bottom: 15px;
    font-family: 'Poppins', sans-serif;
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: var(--secondary-color);
}

/* Botões de Navegação */
.step-navigation {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-top: 10px;
}

.step-navigation button {
    padding: 12px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    flex: 1;
    font-size: 1em;
    transition: background-color 0.3s;
}

.step-navigation button:first-child {
    background-color: var(--gray-light);
    color: var(--secondary-color);
}

.step-navigation button:first-child:hover {
    background-color: #c0c0c0;
}

.step-navigation button:last-child,
.step-navigation button[type="submit"] {
    background-color: var(--secondary-color);
    color: #FFFFFF;
}

.step-navigation button:last-child:hover {
    background-color: var(--primary-color);
}

.step-navigation button:disabled {
    background-color: #eee;
    color: #aaa;
    cursor: not-allowed;
}

/* Grade de Horários */
#available-times {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-top: 15px;
}

#available-times button {
    padding: 10px 5px;
    border: 1px solid var(--primary-color);
    background-color: #fff;
    color: var(--secondary-color);
    border-radius: 5px;
    font-size: 0.9em;
    cursor: pointer;
    transition: all 0.2s;
}

#available-times button:hover {
    background-color: #f5f5f5;
}

#available-times button.selected {
    background-color: var(--primary-color);
    color: #fff;
}

.placeholder-text {
    grid-column: 1 / -1;
    text-align: center;
    color: #999;
    font-style: italic;
}

.loading-message {
    text-align: center;
    color: var(--primary-color);
    margin: 20px 0;
}

/* === SERVIÇOS === */
.service-item .details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
    border-bottom: 1px dashed #ccc;
    padding-bottom: 10px;
}

.service-item .price {
    font-weight: 700;
    color: var(--primary-color);
    font-size: 1.1em;
}

.service-item .duration {
    font-size: 0.9em;
    color: #666;
}

.service-item .description {
    margin: 10px 0;
    color: #555;
}

.service-item .schedule-btn {
    display: block;
    text-align: center;
    background-color: var(--primary-color);
    color: #fff;
    padding: 12px;
    border-radius: 5px;
    font-weight: 600;
    transition: background-color 0.3s;
}

.service-item .schedule-btn:hover {
    background-color: var(--secondary-color);
}

/* Categorias de Serviços */
#categories-menu {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    padding: 20px;
    max-width: 600px;
    margin: 0 auto;
}

.service-category {
    padding: 20px 0;
}

.back-btn-internal {
    display: inline-block;
    padding: 10px 20px;
    background-color: var(--gray-light);
    color: var(--secondary-color);
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin-bottom: 20px;
    font-weight: 600;
    transition: background-color 0.3s;
}

.back-btn-internal:hover {
    background-color: var(--primary-color);
    color: #fff;
}

/* === CONTATO & MAPA === */
.social-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.social-icon-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px;
    border-radius: 8px;
    color: #FFFFFF;
    font-weight: 600;
    margin-bottom: 10px;
    transition: transform 0.2s;
}

.social-icon-btn:hover {
    transform: translateY(-2px);
}

.whatsapp { background-color: #25D366; }
.instagram { background-color: #C13584; }
.phone { background-color: var(--secondary-color); }

.address {
    text-align: center;
    margin: 15px 0;
    line-height: 1.8;
}

.map-container {
    height: 300px;
    border-radius: 5px;
    overflow: hidden;
    background-color: #ddd;
    margin-top: 10px;
    position: relative;
    z-index: 1;
}

.map-container iframe {
    position: absolute; /* Torna o iframe um bloco de posicionamento */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 5; /* Garante que o iframe fique acima de qualquer elemento de fundo do container */
}

/* === DEPOIMENTOS === */
.testimonial-card {
    margin-bottom: 20px;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.client-name {
    font-weight: 700;
    font-size: 1.1em;
    color: var(--primary-color);
}

.rating {
    color: #FFD700;
}

.testimonial-quote {
    font-style: italic;
    margin: 15px 0;
    padding-left: 15px;
    border-left: 3px solid var(--primary-color);
    color: #555;
}

.service-type {
    font-size: 0.85em;
    color: #888;
    display: block;
    margin-top: 10px;
}

/* === DICAS === */
.tip-post {
    display: flex;
    gap: 15px;
    align-items: flex-start;
    margin-bottom: 20px;
}

.tip-post .post-thumb {
    width: 90px;
    height: 90px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}

.post-content h3 {
    margin-top: 0;
    font-size: 1.1em;
}

.summary {
    color: #555;
    margin: 10px 0;
}

.read-more {
    color: var(--primary-color);
    font-weight: 600;
    cursor: pointer;
}

.post-meta {
    font-size: 0.85em;
    color: #888;
}

/* === PRODUTOS === */
.product-card {
    text-align: center;
    margin-bottom: 20px;
}

.product-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
}

.product-description {
    color: #555;
    margin: 10px 0;
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
}

.product-footer .price {
    font-size: 1.3em;
    font-weight: 700;
    color: var(--primary-color);
}

.product-footer .buy-btn {
    padding: 8px 15px;
    background-color: #25D366;
    color: #fff;
    border-radius: 5px;
    font-size: 0.9em;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: background-color 0.3s;
}

.product-footer .buy-btn:hover {
    background-color: #1da851;
}

/* === CONFIRMAÇÃO === */
.success-view {
    text-align: center;
    padding: 30px 20px;
}

.success-view h2 {
    color: #25D366;
    margin-bottom: 20px;
}

.success-view i {
    font-size: 3em;
}

.new-booking-btn {
    display: inline-block;
    padding: 12px 20px;
    background-color: var(--primary-color);
    color: #fff;
    border-radius: 5px;
    font-weight: 600;
    transition: background-color 0.3s;
}

.new-booking-btn:hover {
    background-color: var(--secondary-color);
}

/* === FOOTER === */
footer {
    text-align: center;
    padding: 30px 10px;
    font-size: 0.85em;
    color: var(--text-light);
    background-color: var(--bg-body);
}

footer a {
    color: var(--primary-color);
}

/* === RESPONSIVIDADE === */
@media (max-width: 350px) {
    #navigation-grid,
    #categories-menu {
        grid-template-columns: 1fr;
    }
    
    #available-times {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .tip-post {
        flex-direction: column;
    }
    
    .tip-post .post-thumb {
        width: 100%;
        height: 150px;
    }
}

/* === UTILITÁRIOS === */
.hidden {
    display: none !important;
}