:root {
    --brand-blue-900: #002f45;
    --brand-blue-700: #004966;
    --brand-green: #a8c919;
    --brand-green-soft: #eef8c8;
    --brand-gray: #6f7782;
    --bg-main: #f3f6fa;
    --surface: #ffffff;
    --surface-soft: #f9fbff;
    --text-main: #132334;
    --text-soft: #5d697b;
    --primary: #005379;
    --primary-soft: #e4f1f7;
    --danger: #c62828;
    --success: #1e7a41;
    --border: #d3deea;
    --shadow: 0 18px 45px rgba(0, 35, 58, 0.12);
    --radius-lg: 20px;
    --radius-md: 14px;
    --radius-sm: 10px;
    --container-max: 1280px;
    --container-gutter: clamp(1rem, 2.4vw, 2.2rem);
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Sora', 'Segoe UI', sans-serif;
    color: var(--text-main);
    line-height: 1.6;
    background:
        radial-gradient(circle at 100% 0%, rgba(168, 201, 25, 0.14), transparent 35%),
        radial-gradient(circle at 0% 18%, rgba(0, 79, 114, 0.12), transparent 42%),
        var(--bg-main);
}

a {
    color: inherit;
    text-decoration: none;
}

.container {
    width: min(var(--container-max), calc(100% - (var(--container-gutter) * 2)));
    margin: 0 auto;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    border: 0;
    border-radius: 999px;
    padding: 0.82rem 1.42rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

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

.btn-primary {
    background: linear-gradient(135deg, var(--brand-blue-700), var(--brand-blue-900));
    color: #fff;
    box-shadow: 0 9px 20px rgba(0, 61, 93, 0.32);
}

.btn-secondary {
    background: var(--brand-blue-900);
    color: #fff;
}

.btn-light {
    background: #fff;
    color: var(--brand-blue-900);
    border: 1px solid var(--border);
}

.btn-danger {
    background: #ffe8e6;
    color: #9e1f14;
}

.btn:disabled {
    opacity: 0.82;
    cursor: not-allowed;
    transform: none;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 22;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(207, 219, 233, 0.85);
}

.site-header-inner {
    min-height: 86px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.brand {
    display: inline-flex;
    align-items: center;
}

.brand img {
    width: auto;
    height: 52px;
    display: block;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.site-nav a {
    padding: 0.45rem 0.85rem;
    border-radius: 999px;
    color: #28415d;
    font-size: 0.92rem;
    transition: background 0.2s ease, color 0.2s ease;
}

.site-nav a:hover {
    background: #eaf2f8;
    color: #072a44;
}
.hero-carousel-section {
    padding: 2rem 0 0.65rem;
}

.hero-carousel {
    position: relative;
    overflow: hidden;
    border-radius: 22px;
    border: 1px solid rgba(14, 52, 76, 0.14);
    box-shadow: 0 18px 35px rgba(6, 41, 63, 0.18);
    background: #061e30;
}

.hero-carousel-track {
    display: flex;
    transition: transform 0.55s ease;
    will-change: transform;
    touch-action: pan-y;
    animation: hero-carousel-fallback 18s infinite;
}

.hero-carousel.is-enhanced .hero-carousel-track {
    animation: none;
}

.hero-carousel-slide {
    margin: 0;
    flex: 0 0 100%;
    min-width: 100%;
}

.hero-carousel-slide img {
    display: block;
    width: 100%;
    height: clamp(220px, 52vw, 660px);
    object-fit: cover;
    background: #061e30;
}

.hero-carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 999px;
    display: grid;
    place-items: center;
    cursor: pointer;
    z-index: 2;
    color: #fff;
    background: rgba(2, 23, 37, 0.55);
    box-shadow: 0 8px 22px rgba(4, 25, 40, 0.3);
    transition: background 0.2s ease, transform 0.2s ease;
}

.hero-carousel-control:hover {
    background: rgba(2, 23, 37, 0.76);
    transform: translateY(-50%) scale(1.04);
}

.hero-carousel-control:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

.hero-carousel-control.prev {
    left: 0.8rem;
}

.hero-carousel-control.next {
    right: 0.8rem;
}

.hero-carousel-dots {
    position: absolute;
    left: 50%;
    bottom: 0.9rem;
    transform: translateX(-50%);
    display: flex;
    gap: 0.45rem;
    z-index: 2;
    padding: 0.25rem 0.55rem;
    border-radius: 999px;
    background: rgba(3, 27, 42, 0.42);
    backdrop-filter: blur(4px);
}

.hero-carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    border: 0;
    padding: 0;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.45);
    transition: transform 0.2s ease, background 0.2s ease;
}

