:root {
    --hub-blue: #154b97;
    --hub-blue-dark: #10294b;
    --hub-blue-soft: #2d6ecb;
    --hub-yellow: #e3ae1a;
    --hub-bg: #f3f4f6;
    --hub-white: #ffffff;
    --hub-border: #d8dfe8;
    --hub-text: #10294b;
    --hub-text-soft: #64748b;
    --hub-shadow: 0 8px 24px rgba(16, 41, 75, 0.08);
    --hub-radius: 18px;
    --hub-radius-sm: 14px;
    --hub-container: 1140px;
}

.avia-driver-hub {
    background: var(--hub-bg);
    color: var(--hub-text);
}

.avia-driver-hub *,
.avia-driver-hub *::before,
.avia-driver-hub *::after {
    box-sizing: border-box;
}

.hub-section {
    padding: 72px 20px;
}

.hub-section--tight-top {
    padding-top: 20px;
}

.hub-section--light {
    background: var(--hub-bg);
}

.hub-container {
    width: 100%;
    max-width: var(--hub-container);
    margin: 0 auto;
}

.hub-section-header {
    margin-bottom: 28px;
}

.hub-section-header h2 {
    margin: 0 0 10px;
    font-size: 48px;
    line-height: 1.1;
    font-weight: 800;
    color: var(--hub-text);
}

.hub-section-header p {
    margin: 0;
    font-size: 18px;
    color: var(--hub-text-soft);
}

/* Hero */
.hub-hero {
    background: linear-gradient(135deg, #153f84 0%, #1e5cb7 100%);
    padding-top: 80px;
    padding-bottom: 90px;
}

.hub-hero__content {
    text-align: center;
}

.hub-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.18);
    color: #fff;
    border-radius: 999px;
    padding: 12px 22px;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 28px;
}

.hub-hero__title {
    margin: 0 0 22px;
    font-size: 62px;
    line-height: 1.03;
    font-weight: 800;
    color: #fff;
}

.hub-hero__title span {
    color: var(--hub-yellow);
}

.hub-hero__text {
    max-width: 760px;
    margin: 0 auto;
    font-size: 20px;
    line-height: 1.5;
    color: #edf4ff;
}

