/* CSS Principal - Instituto Regenere */

/* ==========================================
   1. Design System & Variáveis Globais
   ========================================== */
:root {
    /* Paleta inspirada na logo e no posicionamento premium */
    --color-primary-dark: #1b3327;      /* Verde floresta profundo */
    --color-primary: #2b4c3e;           /* Verde floresta institucional */
    --color-primary-light: #416856;     /* Verde médio para hover */
    --color-sage: #768564;              /* Sage/Oliva da folha do logo */
    --color-sage-light: #e4eadc;        /* Sage suave para fundos secundários */
    --color-sage-ultra-light: #f3f6f1;  /* Fundo sutil */
    --color-gold: #c5a059;              /* Dourado areia/premium para destaques */
    --color-gold-hover: #b48e47;        /* Dourado mais escuro para hover */
    
    /* Cores de Suporte */
    --color-text-dark: #1b2621;         /* Quase preto com toque verde */
    --color-text-muted: #5e6f65;        /* Cinza esverdeado opaco */
    --color-border: #d4ded8;
    --color-white: #ffffff;
    --color-whatsapp: #25d366;          /* Cor oficial do WhatsApp */
    --color-whatsapp-hover: #20ba5a;
    --color-error: #e53935;             /* Vermelho erro sutil */
    
    /* Sombras e Bordas */
    --shadow-sm: 0 4px 12px rgba(27, 51, 39, 0.04);
    --shadow-md: 0 10px 30px rgba(27, 51, 39, 0.06);
    --shadow-lg: 0 20px 48px rgba(27, 51, 39, 0.1);
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 28px;
    
    /* Fontes */
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Outfit', sans-serif;
    
    /* Transições */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Layout */
    --container-width: 1200px;
}

/* ==========================================
   2. Reset & Estilos de Base
   ========================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    outline: none;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-sage-ultra-light);
    color: var(--color-text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* ==========================================
   3. Componentes de Tipografia e Botões
   ========================================== */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.25;
}

.section-tag {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--color-gold);
    margin-bottom: 12px;
}

.section-title {
    font-size: 2.2rem; /* Alinhado ao padrão do hero */
    color: var(--color-primary-dark);
    margin-bottom: 16px;
}




.section-subtitle {
    font-size: 1.15rem;
    color: var(--color-text-muted);
    max-width: 600px;
    margin: 0 auto 48px;
}

.text-center { text-align: center; }
.text-white { color: var(--color-white); }
.text-gold { color: var(--color-gold); }
.font-bold { font-weight: 700; }

/* Classes de Utilidade de Fundo */
.bg-primary-dark { background-color: var(--color-primary-dark) !important; }
.bg-sage-light { background-color: var(--color-sage-light) !important; }
.bg-sage-ultra-light { background-color: var(--color-sage-ultra-light) !important; }

/* Botões */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition-fast);
    gap: 10px;
}

.btn-sm {
    padding: 10px 20px;
    font-size: 0.9rem;
}

.btn-lg {
    padding: 16px 36px;
    font-size: 1.05rem;
}

.btn-primary {
    background-color: var(--color-primary);
    color: var(--color-white);
}

.btn-primary:hover {
    background-color: var(--color-primary-light);
    transform: translateY(-2px);
}

.btn-gold {
    background-color: var(--color-gold);
    color: var(--color-white);
}