.hero-carousel-dot:hover {
    transform: scale(1.12);
    background: rgba(255, 255, 255, 0.74);
}

.hero-carousel-dot.is-active {
    background: #fff;
}

.hero-carousel-dot:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

.hero {
    padding: 4.6rem 0 3.6rem;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 2.2rem;
    align-items: center;
}

.hero h1 {
    margin: 0 0 1rem;
    font-family: 'Space Grotesk', 'Sora', sans-serif;
    font-size: clamp(1.8rem, 3.4vw, 3.15rem);
    line-height: 1.12;
    color: #0e2439;
}

.hero p {
    margin: 0 0 1.45rem;
    color: var(--text-soft);
    max-width: 55ch;
}

.hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.62rem;
    margin-bottom: 1.25rem;
}

.badge {
    border: 1px solid #cddcea;
    background: #fff;
    color: #213b56;
    font-size: 0.85rem;
    border-radius: 999px;
    padding: 0.35rem 0.82rem;
}

.hero-panel {
    position: relative;
    background: linear-gradient(160deg, #0a405b, #062233 72%);
    border-radius: var(--radius-lg);
    padding: 1.6rem;
    color: #eef6ff;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.hero-panel::after {
    content: '';
    position: absolute;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    right: -120px;
    top: -120px;
    background: radial-gradient(circle, rgba(168, 201, 25, 0.3), rgba(168, 201, 25, 0));
}

.hero-panel h3 {
    margin: 0 0 1rem;
    font-family: 'Space Grotesk', 'Sora', sans-serif;
}

.hero-stat-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.86rem;
}

.hero-stat {
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(220, 238, 249, 0.16);
    padding: 0.8rem;
}

.hero-stat b {
    display: block;
    font-size: 1.28rem;
    margin-bottom: 0.14rem;
}

section {
    padding: 2rem 0;
}

.section-title {
    margin: 0 0 0.95rem;
    font-family: 'Space Grotesk', 'Sora', sans-serif;
    font-size: clamp(1.25rem, 2vw, 1.92rem);
}

.section-subtitle {
    color: var(--text-soft);
    margin-bottom: 1.32rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.service-card {
    border: 1px solid var(--border);
    background: var(--surface);
    border-radius: var(--radius-md);
    padding: 1.3rem;
    box-shadow: 0 10px 20px rgba(0, 45, 74, 0.06);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 29px rgba(0, 45, 74, 0.13);
}

.service-icon {
    width: 53px;
    height: 53px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--brand-green-soft), #dff0aa);
    color: #2f5400;
    font-size: 1.35rem;
    margin-bottom: 0.8rem;
}

.service-card h3 {
    margin: 0 0 0.45rem;
    font-size: 1.03rem;
}

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

