/*
 * VARIÁVEIS DE COR - CLÍNICA NEURODESENVOLVIMENTO
 * Dra. Liliane Zebral
 */

:root {
    /* Cores Principais */
    --branco-cerebral: #FFFFFF;
    --branco-suave: #F9FAFB;
    --cinza-encefalo: #D9D9D9;
    --cinza-encefalo-eb: #E5E7EB;
    --cinza-neutro: #9CA3AF;
    --cinza-escuro: #6B7280;
    --preto-suave: #111827;
    --vermelho-venoso: #E91E63;
    --vermelho-venoso-dark: #bb1b50;
    
    /* Cores Secundárias */
    --azul-cerebral: #3B82F6;
    --verde-saude: #10B981;
    --amarelo-alerta: #F59E0B;
    
    /* Sombras */
    --sombra-leve: 0 1px 3px rgba(0, 0, 0, 0.1);
    --sombra-media: 0 4px 6px rgba(0, 0, 0, 0.1);
    --sombra-forte: 0 10px 15px rgba(0, 0, 0, 0.1);
}

/* Reset e Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--branco-cerebral);
    color: var(--preto-suave);
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
    margin: 0;
    padding: 0;
    padding-top: 100px;
}

/* GARANTIR QUE NENHUM ELEMENTO SAIA DA TELA */
section, .container, [class*="grid"], [class*="flex"], [style*="display: flex"], [style*="display: grid"] {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

/* TIPOGRAFIA */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Georgia', 'Times New Roman', serif;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--preto-suave);
}

h1 { font-size: 3.5rem; line-height: 1.2; }
h2 { font-size: 2.5rem; line-height: 1.3; }
h3 { font-size: 1.875rem; line-height: 1.4; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: 1rem;
    color: var(--cinza-escuro);
    font-size: 1rem;
}

a {
    color: var(--vermelho-venoso);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--vermelho-venoso-dark);
    text-decoration: underline;
}

/* BOTÕES */
.btn {
    display: inline-block;
    padding: 0.875rem 1.75rem;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    font-size: 1rem;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, #D4695E 0%, #C2574D 100%);
    color: var(--branco-cerebral);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #C2574D 0%, #B3493F 100%);
    box-shadow: var(--sombra-media);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: var(--branco-suave);
    color: var(--preto-suave);
    border: 2px solid var(--cinza-encefalo);
}

.btn-secondary:hover {
    background-color: var(--cinza-encefalo);
    border-color: var(--cinza-neutro);
}

.btn-outline {
    background-color: transparent;
    color: var(--vermelho-venoso);
    border: 2px solid var(--vermelho-venoso);
}

.btn-outline:hover {
    background-color: var(--vermelho-venoso);
    color: var(--branco-cerebral);
}

/* CONTAINER */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    width: 100%;
    box-sizing: border-box;
}

.container-fluid {
    padding: 0;
    margin: 0;
}

/* SEÇÕES */
section {
    padding: 5rem 0;
}

section.light {
    background-color: var(--branco-cerebral);
}

section.gray {
    background-color: var(--cinza-encefalo-eb);
}

/* LINHAS DIVISÓRIAS */
.divider {
    height: 1px;
    background-color: var(--cinza-encefalo);
    margin: 2rem 0;
}

.divider-thick {
    height: 3px;
    background: linear-gradient(to right, var(--vermelho-venoso), transparent);
    margin: 2rem 0;
}

