/* =========================================
   UX 2026: DESIGN SYSTEM (VIAJAR COM SEGURO)
   PALETA: Travel Agency (Areia, Oceano e Âmbar)
   ========================================= */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800&display=swap');

:root {
  /* Fundo e Texto - Tema Viagem / Areia */
  --bg-base: #ECE7DC; 
  --card-bg: #FFFFFF;
  --text-main: #12212E; 
  --text-muted: #307082; 
  
  /* Ação e Destaque */
  --accent-primary: #EA9940; 
  --accent-secondary: #307082; 
  --accent-focus: #6CA3A2; 
  --accent-soft: rgba(108, 163, 162, 0.15); 
  --border-light: #D6D0C4; 
  
  /* Identidade Social */
  --whatsapp: #25D366; --linkedin: #0077b5; --twitter-x: #12212E; 
  --telegram: #0088cc; --bluesky: #1185fe; --threads: #12212E;
  
  /* Sombras e Raios (Bordas mais nítidas para credibilidade) */
  --shadow-sm: 0 2px 4px rgba(18, 33, 46, 0.06);
  --shadow-md: 0 8px 16px rgba(18, 33, 46, 0.08);
  --shadow-hover: 0 12px 28px rgba(18, 33, 46, 0.12);
  --radius-card: 12px;
  --radius-pill: 100px;
}

[data-theme="dark"] {
  --bg-base: #12212E; 
  --card-bg: #1A2E3F; 
  --text-main: #ECE7DC; 
  --text-muted: #6CA3A2; 
  --border-light: #307082; 
  
  --accent-primary: #EA9940; 
  --accent-secondary: #6CA3A2; 
  --accent-soft: rgba(48, 112, 130, 0.3); 
  --twitter-x: #ECE7DC; --threads: #ECE7DC;
}

* { 
  box-sizing: border-box; 
  margin: 0; 
  padding: 0; 
  font-family: 'Outfit', system-ui, -apple-system, sans-serif; 
  -webkit-font-smoothing: antialiased; 
}

