/* RESET BÁSICO */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Raleway', sans-serif;
}

/* =======================================================================
   REGRAS DEFENSIVAS / ANTI-OVERFLOW (Global)
   ======================================================================= */

/* 2. Documento estrito na Viewport */
html,
body {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
}

/* 3. Imagens e vídeos obedecem rigorosamente a malha (Grid/Flex) do pai */
img,
picture,
video,
svg,
canvas {
    display: block;
    max-width: 100%;
    height: auto;
}

/* 4. Controle de tipografia: Quebra links absurdos ou palavras muito longas */
p,
h1,
h2,
h3,
h4,
h5,
h6,
a,
span {
    overflow-wrap: break-word;
    word-wrap: normal;
    hyphens: none;
    /* Permite a hifenização nativa se o idioma do HTML estiver setado como pt-BR */
}

/* Classe para conter transições agressivas sem quebrar sticky headers */
.site-wrapper {
    overflow-x: clip !important;
    
    position: relative;
    width: 100%;
    max-width: 100%;
    
}

:root {
    /* Variáveis do Modo Claro (Padrão) */
    --primary-hsl: 194 40% 20%;
    /* #1F3F49 */
    --secondary-hsl: 170 27% 91%;
    /* #E3EFED */
    --accent-hsl: 21 55% 62%;
    /* #D28F6B */
    --bg-light-hsl: 160 20% 96%;
    /* #F4F7F6 */
    --text-dark-hsl: 210 29% 24%;
    /* #2C3E50 */
    --text-light-hsl: 200 18% 40%;
    /* #546E7A */
    --white-hsl: 0 0% 100%;
    /* #FFFFFF */

    --color-primary: hsl(var(--primary-hsl));
    --color-secondary: hsl(var(--secondary-hsl));
    --color-accent: hsl(var(--accent-hsl));
    --color-bg-light: hsl(var(--bg-light-hsl));
    --color-text-dark: hsl(var(--text-dark-hsl));
    --color-text-light: hsl(var(--text-light-hsl));
    --color-white: hsl(var(--white-hsl));

    --color-glass-bg: hsl(var(--white-hsl) / 0.6);
    --color-glass-border: hsl(var(--white-hsl) / 0.4);
    --color-card-shadow: hsl(0 0% 0% / 0.05);
}

[data-theme="dark"] {
    /* Variáveis do Modo Escuro */
    --primary-hsl: 170 27% 91%;
    /* #E3EFED */
    --secondary-hsl: 197 53% 11%;
    /* #0D222A */
    --accent-hsl: 21 60% 71%;
    /* #E0A98B */
    --bg-light-hsl: 194 40% 14%;
    /* #162C33 */
    --text-dark-hsl: 204 15% 93%;
    /* #ECEFF1 */
    --text-light-hsl: 200 15% 73%;
    /* #B0BEC5 */
    --white-hsl: 200 53% 8%;
    /* #0A1920 */

    --color-primary: hsl(var(--primary-hsl));
    --color-secondary: hsl(var(--secondary-hsl));
    --color-accent: hsl(var(--accent-hsl));
    --color-bg-light: hsl(var(--bg-light-hsl));
    --color-text-dark: hsl(var(--text-dark-hsl));
    --color-text-light: hsl(var(--text-light-hsl));
    --color-white: hsl(var(--white-hsl));

    --color-glass-bg: hsl(197 53% 11% / 0.8);
    --color-glass-border: hsl(var(--white-hsl) / 0.1);
    --color-card-shadow: hsl(0 0% 0% / 0.4);
}

body {
    background-color: var(--color-white);
    color: var(--color-text-dark);
    line-height: 1.6;
    transition: background-color 0.5s ease, color 0.5s ease;
    /* Transição global para Dark Mode */
}

