/* ════════════════════════════════════════════════
   Leonardo Lima — Advocacia e Assessoria Jurídica
   main.css — Design System + Componentes
   ════════════════════════════════════════════════ */

:root {
  --navy:       #0c1b3e;
  --navy-dark:  #07102a;
  --navy-mid:   #142150;
  --gold:       #c9a227;
  --gold-lt:    #e8c84a;
  --gold-dk:    #8b6512;
  --gold-grad:  linear-gradient(120deg, #8b6512 0%, #e8c84a 45%, #c9a227 75%, #8b6512 100%);
  --cream:      #faf7f1;
  --cream-dk:   #f0ede5;
  --text:       #363248;
  --muted:      #6b6882;
}

@font-face {
  font-family: 'Mainlux';
  src: url('../fonts/Mainlux-Regular.ttf') format('truetype');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Mainlux';
  src: url('../fonts/Mainlux-Bold.ttf') format('truetype');
  font-weight: 700;
  font-display: swap;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Cormorant Garamond', Georgia, serif;
  background: var(--cream);
  color: var(--text);
  overflow-x: hidden;
}

/* ─── NAV ─── */
#nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.6rem 5rem;
  transition: padding 0.4s ease, background 0.4s ease, box-shadow 0.4s ease;
}
#nav.solid {
  background: var(--navy-dark);
  padding: 0.9rem 5rem;
  box-shadow: 0 2px 32px rgba(0,0,0,0.45);
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  text-decoration: none;
}
.nav-brand-symbol {
  height: 42px;
  transition: height 0.3s;
  filter: drop-shadow(0 2px 8px rgba(201,162,39,0.3));
}
#nav.solid .nav-brand-symbol { height: 32px; }
.nav-brand-text {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}
.nav-brand-name {
  font-family: 'Cinzel', serif;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: #fff;
  line-height: 1;
  text-transform: uppercase;
}
.nav-brand-sub {
  font-family: 'Cinzel', serif;
  font-size: 0.52rem;
  letter-spacing: 0.22em;
  color: var(--gold);
  text-transform: uppercase;
  line-height: 1;
}

/* nav right cluster: links + social + cta */
.nav-right {
  display: flex;
  align-items: center;
  gap: 2.4rem;
}
.nav-links {
  display: flex;
  gap: 3rem;
  list-style: none;
}
.nav-links a {
  font-family: 'Cinzel', serif;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--gold-lt); }

/* social icons */
.social-links {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}
.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(201,162,39,0.32);
  border-radius: 50%;
  color: rgba(255,255,255,0.72);
  transition: color 0.22s, border-color 0.22s, transform 0.22s, background 0.22s;
}
.social-links a:hover {
  color: var(--navy-dark);
  background: var(--gold);
  border-color: var(--gold);
  transform: translateY(-2px);
}
.social-links svg { width: 16px; height: 16px; fill: currentColor; }

.nav-cta {
  font-family: 'Cinzel', serif;
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  font-weight: 700;
  text-transform: uppercase;
  padding: 0.7rem 1.7rem;
  background: var(--gold-grad);
  color: var(--navy-dark);
  text-decoration: none;
  transition: opacity 0.2s, transform 0.2s;
  white-space: nowrap;
}
.nav-cta:hover { opacity: 0.85; transform: translateY(-1px); }

