/* =========================================================
   Motorista Pro — Portal + App híbrido (Painel Motorista)
   Paleta 1 (Verde mobilidade) — Light
   ========================================================= */

/* RESET E BASE */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, Oxygen, Ubuntu, Cantarell, "Helvetica Neue", Arial, sans-serif;
  color: #151515;
  background: #f1f3f6;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

a:focus {
  outline: 2px solid #10b26c;
  outline-offset: 2px;
}

p {
  margin: 0 0 1rem;
}

/* VARIÁVEIS */
:root {
  --c-green-main: #10b26c;
  --c-green-soft: #bdf7d0;
  --c-asphalt: #0a0a0a;
  --c-dark: #2a2a2a;
  --c-gray-700: #3e3e3e;
  --c-gray-500: #7b7b7b;
  --c-gray-200: #e4e7ec;
  --c-gray-100: #f5f7fa;
  --c-white: #ffffff;

  --radius-card: 14px;
  --radius-pill: 999px;
}

/* LAYOUT GLOBAL */
.container {
  width: 92%;
  max-width: 1120px;
  margin-inline: auto;
}

.narrow {
  max-width: 780px;
}

.section {
  padding: 32px 0;
}

/* TIPOGRAFIA */
h1, h2, h3, h4 {
  margin: 0 0 0.7rem;
  font-weight: 700;
  color: #111111;
  line-height: 1.25;
}

h1 { font-size: 1.8rem; }
h2 { font-size: 1.4rem; }
h3 { font-size: 1.1rem; }

@media (min-width: 768px) {
  h1 { font-size: 2.1rem; }
  h2 { font-size: 1.6rem; }
  h3 { font-size: 1.2rem; }
}

.lead {
  font-size: 1.02rem;
  color: #404040;
}

.tiny {
  font-size: 0.85rem;
  color: #666666;
}

/* ===========================
   TOPBAR E HEADER
=========================== */

.topbar {
  background: #0a0a0a;
  color: #f5f5f5;
  font-size: 0.85rem;
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 6px 0;
}

.topbar-right ul {
  list-style: none;
  display: flex;
  gap: 10px;
  margin: 0;
  padding: 0;
}

.topbar-right a {
  color: #f5f5f5;
}

.site-header {
  background: #ffffff;
  border-bottom: 1px solid #d9dde5;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
}

.site-branding {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-fallback {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--c-green-main);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.9rem;
}

.custom-logo {
  max-height: 42px;
  width: auto;
  border-radius: 12px;
}

.site-branding-text {
  display: flex;
  flex-direction: column;
}

.site-title {
  font-size: 1.15rem;
  font-weight: 800;
}

.site-tagline {
  font-size: 0.8rem;
  color: #777777;
}

/* Menu principal */
.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.main-nav a {
  font-size: 0.9rem;
  font-weight: 600;
  padding: 7px 12px;
  border-radius: 999px;
}

.main-nav a:hover {
  background: #f3f5f9;
}

/* Header responsivo */
@media (max-width: 768px) {
  .topbar-inner {
    flex-direction: column;
    align-items: flex-start;
  }
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ===========================
   BOTÕES
=========================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 11px 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  text-align: center;
}

.btn-primary {
  background: var(--c-green-main);
  border-color: var(--c-green-main);
  color: #ffffff;
}

.btn-primary:hover {
  filter: brightness(0.93);
}

.btn-outline {
  background: transparent;
  border-color: var(--c-green-main);
  color: var(--c-green-main);
}

.btn-outline:hover {
  background: #e9fbf1;
}

/* ===========================
   HERO — GRID MISTO
=========================== */

.hero-dashboard {
  background: #f7f9fc;
  border-bottom: 1px solid #e4e7ec;
}

.hero-grid {
  display: grid;
  gap: 24px;
}

@media (min-width: 920px) {
  .hero-grid {
    grid-template-columns: 1.8fr 1fr;
  }
}

/* COLUNA ESQUERDA — DICA DESTAQUE + RADAR COMPACTO */

.hero-tip {
  background: #ffffff;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid #e0e4ee;
  box-shadow: 0 3px 8px rgba(15, 23, 42, 0.05);
  margin-bottom: 24px;
}

.hero-tip-thumb img {
  width: 100%;
  height: auto;
}

.hero-tip-body {
  padding: 16px 18px 18px;
}

.hero-badge {
  background: #bdf7d0;
  color: #117a4a;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
}

.hero-tip-title {
  font-size: 1.4rem;
  margin: 10px 0 4px;
}