.btn-gold:hover {
    background-color: var(--color-gold-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(197, 160, 89, 0.25);
}

.btn-outline {
    background-color: transparent;
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.btn-outline:hover {
    background-color: var(--color-primary);
    color: var(--color-white);
    transform: translateY(-2px);
}

.btn-block {
    display: flex;
    width: 100%;
}

.btn-text {
    background: none;
    border: none;
    color: var(--color-primary);
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    padding: 0;
    transition: var(--transition-fast);
}

.btn-text:hover {
    color: var(--color-gold);
    padding-left: 4px;
}

.icon-svg {
    width: 20px;
    height: 20px;
}

/* Grids */
.grid {
    display: grid;
    gap: 32px;
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

.section-padding {
    padding: 96px 0;
}

/* ==========================================
   4. Cabeçalho (Header / Navbar)
   ========================================== */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(243, 246, 241, 0.85); /* Vidro translúcido */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(27, 51, 39, 0.06);
    transition: var(--transition-smooth);
}

.main-header.scrolled {
    padding: 10px 0;
    background-color: var(--color-white);
    box-shadow: var(--shadow-sm);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
    transition: var(--transition-smooth);
}

.main-header.scrolled .header-container {
    height: 70px;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-img {
    height: 48px;
    width: auto;
    object-fit: contain;
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.45rem;
    font-weight: 700;
    color: var(--color-primary-dark);
}

.logo-text .accent-text {
    color: var(--color-sage);
}

.nav-list {
    display: flex;
    gap: 28px;
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--color-primary-dark);
    position: relative;
    padding: 8px 0;
}

.nav-link:hover, .nav-link.active {
    color: var(--color-gold);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-gold);
    transition: var(--transition-fast);
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
    z-index: 1100;
}

.hamburger-bar {
    width: 25px;
    height: 2px;
    background-color: var(--color-primary-dark);
    transition: var(--transition-fast);
}

/* ==========================================
   5. Hero Section
   ========================================== */
.hero-section {
    position: relative;
    padding: 160px 0 100px;
    background: linear-gradient(135deg, #f3f6f1 0%, #e4eadc 100%);
    overflow: hidden;
}

.hero-blobs {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.hero-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.45;
}

.hero-blob.blob-1 {
    width: 400px;
    height: 400px;
    background-color: var(--color-sage-light);
    top: -100px;
    right: -100px;
}

.hero-blob.blob-2 {
    width: 300px;
    height: 300px;
    background-color: #d8e5d2;
    bottom: -50px;
    left: -50px;
}

.hero-container {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 48px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-content {
    animation: fadeInUp 1s ease;
}

.hero-tag {
    display: inline-block;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--color-gold);
    margin-bottom: 12px;
}

.hero-title {
    font-size: 2.2rem; /* Reduzido para caber em exatamente 2 linhas */
    color: var(--color-primary-dark);
    margin-bottom: 20px;
}

.hero-title .highlight {
    color: var(--color-primary);
    position: relative;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--color-text-muted);
    margin-bottom: 36px;
    max-width: 580px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    margin-bottom: 48px;
}

.hero-badges {
    display: flex;
    gap: 24px;
    border-top: 1px solid rgba(27, 51, 39, 0.08);
    padding-top: 24px;
    flex-wrap: wrap;
}

.badge-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-primary-dark);
}

.badge-icon {
    width: 18px;
    height: 18px;
    color: var(--color-gold);
}

/* Imagens do Hero */
.hero-media {
    position: relative;
    animation: fadeInRight 1s ease;
}

.image-wrapper {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 4/3;
    box-shadow: var(--shadow-lg);
}

.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.overlay-card {
    position: absolute;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    padding: 16px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: 220px;
}

.overlay-card h4 {
    font-size: 0.95rem;
    color: var(--color-primary-dark);
}

.overlay-card p {
    font-size: 0.75rem;
    color: var(--color-text-muted);
}

.card-icon-area {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--color-white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: var(--shadow-sm);
}

.card-1 {
    bottom: 24px;
    left: 24px;
    animation: floatAnim 4s infinite ease-in-out;
}

.card-2 {
    top: 24px;
    right: 24px;
    animation: floatAnim 4s infinite ease-in-out 2s;
}

/* ==========================================
   6. Seção Diferenciais Rápidos
   ========================================== */
.highlights-section {
    position: relative;
    margin-top: -40px;
    z-index: 10;
    padding-bottom: 40px;
}

