/* ========================================
   EcoConsult - Consultoria Ambiental
   CSS Custom Styles
   ======================================== */

/* ===== VARIÁVEIS CSS ===== */
:root {
    /* Paleta de cores modernas e sustentáveis */
    --primary-color: #1a5f3f;      /* Verde escuro moderno */
    --primary-light: #2d7a5a;      /* Verde médio */
    --primary-lighter: #4a9d6f;    /* Verde claro */
    --secondary-color: #7fb069;    /* Verde pastel */
    --accent-color: #2ecc71;       /* Verde vibrante moderno */
    --accent-light: #58d68d;       /* Verde claro vibrante */
    
    /* Cores neutras modernas */
    --dark-color: #1a1a1a;         /* Preto suave para melhor contraste */
    --light-color: #f8fafc;        /* Cinza muito claro */
    --white: #ffffff;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    
    /* Cores de status modernas */
    --success-color: #10b981;
    --info-color: #3b82f6;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    
    /* Tipografia moderna */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    --font-family-heading: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    --font-size-base: 1rem;
    --line-height-base: 1.7;
    
    /* Espaçamentos */
    --section-padding: 5rem 0;
    --container-padding: 1rem;
    
    /* Sombras */
    --shadow-sm: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    --shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 1rem 3rem rgba(0, 0, 0, 0.175);
    
    /* Bordas */
    --border-radius: 0.375rem;
    --border-radius-lg: 0.5rem;
    --border-radius-xl: 1rem;
}

/* ===== RESET E BASE ===== */
* {
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    line-height: var(--line-height-base);
    color: var(--gray-800);
    background-color: var(--white);
    scroll-behavior: smooth;
}

/* ===== TIPOGRAFIA ===== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-family-heading);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: var(--dark-color);
    letter-spacing: -0.025em;
}

h1 { 
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.1;
}
h2 { 
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
}
h3 { 
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 600;
}
h4 { 
    font-size: clamp(1.25rem, 2.5vw, 1.5rem);
    font-weight: 600;
}
h5 { 
    font-size: clamp(1.125rem, 2vw, 1.25rem);
    font-weight: 600;
}
h6 { 
    font-size: clamp(1rem, 1.5vw, 1.125rem);
    font-weight: 600;
}

.lead {
    font-size: clamp(1.125rem, 2.5vw, 1.375rem);
    font-weight: 400;
    color: var(--gray-600);
    line-height: 1.6;
}

/* Melhor contraste para textos */
p, .text-muted {
    color: var(--gray-700);
    line-height: 1.7;
}

.text-muted {
    color: var(--gray-600) !important;
}

/* ===== NAVEGAÇÃO ===== */
.navbar {
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 1rem 0;
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.95) !important;
    border-bottom: 1px solid rgba(26, 95, 63, 0.1);
}