.hero-tip-excerpt {
  font-size: 0.95rem;
  color: #545454;
}

/* RADAR COMPACTO */

.hero-section-title {
  font-size: 1.15rem;
  margin-bottom: 10px;
}

.hero-radar-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.hero-radar-item {
  border-bottom: 1px solid #e1e4ec;
  padding: 8px 0;
}

.hero-radar-title {
  font-weight: 600;
  font-size: 0.98rem;
  display: block;
}

.hero-radar-date {
  font-size: 0.8rem;
  color: #767676;
}

/* COLUNA DIREITA — SIDEBAR APP-LIKE */

.hero-sidebar {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.hero-cta-small {
  display: inline-block;
  padding: 10px 14px;
  background: #ffffff;
  border: 1px solid #10b26c;
  color: #10b26c;
  border-radius: 999px;
  text-align: center;
  font-weight: 600;
  font-size: 0.9rem;
}

.hero-cta-small:hover {
  background: #e5f8ef;
}

.hero-widget {
  background: white;
  border-radius: 16px;
  border: 1px solid #ddd;
  padding: 16px;
}

.hero-widget h3 {
  font-size: 1rem;
  margin-bottom: 8px;
}

.hero-widget ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.hero-widget li {
  font-size: 0.88rem;
  padding: 4px 0;
}

/* ===========================
   HEADERS DE BLOCO
=========================== */

.block-header {
  margin-bottom: 10px;
}

.block-header h2 {
  font-size: 1.2rem;
  margin-bottom: 0.1rem;
}

.block-sub {
  font-size: 0.88rem;
  color: #5a5a5a;
}

/* ===========================
   DICAS PRO — CARROSSEL MOBILE / GRID DESKTOP
=========================== */

.block-tips {
  background: transparent;
}

/* Mobile: carrossel horizontal */
.tips-strip {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 6px;
  scroll-snap-type: x mandatory;
}

.tips-strip::-webkit-scrollbar {
  height: 6px;
}
.tips-strip::-webkit-scrollbar-thumb {
  background: #cfd3dd;
  border-radius: 999px;
}

.tip-card {
  flex: 0 0 80%;
  max-width: 80%;
  background: #ffffff;
  border-radius: 14px;
  border: 1px solid #e0e4ee;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  scroll-snap-align: start;
}

.tip-thumb img {
  width: 100%;
  height: auto;
}

.tip-body {
  padding: 10px 12px 12px;
}

.tip-badge {
  display: inline-flex;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--c-green-soft);
  color: #0f824e;
  font-size: 0.75rem;
  margin-bottom: 4px;
}

.tip-title {
  font-size: 1rem;
  margin-bottom: 4px;
}

.tip-excerpt {
  font-size: 0.88rem;
  color: #555555;
}

/* Desktop: grid editorial */
@media (min-width: 720px) {
  .tips-strip {
    display: grid;
    gap: 16px;
    overflow: visible;
    scroll-snap-type: none;
    grid-template-columns: repeat(3, 1fr);
  }

  .tip-card {
    flex: initial;
    max-width: 100%;
  }
}

/* ===========================
   RADAR EXPANDIDO
=========================== */

.block-radar {
  background: transparent;
}

.radar-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.radar-item {
  padding: 10px 0;
  border-bottom: 1px solid #e4e7ec;
}

.radar-item:last-child {
  border-bottom: none;
}

.radar-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: #777777;
  margin-bottom: 4px;
}

.radar-title {
  font-weight: 600;
  font-size: 0.98rem;
  margin-bottom: 4px;
}

.radar-excerpt {
  font-size: 0.88rem;
  color: #555555;
}

.pill-type {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 999px;
  background: #0a0a0a;
  color: #fefefe;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* ===========================
   GUIAS ESSENCIAIS
=========================== */

.block-resumo {
  background: #ffffff;
  border-radius: 18px;
  border: 1px solid #dde1ea;
  padding: 18px;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.02);
}

.block-resumo-grid {
  display: grid;
  gap: 14px;
}

.resumo-card {
  background: #f5f7fa;
  border-radius: 12px;
  padding: 12px 14px;
  border: 1px solid #e2e5ee;
}

.resumo-card h3 {
  font-size: 0.98rem;
  margin-bottom: 0.25rem;
}

.resumo-card p {
  font-size: 0.88rem;
  color: #555555;
}

