/* ============================================================
   Marco Túlio Ribeiro Advocacia — folha de estilos
   ============================================================ */

:root {
  --navy-950: #060b15;
  --navy-900: #0a1524;
  --navy-800: #0f1e33;
  --navy-700: #15293f;
  --navy-600: #1c344d;
  --gold-300: #e4c98a;
  --gold-400: #d9b96a;
  --gold-500: #c9a24d;
  --gold-600: #b28a37;
  --cream: #f4efe3;
  --white: #ffffff;
  --ink-900: #10192b;
  --ink-700: #33405a;
  --gray-500: #6b7688;
  --gray-300: #aab4c4;
  --line-dark: rgba(244, 239, 227, 0.1);
  --line-light: rgba(16, 25, 43, 0.1);

  --font-display: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --glass-bg: rgba(244, 239, 227, 0.045);
  --glass-border: rgba(244, 239, 227, 0.1);

  --container: 1180px;
  --radius: 12px;
  --radius-sm: 8px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--white);
  color: var(--ink-900);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
button { font: inherit; cursor: pointer; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-500);
  margin-bottom: 14px;
}
.kicker::before {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--gold-500);
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.15;
  margin: 0 0 16px;
  color: inherit;
}

.section-head { max-width: 640px; margin: 0 auto 56px; text-align: center; }
.section-head p { color: var(--gray-500); font-size: 1.05rem; margin: 0; }
.section-head.left { margin: 0 0 48px; text-align: left; }

section { padding: 96px 0; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 28px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: -0.005em;
  border: 1px solid transparent;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease), border-color .25s var(--ease);
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }

.btn-gold {
  background: linear-gradient(135deg, var(--gold-400), var(--gold-600));
  color: var(--navy-950);
  box-shadow: 0 10px 24px -10px rgba(201, 162, 77, 0.65);
}
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 16px 30px -10px rgba(201, 162, 77, 0.8); }

.btn-ghost-dark {
  border-color: var(--line-dark);
  color: var(--cream);
}
.btn-ghost-dark:hover { border-color: var(--gold-400); color: var(--gold-300); }

.btn-outline {
  border-color: var(--navy-700);
  color: var(--navy-900);
}
.btn-outline:hover { border-color: var(--gold-500); color: var(--gold-600); background: rgba(201,162,77,.06); }

.btn-sm { padding: 10px 20px; font-size: 0.85rem; }

/* ---------- Top bar ---------- */
.topbar {
  background: var(--navy-950);
  color: var(--gray-300);
  font-size: 0.82rem;
  border-bottom: 1px solid var(--line-dark);
}
.topbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 42px;
  gap: 16px;
}
.topbar-info { display: flex; align-items: center; gap: 22px; }
.topbar-info span { display: inline-flex; align-items: center; gap: 7px; }
.topbar-info svg { width: 14px; height: 14px; stroke: var(--gold-400); flex-shrink: 0; }
.topbar-right { display: flex; align-items: center; gap: 16px; }
.social-links { display: flex; align-items: center; gap: 12px; }
.social-links a {
  width: 26px; height: 26px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--line-dark);
  transition: border-color .3s var(--ease), background .3s var(--ease), transform .3s var(--ease);
}
.social-links svg { width: 13px; height: 13px; stroke: var(--gray-300); }
.social-links a:hover { border-color: var(--gold-400); background: rgba(201,162,77,.12); transform: translateY(-2px); }

@media (max-width: 760px) {
  .topbar-info span:nth-child(2) { display: none; }
}

