/* =========================================================
   VB ADVOCACIA — Stylesheet institucional v1.0
   Paleta extraída do timbrado oficial do escritório
   Tipografia: Cormorant Garamond (display) + Inter (corpo)
   Conformidade: Provimento 205/2021 do CFOAB
   ========================================================= */

:root {
  /* Paleta — dourado do timbrado + neutros institucionais */
  --gold:        #B8923A;
  --gold-soft:   #C9A961;
  --gold-deep:   #8E6E25;
  --gold-light:  #E8DFC9;
  --cream:       #FAF7F2;
  --cream-deep:  #F2EBDC;
  --ink:         #1F1F1F;
  --slate:       #4A4A4A;
  --line:        #D8CFB7;

  /* Tipografia */
  --serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --sans:  'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;

  /* Layout */
  --max-width: 1180px;
  --section-pad: clamp(4rem, 9vw, 7rem);

  /* Sombras */
  --shadow-sm: 0 1px 3px rgba(31,31,31,0.06);
  --shadow-md: 0 1px 3px rgba(31,31,31,0.06), 0 8px 24px rgba(31,31,31,0.05);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body.menu-open { overflow: hidden; }

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

a { color: inherit; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* =========================================================
   HEADER
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 247, 242, 0.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.05rem 1.5rem;
  max-width: var(--max-width);
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
  color: var(--ink);
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: var(--gold);
  color: var(--cream);
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.18rem;
  letter-spacing: 0.04em;
  border-radius: 2px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.18);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-text strong {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.12rem;
  letter-spacing: 0.06em;
  color: var(--ink);
}

.brand-text em {
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.78rem;
  color: var(--gold);
  letter-spacing: 0.02em;
}

.primary-nav {
  display: flex;
  gap: 1.7rem;
}

.primary-nav a {
  color: var(--slate);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  position: relative;
  padding: 0.5rem 0;
  transition: color 0.2s ease;
}

.primary-nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width 0.28s ease;
}

.primary-nav a:hover {
  color: var(--gold);
}
.primary-nav a:hover::after { width: 100%; }

/* Botão hamburger */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 38px;
  height: 38px;
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 0;
}
.menu-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--ink);
  margin: 0 auto;
  transition: all 0.25s ease;
}
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Mobile nav — escondido por padrão em todas as larguras.
   Só aparece quando (a) estamos abaixo do breakpoint mobile E
   (b) o JS retirou o atributo `hidden` (toggle aberto). */
.mobile-nav {
  display: none;
  flex-direction: column;
  background: var(--cream);
  border-top: 1px solid var(--line);
  padding: 1rem 1.5rem 2rem;
}
.mobile-nav a {
  text-decoration: none;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.25rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line);
}
.mobile-nav a:last-child { border-bottom: none; }

@media (max-width: 860px) {
  .mobile-nav:not([hidden]) {
    display: flex;
  }
}

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(ellipse at 50% 20%, rgba(184, 146, 58, 0.08) 0%, transparent 60%),
    linear-gradient(180deg, var(--cream) 0%, var(--cream-deep) 100%);
  overflow: hidden;
  padding: 5rem 0;
}

.hero-ornament {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    /* Coroa de louros estilizada em SVG inline */
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 400'><g fill='none' stroke='%23B8923A' stroke-width='1.2' opacity='0.4'><circle cx='200' cy='200' r='160'/><path d='M200 60 L200 340'/><path d='M170 110 Q200 100 230 110'/><path d='M150 150 Q200 135 250 150'/><path d='M140 200 L260 200'/><path d='M130 200 L120 240 L150 230'/><path d='M270 200 L280 240 L250 230'/><path d='M150 250 Q200 265 250 250'/><path d='M170 290 Q200 300 230 290'/></g></svg>");
  background-position: center;
  background-repeat: no-repeat;
  background-size: 480px;
  opacity: 0.18;
}

.hero-inner {
  position: relative;
  text-align: center;
  padding: 2rem 1.5rem;
}

.hero-eyebrow {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.32em;
  color: var(--gold);
  margin-bottom: 1.2rem;
}