.highlight-card {
    background-color: var(--color-white);
    border-radius: var(--radius-md);
    padding: 40px 32px;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(27, 51, 39, 0.03);
    transition: var(--transition-smooth);
}

.highlight-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.highlight-icon {
    width: 64px;
    height: 64px;
    background-color: var(--color-sage-ultra-light);
    color: var(--color-primary);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.highlight-icon svg {
    width: 28px;
    height: 28px;
}

.highlight-card h3 {
    font-size: 1.6rem; /* Ajustado para padrão premium coerente com o hero */
    color: var(--color-primary-dark);
    margin-bottom: 16px;
}

.highlight-card p {
    font-size: 0.95rem;
    color: var(--color-text-muted);
}

/* ==========================================
   7. Seção Sobre Nós
   ========================================== */
.about-section {
    background-color: var(--color-white);
}

.about-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 800px;
    margin: 0 auto;
}

.about-text-lead {
    font-size: 1.15rem; /* Ajustado para padrão do hero */
    color: var(--color-primary);
    font-weight: 500;
    margin-bottom: 24px;
}

.about-info p {
    margin-bottom: 16px;
    color: var(--color-text-muted);
}

.about-metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 32px;
    border-top: 1px solid var(--color-border);
    padding-top: 32px;
}

.metric-item {
    display: flex;
    flex-direction: column;
}

.metric-num {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    color: var(--color-gold);
    font-weight: 700;
    line-height: 1;
    margin-bottom: 8px;
}

.metric-label {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--color-text-dark);
}

.about-visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-img-container {
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
    width: 90%;
    aspect-ratio: 4/5;
}

.about-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.floating-badge {
    position: absolute;
    bottom: 32px;
    right: -20px;
    background-color: var(--color-primary-dark);
    color: var(--color-white);
    padding: 20px 28px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
    max-width: 250px;
}

.floating-badge .badge-title {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-gold);
    margin-bottom: 4px;
}

.floating-badge .badge-desc {
    font-size: 0.8rem;
    opacity: 0.85;
}

/* ==========================================
   8. Seção Especialidades (Tipos de Feridas)
   ========================================== */
.specialties-section {
    background-color: var(--color-sage-ultra-light);
}

.specialty-card {
    background-color: var(--color-white);
    border-radius: var(--radius-md);
    padding: 40px 32px;
    border: 1px solid rgba(27, 51, 39, 0.02);
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.specialty-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
    border-color: rgba(197, 160, 89, 0.3);
}

.specialty-icon-area {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-sm);
    background-color: var(--color-sage-light);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.specialty-icon-area svg {
    width: 28px;
    height: 28px;
    color: var(--color-primary);
}

.specialty-card h3 {
    font-size: 1.6rem; /* Ajustado para padrão premium */
    color: var(--color-primary-dark);
    margin-bottom: 12px;
}

.specialty-card p {
    font-size: 0.95rem; /* Ajustado para padrão premium */
    color: var(--color-text-muted);
    flex-grow: 1;
    margin-bottom: 20px;
}

/* ==========================================
   9. Seção Terapias Avançadas
   ========================================== */
.therapies-section {
    background-color: var(--color-sage-light);
    position: relative;
}

.therapy-card {
    background-color: var(--color-white);
    border-radius: var(--radius-md);
    padding: 40px 32px;
    border: 1px solid rgba(27, 51, 39, 0.05);
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
}

.therapy-card:hover {
    box-shadow: var(--shadow-md);
}

.therapy-badge {
    align-self: flex-start;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--color-gold);
    background-color: rgba(197, 160, 89, 0.1);
    padding: 6px 14px;
    border-radius: 100px;
    margin-bottom: 20px;
}

.therapy-card h3 {
    font-size: 1.6rem; /* Ajustado para padrão premium */
    color: var(--color-primary-dark);
    margin-bottom: 16px;
}

.therapy-card p {
    font-size: 0.95rem;
    color: var(--color-text-muted);
    margin-bottom: 24px;
}