@media (min-width: 780px) {
  .block-resumo-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ===========================
   CTA 99 (HOME E SINGLE)
=========================== */

.block-cta-99 {
  background: transparent;
}

.cta-panel {
  background: #ffffff;
  border-radius: 18px;
  border: 1px solid #dde1ea;
  padding: 20px;
  box-shadow: 0 3px 8px rgba(15, 23, 42, 0.03);
}

.cta-panel h2 {
  font-size: 1.3rem;
  margin-bottom: 0.35rem;
}

.cta-panel .lead {
  margin-bottom: 1rem;
}

.lead-box {
  margin-top: 0.5rem;
  background: #f5faf8;
  border-radius: 12px;
  border: 1px solid #cfe9dc;
  padding: 14px;
}

/* ===========================
   SINGLE POST
=========================== */

.single-header {
  background: #ffffff;
  border-bottom: 1px solid #dde1ea;
}

.single-header .container {
  padding-top: 18px;
  padding-bottom: 12px;
}

.single-content .container {
  padding-top: 18px;
}

.post-title {
  margin-top: 0.25rem;
  margin-bottom: 0.45rem;
}

.post-meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.85rem;
  color: #666666;
}

.badge-category {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 999px;
  background: #111111;
  color: #f5f5f5;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.post-body {
  background: #ffffff;
  border-radius: 14px;
  border: 1px solid #e0e4ee;
  padding: 18px;
  font-size: 1rem;
  color: #202020;
}

.cta-inline-widget {
  background: #ffffff;
  border-radius: 14px;
  border: 1px solid #e0e4ee;
  padding: 16px;
  margin: 16px 0;
}

.cta-inline-widget h2 {
  font-size: 1.05rem;
  margin-bottom: 0.3rem;
}

.cta-inline-widget p {
  font-size: 0.9rem;
}

.block-cta-99-single .cta-panel {
  margin-top: 0;
}

.post-meta-extra {
  margin-top: 14px;
  font-size: 0.88rem;
  color: #666666;
}

/* ===========================
   PÁGINAS
=========================== */

.page-header {
  background: #f5f7fb;
  border-bottom: 1px solid #e0e4f0;
}

/* ===========================
   INDEX / LISTAGEM
=========================== */

.feed-grid {
  display: grid;
  gap: 14px;
}

@media (min-width: 720px) {
  .feed-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.feed-card {
  background: #ffffff;
  border-radius: 14px;
  border: 1px solid #e0e4ee;
  padding: 12px 14px;
}

.feed-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.8rem;
  color: #707070;
  margin-bottom: 4px;
}

.feed-title {
  font-size: 1.02rem;
  margin-bottom: 5px;
}

.feed-excerpt {
  font-size: 0.9rem;
  color: #555555;
}

/* ===========================
   RODAPÉ
=========================== */

.site-footer {
  margin-top: 32px;
  background: #0b0c0e;
  color: #eef0f5;
}

.footer-grid {
  display: grid;
  gap: 18px;
  padding: 20px 0;
}

@media (min-width: 780px) {
  .footer-grid {
    grid-template-columns: 1.6fr 1fr 1.4fr;
  }
}

.footer-col h4 {
  font-size: 0.98rem;
  margin-bottom: 0.4rem;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-col li {
  margin-bottom: 0.3rem;
}

.footer-col a {
  color: #ffffff;
  font-size: 0.9rem;
}

.footer-bottom {
  border-top: 1px solid #282b31;
  font-size: 0.82rem;
}

.footer-bottom .container {
  padding: 10px 0;
}

.footer-bottom p {
  margin: 0;
}

/* ===========================
   CTA STICKY MOBILE
=========================== */

.cta-sticky {
  display: none;
}

@media (max-width: 768px) {
  .cta-sticky {
    display: block;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--c-green-main);
    text-align: center;
    padding: 14px 12px;
    z-index: 9999;
  }

  .cta-sticky a {
    color: #ffffff;
    font-weight: 700;
    font-size: 1rem;
  }

  body {
    padding-bottom: 60px;
  }
}

/* ===========================
   PAGINAÇÃO
=========================== */

.pagination {
  text-align: center;
}

/* ===========================
   UTILITÁRIOS
=========================== */

.mt-1 { margin-top: 0.5rem !important; }
.mt-2 { margin-top: 1rem !important; }
.mt-3 { margin-top: 1.5rem !important; }
.mb-1 { margin-bottom: 0.5rem !important; }
.mb-2 { margin-bottom: 1rem !important; }
.mb-3 { margin-bottom: 1.5rem !important; }