/* ---------- Navbar ---------- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 21, 36, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-dark);
  transition: box-shadow .35s var(--ease), padding .35s var(--ease);
}
.navbar.is-scrolled { box-shadow: 0 12px 30px -18px rgba(0,0,0,.6); }
.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
  transition: height .35s var(--ease);
}
.navbar.is-scrolled .container { height: 68px; }

.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark {
  width: 34px; height: 40px;
  color: var(--gold-500);
  flex-shrink: 0;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.25; }
.brand-text .name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--cream);
  letter-spacing: -0.01em;
}
.brand-text .sub {
  font-size: 0.66rem;
  letter-spacing: 0.24em;
  color: var(--gold-400);
  font-weight: 600;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 34px;
}
.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--gray-300);
  position: relative;
  padding: 6px 0;
  transition: color .3s var(--ease);
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%; bottom: 0;
  height: 1px;
  background: var(--gold-400);
  transition: right .35s var(--ease);
}
.nav-links a:hover,
.nav-links a.active { color: var(--cream); }
.nav-links a:hover::after,
.nav-links a.active::after { right: 0; }

.nav-actions { display: flex; align-items: center; gap: 18px; }
.nav-phone { display: flex; align-items: center; gap: 10px; color: var(--cream); }
.nav-phone svg { width: 18px; height: 18px; stroke: var(--gold-400); }
.nav-phone .lbl { font-size: 0.7rem; color: var(--gray-300); display: block; }
.nav-phone .val { font-size: 0.88rem; font-weight: 600; }

.nav-toggle {
  display: none;
  width: 40px; height: 40px;
  border-radius: 8px;
  border: 1px solid var(--line-dark);
  background: transparent;
  color: var(--cream);
  align-items: center;
  justify-content: center;
}
.nav-toggle svg { width: 20px; height: 20px; }

@media (max-width: 980px) {
  .nav-links { display: none; }
  .nav-phone { display: none; }
  .nav-toggle { display: inline-flex; }
}

.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  background: var(--navy-950);
  padding: 24px;
  flex-direction: column;
}
.mobile-menu.is-open { display: flex; }
.mobile-menu-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 40px; }
.mobile-menu a {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.6rem;
  color: var(--cream);
  padding: 14px 0;
  border-bottom: 1px solid var(--line-dark);
}
.mobile-menu .btn { margin-top: 28px; align-self: flex-start; }

/* ---------- Fine dot-grid texture for dark sections ---------- */
.texture {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: radial-gradient(rgba(244, 239, 227, 0.09) 1px, transparent 1px);
  background-size: 26px 26px;
  -webkit-mask-image: linear-gradient(180deg, black, rgba(0,0,0,.35) 55%, transparent 92%);
  mask-image: linear-gradient(180deg, black, rgba(0,0,0,.35) 55%, transparent 92%);
  pointer-events: none;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: radial-gradient(ellipse at 20% 10%, #0d1c30 0%, var(--navy-950) 55%);
  color: var(--cream);
  padding: 76px 0 0;
  overflow: hidden;
}
.hero .container {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 40px;
  min-height: 640px;
}
.hero-copy {
  position: relative;
  z-index: 2;
  padding-bottom: 70px;
  padding-left: 24px;
  border-left: 2px solid var(--gold-500);
}
.hero-copy h1 { font-size: clamp(2.3rem, 4.4vw, 3.6rem); max-width: 620px; letter-spacing: -0.02em; }
.hero-copy h1 em {
  font-style: normal;
  background: linear-gradient(135deg, var(--gold-300), var(--gold-600));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-copy .lede {
  color: var(--gray-300);
  font-size: 1.08rem;
  max-width: 540px;
  margin-bottom: 34px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 34px; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 16px;
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 999px;
  font-size: 0.8rem;
  color: var(--gray-300);
}
.hero-badge strong { color: var(--gold-400); font-weight: 700; }
.hero-badge svg { width: 15px; height: 15px; stroke: var(--gold-400); }

.hero-photo-wrap {
  position: relative;
  height: 100%;
  align-self: stretch;
  z-index: 1;
}
.hero-photo-frame {
  position: absolute;
  right: -6%;
  bottom: -40px;
  top: -30px;
  width: 88%;
  border-radius: var(--radius);
  overflow: hidden;
}
.hero-photo-frame img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.hero-photo-glow {
  position: absolute;
  right: 6%;
  top: 12%;
  width: 220px; height: 220px;
  background: radial-gradient(circle, rgba(201,162,77,.35), transparent 70%);
  filter: blur(10px);
  z-index: 0;
}

@media (max-width: 980px) {
  .hero .container { grid-template-columns: 1fr; min-height: auto; padding-top: 8px; }
  .hero-copy { padding-bottom: 24px; padding-left: 0; border-left: none; text-align: center; }
  .hero-copy .lede { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .hero-badge { margin: 0 auto; }
  .hero-photo-wrap { height: auto; order: -1; display: flex; justify-content: center; padding-top: 16px; }
  .hero-photo-frame {
    position: relative; inset: auto; right: 0; top: 0; bottom: 0;
    width: 88%; max-width: 360px; aspect-ratio: 4 / 5;
  }
}

/* ---------- Stats strip ---------- */
.stats {
  background: var(--navy-900);
  border-top: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
}
.stats .container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  padding: 26px 24px;
}
.stat {
  text-align: center;
  color: var(--cream);
  padding: 20px 14px;
  border-radius: var(--radius);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: transform .3s var(--ease), border-color .3s var(--ease), background .3s var(--ease);
}
.stat:hover { transform: translateY(-3px); border-color: rgba(201,162,77,.35); background: rgba(201,162,77,.06); }
.stat-icon-ring {
  width: 44px; height: 44px;
  margin: 0 auto 12px;
  border-radius: 50%;
  border: 1.5px solid rgba(201,162,77,.4);
  display: flex; align-items: center; justify-content: center;
  transition: border-color .35s var(--ease), background .35s var(--ease);
}
.stat:hover .stat-icon-ring { border-color: var(--gold-400); background: rgba(201,162,77,.1); }
.stat svg { width: 19px; height: 19px; stroke: var(--gold-400); }
.stat .t { font-family: var(--font-display); font-weight: 700; font-size: 0.98rem; margin-bottom: 4px; }
.stat .d { font-size: 0.8rem; color: var(--gray-300); }
@media (max-width: 760px) {
  .stats .container { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Áreas de atuação — lista numerada editorial ---------- */
.areas { background: var(--cream); }
.areas-list { border-top: 1px solid var(--line-light); }
.area-row {
  position: relative;
  display: grid;
  grid-template-columns: 88px 1fr 28px;
  align-items: center;
  gap: 28px;
  padding: 30px 12px;
  border-bottom: 1px solid var(--line-light);
  overflow: hidden;
  transition: padding .35s var(--ease);
}
.area-row::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(201,162,77,.09), transparent 65%);
  transform: translateX(-100%);
  transition: transform .45s var(--ease);
}
.area-row:hover::before { transform: translateX(0); }
.area-row:hover { padding-left: 20px; }
.area-num {
  position: relative;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2.1rem;
  letter-spacing: -0.02em;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--gold-500);
  transition: color .35s var(--ease), -webkit-text-stroke .35s var(--ease);
}
.area-row:hover .area-num { color: var(--gold-500); }
.area-row-body { position: relative; }
.area-row-body h3 { font-size: 1.2rem; margin-bottom: 6px; color: var(--ink-900); }
.area-row-body p { margin: 0; color: var(--gray-500); font-size: 0.94rem; max-width: 560px; }
.area-arrow {
  position: relative;
  width: 22px; height: 22px;
  stroke: var(--navy-700);
  transform: translateX(-8px);
  opacity: 0;
  transition: transform .35s var(--ease), opacity .35s var(--ease), stroke .35s var(--ease);
}
.area-row:hover .area-arrow { transform: translateX(0); opacity: 1; stroke: var(--gold-600); }

@media (max-width: 640px) {
  .area-row { grid-template-columns: 52px 1fr; gap: 16px; padding: 24px 4px; }
  .area-num { font-size: 1.5rem; }
  .area-arrow { display: none; }
  .area-row:hover { padding-left: 4px; }
}

/* ---------- Sobre / Escritório ---------- */
.about { position: relative; background: var(--navy-950); color: var(--cream); overflow: hidden; }
.about .container {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 60px;
  align-items: center;
}
.about-photo {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 5;
}
.about-photo img { width: 100%; height: 100%; object-fit: cover; }
.about-photo::before {
  content: "";
  position: absolute; inset: 0;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  z-index: 2;
}
.about-photo-tag {
  position: absolute;
  left: 18px; bottom: 18px;
  background: rgba(6,11,21,.75);
  backdrop-filter: blur(6px);
  border: 1px solid var(--line-dark);
  padding: 10px 16px;
  border-radius: 10px;
  font-size: 0.78rem;
  color: var(--gold-300);
  z-index: 3;
}
.about-text p { color: var(--gray-300); margin-bottom: 18px; }
.about-list { display: grid; gap: 14px; margin-top: 26px; }
.about-list li { display: flex; align-items: flex-start; gap: 12px; font-size: 0.95rem; }
.about-list svg { width: 20px; height: 20px; stroke: var(--gold-400); flex-shrink: 0; margin-top: 1px; }

@media (max-width: 900px) {
  .about .container { grid-template-columns: 1fr; }
  .about-photo { max-width: 380px; margin: 0 auto; }
}

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(120deg, var(--navy-800), var(--navy-950));
  color: var(--cream);
  border-top: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
}
.cta-band .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding: 56px 24px;
}
.cta-band h2 { margin: 0 0 6px; font-size: 1.7rem; }
.cta-band p { margin: 0; color: var(--gray-300); }