.hero-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.8rem, 7vw, 5.4rem);
  letter-spacing: 0.18em;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 0.6rem;
  text-shadow: 0 1px 0 rgba(255,255,255,0.4);
}

.hero-tagline {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.2rem, 2.4vw, 1.7rem);
  color: var(--ink);
  margin-bottom: 1.8rem;
  letter-spacing: 0.02em;
}

.hero-rule {
  width: 80px;
  height: 1px;
  background: var(--gold);
  border: none;
  margin: 0 auto 2rem;
}

.hero-sub {
  font-size: 1.05rem;
  color: var(--slate);
  max-width: 38rem;
  margin: 0 auto 2.5rem;
  line-height: 1.75;
}

.hero-actions {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  justify-content: center;
}

/* =========================================================
   CTA
   ========================================================= */
.cta {
  display: inline-block;
  background: var(--gold);
  color: var(--cream);
  font-family: var(--sans);
  font-weight: 500;
  font-size: 0.92rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 1rem 2.4rem;
  border-radius: 2px;
  border: 1px solid var(--gold);
  cursor: pointer;
  transition: all 0.25s ease;
}
.cta:hover {
  background: var(--gold-deep);
  border-color: var(--gold-deep);
}

.cta-ghost {
  background: transparent;
  color: var(--gold-deep);
}
.cta-ghost:hover {
  background: var(--gold);
  color: var(--cream);
}

.cta-block {
  display: block;
  width: 100%;
  text-align: center;
  margin-top: 0.5rem;
}

/* =========================================================
   SECTIONS — comuns
   ========================================================= */
.section {
  padding: var(--section-pad) 0;
}
.section-light { background: var(--cream); }
.section-dark  { background: var(--cream-deep); }

.section-eyebrow {
  text-align: center;
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.32em;
  color: var(--gold);
  margin-bottom: 1rem;
}

.section-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.85rem, 4vw, 2.6rem);
  letter-spacing: 0.02em;
  color: var(--ink);
  text-align: center;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.section-rule {
  width: 60px;
  height: 1px;
  background: var(--gold);
  margin: 0 auto 3rem;
}

.section-intro {
  text-align: center;
  font-size: 1.05rem;
  color: var(--slate);
  max-width: 50rem;
  margin: 0 auto 3.5rem;
  line-height: 1.75;
}

.section-body {
  max-width: 52rem;
  margin: 0 auto;
}
.section-body p { margin-bottom: 1.2rem; color: var(--slate); }

.lead {
  font-size: 1.22rem;
  font-family: var(--serif);
  font-style: italic;
  color: var(--ink) !important;
  line-height: 1.55;
  margin-bottom: 1.6rem !important;
}

/* =========================================================
   ÁREAS DE ATUAÇÃO
   ========================================================= */
.areas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 2rem;
  max-width: 70rem;
  margin: 0 auto;
}

.area-card {
  background: var(--cream);
  border: 1px solid var(--line);
  padding: 2.2rem 2rem;
  border-radius: 3px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}
.area-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 50px;
  height: 2px;
  background: var(--gold);
  transition: width 0.35s ease;
}
.area-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--gold-light);
}
.area-card:hover::before { width: 100%; }

.area-card h3 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.32rem;
  color: var(--ink);
  margin-bottom: 0.85rem;
  line-height: 1.3;
}
.area-card p {
  color: var(--slate);
  font-size: 0.96rem;
  line-height: 1.7;
}

/* =========================================================
   TITULAR
   ========================================================= */
.titular-block {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 3rem;
  max-width: 64rem;
  margin: 0 auto;
  align-items: start;
}

.photo-placeholder {
  background: linear-gradient(135deg, var(--cream-deep), var(--gold-light));
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-deep);
  font-style: italic;
  font-family: var(--serif);
  font-size: 0.92rem;
  text-align: center;
  padding: 1rem;
  border-radius: 3px;
}
.titular-photo .photo-placeholder {
  width: 280px;
  height: 360px;
}

.titular-name {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.7rem;
  color: var(--ink);
  margin-bottom: 0.3rem;
}