/* Page Transitions */
.page-enter {
    opacity: 0;
    /* transform removido para não quebrar position: fixed dos flutuantes */
    animation: fadeSlideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes fadeSlideUp {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

/* TIPOGRAFIA */
h1,
h2,
h3,
h4 {
    color: var(--color-primary);
    font-family: 'Lora', serif;
    font-weight: 600;
    line-height: 1.2;
}

h1 {
    font-size: clamp(2.5rem, 5vw + 1rem, 4rem);
}

h2 {
    font-size: clamp(2rem, 4vw + 1rem, 3rem);
}

h3 {
    font-size: clamp(1.5rem, 3vw + 1rem, 2.25rem);
}

h4 {
    font-size: clamp(1.25rem, 2vw + 1rem, 1.75rem);
}

p {
    color: var(--color-text-dark);
    font-weight: 400;
    font-size: 1.05rem;
    line-height: 1.6;
}

/* UTILITÁRIOS */
.skip-link {
    position: absolute;
    top: -50px;
    left: 0;
    background: var(--color-accent);
    color: var(--color-white);
    padding: 10px 15px;
    z-index: 9999;
    font-weight: bold;
    text-decoration: none;
    transition: top 0.3s ease;
}

.skip-link:focus {
    top: 0;
}

.max-w-prose {
    max-width: 65ch;
    margin-left: auto;
    margin-right: auto;
}

/* UTILITÁRIOS */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
}

.text-center {
    text-align: center;
}

.btn-primary {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    background-color: var(--color-accent);
    color: #FFFFFF;
    padding: 12px 30px;
    border-radius: 8px;
    /* Slightly rounder */
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    transition: all 200ms ease;
    border: 1px solid transparent;
    cursor: pointer;
}

.btn-primary:hover {
    background-color: #BA7551;
    color: var(--color-white);
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn-outline {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    background-color: transparent;
    color: var(--color-primary);
    padding: 12px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    transition: all 200ms ease;
    border: 2px solid var(--color-primary);
    cursor: pointer;
}

.btn-outline:hover {
    background-color: var(--color-primary);
    color: var(--color-white);
    transform: translateY(-2px);
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    position: relative;
    padding-bottom: 15px;
    font-family: 'Lora', serif;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--color-accent);
}

.section-title.left::after {
    left: 0;
    transform: none;
}

/* HEADER / NAVBAR */
header {
    background-color: var(--color-glass-bg);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
    border-bottom: 1px solid var(--color-glass-border);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 15px 0;
    transition: all 0.3s ease;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h2 {
    font-size: 1.5rem;
    color: var(--color-primary);
    font-weight: 700;
    letter-spacing: -0.5px;
}

.logo span {
    font-size: 0.8rem;
    font-weight: 400;
    color: var(--color-text-light);
    display: block;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-container {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.nav-links {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 30px;
}

/* Base Nav Links */
.nav-links>li>a {
    text-decoration: none;
    color: var(--color-primary);
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    padding: 8px 0;
    transition: color 0.3s ease;
}

.nav-links>li>a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-accent);
    transition: width 0.3s ease;
}

.nav-links>li>a:hover {
    color: var(--color-accent);
}

.nav-links>li>a:hover::after {
    width: 100%;
}

.dropdown>a {
    display: flex;
    align-items: center;
    gap: 4px;
}

.dropdown .caret {
    font-size: 0.75rem;
    transition: transform 0.3s ease;
}

/* Dropdown Menu Desktop */
.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 280px;
    background-color: var(--color-white);
    border: 1px solid var(--color-glass-border);
    border-radius: 8px;
    box-shadow: 0 10px 30px var(--color-card-shadow);
    padding: 15px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: all 0.3s ease;
    list-style: none;
    z-index: 100;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(5px);
}

.dropdown:hover .caret {
    transform: rotate(180deg);
}

.dropdown-menu li {
    width: 100%;
}

.dropdown-menu a {
    display: block;
    padding: 10px 24px;
    font-size: 0.9rem;
    color: var(--color-text-dark);
    font-weight: 400;
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.dropdown-menu a:hover {
    background-color: var(--color-secondary);
    color: var(--color-primary);
}

/* Theme Toggle Button */
.theme-toggle-btn {
    background: transparent;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 5px;
    transition: transform 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-toggle-btn:hover {
    transform: scale(1.1) rotate(15deg);
}

.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--color-primary);
}

/* HERO SECTION (Split Layout) */
#hero {
    background-color: var(--color-secondary);
    padding: 80px 0;
    min-height: 100%;\n    background-repeat: repeat-y;\n    background-attachment: scroll;
    display: flex;
    align-items: center;
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
}

.hero-text {
    flex: 1;
}

.hero-text h1 {
    font-size: 3rem;
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero-text p {
    font-size: 1.2rem;
    color: var(--color-text-dark);
    margin-bottom: 30px;
    max-width: 90%;
}

.hero-buttons {
    display: flex;
    gap: 15px;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

.hero-image img {
    max-width: 100%;
    border-radius: 8px;
    /* Cantos levemente arredondados, padrão Dr Aézio */
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.hero-tagline {
    display: block;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.85rem;
    color: var(--color-accent);
    font-weight: 600;
    margin-bottom: 10px;
}

.hero-badge {
    display: inline-block;
    padding: 6px 14px;
    border: 1px solid var(--color-glass-border);
    border-radius: 20px;
    font-size: 0.8rem;
    color: var(--color-text-dark);
    margin-bottom: 25px;
    background: var(--color-glass-bg);
    backdrop-filter: blur(10px);
    font-weight: 500;
}

.hero-image-placeholder {
    width: 100%;
    min-height: 400px;
    background-color: rgba(255, 255, 255, 0.1);
    border: 2px dashed rgba(255, 255, 255, 0.4);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--color-white);
    font-weight: 500;
    padding: 40px;
    font-size: 0.95rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* RESPONSIVIDADE BÁSICA */
@media (max-width: 1024px) {
    .hero-content {
        flex-direction: column;
        text-align: center;
    }

    .hero-image {
        justify-content: center;
        margin-top: 40px;
    }

    .section-title.left::after {
        left: 50%;
        transform: translateX(-50%);
    }
}

@media (max-width: 1024px) {
    body {
        
        /* Evita quebra de layout mobile */
    }

    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--color-white);
        padding: 15px 0;
        box-shadow: 0 10px 20px var(--color-card-shadow);
        text-align: left;
        gap: 0;
        z-index: 100;
        border-top: 1px solid var(--color-glass-border);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        width: 100%;
    }

    .nav-links>li>a {
        display: block;
        padding: 15px 20px;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }

    .nav-links>li>a::after {
        display: none;
    }

    .dropdown .caret {
        float: right;
    }

    .dropdown-menu {
        position: static;
        box-shadow: none;
        opacity: 1;
        visibility: hidden;
        display: none;
        transform: none;
        border: none;
        background-color: var(--color-bg-light);
        padding: 0;
        margin: 0;
    }

    .dropdown:hover .dropdown-menu {
        visibility: visible;
        display: block;
    }

    .dropdown-menu a {
        padding: 12px 20px 12px 30px;
        border-bottom: 1px solid rgba(0, 0, 0, 0.02);
    }

    .nav-actions {
        gap: 10px;
    }

    .nav-actions .btn-primary {
        padding: 8px 15px !important;
        font-size: 0.8rem;
    }

    .desktop-only {
        display: none !important;
    }

    .mobile-menu-btn {
        display: block;
    }

    .hero-text h1 {
        font-size: 2.2rem;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .hero-buttons a {
        text-align: center;
    }

    /* Reduzindo respiros gerais no mobile */
    .pb-80 {
        padding: 50px 0;
    }

    .bg-primary {
        padding: 50px 0;
    }

    .hero-animated,
    #hero {
        padding: 40px 0;
        min-height: auto;
    }

    .section-title {
        font-size: 2rem;
    }

    .card {
        padding: 30px 20px;
    }
}

/* OUTROS UTILITÁRIOS E CORES DE FUNDO */
.bg-light {
    background-color: var(--color-bg-light);
}

.bg-primary {
    background-color: #1F3F49;
    /* Fixo para manter a identidade nas seções chave */
    padding: 60px 0;
}

.pb-80 {
    padding: 80px 0;
}

.mt-30 {
    margin-top: 30px;
}

.subtitle-section {
    max-width: 600px;
    margin: 0 auto 50px auto;
    color: var(--color-text-light);
    font-size: 1.1rem;
}

/* NOVO A11Y FOCUS RINGS (UI/UX Pro Max) */
*:focus-visible {
    outline: 3px solid rgba(59, 130, 246, 0.5);
    /* using a soft blue for focus */
    outline-offset: 2px;
}

/* --- CORREÇÃO DE EMERGÊNCIA DA HERO --- */

/* 1. Garanta que a seção Hero alinhe os itens ao centro */
.hero-content {
    display: flex;
    align-items: center;
    /* Centraliza verticalmente texto e vídeo */
    justify-content: space-between;
    gap: 40px;
    /* Espaço entre o texto e o vídeo */
}

/* 2. Define o tamanho do container da direita (onde estava a imagem) */
.hero-video-container {
    flex: 1;
    /* Ocupa o espaço restante */
    max-width: 550px;
    /* Tamanho máximo similar ao da imagem anterior */
    height: auto;
    position: relative;
    /* Necessário para efeitos de flutuação futuros */
    border-radius: 20px;
    /* Arredondamento premium */
    overflow: hidden;
    /* Garante que o vídeo não vaze das bordas arredondadas */
    /* Sombra suave para dar destaque premium */
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

/* 3. Força o vídeo a preencher o container perfeitamente */
.hero-video-single {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* O segredo: faz o vídeo cobrir a área sem esticar */
    display: block;
    /* Aplica a animação de flutuação suave */
    animation: floatPremium 6s ease-in-out infinite;
}

/* A Animação de Flutuação Premium */
@keyframes floatPremium {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-15px);
    }

    100% {
        transform: translateY(0px);
    }
}