/* ---------- Contato ---------- */
.contact { background: var(--cream); }
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.contact-card {
  position: relative;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line-light);
  border-radius: var(--radius);
  padding: 30px;
  text-align: center;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.contact-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold-400), var(--gold-600));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .4s var(--ease);
}
.contact-card:hover { transform: translateY(-5px); box-shadow: 0 20px 34px -22px rgba(16,25,43,.25); }
.contact-card:hover::before { transform: scaleX(1); }
.contact-icon {
  width: 50px; height: 50px;
  margin: 0 auto 16px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--gold-300), var(--gold-600));
}
.contact-icon svg { width: 22px; height: 22px; stroke: var(--navy-950); }
.contact-card h3 { font-size: 1.02rem; margin-bottom: 6px; }
.contact-card p { margin: 0 0 4px; color: var(--gray-500); font-size: 0.92rem; word-break: break-word; }
.contact-card a.value { color: var(--navy-900); font-weight: 600; }

@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
footer { background: var(--navy-950); color: var(--gray-300); padding-top: 72px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--line-dark);
}
.footer-brand .brand-text .name { color: var(--cream); }
.footer-brand p { max-width: 320px; margin: 16px 0 20px; font-size: 0.9rem; }
footer h4 {
  font-family: var(--font-sans);
  color: var(--cream);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
footer .flinks { display: grid; gap: 12px; }
footer .flinks a { font-size: 0.92rem; transition: color .3s var(--ease); }
footer .flinks a:hover { color: var(--gold-400); }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 26px 0;
  font-size: 0.8rem;
}
.footer-bottom .disclaimer { color: #5a6478; max-width: 560px; }

@media (max-width: 820px) {
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
}

/* ---------- WhatsApp FAB ---------- */
.wa-fab {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 150;
  width: 58px; height: 58px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2fd66a, #1fa855);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 14px 30px -10px rgba(31, 168, 85, .65);
  animation: wa-pulse 2.6s ease-in-out infinite;
  transition: transform .3s var(--ease);
}
.wa-fab:hover { transform: scale(1.08); }
.wa-fab svg { width: 28px; height: 28px; fill: #ffffff; }
@keyframes wa-pulse {
  0%, 100% { box-shadow: 0 14px 30px -10px rgba(31,168,85,.65); }
  50% { box-shadow: 0 14px 30px -6px rgba(31,168,85,.95), 0 0 0 8px rgba(47,214,106,.12); }
}

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

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

@media (max-width: 640px) {
  section { padding: 64px 0; }
  .section-head { margin-bottom: 40px; }
}
