/* ============================================
TRANSLOCAVE - STYLES (VERSÃO APRIMORADA)
Design: Light Theme with Clean White Layout
============================================ */

/* ---------- CSS VARIABLES ---------- */
:root {
    --bg-primary: #ffffff;
    --bg-secondary: #F4F7FB;
    --bg-card: #ffffff;
    --bg-card-hover: #F7FAFC;
    --text-primary: #111827;
    --text-secondary: #4B5563;
    --text-tertiary: #111827;
    --text-muted: #6B7280;
    --brand-red: #E11D24;
    --brand-red-dim: #B4141A;
    --brand-blue: #0057B8;
    --brand-blue-dim: #003B7A;
    --brand-green: #16A34A;
    --brand-green-dim: #0F7A36;
    --accent: var(--brand-red);
    --accent-dim: var(--brand-red-dim);
    --accent-soft: rgba(225, 29, 36, 0.10);
    --blue-soft: rgba(0, 87, 184, 0.10);
    --green-soft: rgba(22, 163, 74, 0.10);
    --border-light: rgba(17, 24, 39, 0.12);
    --border-lighter: rgba(17, 24, 39, 0.08);
    --border-mid: rgba(17, 24, 39, 0.18);
    --shadow-soft: 0 16px 40px rgba(17, 24, 39, 0.08);
    --shadow-card: 0 20px 50px rgba(17, 24, 39, 0.10);
    --ink: #082F64;
    --sand2: #E5EEF8;
    --font-display: 'Archivo', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
    --header-height: 72px;
    --max-width: 1360px;
    --radius-sm: 10px;
    --radius-md: 14px;
    --radius-lg: 18px;
    --radius-xl: 24px;
    --transition: cubic-bezier(0.16, 1, 0.3, 1);
    --ease: var(--transition);
}

/* ---------- RESET & BASE ---------- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-height);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    scrollbar-width: thin;
    scrollbar-color: var(--accent) transparent;
}

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--accent);
    border-radius: 10px;
    border: 2px solid var(--bg-secondary);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-dim);
}

body {
    font-family: var(--font-body);
    background:
        radial-gradient(circle at top left, rgba(225, 29, 36, 0.08), transparent 32rem),
        radial-gradient(circle at top right, rgba(0, 87, 184, 0.08), transparent 30rem),
        radial-gradient(circle at 80% 35%, rgba(22, 163, 74, 0.06), transparent 28rem),
        linear-gradient(180deg, #ffffff 0%, #F4F7FB 100%);
    color: var(--text-secondary);
    font-weight: 400;
    font-size: 16px;
    line-height: 1.6;
    overflow-x: hidden;
}

body.loading {
    overflow: hidden;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul {
    list-style: none;
}

button {
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
    color: inherit;
}

input, textarea {
    font-family: inherit;
    font-size: inherit;
}

/* ---------- ANIMATIONS ---------- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.3); }
}

@keyframes ping {
    75%, 100% {
        transform: scale(2.5);
        opacity: 0;
    }
}

@keyframes slideUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes loader-progress {
    0% { width: 0%; }
    100% { width: 100%; }
}

@keyframes pulse-wpp {
    0%, 100% { box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4); }
    50% { box-shadow: 0 4px 30px rgba(37, 211, 102, 0.6), 0 0 0 10px rgba(37, 211, 102, 0.1); }
}

/* ---------- SCROLL REVEAL ---------- */
[data-scroll] {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s var(--transition), transform 0.8s var(--transition);
}

[data-scroll].visible {
    opacity: 1;
    transform: translateY(0);
}

/* ---------- PRELOADER ---------- */
#preloader {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: var(--bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

#preloader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loader-content {
    width: min(82vw, 400px);
    text-align: center;
}

.loader-logo-gif {
    width: 100%;
    max-height: 190px;
    margin-inline: auto;
    object-fit: contain;
}

.loader-bar {
    width: min(220px, 70%);
    height: 3px;
    margin: 10px auto 0;
    overflow: hidden;
    border-radius: 999px;
    background: var(--border-light);
}

.loader-progress {
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--brand-red), var(--brand-blue), var(--brand-green));
    animation: loader-progress 1.5s var(--ease) forwards;
}

/* ---------- UTILITY ---------- */
.text-center { text-align: center; }

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.custom-scroll::-webkit-scrollbar {
    width: 4px;
}

.custom-scroll::-webkit-scrollbar-track {
    background: transparent;
}

.custom-scroll::-webkit-scrollbar-thumb {
    background: var(--border-mid);
    border-radius: 4px;
}

/* ---------- BADGES ---------- */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: var(--accent-soft);
    color: var(--accent-dim);
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.badge::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
    animation: pulse 2s infinite;
}

/* ---------- SECTION KICKER ---------- */
.section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    margin-bottom: 12px;
    color: var(--accent-dim);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.14em;
    line-height: 1.2;
    text-transform: uppercase;
}

.section-kicker::before {
    content: '';
    width: 28px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
}

.section-kicker.text-center {
    margin-right: auto;
    margin-left: auto;
}

/* ---------- SECTION TITLES ---------- */
.section-title {
    font-family: var(--font-display);
    font-size: 36px;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin-bottom: 20px;
}

.section-title span {
    color: var(--text-secondary);
}

.section-text {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 28px;
}

.section-group {
    scroll-margin-top: var(--header-height);
}

#cidades,
#sobre,
#servicos,
#rastreamento,
#numeros,
#diferenciais,
#cotacao,
#footer {
    scroll-margin-top: var(--header-height);
}

/* ---------- SEARCH BAR ---------- */
#searchBar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 200;
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid var(--border-light);
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    transform: translateY(-100%);
    transition: transform 0.5s var(--transition);
}

#searchBar.active {
    transform: translateY(0);
}

.search-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    gap: 16px;
}

#searchForm {
    flex: 1;
    display: flex;
    gap: 12px;
}

#searchForm input {
    flex: 1;
    background: #ffffff;
    border: 1px solid var(--border-lighter);
    border-radius: var(--radius-sm);
    padding: 12px 14px;
    outline: none;
    color: var(--text-primary);
    font-size: 18px;
    letter-spacing: 0.05em;
}

#searchForm input::placeholder {
    color: var(--text-muted);
}

.btn-search {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    border: 1px solid var(--border-mid);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: all 0.3s ease;
}

.btn-search:hover {
    background: var(--text-primary);
    color: #ffffff;
}

.btn-close-search {
    font-size: 20px;
    color: var(--text-secondary);
    transition: color 0.3s ease;
}

.btn-close-search:hover {
    color: var(--text-primary);
}

/* ---------- HEADER ---------- */
#header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    height: var(--header-height);
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-lighter);
    transition: background 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

#header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 10px 30px rgba(26, 21, 18, 0.08);
    border-bottom-color: transparent;
}

.header-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Logo */
.logo-link {
    display: inline-flex;
    align-items: center;
    z-index: 110;
}

.logo {
    display: flex;
    align-items: center;
    width: 200px;
    height: 52px;
    max-width: 100%;
    max-height: 52px;
    object-fit: contain;
}

.logo-text {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: 0.05em;
}

.logo-accent {
    color: var(--text-secondary);
    font-weight: 400;
}

/* Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    z-index: 110;
    padding: 8px;
}

.menu-toggle .label-open,
.menu-toggle .label-close {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-secondary);
    transition: opacity 0.3s ease;
}

.menu-toggle .label-close {
    display: none;
}

.menu-toggle.active .label-open { display: none; }
.menu-toggle.active .label-close { display: block; }

.hamburger {
    display: flex;
    flex-direction: column;
    gap: 5px;
    width: 24px;
}

.hamburger span {
    display: block;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all 0.4s var(--transition);
    transform-origin: center;
}

.menu-toggle.active .hamburger span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.menu-toggle.active .hamburger span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.menu-toggle.active .hamburger span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Navigation */
.nav {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    gap: 18px;
    width: 100%;
    flex: 1;
    margin-left: 32px;
    min-width: 0;
}

.nav-top, .nav-bottom {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-bottom {
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
    justify-content: flex-end;
    flex-shrink: 0;
}

.nav-top {
    width: auto;
    justify-content: flex-start;
    flex-shrink: 1;
    min-width: 0;
}

.nav-top .nav-left,
.nav-bottom .nav-left {
    flex-wrap: nowrap;
}

.nav-left {
    display: flex;
    gap: 4px;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: wrap;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.nav-item > a {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 9px 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
    transition: all 0.3s ease;
    white-space: nowrap;
}

.nav-item > a:hover {
    color: var(--text-primary);
    background: var(--accent-soft);
}

.nav-item > a i.fa-chevron-down {
    font-size: 8px;
    transition: transform 0.3s ease;
}

/* Dropdown */
.has-dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 260px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 8px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all 0.3s var(--transition);
    box-shadow: var(--shadow-card);
}

.has-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.has-dropdown:hover > a i.fa-chevron-down {
    transform: rotate(180deg);
}

.dropdown-menu a {
    display: block;
    padding: 10px 20px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    text-transform: none;
    letter-spacing: 0;
    transition: all 0.2s ease;
}


.dropdown-cities {
    min-width: 240px;
}

.dropdown-cities a {
    white-space: nowrap;
}

.dropdown-menu a:hover {
    color: var(--text-primary);
    background: var(--accent-soft);
    padding-left: 24px;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    color: var(--text-muted);
    font-size: 13px;
    transition: all 0.3s ease;
}

.social-icon:hover {
    color: var(--text-primary);
}

.btn-portal {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 18px;
    background: var(--brand-blue);
    color: #ffffff;
    border-radius: var(--radius-sm);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    transition: all 0.3s ease;
    box-shadow: 0 10px 22px rgba(26, 21, 18, 0.12);
}

.btn-portal:hover {
    background: var(--brand-green);
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 14px 28px rgba(22, 163, 74, 0.28);
}

.nav-search-btn a {
    padding: 8px 10px !important;
}

/* Mobile Menu Overlay */
#menuMobile {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 99;
    background: rgba(26, 21, 18, 0.28);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

#menuMobile.active {
    opacity: 1;
    visibility: visible;
}

/* ---------- COMMON BUTTONS ---------- */
.btn-primary,
.btn-secondary,
.btn-small {
    position: relative;
    overflow: hidden;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 30px;
    background: var(--accent);
    color: #ffffff;
    border-radius: var(--radius-md);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    transition: all 0.25s ease;
    box-shadow: 0 16px 36px rgba(225, 29, 36, 0.36);
}

.btn-primary span,
.btn-primary i {
    position: relative;
    z-index: 1;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
    transition: left 0.6s ease;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    background: var(--accent-dim);
    color: #ffffff;
    transform: translateY(-2px);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-mid);
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: var(--text-primary);
    color: #ffffff;
    border-color: var(--text-primary);
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(26, 21, 18, 0.12);
}

.btn-secondary.btn-cobertura {
    background: var(--accent);
    color: #ffffff;
    border-color: var(--accent);
}

.btn-secondary.btn-cobertura:hover {
    background: var(--accent-dim);
    color: #ffffff;
    border-color: var(--accent-dim);
}

.btn-small {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-secondary);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    transition: all 0.3s ease;
}

.btn-small:hover {
    color: var(--text-primary);
    border-color: var(--border-mid);
    background: var(--accent-soft);
}

