/* ============================================================
   SmartPass Home — Portal institucional digital
   ============================================================ */

:root {
    --sp-primary: #155592;
    --sp-primary-dark: #0f3d6b;
    --sp-primary-light: #1a6bb5;
    --sp-accent: #ffc107;
    --sp-accent-dark: #e6ac00;
    --sp-success: #28a745;
    --sp-text: #333333;
    --sp-text-muted: #666666;
    --sp-text-light: #888888;
    --sp-bg: #ffffff;
    --sp-bg-soft: #f4f7fb;
    --sp-bg-topbar: #eef1f5;
    --sp-border: #e2e8f0;
    --sp-footer: #0a2540;
    --sp-footer-dark: #061a2e;
    --sp-radius: 12px;
    --sp-radius-lg: 16px;
    --sp-shadow: 0 4px 24px rgba(21, 85, 146, 0.08);
    --sp-shadow-hover: 0 8px 32px rgba(21, 85, 146, 0.14);
    --sp-font: "Roboto", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --sp-transition: 0.25s ease;
}

/* Reset overrides for SmartPass layout */
body.sp-home {
    font-family: var(--sp-font);
    color: var(--sp-text);
    background: var(--sp-bg);
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

body.sp-home *,
body.sp-home *::before,
body.sp-home *::after {
    box-sizing: border-box;
}

body.sp-home h1,
body.sp-home h2,
body.sp-home h3,
body.sp-home h4,
body.sp-home h5,
body.sp-home h6 {
    font-weight: 700;
    line-height: 1.25;
}

body.sp-home
    a:not(.sp-btn):not(.sp-nav__link):not(.sp-service-card__link):not(.sp-section__link) {
    text-decoration: none;
    transition: color var(--sp-transition);
}

body.sp-home
    a:not(.sp-btn):not(.sp-nav__link):not(.sp-service-card__link):not(
        .sp-section__link
    ):hover {
    color: var(--sp-primary-dark);
}

body.sp-home img {
    max-width: 100%;
    height: auto;
}

/* Hide legacy Naxos loader */
body.sp-home .page-loader {
    display: none !important;
}

/* ---- Header ---- */
.sp-header {
    background: var(--sp-bg);
    border-bottom: 1px solid var(--sp-border);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.sp-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 72px;
    gap: 24px;
}

.sp-brand {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
}

.sp-brand__logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: inherit;
}

.sp-brand__icon {
    width: 44px;
    height: 44px;
    background: var(--sp-primary);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 20px;
    flex-shrink: 0;
}

.sp-brand__text {
    display: flex;
    flex-direction: column;
}

.sp-brand__name {
    font-size: 18px;
    font-weight: 700;
    color: var(--sp-primary);
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.sp-brand__tag {
    font-size: 10px;
    font-weight: 500;
    color: var(--sp-text-light);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.sp-brand__divider {
    width: 1px;
    height: 40px;
    background: var(--sp-border);
    flex-shrink: 0;
}

.sp-brand__subtitle {
    display: flex;
    flex-direction: column;
}

.sp-brand__subtitle strong {
    font-size: 15px;
    color: var(--sp-text);
    font-weight: 600;
}

.sp-brand__subtitle span {
    font-size: 12px;
    color: var(--sp-text-light);
}

/* Navigation */
.sp-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.sp-nav__link {
    display: block;
    padding: 8px 16px;
    font-size: 15px;
    font-weight: 500;
    color: var(--sp-text-muted);
    border-radius: 6px;
    transition: all var(--sp-transition);
}

.sp-nav__link:hover {
    color: var(--sp-primary);
    background: rgba(21, 85, 146, 0.06);
}

.sp-header__actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 24px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 8px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--sp-transition);
    text-decoration: none;
    line-height: 1.4;
}

.sp-btn--primary {
    background: var(--sp-primary);
    color: #fff;
    border-color: var(--sp-primary);
}

