/*
Theme Name: AV Leste OpenBus
Theme URI: https://openbus.com.br/
Author: OpenBus
Description: Sistema integrado AV Leste OpenBus, consolidado a partir dos snippets operacionais existentes.
Version: 1.2.0
Requires at least: 6.0
Tested up to: 7.0
Requires PHP: 7.4
Text Domain: av-leste-openbus
*/

:root { color-scheme: light; }
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: #172033; background: #f4f7fb; }
.avl-site-main { min-height: 100vh; }
.avl-content-shell { width: min(1180px, calc(100% - 32px)); margin: 32px auto; }
img { max-width: 100%; height: auto; }

/* Tela institucional de acesso */
body.home { background: #012e30; }
body.home .avl-site-main { min-height: 100svh; }
.avl-access {
    --avl-petroleo: #006064;
    --avl-petroleo-escuro: #012e30;
    --avl-dourado: #c99a32;
    position: relative;
    min-height: 100svh;
    display: grid;
    place-items: center;
    overflow: hidden;
    isolation: isolate;
    padding: 28px;
    background: #012e30 center/cover no-repeat;
}
.avl-access::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -2;
    background:
        linear-gradient(90deg, rgba(1,46,48,.96) 0%, rgba(1,46,48,.88) 35%, rgba(1,46,48,.36) 67%, rgba(1,46,48,.58) 100%),
        linear-gradient(0deg, rgba(1,46,48,.72), transparent 45%);
}
.avl-access::after {
    content: "";
    position: absolute;
    z-index: -1;
    width: 560px;
    height: 560px;
    left: -260px;
    top: -270px;
    border: 1px solid rgba(246,217,120,.2);
    border-radius: 50%;
    box-shadow: 0 0 0 70px rgba(201,154,50,.035), 0 0 0 140px rgba(201,154,50,.025);
}
.avl-access__shell { width: min(1220px, 100%); margin: auto; }
.avl-access__brandbar { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: clamp(42px, 8vh, 86px); }
.avl-access__logo-wrap { display: inline-flex; align-items: center; min-height: 72px; max-width: 310px; padding: 10px 16px; border-radius: 16px; background: rgba(255,255,255,.96); box-shadow: 0 14px 40px rgba(0,0,0,.18); }
.avl-access__logo-wrap img { display: block; width: auto; max-width: 278px; max-height: 78px; object-fit: contain; }
.avl-access__status { display: inline-flex; align-items: center; gap: 10px; color: rgba(255,255,255,.84); font-size: 13px; font-weight: 650; letter-spacing: .03em; }
.avl-access__status-dot { width: 9px; height: 9px; border-radius: 50%; background: #72d6a5; box-shadow: 0 0 0 5px rgba(114,214,165,.13); }
.avl-access__content { max-width: 610px; color: #fff; }
.avl-access__eyebrow { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 18px; color: #f6d978; font-size: 12px; line-height: 1; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.avl-access__eyebrow::before { content: ""; width: 34px; height: 2px; background: var(--avl-dourado); }
.avl-access__title { margin: 0; max-width: 590px; color: #fff; font-size: clamp(42px, 5.7vw, 76px); line-height: .98; letter-spacing: -.052em; font-weight: 780; }
.avl-access__title span { color: #f6d978; }
.avl-access__text { max-width: 530px; margin: 24px 0 30px; color: rgba(255,255,255,.78); font-size: clamp(16px, 1.55vw, 19px); line-height: 1.62; }
.avl-access__actions { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; }
.avl-access__button { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 56px; padding: 0 25px; border: 1px solid #f6d978; border-radius: 14px; background: linear-gradient(135deg, #f6d978, #c99a32); color: #012e30; font-size: 15px; font-weight: 800; text-decoration: none; box-shadow: 0 16px 34px rgba(154,109,22,.28); transition: transform .2s ease, box-shadow .2s ease, filter .2s ease; }
.avl-access__button:hover { color: #012e30; transform: translateY(-2px); filter: brightness(1.04); box-shadow: 0 20px 40px rgba(154,109,22,.38); }
.avl-access__button svg { width: 19px; height: 19px; }
.avl-access__helper { color: rgba(255,255,255,.7); font-size: 13px; line-height: 1.45; }
.avl-access__footer { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 24px; margin-top: clamp(48px, 9vh, 92px); padding-top: 20px; border-top: 1px solid rgba(255,255,255,.13); color: rgba(255,255,255,.58); font-size: 12px; }
.avl-access__footer strong { color: rgba(255,255,255,.82); }

@media (max-width: 720px) {
    .avl-access { place-items: stretch; min-height: 100svh; padding: 20px; background-position: 64% center; }
    .avl-access::before { background: linear-gradient(180deg, rgba(1,46,48,.76), rgba(1,46,48,.91) 42%, #012e30 79%); }
    .avl-access__shell { display: flex; flex-direction: column; min-height: calc(100svh - 40px); }
    .avl-access__brandbar { margin-bottom: auto; }
    .avl-access__logo-wrap { min-height: 60px; max-width: 225px; padding: 8px 12px; border-radius: 13px; }
    .avl-access__logo-wrap img { max-width: 200px; max-height: 58px; }
    .avl-access__status { width: 10px; overflow: hidden; white-space: nowrap; }
    .avl-access__content { margin-top: 42vh; }
    .avl-access__title { font-size: clamp(39px, 12vw, 56px); }
    .avl-access__text { margin: 18px 0 24px; font-size: 15px; }
    .avl-access__button { width: 100%; }
    .avl-access__helper { width: 100%; text-align: center; }
    .avl-access__footer { margin-top: 38px; justify-content: center; text-align: center; }
}

@media (prefers-reduced-motion: reduce) { .avl-access__button { transition: none; } }