.navbar.scrolled {
    padding: 0.75rem 0;
    background: rgba(255, 255, 255, 0.98) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.navbar.scrolled .navbar-brand img {
    height: 75px;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--primary-color) !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar-brand img {
    transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    height: 85px;
}

.navbar-brand:hover {
    transform: translateY(-1px);
}

.navbar-brand:hover img {
    transform: scale(1.08);
}

.nav-link {
    font-weight: 600;
    color: var(--gray-700) !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    padding: 0.75rem 1rem !important;
    border-radius: 0.5rem;
    margin: 0 0.25rem;
}

.nav-link:hover {
    color: var(--primary-color) !important;
    background: rgba(26, 95, 63, 0.08);
    transform: translateY(-1px);
}

.nav-link.active {
    color: var(--primary-color) !important;
    background: rgba(26, 95, 63, 0.12);
    font-weight: 700;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0.25rem;
    left: 50%;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
    border-radius: 2px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateX(-50%);
}

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

.navbar-toggler {
    border: none;
    padding: 0.5rem;
    border-radius: 0.5rem;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar-toggler:hover {
    background: rgba(26, 95, 63, 0.08);
    transform: scale(1.05);
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 0.2rem rgba(26, 95, 63, 0.25);
}

.navbar-collapse {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== HERO SECTION ===== */
.hero-section {
    height: 100vh;
    min-height: 600px;
    background: linear-gradient(rgba(26, 95, 63, 0.8), rgba(45, 122, 90, 0.6)), 
                url('assets/images/floresta.jpg') center/cover no-repeat;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-section h1,
.hero-section h2,
.hero-section h3,
.hero-section h4,
.hero-section h5,
.hero-section h6,
.hero-section p,
.hero-section .lead {
    color: var(--white) !important;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(26, 95, 63, 0.85) 0%, rgba(45, 122, 90, 0.7) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-content h1 {
    color: var(--white);
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-content .lead {
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.hero-buttons .btn {
    margin-bottom: 1rem;
    padding: 0.75rem 2rem;
    font-weight: 600;
    border-radius: var(--border-radius-lg);
    transition: all 0.3s ease;
}

.hero-buttons .btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* ===== BOTÕES ===== */
.btn {
    border-radius: var(--border-radius-lg);
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    padding: 0.875rem 2rem;
    position: relative;
    overflow: hidden;
    text-transform: none;
    letter-spacing: 0.025em;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    border: none;
    color: var(--white);
    box-shadow: 0 4px 15px rgba(26, 95, 63, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary-lighter) 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(26, 95, 63, 0.4);
    color: var(--white);
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 4px 15px rgba(26, 95, 63, 0.3);
}

.btn-outline-primary {
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    background: transparent;
    position: relative;
}

.btn-outline-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: -1;
}

.btn-outline-primary:hover {
    color: var(--white);
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(26, 95, 63, 0.3);
}

.btn-outline-primary:hover::before {
    width: 100%;
}

.btn-outline-light {
    color: var(--white);
    border: 2px solid var(--white);
    background: transparent;
    backdrop-filter: blur(10px);
}

.btn-outline-light:hover {
    background: var(--white);
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.3);
}

.btn-light {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    border: 2px solid var(--primary-color);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(26, 95, 63, 0.3);
}

.btn-light:hover {
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary-lighter) 100%);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(26, 95, 63, 0.4);
    border-color: var(--primary-light);
}

.btn-lg {
    padding: 1rem 2.5rem;
    font-size: 1.125rem;
    border-radius: 0.75rem;
}

.btn-lg.btn-primary {
    box-shadow: 0 6px 20px rgba(26, 95, 63, 0.4);
}

.btn-lg.btn-primary:hover {
    box-shadow: 0 10px 30px rgba(26, 95, 63, 0.5);
}

/* ===== CARDS ===== */
.card {
    border: none;
    border-radius: var(--border-radius-lg);
    transition: all 0.3s ease;
    overflow: hidden;
}

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

.card-img-top {
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.card:hover .card-img-top {
    transform: scale(1.05);
}

/* ===== SEÇÕES ===== */
section {
    padding: var(--section-padding);
}

.bg-light {
    background-color: var(--gray-100) !important;
}

/* ===== PÁGINAS ===== */
.page-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    position: relative;
    overflow: hidden;
}

.page-header h1,
.page-header h2,
.page-header h3,
.page-header h4,
.page-header h5,
.page-header h6,
.page-header p,
.page-header .lead {
    color: var(--white) !important;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="50" cy="10" r="0.5" fill="rgba(255,255,255,0.05)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

/* ===== SERVIÇOS ===== */
.service-image {
    height: 400px;
    overflow: hidden;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: var(--border-radius-lg);
    transition: transform 0.3s ease;
}

.service-image:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.service-image:hover img {
    transform: scale(1.05);
}

.service-benefits ul li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--gray-200);
}

.service-benefits ul li:last-child {
    border-bottom: none;
}

/* ===== PROJETOS ===== */
.project-metrics .badge {
    font-size: 0.875rem;
    padding: 0.5rem 0.75rem;
    border-radius: var(--border-radius);
}

/* ===== LAUDOS ===== */
.laudo-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    color: var(--white);
    box-shadow: var(--shadow);
}

.laudo-icon svg {
    color: var(--white) !important;
    fill: var(--white) !important;
}

.process-steps .step-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white) !important;
}

.process-steps .step-number span {
    color: var(--white) !important;
}

/* ===== CONTATO ===== */
.contact-form {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow);
}

.contact-item {
    padding: 1rem 0;
    border-bottom: 1px solid var(--gray-200);
}

.contact-item:last-child {
    border-bottom: none;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    flex-shrink: 0;
}

.contact-icon svg {
    color: var(--white) !important;
    fill: var(--white) !important;
}

.map-container {
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    position: relative;
    width: 100%;
    height: 400px;
}

.map-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    border: 0;
    border-radius: var(--border-radius-lg);
}

/* Responsividade do mapa para mobile */
@media (max-width: 768px) {
    .map-container {
        height: 300px;
        margin: 0 -15px;
        border-radius: 0;
    }
    
    .map-container iframe {
        border-radius: 0;
    }
}

