/* Cipolla Advocacia — folha de estilo única, sem dependências */

:root {
  --navy: #183C70;
  --navy-deep: #0F2546;
  --gold: #E0B565;      /* dourado sobre fundo escuro */
  --gold-dark: #8A6420; /* dourado sobre fundo claro (contraste AA) */
  --ink: #2A3240;
  --ink-soft: #3D4656;
  --muted: #5A6474;
  --sand: #F6F4EF;
  --sand-2: #E9E6DF;
  --line: #C9CDD4;
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --radius: 6px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--navy); }
a:hover { color: var(--navy-deep); }
h1, h2, h3, p, ul, figure, blockquote { margin: 0; }
section[id] { scroll-margin-top: 16px; }

.container { max-width: 1200px; margin: 0 auto; padding-inline: 32px; }

.skip-link {
  position: absolute; left: -9999px; top: 8px;
  background: #fff; color: var(--navy); padding: 8px 16px; border-radius: 4px; z-index: 10;
}
.skip-link:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

/* Tipografia utilitária */
.eyebrow {
  font-size: 14px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  color: var(--gold-dark);
}
.on-dark .eyebrow, .eyebrow.on-dark { color: var(--gold); }
.title {
  font-family: var(--serif); font-weight: 600; font-size: clamp(36px, 4.5vw, 48px);
  line-height: 1.1; color: var(--navy);
}

