/* ==========================================================================
   Layout padrão de transportadora e loja (templates/pages/{carrier,store}/v1.php)
   Usa os tokens de style-premium.css.
   ========================================================================== */

.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;
}

/* --- Hero -------------------------------------------------------------- */

.pg-hero {
    background: linear-gradient(160deg, var(--primary) 0%, var(--primary-hover) 100%);
    color: var(--text-white);
    padding: 3rem 0 2.5rem;
    text-align: center;
}

.pg-hero-logo {
    width: 72px;
    height: 72px;
    object-fit: contain;
    background: var(--bg-surface);
    border-radius: var(--radius-md);
    padding: 0.5rem;
    margin-bottom: 1rem;
}

.pg-hero-title {
    font-size: clamp(1.6rem, 4vw, 2.4rem);
    font-weight: 800;
    color: var(--text-white);
    margin: 0 0 0.6rem;
    line-height: 1.2;
}

.pg-hero-subtitle {
    font-size: 1.05rem;
    opacity: 0.9;
    margin: 0 auto 1.75rem;
    max-width: 34rem;
}

.pg-hero-form {
    display: flex;
    gap: 0.5rem;
    max-width: 32rem;
    margin: 0 auto;
}

.pg-hero-form input {
    flex: 1 1 auto;
    min-width: 0;
    padding: 0.9rem 1rem;
    font-size: 1rem;
    border: 0;
    border-radius: var(--radius);
    background: var(--bg-surface);
    color: var(--text-main);
}

.pg-hero-form input:focus {
    outline: 3px solid var(--accent);
    outline-offset: 2px;
}

.pg-hero-form button {
    flex: 0 0 auto;
    padding: 0.9rem 1.6rem;
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-white);
    background: var(--accent);
    border: 0;
    border-radius: var(--radius);
    cursor: pointer;
    transition: filter 0.15s ease;
}

.pg-hero-form button:hover {
    filter: brightness(1.08);
}

@media (max-width: 30rem) {
    .pg-hero-form {
        flex-direction: column;
    }
}

/* --- Selos de confiança ------------------------------------------------ */

.pg-badges {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
    gap: 1rem;
    margin: 2rem 0;
}

.pg-badge {
    background: var(--bg-surface);
    border: 1px solid var(--bg-surface-alt);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    box-shadow: var(--shadow-sm);
}

.pg-badge i {
    font-size: 1.4rem;
    color: var(--primary);
    margin-bottom: 0.6rem;
}

.pg-badge h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-main);
    margin: 0 0 0.35rem;
}

.pg-badge p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.5;
}

/* --- Links oficiais ---------------------------------------------------- */

.pg-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem 1.5rem;
    padding: 1rem 1.25rem;
    margin-bottom: 2rem;
    background: var(--bg-surface);
    border: 1px solid var(--bg-surface-alt);
    border-radius: var(--radius-md);
}

.pg-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.92rem;
    color: var(--text-muted);
}

.pg-meta-item i {
    color: var(--primary);
}

.pg-meta-item a {
    color: var(--primary);
    text-decoration: none;
}

.pg-meta-item a:hover {
    text-decoration: underline;
}

/* --- Conteúdo longo (full_content do banco) ---------------------------- */

.pg-content {
    line-height: 1.75;
    color: var(--text-main);
}

.pg-content h2 {
    font-size: clamp(1.25rem, 2.5vw, 1.6rem);
    font-weight: 700;
    margin: 2rem 0 0.75rem;
}

.pg-content h2:first-child {
    margin-top: 0;
}

.pg-content h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 1.5rem 0 0.5rem;
}

.pg-content p {
    margin: 0 0 1rem;
    color: var(--text-muted);
}

.pg-content ul,
.pg-content ol {
    margin: 0 0 1rem 1.25rem;
    color: var(--text-muted);
}

.pg-content li {
    margin-bottom: 0.5rem;
}

.pg-content a {
    color: var(--primary);
}

/* --- FAQ --------------------------------------------------------------- */

.pg-faq {
    margin: 2rem 0;
}

.pg-faq > h2 {
    font-size: clamp(1.25rem, 2.5vw, 1.6rem);
    font-weight: 700;
    margin: 0 0 1rem;
}

.pg-faq-item {
    background: var(--bg-surface);
    border: 1px solid var(--bg-surface-alt);
    border-radius: var(--radius);
    margin-bottom: 0.6rem;
    overflow: hidden;
}

.pg-faq-item summary {
    padding: 1rem 1.25rem;
    font-weight: 600;
    color: var(--text-main);
    cursor: pointer;
    list-style: none;
    position: relative;
    padding-right: 2.5rem;
}

.pg-faq-item summary::-webkit-details-marker {
    display: none;
}

.pg-faq-item summary::after {
    content: '+';
    position: absolute;
    right: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.3rem;
    font-weight: 400;
    color: var(--primary);
    line-height: 1;
}

.pg-faq-item[open] summary::after {
    content: '\2212';
}

.pg-faq-item > div {
    padding: 0 1.25rem 1.1rem;
    color: var(--text-muted);
    line-height: 1.65;
}

/* Termo de busca do anúncio (DKI) no hero da transportadora */
.pg-hero-kw {
    margin: 0 0 .5rem;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--primary);
}