.btn-full {
    width: 100%;
    justify-content: center;
}

/* ---------- BANNER / HERO ---------- */
#banner {
    position: relative;
    width: min(calc(100% - clamp(24px, 6vw, 96px)), 1240px);
    height: clamp(460px, 62vh, 640px);
    margin: calc(var(--header-height) + 18px) auto 0;
    overflow: hidden;
    background: var(--ink);
    border-radius: var(--radius-xl);
    box-shadow: 0 28px 70px rgba(8, 47, 100, 0.18);
}

.banner-slider {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.8s ease;
    pointer-events: none;
}

.slide.active {
    opacity: 1;
    pointer-events: all;
}

.slide-bg {
    position: absolute;
    inset: 0;
}

.slide-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.05);
    transition: transform 8s ease-out;
}

.slide.active .slide-bg img {
    transform: scale(1);
}

.slide-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        rgba(8, 47, 100, 0.92) 0%,
        rgba(0, 87, 184, 0.68) 42%,
        rgba(225, 29, 36, 0.20) 78%,
        rgba(22, 163, 74, 0.10) 100%
    );
}

.slide-content {
    position: relative;
    z-index: 2;
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 clamp(24px, 5vw, 72px);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.slide-content h1 {
    font-family: var(--font-display);
    font-size: clamp(24px, 3.7vw, 46px);
    font-weight: 800;
    color: #ffffff;
    line-height: 1.02;
    letter-spacing: -0.02em;
    max-width: 560px;
    margin-bottom: 12px;
    opacity: 0;
    transform: translateY(30px);
    animation: slideUp 0.8s var(--transition) 0.3s forwards;
}

.slide-content p {
    font-size: clamp(13px, 1vw, 15px);
    color: rgba(255, 255, 255, 0.82);
    max-width: 460px;
    line-height: 1.55;
    margin-bottom: 18px;
    opacity: 0;
    transform: translateY(30px);
    animation: slideUp 0.8s var(--transition) 0.5s forwards;
}

.slide-content .section-kicker {
    color: #ffffff;
}

.slide-content .section-kicker::before {
    background: var(--accent);
}

.slide-content .btn-primary {
    opacity: 0;
    transform: translateY(30px);
    animation: slideUp 0.8s var(--transition) 0.7s forwards;
    align-self: flex-start;
}

/* Slider Controls */
.slider-controls {
    position: absolute;
    bottom: clamp(16px, 3vh, 28px);
    left: 0;
    right: 0;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 clamp(20px, 5vw, 64px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 10;
}

.slider-dots {
    display: flex;
    gap: 8px;
}

.slider-dot {
    width: 22px;
    height: 4px;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-dot.active {
    width: 44px;
    background: #ffffff;
}

.slider-arrows {
    display: flex;
    gap: 8px;
}

.slider-prev, .slider-next {
    width: 46px;
    height: 46px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    color: #ffffff;
    font-size: 14px;
    transition: all 0.25s ease;
}

.slider-prev:hover, .slider-next:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: #ffffff;
}

/* ---------- QUICK LINKS BAR ---------- */
.quick-links {
    position: relative;
    z-index: 6;
    max-width: var(--max-width);
    margin: -28px auto 40px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 1px;
    background: var(--border-light);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 30px 70px rgba(26, 21, 18, 0.14);
}

.quick-link-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 22px 24px;
    background: #ffffff;
    transition: background 0.25s ease;
    position: relative;
}

.quick-link-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 3px;
    height: 100%;
    background: var(--accent);
    transform: scaleY(0);
    transition: transform 0.3s var(--transition);
    transform-origin: bottom;
}

.quick-link-item:hover::before {
    transform: scaleY(1);
}

.quick-link-item:hover {
    background: var(--bg-secondary);
}

.quick-link-icon {
    width: 50px;
    height: 50px;
    flex-shrink: 0;
    border-radius: 13px;
    background: var(--accent-soft);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 19px;
    transition: all 0.3s ease;
}

.quick-link-item:hover .quick-link-icon {
    background: var(--accent);
    color: #ffffff;
    transform: scale(1.1);
}

.quick-link-text {
    display: flex;
    flex-direction: column;
}

.quick-link-text strong {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 15.5px;
    color: var(--text-primary);
}

.quick-link-text span {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 2px;
}

/* ---------- SECTION SPLIT LAYOUT ---------- */
.section-split {
    padding: 0 24px;
}

.split-grid {
    max-width: var(--max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-left: 1px solid var(--border-lighter);
    border-right: 1px solid var(--border-lighter);
}

.split-grid-balanced {
    align-items: stretch;
}

.split-grid-balanced .split-col,
.split-grid-balanced .video-section,
.split-grid-balanced .tracking-section {
    height: 100%;
}

.split-col {
    border: 1px solid var(--border-lighter);
    border-top: none;
    border-bottom: none;
}

.split-col:first-child {
    border-left: none;
}

.split-col:last-child {
    border-right: none;
}

/* ---------- UNITS SECTION ---------- */
.units-section {
    display: flex;
    flex-direction: column;
    min-height: 600px;
    border-radius: 0;
}

.units-info {
    padding: 48px 40px;
    background: #ffffff;
    flex: 0 0 auto;
    box-shadow: var(--shadow-soft);
}

.units-info .section-title {
    font-size: 32px;
}

.units-map {
    flex: 1;
    position: relative;
    overflow: hidden;
    min-height: 360px;
}

.units-map img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.92;
    transition: opacity 0.5s ease;
}

.units-map:hover img {
    opacity: 1;
}

.units-map::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(225, 29, 36, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

.map-pins {
    position: absolute;
    inset: 0;
}

.map-pin {
    position: absolute;
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
    box-shadow: 0 0 0 3px rgba(225, 29, 36, 0.18);
    animation: ping 1.5s cubic-bezier(0, 0, 0.2, 1) infinite;
}

.map-pin::before {
    content: '';
    position: absolute;
    inset: -4px;
    border: 1px solid var(--accent);
    border-radius: 50%;
    opacity: 0.4;
}

/* ---------- HELP SECTION ---------- */
.help-section {
    padding: 48px 40px;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    min-height: 600px;
    justify-content: flex-start;
    box-shadow: var(--shadow-soft);
}

.help-section .section-title {
    font-size: 32px;
    margin-bottom: 32px;
}

.help-section .section-text {
    margin-bottom: 24px;
}

.help-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    flex: 1;
    overflow-y: auto;
    padding-right: 8px;
    max-height: 480px;
}

.help-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
    padding: 28px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-lighter);
    border-radius: var(--radius-md);
    transition: all 0.3s ease;
    min-height: 150px;
    justify-content: center;
    color: inherit;
    box-shadow: var(--shadow-soft);
    will-change: transform;
}

.help-item:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-card);
}

.help-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--accent-soft);
    color: var(--accent-dim);
    font-size: 18px;
    transition: all 0.3s ease;
}

.help-item:hover .help-icon {
    background: var(--accent);
    color: #ffffff;
}

.help-item span {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-tertiary);
    line-height: 1.4;
}

/* ---------- VIDEO SECTION ---------- */
.video-section {
    display: flex;
    flex-direction: column;
}

.video-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 3 / 2;
    overflow: hidden;
    cursor: pointer;
}

.video-placeholder {
    position: absolute;
    inset: 0;
    z-index: 2;
    transition: opacity 0.4s ease;
}

.video-placeholder.hidden {
    opacity: 0;
    pointer-events: none;
}

.video-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.86);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(26, 21, 18, 0.10);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-dim);
    font-size: 22px;
    padding-left: 4px;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-card);
}

.video-play-btn:hover {
    background: var(--accent);
    color: #ffffff;
    border-color: var(--accent);
    transform: translate(-50%, -50%) scale(1.1);
}

#videoFrame {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.video-info {
    padding: 40px;
    background: #ffffff;
    box-shadow: var(--shadow-soft);
}

/* ---------- TRACKING SECTION ---------- */
.tracking-section {
    display: flex;
    flex-direction: column;
    min-height: 430px;
    border-radius: 0;
}

.tracking-info {
    padding: 40px;
    background: #ffffff;
    flex: 0 0 auto;
    box-shadow: var(--shadow-soft);
}

.tracking-info .section-title {
    font-size: 28px;
}

.tracking-info p {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.tracking-image {
    flex: 1;
    overflow: hidden;
    min-height: 260px;
}

.tracking-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.92;
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.tracking-image:hover img {
    opacity: 1;
    transform: scale(1.03);
}

/* ---------- NEWS SECTION ---------- */
.news-section {
    padding: 40px;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    gap: 24px;
    border-top: 1px solid var(--border-lighter);
    box-shadow: var(--shadow-soft);
}

.news-card {
    padding: 28px;
    background: var(--bg-card);
    border: 1px solid var(--border-lighter);
    border-radius: var(--radius-md);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    will-change: transform;
}

.news-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 0;
    background: var(--accent);
    transition: height 0.4s var(--transition);
}

.news-card:hover::before {
    height: 100%;
}

.news-card:hover {
    border-color: var(--border-light);
    background: var(--bg-card-hover);
    box-shadow: var(--shadow-card);
}

.news-card time {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 4px 12px;
    background: var(--accent-soft);
    color: var(--accent-dim);
    border-radius: 999px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 10px;
}

.news-card time::before {
    content: '\f133';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 9px;
}

.news-card h3 {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 10px;
    line-height: 1.3;
}

.news-card p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ---------- STATS SECTION (dark) ---------- */
.stats-section {
    position: relative;
    padding: clamp(56px, 7vw, 90px) clamp(20px, 5vw, 64px);
    background: var(--ink);
    overflow: hidden;
}

.stats-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(90% 140% at 15% 0%, rgba(225, 29, 36, 0.22), transparent 50%);
}

.stats-inner {
    position: relative;
    max-width: var(--max-width);
    margin: 0 auto;
}

.stats-section .section-title,
.stats-section .section-kicker {
    color: #ffffff;
}

.stats-section .section-kicker::before {
    background: var(--accent);
}

.stats-section .section-title {
    max-width: 620px;
    margin-bottom: clamp(36px, 4vw, 54px);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.stat-card {
    text-align: left;
    padding: clamp(28px, 3vw, 40px);
    background: var(--ink);
    transition: background 0.3s ease, transform 0.3s ease;
    position: relative;
    will-change: transform;
}

.stat-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.4s var(--transition);
}

.stat-card:hover {
    background: rgba(225, 29, 36, 0.08);
    transform: translateY(-4px);
}

.stat-card:hover::after {
    width: 100%;
}

.stat-number {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(40px, 5vw, 64px);
    color: #ffffff;
    line-height: 1;
    letter-spacing: -0.03em;
    display: flex;
    align-items: baseline;
    gap: 2px;
}

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

.stat-label {
    font-size: 13.5px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.62);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-top: 10px;
}

/* ---------- DIFERENCIAIS SECTION ---------- */
.diferenciais-section {
    padding: 80px 24px;
    background: #ffffff;
}

.diff-inner {
    max-width: var(--max-width);
    margin: 0 auto;
}

.diferenciais-section .section-title {
    margin-bottom: 48px;
}

