/* Carregar depois de style.css, somente no site institucional. */
:root {
    --page: #ffffff;
    --surface: #f3f4f6;
    --ink: #183b57;
    --text: #284760;
    --muted: #536879;
    --gold-text: #875d2e;
    --line: #dce1e5;
    --shadow: 0 14px 36px rgba(22, 35, 46, .10);
}

body {
    color: var(--text);
    background: var(--page);
    font-size: 18px;
}

.section-dark,
.social-section {
    background: var(--page);
}

.section-blue,
.stats,
.process-section,
.benefits-section {
    background: var(--surface);
}

.section-copy h2,
.section-heading h2,
.partner-copy h2 {
    color: var(--ink);
}

.eyebrow {
    color: var(--gold-text) !important;
}

.section-heading p,
.section-copy p {
    color: var(--text);
}

.site-header {
    background: linear-gradient(90deg, #f0f1f2, #d8dce0);
    border-color: var(--line);
}

.main-nav a {
    color: var(--ink);
}

.button {
    color: var(--ink);
    background: linear-gradient(115deg, #f4f5f6, #ffffff);
    border: 1px solid var(--gold);
    box-shadow: 0 7px 18px rgba(22, 35, 46, .10);
}

.button:hover,
.button:focus-visible {
    background: #eeeeef;
    box-shadow: var(--shadow);
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
    outline: 3px solid var(--ink);
    outline-offset: 4px;
}

/* O cartão ocupa seu próprio espaço abaixo do vídeo. */
.hero {
    --hero-video-height: 600px;
    display: block;
    min-height: 0;
    background: var(--surface);
}

.hero-video,
.hero-shade {
    height: var(--hero-video-height);
}

.hero-shade {
    background: linear-gradient(to bottom,
            rgba(22, 27, 32, .06) 40%,
            rgba(22, 27, 32, .28));
}

.hero-content {
    padding-top: calc(var(--hero-video-height) - 70px);
}

.hero-card {
    margin: 0 auto;
    background: #f7f7f7;
    border-color: var(--line);
}

.hero-card .quote-note {
    margin: 14px 0 0;
    color: var(--muted);
    font-size: .9rem;
}

.stats {
    padding: 40px 0;
    border-bottom: 1px solid var(--line);
}

.stat strong {
    color: var(--gold-text);
    text-shadow: none;
}

.stat span {
    color: var(--ink);
}

.media-card {
    box-shadow: var(--shadow);
}

@media (hover: hover) and (pointer: fine) {
    .media-card.reveal.visible:hover {
        box-shadow: 0 20px 42px rgba(22, 35, 46, .16);
    }
}

/* Serviços com fotos da operação. */
.services-intro {
    display: grid;
    grid-template-columns: 1.25fr 1fr;
    align-items: center;
    gap: 36px;
    margin-bottom: 38px;
    padding: 36px;
    background: var(--page);
    border: 1px solid var(--line);
    border-radius: 24px;
}

.services-intro h2 {
    margin: 0 0 18px;
    color: var(--ink);
}

.services-intro p:last-child {
    margin-bottom: 0;
}

.services-intro>img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 18px;
}

.service-details {
    display: grid;
}

.service-detail {
    display: grid;
    grid-template-columns: 168px minmax(0, 1fr);
    align-items: center;
    gap: 32px;
    padding: 30px 0;
    border-bottom: 1px solid var(--line);
}

.service-detail:last-child {
    border-bottom: 0;
}

.service-photo {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border: 2px solid #d5a46570;
    border-radius: 50%;
}

.service-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.service-number {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    background: var(--gold-light);
    color: var(--ink);
    border-radius: 50%;
    font-weight: 700;
}

.service-icon {
    width: 44px;
    height: 44px;
    object-fit: contain;
}

.service-content h3 {
    margin: 0 0 6px;
    color: var(--ink);
    font-size: 1.35rem;
    font-weight: 700;
}

.service-content p {
    margin: 0;
    line-height: 1.6;
}

.service-content .service-tagline {
    margin-bottom: 8px;
    color: var(--gold-text);
    font-weight: 600;
}

.service-routes {
    margin-top: 10px !important;
    color: var(--ink);
    font-weight: 600;
}

.process-step h3,
.benefit h3 {
    color: var(--ink);
    font-size: 1.15rem;
    font-weight: 600;
}

.process-step p,
.benefit p {
    color: var(--text);
    font-size: 1rem;
}

.step-number,
.accent-text,
.regions-list li::before {
    color: var(--gold-text);
}

/* Galeria em fundo neutro. */
.photo-carousel-viewport,
.photo-carousel-slide img,
.photo-carousel-slide video {
    background: #e8ebee;
    border-color: var(--line);
}

.photo-carousel-control {
    color: var(--ink);
    background: rgba(255, 255, 255, .94);
    border-color: var(--gold);
    box-shadow: 0 6px 18px rgba(22, 35, 46, .12);
}

.photo-carousel-control:hover,
.photo-carousel-control:focus-visible {
    background: #eeeeef;
}

/* Regiões agrupadas por estado. */
.states-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
}

