/* ========================================
   VARIÁVEIS CSS
   ======================================== */
:root {
    --primary-color: #1e3a8a;
    --secondary-color: #0ea5e9;
    --accent-color: #1160BD;
    --light-bg: #f8fafc;
    --white: #ffffff;
    --dark: #1f2937;
    --text-muted: #6b7280;
    --border-color: #e5e7eb;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

/* ========================================
   ESTILOS GLOBAIS
   ======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Roboto', sans-serif;
    color: var(--dark);
    line-height: 1.6;
    background-color: var(--white);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    color: var(--primary-color);
}

a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

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

/* ========================================
   TOP BAR
   ======================================== */
.top-bar {
    background: linear-gradient(135deg, var(--primary-color) 0%, #0c2d5c 100%);
    font-size: 0.85rem;
    padding: 0.75rem 0;
}

.top-bar .container-fluid {
    padding-left: 1rem;
    padding-right: 1rem;
}

.top-bar a {
    color: var(--white);
    transition: color 0.3s ease;
}

.top-bar a:hover {
    color: var(--secondary-color);
}

/* ========================================
   NAVBAR
   ======================================== */
.navbar {
    background: var(--white) !important;
    border-bottom: 2px solid var(--light-bg);
    padding: 0.75rem 0;
}

.navbar .container-fluid {
    padding-left: 1rem;
    padding-right: 1rem;
}

.navbar-brand {
    font-weight: 700;
    color: var(--primary-color) !important;
    padding: 0;
}

.navbar-brand img {
    max-width: 100%;
    height: auto;
}

.logo-desktop {
    max-width: 355px;
    height: auto;
}

.logo-mobile {
    height: 50px;
    width: auto;
}

.navbar-nav .nav-link {
    font-weight: 500;
    color: var(--dark) !important;
    margin-left: 0.25rem;
    margin-right: 0.25rem;
    padding: 0.5rem 0.75rem !important;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--secondary-color) !important;
    border-bottom: 2px solid var(--secondary-color);
}

/* Destaque para Requisição */
.nav-link.fw-bold.text-primary {
    transition: all 0.3s ease;
    border: 1px solid transparent;
    border-radius: 5px;
    padding: 0.5rem 1rem !important;
}

.nav-link.fw-bold.text-primary:hover {
    background-color: rgba(17, 96, 189, 0.05);
    border-color: var(--accent-color);
    transform: translateY(-1px);
}

.nav-link.fw-bold.text-primary i {
    margin-right: 5px;
}

.navbar-toggler {
    border: none;
}

.navbar-toggler:focus {
    box-shadow: none;
    outline: 2px solid var(--secondary-color);
}

/* ========================================
   BOTÕES
   ======================================== */
.btn-primary {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    color: var(--white);
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    color: var(--white);
    font-weight: 600;
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-light:hover {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
}

.btn-outline-light {
    border-color: rgba(255, 255, 255, 0.3);
    color: var(--white);
}

.btn-outline-light i {
    color: var(--white);
}

/* ========================================
   HERO SECTION
   ======================================== */
.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, #0c2d5c 100%);
    color: var(--white);
    padding: 60px 0;
    position: relative;
    overflow: hidden;
}

.hero::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 1200 600"><defs><pattern id="grid" width="40" height="40" patternUnits="userSpaceOnUse"><path d="M 40 0 L 0 0 0 40" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></pattern></defs><rect width="1200" height="600" fill="url(%23grid)"/></svg>');
    opacity: 0.5;
    pointer-events: none;
}

.hero .container-fluid {
    padding-left: 1rem;
    padding-right: 1rem;
}

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

.hero h1 {
    color: var(--white);
    font-size: clamp(1.75rem, 5vw, 3rem);
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero p {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    margin-bottom: 2rem;
    opacity: 0.95;
}

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

.hero-image img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
}

/* ========================================
   SELOS DE ACREDITAÇÃO
   ======================================== */
