/* =================================================== */
/* RESET BÁSICO E ESTILOS GERAIS
/* =================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
}

a {
    text-decoration: none;
    color: #4f46e5;
    font-weight: bold;
    transition: transform 0.2s;
}

a:hover {
    transform: scale(1.05);
}

/* =================================================== */
/* CABEÇALHO E FOOTER (COMUNS A TODAS AS PÁGINAS)
/* =================================================== */
.header {
    text-align: center;
    margin-bottom: 40px;
    color: white;
}

.logo-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.logo {
    max-width: 300px;
    height: auto;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3));
}

.header h1 {
    font-size: 2.2rem;
    font-weight: 300;
}

.header p.tagline {
    font-size: 1.2rem;
    opacity: 0.9;
    font-style: italic;
    margin-top: 10px;
}

.footer {
    text-align: center;
    margin-top: 60px;
    color: white;
    opacity: 0.8;
}

.contact-info {
    margin-top: 20px;
    padding: 20px;
    background: rgba(255,255,255,0.1);
    border-radius: 10px;
    backdrop-filter: blur(10px);
}

/* =================================================== */
/* LAYOUT DA PÁGINA PRINCIPAL (INDEX.HTML)
/* =================================================== */
.department-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.department-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    padding: 40px;
    display: flex;
    flex-direction: column;
}

.department-card h2 {
    color: #4f46e5;
    font-size: 2rem;
    margin-bottom: 20px;
    border-bottom: 2px solid #667eea;
    padding-bottom: 10px;
}

.department-card .featured-booking {
    margin-bottom: 30px;
}

.department-card .featured-booking h3 {
    text-align: center;
    color: #333;
    margin-bottom: 15px;
    font-weight: 600;
}

.department-card .tidycal-embed {
    min-height: 400px; /* Altura ajustada para o destaque */
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
}

.department-card .service-description {
    margin-bottom: 30px;
    flex-grow: 1; /* Faz a descrição crescer para alinhar os botões */
}

.department-card .service-description ul {
    list-style: none;
    margin-bottom: 20px;
}

.department-card .service-description li {
    padding: 8px 0;
    display: flex;
    align-items: center;
}

.department-card .service-description li:before {
    content: "✓";
    color: #10b981;
    font-weight: bold;
    margin-right: 10px;
}

.btn-primary {
    display: block;
    text-align: center;
    background: #667eea;
    color: white;
    padding: 15px 30px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: bold;
    transition: all 0.3s ease;
    border: none;
}

.btn-primary:hover {
    background: #4f46e5;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* =================================================== */
/* LAYOUT DAS PÁGINAS DE DEPARTAMENTO
/* =================================================== */
.page-header h1 {
    font-size: 2.5rem;
    color: white;
    text-align: center;
    margin-bottom: 30px;
}

.booking-section {
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    padding: 40px;
    margin-bottom: 30px;
}

.booking-section h2 {
    color: #4f46e5;
    font-size: 1.8rem;
    margin-bottom: 25px;
}

.booking-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 25px;
}

.booking-grid .tidycal-embed {
    min-height: 600px;
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
}

.booking-section#all-services .tidycal-embed {
    /* Para a lista principal, a altura deve ser maior */
    min-height: 800px; 
}


/* =================================================== */
/* OVERLAY E BOTÃO FLUTUANTE
/* =================================================== */
.floating-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #25D366; /* Verde WhatsApp para chamar a atenção */
    color: white;
    padding: 15px 25px;
    border-radius: 50px;
    font-weight: bold;
    cursor: pointer;
    z-index: 999;
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
}

.floating-btn:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.5);
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px;
    
    /* Escondido por defeito */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.overlay.visible {
    opacity: 1;
    visibility: visible;
}

.overlay-content {
    background: white;
    border-radius: 15px;
    width: 100%;
    max-width: 900px; /* Ajuste a largura máxima */
    max-height: 90vh; /* MUDANÇA: Altura máxima de 90% da tela */
    overflow-y: auto;
    padding: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.4);
    position: relative;
    
    /* Para o TidyCal preencher */
    display: flex;
    flex-direction: column;
}

.overlay-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.overlay-header h2 {
    color: #4f46e5;
}

.overlay-close {
    font-size: 2.5rem;
    color: #999;
    cursor: pointer;
    line-height: 1;
    font-weight: 300;
    transition: color 0.2s;
}

.overlay-close:hover {
    color: #333;
}

.overlay-booking {
    overflow: hidden; /* Garante que o embed não ultrapassa */
}

.overlay-booking .tidycal-embed {
    min-height: 60vh;
    width: 100%;
    height: auto;
    border: none;
}


/* =================================================== */
/* RESPONSIVIDADE
/* =================================================== */
@media (max-width: 900px) {
    .department-grid {
        grid-template-columns: 1fr; /* Coluna única em mobile */
    }
}

@media (max-width: 768px) {
    body {
        padding: 10px;
    }
    .logo {
        max-width: 250px;
    }
    .header h1 {
        font-size: 1.8rem;
    }
    .floating-btn {
        padding: 12px 20px;
        font-size: 0.9rem;
        bottom: 20px;
        right: 20px;
    }
    .overlay {
        padding: 10px;
    }
    .overlay-content {
        height: 95vh;
        padding: 15px;
    }
    .overlay-header h2 {
        font-size: 1.2rem;
    }
    .overlay-close {
        font-size: 2rem;
    }
}