.titular-oab {
  font-family: var(--serif);
  font-style: italic;
  color: var(--gold);
  margin-bottom: 1.5rem;
  letter-spacing: 0.04em;
  font-size: 1rem;
}

.titular-bio {
  color: var(--slate);
  line-height: 1.8;
  font-size: 1rem;
  margin-bottom: 1.8rem;
}

.titular-creds {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}
.titular-creds .cred {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--gold-deep);
  background: var(--gold-light);
  padding: 0.4rem 0.85rem;
  border-radius: 2px;
}

/* =========================================================
   EQUIPE
   ========================================================= */
.equipe-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
  max-width: 60rem;
  margin: 0 auto;
}

.member-card {
  background: var(--cream);
  border: 1px solid var(--line);
  padding: 2rem 1.6rem;
  text-align: center;
  border-radius: 3px;
  transition: all 0.3s ease;
}
.member-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.member-photo {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  margin: 0 auto 1.3rem;
  font-size: 0.78rem;
}

.member-card h4 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.2rem;
  color: var(--ink);
  margin-bottom: 0.2rem;
}

.role {
  font-family: var(--serif);
  font-style: italic;
  color: var(--gold);
  font-size: 0.92rem;
  margin-bottom: 0.85rem;
  letter-spacing: 0.02em;
}

.member-bio {
  color: var(--slate);
  font-size: 0.92rem;
  line-height: 1.6;
}

/* =========================================================
   CONTATO
   ========================================================= */
.contato-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  max-width: 64rem;
  margin: 0 auto;
}

.contato-bloco {
  margin-bottom: 1.6rem;
}
.contato-bloco:last-child { margin-bottom: 0; }

.contato-info h4 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--gold);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.contato-info p {
  color: var(--slate);
  margin-bottom: 0;
  line-height: 1.7;
}

.contato-info a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--gold);
  padding-bottom: 1px;
  transition: color 0.2s;
}
.contato-info a:hover { color: var(--gold); }

.form-intro {
  color: var(--slate);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.contato-form form {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.contato-form label {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.contato-form label span {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--slate);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.contato-form input,
.contato-form textarea {
  font-family: var(--sans);
  font-size: 1rem;
  color: var(--ink);
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 0.85rem 1rem;
  transition: border-color 0.2s, background 0.2s;
}
.contato-form input:focus,
.contato-form textarea:focus {
  outline: none;
  border-color: var(--gold);
  background: #fff;
}

.contato-form textarea {
  resize: vertical;
  min-height: 110px;
  line-height: 1.55;
}

.form-note {
  margin-top: 1.1rem;
  font-size: 0.82rem;
  color: var(--slate);
  line-height: 1.6;
}

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer {
  background: #181818;
  color: var(--gold-light);
  padding: 4.5rem 0 0;
  margin-top: 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 0.8fr;
  gap: 3rem;
  padding-bottom: 3rem;
}

.footer-brand strong {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.4rem;
  color: var(--gold);
  letter-spacing: 0.06em;
  display: block;
  margin-bottom: 0.4rem;
}
.footer-brand em {
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.92rem;
  color: var(--gold-soft);
  letter-spacing: 0.02em;
}

.footer-block h5 {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--gold);
  margin-bottom: 0.85rem;
}
.footer-block p {
  font-size: 0.92rem;
  line-height: 1.7;
  color: var(--gold-light);
}
.footer-block a {
  display: block;
  color: var(--gold-light);
  text-decoration: none;
  margin-bottom: 0.55rem;
  font-size: 0.92rem;
  transition: color 0.2s;
}
.footer-block a:hover { color: var(--gold); }

.footer-bar {
  border-top: 1px solid rgba(232, 223, 201, 0.12);
  padding: 1.5rem 0;
}
.footer-bar small {
  display: block;
  color: var(--gold-soft);
  font-size: 0.78rem;
  line-height: 1.6;
  text-align: center;
}

/* =========================================================
   ANIMAÇÕES — reveal on scroll
   ========================================================= */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* =========================================================
   v2.0 — Reposição institucional (Maio/2026)
   Novos blocos: Hero manifesto, Pensamento Jurídico,
   Titular sem dual-CTA, Contato sem formulário
   ========================================================= */

/* HERO — manifesto premium em substituição ao subtexto comercial */
.hero-manifesto {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.1rem, 1.85vw, 1.4rem);
  color: var(--ink);
  max-width: 44rem;
  margin: 0 auto;
  line-height: 1.75;
  letter-spacing: 0.005em;
}

/* PENSAMENTO JURÍDICO — três blocos discursivos */
.thought-block {
  max-width: 52rem;
  margin: 0 auto;
  padding: 2.6rem 0;
  border-bottom: 1px solid var(--gold-light);
}
.thought-block:first-of-type { padding-top: 0; }
.thought-block:last-child { border-bottom: none; padding-bottom: 0; }

.thought-title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.25rem, 2.2vw, 1.5rem);
  color: var(--gold-deep);
  margin-bottom: 1.1rem;
  letter-spacing: 0.005em;
  line-height: 1.3;
}

