/* Caminho: public/assets/publico/css/publico.css
   Site institucional da RomaLogic — NÃO usar em sites de clientes (esse
   é o layout classico, em app/Templates/portal/layouts/classico/). */

:root {
  --navy:   #1B2A4A;
  --gold:   #C9A84C;
  --gold-l: #F0D98B;
  --bg:     #F7F8FA;
  --muted:  #4A5568;
  --border: #E2E8F0;
}

body { font-family: 'Inter', sans-serif; background: var(--bg); color: var(--navy); }
h1, h2, h3, .serif { font-family: 'Playfair Display', serif; }

/* ── Navbar ── */
.pub-nav {
  background: var(--navy);
  padding: 0 2rem;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 1000;
}
.pub-nav .brand { font-family: 'Playfair Display', serif; color: #fff; font-size: 1.2rem; text-decoration: none; }
.pub-nav .brand span { color: var(--gold); }
.pub-nav .nav-links { display: flex; align-items: center; gap: 1.5rem; }
.pub-nav .nav-links a { color: rgba(255,255,255,.7); text-decoration: none; font-size: .875rem; transition: color .15s; }
.pub-nav .nav-links a:hover { color: #fff; }
.pub-nav .nav-links a.active { color: var(--gold); }

.btn-gold {
  background: var(--gold); color: var(--navy) !important; padding: .45rem 1.1rem;
  border-radius: 6px; font-weight: 600; font-size: .85rem; text-decoration: none; transition: opacity .15s;
}
.btn-gold:hover { opacity: .88; }

/* ── Seções ── */
.section { padding: 5rem 0; }
.section-tag { font-size: .72rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); margin-bottom: .5rem; }
.section-title { font-size: 2rem; color: var(--navy); margin-bottom: .75rem; }
.section-sub { color: var(--muted); font-size: .95rem; line-height: 1.7; max-width: 520px; }

/* ── Cards ── */
.rl-card { background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 1.75rem; height: 100%; transition: box-shadow .2s, transform .2s; }
.rl-card:hover { box-shadow: 0 6px 24px rgba(27,42,74,.08); transform: translateY(-2px); }
.rl-card.gold-top { border-top: 3px solid var(--gold); }
.card-icon {
  width: 48px; height: 48px; border-radius: 12px; background: #EEF2FF;
  display: flex; align-items: center; justify-content: center; font-size: 1.3rem; color: var(--navy); margin-bottom: 1rem;
}

/* ── Botões ── */
.btn-navy { background: var(--navy); color: #fff; border: none; border-radius: 8px; padding: .7rem 1.75rem; font-weight: 600; font-size: .9rem; text-decoration: none; display: inline-block; transition: opacity .15s; }
.btn-navy:hover { opacity: .87; color: #fff; }
.btn-gold-lg { background: var(--gold); color: var(--navy); border: none; border-radius: 8px; padding: .75rem 2rem; font-weight: 700; font-size: .95rem; text-decoration: none; display: inline-block; transition: opacity .15s; }
.btn-gold-lg:hover { opacity: .88; color: var(--navy); }
.btn-outline-w { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,.4); border-radius: 8px; padding: .7rem 1.75rem; font-weight: 500; font-size: .9rem; text-decoration: none; display: inline-block; transition: border-color .15s; }
.btn-outline-w:hover { border-color: #fff; color: #fff; }

/* ── Hero (home) ── */
.hero-pub {
  background: linear-gradient(160deg, var(--navy) 0%, #101d38 100%);
  padding: 7rem 0 6rem;
  position: relative;
  overflow: hidden;
}
.hero-pub::before {
  content: '';
  position: absolute; top: -40%; right: -10%;
  width: 500px; height: 500px; border-radius: 50%;
  background: radial-gradient(circle, rgba(201,168,76,.12) 0%, transparent 70%);
}
.hero-pub .eyebrow {
  display: inline-block; font-size: .75rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  color: var(--gold); border: 1px solid rgba(201,168,76,.35); border-radius: 999px; padding: .35rem 1rem; margin-bottom: 1.5rem;
}
.hero-pub h1 { color: #fff; font-size: 3rem; line-height: 1.15; margin-bottom: 1.25rem; }
.hero-pub h1 em { color: var(--gold); font-style: normal; }
.hero-pub p.lead { color: rgba(255,255,255,.65); font-size: 1.05rem; max-width: 540px; margin: 0 auto 2.25rem; line-height: 1.7; }
.hero-pub .cta-row { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ── Blog / vazio elegante ── */
.blog-vazio {
  border: 1.5px dashed var(--border); border-radius: 14px; padding: 3rem 2rem; text-align: center; color: var(--muted); background: #fff;
}
.blog-vazio i { font-size: 1.75rem; color: var(--gold); display: block; margin-bottom: .75rem; }

/* ── Formulário de orçamento: etapas, radio-cards, módulo selecionado ── */
.form-step-title {
  display: flex; align-items: center; gap: .75rem;
  font-size: 1.05rem; font-weight: 700; color: var(--navy);
  margin-bottom: 1.25rem;
}
.form-step-num {
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--navy); color: var(--gold-l);
  display: flex; align-items: center; justify-content: center;
  font-size: .85rem; font-weight: 700; flex-shrink: 0;
}
.radio-card {
  display: flex; align-items: flex-start; gap: .75rem;
  border: 1.5px solid var(--border); border-radius: 12px;
  padding: 1rem 1.1rem; cursor: pointer; transition: border-color .15s, background .15s;
  height: 100%;
}
.radio-card:hover { border-color: var(--gold); }
.radio-card.is-checked { border-color: var(--gold); background: color-mix(in srgb, var(--gold) 6%, white); }
.modulo-card {
  border: 1.5px solid var(--border); border-radius: 12px;
  transition: border-color .15s, background .15s, box-shadow .15s;
}
.modulo-card.is-checked {
  border-color: var(--gold);
  background: color-mix(in srgb, var(--gold) 5%, white);
  box-shadow: 0 2px 10px rgba(201,168,76,.15);
}
.link-saiba-mais { font-size: .76rem; color: var(--gold); text-decoration: underline; cursor: pointer; }
.form-section-card {
  background: #fff; border: 1px solid var(--border); border-radius: 16px;
  padding: 2rem; margin-bottom: 2rem;
}

/* ── Hero de post individual (com imagem de destaque de fundo) ── */
.post-hero {
  position: relative;
  background-color: var(--navy);
  background-size: cover;
  background-position: center;
  padding: 9rem 0 6rem;
  min-height: 460px;
  display: flex;
  align-items: center;
}
.post-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(27,42,74,.45) 0%, rgba(16,29,56,.88) 100%);
}
.post-hero .post-hero-content { position: relative; z-index: 1; }

/* Sem imagem destaque: gradiente elegante (igual a home) no lugar da foto,
   e sem o overlay de contraste (só é necessário sobre foto) */
.post-hero--sem-imagem {
  background: linear-gradient(160deg, var(--navy) 0%, #101d38 100%);
}
.post-hero--sem-imagem::before { display: none; }

/* ── Hero split (texto + imagem lado a lado) ── */
.hero-split { background: var(--navy); padding: 5rem 0; }
.hero-split img {
  border-radius: 16px; width: 100%; height: 100%;
  object-fit: cover; max-height: 420px;
  box-shadow: 0 12px 40px rgba(0,0,0,.25);
}

/* ── Diferenciais: layout "lista horizontal com divisórias" ── */
.diferenciais-lista {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
}
.diferenciais-lista .item {
  display: flex; align-items: center; gap: .6rem;
  padding: 1.25rem 2rem; border-right: 1px solid var(--border);
  font-size: .9rem;
}
.diferenciais-lista .item:last-child { border-right: none; }
.diferenciais-lista .item i { color: var(--gold); font-size: 1.1rem; }

/* ── Seção com fundo navy: adapta texto/cards pra continuar legível ── */
.secao-texto-claro { color: rgba(255,255,255,.85); }
.secao-texto-claro h2.serif,
.secao-texto-claro h2.section-title { color: #fff; }
.secao-texto-claro .text-muted { color: rgba(255,255,255,.6) !important; }
.secao-texto-claro .rl-card { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.15); }
.secao-texto-claro .rl-card .fw-semibold,
.secao-texto-claro .rl-card h3 { color: #fff; }
.secao-texto-claro .diferenciais-lista { border-color: rgba(255,255,255,.15); }
.secao-texto-claro .diferenciais-lista .item { border-color: rgba(255,255,255,.15); }

/* ── Blog na home: layout lista horizontal ── */
.blog-lista-item {
  display: flex; gap: 1.25rem; align-items: center;
  padding: 1rem 0; border-bottom: 1px solid var(--border);
}
.blog-lista-item:last-child { border-bottom: none; }
.blog-lista-item img { width: 110px; height: 80px; object-fit: cover; border-radius: 10px; flex-shrink: 0; }
.secao-texto-claro .blog-lista-item { border-color: rgba(255,255,255,.15); }

/* ── Blog na home: layout destaque (1º post grande) ── */
.blog-destaque-principal { border-radius: 16px; overflow: hidden; position: relative; min-height: 320px; background-size: cover; background-position: center; display: flex; align-items: flex-end; }
.blog-destaque-principal::before { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 30%, rgba(16,29,56,.9) 100%); }
.blog-destaque-principal .conteudo { position: relative; z-index: 1; padding: 1.75rem; color: #fff; }

/* ── CTA banner ── */
.cta-banner { background: var(--navy); padding: 5rem 0; text-align: center; }
.cta-banner h2 { color: #fff; font-size: 2rem; margin-bottom: .75rem; }
.cta-banner p { color: rgba(255,255,255,.65); font-size: .95rem; margin-bottom: 2rem; }

/* ── Footer ── */
.pub-footer { background: #111827; padding: 3rem 0 1.5rem; }
.pub-footer .brand { font-family: 'Playfair Display', serif; color: #fff; font-size: 1.1rem; }
.pub-footer .brand span { color: var(--gold); }
.pub-footer p { color: rgba(255,255,255,.4); font-size: .8rem; }
.pub-footer a { color: rgba(255,255,255,.55); font-size: .85rem; text-decoration: none; }
.pub-footer a:hover { color: var(--gold); }
.footer-divider { border-color: rgba(255,255,255,.08); margin: 1.5rem 0; }

/* ── Flash ── */
.flash-wrap { position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 9999; }