body { background-color: var(--bg-base); color: var(--text-main); line-height: 1.6; transition: background-color 0.3s, color 0.3s; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.hidden { display: none !important; opacity: 0; pointer-events: none; }
*:focus-visible { outline: 3px solid var(--accent-focus); outline-offset: 4px; border-radius: 8px; }

/* --- ACESSIBILIDADE WCAG --- */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
.skip-link { position: fixed; top: 12px; left: 12px; z-index: 2000; transform: translateY(-140%); background: var(--text-main); color: var(--bg-base); padding: 12px 16px; border-radius: 8px; text-decoration: none; font-weight: 700; box-shadow: var(--shadow-md); }
.skip-link:focus { transform: translateY(0); }

/* --- CABEÇALHO --- */
.cabecalho-site { position: sticky; top: 16px; z-index: 100; margin: 0 24px; }
.nav-bar { background: var(--card-bg); border: 1px solid var(--border-light); border-radius: var(--radius-pill); padding: 10px 24px; box-shadow: var(--shadow-sm); display: flex; justify-content: space-between; align-items: center; transition: 0.3s;}
.logotipo { font-size: 1.4rem; font-weight: 800; color: var(--accent-secondary); text-decoration: none; letter-spacing: -0.5px;}
.logotipo span { color: var(--accent-primary); font-weight: 700; }
.controles-a11y { display: flex; gap: 6px; }
.btn-a11y { background: var(--bg-base); border: 1px solid var(--border-light); color: var(--text-main); font-weight: 700; border-radius: 50%; width: 42px; height: 42px; cursor: pointer; transition: 0.2s; display: flex; align-items: center; justify-content: center; font-size: 0.95rem; }
.btn-a11y:hover { background: var(--accent-secondary); color: var(--bg-base); border-color: var(--accent-secondary); }

/* --- HERO SECTION --- */
.hero { text-align: center; padding: 80px 0 40px; }
.hero-kicker, .section-kicker { color: var(--accent-primary); font-size: 0.85rem; font-weight: 800; text-transform: uppercase; margin-bottom: 16px; letter-spacing: 1.5px; }
.hero-title { font-size: 3.5rem; font-weight: 800; margin: 0 auto 16px; color: var(--text-main); line-height: 1.15; max-width: 900px; letter-spacing: -1px; }
.hero-subtitle { font-size: 1.2rem; color: var(--text-muted); margin: 0 auto 40px; max-width: 750px; font-weight: 500; }

.hero-metricas { display: grid; grid-template-columns: repeat(3, minmax(180px, 1fr)); gap: 16px; margin: 0 auto 48px; max-width: 860px; }
.metrica-card { background: var(--card-bg); border: 1px solid var(--border-light); border-radius: var(--radius-card); padding: 24px; box-shadow: var(--shadow-sm); text-align: left; display: flex; flex-direction: column; justify-content: center; border-bottom: 4px solid var(--border-light); transition: border-color 0.3s;}
.metrica-ferramentas { border-bottom-color: var(--accent-primary); }
.metrica-jornadas { border-bottom-color: var(--accent-secondary); }
.metrica-cadastro { border-bottom-color: var(--accent-focus); }
.metrica-card strong { color: var(--text-main); font-size: 2.4rem; line-height: 1; margin-bottom: 8px; font-weight: 800; }
.metrica-card small { color: var(--text-muted); font-size: 0.85rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; }

/* --- BUSCA E BENTO --- */
.busca-form { display: flex; max-width: 720px; margin: 0 auto 32px; background: var(--card-bg); border-radius: var(--radius-pill); padding: 8px; box-shadow: var(--shadow-md); border: 1px solid var(--border-light); transition: 0.3s; }
.busca-form:focus-within { box-shadow: var(--shadow-hover); border-color: var(--accent-secondary); }
.busca-form input { flex-grow: 1; border: none; font-size: 1.1rem; outline: none; background: transparent; color: var(--text-main); padding: 0 24px; font-family: inherit;}
.busca-acoes { display: flex; gap: 8px; }
.btn-busca.secundario { background: var(--bg-base); color: var(--text-main); border: 1px solid var(--border-light); border-radius: var(--radius-pill); padding: 14px 28px; font-weight: 700; cursor: pointer; transition: 0.2s; font-size: 1rem; }
.btn-busca.secundario:hover { background: var(--border-light); }

.bento-grid-container { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 32px; }
.bento-card { background: var(--card-bg); color: var(--text-main); border-radius: 12px; padding: 10px 16px; display: flex; align-items: center; gap: 12px; cursor: pointer; box-shadow: var(--shadow-sm); border: 1px solid var(--border-light); transition: 0.2s; }
.bento-card:hover, .bento-card[aria-pressed="true"] { box-shadow: var(--shadow-md); border-color: var(--accent-secondary); transform: translateY(-2px); }
.bento-card[aria-pressed="true"] { background: var(--accent-soft); }
.bento-emoji { font-size: 1.2rem; }
.bento-title { font-weight: 600; font-size: 0.95rem; }
.bento-count { background: var(--bg-base); color: var(--text-muted); border-radius: 50%; min-width: 28px; height: 28px; display: flex; align-items: center; justify-content: center; font-size: 0.85rem; font-weight: 800; }

/* --- ADSENSE E COMO ESCOLHEMOS --- */
.espaco-respiro { height: 48px; width: 100%; }
.area-adsense { background: var(--card-bg); text-align: center; border-radius: var(--radius-card); display: flex; align-items: center; justify-content: center; border: 1px dashed var(--accent-focus); opacity: 0.8; }
.ads-vip { height: 120px; margin: 0 auto; max-width: 900px;}
.ads-home { height: 100px; margin: 48px 0; grid-column: 1 / -1; }
.ads-modal { padding: 20px; margin-top: 24px; min-height: 100px; border-radius: 12px; }
.ads-label { font-size: 0.75rem; color: var(--text-muted); text-transform: uppercase; font-weight: 800; letter-spacing: 1px; }

.painel-curadoria { display: grid; grid-template-columns: 1fr 1.2fr; gap: 24px; margin-bottom: 56px; }
.painel-curadoria > div:first-child { background: var(--card-bg); border: 1px solid var(--border-light); border-radius: var(--radius-card); box-shadow: var(--shadow-md); padding: 40px; }
.painel-curadoria h2 { font-size: 1.8rem; color: var(--text-main); line-height: 1.2; margin-bottom: 16px; font-weight: 800; letter-spacing: -0.5px;}
.criterios-lista { list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.criterio-card { background: var(--card-bg); border: 1px solid var(--border-light); border-radius: var(--radius-card); padding: 24px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; justify-content: center; border-left: 4px solid var(--accent-primary); }
.criterio-card strong { display: block; font-size: 1.1rem; color: var(--text-main); margin-bottom: 8px; font-weight: 800; }
.criterio-card span { font-size: 0.95rem; color: var(--text-muted); font-weight: 500; }

/* --- CARDS E GRID PRINCIPAL --- */
.status-resultados { color: var(--text-muted); font-weight: 700; margin-bottom: 32px; text-align: center; }
.sessao-categoria { margin-bottom: 72px; scroll-margin-top: 120px; }
.sessao-titulo { font-size: 1.8rem; font-weight: 800; color: var(--text-main); margin-bottom: 24px; display: flex; align-items: center; gap: 16px; border-bottom: 2px solid var(--border-light); padding-bottom: 12px; letter-spacing: -0.5px;}
.grid-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 24px; }

.card { background: var(--card-bg); border-radius: var(--radius-card); padding: 32px 24px; display: flex; flex-direction: column; justify-content: space-between; box-shadow: var(--shadow-sm); border: 1px solid var(--border-light); transition: transform 0.2s, box-shadow 0.2s; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); border-color: var(--accent-secondary); }
.card-topo { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.card-emoji { font-size: 2rem; background: var(--bg-base); padding: 12px; border-radius: 12px; }
.card-tag { color: var(--accent-secondary); font-size: 0.75rem; font-weight: 800; text-transform: uppercase; background: var(--accent-soft); padding: 4px 10px; border-radius: 6px; }
.card h3 { font-size: 1.3rem; font-weight: 800; color: var(--text-main); margin-bottom: 8px; line-height: 1.3; }
.card-desc { font-size: 1.05rem; font-weight: 600; margin-bottom: 12px; color: var(--text-main); }
.card-editorial { font-size: 1rem; color: var(--text-muted); flex-grow: 1; margin-bottom: 24px; }

.card-footer { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 16px; border-top: 1px solid var(--border-light); padding-top: 20px;}
.btn-card-abrir { background: var(--bg-base); color: var(--text-main); border: 1px solid var(--border-light); padding: 14px; border-radius: var(--radius-card); font-weight: 700; cursor: pointer; transition: 0.2s; font-size: 0.95rem; }
.btn-card-abrir:hover { background: var(--text-main); color: var(--bg-base); border-color: var(--text-main); }
.link-card-oficial { color: var(--accent-primary); font-weight: 800; font-size: 0.95rem; text-decoration: none; display: flex; align-items: center; gap: 4px; transition: 0.2s;}
.link-card-oficial:hover { color: var(--accent-secondary); }

/* --- MODAL COM DESIGN ELEVADO --- */
body.modal-open { overflow: hidden; }
.modal-overlay { position: fixed; inset: 0; background: rgba(18, 33, 46, 0.8); backdrop-filter: blur(6px); z-index: 1000; display: flex; justify-content: center; align-items: center; padding: 24px; }
.modal-content { background: var(--card-bg); width: 100%; max-width: 680px; max-height: 90vh; overflow-y: auto; border-radius: 20px; padding: 48px; box-shadow: 0 25px 50px rgba(0,0,0,0.3); position: relative; border: 1px solid var(--border-light); }
.btn-fechar { position: absolute; top: 24px; right: 24px; background: var(--bg-base); border: 1px solid var(--border-light); color: var(--text-main); width: 44px; height: 44px; border-radius: 12px; font-size: 1.2rem; cursor: pointer; transition: 0.2s; display: flex; align-items: center; justify-content: center; }
.btn-fechar:hover { background: var(--accent-primary); color: var(--bg-base); border-color: var(--accent-primary); }

.modal-header-compacto { display: flex; align-items: center; gap: 20px; margin-bottom: 32px; }
.emoji-medio { font-size: 3rem; background: var(--bg-base); padding: 20px; border-radius: 16px; border: 1px solid var(--border-light); }
.modal-header-compacto h2 { font-size: 2rem; color: var(--text-main); line-height: 1.1; margin-bottom: 8px; font-weight: 800; letter-spacing: -0.5px;}
.tag-categoria { background: var(--bg-base); color: var(--text-muted); padding: 8px 16px; border-radius: 8px; font-size: 0.85rem; font-weight: 700; border: 1px solid var(--border-light); display: inline-block; }

.dor-box { background: var(--accent-soft); padding: 24px; border-radius: 16px; margin-bottom: 32px; border-left: 6px solid var(--accent-secondary); }
.dor-box strong { color: var(--accent-secondary); display: block; margin-bottom: 8px; font-size: 0.95rem; text-transform: uppercase; font-weight: 800; letter-spacing: 0.5px;}
#artigo-dor { font-size: 1.15rem; font-weight: 700; color: var(--text-main); line-height: 1.5; }
#artigo-descricao { font-size: 1.1rem; color: var(--text-muted); line-height: 1.7; margin-bottom: 32px; }

.detalhes-editoriais { display: grid; gap: 16px; margin-bottom: 40px; }
.detalhes-editoriais div { border: 1px solid var(--border-light); border-radius: 12px; padding: 20px; background: var(--bg-base); }
.detalhes-editoriais dt { color: var(--accent-secondary); font-weight: 800; font-size: 0.85rem; text-transform: uppercase; margin-bottom: 8px; letter-spacing: 0.5px;}
.detalhes-editoriais dd { color: var(--text-main); font-weight: 500; font-size: 1rem; }

.btn-primario { display: block; text-align: center; background: var(--accent-primary); color: #12212E; text-decoration: none; padding: 20px; border-radius: 16px; font-size: 1.15rem; font-weight: 800; transition: 0.2s; box-shadow: 0 4px 12px rgba(234, 153, 64, 0.2); }
.btn-primario:hover { filter: brightness(1.1); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(234, 153, 64, 0.3); }

/* --- BOTÕES DE COMPARTILHAMENTO --- */
.share-buttons { text-align: center; border-top: 1px solid var(--border-light); padding-top: 32px; margin-top: 32px; }
.share-title { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 20px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px;}
.share-icons { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.btn-share { padding: 14px 20px; border-radius: 12px; border: none; font-weight: 700; cursor: pointer; color: white; font-size: 0.95rem; transition: transform 0.2s; box-shadow: var(--shadow-sm); }
.btn-share:hover { transform: translateY(-2px); filter: brightness(1.1); }
.btn-share.native { background: var(--text-main); color: var(--bg-base); width: 100%; font-size: 1.05rem; padding: 18px; }
.btn-share.whatsapp { background: var(--whatsapp); }
.btn-share.linkedin { background: var(--linkedin); }
.btn-share.x { background: var(--twitter-x); color: var(--bg-base); }

/* --- RODAPÉ --- */
.rodape-site { background: var(--bg-base); border-top: 1px solid var(--border-light); padding: 80px 0 40px; margin-top: 80px; }
.sobre-portal-rodape { max-width: 800px; margin: 0 auto 60px; text-align: center; }
.sobre-portal-rodape h2 { font-size: 1.6rem; margin-bottom: 20px; color: var(--text-main); font-weight: 800; letter-spacing: -0.5px;}
.sobre-portal-rodape p { color: var(--text-muted); line-height: 1.8; font-size: 1.05rem; }
.rodape-main { text-align: center; border-top: 1px solid var(--border-light); padding-top: 40px; color: var(--text-muted); font-size: 0.95rem;}
.links-rodape { display: flex; justify-content: center; gap: 24px; margin-top: 24px; }
.links-rodape a { color: var(--text-muted); font-weight: 800; text-decoration: none; border-bottom: 2px solid transparent; transition: 0.2s; padding-bottom: 4px; }
.links-rodape a:hover { color: var(--accent-secondary); border-bottom-color: var(--accent-secondary); }

/* --- PÁGINAS INSTITUCIONAIS --- */
.pagina-institucional { max-width: 820px; padding-top: 60px; padding-bottom: 80px; min-height: 65vh; }
.pagina-institucional h1 { font-size: 2.6rem; line-height: 1.15; margin: 24px 0 20px; color: var(--text-main); font-weight: 800; letter-spacing: -1px; }
.pagina-institucional h2 { font-size: 1.5rem; margin: 48px 0 20px; color: var(--accent-secondary); font-weight: 700; border-bottom: 2px solid var(--border-light); padding-bottom: 12px; }
.pagina-institucional p { color: var(--text-muted); font-size: 1.1rem; margin-bottom: 20px; line-height: 1.7; font-weight: 500; }
.link-voltar { color: var(--text-main); font-weight: 800; font-size: 0.95rem; text-decoration: none; display: inline-flex; align-items: center; margin-bottom: 16px; transition: transform 0.2s, border-color 0.2s; background: var(--bg-base); padding: 10px 20px; border: 1px solid var(--border-light); border-radius: 12px; box-shadow: var(--shadow-sm); }
.link-voltar:hover { border-color: var(--accent-secondary); transform: translateX(-4px); box-shadow: var(--shadow-md); }

/* --- RESPONSIVIDADE --- */
@media (max-width: 768px) {
    .cabecalho-site { top: 0; margin: 0; }
    .nav-bar { border-radius: 0 0 24px 24px; flex-direction: column; gap: 16px; padding: 20px; }
    .hero { padding: 48px 0 32px; }
    .hero-title { font-size: 2.4rem; }
    .painel-curadoria { grid-template-columns: 1fr; }
    .criterios-lista { grid-template-columns: 1fr; }
    .busca-form { flex-direction: column; padding: 12px; gap: 12px; border-radius: 20px; }
    .busca-form input { min-height: 54px; }
    .btn-busca.secundario { border-radius: 16px; }
    .card-footer { grid-template-columns: 1fr; }
    .link-card-oficial { justify-self: start; }
    .modal-content { padding: 32px 24px; border-radius: 20px; }
    .modal-header-compacto { flex-direction: column; text-align: center; }
    .share-icons { gap: 12px; }
    .btn-share { flex-grow: 1; padding: 16px; font-size: 0.9rem;}
}