.diff-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.diff-card {
    position: relative;
    padding: 34px 30px;
    background: #ffffff;
    border: 1px solid var(--border-lighter);
    border-top: 3px solid var(--border-lighter);
    border-radius: var(--radius-lg);
    transition: all 0.3s ease, opacity 0.5s var(--transition), transform 0.5s var(--transition);
    opacity: 0;
    transform: translateY(20px);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    will-change: transform;
}

.diff-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.diff-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, transparent 0%, rgba(225, 29, 36, 0.04) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.diff-card:hover::after {
    opacity: 1;
}

.diff-card:hover {
    border-top-color: var(--accent);
    transform: translateY(-5px);
    box-shadow: var(--shadow-card);
}

.diff-card.visible:hover {
    transform: translateY(-5px);
}

.diff-card:hover .diff-icon {
    transform: scale(1.1) rotate(-5deg);
    background: var(--accent);
    color: #ffffff;
}

.diff-card:hover h3 {
    color: var(--accent-dim);
}

.diff-index {
    position: absolute;
    top: 28px;
    right: 30px;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 15px;
    color: var(--sand2);
}

.diff-icon {
    width: 54px;
    height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    background: var(--accent-soft);
    color: var(--accent);
    font-size: 21px;
    margin-bottom: 22px;
    transition: all 0.3s ease;
}

.diff-card h3 {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
    transition: color 0.3s ease;
}

.diff-card p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ---------- COTAÇÃO SECTION ---------- */
.cotacao-section {
    padding: 80px 24px;
    border-top: 1px solid var(--border-lighter);
    background: #ffffff;
    position: relative;
    overflow: hidden;
}

.cotacao-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(225, 29, 36, 0.06) 0%, transparent 70%);
    pointer-events: none;
}

.cotacao-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: start;
}

.cotacao-info .section-title {
    font-size: 40px;
    margin-bottom: 20px;
}

.cotacao-info p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 32px;
}

.cotacao-contacts {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 14px;
    color: var(--text-tertiary);
    font-size: 15px;
}

.contact-item i {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--accent-soft);
    color: var(--accent-dim);
    font-size: 14px;
}

/* Form */
.cotacao-form {
    background: var(--bg-secondary);
    border: 1px solid var(--border-lighter);
    border-radius: var(--radius-xl);
    padding: 40px;
    box-shadow: var(--shadow-soft);
    will-change: transform;
}

.form-group {
    margin-bottom: 16px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 14px;
    outline: none;
    transition: all 0.3s ease;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--border-mid);
    background: var(--bg-card-hover);
    box-shadow: 0 0 0 3px rgba(225, 29, 36, 0.12);
}

.form-group input:invalid:not(:placeholder-shown) {
    border-color: #dc2626;
}

.form-group input:valid:not(:placeholder-shown) {
    border-color: #16a34a;
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.cotacao-form .btn-primary {
    margin-top: 8px;
}

/* ---------- FOOTER ---------- */
#footer {
    border-top: 1px solid var(--border-lighter);
    background: #f8fafc;
}

.footer-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

.footer-top {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr 1.2fr;
    gap: 40px;
    padding: 60px 0 40px;
}

.footer-logo {
    margin-bottom: 16px;
}

.footer-logo .logo {
    width: 200px;
    height: 52px;
    max-height: 52px;
}

.footer-about p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 20px;
}

.footer-social {
    display: flex;
    gap: 10px;
}

.footer-social a {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid var(--border-light);
    color: var(--text-muted);
    font-size: 14px;
    transition: all 0.3s ease;
}

.footer-social a:hover {
    color: var(--text-primary);
    border-color: var(--border-mid);
    background: var(--accent-soft);
}

.footer-col h4 {
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 20px;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul a {
    font-size: 14px;
    color: var(--text-secondary);
    transition: all 0.2s ease;
}

.footer-col ul a:hover {
    color: var(--text-primary);
    padding-left: 4px;
}

.footer-contact-item {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}

.footer-contact-item i {
    color: var(--text-muted);
    font-size: 14px;
    margin-top: 3px;
    flex-shrink: 0;
}

.footer-contact-item span {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 0;
    border-top: 1px solid var(--border-lighter);
}

.footer-bottom p {
    font-size: 13px;
    color: var(--text-muted);
}

.footer-bottom-links {
    display: flex;
    gap: 24px;
}

.footer-bottom-links a {
    font-size: 13px;
    color: var(--text-muted);
    transition: color 0.3s ease;
}

.footer-bottom-links a:hover {
    color: var(--text-primary);
}

/* ---------- WHATSAPP FLOAT ---------- */
.whatsapp-float {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 90;
    width: 56px;
    height: 56px;
    background: #25d366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 28px;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    transition: all 0.3s ease;
    opacity: 0;
    transform: scale(0);
    animation: none;
}

.whatsapp-float.show {
    opacity: 1;
    transform: scale(1);
    animation: pulse-wpp 2s infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(37, 211, 102, 0.5);
}

/* ---------- BACK TO TOP ---------- */
.back-to-top {
    position: fixed;
    bottom: 28px;
    right: 96px;
    z-index: 90;
    width: 40px;
    height: 40px;
    background: #ffffff;
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 14px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    box-shadow: var(--shadow-soft);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--text-primary);
    color: #ffffff;
    border-color: var(--text-primary);
}

/* ---------- TOAST ---------- */
.toast {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    z-index: 300;
    padding: 14px 28px;
    background: var(--text-primary);
    color: #ffffff;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 500;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s var(--transition);
    white-space: nowrap;
    box-shadow: 0 20px 40px rgba(26, 21, 18, 0.2);
    display: flex;
    align-items: center;
    gap: 12px;
}

.toast::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #16a34a;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
}

.toast.show {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* ---------- FOCUS VISIBLE (Acessibilidade) ---------- */
.help-item:focus-visible,
.btn-primary:focus-visible,
.btn-secondary:focus-visible,
.btn-small:focus-visible,
.nav-item > a:focus-visible,
.social-icon:focus-visible,
.footer-social a:focus-visible,
.footer-col a:focus-visible,
.back-to-top:focus-visible,
.whatsapp-float:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 3px solid rgba(225, 29, 36, 0.34);
    outline-offset: 3px;
}

:focus-visible {
    outline: 3px solid rgba(225, 29, 36, 0.5);
    outline-offset: 3px;
}

/* ---------- REDUCED MOTION (Acessibilidade) ---------- */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}


/* ---------- BRAND REFINEMENTS: vermelho, azul e verde ---------- */
.section-kicker {
    color: var(--brand-blue);
}

.section-kicker::before {
    background: linear-gradient(90deg, var(--brand-red), var(--brand-blue), var(--brand-green));
}

.badge {
    background: var(--blue-soft);
    color: var(--brand-blue-dim);
}

.nav-item > a:hover,
.dropdown-menu a:hover,
.btn-small:hover {
    background: var(--blue-soft);
    color: var(--brand-blue-dim);
}

.social-icon[aria-label="Instagram"]:hover,
.footer-social a[aria-label="Instagram"]:hover {
    background: #ffffff;
    border-color: #ffffff;
    color: #E11D24;
}

.social-icon[aria-label="Facebook"]:hover,
.footer-social a[aria-label="Facebook"]:hover {
    background: #ffffff;
    border-color: #ffffff;
    color: #0057B8;
}

.social-icon[aria-label="LinkedIn"]:hover,
.footer-social a[aria-label="LinkedIn"]:hover,
.footer-social a[aria-label="YouTube"]:hover {
    background: #ffffff;;
    border-color: #ffffff;;
    color: #16A34A;;
}

/* Ícones sociais do cabeçalho sem contorno ou fundo circular. */
.social-icon[aria-label="Instagram"]:hover,
.social-icon[aria-label="Facebook"]:hover,
.social-icon[aria-label="LinkedIn"]:hover {
    background: transparent;
    border-color: transparent;
}

.quick-link-item:nth-child(1)::before,
.quick-link-item:nth-child(1) .quick-link-icon,
.diff-card:nth-child(1) .diff-icon {
    color: var(--brand-red);
    background: var(--accent-soft);
}

.quick-link-item:nth-child(2)::before,
.quick-link-item:nth-child(2) .quick-link-icon,
.diff-card:nth-child(2) .diff-icon {
    color: var(--brand-blue);
    background: var(--blue-soft);
}

.quick-link-item:nth-child(3)::before,
.quick-link-item:nth-child(3) .quick-link-icon,
.diff-card:nth-child(3) .diff-icon {
    color: var(--brand-green);
    background: var(--green-soft);
}

.quick-link-item:nth-child(4)::before,
.quick-link-item:nth-child(4) .quick-link-icon {
    color: var(--brand-blue);
    background: var(--blue-soft);
}

.quick-link-item:nth-child(1)::before { background: var(--brand-red); }
.quick-link-item:nth-child(2)::before { background: var(--brand-blue); }
.quick-link-item:nth-child(3)::before { background: var(--brand-green); }
.quick-link-item:nth-child(4)::before { background: var(--brand-red); }

.quick-link-item:hover .quick-link-icon,
.diff-card:hover .diff-icon,
.help-item:hover .help-icon {
    background: linear-gradient(135deg, var(--brand-red), var(--brand-blue) 52%, var(--brand-green));
    color: #ffffff;
}

.stats-section {
    background: linear-gradient(135deg, var(--brand-blue-dim) 0%, #082F64 52%, #0F3F2B 100%);
}

.stats-section::before {
    background:
        radial-gradient(65% 120% at 15% 0%, rgba(225, 29, 36, 0.32), transparent 55%),
        radial-gradient(60% 120% at 85% 20%, rgba(22, 163, 74, 0.26), transparent 55%);
}

.stat-card {
    background: rgba(8, 47, 100, 0.72);
}

.stat-card::after {
    background: linear-gradient(90deg, var(--brand-red), var(--brand-green));
}

.stat-card:hover {
    background: rgba(22, 163, 74, 0.14);
}

.diff-card:nth-child(1):hover { border-top-color: var(--brand-red); }
.diff-card:nth-child(2):hover { border-top-color: var(--brand-blue); }
.diff-card:nth-child(3):hover { border-top-color: var(--brand-green); }

.contact-item i {
    background: var(--green-soft);
    color: var(--brand-green-dim);
}

#footer {
    background:
        linear-gradient(90deg, rgba(225, 29, 36, 0.07), rgba(0, 87, 184, 0.07), rgba(22, 163, 74, 0.07)),
        #f8fafc;
}

.back-to-top:hover {
    background: var(--brand-blue);
    border-color: var(--brand-blue);
}

:focus-visible {
    outline-color: rgba(0, 87, 184, 0.5);
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1200px) {
    .nav {
        margin-left: 20px;
        gap: 10px;
    }

    .nav-item > a {
        padding-inline: 8px;
        letter-spacing: 0.04em;
        font-size: 10.5px;
    }

    .btn-portal span {
        display: none;
    }
}

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

    .split-col {
        border: 1px solid var(--border-lighter) !important;
        border-top: none !important;
    }

    .split-col:first-child {
        border-top: 1px solid var(--border-lighter) !important;
    }

    .section-split {
        padding: 0 20px;
    }

    .units-section,
    .help-section {
        min-height: auto;
    }

    .units-map {
        min-height: 360px;
    }

    .help-grid {
        max-height: none;
        overflow: visible;
    }

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

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

    .cotacao-inner {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-top {
        grid-template-columns: repeat(3, 1fr);
    }

    .footer-about {
        grid-column: span 3;
    }
}