/* ===== FORMULÁRIOS ===== */
.form-control,
.form-select {
    border-radius: var(--border-radius);
    border: 2px solid var(--gray-300);
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(45, 90, 39, 0.25);
}

.form-label {
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

/* ===== WHATSAPP FLOAT ===== */
.whatsapp-float {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #25d366 0%, #128c7e 50%, #075e54 100%);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 1.5rem;
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    animation: pulse 2s infinite;
    border: 2px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.whatsapp-float::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, transparent 50%);
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.whatsapp-float:hover {
    color: var(--white);
    transform: scale(1.15) translateY(-2px);
    box-shadow: 0 12px 35px rgba(37, 211, 102, 0.6);
    border-color: rgba(255, 255, 255, 0.4);
}

.whatsapp-float:hover::before {
    opacity: 1;
}

.whatsapp-float svg {
    width: 1.75rem;
    height: 1.75rem;
}

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

/* ===== BOTÕES ESPECIAIS ===== */
.btn-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border: none;
    color: var(--white);
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.btn-success:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.4);
    color: var(--white);
}

.btn-info {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    border: none;
    color: var(--white);
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.btn-info:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
    color: var(--white);
}

/* Botão com efeito de loading */
.btn.loading {
    position: relative;
    color: transparent !important;
}

.btn.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ===== FOOTER ===== */
footer {
    background: #000000 !important;
    color: #ffffff !important;
}

footer h5,
footer h6 {
    color: #ffffff !important;
}

footer .text-muted {
    color: #cccccc !important;
}

footer a {
    color: #cccccc !important;
}

footer a:hover {
    color: var(--primary-color) !important;
}

.social-links a {
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: var(--primary-color) !important;
}

/* ===== FEATURES ===== */
.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    color: var(--white);
    box-shadow: var(--shadow);
}

.feature-icon svg {
    color: var(--white) !important;
    fill: var(--white) !important;
}

/* ===== ACCORDION ===== */
.accordion-item {
    border: 1px solid var(--gray-300);
    border-radius: var(--border-radius) !important;
    margin-bottom: 1rem;
    overflow: hidden;
}

.accordion-button {
    background-color: var(--white);
    border: none;
    font-weight: 600;
    color: var(--dark-color);
}

.accordion-button:not(.collapsed) {
    background-color: var(--primary-color);
    color: var(--white);
}

.accordion-button:focus {
    box-shadow: 0 0 0 0.25rem rgba(45, 90, 39, 0.25);
}

/* ===== MODAL ===== */
.modal-content {
    border-radius: var(--border-radius-lg);
    border: none;
    box-shadow: var(--shadow-lg);
}

/* ===== UTILITÁRIOS ===== */
.text-primary {
    color: var(--primary-color) !important;
}

.bg-primary {
    background-color: var(--primary-color) !important;
}

.bg-primary h1,
.bg-primary h2,
.bg-primary h3,
.bg-primary h4,
.bg-primary h5,
.bg-primary h6,
.bg-primary p,
.bg-primary .lead,
.bg-primary .text-muted {
    color: var(--white) !important;
}

/* Garantir que todos os textos sobre fundo verde sejam brancos */
.text-white {
    color: var(--white) !important;
}

/* Forçar cor branca em elementos sobre fundo verde */
.bg-primary *,
.hero-section *,
.page-header * {
    color: var(--white) !important;
}

/* Exceção para links em fundo verde */
.bg-primary a,
.hero-section a,
.page-header a {
    color: var(--white) !important;
}

.bg-primary a:hover,
.hero-section a:hover,
.page-header a:hover {
    color: var(--gray-200) !important;
}

.border-primary {
    border-color: var(--primary-color) !important;
}

