/* =========================================================
   SAULO ALENCAR — ESCRITÓRIO DE ADVOCACIA
   Identidade visual derivada do folder oficial
   Paleta: bege/creme, dourado envelhecido, vinho discreto
   ========================================================= */

:root {
  --bg:           #F2EBD8;   /* bege/creme do folder */
  --bg-soft:      #EFE7D2;   /* bege levemente mais quente */
  --bg-deep:      #E6DCC0;   /* bege escurecido para painéis */
  --ink:          #2A2620;   /* texto principal, marrom-quase-preto */
  --ink-soft:     #5A4F40;   /* texto secundário */
  --gold:         #B8956A;   /* dourado envelhecido */
  --gold-deep:    #8E6F4A;   /* dourado mais escuro */
  --wine:         #6B2C29;   /* vinho discreto */
  --wine-soft:    #8C3A35;
  --line:         rgba(184, 149, 106, 0.45);
  --line-soft:    rgba(184, 149, 106, 0.22);
  --shadow:       0 1px 0 rgba(184, 149, 106, 0.25), 0 30px 60px -30px rgba(42, 38, 32, 0.18);

  --serif: 'Cormorant Garamond', 'Times New Roman', Georgia, serif;
  --sans:  'Inter', -apple-system, 'Segoe UI', Roboto, system-ui, sans-serif;

  --container: 1180px;
  --gutter: clamp(20px, 5vw, 56px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

em { font-style: italic; color: var(--wine); font-family: var(--serif); font-weight: 500; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; letter-spacing: 0.01em; margin: 0; }

/* =========================================================
   NAV
   ========================================================= */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  background: rgba(242, 235, 216, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background .3s, padding .3s;
}
.nav.is-scrolled {
  border-bottom-color: var(--line);
  background: rgba(242, 235, 216, 0.95);
}
.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 14px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.nav-brand { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name {
  font-family: var(--serif);
  font-size: 22px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
}
.brand-sub {
  font-family: var(--sans);
  font-size: 9.5px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-top: 4px;
}
.nav-menu { display: flex; align-items: center; gap: 32px; }
.nav-menu a {
  font-size: 12.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
  position: relative;
  padding: 6px 0;
  transition: color .25s;
}
.nav-menu a:hover { color: var(--wine); }
.nav-menu a:not(.nav-cta)::after {
  content: '';
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 1px; background: var(--gold);
  transform: scaleX(0); transform-origin: left;
  transition: transform .3s;
}
.nav-menu a:not(.nav-cta):hover::after { transform: scaleX(1); }
.nav-cta {
  background: var(--wine);
  color: #fff !important;
  padding: 11px 22px !important;
  border-radius: 1px;
  letter-spacing: 0.16em !important;
  font-size: 11.5px !important;
  transition: background .25s, transform .25s;
}
.nav-cta:hover { background: var(--wine-soft); }

.nav-toggle {
  display: none;
  background: transparent; border: 0; cursor: pointer;
  width: 38px; height: 38px;
  flex-direction: column; justify-content: center; gap: 6px;
  padding: 0;
}
.nav-toggle span {
  display: block; width: 24px; height: 1.5px;
  background: var(--ink);
  transition: transform .3s, opacity .3s;
}
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  padding: 140px var(--gutter) 80px;
  background:
    radial-gradient(ellipse at top, rgba(184,149,106,0.10), transparent 60%),
    var(--bg);
}
.hero-frame {
  max-width: 880px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  padding: 80px clamp(24px, 5vw, 72px);
  border: 1px solid var(--line);
}
.corner {
  position: absolute;
  width: 26px; height: 26px;
  border: 1px solid var(--gold);
}
.corner-tl { top: -1px; left: -1px; border-right: 0; border-bottom: 0; }
.corner-tr { top: -1px; right: -1px; border-left: 0; border-bottom: 0; }
.corner-bl { bottom: -1px; left: -1px; border-right: 0; border-top: 0; }
.corner-br { bottom: -1px; right: -1px; border-left: 0; border-top: 0; }
.corner::before, .corner::after {
  content: ''; position: absolute; background: var(--gold);
}
.corner::before { width: 10px; height: 1px; }
.corner::after  { width: 1px; height: 10px; }
.corner-tl::before { top: 6px; left: 6px; }
.corner-tl::after  { top: 6px; left: 6px; }
.corner-tr::before { top: 6px; right: 6px; }
.corner-tr::after  { top: 6px; right: 6px; }
.corner-bl::before { bottom: 6px; left: 6px; }
.corner-bl::after  { bottom: 6px; left: 6px; }
.corner-br::before { bottom: 6px; right: 6px; }
.corner-br::after  { bottom: 6px; right: 6px; }

.hero-eyebrow {
  font-size: 11.5px;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin: 0 0 28px;
}
.hero-title {
  font-size: clamp(34px, 6.2vw, 68px);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 500;
  line-height: 1;
  margin: 0;
  color: var(--ink);
  white-space: nowrap;
}
.hero-rule {
  display: flex; align-items: center; justify-content: center;
  margin: 22px auto 16px;
  max-width: 320px;
  position: relative;
}
.hero-rule::before, .hero-rule::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--gold);
}
.diamond {
  width: 8px; height: 8px;
  background: var(--gold);
  transform: rotate(45deg);
  margin: 0 14px;
}
.hero-subtitle {
  font-size: 11.5px;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0 0 36px;
}
.hero-lede {
  font-family: var(--serif);
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.55;
  color: var(--ink);
  margin: 0 auto 14px;
  max-width: 640px;
  font-weight: 400;
}
.hero-actions {
  display: flex; flex-wrap: wrap; gap: 14px;
  justify-content: center;
  margin-top: 40px;
}
.btn {
  display: inline-block;
  padding: 14px 30px;
  font-size: 11.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  border-radius: 1px;
  transition: all .25s ease;
  cursor: pointer;
  border: 1px solid transparent;
}
.btn-primary {
  background: var(--wine);
  color: #fff;
  border-color: var(--wine);
}
.btn-primary:hover { background: var(--wine-soft); border-color: var(--wine-soft); transform: translateY(-1px); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--gold);
}
.btn-ghost:hover { background: var(--gold); color: #fff; }

/* =========================================================
   SEÇÕES GENÉRICAS
   ========================================================= */
.section {
  max-width: var(--container);
  margin: 0 auto;
  padding: 100px var(--gutter);
}
.section-head {
  display: flex; align-items: center; justify-content: center;
  gap: 18px;
  margin: 0 auto 18px;
  max-width: 520px;
}
.section-rule-side {
  flex: 1;
  height: 1px;
  background: var(--gold);
  opacity: .7;
}
.section-eyebrow {
  font-size: 11.5px;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin: 0;
  white-space: nowrap;
}
.section-title {
  text-align: center;
  font-size: clamp(34px, 5vw, 52px);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: 0.01em;
  color: var(--ink);
  margin: 0 0 12px;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .7s ease, transform .7s ease;
}
.section-kicker {
  text-align: center;
  font-size: 12px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0 0 56px;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .7s ease .1s, transform .7s ease .1s;
}
.is-visible.section-title,
.is-visible.section-kicker { opacity: 1; transform: none; }

/* =========================================================
   SOBRE
   ========================================================= */
.section-sobre { padding-top: 80px; }
.sobre-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px;
  margin-top: 20px;
}
.sobre-block {
  text-align: center;
  padding: 0 12px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .8s ease, transform .8s ease;
}
.sobre-block.is-visible { opacity: 1; transform: none; }
.sobre-block:nth-child(2) { transition-delay: .1s; }
.sobre-block:nth-child(3) { transition-delay: .2s; }
.sobre-block h3 {
  font-size: 22px;
  margin-bottom: 12px;
  color: var(--wine);
  font-weight: 500;
}
.sobre-block p {
  font-size: 15px;
  color: var(--ink-soft);
  line-height: 1.7;
  margin: 0;
}

