/* =====================================================
   TEMPLATING - HUB DE MARCAS (ALLFONE)
   ===================================================== */

.af-brand-wrapper {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #ffffff;
    color: #111111;
}




/* 1. Hero Top Banner */
/* 1. Hero Top Banner - Configurado com a tua Imagem de Fundo */
/* 1. Hero Top Banner - Full-Width e Fundo Azul Escuro Sólido */
/* 1. Hero Top Banner - Altura Reduzida e Compacta */
.af-brand-hero-section {
    position: relative;
    background-color: #0d092a !important; 
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    
    /* ENCOLHIDO: Reduzido o padding de cima e de baixo */
    padding: 40px 20px 50px 20px !important; 
    width: 100%;
    
    /* ENCOLHIDO: Reduzida a altura mínima para o banner não esticar tanto */
    min-height: 340px !important; 
    
    box-sizing: border-box;
    overflow: visible; /* Mantém o telemóvel a flutuar para fora na base */
    display: flex;
    align-items: center;
}

/* Ajuste proporcional para a imagem não ficar gigante com a nova altura */
.af-hero-phone-floating {
    max-width: 100% !important;
    height: auto !important;
    /* Reduzido ligeiramente o tamanho máximo do telemóvel para casar com a nova altura */
    max-height: 430px !important; 
    display: block !important;
    margin-left: auto !important;
    
    /* Mantém o truque de sair um bocado para fora na base */
    transform: translateY(55px) !important; 
    object-fit: contain !important;
    filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.75)) !important;
}


/* Garante que o conteúdo lá dentro (textos e grelha) continua alinhado ao centro a 1200px */
.af-brand-hero-grid {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto !important;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
    position: relative;
}


.af-brand-breadcrumbs {
    width: 100% !important; /* Força o link a ficar sozinho na linha de cima */
    font-size: 0.85rem;
    color: #cbd5e1;
    margin-bottom: 8px;
}

.af-brand-breadcrumbs a {
    color: #cbd5e1;
    text-decoration: none;
}

.af-brand-hero-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
    position: relative;
}

.af-brand-hero-info {
    flex: 1.2;
    min-width: 300px;
    text-align: left;
    color: #ffffff; /* Força os textos a branco sobre o fundo escuro */
    z-index: 2;
}

.af-brand-hero-info h1 {
       margin-top: 0 !important;
    padding-top: 0 !important;
    font-size: 3.5rem;
    font-weight: 600;
    margin: 0 0 16px 0;
    letter-spacing: -1px;
    color: #ffffff !important;
}

.af-brand-hero-info p {
    color: #e2e8f0 !important; /* Aumentado o contraste para leitura no escuro */
    font-size: 1.05rem;
    line-height: 1.6;
    margin-bottom: 30px;
    max-width: 350px;
}

/* Alinhamento e flutuação do Smartphone */
.af-brand-hero-media {
    flex: 0.8;
    min-width: 300px; /* tamanho do telemóvel em hero*/
    text-align: right;
    position: relative;
    z-index: 3;
    /* Alinha a caixa do telemóvel na base do grid */
    align-self: flex-end; 
}

.af-brand-hero-media img {
    max-width: 100%;
    height: auto;
    max-height: 560px; /* Alarga o telemóvel para ficar imponente no ecrã */
    display: block;
    margin-left: auto;
    /* TRUQUE: Empurra o telemóvel para baixo, fazendo-o ultrapassar a margem do fundo */
    transform: translateY(60px); 
    object-fit: contain;
    /* Injeta uma sombra escura difusa por trás do telemóvel para dar profundidade */
    filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.6)); 
}








/* 2. Secções Gerais de Listagem */
.af-brand-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.af-brand-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.af-brand-section-header h2 {
    font-size: 1.6rem;
    font-weight: 800;
    margin: 0;
}

.af-brand-section-header a {
    color: var(--allfone-purple);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
}