.accreditation-badge {
    background: var(--white);
    border: 3px solid var(--accent-color);
    border-radius: 8px;
    padding: 12px 16px;
    display: inline-block;
    font-weight: 700;
    color: var(--accent-color);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    animation: pulse-blue 2s infinite;
}

@keyframes pulse-blue {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(17, 96, 189, 0.7);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(17, 96, 189, 0);
    }
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.7);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(220, 38, 38, 0);
    }
}

.accreditation-section {
    background: var(--light-bg);
    padding: 60px 0;
    margin: 40px 0;
}

.accreditation-section .container-fluid {
    padding-left: 1rem;
    padding-right: 1rem;
}

.section-title {
    text-align: center;
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    margin-bottom: 2rem;
    color: var(--primary-color);
}

.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    font-size: 1.05rem;
    margin-bottom: 2rem;
}

.accreditation-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.accreditation-card {
    background: var(--white);
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    border-left: 4px solid var(--secondary-color);
    transition: all 0.3s ease;
}

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

.accreditation-card h4 {
    color: var(--primary-color);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.accreditation-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin: 0;
}

/* ========================================
   CARDS E SERVIÇOS
   ======================================== */
section {
    padding: 60px 0;
}

section .container-fluid {
    padding-left: 1rem;
    padding-right: 1rem;
}

.service-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--secondary-color);
}

.service-icon {
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.service-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.service-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin: 0;
    flex-grow: 1;
}

/* ========================================
   SEÇÃO SOBRE
   ======================================== */
.about-section {
    padding: 60px 0;
}

.about-section .container-fluid {
    padding-left: 1rem;
    padding-right: 1rem;
}

.about-text h2 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.about-text p {
    color: var(--text-muted);
    font-size: 1.05rem;
    margin-bottom: 1rem;
    line-height: 1.8;
}

.about-image img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
}

/* ========================================
   SEÇÃO DE EXAMES
   ======================================== */
.exam-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.exam-card:hover {
    border-color: var(--secondary-color);
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.exam-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.exam-card h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.exam-card p {
    color: var(--text-muted);
    margin: 0;
    flex-grow: 1;
}

/* ========================================
   PROCESSO (STEPS)
   ======================================== */
.process-step {
    position: relative;
    padding: 30px;
    background: var(--light-bg);
    border-radius: 12px;
    text-align: center;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.process-step:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    font-weight: 700;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.process-step h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

/* ========================================
   FORMULÁRIO DE CONTATO
   ======================================== */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    display: block;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 10px 15px;
    font-family: 'Roboto', sans-serif;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
    outline: none;
}

/* ========================================
   ALERTAS
   ======================================== */
.alert-success {
    background-color: #d1fae5;
    border-color: #10b981;
    color: #065f46;
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 1rem;
}

.alert-error {
    background-color: #fee2e2;
    border-color: #ef4444;
    color: #7f1d1d;
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 1rem;
}

/* ========================================
   CTA (CALL TO ACTION)
   ======================================== */
.cta-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, #0c2d5c 100%);
    color: var(--white);
    padding: 60px 0;
    text-align: center;
}

.cta-section .container-fluid {
    padding-left: 1rem;
    padding-right: 1rem;
}

.cta-section h2 {
    color: var(--white);
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    margin-bottom: 1rem;
}

.cta-section p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

/* ========================================
   PÁGINA HEADER
   ======================================== */
.page-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, #0c2d5c 100%);
    color: var(--white);
    padding: 60px 0;
    text-align: center;
}

.page-header .container-fluid {
    padding-left: 1rem;
    padding-right: 1rem;
}

.page-header h1 {
    color: var(--white);
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    margin-bottom: 0.5rem;
}

.page-header p {
    font-size: 1.1rem;
    opacity: 0.95;
}

/* ========================================
   FOOTER
   ======================================== */
