/*
Theme Name: Dr. André Sakima Theme
Description: WordPress theme converted from HTML landing page for Dr. André Sakima - Cirurgião Bucomaxilofacial
Version: 1.3
Author: WordPress Theme
*/

/*
Optimized CSS for Dr. André Sakima Landing Page
Clean, minimal, and performance-focused version
*/

/* Reset e configurações globais */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Lato', sans-serif;
    line-height: 1.7;
    color: #2c3e50;
    background: linear-gradient(135deg, #f8fafc 0%, #ecf0f1 100%);
    position: relative;
    overflow-x: hidden;
    font-weight: 400;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: #1a1a2e;
}

h1 {
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, #1a1a2e 0%, #716e65 30%, #0451ae 70%, #0066ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

h2 {
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 700;
    letter-spacing: -0.01em;
    background: linear-gradient(135deg, #716e65 0%, #0451ae 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

h3 {
    font-size: clamp(1.5rem, 3vw, 1.8rem);
    font-weight: 600;
    color: #716e65;
}

h4 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #0451ae;
}

p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #4a5568;
    margin-bottom: 1.5rem;
}

.subtitle {
    font-size: 1.25rem;
    color: #716e65;
    font-weight: 300;
    line-height: 1.8;
}

img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

/* Container system */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 clamp(20px, 4vw, 40px);
    position: relative;
    z-index: 2;
}

/* Header */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 4px 20px rgba(100, 150, 220, 0.12);
    z-index: 1000;
    padding: 20px 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}


.site-header.scrolled {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    box-shadow: 0 8px 40px rgba(4, 81, 174, 0.15);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.logo img {
    height: 50px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    filter: drop-shadow(0 2px 8px rgba(4, 81, 174, 0.1));
}

.site-header.scrolled .logo img {
    filter: drop-shadow(0 4px 12px rgba(4, 81, 174, 0.15));
}

/* Navigation */
.main-nav ul {
    display: flex;
    list-style: none;
    gap: clamp(20px, 3vw, 35px);
    margin: 0;
}

.main-nav a {
    text-decoration: none;
    color: #716e65;
    font-weight: 500;
    font-size: 1rem;
    position: relative;
    transition: all 0.3s ease;
    padding: 8px 0;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #0451ae, #716e65);
    transition: width 0.3s ease;
}

.main-nav a:hover {
    color: #0451ae;
    transform: translateY(-1px);
}

.main-nav a:hover::after {
    width: 100%;
}

/* Buttons */
.btn-primary {
    background: linear-gradient(135deg, rgba(4, 81, 174, 0.9) 0%, rgba(113, 110, 101, 0.9) 100%);
    color: #fff;
    padding: 12px 24px;
    border-radius: 30px;
    border: none;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.4s ease;
    box-shadow: 0 4px 20px rgba(4, 81, 174, 0.25);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    display: inline-block;
    white-space: nowrap;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(4, 81, 174, 0.35);
    background: linear-gradient(135deg, rgba(4, 81, 174, 1) 0%, rgba(113, 110, 101, 1) 100%);
}

.btn-secondary {
    background: rgba(4, 81, 174, 0.85);
    color: #fff;
    border: 2px solid rgba(4, 81, 174, 0.9);
    padding: 18px 45px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.4s ease;
    display: inline-block;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 20px rgba(4, 81, 174, 0.2);
    animation: subtleGlow 3s ease-in-out infinite;
}

.btn-secondary:hover {
    background: rgba(4, 81, 174, 1);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(4, 81, 174, 0.35);
    border-color: rgba(255, 255, 255, 0.4);
    animation-play-state: paused;
}

@keyframes subtleGlow {
    0%, 100% {
        box-shadow: 0 8px 20px rgba(4, 81, 174, 0.2);
    }
    50% {
        box-shadow: 0 12px 28px rgba(4, 81, 174, 0.4);
    }
}

.btn-form {
    width: 100%;
    background: linear-gradient(135deg, rgba(4, 81, 174, 0.85) 0%, rgba(113, 110, 101, 0.85) 100%);
    color: #fff;
    padding: 18px;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s ease;
    box-shadow: 0 8px 25px rgba(4, 81, 174, 0.25);
    backdrop-filter: blur(10px);
}

.btn-form:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(4, 81, 174, 0.35);
}

.hero-section {
    min-height: 85vh;
    display: flex;
    align-items: center;
    padding: 140px 0 60px;
    position: relative;
    background:
        linear-gradient(135deg, rgba(248, 250, 252, 0.95) 0%, rgba(236, 240, 241, 0.9) 100%),
        radial-gradient(ellipse 800px 600px at 20% 30%, rgba(4, 81, 174, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse 600px 800px at 80% 70%, rgba(113, 110, 101, 0.06) 0%, transparent 50%),
        repeating-linear-gradient(45deg,
            transparent,
            transparent 2px,
            rgba(4, 81, 174, 0.02) 2px,
            rgba(4, 81, 174, 0.02) 4px);
    overflow: hidden;
}

.hero-bg {
    display: none;
}

/* Camada de textura animada */
.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse 1200px 800px at 50% 50%, rgba(52, 152, 219, 0.04) 0%, transparent 60%),
        radial-gradient(ellipse 800px 600px at 20% 80%, rgba(4, 81, 174, 0.03) 0%, transparent 50%),
        radial-gradient(ellipse 600px 800px at 80% 20%, rgba(113, 110, 101, 0.03) 0%, transparent 50%),
        linear-gradient(45deg,
            transparent 30%,
            rgba(255, 255, 255, 0.02) 50%,
            transparent 70%);
    animation: backgroundPulse 20s ease-in-out infinite, shimmerWave 15s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

/* Camada de pontos e grid animados */
.hero-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(circle at 25% 25%, rgba(4, 81, 174, 0.12) 1px, transparent 1px),
        radial-gradient(circle at 75% 75%, rgba(113, 110, 101, 0.1) 1px, transparent 1px),
        linear-gradient(0deg, rgba(4, 81, 174, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(4, 81, 174, 0.02) 1px, transparent 1px);
    background-size: 80px 80px, 120px 120px, 60px 60px, 60px 60px;
    opacity: 0.4;
    animation: floatingDots 30s linear infinite, gridShift 25s linear infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes backgroundPulse {

    0%,
    100% {
        opacity: 0.5;
        transform: scale(1);
    }

    50% {
        opacity: 0.8;
        transform: scale(1.1);
    }
}

@keyframes shimmerWave {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

@keyframes floatingDots {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }

    100% {
        transform: translate(50px, 50px) rotate(360deg);
    }
}

@keyframes gridShift {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(60px, 60px);
    }
}

