/* ==========================================================================
   GLOBAL CSS - VET HEROES
   ========================================================================== */

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

/* ==========================================================================
   VARIÁVEIS CSS - PALETA DE CORES OFICIAL
   ========================================================================== */
:root {
    /* Cores Primárias */
    --primary-orange: #FF5722;
    --primary-orange-rgb: 255, 87, 34;
    --primary-gray: #757575;
    --primary-gray-rgb: 117, 117, 117;
    
    /* Variações do Laranja */
    --orange-light: #FF8A50;
    --orange-dark: #C41C00;
    
    /* Cores Complementares */
    --blue-trust: #42A5F5;
    --green-health: #66BB6A;
    
    /* Cores Funcionais */
    --white-clinical: #FFFFFF;
    --gray-light: #F5F5F5;
    --gray-dark: #424242;
    --red-alert: #E53935;
    --green-success: #4CAF50;
    
    /* Espaçamentos Padronizados (múltiplos de 8px) */
    --spacing-xs: 8px;
    --spacing-sm: 16px;
    --spacing-md: 24px;
    --spacing-lg: 32px;
    --spacing-xl: 48px;
    --spacing-xxl: 64px;
    --spacing-xxxl: 84px;
    
    /* Breakpoints */
    --mobile: 320px;
    --tablet: 768px;
    --desktop: 1024px;
    --large-desktop: 1440px;
    
    /* Transições */
    --transition-base: all 0.2s ease-in-out;
    --transition-position: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    --transition-color: color 0.1s ease-in-out, background-color 0.2s ease-in-out;
}

/* ==========================================================================
   TIPOGRAFIA
   ========================================================================== */
body {
    font-family: 'Open Sans', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 24px;
    color: var(--gray-dark);
    background-color: var(--white-clinical);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Hierarquia Tipográfica */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    margin-bottom: var(--spacing-sm);
    color: var(--gray-dark);
}

h1 {
    font-weight: 700;
    font-size: 32px;
    line-height: 40px;
}

h2 {
    font-weight: 600;
    font-size: 24px;
    line-height: 32px;
}

h3 {
    font-weight: 500;
    font-size: 20px;
    line-height: 28px;
}

h4 {
    font-weight: 500;
    font-size: 18px;
    line-height: 24px;
}

p {
    margin-bottom: var(--spacing-sm);
}

small {
    font-size: 14px;
    line-height: 20px;
}

strong {
    font-weight: 600;
}

a {
    color: var(--primary-orange);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition-color);
}

a:hover {
    color: var(--orange-dark);
    text-decoration: underline;
}

/* ==========================================================================
   CONTAINER E GRID
   ========================================================================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: var(--spacing-md);
}

/* ==========================================================================
   COMPONENTES - BOTÕES
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-xs);
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 16px;
    text-transform: uppercase;
    border-radius: 8px;
    padding: 12px 24px;
    border: none;
    cursor: pointer;
    transition: var(--transition-base);
    text-decoration: none;
    white-space: nowrap;
}

/* Botão Primário */
.btn-primary {
    background: var(--primary-orange);
    color: var(--white-clinical);
}