/* 3. Blocos Intermédios de Três Colunas */
.af-brand-columns-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
}

.af-brand-meta-card {
    background: #ffffff;
    border: 1px solid var(--border-card);
    border-radius: 12px;
    padding: 24px;
    text-align: left;
}

.af-brand-meta-card h3 {
    font-size: 1.2rem;
    font-weight: 800;
    margin: 0 0 20px 0;
}

.af-brand-meta-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 24px;
}

.af-brand-meta-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.af-brand-meta-icon {
    font-size: 1.5rem;
    background: #f8fafc;
    padding: 6px;
    border-radius: 8px;
    line-height: 1;
}

.af-brand-meta-text h4 {
    margin: 0 0 4px 0;
    font-size: 0.95rem;
    font-weight: 700;
}

.af-brand-meta-text p {
    margin: 0;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.af-brand-meta-footer-link {
    color: var(--allfone-purple);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.85rem;
    display: block;
    border-top: 1px solid #f1f5f9;
    padding-top: 16px;
}

/* Row de Comparações */
.af-brand-vs-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #f8fafc;
}

.af-brand-vs-row:last-child {
    border-bottom: none;
}

.af-brand-vs-badge {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 700;
}

/* 4. Bloco de Notícias Recentes */
.af-brand-news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.af-brand-news-card {
    display: flex;
    background: #ffffff;
    border: 1px solid var(--border-card);
    border-radius: 12px;
    overflow: hidden;
    height: 110px;
    text-align: left;
}

.af-brand-news-media {
    position: relative;
    width: 110px;
    background: #eaeaea;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.af-brand-news-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: #ff007f;
    color: #fff;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.65rem;
    font-weight: 700;
}

.af-brand-news-content {
    padding: 12px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.af-brand-news-content h4 {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.3;
    color: #111111;
}

.af-brand-news-content span {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* 5. Banner de Ajuda Inferior (Comparador) */
.af-brand-help-banner {
    background: #ffffff;
    border: 1px solid var(--border-card);
    border-radius: 16px;
    padding: 40px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
}

.af-brand-help-info {
    flex: 2;
    min-width: 300px;
    text-align: left;
}

.af-brand-help-info h3 {
    font-size: 1.8rem;
    font-weight: 800;
    margin: 0 0 8px 0;
}

.af-brand-help-info p {
    color: var(--text-muted);
    margin: 0 0 24px 0;
    font-size: 1rem;
}

.af-brand-help-vs-box {
    flex: 1;
    min-width: 260px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    background: var(--bg-light);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid var(--border-card);
}

.af-brand-help-vs-title {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--text-muted);
}

/* 6. Rodapé de Confiança */
.af-brand-trust-row {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 30px;
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 500;
}

.af-brand-trust-item span {
    font-size: 0.75rem;
}

/* =====================================================
   RODAPÉ DE CONFIANÇA - CRITÉRIOS COM SVGS PREMIUM
   ===================================================== */

.af-brand-trust-section {
    background: var(--bg-light); 
    border-top: 1px solid var(--border-card); 
    padding: 30px 20px; 
    margin-top: 40px;
}

.af-brand-trust-row {
    max-width: 1200px; 
    margin: 0 auto; 
    display: flex; 
    justify-content: space-around; 
    flex-wrap: wrap; 
    gap: 30px;
}

.af-trust-card {
    display: flex;
    align-items: center;
    gap: 12px;
    text-align: left;
    min-width: 220px;
}

/* Força os SVGs do rodapé a assumirem a tua cor roxa oficial */
.af-trust-card svg {
    color: var(--allfone-purple) !important;
    flex-shrink: 0;
    opacity: 0.9;
}

.af-trust-text strong {
    font-size: 0.9rem;
    color: var(--text-main);
    display: block;
    margin-bottom: 2px;
}

.af-trust-text span {
    font-size: 0.75rem;
    color: var(--text-muted);
    display: block;
    line-height: 1.3;
}