.state-card {
    padding: 26px;
    background: var(--page);
    border: 1px solid var(--line);
    border-radius: 20px;
}

.state-card>h3 {
    margin: 0 0 22px;
    color: var(--ink);
    font-family: var(--font-display);
    font-size: 1.3rem;
}

.state-card>p {
    margin: 20px 0 0;
    color: var(--muted);
}

.city-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.city-card {
    margin: 0;
    min-width: 0;
}

.city-card img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 12px;
}

.city-card figcaption {
    padding-top: 10px;
    color: var(--ink);
    font-weight: 700;
}

.regions-note {
    margin: 26px 0 0;
    text-align: center;
    color: var(--muted);
}

.photo-credits {
    margin-top: 24px;
    color: var(--muted);
    font-size: .85rem;
}

.photo-credits summary {
    cursor: pointer;
    color: var(--ink);
}

.photo-credits ul {
    padding-left: 22px;
}

.photo-credits li {
    margin: 10px 0;
}

.photo-credits a {
    color: var(--ink);
    text-decoration: underline;
}

/* Acesso à página de entregadores. */
.partner-section {
    background: var(--page);
}

.partner-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 48px;
}

.partner-copy p {
    margin: 0 0 22px;
}

.partner-copy .partner-note {
    margin: 14px 0 0;
    color: var(--muted);
    font-size: .95rem;
}

.partner-photo {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 20px;
}

.faq-item {
    background: var(--page);
    border: 1px solid var(--line);
    border-radius: 18px;
}

.faq-item.open {
    background: var(--surface);
}

.faq-question {
    color: var(--ink);
    font-size: 1.05rem;
}

.faq-symbol {
    color: var(--gold-text);
    border-color: var(--gold);
}

.faq-answer>p {
    color: var(--text);
}

.site-footer {
    background: var(--surface);
    border-top: 1px solid var(--line);
}

.footer-grid p {
    color: var(--muted);
    font-size: .95rem;
}

@media (max-width: 900px) {
    .hero {
        --hero-video-height: 500px;
    }

    .main-nav {
        background: #eef0f2;
    }

    .menu-toggle {
        background: #ffffff !important;
        border: 1px solid var(--line);
    }

    .menu-toggle span {
        background: var(--ink) !important;
    }

    .states-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .services-intro,
    .partner-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 26px;
    }
}

@media (max-width: 620px) {
    .hero {
        --hero-video-height: 370px;
    }

    .hero-content {
        padding-top: calc(var(--hero-video-height) - 50px);
    }

    .hero-card {
        margin-bottom: 0;
    }

    .stats {
        padding-top: 32px;
    }

    .services-intro {
        padding: 24px 20px;
    }

    .service-detail {
        grid-template-columns: 88px minmax(0, 1fr);
        align-items: start;
        gap: 18px;
    }

    .service-content h3 {
        font-size: 1.1rem;
    }

    .service-content p {
        font-size: .95rem;
    }

    .state-card {
        padding: 22px 18px;
    }

    .city-grid {
        gap: 12px;
    }
}

/* Botões que direcionam para a J&T Express. */
.button.button-jt {
    color: #ffffff;
    background: #e60000;
    border-color: #e60000;
    box-shadow: 0 8px 20px rgba(230, 0, 0, .18);
}

.button.button-jt:hover,
.button.button-jt:focus-visible {
    color: #ffffff;
    background: #c80000;
    border-color: #c80000;
    box-shadow: 0 12px 26px rgba(230, 0, 0, .24);
    filter: none;
}

/* Mesmo tamanho para os dois textos do cartão. */
.hero-card {
    --hero-copy-size: clamp(1.5rem, 2.7vw, 1.77rem);
}

.hero-card>p,
.hero-card .quote-note {
    font-size: var(--hero-copy-size);
    line-height: 1.5;
}

.hero-card .quote-note {
    margin: 0 0 20px;
    color: var(--ink);
    font-weight: 700;
}

.hero-card .quote-note strong {
    font-weight: 700;
}

@media (max-width: 620px) {
    .hero-card {
        --hero-copy-size: .96rem;
    }
}

/* Revisão da Paula: cotação, fotos e entregador parceiro. */

.hero-quote {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 110px;
    align-items: end;
    gap: 16px;
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
}

.hero-quote>.button {
    min-width: 0;
    width: 100%;
    margin-bottom: 10px;
    padding: 14px 18px;
    white-space: normal;
    text-align: center;
    line-height: 1.4;
}

.hero-mascot {
    display: block;
    width: 110px;
    height: 165px;
    object-fit: contain;
    pointer-events: none;
    user-select: none;
}

/* Foto da estrutura da empresa em formato mais aberto. */

#sobre .media-card img {
    aspect-ratio: 16 / 9;
    object-position: center;
}

/* Enquadramento das fotos circulares dos serviços. */

.service-photo--truck {
    object-position: 50% 62%;
}

.service-photo--fleet {
    object-position: 50% 65%;
}

.service-photo--sorting {
    object-position: 50% 55%;
}

.service-photo--mao {
    object-position: 50% 20%;
}