.sp-btn--primary:hover,
.sp-btn--primary:focus {
    background: var(--sp-primary-dark);
    border-color: var(--sp-primary-dark);
    color: #fff !important;
}

.sp-btn--primary,
.sp-btn--primary:visited {
    color: #fff !important;
}

.sp-btn--accent {
    background: var(--sp-accent);
    color: var(--sp-text);
    border-color: var(--sp-accent);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-size: 13px;
}

.sp-btn--accent:hover {
    background: var(--sp-accent-dark);
    border-color: var(--sp-accent-dark);
    color: var(--sp-text);
}

.sp-btn--outline {
    background: transparent;
    color: var(--sp-primary);
    border-color: var(--sp-primary);
}

.sp-btn--outline:hover {
    background: var(--sp-primary);
    color: #fff;
}

/* ---- Section common ---- */
.sp-section {
    padding: 72px 0;
}

.sp-section--first {
    padding-top: 48px;
}

.sp-section--soft {
    background: var(--sp-bg-soft);
}

.sp-section__header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 16px;
}

.sp-section__title {
    font-size: clamp(24px, 3vw, 32px);
    font-weight: 700;
    color: var(--sp-text);
    margin: 0;
    position: relative;
    padding-bottom: 12px;
}

.sp-section__title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 48px;
    height: 4px;
    background: var(--sp-primary);
    border-radius: 2px;
}

.sp-section__intro {
    margin-bottom: 40px;
}

.sp-section__intro--center {
    text-align: center;
}

.sp-section__intro--center .sp-section__title--center {
    display: inline-block;
    text-align: center;
}

.sp-section__title--center::after {
    left: 50%;
    transform: translateX(-50%);
}

.sp-section__link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 15px;
    font-weight: 600;
    color: var(--sp-primary);
}

.sp-section__link:hover {
    gap: 10px;
}

.sp-section__desc {
    max-width: 600px;
    margin: 16px auto 0;
    color: var(--sp-text-muted);
    font-size: 16px;
    line-height: 1.7;
}

.sp-section__intro--center .sp-section__desc {
    text-align: center;
}

/* ---- Service cards ---- */
.sp-services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

.sp-service-card {
    background: #fff;
    border-radius: var(--sp-radius);
    padding: 28px;
    box-shadow: var(--sp-shadow);
    border: 1px solid var(--sp-border);
    transition: all var(--sp-transition);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sp-service-card:hover {
    box-shadow: var(--sp-shadow-hover);
    transform: translateY(-4px);
    border-color: rgba(21, 85, 146, 0.2);
}

.sp-service-card__icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: #fff;
}

