/* =========================================================
   OAB SUBSEÇÃO JUIZ DE FORA · LINK NA BIO
   Rev.Labs · V2 · mobile first
   Segue o site novo: fundo areia, branco, títulos Poppins 800
   azul-marinho, degradê só em "Juiz de Fora e região",
   botões em azul e vermelho apenas como detalhe.
   ========================================================= */

:root {
  --navy: #0c354d;
  --blue: #11547b;
  --sky: #6ca6c7;
  --red: #ce181e;
  --wine: #731415;
  --ink: #231f20;
  --sand: #eee8e2;
  --sand-deep: #e3dbd3;
  --white: #ffffff;
  --muted: #5c5759;
  --btn: linear-gradient(135deg, #11547b, #0c354d);
  --font: "Poppins", "Helvetica Neue", Arial, sans-serif;
  --gutter: 20px;
  color-scheme: light;
}

* { box-sizing: border-box; }

html { background: #ddd6ce; scroll-behavior: smooth; }

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background: #ddd6ce;
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
a:focus-visible, summary:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; }

svg {
  width: 1.25em;
  height: 1.25em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: 0 0 auto;
}

.page-shell {
  width: min(100%, 520px);
  margin: 0 auto;
  overflow: hidden;
  background: var(--sand);
}

/* =========================================================
   HERO
   ========================================================= */

.hero {
  padding: max(20px, env(safe-area-inset-top)) var(--gutter) 0;
}

.hero__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand img {
  width: auto;
  max-width: 140px;
  max-height: 52px;
  object-fit: contain;
}

.hero__official {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  padding: 0 13px;
  border-radius: 999px;
  color: var(--white);
  background: var(--btn);
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.hero__copy { padding-top: 28px; max-width: 440px; }

.hero h1 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(34px, 9.4vw, 44px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -.02em;
  text-wrap: balance;
}

/* degradê da marca, igual ao título do site */
.hero h1 .grad {
  color: var(--red);
  background: linear-gradient(90deg, var(--red) 0%, var(--wine) 50%, var(--blue) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nowrap { white-space: nowrap; }

.hero__lead {
  max-width: 380px;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}

/* =========================================================
   LINKS PRINCIPAIS
   ========================================================= */

.links { display: grid; gap: 10px; margin-top: 24px; }

.primary-link {
  display: flex;
  min-height: 72px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 13px 12px 22px;
  border-radius: 20px;
  color: var(--white);
  background: var(--btn);
  transition: transform .2s ease;
}

.primary-link:hover { transform: translateY(-2px); }

.primary-link__copy { display: flex; min-width: 0; flex-direction: column; gap: 2px; }
.primary-link__copy strong { font-size: 17px; font-weight: 700; }
.primary-link__copy small { color: rgba(255,255,255,.72); font-size: 12px; overflow-wrap: anywhere; }

.primary-link__arrow {
  display: grid;
  width: 46px;
  height: 46px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 14px;
  color: var(--navy);
  background: var(--white);
}

.primary-link__arrow svg { width: 20px; height: 20px; }

.quick-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

/* todos iguais: brancos, texto azul, ícone em areia */
.quick-link {
  display: flex;
  min-height: 60px;
  align-items: center;
  gap: 10px;
  padding: 10px 12px 10px 10px;
  border-radius: 16px;
  color: var(--navy);
  background: var(--white);
  transition: transform .2s ease;
}

.quick-link:hover { transform: translateY(-2px); }

.quick-link__icon {
  display: grid;
  flex: 0 0 34px;
  height: 34px;
  place-items: center;
  border-radius: 10px;
  color: var(--blue);
  background: var(--sand);
}

.quick-link__icon svg { width: 17px; height: 17px; }

.quick-link__label {
  min-width: 0;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.25;
  overflow-wrap: break-word;
}

/* =========================================================
   CARDS
   ========================================================= */

.content {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 28px var(--gutter) 44px;
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 24px;
  background: var(--white);
}

a.card { transition: transform .25s ease; }
a.card:hover { transform: translateY(-3px); }

.card h2 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(23px, 6.4vw, 28px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -.02em;
  text-wrap: balance;
}

.card p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.6;
}

.card-label {
  display: block;
  margin-bottom: 8px;
  color: var(--red);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.card-cta {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  margin-top: 20px;
  padding: 0 20px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
}

.card-cta svg { width: 17px; height: 17px; }
.card-cta--light { color: var(--navy); background: var(--white); }
.card-cta--navy { color: var(--white); background: var(--btn); }

/* ---------- Destaque: agendamento prisional (único bloco escuro) ---------- */

.card--destaque { padding: 26px 0 0; color: var(--white); background: var(--navy); }
.card--destaque .card__body { padding-top: 18px; }

.card__badge {
  display: grid;
  width: 52px;
  height: 52px;
  margin-left: 22px;
  place-items: center;
  border-radius: 16px;
  color: var(--white);
  background: var(--blue);
}

.card__badge svg { width: 26px; height: 26px; }
.card--destaque .card__photo { background: var(--blue); }
.card--destaque .card-label { color: var(--sky); }
.card--destaque h2 { color: var(--white); }
.card--destaque p { color: rgba(255,255,255,.82); }
.card--destaque .card-cta { transition: transform .2s ease; }
.card--destaque .card-cta:hover { transform: translateY(-2px); }

/* linha de apoio no card escuro: pergunta discreta + ação em negrito, sem sublinhado */
.card--destaque .card-aside {
  margin: 16px 0 0;
  color: rgba(255,255,255,.72);
  font-size: 13.5px;
  line-height: 1.5;
}

.card-aside a { color: var(--white); font-weight: 700; }
.card-aside a::after { content: " \2192"; }
.card-aside a:hover { color: var(--sky); }

/* link secundário em card claro */
.card-sublink {
  align-self: flex-start;
  margin-top: 14px;
  color: var(--blue);
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.4;
}

.card-sublink::after { content: " \2192"; }
.card-sublink:hover { color: var(--navy); }

/* ---------- Serviços ---------- */

.card--servicos .card__inner { padding: 24px 16px 14px; }
.card--servicos .card-label,
.card--servicos h2 { padding: 0 6px; }

.service-list {
  display: grid;
  gap: 8px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.service-list a {
  display: flex;
  min-height: 52px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 14px;
  color: var(--navy);
  background: var(--sand);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
  transition: background .2s ease;
}

.service-list a:hover { background: var(--sand-deep); }
.service-list svg { width: 16px; height: 16px; color: var(--blue); }

.more { margin-top: 8px; }
.more .service-list { margin-top: 8px; }

.more summary {
  display: flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--blue);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}

.more summary::-webkit-details-marker { display: none; }
.more summary svg { width: 18px; height: 18px; transition: transform .2s ease; }
.more[open] summary svg { transform: rotate(180deg); }
.more__close { display: none; }
.more[open] .more__open { display: none; }
.more[open] .more__close { display: inline; }

/* ---------- Sede ---------- */

.card__photo {
  aspect-ratio: 5 / 4;
  width: 100%;
  overflow: hidden;
  background: var(--sand-deep);
}

.card__photo img { width: 100%; height: 100%; object-fit: cover; }
.card__body { display: flex; flex-direction: column; padding: 22px 22px 24px; }

/* ---------- Prerrogativas: item compacto ---------- */

.mini-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px 14px 14px;
  border-radius: 20px;
  color: var(--navy);
  background: var(--white);
  transition: transform .2s ease;
}

.mini-card:hover { transform: translateY(-2px); }

.mini-card__icon {
  display: grid;
  flex: 0 0 44px;
  height: 44px;
  place-items: center;
  border-radius: 12px;
  color: var(--white);
  background: var(--red);
}

.mini-card__icon svg { width: 20px; height: 20px; }

.mini-card__copy { display: flex; flex: 1; min-width: 0; flex-direction: column; gap: 2px; }
.mini-card__copy strong { font-size: 15px; font-weight: 700; }
.mini-card__copy small { color: var(--muted); font-size: 13px; line-height: 1.4; }
.mini-card__arrow { color: var(--blue); }
.mini-card__arrow svg { width: 18px; height: 18px; }

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

.footer {
  display: grid;
  gap: 28px;
  padding: 36px var(--gutter) max(26px, env(safe-area-inset-bottom));
  color: var(--white);
  background: var(--ink);
}

.footer__brand { display: grid; gap: 16px; }

.footer__logo { display: inline-flex; justify-self: start; }

.footer__logo img { width: 190px; height: auto; }

.footer address {
  color: rgba(255,255,255,.75);
  font-size: 13px;
  font-style: normal;
  line-height: 1.6;
}

.footer address a { color: var(--white); font-weight: 600; }

.footer__cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.footer__cols nav { display: flex; min-width: 0; flex-direction: column; gap: 10px; }

.footer__cols h2 {
  margin: 0 0 2px;
  color: var(--sky);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.footer__cols a { color: rgba(255,255,255,.9); font-size: 14px; }
.footer__cols a:hover { color: var(--white); text-decoration: underline; }

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 6px 16px;
}

.footer__bottom p { margin: 0; color: rgba(255,255,255,.55); font-size: 11px; line-height: 1.5; }
.footer__bottom strong { color: var(--white); font-weight: 700; }

/* =========================================================
   AJUSTES DE TELA
   ========================================================= */

@media (max-width: 360px) {
  :root { --gutter: 16px; }
  .quick-link__label { font-size: 12px; }
}

@media (min-width: 760px) {
  body { padding: 28px 0; }
  .page-shell { border-radius: 32px; box-shadow: 0 0 60px rgba(12,53,77,.1); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* ---------- Em destaque ---------- */
.card--campanhas { padding: 22px 16px 16px; }
.card--campanhas .card-label { padding: 0 6px; margin-bottom: 0; }
.card--campanhas .service-list { margin-top: 12px; }

/* ---------- WhatsApp flutuante ---------- */
.wa-fab {
  position: fixed;
  z-index: 20;
  right: max(16px, calc((100vw - 520px) / 2 + 16px), env(safe-area-inset-right, 0px));
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  display: grid;
  width: 56px;
  height: 56px;
  place-items: center;
  border-radius: 50%;
  color: var(--white);
  background: #25d366;
  box-shadow: 0 8px 24px rgba(12,53,77,.28);
  transition: transform .2s ease;
}

.wa-fab:hover { transform: scale(1.06); }
.wa-fab svg { width: 30px; height: 30px; stroke-width: 1.7; }

/* espaço para o botão não cobrir o fim do rodapé */
.footer { padding-bottom: calc(88px + env(safe-area-inset-bottom, 0px)); }