/* Botões */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 48px; padding: 0 28px; border-radius: 4px;
  font-weight: 600; text-decoration: none; transition: background-color .15s, color .15s, border-color .15s;
}
.btn svg { width: 20px; height: 20px; flex: 0 0 auto; }
.btn-gold { background: var(--gold); color: var(--navy-deep); }
.btn-gold:hover { background: #EBC782; color: var(--navy-deep); }
.btn-outline { border: 1px solid rgba(255,255,255,.5); color: #fff; font-weight: 500; }
.btn-outline:hover { border-color: #fff; color: #fff; background: rgba(255,255,255,.06); }

.icon { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Cabeçalho */
.site-header { background: var(--navy); color: #fff; }
.site-header .container {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 16px 32px; padding-block: 12px;
}
.brand img { width: 136px; height: 77px; }
.main-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 28px; font-size: 15px; font-weight: 500; }
.main-nav a { color: #fff; text-decoration: none; padding: 10px 0; }
.main-nav a:hover { color: var(--gold); }
.main-nav .btn { padding: 0 20px; min-height: 44px; font-size: 15px; color: var(--navy-deep); }
.main-nav .btn svg { width: 16px; height: 16px; }

/* Hero */
.hero {
  color: #fff;
  border-top: 1px solid rgba(255,255,255,.12);
  background:
    linear-gradient(90deg, rgba(12,30,58,.97) 0%, rgba(12,30,58,.9) 38%, rgba(12,30,58,.35) 68%, rgba(12,30,58,.05) 100%),
    url("../img/hero-justica.webp") right center / cover no-repeat var(--navy-deep);
}
.hero .container { padding-block: 120px 128px; min-height: 440px; display: flex; align-items: center; }
.hero-content { max-width: 600px; display: flex; flex-direction: column; gap: 24px; }
.hero h1 {
  font-family: var(--serif); font-weight: 600; font-size: clamp(48px, 7vw, 72px);
  line-height: 1.02; letter-spacing: -.01em;
}
.hero .lead { max-width: 560px; font-size: 20px; line-height: 1.55; color: #D7DEEA; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.quote { margin-top: 32px; padding-top: 24px; border-top: 1px solid rgba(224,181,101,.45); max-width: 480px; }
.quote blockquote { font-family: var(--serif); font-size: 22px; line-height: 1.35; font-style: italic; font-weight: 500; }
.quote figcaption { margin-top: 10px; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); }

/* Nossa história */
.section { padding-block: 112px; }
.split { display: flex; flex-wrap: wrap; gap: 64px; }
.split > * { min-width: 0; display: flex; flex-direction: column; }
.historia-text { flex: 1 1 420px; gap: 20px; }
.historia-text img { margin-top: 12px; width: 100%; height: 300px; object-fit: cover; border-radius: var(--radius); }
.historia-side { flex: 1 1 460px; gap: 16px; }
.historia-side > p { font-weight: 600; color: var(--navy); margin-bottom: 4px; }

.pillars { display: flex; flex-wrap: wrap; gap: 16px; list-style: none; padding: 0; }
.pillar {
  flex: 1 1 200px; min-width: 0; padding: 24px; background: var(--sand); border-radius: var(--radius);
  display: flex; flex-direction: column; gap: 8px;
}
.pillar .num { font-family: var(--serif); font-size: 32px; font-weight: 700; line-height: 1; color: var(--gold-dark); }
.pillar strong { font-weight: 600; color: var(--navy); }
.pillar span:last-child { font-size: 15px; color: var(--muted); }

.emblem { background: url("../img/emblema-c.png") center / contain no-repeat; position: absolute; pointer-events: none; }

.region-card {
  flex: 1 1 auto; position: relative; overflow: hidden; min-height: 220px;
  background: var(--navy); color: #fff; border-radius: var(--radius); padding: 32px;
  display: flex; flex-direction: column; justify-content: space-between; gap: 20px;
}
.region-card .emblem { right: -70px; top: -50px; width: 260px; height: 260px; opacity: .2; }
.region-card > div { position: relative; display: flex; flex-direction: column; gap: 10px; max-width: 380px; }
.region-card .eyebrow { font-size: 13px; }
.region-card .big { font-family: var(--serif); font-size: 28px; line-height: 1.2; font-weight: 600; }
.region-card .btn { position: relative; align-self: flex-start; padding: 0 24px; }

/* Áreas de atuação */
.areas { background: var(--sand); position: relative; overflow: hidden; }
.areas > .emblem { top: -60px; right: -80px; width: 460px; height: 460px; opacity: .16; }
.areas .container { position: relative; display: flex; flex-direction: column; gap: 48px; }
.areas header { display: flex; flex-direction: column; gap: 16px; max-width: 640px; }
.areas-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.area-card {
  min-width: 0; background: #fff; border-radius: var(--radius); padding: 28px 24px;
  border-top: 3px solid var(--navy); display: flex; flex-direction: column; gap: 16px;
}
.area-card h3 { font-family: var(--serif); font-size: 26px; font-weight: 600; line-height: 1.15; color: var(--navy); }
.area-card ul { padding-left: 18px; font-size: 15px; line-height: 1.75; color: var(--ink-soft); display: flex; flex-direction: column; gap: 4px; }

/* Faixa atendimento */
.band {
  color: #fff;
  background:
    linear-gradient(rgba(15,37,70,.9), rgba(15,37,70,.9)),
    url("../img/atendimento.webp") center 30% / cover no-repeat var(--navy-deep);
}
.band .container {
  padding-block: 120px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 40px;
}
.band .text { flex: 999 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.band .big { font-family: var(--serif); font-size: clamp(30px, 3.6vw, 40px); line-height: 1.2; font-weight: 500; }
.band .btn { flex: 0 0 auto; min-height: 52px; padding: 0 32px; }

/* Contato */
.contato-info { flex: 1 1 400px; gap: 24px; }
.contato-info > p:not(.eyebrow) { color: var(--muted); }
.contact-list { list-style: none; padding: 0; margin-top: 8px; display: flex; flex-direction: column; gap: 20px; }
.contact-list li { display: flex; gap: 16px; align-items: flex-start; }
.contact-list .ico {
  flex: 0 0 44px; height: 44px; border-radius: 50%; background: var(--sand); color: var(--navy);
  display: flex; align-items: center; justify-content: center;
}
.contact-list .ico svg { width: 20px; height: 20px; }
.contact-list div { display: flex; flex-direction: column; }
.contact-list .label { font-size: 14px; color: var(--muted); }
.contact-list a, .contact-list .value { font-weight: 600; color: var(--navy); text-decoration: none; overflow-wrap: anywhere; }
.contact-list a:hover { text-decoration: underline; }

.talk-card {
  margin-top: 8px; position: relative; overflow: hidden; background: var(--navy); color: #fff;
  border-radius: var(--radius); padding: 32px 28px; display: flex; flex-direction: column; gap: 18px;
}
.talk-card .emblem { right: -70px; bottom: -70px; width: 240px; height: 240px; opacity: .22; }
.talk-card > *:not(.emblem) { position: relative; }
.talk-card .big { font-family: var(--serif); font-size: 28px; line-height: 1.2; font-weight: 600; }
.talk-card .stack { display: flex; flex-direction: column; gap: 10px; }
.talk-card .btn { min-height: 52px; padding: 0 16px; font-size: 15px; gap: 12px; overflow-wrap: anywhere; }

.map {
  flex: 1 1 460px; min-width: 0; min-height: 480px; border-radius: var(--radius); overflow: hidden; background: var(--sand-2);
}
.map iframe { display: block; width: 100%; height: 100%; min-height: 480px; border: 0; }

/* Rodapé */
.site-footer { background: var(--navy); color: #D7DEEA; font-size: 15px; }
.site-footer .container { padding-block: 56px 32px; display: flex; flex-direction: column; gap: 32px; }
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 32px; }
.footer-top img { width: 136px; height: 77px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 8px 28px; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: var(--gold); }
.footer-nav a { padding: 8px 0; }
.footer-contact { display: flex; flex-direction: column; gap: 4px; font-style: normal; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.15); padding-top: 24px;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 14px;
}
.footer-bottom a { color: var(--gold); }

/* Responsivo */
@media (max-width: 1080px) {
  .areas-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .container { padding-inline: 20px; }
  .section { padding-block: 72px; }
  .hero {
    background:
      linear-gradient(rgba(12,30,58,.86), rgba(12,30,58,.86)),
      url("../img/hero-justica.webp") 70% center / cover no-repeat var(--navy-deep);
  }
  .hero .container { padding-block: 72px 80px; }
  .band .container { padding-block: 80px; }
  .split { gap: 48px; }
  .main-nav { gap: 4px 20px; }
}
@media (max-width: 600px) {
  .areas-grid { grid-template-columns: 1fr; }
  .talk-card, .region-card { padding: 28px 20px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
