/* ========================================
   Olmo Ferreira — Sociedade Individual de Advocacia
   CSS institucional | Kit de marca aplicado
   ======================================== */

:root {
  --navy-900: #0E2A44;
  --navy-800: #12304A;
  --navy-700: #193859;
  --navy-600: #214E79;
  --navy-500: #3C6590;
  --navy-400: #5785A8;
  --navy-300: #8BAAC4;
  --navy-200: #C5D6E2;
  --navy-100: #E8EFF5;
  --ink: #14171A;
  --muted: #5A6673;
  --soft: #6B7785;
  --line: #DCE4EC;
  --bg: #FFFFFF;
  --bg-soft: #F7F9FB;
  --gold: #B89253;
  --radius: 4px;
  --radius-lg: 8px;
  --shadow-sm: 0 1px 2px rgba(14,42,68,.05);
  --shadow-md: 0 4px 16px rgba(14,42,68,.08);
  --shadow-lg: 0 12px 40px rgba(14,42,68,.14);
  --content-max: 1180px;
  --transition: .25s ease;
}

*,*::before,*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: "Source Sans 3", "Source Sans Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a { color: var(--navy-700); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--navy-500); }

::selection { background: var(--navy-700); color: #fff; }

/* Tipografia */
h1, h2, h3, h4 {
  font-family: "Philosopher", Georgia, "Times New Roman", serif;
  color: var(--navy-700);
  line-height: 1.2;
  margin: 0 0 .6em;
  font-weight: 700;
  letter-spacing: .5px;
}
h1 { font-size: clamp(2rem, 4vw + 1rem, 3.6rem); }
h2 { font-size: clamp(1.5rem, 2vw + 1rem, 2.4rem); }
h3 { font-size: clamp(1.2rem, 1vw + 1rem, 1.6rem); }
h4 { font-size: 1.1rem; }

p { margin: 0 0 1.1em; }

/* Containers e seções */
.container {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 24px;
}
.section { padding: clamp(60px, 9vw, 120px) 0; }
.section-sm { padding: clamp(40px, 6vw, 80px) 0; }
.section-dark { background: var(--navy-700); color: #fff; }
.section-dark h1, .section-dark h2, .section-dark h3 { color: #fff; }
.section-dark a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.section-soft { background: var(--bg-soft); }

.eyebrow {
  display: inline-block;
  font-family: "Source Sans 3", sans-serif;
  font-weight: 600;
  font-size: .82rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--navy-500);
  margin-bottom: 16px;
}
.section-dark .eyebrow { color: var(--navy-300); }

.lead { font-size: 1.18rem; color: var(--muted); max-width: 52ch; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255,255,255,.96);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.brand img { height: 40px; width: auto; }
.brand-text {
  display: none;
  font-family: "Philosopher", serif;
  font-size: .9rem;
  color: var(--navy-700);
  letter-spacing: 1px;
}
@media (min-width: 960px) {
  .brand-text { display: inline; }
}

nav.primary {
  display: none;
  align-items: center;
  gap: 28px;
}
@media (min-width: 960px) {
  nav.primary { display: flex; }
}
nav.primary a {
  font-size: .95rem;
  color: var(--ink);
  font-weight: 500;
  position: relative;
}
nav.primary a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 2px;
  background: var(--navy-500);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}
nav.primary a:hover::after, nav.primary a[aria-current="page"]::after { transform: scaleX(1); }

.header-cta {
  display: none;
  align-items: center;
  gap: 8px;
}
@media (min-width: 1040px) {
  .header-cta { display: inline-flex; }
}

/* Hamburger */
.menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border: 1px solid var(--line);
  background: transparent;
  border-radius: var(--radius);
  cursor: pointer;
}
@media (min-width: 960px) {
  .menu-toggle { display: none; }
}
.menu-toggle span {
  display: block; width: 20px; height: 2px; background: var(--navy-700); position: relative;
}
.menu-toggle span::before, .menu-toggle span::after {
  content: ""; position: absolute; left: 0; width: 20px; height: 2px; background: var(--navy-700);
}
.menu-toggle span::before { top: -6px; }
.menu-toggle span::after { top: 6px; }

.mobile-menu {
  display: none;
  background: #fff;
  border-top: 1px solid var(--line);
  padding: 12px 0 24px;
}
.mobile-menu.open { display: block; }
.mobile-menu a {
  display: block;
  padding: 12px 24px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-weight: 500;
}
@media (min-width: 960px) {
  .mobile-menu { display: none !important; }
}