.therapy-bullets {
    margin-top: auto;
    border-top: 1px solid var(--color-border);
    padding-top: 20px;
}

.therapy-bullets li {
    font-size: 0.9rem;
    color: var(--color-text-dark);
    margin-bottom: 8px;
    position: relative;
    padding-left: 20px;
}

.therapy-bullets li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--color-sage);
    font-weight: 700;
}

/* Technical Box */
.technical-highlight-box {
    margin-top: 56px;
    background-color: var(--color-primary-dark);
    border-radius: var(--radius-md);
    padding: 40px;
    color: var(--color-white);
}

.tech-highlight-content h4 {
    font-size: 1.6rem; /* Ajustado para padrão premium */
    color: var(--color-gold);
    margin-bottom: 8px;
}

.tech-highlight-content p {
    font-size: 0.95rem; /* Ajustado para padrão premium */
    opacity: 0.9;
    line-height: 1.6;
}

/* ==========================================
   10. Seção Estrutura (Espaço Físico)
   ========================================== */
.gallery-section {
    background-color: var(--color-white);
}

.gallery-item {
    background-color: var(--color-sage-ultra-light);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition-smooth);
}

.gallery-img-wrapper {
    overflow: hidden;
    aspect-ratio: 16/9;
}

.gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.gallery-item:hover .gallery-img {
    transform: scale(1.05);
}

.gallery-info {
    padding: 32px;
}

.gallery-info h3 {
    font-size: 1.4rem;
    color: var(--color-primary-dark);
    margin-bottom: 12px;
}

.gallery-info p {
    font-size: 0.95rem;
    color: var(--color-text-muted);
}

/* ==========================================
   11. Seção Corpo Clínico (Equipe)
   ========================================== */
.team-section {
    background-color: var(--color-sage-ultra-light);
}

.team-card {
    background-color: var(--color-white);
    border-radius: var(--radius-md);
    padding: 48px 32px;
    border: 1px solid rgba(27, 51, 39, 0.03);
    transition: var(--transition-smooth);
}

.team-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
}

.team-avatar-wrapper {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    margin: 0 auto 24px;
    overflow: hidden;
    border: 4px solid var(--color-sage-light);
    box-shadow: var(--shadow-sm);
}

.team-avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-info h3 {
    font-size: 1.6rem; /* Ajustado para padrão premium */
    color: var(--color-primary-dark);
    margin-bottom: 4px;
}

.team-role {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-gold);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
}

.team-desc {
    font-size: 0.95rem; /* Ajustado para padrão premium */
    color: var(--color-text-muted);
    line-height: 1.6;
}

/* ==========================================
   12. Seção Perguntas Frequentes (FAQ)
   ========================================== */
.faq-section {
    background-color: var(--color-white);
}

.faq-accordion-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background-color: var(--color-sage-ultra-light);
    border-radius: var(--radius-sm);
    margin-bottom: 16px;
    overflow: hidden;
    border: 1px solid rgba(27, 51, 39, 0.04);
}

.faq-question {
    width: 100%;
    padding: 24px 32px;
    background: none;
    border: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--color-primary-dark);
    text-align: left;
    cursor: pointer;
    transition: var(--transition-fast);
}

.faq-question:hover {
    color: var(--color-gold);
}

.faq-icon {
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--color-sage);
    transition: var(--transition-fast);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s cubic-bezier(0, 1, 0, 1);
    padding: 0 32px;
}

.faq-answer p {
    padding-bottom: 24px;
    color: var(--color-text-muted);
    font-size: 0.95rem;
    line-height: 1.65;
}

.faq-item.active .faq-answer {
    max-height: 1000px; /* Grande o suficiente para suportar textos longos */
    transition: max-height 0.4s cubic-bezier(1, 0, 1, 0);
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
    color: var(--color-gold);
}

/* ==========================================
   13. Seção Formulário (Funil Qualificado)
   ========================================== */