footer {
    background-color: var(--dark);
    color: var(--white);
    padding: 60px 0 20px;
    margin-top: 60px;
}

footer .container-fluid {
    padding-left: 1rem;
    padding-right: 1rem;
}

footer h5 {
    color: var(--white);
    font-size: 1.1rem;
}

footer a {
    color: var(--white);
    opacity: 0.8;
    transition: all 0.3s ease;
}

footer a:hover {
    color: var(--accent-color);
    opacity: 1;
}

footer p, footer li {
    color: var(--white);
    opacity: 0.8;
}

footer .text-muted {
    color: var(--white) !important;
    opacity: 0.7;
}

footer .text-primary {
    color: var(--accent-color) !important;
}

/* ========================================
   MAIN CONTENT
   ======================================== */
.main-content {
    min-height: calc(100vh - 200px);
}

/* ========================================
   RESPONSIVIDADE
   ======================================== */

/* Tablets e Desktops Pequenos */
@media (max-width: 768px) {
    .hero {
        padding: 40px 0;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .hero .d-flex {
        flex-direction: column;
        gap: 1rem !important;
    }

    .hero .btn {
        width: 100%;
    }

    .about-text h2 {
        font-size: 1.8rem;
    }

    .page-header h1 {
        font-size: 1.8rem;
    }

    .cta-section h2 {
        font-size: 1.8rem;
    }

    .navbar-brand {
        font-size: 0.9rem;
    }

    .navbar-nav .nav-link {
        font-size: 0.85rem;
        margin-left: 0;
        margin-right: 0;
    }

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

    section {
        padding: 40px 0;
    }

    .service-card,
    .exam-card {
        padding: 20px;
    }

    .section-title {
        font-size: 1.75rem;
    }
}

/* Celulares */
@media (max-width: 576px) {
    .hero {
        padding: 30px 0;
    }

    .hero h1 {
        font-size: 1.5rem;
    }

    .hero p {
        font-size: 0.95rem;
    }

    .accreditation-badge {
        font-size: 0.8rem;
        padding: 10px 12px;
    }

    .accreditation-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .accreditation-card {
        padding: 15px;
    }

    .accreditation-card h4 {
        font-size: 1rem;
    }

    .accreditation-card p {
        font-size: 0.85rem;
    }

    .service-card,
    .exam-card {
        padding: 15px;
    }

    .service-icon {
        font-size: 2.5rem;
    }

    .service-card h3,
    .exam-card h3 {
        font-size: 1.1rem;
    }

    .service-card p,
    .exam-card p {
        font-size: 0.85rem;
    }

    .section-title {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .section-subtitle {
        font-size: 0.95rem;
    }

    .about-text h2 {
        font-size: 1.5rem;
    }

    .about-text p {
        font-size: 0.95rem;
    }

    .page-header h1 {
        font-size: 1.5rem;
    }

    .page-header p {
        font-size: 1rem;
    }

    .cta-section h2 {
        font-size: 1.5rem;
    }

    .cta-section p {
        font-size: 1rem;
    }

    .btn-lg {
        padding: 0.75rem 1.5rem;
        font-size: 0.95rem;
    }

    .navbar-nav .nav-link {
        font-size: 0.8rem;
        padding: 0.4rem 0.5rem !important;
    }

    .navbar-brand img {
        height: 40px;
    }

    section {
        padding: 30px 0;
    }

    footer {
        padding: 40px 0 15px;
    }

    .top-bar {
        font-size: 0.75rem;
    }

    .top-bar .row {
        flex-direction: column;
        gap: 0.5rem;
    }

    .top-bar .col-md-6 {
        text-align: center !important;
    }
}

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

.text-secondary {
    color: var(--secondary-color) !important;
}

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

/* Garantir que as imagens sejam responsivas */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Melhorar espaçamento em dispositivos pequenos */
.row {
    margin-left: -0.5rem;
    margin-right: -0.5rem;
}

.row > [class*='col-'] {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}