/* hamburger toggle (mobile) */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 38px;
  height: 38px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1100;
}
.nav-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--gold);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ─── HERO ─── */
#hero {
  min-height: 100vh;
  background: var(--navy-dark);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('../images/feed.jpg');
  background-size: cover;
  background-position: center;
  opacity: 0.1;
  filter: grayscale(40%);
}
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 40%, rgba(14,31,74,0.1) 0%, rgba(7,16,42,0.7) 100%);
}
.hero-body {
  flex: 1;
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 5.5rem 2rem 2rem;
  gap: 1.2rem;
}
.hero-logo {
  height: 88px;
  filter: drop-shadow(0 4px 30px rgba(201,162,39,0.28));
  animation: fadeDown 1.1s cubic-bezier(.22,1,.36,1) both;
}
.hero-tagline {
  font-family: 'Cinzel', serif;
  font-size: clamp(1.3rem, 2.6vw, 2.4rem);
  font-weight: 700;
  letter-spacing: 0.03em;
  color: #fff;
  line-height: 1.18;
  text-align: center;
  max-width: 780px;
  animation: fadeUp 1.1s cubic-bezier(.22,1,.36,1) 0.2s both;
}
.hero-lead {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(1rem, 1.4vw, 1.22rem);
  color: rgba(255,255,255,0.85);
  line-height: 1.7;
  max-width: 560px;
  text-align: center;
  animation: fadeIn 1s ease 0.45s both;
}
.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: 'Cinzel', serif;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 1rem 2.4rem;
  background: var(--gold-grad);
  color: var(--navy-dark);
  text-decoration: none;
  border-radius: 2px;
  margin-top: 0.5rem;
  animation: fadeUp 1s cubic-bezier(.22,1,.36,1) 0.65s both;
  transition: opacity 0.2s, transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 24px rgba(201,162,39,0.3);
}
.hero-cta:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(201,162,39,0.45);
}
.hero-scroll {
  position: absolute;
  bottom: 14.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  animation: fadeIn 1.4s ease 1.2s both;
}
.scroll-bar {
  width: 1px;
  height: 42px;
  background: linear-gradient(to bottom, var(--gold), transparent);
  animation: pulse 2.2s ease-in-out infinite;
}
.scroll-label {
  font-family: 'Cinzel', serif;
  font-size: 0.52rem;
  letter-spacing: 0.28em;
  color: rgba(255,255,255,0.28);
  text-transform: uppercase;
}

/* ─── AREA STRIP (bottom of hero) ─── */
.areas-strip {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid rgba(201,162,39,0.22);
}
.strip-item {
  padding: 1.6rem 2.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  border-right: 1px solid rgba(201,162,39,0.1);
  cursor: pointer;
  text-decoration: none;
  transition: background 0.3s ease;
  animation: fadeUp 0.9s cubic-bezier(.22,1,.36,1) both;
}
.strip-item:nth-child(1) { animation-delay: 0.75s; }
.strip-item:nth-child(2) { animation-delay: 0.9s; }
.strip-item:nth-child(3) { animation-delay: 1.05s; border-right: none; }
.strip-item:hover { background: rgba(201,162,39,0.06); }
.strip-icon {
  width: 28px;
  height: 28px;
  color: var(--gold);
  flex-shrink: 0;
  margin-bottom: 0.2rem;
}
.strip-title {
  font-family: 'Cinzel', serif;
  font-size: clamp(0.8rem, 1.3vw, 1rem);
  font-weight: 600;
  color: #fff;
  line-height: 1.35;
}
.strip-desc {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.75);
  line-height: 1.65;
  font-style: italic;
}
.strip-arrow {
  font-size: 1rem;
  color: var(--gold);
  opacity: 0.55;
  display: inline-block;
  transition: transform 0.25s, opacity 0.25s;
  margin-top: 0.3rem;
}
.strip-item:hover .strip-arrow { transform: translateX(7px); opacity: 1; }

/* ─── AREAS DETAIL ─── */
#areas {
  background: var(--cream);
  padding: 8rem 5rem;
}
.sec-head {
  text-align: center;
  margin-bottom: 5.5rem;
}
.eyebrow {
  font-family: 'Cinzel', serif;
  font-size: 0.62rem;
  letter-spacing: 0.38em;
  color: var(--gold);
  text-transform: uppercase;
  display: block;
  margin-bottom: 1rem;
}
.sec-title {
  font-family: 'Cinzel', serif;
  font-size: clamp(1.6rem, 2.8vw, 2.5rem);
  color: var(--navy);
  font-weight: 600;
  line-height: 1.2;
}
.sec-rule {
  width: 48px;
  height: 2px;
  background: var(--gold-grad);
  margin: 1.5rem auto 0;
}
.areas-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  max-width: 1280px;
  margin: 0 auto;
  background: var(--cream-dk);
}
.area-card {
  background: var(--cream);
  padding: 3.5rem 3.2rem;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  position: relative;
  overflow: hidden;
  transition: box-shadow 0.35s ease, transform 0.35s ease;
}
.area-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--gold-grad);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}
.area-card:hover::before { transform: scaleX(1); }
.area-card:hover {
  box-shadow: 0 20px 56px rgba(12,27,62,0.1);
  transform: translateY(-5px);
}
.card-num {
  font-family: 'Cinzel', serif;
  font-size: 0.58rem;
  letter-spacing: 0.28em;
  color: var(--gold);
}
.card-icon {
  width: 50px;
  height: 50px;
  border: 1px solid rgba(201,162,39,0.38);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.card-icon svg {
  width: 22px;
  height: 22px;
  stroke: var(--gold);
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.card-title {
  font-family: 'Cinzel', serif;
  font-size: 1.15rem;
  color: var(--navy);
  font-weight: 600;
  line-height: 1.3;
}
.card-body {
  font-size: 1rem;
  color: var(--text);
  line-height: 1.82;
}
.card-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.48rem;
  margin-top: 0.25rem;
}
.card-list li {
  font-size: 0.9rem;
  color: var(--text);
  padding-left: 1.2rem;
  position: relative;
  line-height: 1.5;
}
.card-list li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--gold);
  font-size: 0.72rem;
}
.card-link {
  margin-top: auto;
  padding-top: 1.5rem;
  align-self: flex-start;
  font-family: 'Cinzel', serif;
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--navy);
  text-decoration: none;
  border-bottom: 1px solid var(--gold);
  padding-bottom: 0.25rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: gap 0.2s, color 0.2s;
}
.card-link:hover { gap: 0.9rem; color: var(--gold-dk); }