/* ===== RESPONSIVIDADE ===== */
@media (max-width: 768px) {
    .hero-section {
        height: 80vh;
        min-height: 600px;
        padding: 2rem 0;
    }
    
    .hero-content h1 {
        font-size: clamp(1.75rem, 6vw, 2.5rem);
        margin-bottom: 1.5rem;
    }
    
    .hero-content .lead {
        font-size: clamp(1rem, 3vw, 1.25rem);
        margin-bottom: 2rem;
    }
    
    .hero-buttons .btn {
        width: 100%;
        margin-bottom: 1rem;
        padding: 1rem 2rem;
        font-size: 1.1rem;
    }
    
    .whatsapp-float {
        bottom: 1.5rem;
        right: 1.5rem;
        width: 64px;
        height: 64px;
        font-size: 1.75rem;
        box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
    }
    
    .whatsapp-float:hover {
        transform: scale(1.1) translateY(-1px);
        box-shadow: 0 8px 25px rgba(37, 211, 102, 0.7);
    }
    
    .contact-form {
        padding: 1.5rem;
        margin: 1rem 0;
    }
    
    .feature-icon,
    .laudo-icon {
        width: 70px;
        height: 70px;
        margin-bottom: 1rem;
    }
    
    .process-steps .step-number {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    /* Ajustar altura das imagens dos serviços em mobile */
    .service-image {
        height: 250px;
        margin-bottom: 2rem;
    }
    
    /* Melhor espaçamento em mobile */
    .py-5 {
        padding: 3rem 0 !important;
    }
    
    /* Cards mais compactos em mobile */
    .card-body {
        padding: 1.5rem !important;
    }
    
    /* Navegação mobile melhorada */
    .navbar-toggler {
        border: none;
        padding: 0.5rem;
    }
    
    .navbar-toggler:focus {
        box-shadow: 0 0 0 0.2rem rgba(26, 95, 63, 0.25);
    }
    
    /* Texto mais legível em mobile */
    .text-center h4 {
        font-size: 1.25rem;
        margin-bottom: 1rem;
    }
    
    .text-center p {
        font-size: 0.95rem;
        line-height: 1.6;
    }
}

@media (max-width: 576px) {
    .hero-content h1 {
        font-size: clamp(1.5rem, 8vw, 2rem);
    }
    
    .page-header h1 {
        font-size: clamp(1.75rem, 6vw, 2.25rem);
    }
    
    .contact-form {
        padding: 1rem;
        margin: 0.5rem;
    }
    
    .card-img-top {
        height: 200px;
    }
    
    /* Ajustar altura das imagens dos serviços em telas pequenas */
    .service-image {
        height: 220px;
    }
    
    /* Melhor espaçamento em telas muito pequenas */
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    /* Botões mais acessíveis em mobile */
    .btn {
        min-height: 48px;
        padding: 0.875rem 1.75rem;
        font-size: 1rem;
    }
    
    .btn-lg {
        min-height: 52px;
        padding: 1rem 2rem;
        font-size: 1.125rem;
    }
    
    /* Efeito de brilho reduzido em mobile */
    .btn::before {
        display: none;
    }
    
    /* Ícones menores em mobile */
    .icon-svg-xl {
        width: 3em;
        height: 3em;
    }
    
    /* Melhor contraste em mobile */
    .text-muted {
        color: var(--gray-700) !important;
    }
    
    /* Navegação mobile otimizada */
    .navbar-collapse {
        background: rgba(255, 255, 255, 0.98);
        border-radius: 0.75rem;
        margin-top: 1rem;
        padding: 1.5rem;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
        backdrop-filter: blur(10px);
        border: 1px solid rgba(26, 95, 63, 0.1);
    }
    
    /* Logo maior em mobile */
    .navbar-brand img {
        height: 60px;
    }
    
    .navbar-collapse .nav-link {
        padding: 1rem !important;
        margin: 0.25rem 0;
        border-radius: 0.5rem;
        text-align: center;
        font-weight: 600;
    }
    
    .navbar-collapse .nav-link:hover {
        background: rgba(26, 95, 63, 0.1);
        transform: translateX(5px);
    }
    
    .navbar-collapse .nav-link.active {
        background: rgba(26, 95, 63, 0.15);
        color: var(--primary-color) !important;
    }
}

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

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

.slide-in-left {
    animation: slideInLeft 0.6s ease-out;
}

.slide-in-right {
    animation: slideInRight 0.6s ease-out;
}

/* Animações suaves para elementos interativos */
.card, .btn, .feature-icon, .laudo-icon {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Melhor performance para animações */
* {
    will-change: auto;
}

.card:hover, .btn:hover, .feature-icon:hover, .laudo-icon:hover {
    will-change: transform;
}

/* ===== ACESSIBILIDADE ===== */
.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;
}

/* Focus visível para navegação por teclado */
.btn:focus,
.form-control:focus,
.form-select:focus,
.nav-link:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* ===== LOADING ===== */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* ===== PRINT STYLES ===== */
@media print {
    .navbar,
    .whatsapp-float,
    .btn {
        display: none !important;
    }
    
    .hero-section {
        height: auto;
        min-height: auto;
        background: none !important;
    }
    
    .hero-content {
        color: var(--dark-color) !important;
    }
    
    .hero-content h1,
    .hero-content .lead {
        color: var(--dark-color) !important;
        text-shadow: none !important;
    }
}