/* Timeline */
.hub-timeline {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.hub-step {
    display: flex;
    align-items: stretch;
    gap: 24px;
}

.hub-step__left {
    width: 72px;
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
}

.hub-step__icon {
    width: 54px;
    height: 54px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: var(--hub-shadow);
    margin-bottom: 8px;
}

.hub-step__icon--azul {
    background: var(--hub-blue);
    color: #fff;
}

.hub-step__icon--amarelo {
    background: var(--hub-yellow);
    color: var(--hub-text);
}

.hub-step__line {
    width: 2px;
    flex: 1;
    background: #d2d9e3;
}

.hub-step__card {
    background: var(--hub-white);
    border: 1px solid var(--hub-border);
    border-radius: var(--hub-radius);
    padding: 22px 26px;
    margin-bottom: 26px;
    width: 100%;
    box-shadow: 0 4px 16px rgba(16, 41, 75, 0.03);
}

.hub-step__number {
    display: inline-block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 700;
    color: var(--hub-yellow);
    text-transform: uppercase;
}

.hub-step__card h3 {
    margin: 0 0 10px;
    font-size: 32px;
    line-height: 1.2;
    font-weight: 800;
    color: var(--hub-text);
}

.hub-step__card p {
    margin: 0;
    font-size: 18px;
    line-height: 1.6;
    color: var(--hub-text-soft);
}

/* ETUFOR */
.hub-etuform-card {
    display: flex;
    gap: 24px;
    align-items: center;
    background: var(--hub-white);
    border: 1px solid var(--hub-border);
    border-radius: var(--hub-radius);
    padding: 26px;
    box-shadow: 0 4px 16px rgba(16, 41, 75, 0.03);
}

.hub-etuform-card__icon {
    width: 82px;
    height: 82px;
    border-radius: 16px;
    background: #e8f0fe;
    color: var(--hub-blue);
    font-size: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.hub-etuform-card__content h3 {
    margin: 0 0 10px;
    font-size: 30px;
    line-height: 1.2;
    color: var(--hub-text);
}

.hub-etuform-card__content p {
    margin: 0 0 18px;
    font-size: 18px;
    line-height: 1.6;
    color: var(--hub-text-soft);
}

.hub-alert {
    margin-top: 18px;
    background: #fef3c7;
    border-left: 4px solid #d97706;
    border-radius: 12px;
    padding: 16px 18px;
    font-size: 16px;
    line-height: 1.6;
    color: #7c5200;
}

/* Buttons */
.hub-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 14px 24px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
    transition: 0.2s ease;
}

.hub-btn:hover {
    transform: translateY(-1px);
}

.hub-btn--primary {
    background: var(--hub-yellow);
    color: var(--hub-text);
}

.hub-btn--secondary {
    background: rgba(255,255,255,0.18);
    color: #fff;
}

/* Video */
.hub-video-card {
    background: transparent;
}

.hub-video-wrapper {
    position: relative;
    width: 100%;
    max-width: 860px;
    margin: 0 auto;
    aspect-ratio: 9 / 16;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: var(--hub-shadow);
    background: #000;
}

.hub-video-wrapper--wide {
    max-width: 100%;
    aspect-ratio: 16 / 9;
}

.hub-video-wrapper iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/* Generic grids */
.hub-grid {
    display: grid;
    gap: 20px;
}

.hub-grid--2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.hub-grid--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* Generic cards */
.hub-card,
.hub-link-card,
.hub-benefit-card,
.hub-rule-card {
    background: var(--hub-white);
    border: 1px solid var(--hub-border);
    border-radius: var(--hub-radius);
}

.hub-card--doc {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 22px;
    min-height: 128px;
}

.hub-card__icon-box {
    width: 58px;
    height: 58px;
    border-radius: 16px;
    background: #eef3fb;
    color: var(--hub-blue);
    font-size: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.hub-card__content h3 {
    margin: 0 0 8px;
    font-size: 24px;
    line-height: 1.2;
    color: var(--hub-text);
}

.hub-card__content p {
    margin: 0;
    font-size: 17px;
    color: var(--hub-text-soft);
    line-height: 1.5;
}

/* Link cards */
.hub-link-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    text-decoration: none;
    color: inherit;
    padding: 22px;
    min-height: 112px;
    transition: 0.2s ease;
}

.hub-link-card:hover {
    transform: translateY(-1px);
    box-shadow: var(--hub-shadow);
}

.hub-link-card__left {
    display: flex;
    align-items: center;
    gap: 18px;
}

.hub-link-card__left span {
    font-size: 28px;
    font-weight: 700;
    color: var(--hub-text);
    line-height: 1.2;
}

.hub-link-card__icon {
    width: 54px;
    height: 54px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}

.hub-link-card__icon--azul {
    background: var(--hub-blue);
    color: #fff;
}

.hub-link-card__icon--amarelo {
    background: var(--hub-yellow);
    color: var(--hub-text);
}

.hub-link-card__right {
    font-size: 28px;
    color: var(--hub-text-soft);
}

/* Benefits */
.hub-benefit-card {
    min-height: 290px;
    padding: 30px 24px;
    text-align: center;
}

.hub-benefit-card__icon {
    width: 66px;
    height: 66px;
    margin: 0 auto 20px;
    border-radius: 18px;
    background: #eef3fb;
    color: var(--hub-blue);
    font-size: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hub-benefit-card h3 {
    margin: 0 0 14px;
    font-size: 28px;
    line-height: 1.25;
    color: var(--hub-text);
}

.hub-benefit-card p {
    margin: 0;
    font-size: 18px;
    line-height: 1.6;
    color: var(--hub-text-soft);
}

/* Commissions */
.hub-commission-card {
    background: var(--hub-white);
    border: 1px solid var(--hub-border);
    border-radius: var(--hub-radius);
    overflow: hidden;
}

.hub-commission-card__top {
    padding: 28px;
}

.hub-commission-card__top h3 {
    margin: 0 0 20px;
    font-size: 30px;
    color: var(--hub-text);
}

.hub-commission-levels {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.hub-commission-level {
    background: #eef1f6;
    border-radius: 16px;
    padding: 20px;
    text-align: center;
}

.hub-commission-level--active {
    background: var(--hub-blue);
    color: #fff;
}

.hub-commission-level small {
    display: block;
    font-size: 15px;
    margin-bottom: 10px;
}

.hub-commission-level strong {
    display: block;
    font-size: 28px;
    line-height: 1.2;
    margin-bottom: 8px;
}

.hub-commission-level span {
    display: block;
    font-size: 16px;
}

.hub-commission-card__bottom {
    background: #ece2c8;
    padding: 26px 28px;
}

.hub-commission-note-title {
    margin: 0 0 12px;
    font-size: 18px;
    font-weight: 700;
    color: var(--hub-text);
}

.hub-commission-card__bottom p {
    margin: 0 0 10px;
    font-size: 18px;
    line-height: 1.6;
    color: #5b6470;
}

.hub-commission-result {
    font-size: 24px !important;
    font-weight: 800;
    color: #cc8b00 !important;
}

.hub-commission-result span {
    font-size: 18px;
    font-weight: 500;
    color: #667085;
}

.hub-commission-disclaimer {
    font-size: 14px !important;
    color: #6b7280 !important;
    margin-top: 12px !important;
}

/* Rules */
.hub-rule-card {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 22px;
    min-height: 132px;
}

.hub-rule-card__icon {
    width: 54px;
    height: 54px;
    border-radius: 16px;
    background: #eef3fb;
    color: var(--hub-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}

.hub-rule-card__content h3 {
    margin: 0 0 8px;
    font-size: 24px;
    line-height: 1.2;
    color: var(--hub-text);
}

.hub-rule-card__content p {
    margin: 0;
    font-size: 17px;
    line-height: 1.6;
    color: var(--hub-text-soft);
}

/* FAQ */
.hub-faq {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.hub-faq__item {
    background: var(--hub-white);
    border: 1px solid var(--hub-border);
    border-radius: 16px;
    overflow: hidden;
}

.hub-faq__item summary {
    list-style: none;
    cursor: pointer;
    padding: 22px 24px;
    font-size: 28px;
    font-weight: 700;
    color: var(--hub-text);
    position: relative;
}

.hub-faq__item summary::-webkit-details-marker {
    display: none;
}

.hub-faq__item summary::after {
    content: "⌄";
    position: absolute;
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 22px;
    color: var(--hub-text-soft);
}

.hub-faq__item[open] summary::after {
    content: "⌃";
}

.hub-faq__answer {
    padding: 0 24px 22px;
}

.hub-faq__answer p {
    margin: 0;
    font-size: 18px;
    line-height: 1.7;
    color: var(--hub-text-soft);
}

/* Final CTA */
.hub-final-cta {
    background: var(--hub-blue);
    border-radius: 26px;
    padding: 52px 24px;
    text-align: center;
    color: #fff;
}

.hub-final-cta h2 {
    margin: 0 0 16px;
    font-size: 52px;
    line-height: 1.1;
    color: #fff;
}

.hub-final-cta p {
    max-width: 760px;
    margin: 0 auto 24px;
    font-size: 20px;
    line-height: 1.6;
    color: #eaf1ff;
}

.hub-final-cta__actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Mini footer */
.hub-mini-footer {
    text-align: center;
    padding-top: 28px;
}

.hub-mini-footer__links {
    display: flex;
    gap: 28px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.hub-mini-footer__links a {
    text-decoration: none;
    color: var(--hub-text-soft);
    font-size: 18px;
}

.hub-mini-footer p {
    margin: 0;
    color: var(--hub-text-soft);
    font-size: 17px;
}

/* Astra compatibility */
.page-template-page-hub-motorista .site-content,
.page-template-page-hub-motorista .content-area,
.page-template-page-hub-motorista .ast-container {
    max-width: 100%;
    width: 100%;
    padding: 0;
    margin: 0;
}

/* Responsive */
@media (max-width: 1024px) {
    .hub-section-header h2,
    .hub-final-cta h2 {
        font-size: 40px;
    }

    .hub-hero__title {
        font-size: 50px;
    }

    .hub-step__card h3,
    .hub-card__content h3,
    .hub-rule-card__content h3,
    .hub-benefit-card h3,
    .hub-link-card__left span,
    .hub-faq__item summary {
        font-size: 24px;
    }

    .hub-grid--3 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hub-commission-levels {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .hub-section {
        padding: 48px 16px;
    }

    .hub-section--tight-top {
        padding-top: 12px;
    }

    .hub-hero {
        padding-top: 60px;
        padding-bottom: 70px;
    }

    .hub-hero__title {
        font-size: 38px;
    }

    .hub-hero__text,
    .hub-section-header p,
    .hub-step__card p,
    .hub-etuform-card__content p,
    .hub-card__content p,
    .hub-benefit-card p,
    .hub-rule-card__content p,
    .hub-faq__answer p,
    .hub-final-cta p {
        font-size: 16px;
    }

    .hub-section-header h2,
    .hub-final-cta h2 {
        font-size: 32px;
    }

    .hub-step {
        flex-direction: column;
        gap: 10px;
    }

    .hub-step__left {
        width: auto;
        flex-direction: row;
        align-items: center;
    }

    .hub-step__line {
        display: none;
    }

    .hub-step__card {
        margin-bottom: 20px;
        padding: 18px;
    }

    .hub-step__card h3,
    .hub-etuform-card__content h3,
    .hub-commission-card__top h3,
    .hub-card__content h3,
    .hub-rule-card__content h3,
    .hub-benefit-card h3,
    .hub-link-card__left span,
    .hub-faq__item summary {
        font-size: 22px;
    }

    .hub-etuform-card,
    .hub-card--doc,
    .hub-rule-card {
        flex-direction: column;
        align-items: flex-start;
    }

    .hub-grid--2,
    .hub-grid--3,
    .hub-commission-levels {
        grid-template-columns: 1fr;
    }

    .hub-video-wrapper {
        aspect-ratio: 9 / 16;
    }

    .hub-video-wrapper--wide {
        aspect-ratio: 16 / 9;
    }

    .hub-benefit-card {
        min-height: auto;
    }

    .hub-link-card {
        padding: 18px;
    }

    .hub-link-card__right {
        display: none;
    }

    .hub-final-cta {
        padding: 38px 18px;
    }

    .hub-final-cta__actions {
        flex-direction: column;
    }

    .hub-btn {
        width: 100%;
    }
}