/* --- AJUSTE MOBILE (Importante!) --- */
@media (max-width: 1024px) {
    .hero-content {
        flex-direction: column-reverse;
        /* No celular, o texto fica em cima do vídeo */
        text-align: center;
        gap: 20px;
    }

    .hero-video-container {
        max-width: 100%;
        /* Vídeo largura total no celular */
        margin-bottom: 20px;
    }

    .hero-text {
        padding-right: 0;
        /* Remove padding lateral no mobile */
        margin-top: 20px;
    }
}

/* CARDS ESPECIALIDADES */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.card {
    background: var(--color-white);
    padding: 40px 30px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-bottom: 3px solid transparent;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border-bottom: 3px solid var(--color-primary);
}

.card .icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--color-primary);
}

.card h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: var(--color-primary);
}

.card p {
    font-size: 0.95rem;
    color: var(--color-text-light);
    margin-bottom: 20px;
}

.card-link {
    text-decoration: none;
    display: block;
    height: 100%;
}

.read-more {
    font-size: 0.85rem;
    color: var(--color-accent);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    align-self: flex-start;
    margin-top: auto;
}

/* BOTÃO FLUTUANTE WHATSAPP */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 30px;
    box-shadow: 0px 4px 20px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    transition: all 0.3s ease;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    background-color: #1ebe57;
    box-shadow: 0px 6px 25px rgba(37, 211, 102, 0.6);
}

@media (max-width: 1024px) {
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
    }

    .whatsapp-float svg {
        width: 25px;
        height: 25px;
    }
}

/* BOTÃO FLUTUANTE IDIOMA */
.lang-float-container {
    position: fixed;
    bottom: 40px;
    left: 40px;
    z-index: 1000;
}

.lang-float {
    width: 60px;
    height: 60px;
    background-color: #ba7551;
    color: #FFF;
    border-radius: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    box-shadow: 0px 4px 20px rgba(186, 117, 81, 0.4);
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    outline: none;
}

.lang-float:hover {
    transform: scale(1.1);
    background-color: #9e5b3b;
    box-shadow: 0px 6px 25px rgba(186, 117, 81, 0.6);
}

.lang-float-menu {
    position: absolute;
    bottom: 70px;
    left: 0;
    background: var(--color-white);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    padding: 10px 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 5px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    border: 1px solid var(--color-glass-border);
}