/* =========================================================
   ÁREAS DE ATUAÇÃO (grid 2 x 3 — réplica do folder)
   ========================================================= */
.section-areas {
  background:
    linear-gradient(180deg, transparent, rgba(184,149,106,0.05) 30%, rgba(184,149,106,0.05) 70%, transparent),
    transparent;
  max-width: none;
  padding-left: 0;
  padding-right: 0;
}
.section-areas > .section-head,
.section-areas > .section-title,
.section-areas > .section-kicker {
  max-width: var(--container);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}
.areas-grid {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border: 1px solid var(--line);
  background: var(--bg-soft);
}
.area-card {
  display: flex;
  gap: 18px;
  padding: 32px 30px;
  border-right: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  background: var(--bg-soft);
  transition: background .3s, transform .5s ease, opacity .5s ease;
  opacity: 0;
  transform: translateY(16px);
}
.area-card.is-visible { opacity: 1; transform: none; }
.area-card:nth-child(2) { transition-delay: .05s; }
.area-card:nth-child(3) { transition-delay: .10s; }
.area-card:nth-child(4) { transition-delay: .15s; }
.area-card:nth-child(5) { transition-delay: .20s; }
.area-card:nth-child(6) { transition-delay: .25s; }
.area-card:nth-child(2n) { border-right: 0; }
.area-card:nth-last-child(-n+2) { border-bottom: 0; }
.area-card:hover { background: var(--bg); }

.area-num {
  flex: 0 0 38px;
  width: 38px; height: 38px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif);
  font-style: italic;
  font-size: 18px;
  color: var(--gold-deep);
  margin-top: 4px;
}
.area-body h3 {
  font-size: 21px;
  margin: 0 0 6px;
  color: var(--ink);
  font-weight: 500;
}
.area-body p {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--ink-soft);
  margin: 0;
}

/* =========================================================
   CONTATO
   ========================================================= */
