/* ============================================================
   Auto Viação São José — Design System
   Paleta institucional: azul profundo + laranja de destaque
   ============================================================ */

:root {
    --brand: #0057b8;
    --brand-dark: #003d7a;
    --navy: #0b2545;
    --navy-soft: #123a6b;
    --accent: #f0790f;
    --ink: #1d2733;
    --muted: #5c6b7a;
    --surface: #f5f7fa;
    --line: #e4eaf1;
    --radius: 14px;
    --shadow-sm: 0 1px 3px rgba(11, 37, 69, 0.08);
    --shadow-md: 0 8px 24px rgba(11, 37, 69, 0.10);
    --shadow-lg: 0 16px 40px rgba(11, 37, 69, 0.14);
    --font-display: 'Poppins', sans-serif;
    --font-body: 'Inter', sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    color: var(--ink);
    background: #fff;
    line-height: 1.65;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 600;
    color: var(--ink);
    line-height: 1.25;
}

a { color: var(--brand); }

/* ------------------------------------------------------------
   Barra superior
   ------------------------------------------------------------ */
.topbar {
    background: var(--navy);
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.82rem;
    padding: 7px 0;
}

.topbar a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    margin-left: 22px;
    transition: color 0.2s;
}

.topbar a:hover { color: #fff; }

.topbar i { color: var(--accent); }

/* ------------------------------------------------------------
   Navbar principal
   ------------------------------------------------------------ */
.navbar-main {
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--line);
    padding: 12px 0;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
}

.logo-wrapper {
    background: var(--navy);
    padding: 8px 12px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.logo-wrapper img {
    height: 44px;
    width: auto;
    object-fit: contain;
}

.brand-text { min-width: 0; }

.brand-text .brand-name {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--navy);
    margin: 0;
    line-height: 1.2;
    letter-spacing: -0.01em;
}

.brand-text .brand-tagline {
    font-size: 0.78rem;
    color: var(--muted);
    margin: 0;
    letter-spacing: 0.02em;
}

.navbar-main .nav-link {
    color: var(--ink) !important;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 8px 14px !important;
    position: relative;
    transition: color 0.2s;
}

.navbar-main .nav-link::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 14px;
    right: 14px;
    height: 2px;
    border-radius: 2px;
    background: var(--brand);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s ease;
}

.navbar-main .nav-link:hover { color: var(--brand) !important; }

.navbar-main .nav-link:hover::after,
.navbar-main .nav-link.active::after { transform: scaleX(1); }

.navbar-main .nav-link.active { color: var(--brand) !important; }

/* ------------------------------------------------------------
   Hero do carrossel (página inicial)
   ------------------------------------------------------------ */
.hero-carousel { position: relative; }

.hero-carousel .carousel-item {
    height: min(78vh, 620px);
    min-height: 420px;
    position: relative;
}

.hero-carousel .carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-carousel .carousel-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
        rgba(11, 37, 69, 0.35) 0%,
        rgba(11, 37, 69, 0.25) 40%,
        rgba(11, 37, 69, 0.78) 100%);
}

.hero-caption {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    align-items: flex-end;
    padding-bottom: 90px;
}

.hero-caption .overline {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #fff;
    background: rgba(240, 121, 15, 0.92);
    padding: 6px 14px;
    border-radius: 100px;
    margin-bottom: 18px;
}

.hero-caption h2 {
    font-size: clamp(1.7rem, 4vw, 3rem);
    font-weight: 700;
    color: #fff;
    max-width: 640px;
    margin-bottom: 12px;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
}

.hero-caption p {
    font-size: clamp(1rem, 1.6vw, 1.2rem);
    color: rgba(255, 255, 255, 0.92);
    max-width: 560px;
    margin-bottom: 26px;
}

.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.hero-carousel .carousel-indicators { margin-bottom: 28px; }

.hero-carousel .carousel-indicators [data-bs-target] {
    width: 34px;
    height: 4px;
    border-radius: 4px;
    border: 0;
    background: rgba(255, 255, 255, 0.45);
    transition: background 0.2s;
}

.hero-carousel .carousel-indicators .active { background: var(--accent); }

/* ------------------------------------------------------------
   Heros de páginas internas
   ------------------------------------------------------------ */
.page-hero {
    background:
        radial-gradient(1200px 400px at 85% -10%, rgba(0, 87, 184, 0.45), transparent 60%),
        linear-gradient(135deg, var(--navy) 0%, var(--brand-dark) 100%);
    color: #fff;
    padding: 88px 0 76px;
}