.lang-float-container.active .lang-float-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-float-menu li a {
    display: block;
    padding: 8px 25px;
    color: var(--color-text-dark);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.lang-float-menu li a:hover {
    background-color: var(--color-secondary);
    color: var(--color-primary);
}

@media (max-width: 1024px) {
    .lang-float-container {
        bottom: 20px;
        left: 20px;
    }

    .lang-float {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
}

/* SEÇÃO SOBRE */
.sobre-content {
    display: flex;
    align-items: center;
    gap: 60px;
}

.sobre-text {
    flex: 1.2;
}

.sobre-image {
    flex: 1;
}

.sobre-image img {
    width: 100%;
    border-radius: 8px;
    object-fit: cover;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
}

.credentials {
    display: inline-block;
    background-color: var(--color-bg-light);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--color-text-light);
    margin-bottom: 25px;
}

.experiencias-lista {
    list-style: none;
    margin: 25px 0;
}

.experiencias-lista li {
    margin-bottom: 10px;
    font-weight: 500;
    color: var(--color-primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

/* OUTLINE LIGHT BUTTON (Para fundos escuros fixos) */
.btn-outline.light-outline {
    border-color: #E3EFED;
    color: #E3EFED;
}

.btn-outline.light-outline:hover {
    background-color: #E3EFED;
    color: #1F3F49;
}

/* FOOTER */
footer {
    background-color: #1A1A1A;
    color: #9CA3AF;
    padding: 60px 0 20px 0;
    font-size: 0.9rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h3 {
    color: #FFFFFF;
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.footer-col p {
    color: #9CA3AF;
    margin-bottom: 10px;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #374151;
    font-size: 0.8rem;
}

/* CARROSSEL DE DEPOIMENTOS (Scroll Snap Nativo) */
.carousel-container {
    width: 100%;
    margin-top: 40px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    /* Suavidade no iOS */
    padding-bottom: 20px;
}

/* Esconder a barra de rolagem */
.carousel-container::-webkit-scrollbar {
    height: 8px;
}

.carousel-container::-webkit-scrollbar-track {
    background: var(--color-bg-light);
    border-radius: 4px;
}

.carousel-container::-webkit-scrollbar-thumb {
    background: var(--color-primary);
    border-radius: 4px;
}

.carousel-track {
    display: flex;
    gap: 30px;
    padding: 10px 0;
    width: max-content;
    margin: 0 auto;
}

.testimonial-card {
    width: 350px;
    scroll-snap-align: center;
    background: var(--color-white);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-align: left;
    white-space: normal;
}

@media (max-width: 1024px) {
    .testimonial-card {
        width: 85vw;
        /* Ocupa quase a tela toda no celular */
    }
}

.testimonial-card .stars {
    color: #FFD700;
    font-size: 1.5rem;
    margin-bottom: 15px;
    letter-spacing: 2px;
}

.testimonial-text {
    font-style: italic;
    color: var(--color-text-dark);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 25px;
}

.testimonial-author {
    display: flex;
    flex-direction: column;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    padding-top: 15px;
}

.testimonial-author strong {
    color: var(--color-primary);
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.verified-badge {
    font-size: 0.8rem;
    color: #25d366;
    font-weight: 600;
}

/* --- TRUST BLOCK UX --- */
.trust-block {
    display: flex;
    align-items: center;
    gap: 30px;
    background: var(--color-secondary);
    border-radius: 16px;
    padding: 30px;
    margin-top: 60px;
    margin-bottom: 40px;
    border: 1px solid var(--color-glass-border);
}

.trust-content {
    flex: 1;
}

.trust-content h3 {
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.trust-badges {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.trust-badge {
    background: var(--color-primary);
    color: var(--color-white);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.trust-image {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 0 10px 25px var(--color-card-shadow);
}

.trust-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (max-width: 1024px) {
    .sobre-content {
        flex-direction: column-reverse;
    }
}

@media (max-width: 1024px) {
    .trust-block {
        flex-direction: column-reverse;
        text-align: center;
    }

    .trust-badges {
        justify-content: center;
    }
}

/* NOVAS CLASSES (Marketing e Animações) */
.hero-animated {
    position: relative;
    overflow: hidden;
    background-color: var(--color-secondary);
    padding: 80px 0;
    min-height: 100%;\n    background-repeat: repeat-y;\n    background-attachment: scroll;
    display: flex;
    align-items: center;
}

.hero-bg-animation {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
    background: linear-gradient(-45deg, var(--color-secondary), var(--color-bg-light), var(--color-white), var(--color-secondary));
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
    opacity: 0.95;
}

@keyframes gradientBG {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.hero-content {
    position: relative;
    z-index: 1;
}

.glass-card {
    position: relative;
    border-radius: 12px;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    background: var(--color-glass-bg);
    backdrop-filter: blur(10px);
    z-index: -1;
    border-radius: 16px;
    border: 1px solid var(--color-glass-border);
    transition: background 0.5s ease, border 0.5s ease;
}

.flex-reverse {
    flex-direction: row-reverse;
}

@media (max-width: 1024px) {
    .flex-reverse {
        flex-direction: column-reverse;
    }
}

/* BENTO GRID (Seção Digital) */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 40px;
}

.bento-card {
    padding: 40px;
    border-radius: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: left;
}

.bento-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.bento-hero {
    grid-column: span 2;
    /* Ocupa as duas colunas */
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.bento-small {
    grid-column: span 1;
}

@media (max-width: 1024px) {
    .bento-grid {
        grid-template-columns: 1fr;
    }

    .bento-hero,
    .bento-small {
        grid-column: span 1;
    }
}

.bg-white-glass {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

/* No Bento, forçar a cor clara pois o fundo é sempre o verde primário (mesmo no Light Mode) */
.bg-white-glass h3,
.bg-white-glass p {
    color: #FFFFFF;
}

.bg-white-glass .icon {
    color: var(--color-secondary);
    font-size: 2.5rem;
    margin-bottom: 15px;
}

/* =========================================================================
   SEÇÃO FAQ (INSTITUCIONAL)
   ========================================================================= */

.faq-tabs-container {
    max-width: 900px;
    margin: 0 auto;
    background: var(--color-white);
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.faq-tabs {
    display: flex;
    overflow-x: auto;
    background: var(--color-secondary);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.faq-tabs::-webkit-scrollbar {
    height: 4px;
}

.faq-tabs::-webkit-scrollbar-thumb {
    background: var(--color-primary);
}

.faq-tab {
    flex: 1;
    min-width: max-content;
    padding: 16px 20px;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--color-text-light);
    cursor: pointer;
    transition: all 0.3s ease;
}

.faq-tab:hover {
    color: var(--color-primary);
    background: rgba(0, 0, 0, 0.02);
}

.faq-tab.active {
    color: var(--color-primary);
    border-bottom-color: var(--color-primary);
    background: var(--color-white);
}

.faq-content {
    padding: 30px;
}

.faq-panel {
    display: none;
    animation: fadeIn 0.4s ease;
}

.faq-panel.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.faq-item {
    margin-bottom: 15px;
    border: 1px solid var(--color-glass-border);
    border-radius: 8px;
    background: var(--color-white);
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

.faq-item:hover {
    box-shadow: 0 4px 15px var(--color-card-shadow);
}

.faq-item summary {
    padding: 20px;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--color-primary);
    cursor: pointer;
    list-style: none;
    /* Hide default arrow */
    position: relative;
    padding-right: 40px;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: '+';
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--color-text-light);
    transition: transform 0.3s ease;
}

.faq-item[open] summary::after {
    content: '−';
}

.faq-answer {
    padding: 0 20px 20px 20px;
}

.faq-answer p {
    color: var(--color-text-dark);
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 0;
}

@media (max-width: 1024px) {
    .faq-tabs {
        flex-direction: column;
    }

    .faq-tab {
        text-align: left;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
        border-left: 3px solid transparent;
    }

    .faq-tab.active {
        border-bottom-color: rgba(0, 0, 0, 0.05);
        border-left-color: var(--color-primary);
    }

    .faq-content {
        padding: 20px 15px;
    }
}

/* =========================================================================
   COMPLIANCE FOOTER INSTITUCIONAL
   ========================================================================= */

.footer-institucional {
    background-color: #111827;
    /* Tailwind gray-900 */
    color: #9CA3AF;
    /* Tailwind gray-400 */
    padding: 80px 0 30px 0;
    font-size: 0.9rem;
    border-top: 4px solid var(--color-primary);
    /* Linha principal de autoridade */
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-institucional p {
    color: #9CA3AF;
}

.footer-institucional strong {
    color: #E5E7EB;
}

.footer-institucional h3 {
    color: #FFFFFF;
    font-size: 1.5rem;
    margin-bottom: 5px;
    letter-spacing: -0.5px;
}

.footer-institucional h4 {
    color: #FFFFFF;
    font-size: 1.1rem;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.brand-subtitle {
    font-weight: 500;
    color: var(--color-accent);
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.85rem;
}

.brand-tagline {
    font-style: italic;
    color: #6B7280;
    margin-bottom: 20px;
}

.pl-30 {
    padding-left: 30px;
}

.border-left {
    border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.registry-number {
    font-size: 1.1rem;
    color: #FFFFFF;
    line-height: 1.6;
    margin-bottom: 5px;
    font-family: monospace;
}

.registry-desc,
.legal-desc {
    font-size: 0.85rem;
    color: #6B7280;
    line-height: 1.5;
}

.footer-links {
    list-style: none;
    margin-top: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.footer-links-vertical {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links-vertical a {
    color: #9CA3AF;
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 0.95rem;
}

.footer-links-vertical a:hover {
    color: var(--color-white);
}

.footer-social {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    color: #FFFFFF;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background: var(--color-primary);
    transform: translateY(-3px);
}

.footer-links a {
    color: var(--color-accent);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--color-white);
    text-decoration: underline;
}

.footer-disclaimer {
    background: rgba(0, 0, 0, 0.2);
    padding: 30px;
    border-radius: 8px;
    margin-bottom: 40px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.disclaimer-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    color: var(--color-white);
}

.footer-disclaimer p {
    color: #9CA3AF;
    font-size: 0.85rem;
    line-height: 1.6;
    margin-bottom: 15px;
}

.footer-disclaimer p:last-child {
    margin-bottom: 0;
}

.footer-copyright {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    font-size: 0.8rem;
    color: #6B7280;
}

[data-theme="dark"] .footer-institucional h3,
[data-theme="dark"] .footer-institucional h4,
[data-theme="dark"] .footer-institucional .registry-number {
    color: #F9FAFB;
}

[data-theme="dark"] .footer-institucional .brand-tagline,
[data-theme="dark"] .footer-institucional .footer-contact strong {
    color: #D1D5DB;
}

@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }

    .border-left {
        border-left: none;
        padding-left: 0;
    }
}

@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .border-left {
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        padding-top: 40px;
    }

    .footer-disclaimer {
        padding: 20px;
    }

    .footer-links {
        flex-direction: column;
        gap: 10px;
    }
}

/* SEÇÃO FAQ (Accordion) */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.faq-item {
    background: var(--color-white);
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 10px;
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

.faq-item[open] {
    box-shadow: 0 10px 25px var(--color-card-shadow);
    border-color: var(--color-accent);
}

.faq-item[open] summary {
    color: var(--color-accent);
}

.faq-question {
    padding: 20px 25px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--color-primary);
    list-style: none;
    /* Hide default arrow */
    position: relative;
    user-select: none;
    transition: color 0.3s ease;
}

.faq-question::-webkit-details-marker {
    display: none;
}

.faq-question::after {
    content: '+';
    position: absolute;
    right: 25px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    font-weight: 400;
    transition: transform 0.3s ease;
}

.faq-item[open] .faq-question::after {
    content: '−';
    transform: translateY(-50%) rotate(180deg);
}

.faq-answer {
    padding: 0 25px 25px 25px;
    color: var(--color-text-dark);
    font-size: 0.95rem;
    line-height: 1.6;
    animation: fadeInDown 0.3s ease-in-out;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* BANNER LGPD (COOKIES) */
.cookie-banner {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-white);
    border: 1px solid var(--color-glass-border);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    /* Sombra mais forte para destacar */
    padding: 20px 30px;
    border-radius: 12px;
    z-index: 9999;
    max-width: 90%;
    width: 600px;
}

.cookie-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.cookie-content p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--color-text-dark);
}

.cookie-content a {
    color: var(--color-accent);
    font-weight: 600;
}

@media (max-width: 1024px) {
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }

    .cookie-banner {
        bottom: 90px;
        /* Para não ficar em cima do WhatsApp flutuante */
        padding: 15px;
    }
}

/* --- CORREÇÃO DE EMERGÊNCIA DA HERO --- */

/* 1. Garanta que a seção Hero alinhe os itens ao centro */
.hero-content {
    display: flex;
    align-items: center;
    /* Centraliza verticalmente texto e vídeo */
    justify-content: space-between;
    gap: 40px;
    /* Espaço entre o texto e o vídeo */
}

/* 2. Define o tamanho do container da direita (onde estava a imagem) */
.hero-video-container {
    flex: 1;
    /* Ocupa o espaço restante */
    max-width: 550px;
    /* Tamanho máximo similar ao da imagem anterior */
    height: auto;
    position: relative;
    /* Necessário para efeitos de flutuação futuros */
    border-radius: 20px;
    /* Arredondamento premium */
    overflow: hidden;
    /* Garante que o vídeo não vaze das bordas arredondadas */
    /* Sombra suave para dar destaque premium */
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

/* 3. Força o vídeo a preencher o container perfeitamente */
.hero-video-single {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* O segredo: faz o vídeo cobrir a área sem esticar */
    display: block;
    /* Aplica a animação de flutuação suave */
    animation: floatPremium 6s ease-in-out infinite;
}

/* A Animação de Flutuação Premium */
@keyframes floatPremium {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-15px);
    }

    100% {
        transform: translateY(0px);
    }
}

/* --- AJUSTE MOBILE (Importante!) --- */
@media (max-width: 1024px) {
    .hero-content {
        flex-direction: column-reverse;
        /* No celular, o texto fica em cima do vídeo */
        text-align: center;
    }

    .hero-video-container {
        max-width: 100%;
        /* Vídeo largura total no celular */
        margin-bottom: 30px;
    }

    .hero-text {
        padding-right: 0;
        /* Remove padding lateral no mobile */
    }
}

/* === WHATSAPP FLOAT BUTTON === */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    border-radius: 50px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, background-color 0.3s ease;
    animation: pulseWhatsapp 2s infinite;
}

@keyframes pulseWhatsapp {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

.whatsapp-float:hover {
    transform: scale(1.1);
    background-color: #128C7E;
}

/* === COOKIE BANNER (LGPD) === */
.cookie-banner {
    position: fixed;
    bottom: 30px;
    left: 30px;
    background: var(--color-glass-bg);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid var(--color-glass-border);
    box-shadow: 0 10px 30px var(--color-card-shadow);
    padding: 20px 25px;
    border-radius: 12px;
    z-index: 1001;
    max-width: 400px;
    animation: slideUpCookie 0.5s ease-out forwards;
}

.cookie-content {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.cookie-content p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--color-text-dark);
}

.cookie-content a {
    color: var(--color-primary);
    text-decoration: underline;
    font-weight: 500;
}

@keyframes slideUpCookie {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- MOBILE RESPONSIVENESS --- */
@media (max-width: 1024px) {
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
    }

    .whatsapp-float svg {
        width: 25px;
        height: 25px;
    }

    .cookie-banner {
        bottom: 20px;
        left: 20px;
        right: auto;
        max-width: calc(100% - 90px);
        width: auto;
        padding: 15px;
    }

    .cookie-content {
        flex-direction: column;
        align-items: flex-start;
    }

    .cookie-content p {
        font-size: 0.8rem;
    }

    .cookie-content .btn-primary {
        padding: 8px 15px;
        font-size: 0.8rem;
        align-self: flex-start;
    }
}

/* OCULTAR BARRA E LOGOTIPO DO GOOGLE TRANSLATE */
body {
    top: 0 !important;
}

.goog-te-banner-frame.skiptranslate {
    display: none !important;
}

.skiptranslate {
    display: none !important;
}

.goog-tooltip {
    display: none !important;
}

.goog-tooltip:hover {
    display: none !important;
}

.goog-text-highlight {
    background-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

/* --- UI/UX: Ajustes do Header (Desktop & Mobile) --- */
.btn-agendar-header {
    padding: 10px 24px;
    font-size: 0.9rem;
    white-space: nowrap;
}

@media (min-width: 1025px) {

    /* 1. Expansão do Container do Header Edge-to-Edge com trava de segurança para Ultrawide */
    .navbar {
        width: 96%;
        max-width: 1440px;
        margin: 0 auto;
        padding: 0 2%;
    }

    /* 2. Prevenir quebra de palavras (-hifenação) */
    .nav-links>li>a {
        white-space: nowrap;
    }

    /* 3. Espaçamento Interno (Visual Breathing) */
    .nav-container {
        gap: clamp(20px, 4vw, 50px);
    }

    .nav-links {
        gap: clamp(15px, 2vw, 35px);
    }

    /* 4. Alinhamento Espelhado dos Botões Flutuantes (Tradução e WhatsApp) */
    .lang-float-container {
        position: fixed;
        bottom: 40px;
        left: 2%;
        z-index: 999;
    }

    .whatsapp-float {
        position: fixed;
        bottom: 40px;
        right: 2%;
        z-index: 999;
    }
}

@media (max-width: 1024px) {

    /* Otimização da área de toque reduzindo largura sem perder acessibilidade (SEM !important) */
    .btn-agendar-header {
        padding: 6px 14px;
        font-size: 0.85rem;
    }

    /* --- UI/UX: Reposicionamento do Theme Toggle (Fitts's Law) --- */
    /* Garante que o container flex ocupe o espaço vazio entre a logo e a direita */
    .navbar .nav-container {
        flex: 1;
        display: flex;
        justify-content: flex-end;
    }

    .navbar .nav-actions {
        flex: 1;
        display: flex;
        justify-content: flex-end;
        align-items: center;
        width: 100%;
    }

    /* Empurra o botão de tema para a esquerda, na direção da logo */
    #theme-toggle.theme-toggle-btn {
        margin-right: auto;
        /* Margem de segurança da Fitts's Law para evitar toques acidentais na logo */
        margin-left: clamp(15px, 4vw, 30px);
    }
}

/* --- UI/UX: Créditos do Desenvolvedor (Rodapé) --- */
.developer-credit {
    font-size: 0.9em;
    opacity: 0.8;
    margin-top: 5px;
    display: inline-block;
}

.developer-credit a {
    color: inherit;
    text-decoration: underline;
    font-weight: bold;
    transition: opacity 0.2s ease-in-out;
}

.developer-credit a:hover {
    opacity: 1;
    text-decoration: none;
}
/* =======================================================================
   Botão Agendar Responsivo & Fundo (Mobile Fixes)
   ======================================================================= */
.mobile-text { display: none; }
.desktop-text { display: inline; }

@media (max-width: 1024px) {
    .mobile-text { display: inline !important; }
    .desktop-text { display: none !important; }
    .btn-agendar-header { 
        padding: 10px 15px !important; 
        font-size: 0.85rem !important; 
    }
}


/* =======================================================================
   Overflow & Iframe Fixes (Tech Lead Request)
   ======================================================================= */
iframe, .carousel-container {
    max-width: 100%;
    box-sizing: border-box;
}

@media (max-width: 1024px) {
    .carousel-track {
        max-width: 100vw;
        box-sizing: border-box;
        /* If track is flex/grid, allow wrapping or scrolling within its constraints */
        flex-wrap: wrap;
    }
}

/* =======================================================================
   ESTRUTURA DEFINITIVA DE RESPONSIVIDADE E DEBUGS
   ======================================================================= */

/* 1. Overflow Horizontal Seguro */
/* Garante que o body NUNCA esconda o overflow, senão o sticky header quebra! */
html, body {
    width: 100%;
    margin: 0;
    padding: 0;
    overflow-x: visible; 
}
/* O .site-wrapper assume o papel de conter os elementos absolutados horizontalmente */
.site-wrapper {
    position: relative;
    width: 100%;
    overflow-x: clip;
}

/* 2. Carrossel de Depoimentos sem vazar */
.carousel-container {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
}
.carousel-track {
    display: flex;
    gap: 20px;
    width: max-content;
    padding: 10px 0;
}
.testimonial-card {
    width: 85vw;
    max-width: 350px;
    flex-shrink: 0;
    scroll-snap-align: center;
}

/* 3. Mídia Dinâmica (Iframes e Vídeos) */
iframe, video, embed, object {
    max-width: 100%;
    height: auto;
}

/* 4. Padronização Tipográfica com Clamp */
h1 { font-size: clamp(2rem, 5vw + 1rem, 3.5rem); }
h2 { font-size: clamp(1.8rem, 4vw + 1rem, 2.8rem); }
h3 { font-size: clamp(1.5rem, 3vw + 1rem, 2.2rem); }
p { font-size: clamp(0.95rem, 2vw + 0.5rem, 1.1rem); }
.nav-links a { font-size: clamp(0.85rem, 1.5vw, 1rem); }

/* 5. Correção do Botão Agendar no Mobile .btn-agendar-header */
.btn-agendar-header {
    white-space: nowrap;
    text-align: center;
}

/* 6. Anulação de Interferência Google Translate */
.goog-te-banner-frame, .goog-te-menu-frame, .skiptranslate iframe,
.goog-te-gadget, .goog-te-gadget-simple, .goog-te-balloon-frame {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    width: 0 !important;
    overflow: hidden !important;
    position: absolute !important;
    top: -9999px !important;
    left: -9999px !important;
    pointer-events: none !important;
    z-index: -9999 !important;
}
html { top: 0 !important; }
*[style*="background-color: rgb(255, 255, 0)"] {
    background: transparent !important;
}

/* 7. Breakpoints Estratégicos Adicionais */
/* iPhone SE / Telas bem pequenas */
@media (max-width: 480px) {
    h1 { font-size: clamp(1.8rem, 6vw, 2.2rem); }
    h2 { font-size: clamp(1.5rem, 5vw, 1.8rem); }
    .hero-text p { font-size: 0.95rem; }
    .btn-primary, .btn-outline { padding: 8px 16px !important; font-size: 0.8rem !important; }
    .btn-agendar-header { padding: 6px 12px !important; font-size: 0.75rem !important; }
}

/* Desktops pequenos a médios */
@media (min-width: 1025px) and (max-width: 1366px) {
    .container { max-width: 1140px; }
}
/* Ultrawide e grandes telas */
@media (min-width: 1921px) {
    .container { max-width: 1440px; }
    html { font-size: 18px; }
}

/* =======================================================================
   BLINDAGEM DO HEADER E TIPOGRAFIA (FIX PARA 15+ DISPOSITIVOS)
   ======================================================================= */
.navbar {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
    gap: 10px !important;
}

.navbar > nav {
    flex: 1;
    display: flex;
    justify-content: center;
}

.nav-actions {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    flex-shrink: 0 !important;
    justify-content: flex-end !important;
}

.logo {
    flex-shrink: 1 !important;
    min-width: 0 !important; 
}

.logo h2 {
    font-size: clamp(1.1rem, 4vw, 1.5rem) !important;
    line-height: 1.1 !important;
    white-space: normal !important;
    word-break: keep-all;
}

.logo span {
    font-size: clamp(0.7rem, 2.5vw, 0.8rem) !important;
    white-space: normal !important;
}

/* Força que o menu vire mobile num breakpoint mais largo (1199px) 
   Salvando os iPads (incluindo o Pro 1024px) e Nest Hub do esmagamento */
@media (max-width: 1024px) {
    .navbar > nav { display: none !important; }
    .nav-actions { gap: 10px !important; }
}

@media (max-width: 380px) {
    .nav-actions { gap: 4px !important; }
    .theme-toggle-btn { font-size: 1rem !important; padding: 2px !important; }
    .logo h2 { font-size: 1rem !important; }
}

/* =======================================================================
   TECH LEAD OVERRIDE: STICKY RESTORE & 1024px NAV ALIGNMENT
   ======================================================================= */
header {
    position: sticky !important;
    top: 0 !important;
    z-index: 100 !important;
}

@media (max-width: 1024px) {
    .navbar .nav-container {
        flex: 1;
        display: flex;
        justify-content: flex-end;
    }
    .navbar .nav-actions {
        display: flex;
        align-items: center;
        gap: clamp(10px, 2vw, 20px) !important;
    }
    #theme-toggle.theme-toggle-btn {
        margin-right: auto !important;
        margin-left: 20px !important;
    }
}

/* =======================================================================
   TECH LEAD OVERRIDE: PROTECAO GLOBAL & HEADER OPTION A
   ======================================================================= */
/* Controle Global Anti-Vazamento (Carousel e Iframes) */
iframe, .carousel-container, .carousel-track, img, video {
    max-width: 100vw !important;
    box-sizing: border-box !important;
}

/* O header não quebra porque tirou a poluição visual */
header {
    position: sticky !important;
    top: 0 !important;
    z-index: 100 !important;
}

@media (max-width: 1024px) {
    /* Navbar agora flui nativamente, itens nunca quebram (nowrap) */
    .navbar {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        flex-wrap: nowrap !important;
        gap: 8px !important;
    }
    
    .logo {
        flex-shrink: 1 !important; /* Pode espremer se precisar */
        min-width: 0 !important;
    }
    
    .logo h2 {
        font-size: clamp(1rem, 3.5vw, 1.3rem) !important;
        line-height: 1.1 !important;
        white-space: normal !important;
        word-break: keep-all; 
    }
    
    /* Option A: Remove o texto extra de médica no celular -> foca em conversao */
    .logo span {
        display: none !important; 
    }
    
    /* Os Botoes sempre blindados do lado direito */
    .navbar .nav-actions {
        display: flex !important;
        align-items: center !important;
        gap: clamp(6px, 1.5vw, 12px) !important;
        flex-shrink: 0 !important; /* Botões NUNCA escalam em cima da margem deles */
        justify-content: flex-end !important;
    }
    
    #theme-toggle.theme-toggle-btn {
        margin: 0 !important;
        padding: 4px !important;
    }
    
    .btn-agendar-header {
        padding: 6px 14px !important;
        font-size: clamp(0.7rem, 2.5vw, 0.9rem) !important;
        white-space: nowrap !important;
    }
}

/* Tratamento Microscópico p/ o Z Fold (344px) e Relógios */
@media (max-width: 380px) {
    .navbar { gap: 4px !important; }
    .btn-agendar-header {
        padding: 4px 10px !important;
        font-size: 0.75rem !important;
    }
}

/* =======================================================================
   REFINAMENTO PREMIUM DO BOTAO DE IDIOMA (FLAG DRAWER)
   ======================================================================= */
.flag-main-btn {
    background: transparent !important;
    padding: 0 !important;
    border: none !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2) !important;
    border-radius: 50% !important;
    overflow: hidden !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 50px !important;
    height: 50px !important;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease !important;
    cursor: pointer !important;
}

.flag-main-btn:hover {
    transform: scale(1.08) !important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3) !important;
}

.flag-icon {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    border-radius: 50% !important;
    display: block !important;
}

.lang-opt .flag-icon {
    width: 28px !important;
    height: 28px !important;
    min-width: 28px !important;
    box-shadow: 0 2px 5px rgba(0,0,0,0.15) !important;
}

.lang-float-menu.flag-drawer {
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
    background: rgba(255, 255, 255, 0.75) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border: 1px solid rgba(255,255,255,0.4) !important;
    padding: 12px 12px !important;
    border-radius: 25px !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.12) !important;
    bottom: 70px !important;
    left: 0 !important;
    min-width: 110px !important;
}

[data-theme="dark"] .lang-float-menu.flag-drawer {
    background: rgba(15, 23, 42, 0.8) !important;
    border: 1px solid rgba(255,255,255,0.08) !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5) !important;
}

.lang-opt {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    padding: 6px 12px 6px 6px !important;
    background: transparent !important;
    border-radius: 25px !important;
    color: var(--color-text) !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    transition: all 0.2s ease !important;
}

.lang-opt:hover {
    background: rgba(0, 0, 0, 0.05) !important;
    transform: translateX(4px) !important;
}

[data-theme="dark"] .lang-opt:hover {
    background: rgba(255, 255, 255, 0.1) !important;
}

.lang-text {
    font-size: 0.9rem !important;
    letter-spacing: 0.5px !important;
}