.cta-band {
    margin-top: 1.8rem;
    border-radius: var(--radius-lg);
    background: linear-gradient(120deg, #063652, #062333 62%, #204d14 105%);
    color: #fff;
    padding: 1.85rem;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    box-shadow: var(--shadow);
}

.cta-band h3 {
    margin: 0 0 0.3rem;
}


.certificacao-section {
    padding-top: 2.2rem;
}

.certificacao-grid {
    display: grid;
    grid-template-columns: 1.02fr 1.2fr;
    gap: 1.1rem;
    align-items: start;
}

.certificado-card {
    background: linear-gradient(160deg, #ffffff, #f3f8ff);
    border: 1px solid #cadbea;
    border-radius: var(--radius-md);
    padding: 0.85rem;
    box-shadow: 0 10px 24px rgba(0, 45, 74, 0.1);
}

.certificado-card img {
    display: block;
    width: 100%;
    border-radius: 10px;
    border: 1px solid #d5e2ef;
}

.certificado-caption {
    margin: 0.62rem 0 0;
    font-size: 0.86rem;
    color: #5f7289;
}

.certificacao-content {
    background: linear-gradient(145deg, #ffffff, #f8fcff);
}

.certificacao-content p {
    margin: 0 0 0.95rem;
    color: #3d516b;
}

.certificacao-highlights {
    margin-top: 0.75rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.certificacao-highlights span {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.72rem;
    border-radius: 999px;
    border: 1px solid #c8dbeb;
    background: #eef6fc;
    color: #21425f;
    font-size: 0.84rem;
    font-weight: 600;
}
.site-footer {
    margin-top: 2.5rem;
    border-top: 1px solid #d5e2ef;
    color: #4f617a;
    font-size: 0.9rem;
    padding: 1.3rem 0 2rem;
}

.card {
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--surface);
    box-shadow: 0 9px 22px rgba(0, 45, 74, 0.08);
}

.panel {
    padding: 1.3rem;
}

.form-grid {
    display: grid;
    gap: 0.95rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.field {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.field.full {
    grid-column: 1 / -1;
}

label {
    font-size: 0.88rem;
    color: #26415d;
    font-weight: 600;
}

input,
select,
textarea {
    width: 100%;
    border: 1px solid #c7d8e8;
    border-radius: 12px;
    padding: 0.78rem 0.85rem;
    font: inherit;
    color: #10213a;
    background: #fff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 83, 121, 0.18);
}

textarea {
    min-height: 118px;
    resize: vertical;
}

.form-actions {
    margin-top: 0.4rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.hint {
    font-size: 0.8rem;
    color: #657890;
}

.error-text {
    color: var(--danger);
    font-size: 0.85rem;
}

.success-text {
    color: var(--success);
    font-size: 0.85rem;
}

.table-wrap {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    padding: 0.72rem;
    border-bottom: 1px solid #e2eaf3;
    text-align: left;
    font-size: 0.91rem;
}

th {
    font-size: 0.79rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #566a84;
}

.tag {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 0.2rem 0.65rem;
    font-size: 0.77rem;
    font-weight: 700;
}

.tag-pendente {
    color: #705300;
    background: #fff6dd;
}

.tag-andamento {
    color: #0a4f66;
    background: #d8f0f7;
}

.tag-finalizado {
    color: #18663b;
    background: #dff8e6;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.9rem;
}

.metric-card {
    border-radius: var(--radius-md);
    padding: 1rem;
    border: 1px solid #c8d9ea;
    background: linear-gradient(160deg, #ffffff, #f5fbff);
}

.metric-card:nth-child(4n + 1) {
    box-shadow: inset 0 2px 0 rgba(0, 82, 119, 0.2);
}

.metric-card:nth-child(4n + 2) {
    box-shadow: inset 0 2px 0 rgba(168, 201, 25, 0.55);
}

.metric-card:nth-child(4n + 3) {
    box-shadow: inset 0 2px 0 rgba(0, 82, 119, 0.34);
}

.metric-card:nth-child(4n + 4) {
    box-shadow: inset 0 2px 0 rgba(57, 141, 34, 0.35);
}

.metric-card small {
    color: #60748d;
    display: block;
}

.metric-card strong {
    font-size: 1.8rem;
    font-family: 'Space Grotesk', 'Sora', sans-serif;
}

.split-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.topbar {
    margin: 1.2rem 0 1.4rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.filters {
    display: grid;
    gap: 0.7rem;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-bottom: 0.9rem;
}

.status-line {
    min-height: 1.25rem;
    margin-top: 0.55rem;
    font-size: 0.9rem;
}

.page-title {
    margin: 1.1rem 0 0.9rem;
    font-family: 'Space Grotesk', 'Sora', sans-serif;
}

.modal {
    position: fixed;
    inset: 0;
    display: none;
    place-items: center;
    z-index: 30;
}

.modal.is-open {
    display: grid;
}

.modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(2, 18, 30, 0.7);
}

.modal-card {
    width: min(580px, calc(100% - 1.5rem));
    z-index: 1;
    border-radius: var(--radius-lg);
    background: #fff;
    border: 1px solid #dbe5f0;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.modal-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.15rem;
    border-bottom: 1px solid #e5edf6;
}

.modal-head h3 {
    margin: 0;
    font-size: 1.05rem;
}

.modal-close {
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 9px;
    cursor: pointer;
    background: #eff4fb;
    color: #1f3554;
}

.modal-body {
    padding: 1rem 1.15rem 1.2rem;
}

.toast-wrap {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    display: grid;
    gap: 0.55rem;
    z-index: 60;
}

.toast {
    min-width: 230px;
    max-width: 320px;
    border-radius: 12px;
    padding: 0.75rem 0.85rem;
    color: #fff;
    box-shadow: 0 12px 26px rgba(2, 6, 23, 0.25);
    animation: slide-in 0.24s ease;
}

.toast.success {
    background: #1f6f3e;
}

.toast.error {
    background: #b62319;
}

.toast.info {
    background: #005178;
}

.canvas-signature {
    width: 100%;
    height: 180px;
    border: 1px dashed #aec6dc;
    border-radius: 12px;
    background: #fff;
    touch-action: none;
}

.reveal {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.45s ease, transform 0.45s ease;
}

.reveal.is-visible {
    opacity: 1;
    transform: none;
}

.empty-state {
    text-align: center;
    color: #5d6f8a;
    padding: 1rem;
    border: 1px dashed #c8d6ea;
    border-radius: 12px;
    background: #f9fbff;
}

.auth-logo {
    display: flex;
    justify-content: center;
    margin-bottom: 0.75rem;
}

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

@keyframes slide-in {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

@keyframes hero-carousel-fallback {
    0%,
    20% {
        transform: translate3d(0%, 0, 0);
    }
    25%,
    45% {
        transform: translate3d(-100%, 0, 0);
    }
    50%,
    70% {
        transform: translate3d(-200%, 0, 0);
    }
    75%,
    95% {
        transform: translate3d(-300%, 0, 0);
    }
    100% {
        transform: translate3d(0%, 0, 0);
    }
}
@media (max-width: 1200px) {
    .site-header-inner {
        min-height: 80px;
        align-items: flex-start;
        padding: 0.85rem 0;
    }

    .site-nav {
        flex-wrap: wrap;
        justify-content: flex-end;
        gap: 0.45rem;
    }

    .site-nav a {
        font-size: 0.86rem;
        padding: 0.35rem 0.7rem;
    }

    .site-nav .btn {
        padding: 0.64rem 1rem;
        font-size: 0.86rem;
    }

    .hero {
        padding: 3.4rem 0 2.8rem;
    }

    .hero-carousel-section {
        padding-top: 1.3rem;
    }
}

@media (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr;
    }

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

    .certificacao-grid {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 768px) {
    .site-header-inner {
        min-height: 74px;
    }

    .brand img {
        height: 46px;
    }

    .site-nav {
        display: none;
    }

    .hero {
        padding-top: 2.9rem;
    }

    .hero-carousel-section {
        padding-top: 1rem;
    }

    .hero-carousel-control {
        width: 38px;
        height: 38px;
    }

    .hero-carousel-control.prev {
        left: 0.5rem;
    }

    .hero-carousel-control.next {
        right: 0.5rem;
    }

    .hero-carousel-dots {
        bottom: 0.6rem;
    }

    .services-grid,
    .form-grid,
    .split-grid,
    .filters,
    .certificacao-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .form-actions .btn {
        width: 100%;
    }

    .table-wrap {
        border: 1px solid #dce6f2;
        border-radius: 12px;
    }
}

@media (max-width: 480px) {
    .container {
        width: min(var(--container-max), calc(100% - 1rem));
    }

    .hero-carousel-control {
        width: 34px;
        height: 34px;
    }

    .hero-carousel-control i {
        font-size: 0.8rem;
    }

    .hero-carousel-dots {
        gap: 0.35rem;
        padding: 0.2rem 0.4rem;
    }

    .hero-carousel-dot {
        width: 8px;
        height: 8px;
    }
}