.contact-section {
    position: relative;
    overflow: hidden;
    background-color: var(--color-primary-dark);
}

.contact-grid-custom {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
}

.contact-info-text {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.contact-desc {
    font-size: 1.1rem;
    opacity: 0.85;
    margin-bottom: 0;
}

/* Card do Formulário */
.contact-form-wrapper {
    background-color: var(--color-white);
    border-radius: var(--radius-lg);
    padding: 48px;
    color: var(--color-text-dark);
    width: 100%;
    max-width: 640px;
}

.form-title {
    font-size: 1.6rem;
    color: var(--color-primary-dark);
    margin-bottom: 8px;
}

.form-subtitle {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 32px;
}

.whatsapp-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-primary-dark);
}

.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid var(--color-border);
    background-color: var(--color-sage-ultra-light);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--color-text-dark);
    transition: var(--transition-fast);
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    border-color: var(--color-gold);
    background-color: var(--color-white);
    box-shadow: 0 0 0 3px rgba(197, 160, 89, 0.15);
}

.form-group select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%235e6f65' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 18px center;
    background-size: 16px;
    padding-right: 48px;
    cursor: pointer;
}

.error-msg {
    display: none;
    font-size: 0.75rem;
    color: var(--color-error);
    margin-top: 4px;
    font-weight: 500;
}

.form-group.invalid input, .form-group.invalid select {
    border-color: var(--color-error);
    background-color: rgba(229, 57, 53, 0.02);
}

.form-group.invalid .error-msg {
    display: block;
}

.form-disclaimer {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    line-height: 1.4;
    margin-top: 12px;
}

.btn-submit {
    margin-top: 8px;
}

.btn-icon {
    width: 22px;
    height: 22px;
}

/* ==========================================
   14. Modal Elegante de Especialidades
   ========================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    background-color: rgba(27, 51, 39, 0.5);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-smooth);
}

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

.modal-container {
    background-color: var(--color-white);
    border-radius: var(--radius-lg);
    width: 90%;
    max-width: 600px;
    overflow: hidden;
    position: relative;
    transform: translateY(40px);
    transition: transform var(--transition-smooth);
}

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

.modal-close {
    position: absolute;
    top: 24px;
    right: 24px;
    background: none;
    border: none;
    font-size: 2rem;
    line-height: 1;
    color: var(--color-text-muted);
    cursor: pointer;
    z-index: 10;
    transition: var(--transition-fast);
}

.modal-close:hover {
    color: var(--color-error);
}

.modal-header-visual {
    background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary) 100%);
    padding: 40px 32px 32px;
    color: var(--color-white);
    display: flex;
    align-items: center;
    gap: 20px;
}

.modal-icon {
    width: 64px;
    height: 64px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-icon svg {
    width: 32px;
    height: 32px;
    color: var(--color-gold);
}

.modal-category {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--color-gold);
}

.modal-title {
    font-size: 1.8rem;
    color: var(--color-white);
}

.modal-body {
    padding: 32px;
    max-height: 50vh;
    overflow-y: auto;
}

.modal-section {
    margin-bottom: 24px;
}

.modal-section:last-child {
    margin-bottom: 0;
}

.modal-section h4 {
    font-size: 1.05rem;
    color: var(--color-primary-dark);
    margin-bottom: 8px;
    font-weight: 700;
}

.modal-section p {
    font-size: 0.95rem;
    color: var(--color-text-muted);
    line-height: 1.65;
}

.modal-footer {
    padding: 24px 32px;
    border-top: 1px solid var(--color-border);
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

/* ==========================================
   15. Rodapé (Footer)
   ========================================== */