.btn-primary:hover {
    background: var(--orange-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(255, 87, 34, 0.3);
    text-decoration: none;
}

/* Botão Secundário */
.btn-secondary {
    background: transparent;
    border: 2px solid var(--primary-orange);
    color: var(--primary-orange);
}

.btn-secondary:hover {
    background: rgba(255, 87, 34, 0.1);
    text-decoration: none;
}

/* Botão Terciário (Link) */
.btn-link {
    background: transparent;
    border: none;
    color: var(--primary-orange);
    font-family: 'Open Sans', sans-serif;
    font-weight: 600;
    font-size: 16px;
    text-transform: none;
    padding: 0;
    transition: var(--transition-color);
}

.btn-link:hover {
    color: var(--orange-dark);
    text-decoration: underline;
}

/* Tamanhos de Botão */
.btn-large {
    padding: 16px 32px;
    font-size: 18px;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ==========================================================================
   COMPONENTES - CARDS
   ========================================================================== */
.card {
    background: var(--white-clinical);
    border: 1px solid #E0E0E0;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    padding: var(--spacing-md);
    transition: var(--transition-position);
}

.card:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

/* ==========================================================================
   COMPONENTES - FORMULÁRIOS
   ========================================================================== */
input[type="text"],
input[type="email"],
input[type="tel"],
textarea,
select {
    width: 100%;
    border: 1px solid #E0E0E0;
    border-radius: 6px;
    padding: 12px 16px;
    height: 48px;
    font-family: 'Open Sans', sans-serif;
    font-size: 16px;
    color: var(--gray-dark);
    transition: border-color 0.2s ease-in-out;
}

textarea {
    height: auto;
    min-height: 120px;
    resize: vertical;
}

input:focus,
textarea:focus,
select:focus {
    border: 2px solid var(--primary-orange);
    outline: none;
}

input::placeholder,
textarea::placeholder {
    color: #9E9E9E;
}

/* Checkbox e Radio customizados */
input[type="checkbox"],
input[type="radio"] {
    accent-color: var(--primary-orange);
}

/* ==========================================================================
   COMPONENTES - TÍTULOS DE SEÇÃO
   ========================================================================== */
.section-title {
    text-align: center;
    margin-bottom: var(--spacing-xs);
    color: var(--gray-dark);
    font-size: 32px;
    line-height: 40px;
}

.section-subtitle {
    text-align: center;
    color: var(--primary-gray);
    font-size: 18px;
    line-height: 26px;
    margin-bottom: var(--spacing-xl);
}

@media (max-width: 767px) {
    .section-title {
        font-size: 24px;
        line-height: 32px;
    }
    
    .section-subtitle {
        font-size: 16px;
        line-height: 24px;
    }
}

/* ==========================================================================
   UTILITÁRIOS
   ========================================================================== */
.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.mt-xs { margin-top: var(--spacing-xs); }
.mt-sm { margin-top: var(--spacing-sm); }
.mt-md { margin-top: var(--spacing-md); }
.mt-lg { margin-top: var(--spacing-lg); }
.mt-xl { margin-top: var(--spacing-xl); }

.mb-xs { margin-bottom: var(--spacing-xs); }
.mb-sm { margin-bottom: var(--spacing-sm); }
.mb-md { margin-bottom: var(--spacing-md); }
.mb-lg { margin-bottom: var(--spacing-lg); }
.mb-xl { margin-bottom: var(--spacing-xl); }

.pt-xs { padding-top: var(--spacing-xs); }
.pt-sm { padding-top: var(--spacing-sm); }
.pt-md { padding-top: var(--spacing-md); }
.pt-lg { padding-top: var(--spacing-lg); }
.pt-xl { padding-top: var(--spacing-xl); }

.pb-xs { padding-bottom: var(--spacing-xs); }
.pb-sm { padding-bottom: var(--spacing-sm); }
.pb-md { padding-bottom: var(--spacing-md); }
.pb-lg { padding-bottom: var(--spacing-lg); }
.pb-xl { padding-bottom: var(--spacing-xl); }

/* ==========================================================================
   ACESSIBILIDADE
   ========================================================================== */
*:focus {
    outline: 2px solid var(--primary-orange);
    outline-offset: 2px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ==========================================================================
   ANIMAÇÕES
   ========================================================================== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes countUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease-out forwards;
}

/* ==========================================================================
   MEDIA QUERIES - MOBILE FIRST
   ========================================================================== */
@media (max-width: 767px) {
    h1 {
        font-size: 28px;
        line-height: 36px;
    }
    
    h2 {
        font-size: 22px;
        line-height: 30px;
    }
    
    h3 {
        font-size: 18px;
        line-height: 26px;
    }
    
    h4 {
        font-size: 16px;
        line-height: 22px;
    }
    
    .container {
        padding: 0 var(--spacing-sm);
    }
    
    .btn {
        font-size: 14px;
        padding: 10px 20px;
    }
    
    .btn-large {
        font-size: 16px;
        padding: 14px 28px;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .container {
        padding: 0 var(--spacing-lg);
    }
}

/* ==========================================================================
   COMPONENTES HEADER/FOOTER (GLOBAL)
   ========================================================================== */
header {
    position: fixed;
    top: 0;
    width: 100%;
    background: var(--white-clinical);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: 16px 0;
}

body {
    padding-top: 80px; /* Compensação para header fixo */
}

footer {
    background: var(--gray-dark);
    color: var(--white-clinical);
    padding: var(--spacing-xl) 0 var(--spacing-md);
}

footer a {
    color: var(--white-clinical);
    opacity: 0.8;
    transition: opacity 0.2s ease-in-out;
}

footer a:hover {
    opacity: 1;
    color: var(--orange-light);
    text-decoration: none;
}

/* ==========================================================================
   COMPONENTE FAQ - REUTILIZÁVEL
   ========================================================================== */
.faq-list,
.faq-specialty-list {
    max-width: 900px;
    margin: 0 auto;
    margin-top: var(--spacing-xl);
}

.faq-item {
    background: var(--white-clinical);
    border-radius: 8px;
    margin-bottom: var(--spacing-sm);
    overflow: hidden;
    transition: box-shadow 0.2s ease;
    border: 1px solid #E0E0E0;
}

.faq-item:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.faq-question {
    width: 100%;
    padding: var(--spacing-md);
    background: none;
    border: none;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 16px;
    font-weight: 600;
    color: var(--gray-dark);
    transition: color 0.2s ease;
    font-family: inherit;
}

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

.faq-icon {
    transition: transform 0.3s ease;
    color: var(--primary-orange);
    font-size: 16px;
    flex-shrink: 0;
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

.faq-answer p {
    padding: 20px 10px 20px 20px;
    color: var(--primary-gray);
    line-height: 1.6;
    margin: 0;
}

/* ==========================================================================
   LAZY LOADING
   ========================================================================== */
img[data-src] {
    opacity: 0;
    transition: opacity 0.3s;
}

img[data-loaded="true"] {
    opacity: 1;
}