/* ─── SOBRE ─── */
#sobre {
  background: var(--navy);
  overflow: hidden;
}
.sobre-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 400px 1fr;
}
.sobre-img-col {
  position: relative;
  min-height: 620px;
  background: var(--navy-mid);
  border-right: 1px solid rgba(201,162,39,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.sobre-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  position: relative;
  z-index: 2;
  padding: 3rem;
  text-align: center;
}
.sobre-placeholder img {
  width: 88px;
  opacity: 0.18;
}
.sobre-placeholder p {
  font-family: 'Cinzel', serif;
  font-size: 0.58rem;
  letter-spacing: 0.18em;
  color: rgba(255,255,255,0.18);
  text-transform: uppercase;
  line-height: 2;
}
/* foto profissional real (substituir placeholder) */
.sobre-foto {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}
.sobre-wm {
  position: absolute;
  bottom: -40px;
  right: -40px;
  width: 300px;
  opacity: 0.04;
  pointer-events: none;
}
.sobre-text-col {
  padding: 7rem 5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.5rem;
}
.sobre-name {
  font-family: 'Cinzel', serif;
  font-size: clamp(2rem, 3.5vw, 3.5rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.05;
}
.sobre-name-gold {
  display: block;
  background: var(--gold-grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.sobre-rule {
  width: 56px;
  height: 1px;
  background: var(--gold-grad);
}
.sobre-body {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.82);
  line-height: 1.88;
  max-width: 500px;
}
.sobre-oab {
  display: inline-block;
  font-family: 'Cinzel', serif;
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  color: var(--gold);
  border: 1px solid rgba(201,162,39,0.28);
  padding: 0.7rem 1.5rem;
  text-transform: uppercase;
  margin-top: 0.5rem;
}

/* ─── CONTATO ─── */
#contato {
  background: var(--cream-dk);
  padding: 9rem 5rem;
  text-align: center;
}
.contato-wrap { max-width: 600px; margin: 0 auto; }
.contato-body {
  font-size: 1.12rem;
  color: var(--muted);
  line-height: 1.85;
  font-style: italic;
  margin: 1.5rem 0 3rem;
}
.btns {
  display: flex;
  gap: 1.25rem;
  justify-content: center;
  flex-wrap: wrap;
}
.btn-gold {
  font-family: 'Cinzel', serif;
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  font-weight: 700;
  text-transform: uppercase;
  padding: 1rem 2.6rem;
  background: var(--gold-grad);
  color: var(--navy-dark);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  transition: opacity 0.2s, transform 0.2s;
}
.btn-gold:hover { opacity: 0.87; transform: translateY(-2px); }
.btn-outline {
  font-family: 'Cinzel', serif;
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 1rem 2.6rem;
  border: 1.5px solid var(--navy);
  color: var(--navy);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  transition: all 0.22s;
}
.btn-outline:hover { background: var(--navy); color: #fff; }

/* ─── FOOTER ─── */
footer {
  background: var(--navy-dark);
  padding: 3rem 5rem;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 2rem;
  border-top: 1px solid rgba(201,162,39,0.1);
}
.foot-logo img { height: 54px; }
.foot-copy {
  text-align: center;
  font-family: 'Cinzel', serif;
  font-size: 0.55rem;
  letter-spacing: 0.18em;
  color: rgba(255,255,255,0.22);
  text-transform: uppercase;
  line-height: 2.3;
}
.foot-copy .foot-credit {
  text-transform: none;
  letter-spacing: 0.08em;
}
.foot-copy .foot-credit a {
  color: var(--gold);
  text-decoration: none;
  transition: color 0.2s;
}
.foot-copy .foot-credit a:hover { color: var(--gold-lt); }
.foot-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 1.1rem;
}
.foot-social {
  display: flex;
  gap: 0.8rem;
}
.foot-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(201,162,39,0.28);
  border-radius: 50%;
  color: rgba(255,255,255,0.4);
  transition: color 0.2s, border-color 0.2s, background 0.2s, transform 0.2s;
}
.foot-social a:hover {
  color: var(--navy-dark);
  background: var(--gold);
  border-color: var(--gold);
  transform: translateY(-2px);
}
.foot-social svg { width: 15px; height: 15px; fill: currentColor; }
.foot-links {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.8rem;
}
.foot-links a {
  font-family: 'Cinzel', serif;
  font-size: 0.55rem;
  letter-spacing: 0.18em;
  color: rgba(255,255,255,0.28);
  text-decoration: none;
  text-transform: uppercase;
  transition: color 0.2s;
}
.foot-links a:hover { color: var(--gold); }

/* ─── FLOAT WA ─── */
.wa-float {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 999;
  width: 54px;
  height: 54px;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 4px 24px rgba(37,211,102,0.38);
  transition: transform 0.2s, box-shadow 0.2s;
}
.wa-float:hover { transform: scale(1.11); box-shadow: 0 6px 32px rgba(37,211,102,0.5); }
.wa-float svg { width: 27px; height: 27px; fill: #fff; }

/* ─── REVEAL ─── */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.75s ease, transform 0.75s ease;
}
.reveal.in { opacity: 1; transform: translateY(0); }

/* ─── KEYFRAMES ─── */
@keyframes fadeDown {
  from { opacity: 0; transform: translateY(-28px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes pulse {
  0%, 100% { opacity: 0.4; transform: scaleY(1); }
  50%       { opacity: 1;   transform: scaleY(1.18); }
}

/* ─── ACESSIBILIDADE ─── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ─── RESPONSIVE ─── */
@media (max-width: 960px) {
  #nav { padding: 1.2rem 2rem; }
  #nav.solid { padding: 0.7rem 2rem; }

  .nav-toggle { display: flex; }

  /* painel mobile colapsável */
  .nav-right {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(78vw, 320px);
    height: 100vh;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 2.4rem;
    padding: 4rem 2.4rem;
    background: var(--navy-dark);
    box-shadow: -8px 0 40px rgba(0,0,0,0.5);
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(.22,1,.36,1);
  }
  .nav-right.open { transform: translateX(0); }
  .nav-links {
    flex-direction: column;
    gap: 1.8rem;
  }
  .nav-links a { font-size: 0.78rem; }
  .social-links { gap: 1rem; }
  .nav-cta { font-size: 0.7rem; padding: 0.85rem 2rem; }

  .areas-strip { grid-template-columns: 1fr; }
  .strip-item {
    border-right: none;
    border-top: 1px solid rgba(201,162,39,0.1);
    padding: 1rem 1.6rem;
    flex-direction: row;
    align-items: center;
    gap: 1rem;
  }
  .strip-item:first-child { border-top: none; }
  .strip-desc { display: none; }
  .strip-icon { width: 22px; height: 22px; margin-bottom: 0; flex-shrink: 0; }
  .strip-title { flex: 1; font-size: 0.82rem; }
  .strip-arrow { margin-top: 0; }
  #areas { padding: 5rem 2rem; }
  .areas-grid { grid-template-columns: 1fr; }
  .sobre-inner { grid-template-columns: 1fr; }
  .sobre-img-col { min-height: 280px; }
  .sobre-text-col { padding: 4rem 2rem; }
  #contato { padding: 6rem 2rem; }
  footer {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .foot-right { align-items: center; }
  .foot-links { align-items: center; }
  .foot-logo { display: flex; justify-content: center; }
}

/* body lock quando menu mobile aberto */
body.nav-open { overflow: hidden; }