.main-footer {
    background-color: var(--color-primary-dark);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-bottom {
    background-color: #12221a;
    padding: 24px 0;
    font-size: 0.8rem;
    opacity: 0.7;
    border-top: 1px solid rgba(255, 255, 255, 0.03);
}

.footer-bottom-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

/* ==========================================
   16. Botão Flutuante do WhatsApp
   ========================================== */
.whatsapp-floating {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--color-whatsapp);
    color: var(--color-white);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
    box-shadow: var(--shadow-lg);
    transition: var(--transition-fast);
    animation: pulseFloating 2s infinite;
}

.whatsapp-floating:hover {
    background-color: var(--color-whatsapp-hover);
    transform: scale(1.1);
}

.whatsapp-floating svg {
    width: 32px;
    height: 32px;
}

/* ==========================================
   17. Animações Customizadas
   ========================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes floatAnim {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes pulseFloating {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* ==========================================
   18. Responsividade (Breakpoints)
   ========================================== */

/* Tablet e Telas Médias */
@media (max-width: 992px) {
    .grid-2 { grid-template-columns: 1fr; }
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    
    .hero-section {
        padding: 100px 0 50px; /* Reduzido o padding para diminuir o espaço no mobile */
    }

    .hero-container {
        grid-template-columns: 1fr;
        gap: 24px; /* Reduzido o espaço entre o texto/botões e a foto */
        padding-top: 15px; /* Reduzido para aproximar o texto da barra superior */
    }
    
    .hero-media {
        max-width: 600px;
        margin: 0 auto;
        width: 100%;
    }
    
    .about-visual {
        order: -1;
        max-width: 500px;
        margin: 0 auto 40px;
    }
    
    .about-img-container {
        width: 100%;
    }
    
    .technical-highlight-box {
        text-align: center;
    }




}

/* Celular (Menu Hambúrguer Ativo) */
@media (max-width: 768px) {
    .grid-3 { grid-template-columns: 1fr; }
    
    .section-title {
        font-size: 1.5rem; /* Alinhado ao padrão do hero no mobile */
    }

    .section-subtitle {
        font-size: 0.9rem; /* Alinhado ao padrão do hero no mobile */
    }

    .section-tag {
        font-size: 0.85rem; /* Alinhado ao padrão do hero no mobile */
    }

    .about-text-lead {
        font-size: 0.9rem; /* Ajustado para padrão do hero */
    }

    .about-info p {
        font-size: 0.85rem; /* Ajustado para manter a hierarquia abaixo do lead */
    }
    
    .specialty-card h3,
    .therapy-card h3,
    .team-info h3,
    .tech-highlight-content h4,
    .form-title {
        font-size: 1.5rem; /* Alinhado ao padrão do hero no mobile */
    }

    .specialty-card p,
    .therapy-card p,
    .team-desc,
    .faq-answer p,
    .tech-highlight-content p,
    .contact-desc {
        font-size: 0.9rem; /* Alinhado ao padrão do hero no mobile */
    }

    .faq-question {
        font-size: 1.05rem; /* Ajustado para padrão responsivo do hero */
    }
    

    
    .hero-title {
        font-size: 1.5rem; /* Reduzido um pouco mais para caber perfeitamente no mobile */
    }
    
    .hero-subtitle {
        font-size: 0.9rem; /* Ajustado para dar melhor contraste com o título */
    }

    .hero-tag {
        font-size: 0.9rem; /* Mesmo tamanho do subtítulo no mobile */
    }
    
    .highlight-card h3 {
        font-size: 1.5rem; /* Ajustado para padrão de título do hero no mobile */
    }
    
    .highlight-card p {
        font-size: 0.9rem; /* Ajustado para padrão de subtítulo do hero no mobile */
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 12px;
    }
    
    .hero-buttons .btn {
        width: 100%;
    }
    
    .mobile-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        height: calc(100vh - 80px);
        background-color: var(--color-white);
        padding: 40px 24px;
        transform: translateX(-100%);
        transition: var(--transition-smooth);
        z-index: 1000;
        overflow-y: auto;
    }
    
    .nav-menu.active {
        transform: translateX(0);
    }
    
    .nav-list {
        flex-direction: column;
        gap: 24px;
        align-items: center;
    }
    
    .nav-link {
        font-size: 1.25rem;
    }
    
    .header-cta {
        display: none;
    }
    
    /* Hamburger Menu Transform */
    .mobile-toggle.active .hamburger-bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    
    .mobile-toggle.active .hamburger-bar:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-toggle.active .hamburger-bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    .contact-form-wrapper {
        padding: 32px 24px;
    }
    
    .modal-container {
        width: 95%;
    }
    
    .modal-header-visual {
        padding: 32px 20px 24px;
    }
    
    .modal-body {
        padding: 24px 20px;
    }
}