.page-hero .overline {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 12px;
}

.page-hero h1 {
    font-size: clamp(1.9rem, 4vw, 2.8rem);
    font-weight: 700;
    color: #fff;
    margin-bottom: 12px;
}

.page-hero p {
    font-size: 1.08rem;
    color: rgba(255, 255, 255, 0.85);
    max-width: 620px;
    margin: 0 auto;
}

.page-hero.text-center p { margin-left: auto; margin-right: auto; }

/* ------------------------------------------------------------
   Seções e títulos
   ------------------------------------------------------------ */
.section { padding: 88px 0; }

.section-alt { background: var(--surface); }

.section-head { max-width: 640px; margin: 0 auto 56px; text-align: center; }

.section-head .overline {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--brand);
    margin-bottom: 10px;
}

.section-head h2 {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 12px;
}

.section-head p { color: var(--muted); font-size: 1.05rem; margin: 0; }

/* ------------------------------------------------------------
   Cartões
   ------------------------------------------------------------ */
.card-elevated {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card-elevated:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.mvv-card {
    padding: 36px 30px;
    height: 100%;
}

.mvv-icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: rgba(0, 87, 184, 0.08);
    color: var(--brand);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    margin-bottom: 20px;
}

.mvv-card h4 {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 12px;
}

.mvv-card p { color: var(--muted); margin: 0; }

.mvv-card ul { list-style: none; padding: 0; margin: 0; }

.mvv-card ul li {
    color: var(--muted);
    padding: 5px 0 5px 26px;
    position: relative;
}

.mvv-card ul li::before {
    content: '\2713';
    position: absolute;
    left: 0;
    color: var(--brand);
    font-weight: 700;
}

/* Faixa de números */
.stats-band {
    background: linear-gradient(135deg, var(--navy) 0%, var(--brand-dark) 100%);
    color: #fff;
    padding: 64px 0;
}

.stat-item { text-align: center; }

.stat-number {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 700;
    color: #fff;
    line-height: 1.1;
}

.stat-number span { color: var(--accent); }

.stat-label {
    font-size: 0.92rem;
    color: rgba(255, 255, 255, 0.75);
    letter-spacing: 0.04em;
    margin-top: 6px;
}

/* Parceiros */
.partner-card {
    padding: 34px 26px;
    text-align: center;
    height: 100%;
}