/* ==================== ANIMAÇÕES ====================*/
@keyframes slideDownFadeIn {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes scaleUpIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes rotateIn {
    from {
        opacity: 0;
        transform: rotate(-10deg) scale(0.8);
    }
    to {
        opacity: 1;
        transform: rotate(0) scale(1);
    }
}

@keyframes underlineSlide {
    from {
        width: 0;
        left: 0;
    }
    to {
        width: 100%;
        left: 0;
    }
}

/* ==================== REVEAL ON SCROLL ====================*/
.reveal {
    opacity: 1;
}

.reveal.active {
    animation: slideInUp 0.8s ease-out forwards;
}

.reveal-fade {
    opacity: 1;
}

.reveal-fade.active {
    animation: fadeIn 0.8s ease-out forwards;
}

.reveal-left {
    opacity: 1;
}

.reveal-left.active {
    animation: slideInLeft 0.8s ease-out forwards;
}

.reveal-right {
    opacity: 1;
}

.reveal-right.active {
    animation: slideInRight 0.8s ease-out forwards;
}

.reveal-scale {
    opacity: 1;
}

.reveal-scale.active {
    animation: scaleIn 0.8s ease-out forwards;
}

.reveal-rotate {
    opacity: 1;
}

.reveal-rotate.active {
    animation: rotateIn 0.8s ease-out forwards;
}

/* Stagger effect para cards */
.card.reveal {
    animation-delay: 0s;
}

.card.reveal:nth-child(1).active {
    animation: slideInUp 0.8s ease-out 0s;
}

.card.reveal:nth-child(2).active {
    animation: slideInUp 0.8s ease-out 0.1s;
}

.card.reveal:nth-child(3).active {
    animation: slideInUp 0.8s ease-out 0.2s;
}

.card.reveal:nth-child(4).active {
    animation: slideInUp 0.8s ease-out 0.3s;
}

.card.reveal:nth-child(5).active {
    animation: slideInUp 0.8s ease-out 0.4s;
}

.card.reveal:nth-child(6).active {
    animation: slideInUp 0.8s ease-out 0.5s;
}

/* GRID */
.grid {
    display: grid;
    gap: 2rem;
}

.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }

/* CARD */
.card {
    background-color: var(--branco-cerebral);
    border: 1px solid var(--cinza-encefalo);
    border-radius: 8px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    box-shadow: var(--sombra-leve);
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--sombra-forte);
    border-color: var(--vermelho-venoso);
}

/* HEADER STICKY */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: #d7ccca;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    padding: 0.75rem 1.5rem;
    box-shadow: none;
    animation: slideDownFadeIn 0.6s ease-out;
    overflow: visible;
    width: 100%;
}

header.scrolled {
    box-shadow: var(--sombra-media);
    padding: 0.5rem 1.5rem;
}

/* NAVBAR */
nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    overflow: visible;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    gap: 1rem;
}

.navbar-brand {
    display: flex;
    align-items: center;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--preto-suave);
    text-decoration: none;
    animation: slideInLeft 0.7s ease-out;
    flex-shrink: 0;
}

.navbar-brand img {
    height: 35px;
    margin-right: 0.75rem;
    transition: transform 0.3s ease;
    animation: scaleIn 0.8s ease-out;
}

.navbar-brand:hover img {
    transform: scale(1.05) rotate(5deg);
}

.navbar-menu {
    display: flex;
    gap: 1.5rem;
    list-style: none;
    align-items: center;
    animation: slideInRight 0.7s ease-out;
    margin: 0;
    padding: 0;
}

.navbar-menu li {
    animation: slideInRight 0.7s ease-out;
}

.navbar-menu li:nth-child(1) { animation-delay: 0.1s; }
.navbar-menu li:nth-child(2) { animation-delay: 0.2s; }
.navbar-menu li:nth-child(3) { animation-delay: 0.3s; }
.navbar-menu li:nth-child(4) { animation-delay: 0.4s; }
.navbar-menu li:nth-child(5) { animation-delay: 0.5s; }

.navbar-menu a {
    font-weight: 500;
    color: var(--preto-suave);
    position: relative;
    transition: color 0.3s ease;
    font-size: 0.9rem;
}

.navbar-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(to right, var(--vermelho-venoso), var(--vermelho-venoso-dark));
    transition: width 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border-radius: 2px;
}

.navbar-menu a:hover {
    color: var(--vermelho-venoso);
}

.navbar-menu a:hover::after {
    width: 100%;
}

.navbar-cta {
    margin-left: auto;
    animation: scaleIn 0.8s ease-out 0.6s backwards;
    transition: all 0.3s ease;
}

