@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&display=swap');

:root {
    --primary-blue: #003366; /* Azul Gov mais sóbrio */
    --primary-green: #00853B; /* Verde Brasil */
    --accent-green: #28a745;
    --text-dark: #333333;
    --text-light: #666666;
    --bg-page: #f4f6f8;
    --white: #ffffff;
    --border-color: #dddddd;
}

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

body {
    font-family: 'Roboto', sans-serif;
    background-color: var(--bg-page);
    color: var(--text-dark);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: var(--primary-blue);
}

/* --- HEADER --- */
.top-bar {
    background-color: var(--primary-green);
    color: var(--white);
    padding: 8px 16px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-gov {
    background-color: var(--white);
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.header-banner {
    background-color: #002b5c;
    width: 100%;
    text-align: center;
}

.header-banner img {
    max-width: 100%;
    height: auto;
    max-height: 100px; /* Limita altura para não quebrar */
    display: block;
    margin: 0 auto;
}

.header-row {
    max-width: 1100px;
    margin: 0 auto;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-img {
    height: 35px;
    width: auto;
}

.header-text {
    font-size: 14px;
    color: var(--text-light);
    font-weight: 500;
}

.menu-icon {
    margin-left: auto;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-light);
}

.breadcrumb {
    max-width: 1100px;
    margin: 0 auto;
    padding: 10px 20px;
    font-size: 12px;
    color: var(--text-light);
    border-bottom: 1px solid #eee;
    background: #fff;
}

/* --- LAYOUT CONTAINERS --- */
.hero-wrap, .main, .service-wrap {
    max-width: 1100px;
    margin: 20px auto;
    padding: 0 15px;
}

/* --- CARDS PADRÃO --- */
.hero-card, .panel, .service-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    overflow: hidden;
    margin-bottom: 20px;
}

/* --- HERO SECTION --- */
.hero-header {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-blue);
    padding: 20px;
    text-align: center;
    border-bottom: 1px solid #eee;
    background: #fdfdfd;
}

/* CARROSSEL */
.carousel-container {
    position: relative;
    width: 100%;
    background: #eee;
}

.carousel-wrapper {
    display: flex;
    transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.carousel-slide {
    min-width: 100%;
    display: flex;
    justify-content: center;
}

/* .carousel-slide picture removido pois não usamos mais picture */

.carousel-slide img {
    width: 100%;
    height: auto;
    display: block;
    max-height: 400px;
    object-fit: cover;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.carousel-btn-prev { left: 10px; }
.carousel-btn-next { right: 10px; }

.carousel-indicators {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
}

.carousel-dot.active {
    background: white;
    transform: scale(1.2);
}

/* ALERTA */
.hero-alert {
    background-color: #fff3cd;
    border-left: 5px solid #ffc107;
    padding: 20px;
    color: #856404;
}

.hero-alert-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.hero-alert-text {
    font-size: 14px;
}

/* --- RESULTADO --- */
.panel-header {
    background: #f8f9fa;
    padding: 15px 20px;
    border-bottom: 1px solid var(--border-color);
    font-size: 16px;
    font-weight: 700;
    color: var(--text-dark);
}

.panel-body {
    padding: 20px;
}

.result-title {
    margin-bottom: 15px;
    font-size: 14px;
    color: var(--text-light);
    font-weight: 500;
}

.result-card {
    border: 1px solid #b3d7ff;
    border-radius: 6px;
    box-shadow: none;
    margin-top: 0;
}

.result-card-header {
    background-color: #e7f1ff;
    color: var(--primary-blue);
    padding: 12px 15px;
    font-weight: 700;
    font-size: 15px;
    border-bottom: 1px solid #b3d7ff;
}

.field-row {
    display: flex;
    border-bottom: 1px solid #eee;
}

.field-row:last-child {
    border-bottom: none;
}

.field-label {
    width: 40%;
    padding: 12px 15px;
    background: #fcfcfc;
    font-size: 12px;
    font-weight: 700;
    color: var(--text-light);
    text-transform: uppercase;
    border-right: 1px solid #eee;
}

.field-value {
    width: 60%;
    padding: 12px 15px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-dark);
}

/* --- SERVIÇO & BOTÃO --- */
.service-card {
    text-align: center;
    padding: 40px 20px;
    border-top: 5px solid var(--primary-green);
}

.service-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 10px;
}

.service-sub {
    font-size: 15px;
    color: var(--text-light);
    margin-bottom: 25px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.btn-green {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--primary-green);
    color: white;
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 15px 40px;
    border-radius: 50px;
    transition: background-color 0.3s, transform 0.2s;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.btn-green:hover {
    background-color: #00662b;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

.btn-green span:last-child {
    margin-left: 10px;
    font-size: 20px;
}

/* --- FOOTER --- */
.footer-text {
    text-align: center;
    font-size: 12px;
    color: #999;
    padding: 20px;
    max-width: 1100px;
    margin: 0 auto;
}

/* --- AVATAR --- */
.floating-avatar {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 100px;
    height: 100px;
    z-index: 100;
    cursor: pointer;
    transition: transform 0.3s;
}

.floating-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.floating-avatar:hover {
    transform: scale(1.1);
}

/* --- RESPONSIVO --- */
@media (max-width: 768px) {
    .header-row {
        flex-wrap: wrap;
    }
    
    .field-row {
        flex-direction: column;
    }
    
    .field-label {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid #eee;
        padding-bottom: 5px;
    }
    
    .field-value {
        width: 100%;
        padding-top: 5px;
    }
    
    .btn-green {
        width: 100%;
        padding: 15px;
    }
}