.service-photo--loading {
    object-position: center;
}

/* O texto maior do botão pode quebrar em linhas. */

.partner-copy,
.partner-photo {
    min-width: 0;
}

.partner-copy .partner-cta {
    width: 100%;
    max-width: 520px;
    min-height: 64px;
    padding: 16px 22px;
    white-space: normal;
    text-align: center;
    line-height: 1.5;
    letter-spacing: .04em;
}

/* Ajustes para celulares. */

@media (max-width: 620px) {
    .hero-quote {
        grid-template-columns: minmax(0, 1fr) 82px;
        gap: 12px;
    }

    .hero-quote>.button {
        padding: 13px 12px;
        font-size: .75rem;
        letter-spacing: .04em;
    }

    .hero-mascot {
        width: 82px;
        height: 123px;
    }

    .partner-copy .partner-cta {
        padding: 16px 18px;
        font-size: .78rem;
    }
}

/* Chamada institucional e cotação. */
.hero-card>.hero-title {
    color: var(--ink);
    font-size: clamp(1.15rem, 2.5vw, 1.77rem);
    font-weight: 800;
    line-height: 1.35;
}

.hero-card .quote-note {
    color: #e60000;
    font-size: clamp(1rem, 1.9vw, 1.3rem);
    font-weight: 700;
    line-height: 1.5;
}

.hero-quote>.button-jt {
    animation: quote-pulse 2.4s ease-in-out infinite;
}

.hero-mascot {
    animation: mascot-float 3s ease-in-out infinite;
}

@keyframes quote-pulse {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(230, 0, 0, .22);
    }

    60% {
        box-shadow: 0 0 0 10px rgba(230, 0, 0, 0);
    }
}

@keyframes mascot-float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-7px);
    }
}

@media (prefers-reduced-motion: reduce) {

    .hero-quote>.button-jt,
    .hero-mascot {
        animation: none;
    }
}

#sobre .section-copy h2,
#gallery-title,
#regions-title {
    font-size: clamp(1.5rem, 2.8vw, 2.2rem);
    line-height: 1.3;
}

/* Fotos das regiões atendidas. */
.city-gallery-trigger {
    position: relative;
    display: block;
    width: 100%;
    padding: 0;
    overflow: hidden;
    background: transparent;
    border: 0;
    border-radius: 12px;
    cursor: pointer;
}

.city-gallery-trigger img {
    display: block;
}

.city-gallery-trigger>span {
    position: absolute;
    right: 10px;
    bottom: 10px;
    padding: 6px 10px;
    color: #ffffff;
    background: #183b57;
    border-radius: 8px;
    font-size: .75rem;
    font-weight: 700;
}

.city-gallery-viewer {
    width: min(920px, calc(100vw - 32px));
    max-width: none;
    max-height: calc(100vh - 32px);
    padding: 0;
    overflow: auto;
    color: var(--text);
    background: var(--page);
    border: 1px solid var(--line);
    border-radius: 20px;
    box-shadow: var(--shadow);
}

.city-gallery-viewer::backdrop {
    background: rgba(10, 20, 30, .75);
}

.city-gallery-panel {
    padding: 20px;
}

.city-gallery-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

.city-gallery-header h2 {
    margin: 0;
    color: var(--ink);
    font-size: clamp(1.2rem, 3vw, 1.7rem);
}

.city-gallery-close,
.city-gallery-navigation button {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    padding: 0;
    color: var(--ink);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 50%;
    cursor: pointer;
}

.city-gallery-close {
    font-size: 1.8rem;
}

.city-gallery-figure {
    margin: 0;
}

.city-gallery-image {
    display: block;
    width: 100%;
    height: clamp(220px, 55vh, 520px);
    object-fit: contain;
    background: var(--surface);
    border-radius: 12px;
}

.city-gallery-caption {
    margin-top: 14px;
    color: var(--text);
    font-size: .95rem;
    line-height: 1.5;
}

.city-gallery-navigation {
    display: grid;
    grid-template-columns: 44px 1fr 44px;
    align-items: center;
    gap: 16px;
    margin-top: 16px;
}

.city-gallery-navigation p {
    margin: 0;
    color: var(--muted);
    text-align: center;
}

.city-gallery-navigation button:disabled {
    opacity: .35;
    cursor: default;
}

@media (max-width: 620px) {
    .city-gallery-panel {
        padding: 14px;
    }

    .city-gallery-image {
        height: clamp(180px, 46vh, 420px);
    }
}

/* Benefícios com ilustrações distintas das etapas do processo. */
.benefits-grid .benefit {
    padding: 24px 16px;
    background: var(--page);
    border: 1px solid var(--line);
    border-top: 3px solid var(--gold-text);
    border-radius: 18px;
}

.benefit-icon {
    display: block;
    width: 83px;
    height: 83px;
    margin: 0 auto 12px;
    fill: none;
    stroke: var(--ink);
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.benefit-icon .gold-stroke {
    stroke: var(--gold-text);
}

/* Animação do mascote fornecida pelo próprio vídeo. */
video.hero-mascot {
    animation: none;
}