.partner-icon {
    width: 62px;
    height: 62px;
    margin: 0 auto 18px;
    border-radius: 50%;
    background: rgba(0, 87, 184, 0.08);
    color: var(--brand);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.partner-card h5 {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 6px;
}

.partner-card p { color: var(--muted); font-size: 0.9rem; margin: 0; }

/* Compromissos (Empresa) */
.commitment-card {
    padding: 36px 30px;
    text-align: center;
    height: 100%;
}

.commitment-card .mvv-icon { margin-left: auto; margin-right: auto; }

.commitment-card h5 {
    color: var(--navy);
    font-weight: 600;
    margin-bottom: 12px;
}

.commitment-card p { color: var(--muted); margin: 0; }

/* Linhas de ônibus */
.bus-line-card {
    padding: 28px;
    margin-bottom: 24px;
    border-left: 4px solid var(--brand);
    height: calc(100% - 24px);
}

.line-number {
    display: inline-block;
    background: var(--navy);
    color: #fff;
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 700;
    padding: 8px 20px;
    border-radius: 10px;
    margin-bottom: 14px;
}

.bus-line-card h4 {
    font-size: 1.15rem;
    color: var(--navy);
    margin-bottom: 14px;
}

.line-info p { margin-bottom: 8px; color: var(--muted); font-size: 0.95rem; }

.line-info i { color: var(--brand); margin-right: 10px; width: 18px; }

.line-info strong { color: var(--ink); }

.search-box {
    background: #fff;
    border: 1px solid var(--line);
    padding: 28px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    position: relative;
    z-index: 10;
    margin-top: -48px;
}

.search-box h5 {
    color: var(--navy);
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 18px;
}

/* Venda de ônibus */
.bus-card {
    overflow: hidden;
    height: 100%;
    cursor: pointer;
}

.bus-image {
    width: 100%;
    height: 210px;
    background: linear-gradient(135deg, var(--navy), var(--brand-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.85);
    font-size: 3rem;
}

.bus-image img { width: 100%; height: 100%; object-fit: cover; }

.bus-details { padding: 24px; }

.bus-price {
    color: var(--brand);
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.bus-specs { list-style: none; padding: 0; margin: 16px 0; }

.bus-specs li {
    padding: 8px 0;
    border-bottom: 1px solid var(--surface);
    font-size: 0.92rem;
    color: var(--muted);
}

.bus-specs li:last-child { border-bottom: none; }

.bus-specs i { color: var(--brand); margin-right: 10px; width: 18px; }

.bus-specs strong { color: var(--ink); }

.modal-header {
    background: var(--navy);
    color: #fff;
}

.modal-header .btn-close { filter: brightness(0) invert(1); }

/* Transparência */
.report-card {
    padding: 32px;
    margin-bottom: 24px;
    display: block;
    color: inherit;
    text-decoration: none;
}

a.report-card:hover { color: inherit; }

.report-header { display: flex; align-items: center; margin-bottom: 20px; }

.report-icon {
    width: 58px;
    height: 58px;
    background: rgba(0, 87, 184, 0.08);
    color: var(--brand);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 18px;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.report-title {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--navy);
}

.report-subtitle { color: var(--muted); font-size: 0.95rem; }

.report-meta {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 16px 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.report-meta .meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--muted);
    font-size: 0.9rem;
}

.report-meta .meta-item i { color: var(--brand); }

.info-box {
    background: #fff;
    border: 1px solid var(--line);
    border-left: 4px solid var(--brand);
    padding: 24px 28px;
    margin-bottom: 40px;
    border-radius: 10px;
    box-shadow: var(--shadow-sm);
}

.info-box h5 { color: var(--navy); font-size: 1.05rem; margin-bottom: 10px; }

.info-box p { color: var(--muted); margin: 0; }

/* Página de portal externo (Trabalhe Conosco, Fornecedor, Colaborador) */
.portal-card {
    padding: 44px 40px;
    max-width: 720px;
    margin: 0 auto;
}

.portal-card h2 { color: var(--navy); font-size: 1.5rem; margin-bottom: 14px; }

.portal-card .lead { color: var(--muted); font-size: 1.05rem; }

.portal-list { list-style: none; padding: 0; margin: 0; }

.portal-list li {
    padding: 9px 0 9px 30px;
    position: relative;
    color: var(--muted);
    border-bottom: 1px solid var(--surface);
}

.portal-list li:last-child { border-bottom: none; }

.portal-list li::before {
    content: '\2713';
    position: absolute;
    left: 0;
    color: var(--brand);
    font-weight: 700;
}

/* ------------------------------------------------------------
   Botões e formulários
   ------------------------------------------------------------ */
.btn-brand {
    background: var(--brand);
    border: 1px solid var(--brand);
    color: #fff;
    font-weight: 600;
    padding: 12px 30px;
    border-radius: 10px;
    transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}

.btn-brand:hover {
    background: var(--brand-dark);
    border-color: var(--brand-dark);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(0, 87, 184, 0.28);
}

.btn-ghost-light {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.6);
    color: #fff;
    font-weight: 600;
    padding: 12px 30px;
    border-radius: 10px;
    transition: background 0.2s, border-color 0.2s;
}

.btn-ghost-light:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: #fff;
    color: #fff;
}

.form-label { font-weight: 500; color: var(--ink); font-size: 0.92rem; }

.form-control, .form-select {
    border-radius: 10px;
    padding: 11px 16px;
    border: 1px solid var(--line);
    font-size: 0.95rem;
}

.form-control:focus, .form-select:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 0.2rem rgba(0, 87, 184, 0.12);
}

/* ------------------------------------------------------------
   Contato
   ------------------------------------------------------------ */
.contact-form-wrapper, .contact-info-wrapper {
    background: #fff;
    border: 1px solid var(--line);
    padding: 38px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    height: 100%;
}

.contact-form-wrapper h3, .contact-info-wrapper h3 {
    font-size: 1.25rem;
    color: var(--navy);
}

.contact-info-item {
    display: flex;
    gap: 16px;
    padding: 18px 0;
    border-bottom: 1px solid var(--surface);
}

.contact-info-item:last-of-type { border-bottom: none; }

.contact-info-item i {
    color: var(--brand);
    font-size: 1.15rem;
    margin-top: 4px;
    width: 22px;
    flex-shrink: 0;
}

.contact-info-item strong { color: var(--navy); display: block; }

.contact-info-item p { color: var(--muted); margin: 0; font-size: 0.95rem; }

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: var(--surface);
    border-radius: 50%;
    margin-right: 10px;
    color: var(--brand);
    font-size: 1.1rem;
    transition: background 0.2s, color 0.2s, transform 0.2s;
    text-decoration: none;
}