/* Tablet adjustments */
@media (max-width: 1024px) {
    .hero-doctor-bg img {
        max-height: 70vh;
        opacity: 0.7;
    }
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: clamp(30px, 6vw, 40px);
        text-align: center;
    }

    .hero-doctor-bg {
        position: absolute;
        top: 5%;
        left: 50%;
        transform: translate(-50%, 0);
        pointer-events: none;
    }

    .hero-doctor-bg img {
        max-height: 85vh;
        width: 85vw;
        max-width: 450px;
        object-fit: contain;
        filter: drop-shadow(0 10px 30px rgba(4, 81, 174, 0.3));
    }

    .hero-text {
        order: 1;
    }

    .hero-form-container {
        order: 3;
    }
}

/* Very small devices */
@media (max-width: 480px) {
    .hero-doctor-bg {
        top: 0%;
    }
    
    .hero-doctor-bg img {
        max-height: 80vh;
        width: 90vw;
        max-width: 400px;
    }

    .hero-section {
        padding: 120px 0 60px;
    }
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(70px, 10vw, 120px);
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-text {
    background: transparent;
    border-radius: 0;
    padding: 0;
    border: none;
    box-shadow: none;
}

/* Imagem do Dr. André com background estiloso */
.hero-doctor-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
    pointer-events: none;
}

/* Background principal do doutor - círculo com gradiente */
.hero-doctor-bg::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 500px;
    height: 500px;
    background:
        radial-gradient(circle at 30% 30%, rgba(4, 81, 174, 0.15) 0%, rgba(4, 81, 174, 0.08) 40%, transparent 70%),
        radial-gradient(circle at 70% 70%, rgba(113, 110, 101, 0.12) 0%, rgba(113, 110, 101, 0.06) 40%, transparent 70%),
        linear-gradient(135deg, rgba(255, 255, 255, 0.8) 0%, rgba(248, 250, 252, 0.6) 100%);
    border-radius: 50%;
    filter: blur(2px);
    z-index: -2;
    animation: doctorBgPulse 6s ease-in-out infinite;
}

/* Anel externo decorativo */
.hero-doctor-bg::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    border: 2px solid rgba(4, 81, 174, 0.1);
    border-radius: 50%;
    z-index: -3;
    animation: doctorRingRotate 20s linear infinite;
}

.hero-doctor-bg img {
    max-height: 80vh;
    width: auto;
    object-fit: contain;
    opacity: 0.9;
    filter: drop-shadow(0 20px 40px rgba(4, 81, 174, 0.2));
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.hero-doctor-bg:hover img {
    opacity: 0.95;
    transform: scale(1.02);
}

/* Animações para o background do doutor */
@keyframes doctorBgPulse {

    0%,
    100% {
        transform: translate(-50%, -50%) scale(0.95);
        opacity: 0.7;
    }

    25% {
        transform: translate(-50%, -50%) scale(1.15);
        opacity: 0.9;
    }

    50% {
        transform: translate(-50%, -50%) scale(1.25);
        opacity: 1;
    }

    75% {
        transform: translate(-50%, -50%) scale(1.1);
        opacity: 0.85;
    }
}

@keyframes doctorRingRotate {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
        border-color: rgba(4, 81, 174, 0.1);
    }

    25% {
        border-color: rgba(113, 110, 101, 0.1);
    }

    50% {
        transform: translate(-50%, -50%) rotate(180deg);
        border-color: rgba(52, 152, 219, 0.1);
    }

    75% {
        border-color: rgba(4, 81, 174, 0.1);
    }

    100% {
        transform: translate(-50%, -50%) rotate(360deg);
        border-color: rgba(4, 81, 174, 0.1);
    }
}

.hero-text h1 {
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-text .subtitle {
    margin-bottom: 2rem;
    font-size: 1.1rem;
    color: #4a5568;
    background: none;
    backdrop-filter: none;
}

/* Form styling */
.hero-form {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    padding: clamp(25px, 3vw, 35px);
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(4, 81, 174, 0.12);
    width: 100%;
    max-width: 100%;
    position: relative;
    overflow: hidden;
}

.hero-form h3 {
    margin-bottom: 2rem;
    font-size: 1.5rem;
    text-align: center;
    color: #716e65;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #716e65;
    font-size: 0.95rem;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.9);
    transition: all 0.3s ease;
    color: #1a1a2e;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #0451ae;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(4, 81, 174, 0.1);
    transform: translateY(-2px);
}

/* Sections */
.authority-section,
.results-section,
.procedures-section,
.about-section,
.contact-section {
    padding: clamp(80px, 12vw, 120px) 0;
    position: relative;
}

.authority-section {
    text-align: center;
    padding-top: clamp(120px, 15vw, 160px);
    background:
        linear-gradient(135deg, rgba(236, 240, 241, 0.85) 0%, rgba(149, 165, 166, 0.25) 30%, rgba(255, 255, 255, 0.90) 70%, rgba(44, 62, 80, 0.12) 100%),
        linear-gradient(180deg, #f8fafc 0%, #e2e8f0 100%);
    position: relative;
    overflow: hidden;
}

.authority-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse 700px 500px at 10% 30%, rgba(113, 110, 101, 0.07) 0%, transparent 45%),
        radial-gradient(ellipse 900px 300px at 90% 80%, rgba(4, 81, 174, 0.06) 0%, transparent 40%),
        radial-gradient(ellipse 500px 700px at 50% 20%, rgba(149, 165, 166, 0.04) 0%, transparent 50%);
    animation: auroraShift 25s ease-in-out infinite reverse;
    pointer-events: none;
    z-index: 1;
}

.authority-section h2 {
    margin-bottom: 2.5rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.authority-text {
    font-size: 1.2rem;
    margin-bottom: 4rem;
    color: #666;
    max-width: 850px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.8;
}

/* Grid layouts */
.highlights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: clamp(20px, 4vw, 35px);
    margin-bottom: 4rem;
    margin-top: 4rem;
}

.highlight-item {
    padding: clamp(25px, 4vw, 35px) clamp(20px, 3vw, 25px);
    text-align: center;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(248, 250, 252, 0.9) 100%);
    border-radius: 20px;
    transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(113, 110, 101, 0.08);
    position: relative;
    overflow: hidden;
}