.thought-block p {
  color: var(--slate);
  font-size: 1.02rem;
  line-height: 1.85;
}

/* TITULAR — frase de fechamento institucional */
.titular-info p {
  color: var(--slate);
  line-height: 1.85;
  font-size: 1rem;
  margin-bottom: 1.3rem;
}
.titular-close {
  font-family: var(--serif);
  font-style: italic;
  color: var(--gold-deep) !important;
  font-size: 1.05rem !important;
  margin-top: 1.7rem !important;
  margin-bottom: 1.6rem !important;
  letter-spacing: 0.01em;
}

/* CONTATO INSTITUCIONAL — sem formulário, apenas canais */
.contato-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2.5rem 3rem;
  max-width: 60rem;
  margin: 0 auto;
}
.contato-info-grid .contato-bloco h4 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--gold);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 0.6rem;
  margin-top: 0;
}
.contato-info-grid .contato-bloco p {
  color: var(--slate);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 0;
}
.contato-info-grid .contato-bloco a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--gold);
  padding-bottom: 1px;
  transition: color 0.2s;
}
.contato-info-grid .contato-bloco a:hover { color: var(--gold); }

@media (max-width: 640px) {
  .thought-block { padding: 2rem 0; }
}

/* =========================================================
   FOTOS REAIS — substituem os placeholders quando img presente
   ========================================================= */

/* Retrato vertical do titular */
.titular-photo img {
  width: 280px;
  height: 360px;
  object-fit: cover;
  object-position: center top;
  border-radius: 3px;
  border: 1px solid var(--line);
  display: block;
  box-shadow: var(--shadow-sm);
}

/* Avatares circulares dos cards de Estrutura */
.member-photo {
  overflow: hidden;
  background: var(--cream-deep);
}
.member-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
  display: block;
}

/* Em telas pequenas, retrato do titular reduz proporcional */
@media (max-width: 640px) {
  .titular-photo img {
    width: 220px;
    height: 280px;
  }
}

/* =========================================================
   RESPONSIVO
   ========================================================= */
@media (max-width: 940px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 860px) {
  .primary-nav { display: none; }
  .menu-toggle { display: flex; }

  .titular-block {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .titular-photo {
    margin: 0 auto;
  }
  .titular-creds { justify-content: center; }

  .contato-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

@media (max-width: 640px) {
  body { font-size: 16px; }

  .header-inner { padding: 0.85rem 1.2rem; }
  .brand-text strong { font-size: 1rem; }
  .brand-text em { font-size: 0.7rem; }
  .brand-mark { width: 38px; height: 38px; font-size: 1rem; }

  .hero { min-height: 78vh; padding: 3rem 0; }
  .hero-eyebrow { letter-spacing: 0.22em; }
  .hero-actions .cta { padding: 0.85rem 1.6rem; font-size: 0.85rem; }

  .section { padding: 4rem 0; }
  .container { padding: 0 1.2rem; }

  .areas-grid { gap: 1.2rem; }
  .area-card { padding: 1.6rem 1.4rem; }

  .titular-photo .photo-placeholder { width: 220px; height: 280px; }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }
}
