:root {
    --text-light: #ffffff;
    --text-muted: rgba(255, 255, 255, 0.85);
    --glass-bg: rgba(0, 0, 0, 0.5);
    --glass-border: rgba(255, 255, 255, 0.4);
    --glass-hover: rgba(255, 255, 255, 0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--text-light);
    background-image: url('imagemfundo.jpeg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 15px;
    position: relative;
}

/* Filtro escuro na imagem de fundo para o texto branco ficar legível */
.background-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 1;
}

.container {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 550px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 30px;
    /* Evita que o slider faça a tela toda quebrar pro lado em telas pequenas */
    overflow: hidden; 
}

/* Header - Foto à esquerda, textos à direita */
.profile-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    text-align: left;
    margin-bottom: 10px;
}

.profile-img-container {
    flex-shrink: 0;
}

.profile-img {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.7);
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.profile-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.profile-info h1 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 4px;
    color: #ffffff;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

.profile-info h2 {
    font-size: 0.7rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.tagline {
    font-size: 0.85rem;
    font-style: italic;
    color: var(--text-light);
    margin-bottom: 2px;
}

.qualifications {
    font-size: 0.7rem;
    color: var(--text-muted);
}

/* Botões */
.links-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    margin: 0 auto;
    gap: 15px;
}

.btn-main, .btn-social {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 8px 20px;
    background: var(--glass-bg);
    color: var(--text-light);
    text-decoration: none;
    border-radius: 50px;
    border: 1px solid var(--glass-border);
    transition: all 0.3s ease;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    width: 340px; /* Largura fixa para forçar botões idênticos */
    max-width: 90vw; /* Adapta em telas de celular muito pequenas */
    min-height: 54px; /* Altura fixa para forçar botões idênticos */
    box-sizing: border-box;
    margin: 0 auto;
    text-align: center;
}

.btn-main:hover, .btn-social:hover {
    background: var(--glass-hover);
    transform: translateY(-2px);
    border-color: #ffffff;
}

.btn-pulse {
    animation: btn-pulse-glow 2.2s ease-in-out infinite;
}

.btn-pulse:hover {
    animation-play-state: paused;
}

@keyframes btn-pulse-glow {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.55);
    }
    70% {
        box-shadow: 0 0 0 12px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .btn-pulse {
        animation: none;
    }
}

.btn-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem; /* Fonte levemente menor */
    font-weight: 500;
}

.btn-subtext {
    font-size: 0.7rem; /* Fonte levemente menor */
    color: var(--text-muted);
    margin-top: 1px; /* Espaço reduzido entre título e subtítulo */
    font-weight: 300;
    white-space: normal; /* Garante que o texto possa quebrar linha se for muito longo */
    word-wrap: break-word;
}

/* Áreas de Atendimento / Slider */
.services-section {
    margin-top: 10px;
    width: 100%;
}

.services-section h3 {
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 20px;
    color: var(--text-light);
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

/* Swiper Slider Styling */
.mySwiper {
    width: 100%;
    padding: 10px 0;
    overflow: visible; /* Permite ver as bordas dos slides laterais */
}

.swiper-slide {
    width: 160px; /* Largura fixa do card central */
    transition: all 0.4s ease;
    opacity: 0.35;
    transform: scale(0.85); /* Diminui os que não estão no centro */
}

.swiper-slide-active {
    opacity: 1;
    transform: scale(1);
    z-index: 2;
}

.service-card {
    background: rgba(40, 35, 30, 0.9); /* Cor mais puxada para o tom escuro amarronzado/preto do modelo */
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 14px;
    padding: 8px;
    text-decoration: none;
    color: var(--text-light);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.5);
    height: 100%;
    width: 100%;
}

.card-img-placeholder {
    width: 100%;
    height: 110px;
    background: #eef2f5;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden; /* Mantém os cantos arredondados na imagem */
}

.card-img-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Faz a imagem preencher a área sem distorcer */
    transition: transform 0.4s ease;
}

.service-card:hover .card-img-placeholder img {
    transform: scale(1.08); /* Efeito suave de zoom ao passar o mouse */
}

.card-texts {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-grow: 1;
    width: 100%;
    gap: 2px;
    padding: 2px 0;
}

.card-title-text {
    font-size: 0.85rem;
    font-weight: 600;
    line-height: 1.1;
    text-align: center;
    width: 100%;
}

.card-desc-text {
    font-size: 0.62rem;
    font-weight: 400;
    color: var(--text-muted);
    text-align: center;
    line-height: 1.2;
}

/* Setas do Swiper (iguais à imagem) */
.swiper-button-next, .swiper-button-prev {
    width: 32px;
    height: 32px;
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    color: #fff;
    margin-top: -16px; /* Ajusta o centro */
}

.swiper-button-next::after, .swiper-button-prev::after {
    font-size: 12px;
    font-weight: bold;
}

.swiper-button-next { right: 5px; }
.swiper-button-prev { left: 5px; }

/* Social Link */
.social-section {
    margin-top: 10px;
}

.btn-social {
    flex-direction: row;
    gap: 10px;
    display: inline-flex;
    padding: 12px 30px;
}

footer {
    margin-top: 10px;
    font-size: 0.7rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.developer-link {
    margin-top: 10px;
}

.developer-link a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.developer-link a:hover {
    color: var(--text-light);
    text-decoration: underline;
}

/* Mobile Adjustments */
@media (max-width: 480px) {
    .profile-header {
        gap: 15px;
    }
    .profile-img {
        width: 75px;
        height: 75px;
    }
    .profile-info h1 {
        font-size: 1.3rem;
    }
    .profile-info h2, .qualifications {
        font-size: 0.65rem;
    }
}

/* Modal de Agendamento */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    background: rgba(250, 250, 250, 0.95);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 20px;
    padding: 35px 25px 25px;
    width: 85%;
    max-width: 400px;
    text-align: center;
    position: relative;
    box-shadow: 0 10px 40px rgba(0,0,0,0.6);
    transform: translateY(20px);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

.modal-content h3 {
    font-size: 1.05rem;
    color: #222;
    margin-bottom: 5px;
    font-weight: 600;
}

.modal-close {
    position: absolute;
    top: 12px;
    right: 15px;
    background: none;
    border: none;
    color: rgba(0, 0, 0, 0.5);
    font-size: 1.2rem;
    cursor: pointer;
    transition: color 0.3s;
}

.modal-close:hover {
    color: #000;
}

.btn-modal {
    width: 100%;
    flex-direction: row;
    gap: 10px;
    padding: 14px;
}