@media (max-width: 768px) {
    :root {
        --header-height: 64px;
    }

    .quick-links {
        margin: -24px auto 32px;
        grid-template-columns: 1fr;
    }

    .menu-toggle {
        display: flex;
    }

    #nav {
        position: fixed;
        top: 0;
        right: 0;
        width: 85%;
        max-width: 360px;
        height: 100vh;
        height: 100dvh;
        background: #ffffff;
        border-left: 1px solid var(--border-light);
        padding: 100px 24px 40px;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        gap: 0;
        overflow-y: auto;
        transform: translateX(100%);
        transition: transform 0.5s var(--transition);
        z-index: 105;
        box-shadow: -20px 0 40px rgba(26, 21, 18, 0.12);
        margin-left: 0;
    }

    #nav.active {
        transform: translateX(0);
    }

    .nav-top,
    .nav-bottom {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
    }

    .nav-top,
    .nav-left {
        width: 100%;
        align-items: stretch;
    }

    .nav-left {
        flex-direction: column;
        justify-content: flex-start;
        flex-wrap: nowrap;
    }

    .nav-bottom .nav-left {
        flex-direction: row;
        align-items: center;
        gap: 10px;
    }

    .nav-bottom {
        border-top: 1px solid var(--border-lighter);
        margin-top: 16px;
        padding-top: 16px;
    }

    .nav-item > a {
        padding: 12px 0;
        font-size: 14px;
    }

    .nav-search-btn a {
        padding: 12px 0 !important;
    }

    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        background: transparent;
        backdrop-filter: none;
        border: none;
        border-radius: 0;
        padding: 0 0 0 16px;
        box-shadow: none;
        display: none;
    }

    .has-dropdown.mobile-open .dropdown-menu {
        display: block;
    }

    .nav-right {
        flex-wrap: wrap;
        gap: 12px;
        margin-top: 16px;
        padding-top: 16px;
        border-top: 1px solid var(--border-lighter);
        justify-content: flex-start;
    }

    .btn-portal {
        width: 100%;
        justify-content: center;
    }

    .btn-portal span {
        display: inline;
    }

    #menuMobile {
        display: block;
    }

    .section-split {
        padding: 0 16px;
    }

    #banner {
        width: calc(100% - 24px);
        height: clamp(360px, 62vh, 500px);
        margin-top: calc(var(--header-height) + 12px);
        border-radius: var(--radius-lg);
    }

    .slide-content h1 {
        font-size: clamp(23px, 8vw, 34px);
    }

    .slide-content p {
        max-width: 92%;
    }


    .units-info,
    .help-section,
    .video-info,
    .tracking-info,
    .news-section {
        padding: 28px 24px;
    }

    .help-grid {
        grid-template-columns: 1fr;
        max-height: none;
        overflow-y: visible;
    }

    .help-item {
        min-height: 118px;
    }

    .units-map,
    .tracking-image {
        min-height: 280px;
    }

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

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

    .diff-card:hover .diff-icon {
        transform: none;
    }

    .cotacao-section {
        padding: 48px 24px;
    }

    .cotacao-inner {
        grid-template-columns: 1fr;
    }

    .cotacao-form {
        padding: 28px 20px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .footer-top {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }

    .footer-about {
        grid-column: span 2;
    }

    .footer-contact {
        grid-column: span 2;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }

    .section-title {
        font-size: 28px;
    }

    .cotacao-info .section-title {
        font-size: 32px;
    }

    .section-kicker {
        font-size: 11px;
        letter-spacing: 0.12em;
    }

    .section-kicker::before {
        width: 22px;
    }

    .back-to-top {
        right: 28px;
        bottom: 96px;
    }

    .toast {
        right: 16px;
        left: 16px;
        width: auto;
        white-space: normal;
        text-align: center;
        transform: translateY(20px);
    }

    .toast.show {
        transform: translateY(0);
    }
}

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

    .footer-top {
        grid-template-columns: 1fr;
    }

    .footer-about,
    .footer-contact {
        grid-column: span 1;
    }

    .section-split,
    .stats-section,
    .diferenciais-section,
    .cotacao-section {
        padding-right: 14px;
        padding-left: 14px;
    }

    .help-grid {
        gap: 10px;
    }

    .help-item {
        padding: 22px 14px;
    }

    .units-map,
    .tracking-image {
        min-height: 230px;
    }
}


/* ---------- FIX FINAL: HEADER ALINHADO EM UMA LINHA ---------- */
@media (min-width: 769px) {
    #header {
        height: var(--header-height);
    }

    .header-inner {
        display: grid;
        grid-template-columns: auto minmax(0, 1fr);
        align-items: center;
        column-gap: clamp(20px, 3vw, 48px);
        min-height: var(--header-height);
    }

    .logo-link,
    .logo {
        flex-shrink: 0;
    }

    #nav.nav,
    #nav {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: flex-end !important;
        gap: clamp(14px, 1.8vw, 28px) !important;
        width: 100% !important;
        height: var(--header-height) !important;
        margin-left: 0 !important;
        min-width: 0 !important;
    }

    #nav .nav-top,
    #nav .nav-bottom {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: flex-end !important;
        width: auto !important;
        height: var(--header-height) !important;
        margin: 0 !important;
        padding: 0 !important;
        border: 0 !important;
        gap: 10px !important;
        flex-shrink: 0;
    }

    #nav .nav-top {
        flex: 1 1 auto;
        min-width: 0;
    }

    #nav .nav-bottom {
        flex: 0 0 auto;
    }

    #nav .nav-left,
    #nav .nav-right,
    #nav .nav-bottom .nav-left,
    #nav .nav-top .nav-left {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: flex-end !important;
        flex-wrap: nowrap !important;
        width: auto !important;
        gap: 6px !important;
    }

    #nav .nav-item,
    #nav .social-icon,
    #nav .btn-portal {
        flex: 0 0 auto;
    }

    #nav .nav-item > a {
        height: 40px;
        padding: 0 10px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        line-height: 1;
    }

    #nav .nav-search-btn a {
        width: 36px;
        height: 36px;
        padding: 0 !important;
    }

    #nav .social-icon {
        width: 36px;
        height: 36px;
    }

    #nav .btn-portal {
        height: 40px;
        padding: 0 20px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        line-height: 1;
        white-space: nowrap;
    }
}

@media (min-width: 769px) and (max-width: 1180px) {
    .header-inner {
        padding-inline: 18px;
        column-gap: 18px;
    }

    #nav {
        gap: 10px !important;
    }

    #nav .nav-top,
    #nav .nav-bottom {
        gap: 6px !important;
    }

    #nav .nav-item > a {
        padding-inline: 7px;
        font-size: 10px;
        letter-spacing: 0.035em;
    }

    #nav .social-icon,
    #nav .nav-search-btn a {
        width: 32px;
        height: 32px;
    }

    #nav .btn-portal {
        width: 40px;
        height: 40px;
        padding: 0;
        border-radius: 12px;
    }

    #nav .btn-portal span {
        display: none;
    }
}
/* ---------- FIM FIX FINAL HEADER ---------- */

/* ---------- HISTÓRIA DA EMPRESA ---------- */
.history-page {
    background:
        radial-gradient(circle at 8% 12%, rgba(0, 87, 184, 0.12), transparent 28rem),
        radial-gradient(circle at 88% 24%, rgba(22, 163, 74, 0.10), transparent 24rem),
        linear-gradient(180deg, #ffffff 0%, var(--bg-secondary) 100%);
}

.history-hero {
    position: relative;
    width: min(calc(100% - clamp(24px, 6vw, 96px)), 1240px);
    min-height: clamp(520px, 72vh, 760px);
    margin: calc(var(--header-height) + 18px) auto 0;
    overflow: hidden;
    border-radius: var(--radius-xl);
    background: var(--ink);
    box-shadow: 0 28px 70px rgba(8, 47, 100, 0.18);
    isolation: isolate;
}

.history-hero-media,
.history-hero-media img,
.history-hero-overlay {
    position: absolute;
    inset: 0;
}

.history-hero-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.03);
}

.history-hero-overlay {
    z-index: 1;
    background:
        linear-gradient(90deg, rgba(8, 47, 100, 0.96) 0%, rgba(8, 47, 100, 0.78) 42%, rgba(225, 29, 36, 0.30) 78%, rgba(22, 163, 74, 0.18) 100%),
        radial-gradient(circle at 82% 20%, rgba(255, 255, 255, 0.18), transparent 18rem);
}

.history-hero::after {
    content: '';
    position: absolute;
    z-index: 2;
    right: clamp(24px, 5vw, 72px);
    bottom: clamp(24px, 5vw, 72px);
    width: min(34vw, 420px);
    aspect-ratio: 1;
    border: 1px solid rgba(255, 255, 255, 0.20);
    border-radius: 50%;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.12), transparent),
        conic-gradient(from 120deg, rgba(225, 29, 36, 0.7), rgba(0, 87, 184, 0.2), rgba(22, 163, 74, 0.55), rgba(225, 29, 36, 0.7));
    opacity: 0.34;
    filter: blur(0.2px);
    pointer-events: none;
}

.history-hero-content {
    position: relative;
    z-index: 3;
    min-height: inherit;
    max-width: 760px;
    padding: clamp(42px, 7vw, 88px);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.breadcrumb {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    width: fit-content;
    margin-bottom: 22px;
    padding: 8px 12px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.10);
    color: rgba(255, 255, 255, 0.82);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.breadcrumb a,
.breadcrumb strong {
    color: #ffffff;
}

.breadcrumb i {
    font-size: 9px;
    opacity: 0.65;
}

.history-hero .section-kicker {
    color: #ffffff;
}

.history-hero .section-kicker::before {
    background: var(--brand-green);
}

.history-hero h1 {
    font-family: var(--font-display);
    font-size: clamp(34px, 5vw, 72px);
    font-weight: 800;
    line-height: 0.98;
    letter-spacing: -0.04em;
    color: #ffffff;
    margin-bottom: 22px;
}

.history-hero p {
    max-width: 620px;
    color: rgba(255, 255, 255, 0.84);
    font-size: clamp(15px, 1.45vw, 18px);
    line-height: 1.72;
    margin-bottom: 32px;
}

.history-hero-actions,
.history-cta-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
}

.btn-secondary-light {
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.30);
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.btn-secondary-light:hover {
    color: var(--ink);
    background: #ffffff;
    border-color: #ffffff;
}

.history-intro,
.history-timeline-section,
.history-cities,
.history-values,
.history-cta {
    width: min(calc(100% - clamp(24px, 6vw, 96px)), var(--max-width));
    margin-inline: auto;
}

.history-intro {
    padding: clamp(56px, 8vw, 96px) 0 32px;
}

.history-intro-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
    gap: clamp(24px, 5vw, 72px);
    align-items: stretch;
}

.history-intro-copy {
    padding: clamp(28px, 5vw, 56px);
    background: #ffffff;
    border: 1px solid var(--border-lighter);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-soft);
}

.history-intro-copy .section-title {
    max-width: 780px;
    margin-bottom: 22px;
}