/* Celular Pequeno */
@media (max-width: 576px) {
    .section-title {
        font-size: 1.25rem; /* Ajustado para padrão do hero */
    }

    .section-subtitle,
    .about-text-lead {
        font-size: 0.8rem; /* Ajustado para padrão do hero */
    }

    .section-tag,
    .about-info .section-tag {
        font-size: 0.8rem; /* Ajustado para padrão do hero */
    }

    .hero-title {
        font-size: 1.25rem; /* Reduzido um pouco mais para caber perfeitamente no mobile */
    }

    .hero-subtitle {
        font-size: 0.8rem; /* Ajustado para melhor hierarquia visual e contraste */
    }

    .hero-tag {
        font-size: 0.8rem; /* Mesmo tamanho do subtítulo */
    }

    .highlight-card h3,
    .specialty-card h3,
    .therapy-card h3,
    .team-info h3,
    .tech-highlight-content h4,
    .form-title {
        font-size: 1.25rem; /* Ajustado para padrão de título do hero no mobile */
    }
    
    .highlight-card p,
    .specialty-card p,
    .therapy-card p,
    .team-desc,
    .faq-answer p,
    .tech-highlight-content p,
    .contact-desc,
    .form-subtitle {
        font-size: 0.8rem; /* Ajustado para padrão de subtítulo do hero no mobile */
    }

    .faq-question {
        font-size: 0.95rem; /* Ajustado para padrão responsivo do hero */
    }

    .about-info p {
        font-size: 0.75rem; /* Ajustado para manter a hierarquia abaixo do lead */
    }
    



    
    .footer-bottom-container {
        flex-direction: column;
        text-align: center;
    }
}

/* Celular Muito Pequeno */
@media (max-width: 380px) {
    .section-title {
        font-size: 1.1rem; /* Ajustado para padrão do hero */
        letter-spacing: -0.5px;
    }

    .section-subtitle,
    .about-text-lead {
        font-size: 0.75rem; /* Ajustado para padrão do hero */
    }

    .section-tag,
    .about-info .section-tag {
        font-size: 0.75rem; /* Ajustado para padrão do hero */
    }

    .hero-title {
        font-size: 1.1rem; /* Reduzido um pouco mais para caber perfeitamente no mobile */
    }

    .hero-subtitle {
        font-size: 0.75rem; /* Ajustado para melhor hierarquia visual e contraste */
    }

    .hero-tag {
        font-size: 0.75rem; /* Mesmo tamanho do subtítulo */
    }

    .highlight-card h3,
    .specialty-card h3,
    .therapy-card h3,
    .team-info h3,
    .tech-highlight-content h4,
    .form-title {
        font-size: 1.1rem; /* Ajustado para padrão de título do hero no mobile */
    }
    
    .highlight-card p,
    .specialty-card p,
    .therapy-card p,
    .team-desc,
    .faq-answer p,
    .tech-highlight-content p,
    .contact-desc,
    .form-subtitle {
        font-size: 0.75rem; /* Ajustado para padrão de subtítulo do hero no mobile */
    }

    .faq-question {
        font-size: 0.88rem; /* Ajustado para padrão responsivo do hero */
    }

    .about-info p {
        font-size: 0.7rem; /* Ajustado para manter a hierarquia abaixo do lead */
    }
    

}