.highlight-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(52, 152, 219, 0.1), transparent);
    transition: left 0.8s ease;
}

.highlight-item:hover {
    transform: translateY(-15px) scale(1.05) rotate(1deg);
    box-shadow: 0 30px 80px rgba(4, 81, 174, 0.25);
    border-color: rgba(52, 152, 219, 0.3);
}

.highlight-item:hover::before {
    left: 100%;
}

.highlight-item .icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #0451ae 0%, #716e65 100%);
    border-radius: 20px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.8rem;
    box-shadow: 0 10px 30px rgba(4, 81, 174, 0.2);
    transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    z-index: 2;
}

/* Mobile optimization for authority icons */
@media (max-width: 768px) {
    .highlight-item .icon {
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
        margin: 0 auto 1rem;
        border-radius: 15px;
        box-shadow: 0 6px 20px rgba(4, 81, 174, 0.2);
    }
}

@media (max-width: 480px) {
    .highlight-item .icon {
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
        margin: 0 auto 1rem;
        border-radius: 12px;
        box-shadow: 0 4px 15px rgba(4, 81, 174, 0.15);
    }
}

.highlight-item:hover .icon {
    transform: scale(1.25) rotate(15deg);
    box-shadow: 0 20px 50px rgba(4, 81, 174, 0.4);
    background: linear-gradient(135deg, #3498db 0%, #2c3e50 100%);
}

.highlight-item h4 {
    font-size: 1.2rem;
    color: #716e65;
    font-weight: 600;
    line-height: 1.4;
}

/* Results Section with Aurora Background */
.results-section {
    background:
        linear-gradient(135deg, rgba(44, 62, 80, 0.18) 0%, rgba(95, 106, 106, 0.22) 25%, rgba(149, 165, 166, 0.15) 50%, rgba(255, 255, 255, 0.85) 75%, rgba(236, 240, 241, 0.7) 100%),
        linear-gradient(180deg, #e2e8f0 0%, #f1f5f9 100%);
    position: relative;
    overflow: hidden;
}

.results-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse 600px 800px at 85% 15%, rgba(52, 152, 219, 0.08) 0%, transparent 45%),
        radial-gradient(ellipse 800px 400px at 15% 85%, rgba(44, 62, 80, 0.06) 0%, transparent 40%),
        radial-gradient(ellipse 1200px 600px at 50% 50%, rgba(113, 110, 101, 0.04) 0%, transparent 55%);
    animation: auroraShift 30s ease-in-out infinite;
    pointer-events: none;
    z-index: 1;
}

.results-section h2 {
    text-align: center;
    margin-bottom: 1.5rem;
}

.results-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: #716e65;
    margin-bottom: 4rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Carousel */
.gallery-carousel {
    position: relative;
    margin-bottom: 1rem; /* espaço moderado abaixo do carrossel */
    max-width: 100%;
    overflow: hidden;
}

.carousel-wrapper {
    display: flex;
    overflow: hidden;
    border-radius: 16px;
    position: relative;
    width: 100%;
    /* Altura responsiva que mantém proporções adequadas */
    height: clamp(450px, 60vw, 600px);
}

.carousel-slide {
    min-width: 100%;
    flex-shrink: 0;
    position: relative;
    height: 100%;
    transition: transform 0.5s ease, opacity 0.5s ease;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* mostra a imagem inteira */
    object-position: center;
    display: block;
    background: linear-gradient(135deg, rgba(248, 250, 252, 0.98) 0%, rgba(236, 240, 241, 0.98) 100%);
}

.carousel-controls {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    pointer-events: none;
    z-index: 10;
    transform: translateY(-50%);
}

.carousel-btn {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid rgba(113, 110, 101, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    pointer-events: all;
    backdrop-filter: blur(10px);
}

.carousel-btn:hover {
    background: rgba(4, 81, 174, 0.9);
    border-color: #0451ae;
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(4, 81, 174, 0.3);
}

.carousel-btn svg {
    width: 24px;
    height: 24px;
    fill: #716e65;
    transition: fill 0.3s ease;
}

.carousel-btn:hover svg {
    fill: #fff;
}

.carousel-indicators {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 15px; /* pontinhos dentro do carrossel */
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 0;
    padding: 10px;
    z-index: 12;
    pointer-events: none; /* evita bloquear cliques nas setas */
}
.carousel-indicator { 
    pointer-events: all;
}

.carousel-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(113, 110, 101, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.carousel-indicator.active {
    background: linear-gradient(135deg, #0451ae, #716e65);
    transform: scale(1.2);
    box-shadow: 0 0 8px rgba(4, 81, 174, 0.3);
}

/* Testimonials Carousel */
.testimonials-carousel {
    position: relative;
    overflow: hidden;
    margin-top: 40px;
    padding: 10px 0;
}

.testimonials-track {
    display: flex;
    gap: 20px;
    align-items: stretch;
    will-change: transform;
}

.testimonial-slide {
    flex: 0 0 100%;
    padding: 5px 10px;
    display: flex;
}

@media (min-width: 768px) {
    .testimonial-slide { flex-basis: 50%; }
}

@media (min-width: 1024px) {
    .testimonial-slide { flex-basis: 33.3333%; }
}

/* Cards refinados e com alturas consistentes */
.testimonial-card {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    height: 100%;
    min-height: clamp(320px, 36vw, 430px);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 250, 252, 0.95) 100%);
    padding: clamp(24px, 3vw, 36px);
    border-radius: 20px;
    text-align: center;
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.5s ease, border-color 0.5s ease;
    box-shadow: 0 12px 30px rgba(4, 81, 174, 0.10);
    border: 1px solid rgba(113, 110, 101, 0.08);
    position: relative;
    overflow: hidden;
}

/* brilho diagonal ao passar o mouse */
.testimonial-card::before {
    content: '';
    position: absolute;
    inset: -120% -40%;
    background: linear-gradient(120deg, transparent 40%, rgba(255,255,255,0.45) 50%, transparent 60%);
    transform: translateX(-60%);
    transition: transform 0.8s ease;
    pointer-events: none;
}

.testimonial-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.04) 0%, rgba(4, 81, 174, 0.06) 100%);
    opacity: 0;
    transition: opacity 0.6s ease;
    border-radius: 20px;
}