.section-contato { padding-bottom: 80px; }
.contato-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 12px;
}
.contato-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 36px 28px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  text-align: center;
  transition: transform .35s ease, box-shadow .35s ease, background .25s, opacity .6s ease;
  opacity: 0;
  transform: translateY(16px);
}
.contato-card.is-visible { opacity: 1; transform: none; }
.contato-card:nth-child(2) { transition-delay: .08s; }
.contato-card:nth-child(3) { transition-delay: .16s; }
.contato-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  background: var(--bg);
}
.contato-label {
  font-size: 10.5px;
  letter-spacing: 0.36em;
  text-transform: uppercase;
  color: var(--gold-deep);
}
.contato-value {
  font-family: var(--serif);
  font-size: 22px;
  color: var(--ink);
  margin: 2px 0 6px;
}
.contato-cta {
  font-size: 11.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--wine);
}
.contato-aviso {
  max-width: 720px;
  margin: 56px auto 0;
  font-size: 12px;
  line-height: 1.6;
  color: var(--ink-soft);
  text-align: center;
  font-style: italic;
  opacity: .85;
}

/* =========================================================
   INSTAGRAM
   ========================================================= */
.section-instagram {
  padding-top: 60px;
  padding-bottom: 100px;
}
.instagram-feed {
  max-width: 920px;
  margin: 0 auto;
}
.instagram-invite {
  border: 1px solid var(--line);
  background: var(--bg-soft);
  padding: 56px 32px;
  text-align: center;
  border-radius: 2px;
}
.ig-glyph {
  color: var(--gold-deep);
  margin-bottom: 18px;
}
.ig-invite-text {
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.55;
  color: var(--ink);
  max-width: 520px;
  margin: 0 auto 28px;
}
.ig-invite-text strong {
  color: var(--wine);
  font-weight: 600;
}
.ig-placeholder-cta {
  display: inline-block;
  padding: 13px 28px;
  background: var(--wine);
  color: #fff;
  font-size: 11.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  border-radius: 1px;
  transition: background .25s;
}
.ig-placeholder-cta:hover {
  background: var(--wine-soft);
}
/* Quando o SnapWidget for colado, ele tipicamente vem como iframe. */
.instagram-feed iframe {
  width: 100%;
  max-width: 100%;
  border: 0;
  display: block;
}

/* =========================================================
   RODAPÉ
   ========================================================= */
.footer {
  background: #1F1B16;
  color: rgba(242, 235, 216, 0.85);
  padding: 60px var(--gutter) 30px;
  margin-top: 30px;
}
.footer-inner {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  align-items: start;
}
.footer-name {
  font-family: var(--serif);
  font-size: 22px;
  letter-spacing: 0.22em;
  margin: 0 0 6px;
  color: #fff;
}
.footer-sub {
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0;
}
.footer-oab p { margin: 0 0 4px; font-size: 14px; }
.footer-oab p:last-child { color: var(--gold); font-size: 12px; letter-spacing: 0.16em; }
.footer-links { display: flex; flex-direction: column; gap: 8px; }
.footer-links a {
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(242, 235, 216, 0.7);
  transition: color .2s;
}
.footer-links a:hover { color: var(--gold); }
.footer-copy {
  max-width: var(--container);
  margin: 36px auto 0;
  padding-top: 24px;
  border-top: 1px solid rgba(184, 149, 106, 0.2);
  text-align: center;
  font-size: 11.5px;
  letter-spacing: 0.12em;
  color: rgba(242, 235, 216, 0.55);
}

/* =========================================================
   WHATSAPP FAB
   ========================================================= */
.whatsapp-fab {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 12px 28px rgba(37, 211, 102, 0.4), 0 4px 10px rgba(0,0,0,0.15);
  z-index: 40;
  transition: transform .25s ease, box-shadow .25s ease;
}
.whatsapp-fab:hover { transform: scale(1.07); }

/* =========================================================
   RESPONSIVO
   ========================================================= */
@media (max-width: 900px) {
  .sobre-grid { grid-template-columns: 1fr; gap: 28px; }
  .contato-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; text-align: center; }
  .footer-links { align-items: center; }
}

@media (max-width: 720px) {
  .nav-toggle { display: flex; }
  .nav-menu {
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    padding: 0 var(--gutter);
    max-height: 0;
    overflow: hidden;
    transition: max-height .35s ease;
  }
  .nav-menu.is-open {
    max-height: 500px;
    padding: 12px var(--gutter) 24px;
  }
  .nav-menu a {
    padding: 14px 0;
    border-bottom: 1px solid var(--line-soft);
    width: 100%;
  }
  .nav-menu a:last-child { border-bottom: 0; }
  .nav-cta {
    margin-top: 10px;
    text-align: center;
  }

  .hero { padding: 110px var(--gutter) 60px; }
  .hero-frame { padding: 56px 22px; }
  .section { padding: 70px var(--gutter); }

  .areas-grid { grid-template-columns: 1fr; }
  .area-card { border-right: 0 !important; border-bottom: 1px solid var(--line-soft) !important; }
  .area-card:last-child { border-bottom: 0 !important; }

  .hero-title { letter-spacing: 0.06em; }
}

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