.sp-service-card__icon--blue {
    background: linear-gradient(135deg, #155592, #1a6bb5);
}

.sp-service-card__icon--green {
    background: linear-gradient(135deg, #28a745, #20c997);
}

.sp-service-card__icon--orange {
    background: linear-gradient(135deg, #fd7e14, #ffc107);
}

.sp-service-card__icon--red {
    background: linear-gradient(135deg, #dc3545, #e83e8c);
}

.sp-service-card__title {
    font-size: 18px;
    font-weight: 700;
    margin: 0;
    color: var(--sp-text);
}

.sp-service-card__desc {
    font-size: 14px;
    color: var(--sp-text-muted);
    margin: 0;
    line-height: 1.6;
    flex: 1;
}

.sp-service-card__link {
    font-size: 14px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 4px;
}

/* ---- Journey steps ---- */
.sp-journey {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    position: relative;
}

.sp-journey__step {
    text-align: center;
    position: relative;
}

.sp-journey__number {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--sp-primary);
    color: #fff;
    font-size: 22px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    position: relative;
    z-index: 1;
}

.sp-journey__title {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 8px;
}

.sp-journey__desc {
    font-size: 14px;
    color: var(--sp-text-muted);
    margin: 0;
    line-height: 1.6;
}

/* ---- FAQ ---- */
.sp-faq .card {
    border: 1px solid var(--sp-border);
    border-radius: var(--sp-radius) !important;
    margin-bottom: 12px;
    overflow: hidden;
    box-shadow: none;
}

.sp-faq .card-header {
    background: #fff;
    border-bottom: none;
    padding: 0;
}

.sp-faq .card-header h5 {
    margin: 0;
}

.sp-faq .card-header a {
    display: block;
    padding: 18px 24px;
    font-size: 15px;
    font-weight: 600;
    color: var(--sp-text);
    position: relative;
    padding-right: 48px;
}

.sp-faq .card-header a::after {
    content: "+";
    position: absolute;
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 20px;
    font-weight: 400;
    color: var(--sp-primary);
    transition: transform var(--sp-transition);
}

.sp-faq .card-header a:not(.collapsed)::after {
    content: "−";
}

.sp-faq .card-header a:hover {
    color: var(--sp-primary);
    background: rgba(21, 85, 146, 0.04);
}

.sp-faq .card-body {
    padding: 0 24px 18px;
    font-size: 14px;
    color: var(--sp-text-muted);
    line-height: 1.7;
}

.sp-faq .card-body p {
    margin: 0;
    color: var(--sp-text-muted);
}

/* ---- Footer ---- */
.sp-footer {
    background: var(--sp-footer);
    color: rgba(255, 255, 255, 0.85);
}

.sp-footer__widgets {
    padding: 56px 0 40px;
}

.sp-footer__grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
}

.sp-footer__grid--centered {
    display: flex;
    justify-content: space-evenly;
    align-items: flex-start;
}

.sp-footer__grid--centered .sp-footer__brand {
    max-width: 400px;
}

.sp-footer__grid--centered .sp-footer__nav {
    flex-shrink: 0;
}

.sp-footer__brand-name {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 4px;
}

.sp-footer__brand-tag {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    opacity: 0.6;
    margin-bottom: 16px;
}

.sp-footer__desc {
    font-size: 14px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 0;
}

.sp-footer a,
.sp-footer a:visited {
    color: rgba(255, 255, 255, 0.85);
}

.sp-footer a:hover,
.sp-footer a:focus {
    color: #ffffff;
}

.sp-footer__heading {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #fff;
    margin-bottom: 20px;
}

.sp-footer__menu {
    color: #fff;
    list-style: none;
    margin: 0;
    padding: 0;
}

.sp-footer__menu li {
    margin-bottom: 10px;
}

.sp-footer__menu a {
    font-size: 14px;
}

.sp-footer__copyright {
    background: var(--sp-footer-dark);
    padding: 20px 0;
    font-size: 13px;
}

.sp-footer__copyright-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
}

.sp-footer__copyright-inner > p {
    text-align: center;
}

.sp-footer__copyright p {
    margin: 0;
    color: rgba(255, 255, 255, 0.85);
}

.sp-footer__legal {
    display: flex;
    gap: 20px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.sp-footer__legal a {
    font-size: 13px;
}

/* ---- Back to top ---- */
.sp-to-top {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 44px;
    height: 44px;
    background: var(--sp-primary);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    box-shadow: var(--sp-shadow);
    opacity: 0;
    visibility: hidden;
    transition: all var(--sp-transition);
    z-index: 999;
    border: none;
    cursor: pointer;
}

.sp-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.sp-to-top:hover {
    background: var(--sp-primary-dark);
    color: #fff;
    transform: translateY(-2px);
}

/* ---- Responsive ---- */
@media (max-width: 991px) {
    .sp-nav-wrapper,
    .sp-header__actions {
        display: none;
    }

    .sp-brand__divider,
    .sp-brand__subtitle {
        display: none;
    }

    .sp-journey {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .sp-footer__grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 767px) {
    .sp-section {
        padding: 48px 0;
    }

    .sp-section--first {
        padding-top: 32px;
    }

    .sp-footer__grid {
        grid-template-columns: 1fr;
    }

    .sp-footer__grid--centered {
        flex-direction: column;
        align-items: flex-start;
        gap: 32px;
    }
}