.testimonial-card:hover {
    transform: translateY(-10px) scale(1.03);
    box-shadow: 0 30px 90px rgba(4, 81, 174, 0.25);
    border-color: rgba(52, 152, 219, 0.35);
}

.testimonial-card:hover::after { opacity: 1; }
.testimonial-card:hover::before { transform: translateX(60%); }

.testimonial-photo {
    width: 84px;
    height: 84px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 1.25rem;
    border: 3px solid rgba(113, 110, 101, 0.24);
    transition: transform 0.5s ease, border-color 0.5s ease, box-shadow 0.5s ease;
    position: relative;
    z-index: 2;
}

.testimonial-card:hover .testimonial-photo {
    transform: translateY(-2px) scale(1.08);
    border-color: #3498db;
    box-shadow: 0 12px 30px rgba(52, 152, 219, 0.35);
}

.testimonial-stars {
    color: #ffd700;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.testimonial-text {
    font-size: 1rem;
    line-height: 1.7;
    color: #4a5568;
    margin-bottom: 1.25rem;
    font-style: italic;
    overflow: visible;
}

.testimonial-name {
    font-size: 1.15rem;
    color: #716e65;
    margin-bottom: 0.35rem;
    font-weight: 600;
}

.testimonial-procedure {
    font-size: 0.95rem;
    color: #0451ae;
    font-weight: 600;
}

/* Ajustes das setas neste carrossel */
.testimonials-carousel .carousel-controls { z-index: 15; }
.testimonials-carousel .carousel-btn { width: 52px; height: 52px; }
@media (min-width: 1024px) {
    .testimonials-carousel .carousel-btn { width: 60px; height: 60px; }
}
.testimonials-carousel .carousel-btn:focus { outline: 3px solid rgba(4,81,174,0.45); outline-offset: 3px; }

/* Procedures Section with Aurora Background */
.procedures-section {
    background:
        linear-gradient(135deg, rgba(52, 152, 219, 0.20) 0%, rgba(44, 62, 80, 0.15) 25%, rgba(236, 240, 241, 0.60) 50%, rgba(255, 255, 255, 0.80) 75%, rgba(149, 165, 166, 0.25) 100%),
        linear-gradient(180deg, #dbeafe 0%, #f0f9ff 100%);
    position: relative;
    overflow: hidden;
}

.procedures-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse 900px 600px at 25% 20%, rgba(4, 81, 174, 0.09) 0%, transparent 45%),
        radial-gradient(ellipse 700px 900px at 75% 90%, rgba(149, 165, 166, 0.07) 0%, transparent 40%),
        radial-gradient(ellipse 1100px 500px at 50% 60%, rgba(52, 152, 219, 0.05) 0%, transparent 50%);
    animation: auroraShift 22s ease-in-out infinite reverse;
    pointer-events: none;
    z-index: 1;
}

.procedures-section h2 {
    text-align: center;
    margin-bottom: 4rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.procedures-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: clamp(25px, 4vw, 40px);
    margin-bottom: 4rem;
}

.procedure-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(248, 250, 252, 0.9) 100%);
    padding: clamp(30px, 4vw, 40px);
    border-radius: 24px;
    text-align: center;
    transition: all 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(113, 110, 101, 0.08);
    position: relative;
    overflow: hidden;
}

.procedure-card::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(52, 152, 219, 0.1) 0%, transparent 70%);
    transition: all 0.8s ease;
    transform: translate(-50%, -50%);
    border-radius: 50%;
}

.procedure-card:hover {
    transform: translateY(-25px) scale(1.1) rotate(3deg);
    box-shadow: 0 50px 120px rgba(4, 81, 174, 0.3);
    border-color: rgba(52, 152, 219, 0.5);
}

.procedure-card:hover::before {
    width: 300px;
    height: 300px;
}

.procedure-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #0451ae 0%, #716e65 100%);
    border-radius: 24px;
    margin: 0 auto 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 2rem;
    box-shadow: 0 15px 35px rgba(4, 81, 174, 0.25);
    transition: all 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    z-index: 2;
}

.procedure-card:hover .procedure-icon {
    transform: scale(1.4) rotate(25deg);
    background: linear-gradient(135deg, #3498db 0%, #2c3e50 100%);
    box-shadow: 0 25px 60px rgba(52, 152, 219, 0.5);
    border-radius: 50%;
}

.procedure-card h3 {
    margin-bottom: 1.5rem;
    color: #716e65;
}

.procedure-card p {
    font-size: 1rem;
    line-height: 1.7;
    color: #4a5568;
}

/* About Section with Aurora Background */
.about-section {
    background:
        linear-gradient(135deg, rgba(149, 165, 166, 0.35) 0%, rgba(95, 106, 106, 0.25) 25%, rgba(236, 240, 241, 0.60) 50%, rgba(255, 255, 255, 0.75) 75%, rgba(44, 62, 80, 0.20) 100%),
        linear-gradient(180deg, #f1f5f9 0%, #e2e8f0 100%);
    position: relative;
    overflow: hidden;
}

.about-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse 800px 700px at 70% 30%, rgba(113, 110, 101, 0.08) 0%, transparent 45%),
        radial-gradient(ellipse 600px 800px at 30% 80%, rgba(52, 152, 219, 0.06) 0%, transparent 40%),
        radial-gradient(ellipse 1000px 400px at 50% 10%, rgba(44, 62, 80, 0.04) 0%, transparent 50%);
    animation: auroraShift 28s ease-in-out infinite;
    pointer-events: none;
    z-index: 1;
}

.about-content {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: clamp(40px, 6vw, 60px);
    align-items: center;
}

.section-label {
    font-size: 0.9rem;
    color: #0451ae;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.specialty {
    font-size: 1.1rem;
    color: #716e65;
    font-weight: 500;
    margin-bottom: 2rem;
}

.about-image {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.about-image img {
    max-height: 65vh;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 20px 40px rgba(4, 81, 174, 0.25));
    border-radius: 20px;
    transition: transform 0.3s ease;
    position: relative;
    z-index: 1;
}

.about-image img:hover {
    transform: scale(1.02);
}