.history-intro-copy p {
    max-width: 840px;
    color: var(--text-secondary);
    font-size: 16px;
    line-height: 1.82;
}

.history-intro-copy p + p {
    margin-top: 18px;
}

.history-highlight-card {
    position: relative;
    overflow: hidden;
    min-height: 320px;
    padding: clamp(28px, 4vw, 44px);
    border-radius: var(--radius-xl);
    background:
        linear-gradient(145deg, var(--brand-blue) 0%, var(--brand-blue-dim) 55%, var(--ink) 100%);
    color: #ffffff;
    box-shadow: 0 24px 70px rgba(0, 87, 184, 0.22);
}

.history-highlight-card::after {
    content: '';
    position: absolute;
    right: -88px;
    bottom: -88px;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: var(--brand-green);
    opacity: 0.26;
}

.history-highlight-card span {
    display: inline-flex;
    margin-bottom: 24px;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.history-highlight-card strong {
    display: block;
    font-family: var(--font-display);
    font-size: clamp(58px, 8vw, 104px);
    line-height: 0.9;
    letter-spacing: -0.06em;
    margin-bottom: 24px;
}

.history-highlight-card p {
    position: relative;
    z-index: 1;
    max-width: 320px;
    color: rgba(255, 255, 255, 0.82);
    line-height: 1.7;
}

.history-timeline-section,
.history-values {
    padding: clamp(48px, 7vw, 86px) 0;
}

.history-section-head {
    max-width: 820px;
    margin: 0 auto clamp(32px, 5vw, 56px);
}

.history-section-head .section-title {
    margin-bottom: 12px;
}

.history-timeline {
    position: relative;
    display: grid;
    gap: 18px;
    max-width: 980px;
    margin: 0 auto;
}

.history-timeline::before {
    content: '';
    position: absolute;
    top: 28px;
    bottom: 28px;
    left: 132px;
    width: 2px;
    background: linear-gradient(180deg, var(--brand-red), var(--brand-blue), var(--brand-green));
    opacity: 0.28;
}

.history-step {
    position: relative;
    display: grid;
    grid-template-columns: 160px minmax(0, 1fr);
    gap: 22px;
    align-items: stretch;
}

.history-step-year {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 108px;
    border-radius: var(--radius-lg);
    background: #ffffff;
    color: var(--brand-blue);
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.02em;
    border: 1px solid var(--border-lighter);
    box-shadow: var(--shadow-soft);
}

.history-step:nth-child(1) .history-step-year { color: var(--brand-red); }
.history-step:nth-child(4) .history-step-year { color: var(--brand-green); }

.history-step-content {
    position: relative;
    padding: 28px 32px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid var(--border-lighter);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
}

.history-step-content::before {
    content: '';
    position: absolute;
    left: -8px;
    top: 42px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--brand-red);
    box-shadow: 0 0 0 8px rgba(225, 29, 36, 0.10);
}

.history-step:nth-child(2) .history-step-content::before,
.history-step:nth-child(3) .history-step-content::before {
    background: var(--brand-blue);
    box-shadow: 0 0 0 8px rgba(0, 87, 184, 0.10);
}

.history-step:nth-child(4) .history-step-content::before {
    background: var(--brand-green);
    box-shadow: 0 0 0 8px rgba(22, 163, 74, 0.10);
}

.history-step-content h3 {
    font-family: var(--font-display);
    font-size: 22px;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.history-step-content p {
    color: var(--text-secondary);
    line-height: 1.75;
}

.history-cities {
    padding: clamp(42px, 6vw, 76px) clamp(24px, 5vw, 64px);
    border-radius: var(--radius-xl);
    background:
        linear-gradient(135deg, rgba(0, 87, 184, 0.96), rgba(8, 47, 100, 0.96)),
        radial-gradient(circle at 90% 15%, rgba(22, 163, 74, 0.28), transparent 20rem);
    color: #ffffff;
    box-shadow: 0 28px 70px rgba(124, 148, 182, 0.18);
}

.history-cities-inner {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
    gap: clamp(28px, 5vw, 72px);
    align-items: center;
}

.history-cities .section-kicker,
.history-cities .section-title,
.history-cities .section-text {
    color: #ffffff;
}

.history-cities .section-kicker::before {
    background: var(--brand-green);
}

.history-cities .section-text {
    color: rgba(255, 255, 255, 0.82);
}

.city-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.city-grid span {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 66px;
    padding: 16px 18px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.10);
    color: #ffffff;
    font-weight: 800;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.city-grid span::before {
    content: '\f3c5';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(22, 163, 74, 0.22);
    color: #ffffff;
}

.history-values-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.history-value-card {
    position: relative;
    overflow: hidden;
    min-height: 280px;
    padding: 32px;
    background: #ffffff;
    border: 1px solid var(--border-lighter);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-soft);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.history-value-card::after {
    content: '';
    position: absolute;
    inset: auto -80px -90px auto;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: var(--blue-soft);
}

.history-value-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    margin-bottom: 24px;
    color: #ffffff;
    font-size: 21px;
}

.history-value-icon.red { background: var(--brand-red); }
.history-value-icon.blue { background: var(--brand-blue); }
.history-value-icon.green { background: var(--brand-green); }

.history-value-card h3 {
    position: relative;
    z-index: 1;
    font-family: var(--font-display);
    color: var(--text-primary);
    font-size: 22px;
    margin-bottom: 12px;
}

.history-value-card p {
    position: relative;
    z-index: 1;
    color: var(--text-secondary);
    line-height: 1.75;
}

.history-cta {
    padding: 0 0 clamp(56px, 8vw, 96px);
}

.history-cta-inner {
    position: relative;
    overflow: hidden;
    padding: clamp(36px, 6vw, 72px);
    border-radius: var(--radius-xl);
    background:
        linear-gradient(135deg, rgba(225, 29, 36, 0.95), rgba(0, 87, 184, 0.94)),
        radial-gradient(circle at 84% 18%, rgba(22, 163, 74, 0.55), transparent 22rem);
    color: #ffffff;
    box-shadow: 0 28px 70px rgba(225, 29, 36, 0.16);
}

.history-cta-inner::after {
    content: '';
    position: absolute;
    right: -120px;
    top: -120px;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.14);
}

.history-cta .section-kicker,
.history-cta h2,
.history-cta p {
    position: relative;
    z-index: 1;
    color: #ffffff;
}

.history-cta .section-kicker::before {
    background: var(--brand-green);
}

.history-cta h2 {
    max-width: 760px;
    font-family: var(--font-display);
    font-size: clamp(30px, 4vw, 56px);
    line-height: 1.05;
    letter-spacing: -0.03em;
    margin-bottom: 18px;
}

.history-cta p {
    max-width: 680px;
    color: rgba(255, 255, 255, 0.84);
    line-height: 1.75;
    margin-bottom: 28px;
}

.history-cta-actions {
    position: relative;
    z-index: 1;
}

@media (max-width: 1024px) {
    .history-intro-grid,
    .history-cities-inner,
    .history-values-grid {
        grid-template-columns: 1fr;
    }

    .history-highlight-card {
        min-height: 260px;
    }
}

@media (max-width: 768px) {
    .history-hero,
    .history-intro,
    .history-timeline-section,
    .history-cities,
    .history-values,
    .history-cta {
        width: calc(100% - 28px);
    }

    .history-hero {
        min-height: 620px;
        margin-top: calc(var(--header-height) + 14px);
        border-radius: var(--radius-lg);
    }

    .history-hero-content {
        padding: 34px 24px;
    }

    .history-hero::after {
        width: 260px;
        right: -90px;
        bottom: -70px;
    }

    .history-hero-actions,
    .history-cta-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .history-hero-actions .btn-primary,
    .history-hero-actions .btn-secondary,
    .history-cta-actions .btn-primary,
    .history-cta-actions .btn-secondary {
        width: 100%;
        justify-content: center;
    }

    .history-intro {
        padding-top: 48px;
    }

    .history-intro-copy,
    .history-highlight-card,
    .history-cta-inner {
        padding: 28px;
    }

    .history-timeline::before {
        left: 18px;
    }

    .history-step {
        grid-template-columns: 1fr;
        gap: 12px;
        padding-left: 38px;
    }

    .history-step-year {
        width: fit-content;
        min-height: auto;
        padding: 12px 18px;
    }

    .history-step-content {
        padding: 24px;
    }

    .history-step-content::before {
        left: -29px;
        top: 28px;
    }

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

@media (max-width: 480px) {
    .breadcrumb {
        border-radius: 18px;
    }

    .history-hero h1 {
        font-size: clamp(31px, 12vw, 46px);
    }

    .history-value-card {
        padding: 26px;
        min-height: auto;
    }
}


/* ---------- CIDADES PAGE / CITY DETAIL PAGES ---------- */
.cities-hero,
.city-selector-section,
.cities-info-section,
.city-detail-hero,
.city-detail-section,
.city-service-board,
.city-next-section {
    width: min(calc(100% - clamp(28px, 6vw, 96px)), var(--max-width));
    margin-inline: auto;
}

.cities-hero {
    position: relative;
    overflow: hidden;
    min-height: clamp(520px, 68vh, 720px);
    margin-top: calc(var(--header-height) + 18px);
    padding: clamp(34px, 6vw, 76px);
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 420px);
    align-items: end;
    gap: clamp(28px, 5vw, 70px);
    border-radius: var(--radius-xl);
    background-image:
        linear-gradient(135deg, rgba(8, 46, 100, 0.87), rgba(0, 86, 184, 0)),
        radial-gradient(circle at 86% 16%, rgba(22, 163, 74, 0.5), transparent 24rem),
        radial-gradient(circle at 12% 90%, rgba(225, 29, 36, 0.55), transparent 22rem),
        url("images/brasilmap.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: #ffffff;
    box-shadow: 0 28px 70px rgba(8, 47, 100, 0.20);
}

.cities-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.07) 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: linear-gradient(120deg, rgba(0,0,0,0.75), transparent 70%);
    pointer-events: none;
}

.cities-hero-content,
.cities-hero-panel,
.city-detail-copy,
.city-detail-photo {
    position: relative;
    z-index: 1;
}

.cities-hero .breadcrumb,
.city-detail-hero .breadcrumb {
    margin-bottom: 26px;
}

.cities-hero .section-kicker,
.cities-hero .breadcrumb,
.cities-hero .breadcrumb a,
.city-detail-hero .breadcrumb,
.city-detail-hero .breadcrumb a {
    color: rgba(255,255,255,0.82);
}