.social-links a:hover {
    background: var(--brand);
    color: #fff;
    transform: translateY(-2px);
}

/* Paginação */
.pagination .page-link {
    color: var(--brand);
    border: 1px solid var(--line);
    border-radius: 8px;
    margin: 0 3px;
    min-width: 40px;
    text-align: center;
    padding: 8px 12px;
    transition: background 0.2s, color 0.2s;
}

.pagination .page-link:hover {
    background: var(--surface);
    color: var(--brand-dark);
}

.pagination .page-item.active .page-link {
    background: var(--brand);
    border-color: var(--brand);
    color: #fff;
}

.pagination .page-item.disabled .page-link {
    color: #b6c2cd;
    background: transparent;
}

.pagination .page-link:focus { box-shadow: 0 0 0 0.2rem rgba(0, 87, 184, 0.12); }

.results-counter {
    color: var(--muted);
    font-size: 0.9rem;
}

/* Estados vazios */
.empty-state { text-align: center; padding: 70px 20px; }

.empty-state i { font-size: 3.4rem; color: #cdd7e1; margin-bottom: 18px; }

.empty-state h4 { color: var(--muted); margin-bottom: 8px; }

.empty-state p { color: #9aa8b5; margin: 0; }

/* ------------------------------------------------------------
   Rodapé
   ------------------------------------------------------------ */
.footer {
    background: var(--navy);
    color: rgba(255, 255, 255, 0.78);
    padding: 64px 0 24px;
}

.footer h5 {
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    margin-bottom: 18px;
    position: relative;
    padding-bottom: 10px;
}

.footer h5::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 28px;
    height: 2px;
    border-radius: 2px;
    background: var(--accent);
}

.footer p { font-size: 0.92rem; }

.footer a {
    color: rgba(255, 255, 255, 0.78);
    text-decoration: none;
    display: block;
    margin-bottom: 9px;
    font-size: 0.92rem;
    transition: color 0.2s;
}

.footer a:hover { color: #fff; }

.footer .footer-brand img { height: 56px; margin-bottom: 18px; }

.footer-social { margin-top: 18px; }

.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    margin-right: 10px;
    margin-bottom: 0;
    font-size: 1rem;
    transition: background 0.2s, transform 0.2s;
}

.footer-social a:hover { background: var(--accent); transform: translateY(-2px); }

.footer i.fa-fw-list { color: var(--accent); }

.footer-bottom {
    margin-top: 44px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.55);
}

.footer-bottom p { margin: 0; font-size: 0.85rem; }

/* ------------------------------------------------------------
   Responsivo
   ------------------------------------------------------------ */
@media (min-width: 992px) {
    .mobile-contact-info { display: none; }
}

@media (max-width: 991px) {
    .topbar { display: none; }

    .navbar-main .navbar-nav {
        margin-top: 14px;
        padding-top: 10px;
        border-top: 1px solid var(--line);
    }

    .navbar-main .nav-link::after { display: none; }

    .mobile-contact-info {
        display: block;
        padding: 14px 0 4px;
        border-top: 1px solid var(--line);
        margin-top: 10px;
    }

    .mobile-contact-info a {
        display: block;
        padding: 9px 0;
        color: var(--ink);
        text-decoration: none;
        font-size: 0.92rem;
    }

    .mobile-contact-info i { width: 24px; color: var(--brand); }

    .section { padding: 64px 0; }

    .page-hero { padding: 64px 0 56px; }

    .hero-caption { padding-bottom: 70px; }

    .stats-band { padding: 48px 0; }

    .stat-item { margin-bottom: 24px; }
}

@media (max-width: 767px) {
    .hero-carousel .carousel-item { height: 66vh; min-height: 380px; }

    .search-box { margin-top: -36px; padding: 22px; }

    .contact-form-wrapper, .contact-info-wrapper { padding: 26px; }

    .portal-card { padding: 32px 24px; }

    .footer { padding: 48px 0 20px; }
}

@media (max-width: 575px) {
    .brand-text .brand-tagline { display: none; }

    .brand-text .brand-name { font-size: 0.95rem; }

    .logo-wrapper img { height: 34px; }

    .logo-wrapper { padding: 6px 9px; }

    .hero-caption { padding-bottom: 60px; }

    .hero-actions .btn-brand, .hero-actions .btn-ghost-light {
        padding: 10px 22px;
        font-size: 0.92rem;
    }

    .section { padding: 52px 0; }

    .report-card { padding: 24px; }

    .bus-line-card { padding: 20px; }
}