/* Background behind doctor's image to avoid floating look */
.about-image::before {
    content: '';
    position: absolute;
    inset: -16px;
    border-radius: 28px;
    background:
        linear-gradient(135deg, rgba(4, 81, 174, 0.08) 0%, rgba(113, 110, 101, 0.06) 100%),
        rgba(255, 255, 255, 0.85);
    box-shadow: 0 20px 60px rgba(4, 81, 174, 0.15), 0 8px 20px rgba(113, 110, 101, 0.10);
    border: 1px solid rgba(113, 110, 101, 0.12);
    z-index: 0;
}

@media (max-width: 768px) {
    .about-image::before {
        inset: -10px;
        border-radius: 22px;
    }
}

/* FAQ Section with Aurora Background */
.faq-section {
    padding: clamp(80px, 12vw, 120px) 0;
    position: relative;
    background:
        linear-gradient(135deg, rgba(236, 240, 241, 0.75) 0%, rgba(149, 165, 166, 0.25) 30%, rgba(255, 255, 255, 0.85) 60%, rgba(44, 62, 80, 0.12) 100%),
        linear-gradient(180deg, #f1f5f9 0%, #e2e8f0 100%);
    overflow: hidden;
}

.faq-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 900px 600px at 15% 25%, rgba(4, 81, 174, 0.08) 0%, transparent 55%),
        radial-gradient(ellipse 700px 500px at 85% 75%, rgba(113, 110, 101, 0.07) 0%, transparent 50%),
        radial-gradient(ellipse 1200px 800px at 50% 50%, rgba(52, 152, 219, 0.05) 0%, transparent 60%);
    animation: auroraShift 26s ease-in-out infinite;
    pointer-events: none;
    z-index: 1;
    opacity: .9;
}

.faq-section .container {
    position: relative;
    z-index: 2;
}

.faq-intro {
    font-size: 1.05rem;
    max-width: 780px;
    margin: -0.5rem auto 3rem;
    text-align: center;
    color: #4a5568;
    line-height: 1.7;
}

.faq-accordion {
    max-width: 900px;
    margin: 0 auto 4rem;
    display: flex;
    flex-direction: column;
    gap: clamp(16px, 2vw, 22px);
}

.faq-item {
    position: relative;
    border-radius: 28px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.92) 0%, rgba(248, 250, 252, 0.90) 100%);
    border: 1px solid rgba(113, 110, 101, 0.10);
    box-shadow: 0 12px 40px -10px rgba(4, 81, 174, 0.12), 0 2px 8px rgba(4, 81, 174, 0.05);
    overflow: hidden;
    transition: border-color .5s ease, box-shadow .5s ease, transform .6s cubic-bezier(.175, .885, .32, 1.275);
    backdrop-filter: blur(18px);
}

.faq-item::before {
    content: '';
    position: absolute;
    top: -40%;
    left: -10%;
    width: 140%;
    height: 180%;
    background: radial-gradient(circle at 30% 40%, rgba(4, 81, 174, 0.12), transparent 60%);
    opacity: 0;
    transform: translate3d(0, 30px, 0) scale(.9);
    transition: opacity .8s ease, transform 1s ease;
    pointer-events: none;
}

.faq-item.is-open {
    border-color: rgba(4, 81, 174, 0.35);
    box-shadow: 0 25px 70px -15px rgba(4, 81, 174, 0.28), 0 4px 12px rgba(4, 81, 174, 0.15);
    transform: translateY(-3px);
}

.faq-item.is-open::before {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
}

.faq-question {
    all: unset;
    cursor: pointer;
    width: 100%;
    display: flex;
    align-items: flex-start;
    gap: 1.4rem;
    padding: clamp(22px, 3vw, 30px) clamp(26px, 3.5vw, 40px);
    position: relative;
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(1.05rem, 1.4vw, 1.2rem);
    font-weight: 600;
    line-height: 1.4;
    color: #1a1a2e;
    transition: color .4s ease;
    box-sizing: border-box;
}

.faq-question-text {
    flex: 1;
    margin-top: 2px;
}

.faq-question:focus-visible {
    outline: 3px solid #0451ae;
    outline-offset: 4px;
    border-radius: 20px;
}

.faq-question:hover {
    color: #0451ae;
}

