﻿/* CSS Atendimento.html */

/* ===========================
Index Of css

01. Variables CSS
02. Layout CSS
03. Utility Classes CSS
04. Hero Area CSS
05. Atendimento Cidadão CSS
06. Núcleos Especializados CSS


/*======================================
    Variables CSS
========================================*/
:root {
    --color-dark-green: #1d612f;
    --color-light-green: #4fa236;
    --color-primary-yellow: #987811;
    --color-light-yellow: #dbd6a4;
    --color-bg-light-yellow: #fff6c2;
    --color-bg-light-gray: #f4f7fa;
    --color-bg-light-green: #f3f9f3;
    --color-text-gray: #495057;
    --color-text-green: #006633;
    --font-primary: "League Spartan", sans-serif;
    --font-secondary: "DM Sans", sans-serif;
    --font-tertiary: "Inter", sans-serif;
}

/*======================================
    Layout CSS
========================================*/
.z-index-2 {
    z-index: 2;
}

/* Section Styles */
.section-title {
    font-family: var(--font-primary);
    font-size: 2.125rem;
    font-weight: 700;
    line-height: 1.2;
}

.title-divider {
    width: 56px;
    height: 2px;
    margin: 0 auto;
}

.section-subtitle {
    font-size: 1.125rem;
    line-height: 1.4;
}

/* Service Cards */
.service-card {
    background-color: var(--color-bg-light-green);
    border-radius: 16px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    .service-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15) !important;
    }

.service-card-highlight {
    background-color: var(--color-bg-light-green);
    border-radius: 16px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    .service-card-highlight:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 25px rgba(34, 116, 54, 0.2) !important;
    }

/* Service Cards in Green Section */
.service-card-custom {
    padding: 2rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

    .service-card-custom:hover {
        background-color: rgba(255, 255, 255, 0.1);
        border-radius: 8px;
        padding: 2rem;
    }

.service-icon-wrapper {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background-color: rgba(74, 222, 128, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
}

.service-title {
    font-family: var(--font-primary);
    font-size: 1.5rem;
    line-height: 1.2;
}

/* Button Styles */
.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Breadcrumb Styles */
.breadcrumb {
    background: transparent;
    margin: 0;
    padding: 0;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: "|";
    color: rgba(255, 255, 255, 0.7);
    margin: 0 0.5rem;
}

/* Responsive Adjustments */
@media (max-width: 1200px) {
    .navbar-nav,
    .d-flex.align-items-center.gap-3 {
        margin-top: 1rem;
    }
}

@media (max-width: 768px) {
    .hero-banner {
        height: 160px;
        margin-top: 56px;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .service-card-custom {
        flex-direction: column;
        text-align: center;
    }

    .service-icon-wrapper {
        margin-bottom: 1rem;
    }

    .search-form {
        width: 100%;
        margin-top: 1rem;
    }
}

/* Animation Classes */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

    .fade-in.visible {
        opacity: 1;
        transform: translateY(0);
    }

/* Custom Card Shadows */
.shadow-lg {
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.175) !important;
}

/* Focus States for Accessibility */
.btn:focus,
.form-control:focus,
.nav-link:focus {
    box-shadow: 0 0 0 0.2rem rgba(34, 116, 54, 0.25);
    outline: none;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom Utilities */
.text-warning {
    color: var(--color-primary-yellow) !important;
}

.bg-success {
    background-color: var(--color-primary-green) !important;
}

.border-success {
    border-color: var(--color-primary-green) !important;
}

.border-warning {
    border-color: var(--color-primary-yellow) !important;
}

/* Enhanced Animations */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(34, 116, 54, 0.7);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(34, 116, 54, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(34, 116, 54, 0);
    }
}

/* Navbar scrolled state */
.navbar-scrolled {
    background-color: rgba(251, 249, 234, 0.95) !important;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

/* Enhanced card animations */
.card-hover,
.nucleo-card,
.tutela-card,
.canal-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

    .card-hover:hover,
    .nucleo-card:hover,
    .tutela-card:hover,
    .canal-card:hover {
        transform: translateY(-8px) scale(1.02);
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1) !important;
    }

/* Loading states */
.btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.btn.loading {
    position: relative;
    color: transparent !important;
}

    .btn.loading::after {
        content: "";
        position: absolute;
        width: 16px;
        height: 16px;
        top: 50%;
        left: 50%;
        margin-left: -8px;
        margin-top: -8px;
        border: 2px solid #ffffff;
        border-radius: 50%;
        border-top-color: transparent;
        animation: spin 1s linear infinite;
    }

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* High contrast mode */
.high-contrast {
    filter: contrast(150%) brightness(120%);
}

    .high-contrast .btn {
        border-width: 3px !important;
    }

    .high-contrast .card {
        border: 2px solid #000 !important;
    }

/* Back to top button */
#backToTop {
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: pulse 2s infinite;
}

    #backToTop:hover {
        animation: none;
        transform: scale(1.1);
    }

/* Print styles */
@media print {
    .navbar,
    .btn,
    #backToTop,
    .modal {
        display: none !important;
    }

    .hero-banner {
        height: auto !important;
        background: none !important;
        color: #000 !important;
    }

    body {
        font-size: 12pt !important;
        line-height: 1.4 !important;
    }

    .section-title {
        font-size: 18pt !important;
        margin-bottom: 10pt !important;
    }
}

/* Focus indicators for better accessibility */
.btn:focus-visible,
.form-control:focus-visible,
.nav-link:focus-visible {
    outline: 3px solid var(--color-primary-yellow);
    outline-offset: 2px;
}

/* Skip link for screen readers */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--color-primary-green);
    color: white;
    padding: 8px;
    text-decoration: none;
    border-radius: 4px;
    z-index: 2000;
    transition: top 0.3s;
}

    .skip-link:focus {
        top: 6px;
    }

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .card {
        background-color: rgba(255, 255, 255, 0.1);
        border: 1px solid rgba(255, 255, 255, 0.2);
    }

    .text-muted {
        color: rgba(255, 255, 255, 0.7) !important;
    }
}

/*======================================
    Utility Classes CSS
========================================*/
.bg-green {
    background: linear-gradient(180deg, #227436 48%, #4fa236 100%);
}

    .bg-green .section-title {
        color: var(--color-background-light);
    }

    .bg-green .section-subtitle {
        color: var(--color-background-offwhite) !important;
    }

    .bg-green .title-decorator {
        background-color: var(--color-background-offwhite) !important;
    }

.bg-light-green {
    background-color: var(--color-light-green) !important;
}

.text-color-gold {
    color: var(--color-accent-gold) !important;
}

.text-color-gold-light {
    color: var(--color-accent-gold-light) !important;
}

.text-color-primary-green {
    color: var(--color-primary-green) !important;
}

/*======================================
    Hero Area CSS
========================================*/


/*======================================
    Atendimento Cidadão CSS
========================================*/
.atendimento-cidadao-bg {
    background: linear-gradient(rgba(251 249 234), rgba(34 116 54 / 72%));
}

/*======================================
    Núcleos Especializados CSS
========================================*/
.nucleos-especializados .category-row {
    height: calc(100% - 2rem);
}