.cities-hero .section-kicker::before,
.city-detail-hero .section-kicker::before {
    background: var(--brand-green, #16A34A);
}

.cities-hero h1,
.city-detail-hero h1 {
    max-width: 820px;
    margin-bottom: 20px;
    font-family: var(--font-display);
    font-size: clamp(40px, 6vw, 82px);
    line-height: 0.96;
    letter-spacing: -0.045em;
    color: #ffffff;
}

.cities-hero p,
.city-detail-hero p {
    max-width: 660px;
    margin-bottom: 30px;
    color: rgba(255,255,255,0.82);
    font-size: clamp(15px, 1.35vw, 18px);
    line-height: 1.75;
}

.cities-hero-actions,
.city-detail-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.cities-hero .btn-secondary,
.city-detail-hero .btn-secondary {
    color: #ffffff;
    border-color: rgba(255,255,255,0.32);
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.cities-hero .btn-secondary:hover,
.city-detail-hero .btn-secondary:hover {
    background: #ffffff;
    color: var(--brand-blue, #0057B8);
    border-color: #ffffff;
}

.cities-hero-panel {
    min-height: 360px;
    padding: 34px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    border: 1px solid rgba(255,255,255,0.16);
    border-radius: var(--radius-xl);
    background: rgba(255,255,255,0.10);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.12);
}

.coverage-number {
    margin-bottom: 14px;
    font-family: var(--font-display);
    font-size: clamp(78px, 10vw, 136px);
    font-weight: 800;
    line-height: 0.82;
    letter-spacing: -0.08em;
    color: #ffffff;
}

.cities-hero-panel p {
    margin-bottom: 22px;
    color: rgba(255,255,255,0.80);
}

.coverage-tags {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.coverage-tags span {
    min-width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: rgba(255,255,255,0.16);
    color: #ffffff;
    font-weight: 800;
}

.city-selector-section {
    padding: clamp(58px, 8vw, 106px) 0;
}

.city-selector-heading {
    max-width: 760px;
    margin-bottom: 34px;
}

.city-select-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.city-select-card {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    overflow: hidden;
    border: 1px solid var(--border-lighter);
    border-radius: var(--radius-xl);
    background: #ffffff;
    box-shadow: var(--shadow-soft);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.city-select-card:hover {
    transform: translateY(-5px);
    border-color: rgba(0, 87, 184, 0.22);
    box-shadow: var(--shadow-card);
}

.city-select-media {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background:
        linear-gradient(135deg, rgba(0, 87, 184, 0.12), rgba(22, 163, 74, 0.10)),
        #F6F2EC;
}

.city-image-placeholder {
    position: absolute;
    inset: 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 1px dashed rgba(8, 47, 100, 0.24);
    border-radius: calc(var(--radius-xl) - 8px);
    color: rgba(8, 47, 100, 0.64);
    text-align: center;
    font-weight: 700;
}

.city-image-placeholder i {
    font-size: 30px;
    color: var(--brand-blue, #0057B8);
}

.city-select-content {
    flex: 1;
    padding: 22px;
    display: flex;
    flex-direction: column;
}

.city-state {
    display: inline-flex;
    width: fit-content;
    margin-bottom: 10px;
    padding: 5px 10px;
    border-radius: 999px;
    background: var(--blue-soft, rgba(0, 87, 184, 0.10));
    color: var(--brand-blue, #0057B8);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.city-select-content h3 {
    margin-bottom: 10px;
    font-family: var(--font-display);
    color: var(--text-primary);
    font-size: 24px;
    letter-spacing: -0.02em;
}

.city-select-content p {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.65;
}

.city-select-content ul {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: 18px;
}

.city-select-content li {
    padding: 5px 9px;
    border-radius: 999px;
    background: var(--green-soft, rgba(22, 163, 74, 0.10));
    color: var(--brand-green, #16A34A);
    font-size: 11px;
    font-weight: 700;
}

.city-card-link {
    margin-top: auto;
    padding-top: 20px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--brand-red, #E11D24);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.cities-info-section {
    padding: 0 0 clamp(58px, 8vw, 108px);
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.cities-info-card {
    min-height: 270px;
    padding: 30px;
    border-radius: var(--radius-xl);
    background: #ffffff;
    border: 1px solid var(--border-lighter);
    box-shadow: var(--shadow-soft);
}

.cities-info-card i {
    width: 54px;
    height: 54px;
    margin-bottom: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    color: #ffffff;
    font-size: 20px;
}

.cities-info-card.red i { background: var(--brand-red, #E11D24); }
.cities-info-card.blue i { background: var(--brand-blue, #0057B8); }
.cities-info-card.green i { background: var(--brand-green, #16A34A); }

.cities-info-card h3 {
    font-family: var(--font-display);
    color: var(--text-primary);
    font-size: 22px;
    margin-bottom: 10px;
}

.cities-info-card p {
    color: var(--text-secondary);
    line-height: 1.75;
}

.city-detail-hero {
    position: relative;
    isolation: isolate;
    min-height: clamp(520px, 66vh, 700px);
    margin-top: calc(var(--header-height) + 18px);
    padding: clamp(30px, 5vw, 70px);
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 470px);
    align-items: center;
    gap: clamp(28px, 5vw, 72px);
    overflow: hidden;
    border-radius: var(--radius-xl);
    background: #082F64;
    color: #ffffff;
    box-shadow: 0 28px 70px rgba(8, 47, 100, 0.18);
}

.city-detail-hero::before {
    content: "";
    position: absolute;
    inset: -44px;
    z-index: 0;
    background-image: var(--city-hero-bg, url("./images/TranslocaveOnbius2698.jpg"));
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: blur(24px);
    transform: scale(1.12);
    opacity: 1;
    will-change: transform;
}

.city-detail-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background:
        linear-gradient(135deg, rgba(17, 24, 39, 0.72), rgba(8, 47, 100, 0.46)),
        radial-gradient(circle at 12% 16%, rgba(225, 29, 36, 0.22), transparent 18rem),
        radial-gradient(circle at 90% 80%, rgba(22, 163, 74, 0.18), transparent 20rem);
}

/* City-specific background positions */
.city-detail-hero.jatai::before {
    background-position: top center;
}

.city-detail-hero.itapira::before {
    background-position: center;
}

.city-detail-copy,
.city-detail-photo {
    position: relative;
    z-index: 2;
}

.city-detail-photo {
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: var(--radius-xl);
    background: rgba(3, 2, 58, 0.12);
    border: 1px solid rgba(255,255,255,0.18);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.city-detail-photo .city-image-placeholder {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    border-radius: inherit;
    overflow: hidden;
}

.city-detail-photo .city-image-placeholder img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: 62% center;
}

.city-detail-photo .city-image-placeholder.jatai img {
    object-position: 60% center;
}

.city-detail-photo .city-image-placeholder.itapira img {
    object-position:  70% center;
}

.city-detail-photo .city-image-placeholder i {
    color: #ffffff;
}

.city-detail-section {
    padding: clamp(58px, 8vw, 106px) 0 36px;
}

.city-detail-heading {
    max-width: 760px;
    margin-bottom: 34px;
}

.city-detail-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.city-detail-feature {
    min-height: 260px;
    padding: 30px;
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-lighter);
    background: #ffffff;
    box-shadow: var(--shadow-soft);
}

.city-detail-feature i {
    color: var(--brand-green, #16A34A);
    font-size: 24px;
    margin-bottom: 18px;
}

.city-detail-feature h3 {
    margin-bottom: 12px;
    font-family: var(--font-display);
    color: var(--text-primary);
    font-size: 22px;
}

.city-detail-feature p {
    color: var(--text-secondary);
    line-height: 1.75;
}

.city-service-board {
    margin-bottom: 42px;
    padding: clamp(28px, 5vw, 56px);
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    gap: 30px;
    border-radius: var(--radius-xl);
    background: #ffffff;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--border-lighter);
}

.service-board-copy h2,
.city-next-section h2 {
    font-family: var(--font-display);
    color: var(--text-primary);
    font-size: clamp(28px, 4vw, 44px);
    line-height: 1.08;
    margin-bottom: 14px;
}

.service-board-copy p {
    color: var(--text-secondary);
    line-height: 1.75;
}

.service-board-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.service-board-list div {
    padding: 18px;
    border-radius: var(--radius-md);
    background: var(--bg-secondary);
    border: 1px solid var(--border-lighter);
}

.service-board-list strong {
    display: block;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.service-board-list span {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.55;
}

.city-next-section {
    margin-bottom: clamp(58px, 8vw, 108px);
    padding: clamp(28px, 5vw, 52px);
    display: flex;
    justify-content: space-between;
    gap: 24px;
    align-items: center;
    border-radius: var(--radius-xl);
    background:
        linear-gradient(135deg, rgba(225, 29, 36, 0.10), rgba(0, 87, 184, 0.10)),
        #ffffff;
    border: 1px solid var(--border-lighter);
}

@media (max-width: 1200px) {
    .city-select-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 1024px) {
    .cities-hero,
    .city-detail-hero,
    .city-service-board {
        grid-template-columns: 1fr;
    }

    .cities-hero-panel,
    .city-detail-photo {
        min-height: 300px;
    }

    .cities-info-section,
    .city-detail-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .cities-hero,
    .city-selector-section,
    .cities-info-section,
    .city-detail-hero,
    .city-detail-section,
    .city-service-board,
    .city-next-section {
        width: calc(100% - 28px);
    }

    .cities-hero,
    .city-detail-hero {
        border-radius: var(--radius-lg);
    }

    .city-select-grid,
    .service-board-list {
        grid-template-columns: 1fr;
    }

    .cities-hero-actions,
    .city-detail-actions,
    .city-next-section {
        flex-direction: column;
        align-items: stretch;
    }

    .cities-hero-actions .btn-primary,
    .cities-hero-actions .btn-secondary,
    .city-detail-actions .btn-primary,
    .city-detail-actions .btn-secondary,
    .city-next-section .btn-secondary {
        width: 100%;
        justify-content: center;
    }
}


/* ---------- PORTAL DO CLIENTE ---------- */
.portal-hero,
.portal-units-section,
.portal-contact-section {
    width: min(calc(100% - clamp(24px, 6vw, 96px)), var(--max-width));
    margin-left: auto;
    margin-right: auto;
}

.portal-hero {
    min-height: clamp(520px, 68vh, 720px);
    margin-top: calc(var(--header-height) + 18px);
    padding: clamp(32px, 5vw, 76px);
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(300px, 420px);
    align-items: center;
    gap: clamp(28px, 5vw, 72px);
    overflow: hidden;
    border-radius: var(--radius-xl);
    background:
        radial-gradient(circle at 16% 16%, rgba(225, 29, 36, 0.38), transparent 18rem),
        radial-gradient(circle at 86% 82%, rgba(22, 163, 74, 0.34), transparent 20rem),
        linear-gradient(135deg, rgba(8, 47, 100, 0.96), rgba(17, 24, 39, 0.94));
    color: #ffffff;
    box-shadow: 0 28px 70px rgba(8, 47, 100, 0.18);
}

.portal-hero-copy h1 {
    max-width: 760px;
    margin: 12px 0 18px;
    font-family: var(--font-display);
    font-size: clamp(40px, 6vw, 76px);
    line-height: 0.98;
    letter-spacing: -0.04em;
    color: #ffffff;
}

.portal-hero-copy p {
    max-width: 620px;
    margin-bottom: 28px;
    color: rgba(255, 255, 255, 0.82);
    font-size: clamp(15px, 1.35vw, 18px);
    line-height: 1.75;
}

.portal-hero .breadcrumb,
.portal-hero .section-kicker,
.portal-hero .breadcrumb a,
.portal-hero .breadcrumb span {
    color: rgba(255, 255, 255, 0.86);
}

.portal-hero .section-kicker::before { background: var(--brand-red); }

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

.portal-hero .btn-secondary {
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.portal-hero .btn-secondary:hover {
    background: #ffffff;
    color: var(--brand-blue);
}

.portal-hero-panel {
    position: relative;
    padding: clamp(28px, 4vw, 44px);
    min-height: 360px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    border-radius: var(--radius-xl);
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    overflow: hidden;
}

.portal-hero-panel::before {
    content: '';
    position: absolute;
    inset: auto -40px -80px auto;
    width: 230px;
    height: 230px;
    border-radius: 50%;
    background: rgba(22, 163, 74, 0.44);
    filter: blur(18px);
}

.portal-panel-icon {
    width: 72px;
    height: 72px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 22px;
    background: #ffffff;
    color: var(--brand-red);
    font-size: 28px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
}

.portal-hero-panel strong {
    position: relative;
    z-index: 1;
    display: block;
    margin-bottom: 8px;
    font-family: var(--font-display);
    color: #ffffff;
    font-size: 28px;
    line-height: 1.1;
}

.portal-hero-panel a {
    position: relative;
    z-index: 1;
    width: fit-content;
    margin-bottom: 10px;
    color: #ffffff;
    font-size: 22px;
    font-weight: 800;
}

.portal-hero-panel span {
    position: relative;
    z-index: 1;
    color: rgba(255, 255, 255, 0.78);
    line-height: 1.6;
}

.portal-units-section {
    padding: clamp(64px, 8vw, 112px) 0 24px;
}

.portal-section-heading {
    max-width: 760px;
    margin-bottom: 34px;
}

.portal-units-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.portal-unit-card {
    position: relative;
    min-height: 260px;
    padding: 28px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-lighter);
    background: #ffffff;
    box-shadow: var(--shadow-soft);
    overflow: hidden;
    transition: transform 0.3s var(--transition), box-shadow 0.3s ease, border-color 0.3s ease;
}

.portal-unit-card::before {
    content: '';
    position: absolute;
    inset: 0 0 auto 0;
    height: 5px;
    background: linear-gradient(90deg, var(--brand-red), var(--brand-blue), var(--brand-green));
}

.portal-unit-card:hover {
    transform: translateY(-4px);
    border-color: rgba(0, 87, 184, 0.22);
    box-shadow: var(--shadow-card);
}

.portal-unit-state {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    margin-bottom: 12px;
    padding: 5px 10px;
    border-radius: 999px;
    background: var(--blue-soft);
    color: var(--brand-blue);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.portal-unit-card h3 {
    font-family: var(--font-display);
    color: var(--text-primary);
    font-size: 28px;
    line-height: 1.08;
}

.portal-unit-contact {
    display: grid;
    gap: 12px;
    margin: 26px 0 24px;
}

.portal-unit-contact div {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    min-width: 0;
    color: var(--text-secondary);
    line-height: 1.55;
}

.portal-unit-contact i {
    margin-top: 4px;
    color: var(--brand-green);
    flex: 0 0 auto;
}

.portal-unit-contact a,
.portal-unit-contact span {
    word-break: break-word;
    overflow-wrap: anywhere;
}

.portal-unit-contact a:hover { color: var(--brand-blue); }

.portal-unit-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    color: var(--brand-red);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.portal-unit-link i { transition: transform 0.25s ease; }
.portal-unit-link:hover i { transform: translateX(4px); }

.portal-contact-section {
    padding: clamp(42px, 7vw, 96px) 0 clamp(72px, 9vw, 120px);
}

.portal-contact-card {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    gap: clamp(28px, 5vw, 70px);
    padding: clamp(28px, 5vw, 60px);
    border-radius: var(--radius-xl);
    background:
        linear-gradient(135deg, rgba(0, 87, 184, 0.07), rgba(22, 163, 74, 0.07)),
        #ffffff;
    border: 1px solid var(--border-lighter);
    box-shadow: var(--shadow-card);
}

.portal-contact-copy h2 {
    margin: 12px 0 14px;
    font-family: var(--font-display);
    color: var(--text-primary);
    font-size: clamp(32px, 4vw, 52px);
    line-height: 1.05;
    letter-spacing: -0.03em;
}

.portal-contact-copy p {
    color: var(--text-secondary);
    line-height: 1.75;
    margin-bottom: 22px;
}

.portal-contact-note {
    display: flex;
    gap: 12px;
    margin: 24px 0;
    padding: 18px;
    border-radius: var(--radius-md);
    background: #ffffff;
    border: 1px solid var(--border-lighter);
}

.portal-contact-note i {
    margin-top: 4px;
    color: var(--brand-blue);
    flex: 0 0 auto;
}

.portal-contact-note span {
    color: var(--text-secondary);
    line-height: 1.65;
}

.portal-city-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.portal-city-links a {
    padding: 8px 12px;
    border-radius: 999px;
    background: #ffffff;
    border: 1px solid var(--border-lighter);
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 700;
    transition: all 0.25s ease;
}

.portal-city-links a:hover {
    color: #ffffff;
    background: var(--brand-blue);
    border-color: var(--brand-blue);
    transform: translateY(-2px);
}

.portal-form {
    display: grid;
    gap: 16px;
}

.portal-form .form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.portal-form .form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.portal-form label {
    color: var(--text-primary);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.portal-form input,
.portal-form select,
.portal-form textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--border-lighter);
    border-radius: var(--radius-sm);
    background: #ffffff;
    color: var(--text-primary);
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.portal-form textarea {
    resize: vertical;
    min-height: 150px;
}

.portal-form input:focus,
.portal-form select:focus,
.portal-form textarea:focus {
    border-color: var(--brand-blue);
    box-shadow: 0 0 0 4px rgba(0, 87, 184, 0.10);
}

.whatsapp-float {
    opacity: 1;
    transform: scale(1);
    animation: pulse-wpp 2s infinite;
}

@media (max-width: 1100px) {
    .portal-hero,
    .portal-contact-card {
        grid-template-columns: 1fr;
    }

    .portal-units-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .portal-hero,
    .portal-units-section,
    .portal-contact-section {
        width: calc(100% - 28px);
    }

    .portal-hero {
        border-radius: var(--radius-lg);
        padding: 28px 22px;
    }

    .portal-hero-actions,
    .portal-form .form-grid {
        grid-template-columns: 1fr;
        flex-direction: column;
    }

    .portal-hero-actions .btn-primary,
    .portal-hero-actions .btn-secondary {
        width: 100%;
        justify-content: center;
    }

    .portal-units-grid {
        grid-template-columns: 1fr;
    }

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

    .whatsapp-float {
        right: 18px;
        bottom: 18px;
        width: 52px;
        height: 52px;
    }
}


/* =========================================================
   HERO IGUAL AO PRINT
   Layout desktop: imagem centralizada, faixa azul inferior,
   texto branco à esquerda e CTA amarelo.
========================================================= */
#banner.hero-print {
    position: relative;
    width: 100%;
    max-width: none;
    height: clamp(430px, 27.2vw, 535px);
    margin: var(--header-height) auto 0;
    padding-top: clamp(22px, 1.8vw, 35px);
    overflow: hidden;
    background: #ffffff;
    border-radius: 0;
    box-shadow: none;
}

#banner.hero-print::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 50%;
    background: var(--brand-blue-dim);
    pointer-events: none;
}

#banner.hero-print .banner-slider {
    position: relative;
    z-index: 1;
    width: min(calc(100% - clamp(32px, 5.6vw, 110px)), 1840px);
    height: calc(100% - clamp(28px, 2.2vw, 35px));
    margin: 0 auto;
    overflow: hidden;
    border-radius: 0;
    background: var(--ink);
}

#banner.hero-print .slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.6s ease;
}

#banner.hero-print .slide.active {
    opacity: 1;
    pointer-events: auto;
}

#banner.hero-print .slide-bg,
#banner.hero-print .slide-bg img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

#banner.hero-print .slide-bg img {
    object-fit: cover;
    object-position: center center;
    transform: none;
    transition: none;
}

#banner.hero-print .slide-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            90deg,
            rgba(0, 0, 0, 0.68) 0%,
            rgba(0, 0, 0, 0.48) 25%,
            rgba(0, 0, 0, 0.14) 48%,
            rgba(0, 0, 0, 0.02) 74%
        );
}

#banner.hero-print .slide-content {
    position: relative;
    z-index: 2;
    max-width: none;
    height: 100%;
    margin: 0;
    padding: 0 clamp(32px, 3.2vw, 60px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    transform: translateY(12px);
}

#banner.hero-print .slide-content h1 {
    max-width: 430px;
    margin: 0 0 30px;
    color: #ffffff;
    font-family: var(--font-display);
    font-size: clamp(30px, 2.15vw, 42px);
    font-weight: 800;
    line-height: 0.98;
    letter-spacing: -0.02em;
    text-shadow: 0 3px 16px rgba(0, 0, 0, 0.35);
    opacity: 1;
    transform: none;
    animation: none;
}

#banner.hero-print .slide-content .btn-primary {
    min-height: 37px;
    padding: 10px 18px;
    border-radius: 3px;
    background: #003fb4;
    color: #ffffff;
    box-shadow: none;
    font-size: 11px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    opacity: 1;
    transform: none;
    animation: none;
}

#banner.hero-print .slide-content .btn-primary:hover,
#banner.hero-print .slide-content .btn-primary:focus-visible {
    background: #e4a600;
    color: #ffffff;
    transform: translateY(-1px);
}

#banner.hero-print .slide-content .btn-primary::before {
    display: none;
}

#banner.hero-print .slider-controls,
#banner.hero-print .section-kicker,
#banner.hero-print .slide-content p {
    display: none !important;
}

/* Remove a sobreposição dos cards no hero, mantendo os atalhos abaixo. */
.quick-links {
    margin-top: 40px;
}

@media (max-width: 768px) {
    #banner.hero-print {
        height: clamp(430px, 78vh, 580px);
        margin-top: var(--header-height);
        padding-top: 14px;
        background: var(--brand-blue-dim);
    }

    #banner.hero-print::before {
        height: 100%;
        background: var(--brand-blue-dim);
    }

    #banner.hero-print .banner-slider {
        width: calc(100% - 24px);
        height: calc(100% - 28px);
    }

    #banner.hero-print .slide-overlay {
        background:
            linear-gradient(
                180deg,
                rgba(0, 0, 0, 0.20) 0%,
                rgba(0, 0, 0, 0.72) 100%
            );
    }

    #banner.hero-print .slide-content {
        justify-content: flex-end;
        padding: 0 24px 52px;
        transform: none;
    }

    #banner.hero-print .slide-content h1 {
        max-width: 320px;
        margin-bottom: 22px;
        font-size: clamp(29px, 9vw, 38px);
    }

    #banner.hero-print .slide-content .btn-primary {
        width: fit-content;
    }

    .quick-links {
        margin-top: 28px;
    }
}