.navbar-cta:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 10px 20px rgba(233, 30, 99, 0.3);
}

/* BOTONES PERSONALIZADOS DEL HEADER */
.navbar-buttons {
    display: flex;
    gap: 0.8rem;
    align-items: center;
    margin-left: auto;
    animation: scaleIn 0.8s ease-out 0.6s backwards;
    flex-shrink: 0;
}

.btn-header {
    padding: 0.6rem 1.3rem;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    font-size: 0.9rem;
    text-align: center;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.btn-header-primary {
    background: linear-gradient(135deg, #D4695E 0%, #C2574D 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(212, 105, 94, 0.25);
}

.btn-header-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(212, 105, 94, 0.35);
    background: linear-gradient(135deg, #C2574D 0%, #A84840 100%);
}

.btn-header-secondary {
    background: white;
    color: #D4695E;
    border: 2px solid #D4695E;
    box-shadow: 0 2px 8px rgba(212, 105, 94, 0.15);
}

.btn-header-secondary:hover {
    transform: translateY(-3px);
    background: #D4695E;
    color: white;
    box-shadow: 0 8px 20px rgba(212, 105, 94, 0.3);
}

.hamburger {
    display: none !important;
    flex-direction: column;
    cursor: pointer;
    z-index: 1050 !important;
    position: fixed !important;
    top: 20px !important;
    right: 20px !important;
    width: 55px !important;
    height: 55px !important;
    padding: 0 !important;
    align-items: center;
    justify-content: center;
    background: #D4695E !important;
    border-radius: 50% !important;
    border: none !important;
    box-shadow: 0 4px 12px rgba(212, 105, 94, 0.4) !important;
    transition: all 0.3s ease !important;
}

.hamburger span {
    width: 24px;
    height: 2.5px;
    background-color: white;
    margin: 5px 0;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(-10px);
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Menu mobile com animação */
.navbar-menu.active {
    animation: slideInDown 0.4s ease-out;
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.navbar-menu.active a {
    animation: slideInRight 0.4s ease-out;
}

.navbar-menu.active li:nth-child(1) a { animation-delay: 0.05s; }
.navbar-menu.active li:nth-child(2) a { animation-delay: 0.1s; }
.navbar-menu.active li:nth-child(3) a { animation-delay: 0.15s; }
.navbar-menu.active li:nth-child(4) a { animation-delay: 0.2s; }
.navbar-menu.active li:nth-child(5) a { animation-delay: 0.25s; }

/* HERO SECTION */
.hero {
    margin-top: 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--branco-cerebral) 0%, var(--cinza-encefalo-eb) 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(185, 28, 28, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(59, 130, 246, 0.03) 0%, transparent 50%);
    pointer-events: none;
}

.hero-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    z-index: 2;
    position: relative;
}

.hero-image {
    display: flex;
    align-items: center;
    justify-content: center;
    order: -1; /* Coloca a imagem à esquerda */
}

.hero-photo {
    width: 100%;
    max-width: 500px;
    height: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.hero-photo:hover {
    transform: scale(1.02);
}

.hero-content {
    text-align: left;
    z-index: 2;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    color: var(--preto-suave);
    line-height: 1.2;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    color: var(--cinza-escuro);
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: flex-start;
    flex-wrap: wrap;
}

.hero-buttons .btn {
    font-size: 1.125rem;
    padding: 1rem 2rem;
}

/* SERVIÇOS */
.service-card {
    border-left: 4px solid var(--cinza-encefalo);
    transition: all 0.3s ease;
}

.service-card:hover {
    border-left-color: var(--vermelho-venoso);
}

.service-icon {
    width: 60px;
    height: 60px;
    background-color: var(--cinza-encefalo-eb);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    font-size: 2rem;
}

.service-card:hover .service-icon {
    background-color: var(--vermelho-venoso);
    color: var(--branco-cerebral);
}

/* TEST CARD */
.test-card {
    text-align: center;
    overflow: hidden;
    border-radius: 12px;
}

.test-info {
    padding: 1.5rem;
    background-color: var(--cinza-encefalo-eb);
}

.test-name {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.test-description {
    font-size: 0.9rem;
    color: var(--cinza-escuro);
    margin-bottom: 1rem;
}

/* ABOUT IMAGE */
.about-image {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.about-photo {
    width: 100%;
    height: auto;
    max-width: 500px;
    object-fit: contain;
    border-radius: 20px;
    transition: transform 0.3s ease;
}

.about-photo:hover {
    transform: scale(1.02);
}

/* FOOTER */
footer {
    background-color: var(--preto-suave);
    color: var(--cinza-encefalo);
    padding: 3rem 0 1rem;
    width: 100%;
    overflow-x: hidden;
    margin: 0;
}

footer .container {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

footer h4 {
    color: var(--branco-cerebral);
    margin-bottom: 1.5rem;
    font-size: 1rem;
    font-weight: 600;
}

footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

footer ul li {
    margin-bottom: 0.75rem;
    word-break: break-word;
}

footer a {
    color: var(--cinza-encefalo);
    text-decoration: none;
    transition: color 0.3s;
}

footer a:hover {
    color: var(--vermelho-venoso);
}

.footer-bottom {
    text-align: center;
    padding-top: 1.5rem;
    margin-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    margin: 0.5rem 0;
    font-size: 0.9rem;
    word-break: break-word;
}

/* ==================== RESPONSIVIDADE ==================== */

/* EXTRA LARGE (1920px+) */
@media (min-width: 1920px) {
    .container {
        max-width: 1400px;
    }
    
    h1 { font-size: 4rem; }
    h2 { font-size: 3rem; }
}

/* LARGE (1200px - 1919px) */
@media (min-width: 1200px) and (max-width: 1919px) {
    .container {
        max-width: 1140px;
    }
}

/* MEDIUM (768px - 1199px) - Tablets em Landscape */
@media (min-width: 768px) and (max-width: 1199px) {
    h1 { font-size: 2.5rem; margin: 0 0 1rem 0; }
    h2 { font-size: 2rem; margin: 1rem 0; }
    h3 { font-size: 1.5rem; margin: 0.75rem 0; }
    h4 { font-size: 1.25rem; margin: 0.75rem 0; }
    
    .grid-4, .grid-3 { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
    .grid-2 { grid-template-columns: 1fr; gap: 1.5rem; }
    
    section { 
        padding: 2.5rem 1.5rem;
        margin: 0;
    }
    
    .container {
        padding: 0 1.5rem;
        max-width: 100%;
        margin: 0 auto;
    }
    
    .hero {
        margin-top: 70px;
        min-height: auto;
        padding: 1.5rem;
        gap: 1.5rem;
    }
    
    .hero-wrapper {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .hero-image {
        order: 0;
        max-width: 100%;
    }
    
    .hero-photo {
        max-width: 100%;
        height: auto;
    }
    
    .hero h1 {
        font-size: 2.5rem;
        line-height: 1.2;
        margin: 0 0 1rem 0;
    }
    
    .hero p {
        font-size: 1rem;
        margin-bottom: 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .hero-buttons .btn {
        width: 100%;
        padding: 1rem;
    }
    
    .hero-content {
        text-align: left;
    }
    
    .navbar-brand {
        font-size: 1.25rem;
    }
    
    .navbar-menu {
        gap: 1rem;
    }
    
    .card {
        padding: 1.5rem;
        margin: 0;
    }
    
    footer {
        padding: 2rem 1.5rem;
    }
    
    footer h4 {
        margin-bottom: 1rem;
    }
}

/* SMALL (576px - 767px) - Tablets em Portrait */
@media (max-width: 767px) {
    h1 { 
        font-size: 1.75rem; 
        margin: 0 0 1rem 0;
    }
    h2 { 
        font-size: 1.5rem; 
        margin: 1rem 0;
    }
    h3 { 
        font-size: 1.25rem; 
        margin: 0.75rem 0;
    }
    h4 { 
        font-size: 1.125rem; 
        margin: 0.75rem 0;
    }
    h5 { 
        font-size: 1rem; 
        margin: 0.5rem 0;
    }
    h6 { 
        font-size: 0.875rem; 
        margin: 0.5rem 0;
    }
    
    p { 
        font-size: 0.95rem; 
        margin: 0.5rem 0;
        line-height: 1.6;
    }
    
    .grid-4, .grid-3, .grid-2 { 
        grid-template-columns: 1fr;
        gap: 1rem;
        margin: 0;
        padding: 0;
    }
    
    section { 
        padding: 1.5rem 0;
        margin: 0;
    }
    
    .container {
        padding: 0 1rem;
        max-width: 100%;
        margin: 0 auto;
    }
    
    /* HERO */
    .hero {
        margin-top: 70px;
        min-height: auto;
        padding: 1rem;
        gap: 1rem;
    }
    
    .hero-wrapper {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .hero-image {
        order: -1;
        max-width: 100%;
    }
    
    .hero-photo {
        max-width: 350px;
        margin: 0 auto;
    }
    
    .hero h1 {
        font-size: 1.75rem;
        margin-bottom: 1rem;
    }
    
    .hero p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
    }
    
    .hero-buttons .btn {
        width: 100%;
        padding: 0.75rem 1.5rem;
        font-size: 0.95rem;
    }
    
    .hero-content {
        text-align: left;
    }
    
    /* HEADER */
    .navbar-brand {
        font-size: 1.125rem;
    }
    
    .navbar-brand img {
        height: 35px;
        margin-right: 0.5rem;
    }
    
    .navbar-menu {
        display: none;
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        flex-direction: column;
        background-color: var(--branco-cerebral);
        padding: 1.5rem 0;
        gap: 0;
        box-shadow: var(--sombra-media);
        z-index: 999;
        max-width: 100%;
        width: 100%;
        overflow-x: hidden;
    }
    
    .navbar-menu.active {
        display: flex;
    }
    
    .navbar-menu li {
        padding: 0.75rem 1rem;
        border-bottom: 1px solid var(--cinza-encefalo);
        width: 100%;
        overflow-x: hidden;
    }
    
    .navbar-menu a {
        display: block;
    }
    
    .navbar-cta {
        margin-left: 0;
        display: none;
    }
    
    .hamburger {
        display: flex;
        margin-left: auto;
    }

    /* NAVBAR BUTTONS */
    .navbar-buttons {
        display: none !important;
    }
    
    /* BUTTONS */
    .btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.95rem;
    }

    /* CARDS */
    .card {
        padding: 1.25rem;
    }
    
    .service-icon {
        width: 50px;
        height: 50px;
        font-size: 1.75rem;
        margin-bottom: 0.75rem;
    }
    
    /* FORMS */
    form {
        margin: 0;
    }
    
    .form-group {
        margin-bottom: 1.25rem;
    }
    
    input[type="text"],
    input[type="email"],
    input[type="tel"],
    input[type="date"],
    textarea,
    select {
        font-size: 16px; /* Previne zoom em iOS */
        padding: 0.65rem;
    }
    
    /* FOOTER */
    footer {
        padding: 2rem 0 1rem;
    }
    
    .footer-bottom {
        flex-direction: column-reverse;
        gap: 1.5rem;
    }
    
    .social-links {
        gap: 1rem;
    }
    
    .social-links a {
        width: 35px;
        height: 35px;
        font-size: 0.8rem;
    }
}

/* EXTRA SMALL (0px - 575px) - Celulares */
@media (max-width: 575px) {
    h1 { font-size: 1.5rem; }
    h2 { font-size: 1.25rem; }
    h3 { font-size: 1.1rem; }
    h4 { font-size: 1rem; }
    
    p { font-size: 0.9rem; }
    
    .container {
        padding: 0 0.75rem;
    }
    
    section { padding: 1.5rem 0; }
    
    /* HERO */
    .hero {
        margin-top: 65px;
        min-height: auto;
        padding: 1.5rem 0;
    }
    
    .hero-wrapper {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 0 0.75rem;
    }
    
    .hero-image {
        order: -1;
    }
    
    .hero-photo {
        max-width: 100%;
        width: 100%;
    }
    
    .hero h1 {
        font-size: 1.5rem;
        margin-bottom: 0.75rem;
        line-height: 1.1;
    }
    
    .hero p {
        font-size: 0.9rem;
        margin-bottom: 1.25rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 0.75rem;
        justify-content: flex-start;
    }
    
    .hero-buttons .btn {
        padding: 0.65rem 1.25rem;
        font-size: 0.85rem;
        width: 100%;
    }
    
    .hero-content {
        text-align: left;
    }
    
    /* HEADER */
    header {
        padding: 0.75rem 0;
    }
    
    .navbar-brand {
        font-size: 1rem;
    }
    
    .navbar-brand img {
        height: 30px;
        margin-right: 0.35rem;
    }
    
    .hamburger span {
        width: 22px;
        height: 2.5px;
        margin: 4px 0;
    }
    
    /* BUTTONS */
    .btn {
        padding: 0.65rem 1.25rem;
        font-size: 0.85rem;
        border-radius: 4px;
    }
    
    /* CARDS */
    .card {
        padding: 1rem;
        margin-bottom: 1rem;
    }
    
    .service-icon {
        width: 45px;
        height: 45px;
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
    }
    
    /* COUNTER BOXES */
    .counter-box {
        margin-bottom: 1rem;
    }
    
    .counter-number {
        font-size: 1.75rem;
        margin-bottom: 0.25rem;
    }
    
    .counter-label {
        font-size: 0.8rem;
    }
    
    /* GRID COM DOIS CARDS */
    .team-info {
        padding: 1rem;
    }
    
    .team-name {
        font-size: 1rem;
    }
    
    .team-specialty {
        font-size: 0.85rem;
        margin-bottom: 0.5rem;
    }
    
    .team-bio {
        font-size: 0.8rem;
        margin-bottom: 0.75rem;
    }
    
    /* FORMS */
    .form-group {
        margin-bottom: 1rem;
    }
    
    label {
        font-size: 0.9rem;
        margin-bottom: 0.35rem;
    }
    
    input[type="text"],
    input[type="email"],
    input[type="tel"],
    input[type="date"],
    textarea,
    select {
        font-size: 16px;
        padding: 0.6rem;
        border-radius: 4px;
    }
    
    textarea {
        min-height: 100px;
    }
    
    /* TESTIMONIALS */
    .testimonial-avatar {
        width: 40px;
        height: 40px;
    }
    
    .testimonial-info h4 {
        font-size: 0.85rem;
    }
    
    .testimonial-info p {
        font-size: 0.75rem;
    }
    
    .testimonial-text {
        font-size: 0.85rem;
    }
    
    /* FOOTER */
    footer {
        padding: 1.5rem 0 0.75rem;
    }
    
    footer h4 {
        font-size: 0.95rem;
        margin-bottom: 1rem;
    }
    
    footer ul li {
        margin-bottom: 0.5rem;
        font-size: 0.9rem;
    }
    
    .footer-bottom {
        flex-direction: column-reverse;
        gap: 1rem;
        font-size: 0.85rem;
    }
    
    .social-links {
        gap: 0.75rem;
    }
    
    .social-links a {
        width: 35px;
        height: 35px;
        font-size: 0.75rem;
    }
    
    /* DIVIDER */
    .divider {
        margin: 1rem 0;
    }
}

/* ORIENTATION: LANDSCAPE MOBILE */
@media (max-height: 600px) and (orientation: landscape) {
    .hero {
        min-height: auto;
        padding: 1rem 0;
    }
    
    .hero h1 {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
    }
    
    section {
        padding: 1.5rem 0;
    }
}

/* TOUCH DEVICES */
@media (hover: none) and (pointer: coarse) {
    .btn {
        padding: 1rem 1.75rem;
    }
    
    .card {
        border: 1px solid var(--cinza-encefalo);
    }
    
    a {
        padding: 0.5rem 0;
    }
}
/* ==================== BOTÃO FLUTUANTE ==================== */
.floating-menu {
    position: fixed !important;
    bottom: 30px !important;
    left: 30px !important;
    z-index: 999 !important;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    overflow: visible !important;
    touch-action: none !important;
}

.floating-btn-main {
    width: 60px !important;
    height: 60px !important;
    border-radius: 50% !important;
    background: linear-gradient(135deg, var(--vermelho-venoso) 0%, var(--vermelho-venoso-dark) 100%) !important;
    color: white !important;
    border: none !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: var(--sombra-forte) !important;
    transition: all 0.3s ease !important;
    font-size: 24px !important;
    padding: 0 !important;
    min-width: 60px !important;
    flex-shrink: 0 !important;
}

.floating-btn-main:hover {
    transform: scale(1.1) !important;
    box-shadow: 0 15px 25px rgba(233, 30, 99, 0.4) !important;
}

.floating-btn-main.active {
    transform: rotate(45deg) !important;
}

.floating-menu-items {
    position: absolute !important;
    bottom: 80px !important;
    left: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
    z-index: 1000 !important;
    transition: opacity 0.3s ease !important;
}

.floating-item {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    padding: 12px 18px !important;
    background: white !important;
    border-radius: 50px !important;
    box-shadow: var(--sombra-media) !important;
    text-decoration: none !important;
    color: var(--preto-suave) !important;
    transition: all 0.3s ease !important;
    white-space: nowrap !important;
    font-weight: 500 !important;
    font-size: 14px !important;
    min-width: max-content !important;
    min-height: 44px !important;
}

.floating-item:hover {
    background: var(--vermelho-venoso);
    color: white;
    transform: translateX(10px);
}

.floating-item span:first-child {
    font-size: 20px;
}

.floating-item .label {
    display: inline;
}

/* Mobile */
@media (max-width: 1024px) {
    html, body {
        width: 100%;
        overflow-x: hidden;
    }
    
    .hamburger {
        display: flex !important;
        width: 40px;
        height: 40px;
        background: none !important;
        border: none !important;
        box-shadow: none !important;
        padding: 0 !important;
        border-radius: 0 !important;
        position: relative !important;
    }
    
    .hamburger span {
        background: #D4695E !important;
    }
    
    .floating-menu {
        bottom: 20px;
        left: 20px;
        right: auto;
        max-width: calc(100% - 40px);
    }
    
    .floating-btn-main {
        width: 55px;
        height: 55px;
    }
    
    .floating-item {
        padding: 10px 14px;
        font-size: 13px;
        max-width: 200px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .floating-item span:first-child {
        font-size: 18px;
    }
}

/* Extra Small Devices (max 480px) */
@media (max-width: 480px) {
    html, body {
        width: 100%;
        overflow-x: hidden;
    }
    
    .floating-menu {
        bottom: 15px;
        left: 15px;
        right: auto;
    }
    
    .floating-btn-main {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
}

/* ==================== TESTES ONLINE - CARDS COMPACTOS ==================== */
.test-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
}

.test-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(233, 30, 99, 0.15);
}

.test-image {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    background: linear-gradient(135deg, #E91E63 0%, #C2185B 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    flex-shrink: 0;
}

.test-info {
    padding: 0.7rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    flex: 1;
}

.test-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--vermelho-venoso);
    margin: 0;
    line-height: 1.1;
}

.test-description {
    font-size: 0.7rem;
    color: #666;
    margin: 0;
    line-height: 1.3;
    flex: 1;
}

.test-card .btn {
    font-size: 0.75rem;
    padding: 0.4rem 0.6rem;
    margin-top: auto;
}

/* Grid responsivo para testes */
.grid.grid-5 {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0.8rem;
    max-width: 900px;
    margin: 0 auto;
}

/* Ocultar botón flotante de menú en desktop */
@media (min-width: 769px) {
    .floating-btn-menu {
        display: none !important;
    }
    
    .hamburger {
        display: none !important;
    }
}