/**
 * Página — Garantia dos Produtos
 * Layout documento com hero dark (padrão AT aprovado) + seções numeradas + CTA.
 * Prefixo: brd-ga-*
 *
 * @package BR_Distribuidora
 */

/* ══ Reset container Astra ══ */
.page-template-page-garantia .ast-container,
.page-template-page-garantia .entry-content,
.page-template-page-garantia .ast-article-single,
.page-template-page-garantia .ast-single-post {
    max-width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    float: none !important;
}

.page-template-page-garantia .site-content,
.page-template-page-garantia #primary,
.page-template-page-garantia .ast-article-single,
.page-template-page-garantia .hentry {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    border-top: none !important;
    border-bottom: none !important;
}

.page-template-page-garantia .site-content {
    background-color: transparent !important;
}

/* ══ Página ══ */
.brd-ga-page {
    display: block;
    background-color: #ffffff;
}

/* ══ Wrapper ══ */
.brd-ga-wrap {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 32px;
}

/* ══ Hero — padrão AT aprovado ══ */
.brd-ga-hero {
    background-color: #183357;
    background-image:
        radial-gradient(ellipse at 50% -20%, rgba(255, 255, 255, 0.07) 0%, transparent 65%),
        radial-gradient(ellipse at 50% 50%, rgba(32, 107, 179, 0.22) 0%, transparent 70%),
        repeating-linear-gradient(
            45deg,
            rgba(32, 107, 179, 0.07) 0px,
            rgba(32, 107, 179, 0.07) 1px,
            transparent 1px,
            transparent 22px
        ),
        linear-gradient(180deg, #0f2440 0%, #183357 55%, #183357 100%);
    padding: 72px 0 88px;
    position: relative;
    border-top: 1px solid rgba(244, 238, 215, 0.08);
}

.brd-ga-hero::after {
    content: '';
    position: absolute;
    bottom: -1px; left: 0; right: 0;
    height: 56px;
    background-color: #ffffff;
    clip-path: polygon(100% 100%, 0 100%, 100% 0);
    pointer-events: none;
}

.brd-ga-eyebrow {
    display: inline-flex;
    align-items: center;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #206bb3;
    padding-left: 14px;
    border-left: 3px solid #206bb3;
    margin-bottom: 20px;
}

.brd-ga-hero h1 {
    font-size: clamp(26px, 4vw, 38px);
    font-weight: 700;
    color: #f4eed7;
    line-height: 1.2;
    margin-bottom: 12px;
}

.brd-ga-subtitle {
    font-size: 15px;
    color: rgba(244, 238, 215, 0.6);
    margin: 0;
}

/* ══ Seção documento ══ */
.brd-ga-section {
    padding: 64px 0 88px;
    background-color: #ffffff;
}

/* ══ Itens do documento ══ */
.brd-ga-item {
    display: grid;
    grid-template-columns: 52px 1fr;
    gap: 0 20px;
    padding: 40px 0;
    border-bottom: 1px solid #e8ebf0;
    scroll-margin-top: 90px;
}

.brd-ga-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.brd-ga-item__num {
    font-size: 28px;
    font-weight: 700;
    color: rgba(32, 107, 179, 0.18);
    line-height: 1;
    padding-top: 4px;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.02em;
    user-select: none;
}

.brd-ga-item__body h2 {
    font-size: 18px;
    font-weight: 700;
    color: #183357;
    margin-bottom: 16px;
    line-height: 1.3;
}

.brd-ga-item__body p {
    font-size: 15px;
    line-height: 1.8;
    color: #3a3a3a;
    margin-bottom: 14px;
}

.brd-ga-item__body p:last-child { margin-bottom: 0; }

.brd-ga-item__body ul {
    margin: 0 0 14px 0;
    padding-left: 0;
    list-style: none;
}

.brd-ga-item__body ul li {
    font-size: 15px;
    line-height: 1.7;
    color: #3a3a3a;
    padding: 5px 0 5px 20px;
    position: relative;
}

.brd-ga-item__body ul li::before {
    content: '–';
    position: absolute;
    left: 4px;
    color: #206bb3;
    font-weight: 700;
}

.brd-ga-item__body strong {
    color: #183357;
}

.brd-ga-item__body a {
    color: #206bb3;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.brd-ga-item__body a:hover {
    color: #183357;
}

/* ══ Aviso (notice) ══ */
.brd-ga-notice {
    background-color: #f5f7fa;
    border-left: 3px solid #206bb3;
    border-radius: 0 6px 6px 0;
    padding: 14px 18px;
    margin-top: 16px;
}

.brd-ga-notice p {
    font-size: 14px !important;
    color: #555 !important;
    margin: 0 !important;
}

/* ══ CTA — padrão AT aprovado ══ */
.brd-ga-cta {
    background-color: #183357;
    background-image:
        radial-gradient(ellipse at 50% 120%, rgba(255, 255, 255, 0.06) 0%, transparent 60%),
        radial-gradient(ellipse at 50% 50%, rgba(32, 107, 179, 0.2) 0%, transparent 70%),
        repeating-linear-gradient(
            45deg,
            rgba(32, 107, 179, 0.07) 0px,
            rgba(32, 107, 179, 0.07) 1px,
            transparent 1px,
            transparent 22px
        ),
        linear-gradient(180deg, #183357 0%, #183357 50%, #0f2440 100%);
    padding: 64px 0;
    text-align: center;
    border-top: 1px solid rgba(32, 107, 179, 0.5);
    border-bottom: 1px solid rgba(244, 238, 215, 0.08);
}

.brd-ga-cta h2 {
    font-size: clamp(1.375rem, 3vw, 1.875rem);
    font-weight: 700;
    color: #f4eed7;
    margin: 0 0 10px;
}

.brd-ga-cta p {
    font-size: 0.9375rem;
    color: rgba(244, 238, 215, 0.7);
    margin: 0 0 28px;
}

.brd-ga-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    background: transparent;
    border: 2px solid #25d366;
    color: #25d366;
    border-radius: 9999px;
    font-size: 0.9375rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s, color 0.2s, transform 0.15s;
}

.brd-ga-btn:hover {
    background: #25d366;
    color: #ffffff;
    transform: translateY(-2px);
}

/* ══ Responsivo ══ */
@media (max-width: 640px) {
    .brd-ga-hero    { padding: 56px 0 72px; }
    .brd-ga-section { padding: 48px 0 64px; }
    .brd-ga-cta     { padding: 48px 0; }

    .brd-ga-item {
        grid-template-columns: 1fr;
        gap: 8px 0;
    }

    .brd-ga-item__num { font-size: 20px; }
}