.faq-icon {
    width: 44px;
    height: 44px;
    min-width: 44px;
    flex-shrink: 0;
    border-radius: 16px;
    background: linear-gradient(135deg, #0451ae 0%, #716e65 100%);
    position: relative;
    box-shadow: 0 8px 24px rgba(4, 81, 174, 0.35), 0 2px 8px rgba(4, 81, 174, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform .6s cubic-bezier(.175, .885, .32, 1.275), background .6s ease, box-shadow .4s ease;
    z-index: 100;
    border: 2px solid rgba(255, 255, 255, 0.8);
}

.faq-icon::before,
.faq-icon::after {
    content: '';
    position: absolute;
    background: #fff;
    border-radius: 2px;
    transition: transform .5s ease, opacity .5s ease;
    z-index: 1;
}

.faq-icon::before {
    width: 18px;
    height: 3px;
    transform: translateZ(0);
}

.faq-icon::after {
    width: 3px;
    height: 18px;
    transform: translateZ(0);
}

.faq-item.is-open .faq-icon {
    transform: rotate(180deg) scale(1.05);
    background: linear-gradient(135deg, #3498db 0%, #2c3e50 100%);
}

.faq-item.is-open .faq-icon::after {
    transform: scaleY(0);
    opacity: 0;
}

.faq-answer {
    padding: 0 clamp(26px, 3.5vw, 40px) clamp(26px, 3vw, 36px);
    font-size: 1rem;
    line-height: 1.7;
    color: #4a5568;
    position: relative;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 1.2s cubic-bezier(.4, .0, .2, 1), opacity .8s ease .2s, filter 1s ease .3s;
    filter: blur(6px);
}

.faq-item.is-open .faq-answer {
    opacity: 1;
    max-height: 800px;
    filter: blur(0);
}

.faq-answer p {
    margin: 0;
    font-size: 1.02rem;
    color: #444;
}

.faq-cta {
    margin-top: 1rem;
}

.faq-cta .btn-secondary {
    padding: 18px 42px;
}

@media (max-width: 768px) {
    /* Fix carousel for mobile */
    .carousel-wrapper {
        height: 400px;
    }

    .carousel-slide img {
        height: 100% !important;
        object-fit: contain !important;
        object-position: center !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    .carousel-indicators {
        gap: 6px;
        bottom: 10px;
    }

    .carousel-indicator {
        width: 8px;
        height: 8px;
    }

    .faq-question {
        padding: 22px 26px 20px;
        font-size: 1.05rem;
    }

    .faq-icon {
        width: 40px;
        height: 40px;
        border-radius: 14px;
    }

    .faq-answer {
        padding: 0 26px 28px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .faq-answer {
        transition: none !important;
        max-height: none !important;
        opacity: 1 !important;
        filter: none !important;
    }

    .faq-item,
    .faq-icon {
        transition: none !important;
    }
}

/* Contact Section with Aurora Background */
.contact-section {
    background:
        linear-gradient(135deg, rgba(44, 62, 80, 0.25) 0%, rgba(52, 152, 219, 0.15) 25%, rgba(149, 165, 166, 0.30) 50%, rgba(236, 240, 241, 0.70) 75%, rgba(255, 255, 255, 0.60) 100%),
        linear-gradient(180deg, #cbd5e1 0%, #e2e8f0 100%);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.contact-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse 1000px 800px at 40% 20%, rgba(4, 81, 174, 0.10) 0%, transparent 45%),
        radial-gradient(ellipse 700px 600px at 80% 70%, rgba(44, 62, 80, 0.08) 0%, transparent 40%),
        radial-gradient(ellipse 900px 700px at 20% 90%, rgba(113, 110, 101, 0.06) 0%, transparent 50%);
    animation: auroraShift 26s ease-in-out infinite reverse;
    pointer-events: none;
    z-index: 1;
}

.contact-section h2 {
    margin-bottom: 1.5rem;
}

.contact-text {
    font-size: 1.2rem;
    color: #716e65;
    margin-bottom: 3rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.8;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
}

/* Footer */
.site-footer {
    background: linear-gradient(135deg, #1a1a2e 0%, #716e65 100%);
    color: #fff;
    padding: clamp(40px, 6vw, 60px) 0 clamp(20px, 3vw, 30px);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: clamp(30px, 4vw, 40px);
    align-items: center;
    margin-bottom: 2rem;
}

.footer-logo img {
    height: 60px;
    filter: brightness(0) invert(1);
}

.footer-address p {
    color: #bcbdb6;
    line-height: 1.7;
    font-size: 1rem;
}

.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: #bcbdb6;
    transition: all 0.3s ease;
    margin: 0 10px;
}

.footer-social a:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid rgba(188, 189, 182, 0.2);
    padding-top: 2rem;
    text-align: center;
}

.footer-bottom p {
    color: #bcbdb6;
    font-size: 0.9rem;
}

/* Utility classes */
.text-center {
    text-align: center;
}

/* Animation classes */
.reveal-element {
    opacity: 0;
    transform: translateY(60px) scale(0.95);
    transition: all 1.2s ease;
}

.reveal-element.revealed {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Responsive Design */
@media (max-width: 768px) {

    /* Header optimizations for mobile */
    .site-header {
        padding: 15px 0;
        background: rgba(255, 255, 255, 0.92);
    }

    .site-header.scrolled {
        background: rgba(255, 255, 255, 0.8);
        backdrop-filter: blur(25px);
        -webkit-backdrop-filter: blur(25px);
    }

    .header-content {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 15px;
    }

    .logo img {
        height: 40px;
        filter: drop-shadow(0 1px 6px rgba(4, 81, 174, 0.1));
    }

    .site-header.scrolled .logo img {
        filter: drop-shadow(0 2px 10px rgba(4, 81, 174, 0.15));
    }

    /* Hide navigation menu on mobile */
    .main-nav {
        display: none;
    }

    /* Show CTA button on mobile */
    .header-cta {
        display: block;
    }

    .header-cta .btn-primary {
        padding: 12px 20px;
        font-size: 0.9rem;
        border-radius: 25px;
    }

    /* Hero section mobile optimization */
    .hero-section {
        min-height: 100vh;
        padding: 100px 0 50px;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        text-align: center;
    }

    .hero-text h1 {
        font-size: clamp(1.8rem, 5vw, 2.3rem);
        margin-bottom: 1.2rem;
        line-height: 1.2;
    }

    .hero-text .subtitle {
        font-size: 1rem;
        margin-bottom: 1.5rem;
        line-height: 1.6;
    }

    /* Compact form for mobile */
    .hero-form {
        padding: 25px 20px;
        margin-top: 0;
    }

    .hero-form h3 {
        font-size: 1.25rem;
        margin-bottom: 1.5rem;
    }

    .form-group {
        margin-bottom: 1.2rem;
    }

    .form-group input,
    .form-group select {
        padding: 14px 16px;
        font-size: 0.95rem;
    }

    .btn-form {
        padding: 16px;
        font-size: 1rem;
    }

    /* Other responsive adjustments */
    .highlights-grid,
    .procedures-grid {
        grid-template-columns: 1fr;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .carousel-wrapper {
        height: 400px;
    }

    .carousel-slide img {
        height: 100%;
        width: 100%;
        object-fit: contain;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    /* Extra compact header for small phones */
    .site-header {
        padding: 10px 0;
        background: rgba(255, 255, 255, 0.9);
    }

    .site-header.scrolled {
        background: rgba(255, 255, 255, 0.75);
        backdrop-filter: blur(30px);
        -webkit-backdrop-filter: blur(30px);
    }

    .logo img {
        height: 35px;
        filter: drop-shadow(0 1px 4px rgba(4, 81, 174, 0.08));
    }

    .site-header.scrolled .logo img {
        filter: drop-shadow(0 2px 8px rgba(4, 81, 174, 0.12));
    }

    /* Compact CTA button for small screens */
    .header-cta .btn-primary {
        padding: 8px 14px;
        font-size: 0.8rem;
        border-radius: 20px;
        box-shadow: 0 2px 12px rgba(4, 81, 174, 0.2);
    }

    .header-cta .btn-primary:hover {
        transform: translateY(-1px);
        box-shadow: 0 4px 18px rgba(4, 81, 174, 0.3);
    }

    /* Hero section optimization for small phones */
    .hero-section {
        min-height: 100vh;
        padding: 90px 0 40px;
    }

    .hero-content {
        gap: 2rem;
    }

    .hero-text h1 {
        font-size: 1.6rem;
        margin-bottom: 1rem;
        line-height: 1.15;
    }

    .hero-text .subtitle {
        font-size: 0.95rem;
        margin-bottom: 1.2rem;
        line-height: 1.5;
    }

    /* Very compact form for small phones */
    .hero-form,
    .contact-form {
        padding: 20px 16px;
        max-width: 100%;
        border-radius: 16px;
    }

    .hero-form h3 {
        font-size: 1.15rem;
        margin-bottom: 1.2rem;
    }

    .form-group {
        margin-bottom: 1rem;
    }

    .form-group label {
        font-size: 0.9rem;
        margin-bottom: 6px;
    }

    .form-group input,
    .form-group select {
        padding: 12px 14px;
        font-size: 0.9rem;
        border-radius: 12px;
    }

    .btn-form,
    .btn-secondary {
        padding: 14px 28px;
        font-size: 0.95rem;
        border-radius: 30px;
    }

    .carousel-wrapper {
        height: 320px;
    }

    .carousel-slide img {
        height: 100%;
        object-fit: contain;
        object-position: center;
        width: 100%;
        max-width: 100%;
    }

    /* Reduce spacing on very small screens */
    .authority-section,
    .results-section,
    .procedures-section,
    .about-section,
    .contact-section {
        padding: 60px 0;
    }
}

/* Accessibility and performance */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Extra small screens optimization */
@media (max-width: 360px) {
    .container {
        padding: 0 12px;
    }

    .site-header {
        padding: 8px 0;
        background: rgba(255, 255, 255, 0.88);
    }

    .site-header.scrolled {
        background: rgba(255, 255, 255, 0.7);
        backdrop-filter: blur(25px);
        -webkit-backdrop-filter: blur(25px);
    }

    .logo img {
        height: 30px;
        filter: drop-shadow(0 1px 3px rgba(4, 81, 174, 0.06));
    }

    .site-header.scrolled .logo img {
        filter: drop-shadow(0 1px 6px rgba(4, 81, 174, 0.1));
    }

    .header-cta .btn-primary {
        padding: 6px 10px;
        font-size: 0.75rem;
        border-radius: 16px;
    }

    .hero-section {
        padding: 80px 0 30px;
    }

    .hero-text h1 {
        font-size: 1.4rem;
        line-height: 1.1;
    }

    .hero-text .subtitle {
        font-size: 0.9rem;
        line-height: 1.4;
    }

    .hero-form {
        padding: 16px 12px;
    }

    .hero-form h3 {
        font-size: 1rem;
        margin-bottom: 1rem;
    }
}

/* Landscape orientation optimization for mobile devices */
@media (max-width: 896px) and (max-height: 500px) and (orientation: landscape) {
    .site-header {
        padding: 5px 0;
    }

    .logo img {
        height: 28px;
    }

    .main-nav ul {
        gap: 10px;
    }

    .main-nav a {
        font-size: 0.75rem;
        padding: 3px 0;
    }

    .hero-section {
        min-height: 100vh;
        padding: 60px 0 25px;
    }

    .hero-content {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
        align-items: center;
    }

    .hero-text h1 {
        font-size: 1.4rem;
        margin-bottom: 0.8rem;
        line-height: 1.1;
    }

    .hero-text .subtitle {
        font-size: 0.85rem;
        margin-bottom: 1rem;
        line-height: 1.4;
    }

    .hero-form {
        padding: 15px;
        max-height: 70vh;
        overflow-y: auto;
    }

    .hero-form h3 {
        font-size: 1rem;
        margin-bottom: 1rem;
    }

    .form-group {
        margin-bottom: 0.8rem;
    }

    .form-group input,
    .form-group select {
        padding: 10px 12px;
        font-size: 0.85rem;
    }

    .btn-form {
        padding: 12px 24px;
        font-size: 0.9rem;
    }
}

/* Focus states for accessibility */
button:focus,
input:focus,
select:focus,
a:focus {
    outline: 2px solid #0451ae;
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {

    .hero-form,
    .testimonial-card,
    .procedure-card,
    .highlight-item {
        border: 2px solid #1a1a2e;
    }
}

/* Visual effects for special elements */
.home-title {
    background: linear-gradient(135deg,
            #1a1a2e 0%,
            #716e65 25%,
            #0451ae 50%,
            #0066ff 100%);
    background-size: 400% 400%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: homeShimmer 6s ease-in-out infinite;
}

@keyframes homeShimmer {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

.holographic {
    background: linear-gradient(45deg,
            #1a1a2e 0%,
            #0451ae 25%,
            #716e65 50%,
            #0066ff 75%,
            #1a1a2e 100%);
    background-size: 400% 400%;
    animation: holographicShift 8s ease infinite;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

@keyframes holographicShift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.home-glow {
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle,
            rgba(4, 81, 174, 0.08) 0%,
            rgba(113, 110, 101, 0.06) 30%,
            transparent 80%);
    filter: blur(120px);
    animation: homeGlowPulse 12s ease-in-out infinite;
    pointer-events: none;
}

/* Standard Aurora Animation for Other Sections */
@keyframes auroraShift {

    0%,
    100% {
        transform: translateX(0%) translateY(0%) scale(1);
        opacity: 0.6;
    }

    25% {
        transform: translateX(-2%) translateY(-1%) scale(1.05);
        opacity: 0.8;
    }

    50% {
        transform: translateX(1%) translateY(2%) scale(0.95);
        opacity: 1;
    }

    75% {
        transform: translateX(2%) translateY(-0.5%) scale(1.02);
        opacity: 0.7;
    }
}

@keyframes homeGlowPulse {

    0%,
    100% {
        opacity: 0.4;
        transform: scale(1) rotate(0deg);
    }

    50% {
        opacity: 0.7;
        transform: scale(1.2) rotate(180deg);
    }
}

/* Aurora Background Z-index Fix for Content */
.hero-section .container,
.authority-section .container,
.results-section .container,
.procedures-section .container,
.about-section .container,
.contact-section .container {
    position: relative;
    z-index: 2;
}

/* Performance optimizations for mobile */
@media (max-width: 768px) {
    .home-glow {
        width: 400px;
        height: 400px;
    }

    /* Reduce aurora intensity on mobile for better performance */
    .authority-section::before,
    .results-section::before,
    .procedures-section::before,
    .about-section::before,
    .contact-section::before {
        opacity: 0.5;
        animation-duration: 40s;
    }
}

/* High performance mode for older devices */
@media (max-width: 480px) and (max-resolution: 150dpi) {

    .home-glow,
    .blob {
        display: none;
    }

    /* Disable aurora backgrounds on very low-end devices */
    .hero-section::before,
    .authority-section::before,
    .results-section::before,
    .procedures-section::before,
    .about-section::before,
    .contact-section::before {
        display: none;
    }

    .home-title,
    .holographic {
        background: #1a1a2e;
        -webkit-background-clip: initial;
        -webkit-text-fill-color: initial;
        background-clip: initial;
        animation: none;
    }
}

/* Reduced Motion Support for Aurora */
@media (prefers-reduced-motion: reduce) {

    .authority-section::before,
    .results-section::before,
    .procedures-section::before,
    .about-section::before,
    .contact-section::before {
        animation: none;
        opacity: 0.3;
    }
}

/* Partícu
las flutuantes médicas */
.hero-section .medical-particles {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.hero-section .medical-particles::before {
    content: '';
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(4, 81, 174, 0.3);
    border-radius: 50%;
    top: 20%;
    left: 10%;
    animation: floatParticle1 15s ease-in-out infinite;
    box-shadow:
        200px 100px 0 rgba(113, 110, 101, 0.2),
        400px 300px 0 rgba(52, 152, 219, 0.25),
        600px 150px 0 rgba(4, 81, 174, 0.2),
        800px 400px 0 rgba(113, 110, 101, 0.15);
}

.hero-section .medical-particles::after {
    content: '';
    position: absolute;
    width: 6px;
    height: 6px;
    background: rgba(113, 110, 101, 0.25);
    border-radius: 50%;
    top: 60%;
    right: 15%;
    animation: floatParticle2 20s ease-in-out infinite;
    box-shadow:
        -150px -80px 0 rgba(4, 81, 174, 0.2),
        -350px 120px 0 rgba(52, 152, 219, 0.2),
        -500px -200px 0 rgba(113, 110, 101, 0.15),
        -700px 50px 0 rgba(4, 81, 174, 0.18);
}

@keyframes floatParticle1 {

    0%,
    100% {
        transform: translateY(0) translateX(0) scale(1);
        opacity: 0.3;
    }

    25% {
        transform: translateY(-30px) translateX(20px) scale(1.2);
        opacity: 0.6;
    }

    50% {
        transform: translateY(-10px) translateX(-15px) scale(0.8);
        opacity: 0.4;
    }

    75% {
        transform: translateY(-40px) translateX(10px) scale(1.1);
        opacity: 0.5;
    }
}

@keyframes floatParticle2 {

    0%,
    100% {
        transform: translateY(0) translateX(0) scale(1);
        opacity: 0.25;
    }

    33% {
        transform: translateY(25px) translateX(-20px) scale(1.3);
        opacity: 0.5;
    }

    66% {
        transform: translateY(-20px) translateX(25px) scale(0.9);
        opacity: 0.35;
    }
}

/* Ondas de energia sutil */
.hero-section .energy-waves {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(ellipse 800px 200px at 0% 50%, rgba(4, 81, 174, 0.03) 0%, transparent 50%),
        radial-gradient(ellipse 600px 300px at 100% 30%, rgba(113, 110, 101, 0.02) 0%, transparent 50%);
    animation: energyFlow 25s ease-in-out infinite;
}

@keyframes energyFlow {

    0%,
    100% {
        transform: translateX(0) scaleY(1);
        opacity: 0.5;
    }

    25% {
        transform: translateX(50px) scaleY(1.2);
        opacity: 0.7;
    }

    50% {
        transform: translateX(-30px) scaleY(0.8);
        opacity: 0.4;
    }

    75% {
        transform: translateX(20px) scaleY(1.1);
        opacity: 0.6;
    }
}

/* Partículas azuis emanando do Dr. André */
.hero-doctor-particles {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 800px;
    height: 800px;
    z-index: 0;
    pointer-events: none;
}

.hero-doctor-particles::before {
    content: '';
    position: absolute;
    width: 6px;
    height: 6px;
    background: rgba(4, 81, 174, 0.6);
    border-radius: 50%;
    top: 40%;
    left: 30%;
    animation: particleFloat1 8s ease-in-out infinite;
    box-shadow:
        100px 50px 0 rgba(4, 81, 174, 0.4),
        200px -30px 0 rgba(52, 152, 219, 0.5),
        -80px 120px 0 rgba(4, 81, 174, 0.3),
        150px 200px 0 rgba(52, 152, 219, 0.4),
        -120px -60px 0 rgba(4, 81, 174, 0.5),
        300px 80px 0 rgba(52, 152, 219, 0.3),
        -200px 180px 0 rgba(4, 81, 174, 0.4),
        250px -100px 0 rgba(52, 152, 219, 0.6);
}

.hero-doctor-particles::after {
    content: '';
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(52, 152, 219, 0.5);
    border-radius: 50%;
    top: 60%;
    right: 35%;
    animation: particleFloat2 10s ease-in-out infinite;
    box-shadow:
        -90px -40px 0 rgba(4, 81, 174, 0.4),
        -180px 70px 0 rgba(52, 152, 219, 0.3),
        60px -90px 0 rgba(4, 81, 174, 0.5),
        -140px 150px 0 rgba(52, 152, 219, 0.4),
        100px 100px 0 rgba(4, 81, 174, 0.3),
        -250px -20px 0 rgba(52, 152, 219, 0.5),
        180px -150px 0 rgba(4, 81, 174, 0.4),
        -300px 120px 0 rgba(52, 152, 219, 0.3);
}

@keyframes particleFloat1 {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.6;
    }

    25% {
        transform: translate(20px, -30px) scale(1.2);
        opacity: 0.8;
    }

    50% {
        transform: translate(-15px, -10px) scale(0.8);
        opacity: 0.4;
    }

    75% {
        transform: translate(30px, -20px) scale(1.1);
        opacity: 0.7;
    }
}

@keyframes particleFloat2 {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.5;
    }

    33% {
        transform: translate(-25px, 20px) scale(1.3);
        opacity: 0.8;
    }

    66% {
        transform: translate(15px, -25px) scale(0.9);
        opacity: 0.3;
    }
}

/* Ajustes das partículas para mobile */
@media (max-width: 768px) {
    .hero-doctor-particles {
        display: none;
        /* Remove partículas no mobile para não interferir */
    }

    /* Remove efeitos de background do doutor no mobile */
    .hero-doctor-bg::before,
    .hero-doctor-bg::after {
        display: none;
    }
}

@media (max-width: 480px) {
    .hero-doctor-particles {
        display: none;
    }
}