/* Botões */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: .95rem;
  letter-spacing: .4px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none !important;
  transition: all var(--transition);
  white-space: nowrap;
}
.btn-primary {
  background: var(--navy-700);
  color: #fff;
  border-color: var(--navy-700);
}
.btn-primary:hover {
  background: var(--navy-800);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.btn-outline {
  background: transparent;
  color: var(--navy-700);
  border-color: var(--navy-700);
}
.btn-outline:hover { background: var(--navy-700); color: #fff; }
.section-dark .btn-outline { color: #fff; border-color: #fff; }
.section-dark .btn-outline:hover { background: #fff; color: var(--navy-700); }

.btn-ghost {
  background: transparent;
  color: var(--navy-700);
  padding: 10px 0;
  font-weight: 600;
}
.btn-ghost::after {
  content: "→";
  margin-left: 8px;
  transition: margin-left var(--transition);
}
.btn-ghost:hover::after { margin-left: 14px; }

/* Hero */
.hero {
  position: relative;
  background: linear-gradient(135deg, var(--navy-800) 0%, var(--navy-700) 45%, var(--navy-600) 100%);
  color: #fff;
  overflow: hidden;
}
.hero::before,
.hero::after {
  content: "";
  position: absolute;
  background: rgba(255,255,255,.04);
  transform: rotate(-20deg);
  pointer-events: none;
}
.hero::before { width: 450px; height: 160px; top: -40px; right: -80px; }
.hero::after  { width: 320px; height: 110px; bottom: -30px; left: 20%; }
.hero-inner {
  position: relative;
  z-index: 2;
  padding: clamp(80px, 14vw, 180px) 0 clamp(80px, 12vw, 140px);
  max-width: 760px;
}
.hero h1 { color: #fff; margin-bottom: 24px; }
.hero .eyebrow { color: var(--navy-300); }
.hero .lead { color: rgba(255,255,255,.86); font-size: 1.25rem; max-width: 60ch; }
.hero-actions { margin-top: 36px; display: flex; gap: 14px; flex-wrap: wrap; }

/* Page hero (menor, para páginas internas) */
.page-hero {
  background: linear-gradient(135deg, var(--navy-800), var(--navy-700));
  color: #fff;
  padding: clamp(64px, 10vw, 110px) 0 clamp(40px, 6vw, 60px);
  position: relative;
  overflow: hidden;
}
.page-hero::after {
  content: "";
  position: absolute;
  bottom: -50px; right: -50px;
  width: 300px; height: 100px;
  background: rgba(255,255,255,.04);
  transform: rotate(-20deg);
  pointer-events: none;
}
.page-hero h1 { color: #fff; margin-bottom: 12px; }
.page-hero .breadcrumb {
  font-size: .88rem;
  color: var(--navy-300);
  margin-bottom: 20px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}
.page-hero .breadcrumb a { color: var(--navy-300); }
.page-hero .breadcrumb a:hover { color: #fff; }
.page-hero p { color: rgba(255,255,255,.85); max-width: 60ch; font-size: 1.1rem; margin-bottom: 0; }

/* Grid de pilares/features */
.grid-3 { display: grid; gap: 28px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }

.grid-4 { display: grid; gap: 24px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .grid-4 { grid-template-columns: repeat(4, 1fr); } }

.grid-2 { display: grid; gap: 40px; grid-template-columns: 1fr; align-items: center; }
@media (min-width: 860px) { .grid-2 { grid-template-columns: 1.05fr 1fr; } }

/* Cards */
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--navy-200); }
.card h3 { margin-bottom: 12px; }
.card p { color: var(--muted); margin-bottom: 18px; }
.card .icon {
  width: 44px; height: 44px;
  background: var(--navy-100);
  color: var(--navy-700);
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--radius);
  margin-bottom: 18px;
  font-family: "Philosopher", serif;
  font-size: 1.2rem;
  font-weight: 700;
}

.card.dark {
  background: var(--navy-800);
  border-color: var(--navy-600);
  color: #fff;
}
.card.dark h3 { color: #fff; }
.card.dark p { color: rgba(255,255,255,.75); }
.card.dark .icon { background: rgba(255,255,255,.08); color: #fff; }

/* Equipe cards */
.team-grid {
  display: grid;
  gap: 32px;
  grid-template-columns: 1fr;
}
@media (min-width: 720px) { .team-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .team-grid.three { grid-template-columns: repeat(3, 1fr); } }

.team-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.team-card .photo {
  aspect-ratio: 4/5;
  background: linear-gradient(135deg, var(--navy-700), var(--navy-500));
  position: relative;
  overflow: hidden;
}
.team-card .photo .placeholder {
  position: absolute;
  inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: "Philosopher", serif;
  font-size: 5rem;
  color: rgba(255,255,255,.4);
  letter-spacing: -2px;
}
.team-card .photo img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center top;
}
.team-card .photo.has-image { background: #E8EFF5; }
.team-card .photo::after {
  content: "";
  position: absolute; bottom: 0; left: 0; right: 0; height: 6px;
  background: linear-gradient(90deg, var(--navy-400) 0%, var(--navy-700) 30%, var(--navy-600) 60%, var(--navy-400) 100%);
}
.team-card .body { padding: 28px; flex: 1; display: flex; flex-direction: column; }
.team-card .role {
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: 2.2px;
  text-transform: uppercase;
  color: var(--navy-500);
  margin-bottom: 10px;
}
.team-card h3 { margin-bottom: 6px; }
.team-card .oab {
  font-size: .92rem;
  color: var(--muted);
  margin-bottom: 18px;
  font-weight: 500;
}
.team-card .bio { color: var(--muted); font-size: .95rem; flex: 1; }
.team-card .contact-line {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: .9rem;
  color: var(--muted);
}
.team-card .contact-line a { color: var(--navy-700); font-weight: 500; }

/* Áreas cards */
.area-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 34px 30px;
  text-decoration: none;
  color: inherit !important;
  display: block;
  transition: all var(--transition);
  position: relative;
}
.area-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--navy-500);
}
.area-card .tag {
  display: inline-block;
  font-size: .72rem;
  letter-spacing: 2.2px;
  text-transform: uppercase;
  color: var(--navy-500);
  font-weight: 700;
  margin-bottom: 14px;
}
.area-card h3 { color: var(--navy-700); margin-bottom: 14px; }
.area-card p { color: var(--muted); font-size: .98rem; margin-bottom: 18px; }
.area-card .more {
  color: var(--navy-700);
  font-weight: 600;
  font-size: .95rem;
}
.area-card .more::after { content: " →"; transition: margin-left var(--transition); }
.area-card:hover .more::after { margin-left: 6px; }

/* FAQ */
.faq {
  border-top: 1px solid var(--line);
  max-width: 820px;
  margin: 0 auto;
}
.faq details {
  border-bottom: 1px solid var(--line);
  padding: 22px 0;
}
.faq summary {
  font-family: "Philosopher", serif;
  font-size: 1.15rem;
  color: var(--navy-700);
  cursor: pointer;
  list-style: none;
  display: flex; align-items: flex-start; justify-content: space-between; gap: 20px;
  font-weight: 700;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-size: 1.8rem;
  color: var(--navy-500);
  line-height: 1;
  transition: transform var(--transition);
}
.faq details[open] summary::after { content: "–"; }
.faq details > *:not(summary) {
  margin-top: 14px;
  color: var(--muted);
  font-size: 1rem;
}

/* Lista institucional */
.list-inst {
  list-style: none;
  padding: 0; margin: 0;
  display: grid;
  gap: 12px;
}
.list-inst li {
  padding-left: 28px;
  position: relative;
  color: var(--muted);
}
.list-inst li::before {
  content: "";
  position: absolute;
  left: 0; top: 12px;
  width: 14px; height: 2px;
  background: var(--navy-500);
}

/* Métricas/credenciais */
.stats {
  display: grid;
  gap: 28px;
  grid-template-columns: 1fr;
}
@media (min-width: 600px) { .stats { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .stats { grid-template-columns: repeat(4, 1fr); } }

.stat .n {
  font-family: "Philosopher", serif;
  font-size: clamp(2.4rem, 3vw + 1rem, 3.2rem);
  color: var(--navy-700);
  line-height: 1;
  font-weight: 700;
}
.section-dark .stat .n { color: #fff; }
.stat .l { color: var(--muted); font-size: .95rem; margin-top: 8px; }
.section-dark .stat .l { color: rgba(255,255,255,.7); }

/* Formulário */
.form-contact {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-sm);
}
.form-contact label {
  display: block;
  font-size: .88rem;
  color: var(--navy-700);
  font-weight: 600;
  margin-top: 18px;
  margin-bottom: 6px;
}
.form-contact label:first-child { margin-top: 0; }
.form-contact input,
.form-contact textarea,
.form-contact select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 14px;
  font: inherit;
  color: var(--ink);
  background: #fff;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.form-contact input:focus,
.form-contact textarea:focus,
.form-contact select:focus {
  border-color: var(--navy-500);
  outline: 2px solid rgba(87,133,168,.18);
  outline-offset: 0;
}
.form-contact textarea { min-height: 130px; resize: vertical; }
.form-contact .consent {
  display: flex; gap: 10px; align-items: flex-start;
  margin-top: 20px;
  font-size: .88rem; color: var(--muted);
}
.form-contact .consent input { width: auto; margin-top: 3px; }
.form-contact .honeypot { position: absolute; left: -9999px; opacity: 0; }
.form-contact button { margin-top: 24px; width: 100%; }

/* Contact info block */
.contact-grid { display: grid; gap: 40px; grid-template-columns: 1fr; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 1.1fr 1fr; } }
.contact-info .info-item { padding: 20px 0; border-bottom: 1px solid var(--line); }
.contact-info .info-item:last-child { border-bottom: 0; }
.contact-info .info-item .label {
  font-size: .78rem;
  color: var(--navy-500);
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.contact-info .info-item .value { font-size: 1.08rem; color: var(--ink); }

/* Rodapé */
.site-footer {
  background: var(--navy-800);
  color: rgba(255,255,255,.72);
  padding: 72px 0 36px;
  font-size: .95rem;
}
.footer-grid {
  display: grid; gap: 44px;
  grid-template-columns: 1fr;
  margin-bottom: 48px;
}
@media (min-width: 720px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; } }
.footer-grid h4 {
  color: #fff;
  font-family: "Source Sans 3", sans-serif;
  font-size: .82rem;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  margin: 0 0 20px;
  font-weight: 700;
}
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer-grid ul a { color: rgba(255,255,255,.72); }
.footer-grid ul a:hover { color: #fff; }
.footer-grid img.logo { height: 34px; margin-bottom: 18px; }
.footer-about { font-size: .92rem; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 28px;
  display: flex; flex-wrap: wrap;
  gap: 18px; justify-content: space-between; align-items: center;
  font-size: .82rem;
  color: rgba(255,255,255,.55);
}
.footer-bottom a { color: rgba(255,255,255,.72); }
.footer-bottom a:hover { color: #fff; }

/* Banner cookies */
#cookie-banner {
  position: fixed; bottom: 0; left: 0; right: 0;
  background: var(--navy-800);
  color: #fff;
  padding: 18px 24px;
  z-index: 100;
  display: none;
  box-shadow: 0 -6px 30px rgba(0,0,0,.25);
}
#cookie-banner.show { display: block; }
#cookie-banner .inner {
  max-width: var(--content-max);
  margin: 0 auto;
  display: flex; gap: 20px;
  align-items: center; justify-content: space-between;
  flex-wrap: wrap;
}
#cookie-banner p { margin: 0; font-size: .9rem; flex: 1 1 340px; }
#cookie-banner a { color: #fff; text-decoration: underline; }
#cookie-banner .actions { display: flex; gap: 10px; flex-wrap: wrap; }
#cookie-banner button {
  padding: 9px 16px;
  font-size: .85rem;
  border-radius: var(--radius);
  cursor: pointer;
  font-weight: 600;
  border: 1px solid #fff;
  background: transparent;
  color: #fff;
  font-family: inherit;
}
#cookie-banner button.primary { background: #fff; color: var(--navy-800); }

/* Floating WhatsApp */
.whats-float {
  position: fixed;
  bottom: 22px;
  right: 22px;
  width: 56px; height: 56px;
  background: #25D366;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 24px rgba(37,211,102,.35);
  z-index: 55;
  transition: transform var(--transition), box-shadow var(--transition);
}
.whats-float:hover { transform: scale(1.07); box-shadow: 0 12px 32px rgba(37,211,102,.5); }
.whats-float svg { width: 30px; height: 30px; fill: #fff; }

/* Utilitários */
.text-center { text-align: center; }
.mb-0 { margin-bottom: 0 !important; }
.mt-sm { margin-top: 16px; }
.mt-md { margin-top: 28px; }
.mt-lg { margin-top: 48px; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); border: 0;
}

/* Print */
@media print {
  .site-header, .site-footer, #cookie-banner, .whats-float { display: none; }
  body { font-size: 12pt; }
}