@media (max-width: 480px) {
    #banner.hero-print .banner-slider {
        width: calc(100% - 18px);
    }

    #banner.hero-print .slide-content {
        padding-right: 20px;
        padding-left: 20px;
    }
}


/* ---------- ITAPIRA PAGE - OPERATIONAL CONTENT ---------- */
.city-info-summary,
.city-app-section,
.city-card-section,
.city-contact-map {
    width: min(calc(100% - clamp(28px, 6vw, 96px)), var(--max-width));
    margin-inline: auto;
}

.city-info-summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-top: 28px;
}

.city-summary-card {
    position: relative;
    overflow: hidden;
    min-height: 172px;
    padding: 24px;
    border: 1px solid var(--border-lighter);
    border-radius: var(--radius-xl);
    background: #ffffff;
    box-shadow: var(--shadow-soft);
}

.city-summary-card::after {
    content: '';
    position: absolute;
    right: -36px;
    bottom: -36px;
    width: 108px;
    height: 108px;
    border-radius: 50%;
    opacity: 0.16;
}

.city-summary-card.red::after { background: var(--brand-red); }
.city-summary-card.blue::after { background: var(--brand-blue); }
.city-summary-card.green::after { background: var(--brand-green); }
.city-summary-card.dark::after { background: var(--ink); }

