/* ============================================
   ESTILOS DA CARTA DE SERVIÇOS
   ============================================ */

/* --- Cabeçalho e Breadcrumb (Padrão Interno) --- */
.page-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    padding: 60px 5% 40px;
    text-align: center;
}

.page-header h1 {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 10px;
}

.page-header p {
    font-size: 16px;
    opacity: 0.9;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}

.breadcrumb-nav {
    background: white;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
}

.breadcrumb {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
    list-style: none;
    display: flex;
    gap: 8px;
    font-size: 13px;
    flex-wrap: wrap;
}

.breadcrumb li {
    display: flex;
    align-items: center;
}
.breadcrumb li:not(:last-child)::after {
    content: "›";
    margin-left: 8px;
    color: var(--text-muted);
    font-weight: bold;
    font-size: 16px;
}
.breadcrumb a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 4px;
    transition: var(--transition);
}
.breadcrumb a:hover {
    background: rgba(0, 51, 102, 0.1);
    text-decoration: underline;
}
.breadcrumb [aria-current="page"] {
    font-weight: 700;
    color: var(--text-muted);
    padding: 4px 8px;
}

/* --- Container Principal --- */
.carta-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 5% 60px;
}

/* --- Filtros --- */
.carta-filters {
    background: white;
    padding: 20px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    display: flex;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
    align-items: center;
}

.filter-group {
    display: flex;
    flex-direction: column;
}

.filter-search {
    flex-grow: 1;
    min-width: 250px;
}

.input-icon {
    position: relative;
    width: 100%;
}

.input-icon i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

.input-icon input {
    width: 100%;
    padding: 12px 14px 12px 40px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-family: inherit;
    transition: var(--transition);
}

.filter-group select {
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-family: inherit;
    background: white;
    cursor: pointer;
    min-width: 200px;
}

.input-icon input:focus,
.filter-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 51, 102, 0.1);
}

.btn-filtrar {
    background: var(--primary);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    height: 44px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-filtrar:hover {
    background: var(--secondary);
    transform: translateY(-2px);
}

/* --- Grid de Serviços --- */
.servicos-grid-detalhada {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 25px;
}

.servico-item-card {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    border-top: 4px solid var(--primary);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: var(--transition);
}

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

.servico-item-header {
    padding: 20px 24px;
    display: flex;
    align-items: flex-start;
    gap: 15px;
    border-bottom: 1px solid var(--border);
    background: #f8fafc;
}

.servico-item-icon {
    width: 50px;
    height: 50px;
    background: #dbeafe;
    color: var(--primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}

.servico-item-header h3 {
    color: var(--primary);
    font-size: 16px;
    font-weight: 800;
    margin: 0 0 8px 0;
    line-height: 1.3;
}

.badge {
    font-size: 10px;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-right: 4px;
    margin-bottom: 4px;
    text-transform: uppercase;
}

.badge-online {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #bbf7d0;
}
.badge-presencial {
    background: #e0e7ff;
    color: #3730a3;
    border: 1px solid #c7d2fe;
}

.servico-item-body {
    padding: 24px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.info-block h4 {
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.info-block p {
    font-size: 14px;
    color: var(--text-main);
    line-height: 1.5;
    margin: 0;
}

.destaque-prazo {
    background: #fef9e7;
    padding: 12px;
    border-radius: var(--radius-sm);
    border-left: 3px solid #d97706;
}

.destaque-prazo h4 {
    color: #b45309;
}
.destaque-prazo p {
    color: #92400e;
    font-weight: 600;
    font-size: 13px;
}

.servico-item-footer {
    padding: 20px 24px;
    border-top: 1px solid var(--border);
    background: white;
}

.btn-action {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 10px 16px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: var(--transition);
}

.btn-solid {
    background: var(--primary);
    color: white;
    border: 1px solid var(--primary);
}
.btn-solid:hover {
    background: var(--secondary);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}
.btn-outline:hover {
    background: var(--bg-body);
}

.btn-disabled {
    background: #f1f5f9;
    color: #64748b;
    border: 1px solid var(--border);
    cursor: default;
}

/* --- Compromissos --- */
.compromissos-section {
    background: white;
    border-top: 1px solid var(--border);
    padding: 60px 5%;
}

.compromissos-inner {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.compromissos-inner h2 {
    color: var(--primary);
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 40px;
}

.compromissos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
}

.comp-item {
    padding: 30px 20px;
    background: var(--bg-body);
    border-radius: var(--radius-lg);
    transition: var(--transition);
}

.comp-item:hover {
    transform: translateY(-5px);
    background: white;
    box-shadow: var(--shadow);
}

.comp-item i {
    font-size: 36px;
    color: var(--accent);
    margin-bottom: 15px;
}

.comp-item h4 {
    font-size: 16px;
    color: var(--primary);
    margin-bottom: 10px;
    font-weight: 800;
}

.comp-item p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.5;
    margin: 0;
}

/* --- Dark Mode --- */
body.dark-mode .carta-filters,
body.dark-mode .servico-item-card,
body.dark-mode .compromissos-section,
body.dark-mode .comp-item {
    background: #1e293b;
    border-color: #334155;
}

body.dark-mode .servico-item-header {
    background: #0f172a;
    border-bottom-color: #334155;
}
body.dark-mode .servico-item-header h3 {
    color: var(--accent);
}
body.dark-mode .servico-item-icon {
    background: #1e293b;
}

body.dark-mode .info-block h4 {
    color: #94a3b8;
}
body.dark-mode .info-block p {
    color: #e2e8f0;
}

body.dark-mode .destaque-prazo {
    background: rgba(146, 64, 14, 0.1);
    border-left-color: #f59e0b;
}
body.dark-mode .destaque-prazo h4 {
    color: #fcd34d;
}
body.dark-mode .destaque-prazo p {
    color: #fde68a;
}

body.dark-mode .servico-item-footer {
    background: #1e293b;
    border-top-color: #334155;
}

body.dark-mode .filter-group select,
body.dark-mode .input-icon input {
    background: #0f172a;
    border-color: #334155;
    color: #e2e8f0;
}

body.dark-mode .badge-online {
    background: rgba(22, 101, 52, 0.2);
    border-color: rgba(22, 101, 52, 0.5);
    color: #86efac;
}
body.dark-mode .badge-presencial {
    background: rgba(55, 48, 163, 0.3);
    border-color: rgba(55, 48, 163, 0.5);
    color: #a5b4fc;
}

body.dark-mode .btn-outline {
    color: var(--accent);
    border-color: var(--accent);
}
body.dark-mode .btn-outline:hover {
    background: rgba(251, 192, 45, 0.1);
}
body.dark-mode .btn-solid {
    background: var(--accent);
    color: #0f172a;
    border-color: var(--accent);
}
body.dark-mode .btn-solid:hover {
    background: #fbbf24;
}
body.dark-mode .btn-disabled {
    background: #0f172a;
    color: #475569;
    border-color: #334155;
}

body.dark-mode .compromissos-inner h2 {
    color: var(--accent);
}
body.dark-mode .comp-item:hover {
    background: #334155;
}

/* --- Responsividade --- */
@media (max-width: 768px) {
    .carta-filters {
        flex-direction: column;
        align-items: stretch;
    }
    .filter-search {
        min-width: 100%;
    }

    .servicos-grid-detalhada {
        grid-template-columns: 1fr;
    }

    .servico-item-header {
        flex-direction: column;
        align-items: flex-start;
    }
    .servico-item-icon {
        margin-bottom: 10px;
    }
}