.city-summary-card span {
    display: block;
    margin-bottom: 12px;
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.10em;
    text-transform: uppercase;
}

.city-summary-card strong {
    display: block;
    color: var(--text-primary);
    font-family: var(--font-display);
    font-size: clamp(26px, 3vw, 38px);
    line-height: 1;
    letter-spacing: -0.04em;
}

.city-summary-card p {
    margin-top: 14px;
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.55;
}

.city-fare-board {
    margin-top: clamp(58px, 8vw, 106px);
    align-items: center;
}

.fare-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.fare-card {
    min-height: 190px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border-radius: var(--radius-lg);
    background: var(--bg-secondary);
    border: 1px solid var(--border-lighter);
}

.fare-card i {
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: #ffffff;
    color: var(--brand-blue);
    font-size: 18px;
    box-shadow: var(--shadow-soft);
}

.fare-card span {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.45;
}

.fare-card strong {
    color: var(--brand-red);
    font-family: var(--font-display);
    font-size: clamp(34px, 4vw, 52px);
    line-height: 1;
    letter-spacing: -0.05em;
}

.city-app-section {
    padding: clamp(42px, 7vw, 84px);
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    gap: clamp(28px, 5vw, 64px);
    align-items: center;
    border-radius: var(--radius-xl);
    background:
        radial-gradient(circle at 12% 18%, rgba(0, 87, 184, 0.12), transparent 18rem),
        radial-gradient(circle at 86% 82%, rgba(22, 163, 74, 0.11), transparent 20rem),
        #ffffff;
    border: 1px solid var(--border-lighter);
    box-shadow: var(--shadow-soft);
    margin-bottom: 42px;
}

.city-app-copy .section-title {
    margin-bottom: 16px;
}

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

.store-button {
    min-width: 190px;
    padding: 13px 16px;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    border-radius: var(--radius-md);
    background: var(--ink);
    color: #ffffff;
    transition: transform 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.store-button:hover {
    transform: translateY(-2px);
    background: var(--brand-blue);
    box-shadow: 0 16px 32px rgba(0, 87, 184, 0.22);
}

.store-button i {
    font-size: 24px;
}

.store-button span {
    display: flex;
    flex-direction: column;
    font-size: 11px;
    line-height: 1.2;
    color: rgba(255,255,255,0.76);
}

.store-button strong {
    color: #ffffff;
    font-size: 14px;
}

.city-app-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.city-app-list article {
    min-height: 190px;
    padding: 24px;
    border-radius: var(--radius-lg);
    background: var(--bg-secondary);
    border: 1px solid var(--border-lighter);
}

.city-app-list i {
    width: 46px;
    height: 46px;
    margin-bottom: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: var(--blue-soft);
    color: var(--brand-blue);
    font-size: 18px;
}

.city-app-list h3 {
    margin-bottom: 8px;
    color: var(--text-primary);
    font-family: var(--font-display);
    font-size: 20px;
}

.city-app-list p {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.65;
}

.city-card-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    margin-bottom: 42px;
}

.operation-card {
    min-height: 100%;
    padding: clamp(28px, 4vw, 46px);
    border-radius: var(--radius-xl);
    background: #ffffff;
    border: 1px solid var(--border-lighter);
    box-shadow: var(--shadow-soft);
}

.operation-card-accent {
    background:
        linear-gradient(135deg, rgba(8, 47, 100, 0.96), rgba(0, 87, 184, 0.92)),
        var(--ink);
    color: #ffffff;
}

.operation-card h2 {
    margin-bottom: 16px;
    color: var(--text-primary);
    font-family: var(--font-display);
    font-size: clamp(28px, 4vw, 44px);
    line-height: 1.08;
    letter-spacing: -0.03em;
}

.operation-card-accent h2,
.operation-card-accent .section-kicker,
.operation-card-accent p {
    color: #ffffff;
}

.operation-card-accent-text {
    color: #dadada !important;
}

.operation-card p {
    color: var(--text-secondary);
    line-height: 1.75;
    margin-bottom: 22px;
}

.info-box {
    margin-bottom: 22px;
    padding: 18px;
    display: flex;
    gap: 14px;
    border-radius: var(--radius-md);
    background: var(--bg-secondary);
    border: 1px solid var(--border-lighter);
}

.info-box i {
    color: var(--brand-red);
    font-size: 20px;
    margin-top: 4px;
}

.info-box strong,
.info-box span {
    display: block;
}

.info-box strong {
    color: var(--text-primary);
    margin-bottom: 4px;
}

.info-box span {
    color: var(--text-secondary);
    line-height: 1.55;
}

.check-list {
    display: grid;
    gap: 10px;
}

.check-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.check-list i {
    width: 22px;
    height: 22px;
    flex: 0 0 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--green-soft);
    color: var(--brand-green);
    font-size: 11px;
    margin-top: 1px;
}

.small-note {
    margin: 20px 0 16px !important;
    color: rgba(255,255,255,0.78) !important;
    font-size: 14px;
}

.guide-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.guide-links a {
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255,255,255,0.12);
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    transition: background 0.25s ease, transform 0.25s ease;
}

.guide-links a:hover {
    background: rgba(255,255,255,0.22);
    transform: translateY(-1px);
}

.city-contact-map {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(320px, 1.05fr);
    gap: 18px;
    align-items: stretch;
    margin-bottom: 42px;
}

.contact-panel,
.map-panel {
    overflow: hidden;
    border-radius: var(--radius-xl);
    background: #ffffff;
    border: 1px solid var(--border-lighter);
    box-shadow: var(--shadow-soft);
}

.contact-panel {
    padding: clamp(28px, 4vw, 46px);
}

.contact-panel h2 {
    margin-bottom: 24px;
    color: var(--text-primary);
    font-family: var(--font-display);
    font-size: clamp(28px, 4vw, 44px);
    line-height: 1.08;
    letter-spacing: -0.03em;
}

.contact-grid {
    display: grid;
    gap: 12px;
}

.contact-grid article {
    padding: 18px;
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    column-gap: 14px;
    border-radius: var(--radius-md);
    background: var(--bg-secondary);
    border: 1px solid var(--border-lighter);
}

.contact-grid i {
    grid-row: span 2;
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: #ffffff;
    color: var(--brand-red);
}

.contact-grid strong {
    color: var(--text-primary);
    margin-bottom: 4px;
}

.contact-grid span,
.contact-grid a {
    color: var(--text-secondary);
    line-height: 1.55;
}

.contact-grid a:hover {
    color: var(--brand-blue);
}

.map-panel iframe {
    width: 100%;
    height: 100%;
    min-height: 520px;
    border: 0;
    display: block;
}

.city-detail-hero::before {
    background-image: var(--city-hero-bg, url("./images/TranslocaveOnbius2698.jpg"));
    filter: blur(8px) saturate(1.08);
    opacity: 0.95;
}

.city-detail-hero::after {
    background:
        linear-gradient(135deg, rgba(8, 47, 100, 0.88), rgba(8, 47, 100, 0.58) 46%, rgba(225, 29, 36, 0.24)),
        radial-gradient(circle at 12% 16%, rgba(225, 29, 36, 0.22), transparent 18rem),
        radial-gradient(circle at 90% 80%, rgba(22, 163, 74, 0.18), transparent 20rem);
}

.city-detail-photo img {
    transform: scale(1.02);
}

@media (max-width: 1100px) {
    .city-info-summary,
    .fare-grid,
    .city-card-section,
    .city-contact-map,
    .city-app-section {
        grid-template-columns: 1fr 1fr;
    }

    .city-app-copy,
    .contact-panel {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    .city-info-summary,
    .fare-grid,
    .city-card-section,
    .city-contact-map,
    .city-app-section,
    .city-app-list {
        grid-template-columns: 1fr;
    }

    .city-info-summary,
    .city-app-section,
    .city-card-section,
    .city-contact-map {
        width: calc(100% - 28px);
    }

    .city-app-section,
    .operation-card,
    .contact-panel {
        padding: 26px;
    }

    .app-actions,
    .store-button,
    .guide-links a {
        width: 100%;
    }

    .store-button {
        justify-content: center;
    }

    .map-panel iframe {
        min-height: 360px;
    }
}


/* ---------- GLOBAL SITE SEARCH RESULTS ---------- */
#searchBar {
    max-height: 100dvh;
    overflow-y: auto;
}

#searchForm input:focus-visible,
.btn-search:focus-visible,
.btn-close-search:focus-visible,
.search-result-link:focus-visible {
    outline: 3px solid rgba(0, 87, 184, 0.28);
    outline-offset: 2px;
}

.search-results {
    width: min(calc(100% - 48px), var(--max-width));
    max-height: min(68dvh, 560px);
    margin: 0 auto 18px;
    overflow-y: auto;
    background: #ffffff;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
}

.search-results[hidden] {
    display: none;
}

.search-results-header {
    position: sticky;
    top: 0;
    z-index: 1;
    display: flex;
    align-items: baseline;
    gap: 6px;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid var(--border-lighter);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: var(--text-secondary);
    font-size: 13px;
}

.search-results-header strong {
    color: var(--text-primary);
}

.search-results-list {
    list-style: none;
}

.search-result-item + .search-result-item {
    border-top: 1px solid var(--border-lighter);
}

.search-result-link {
    display: grid;
    gap: 4px;
    padding: 16px 18px;
    color: inherit;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.search-result-link:hover,
.search-result-link:focus-visible {
    background: var(--bg-card-hover);
}

.search-result-title {
    font-family: var(--font-display);
    color: var(--text-primary);
    font-size: 16px;
    font-weight: 700;
    line-height: 1.3;
}

.search-result-url {
    color: var(--brand-blue-dim);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.03em;
}

.search-result-description {
    color: var(--text-secondary);
    font-size: 13px;
    line-height: 1.55;
}

.search-status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 96px;
    padding: 20px;
    color: var(--text-secondary);
    text-align: center;
}

.search-status i {
    color: var(--brand-blue);
}

@media (max-width: 640px) {
    .search-inner {
        align-items: stretch;
        padding: 12px;
    }

    #searchForm {
        display: grid;
        grid-template-columns: 1fr auto;
        gap: 8px;
    }

    #searchForm input {
        min-width: 0;
        padding: 11px 12px;
        font-size: 16px;
    }

    .btn-search {
        padding-inline: 14px;
    }

    .btn-search i {
        margin: 0;
    }

    .search-results {
        width: calc(100% - 24px);
        margin-bottom: 12px;
        max-height: 70dvh;
    }

    .search-result-link {
        padding: 14px;
    }
}

@media (prefers-reduced-motion: reduce) {
    #searchBar,
    .search-result-link {
        transition: none;
    }
}
