/* ============================================================
   Jorge Filus Advocacia & Consultoria
   Paleta navy + dourado, tipografia Playfair Display + Nunito
   ============================================================ */

:root {
  --navy-900: #060c2b;
  --navy-800: #0c1638;
  --navy-700: #14224b;
  --navy-600: #1d2f60;
  --navy-500: #2f3d60;
  --gold-500: #c79a45;
  --gold-400: #d3a955;
  --gold-300: #e3c483;
  --ink: #1c2230;
  --muted: #5c6478;
  --line: #e6e8ef;
  --bg: #ffffff;
  --bg-tint: #f6f7fb;
  --bg-gold-tint: #fbf6ec;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow-sm: 0 4px 18px rgba(12, 22, 56, 0.07);
  --shadow-md: 0 14px 40px rgba(12, 22, 56, 0.12);
  --shadow-lg: 0 24px 60px rgba(6, 12, 43, 0.22);
  --maxw: 1180px;
  --header-h: 84px;
  --ease: cubic-bezier(.22,.61,.36,1);
  --serif: "Playfair Display", Georgia, serif;
  --sans: "Nunito", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

/* ---------- Typography ---------- */
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.18; color: var(--navy-800); margin: 0 0 .5em; }
p { margin: 0 0 1rem; color: var(--ink); }
.section p { color: #3a4255; }

.eyebrow {
  font-family: var(--sans);
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: .78rem;
  font-weight: 700;
  color: var(--gold-500);
  margin: 0 0 .9rem;
}
.eyebrow::before {
  content: "";
  display: inline-block;
  width: 26px;
  height: 2px;
  background: var(--gold-500);
  vertical-align: middle;
  margin-right: 10px;
  transform: translateY(-3px);
}
.eyebrow-light { color: var(--gold-300); }
.eyebrow-light::before { background: var(--gold-300); }

.section-title { font-size: clamp(1.7rem, 3.2vw, 2.5rem); }
.section-lead { font-size: 1.08rem; color: var(--muted); max-width: 760px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  font-family: var(--sans);
  font-weight: 700;
  font-size: .98rem;
  letter-spacing: .01em;
  padding: 13px 26px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s, color .25s, border-color .25s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-lg { padding: 16px 34px; font-size: 1.04rem; }
.btn-sm { padding: 9px 18px; font-size: .9rem; }

.btn-gold { background: linear-gradient(135deg, var(--gold-400), var(--gold-500)); color: #2a1e05; box-shadow: 0 8px 22px rgba(199,154,69,.35); }
.btn-gold:hover { box-shadow: 0 12px 30px rgba(199,154,69,.5); }

.btn-navy { background: var(--navy-700); color: #fff; }
.btn-navy:hover { background: var(--navy-600); box-shadow: var(--shadow-md); }

.btn-outline-light { border-color: rgba(255,255,255,.45); color: #fff; }
.btn-outline-light:hover { background: rgba(255,255,255,.08); border-color: #fff; }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid transparent;
  z-index: 1000;
  transition: height .3s var(--ease), box-shadow .3s, border-color .3s;
}
.site-header.scrolled { height: 68px; box-shadow: var(--shadow-sm); border-color: var(--line); }
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand-logo { height: 46px; width: auto; transition: height .3s var(--ease); }
.site-header.scrolled .brand-logo { height: 38px; }

.main-nav { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.nav-link {
  font-weight: 600;
  font-size: .96rem;
  color: var(--navy-700);
  padding: 8px 13px;
  border-radius: 8px;
  position: relative;
  transition: color .2s;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 13px; right: 13px; bottom: 4px;
  height: 2px;
  background: var(--gold-500);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s var(--ease);
}
.nav-link:hover { color: var(--navy-900); }
.nav-link:hover::after, .nav-link.active::after { transform: scaleX(1); }
.nav-link.active { color: var(--navy-900); }

.header-actions { display: flex; align-items: center; gap: 16px; }
.header-phone { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--navy-700); font-size: .94rem; }
.header-phone svg { width: 18px; height: 18px; fill: var(--gold-500); }
.header-phone:hover { color: var(--gold-500); }
.header-cta { display: inline-flex; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; width: 42px; height: 42px; border: none; background: transparent; cursor: pointer; padding: 9px; }
.nav-toggle span { display: block; height: 2.5px; width: 100%; background: var(--navy-800); border-radius: 2px; transition: transform .3s var(--ease), opacity .2s; }
.nav-toggle.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: calc(var(--header-h) + 40px) 0 80px;
  color: #fff;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(120% 90% at 80% 0%, rgba(199,154,69,.20), transparent 55%),
    radial-gradient(90% 80% at 0% 100%, rgba(45,61,96,.55), transparent 60%),
    linear-gradient(150deg, var(--navy-900) 0%, var(--navy-700) 55%, var(--navy-600) 100%);
}
.hero-bg::after {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(120% 90% at 70% 30%, #000 30%, transparent 75%);
}
.hero-inner { position: relative; max-width: 840px; }
.hero-title { color: #fff; font-size: clamp(2.1rem, 5vw, 3.6rem); line-height: 1.12; margin-bottom: 1.1rem; }
.hero-subtitle { font-size: clamp(1.05rem, 2vw, 1.28rem); color: rgba(233,237,247,.86); max-width: 720px; margin-bottom: 2.2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; }

/* ---------- Sections ---------- */
.section { padding: 96px 0; }
.section-light { background: var(--bg); }
.section-tint { background: var(--bg-tint); }
.section-gold-tint { background: var(--bg-gold-tint); }
.section-navy { background: var(--navy-800); color: #fff; }
.section-navy .section-title, .section-navy h3 { color: #fff; }
.section-navy p { color: rgba(233,237,247,.82); }
.section-navy strong { color: var(--gold-300); }

.section-head { max-width: 820px; margin: 0 auto 56px; text-align: center; }
.section-head .eyebrow { display: inline-block; }
.section-head .section-lead { margin-left: auto; margin-right: auto; }

/* ---------- Grid helpers ---------- */
.grid-2 { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; }
.grid-2-align { align-items: center; }
.grid-2-wide { grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }

/* ---------- O Escritório: foto fundador em destaque ---------- */
.escritorio-grid {
  display: grid;
  grid-template-columns: minmax(300px, .82fr) 1.18fr;
  gap: 64px;
  align-items: center;
}
.founder { margin: 0; max-width: 420px; }
.founder-frame {
  position: relative;
  isolation: isolate;
  aspect-ratio: 4 / 5;
}
/* moldura dourada deslocada para destaque, ancorada à foto */
.founder-frame::before {
  content: "";
  position: absolute;
  left: -16px; bottom: -16px;
  width: 58%; height: 52%;
  border: 2px solid var(--gold-400);
  border-radius: 6px;
  z-index: 0;
}
.founder-frame::after {
  content: "";
  position: absolute;
  right: -16px; top: -16px;
  width: 110px; height: 110px;
  background: var(--bg-gold-tint);
  border-radius: 6px;
  z-index: 0;
}
.founder-img {
  position: relative;
  z-index: 1;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 18%;
  display: block;
  border-radius: 6px;
  box-shadow: var(--shadow-lg);
  filter: saturate(1.02);
}
.founder-cap { text-align: center; margin-top: 26px; }
.founder-name { font-family: var(--serif); font-size: 1.5rem; color: var(--navy-800); margin: 0 0 .15rem; }
.founder-oab { color: var(--gold-500); font-weight: 700; letter-spacing: .03em; font-size: .92rem; margin: 0 0 16px; }
.founder-linkedin {
  display: inline-flex; align-items: center; gap: 9px;
  font-weight: 700; font-size: .92rem; color: var(--navy-700);
  padding: 9px 18px; border: 1.5px solid var(--line); border-radius: 999px;
  transition: background .25s, color .25s, border-color .25s, transform .25s var(--ease);
}
.founder-linkedin svg { width: 18px; height: 18px; fill: #0a66c2; transition: fill .25s; }
.founder-linkedin:hover { background: #0a66c2; color: #fff; border-color: #0a66c2; transform: translateY(-2px); }
.founder-linkedin:hover svg { fill: #fff; }

/* selos de credenciais no texto */
.creds-badges { display: flex; flex-wrap: wrap; gap: 10px; margin: 6px 0 26px; }
.creds-badges li {
  font-size: .86rem; font-weight: 700; color: var(--navy-700);
  background: var(--bg-gold-tint); border: 1px solid rgba(199,154,69,.35);
  padding: 8px 15px; border-radius: 999px;
}

/* ---------- Pillars ---------- */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 72px; }
.pillar {
  text-align: center; padding: 36px 28px;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: #fff; transition: transform .3s var(--ease), box-shadow .3s, border-color .3s;
}
.pillar:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: transparent; }
.pillar-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 62px; height: 62px; border-radius: 16px; margin-bottom: 18px;
  background: var(--bg-gold-tint);
}
.pillar-icon svg, .card-icon svg, .profile-icon svg, .authority-mark svg {
  width: 28px; height: 28px; fill: none; stroke: var(--gold-500); stroke-width: 1.7;
  stroke-linecap: round; stroke-linejoin: round;
}
.pillar h3 { font-size: 1.22rem; margin-bottom: .35rem; }
.pillar p { color: var(--muted); margin: 0; }

/* ---------- Cards (áreas) ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 36px 30px; transition: transform .3s var(--ease), box-shadow .3s, border-color .3s;
  position: relative; overflow: hidden;
}
.card::before {
  content: ""; position: absolute; left: 0; top: 0; height: 3px; width: 0;
  background: linear-gradient(90deg, var(--gold-400), var(--gold-500));
  transition: width .35s var(--ease);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: transparent; }
.card:hover::before { width: 100%; }
.card-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 58px; height: 58px; border-radius: 14px; margin-bottom: 18px;
  background: var(--bg-gold-tint);
}
.card h3 { font-size: 1.28rem; margin-bottom: 1rem; }
.card ul li {
  position: relative; padding: 7px 0 7px 24px; color: #3a4255; font-size: .97rem; line-height: 1.5;
  border-top: 1px solid #f0f1f6;
}
.card ul li:first-child { border-top: none; }
.card ul li::before {
  content: ""; position: absolute; left: 2px; top: 15px;
  width: 7px; height: 7px; border-radius: 50%; background: var(--gold-500);
}
/* card de especialização em destaque */
.card-feature {
  border-color: rgba(199,154,69,.5);
  background: linear-gradient(180deg, var(--bg-gold-tint), #fff 38%);
  box-shadow: var(--shadow-sm);
}
.card-feature::before { width: 100%; }
.card-badge {
  display: inline-block;
  font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
  color: #5a4413; background: linear-gradient(135deg, var(--gold-300), var(--gold-400));
  padding: 5px 12px; border-radius: 999px; margin-bottom: 16px;
}
.card-lead {
  color: var(--navy-700); font-weight: 600; font-size: .98rem; line-height: 1.55;
  margin: 0 0 16px; padding-bottom: 16px; border-bottom: 1px solid rgba(199,154,69,.3);
}

.card-cta {
  background: linear-gradient(160deg, var(--navy-800), var(--navy-600));
  color: #fff; display: flex; flex-direction: column; justify-content: center; align-items: flex-start;
  border-color: transparent;
}
.card-cta::before { display: none; }
.card-cta h3 { color: #fff; }
.card-cta p { color: rgba(233,237,247,.85); }
.card-cta:hover { transform: translateY(-6px); }

/* ---------- Steps (método) ---------- */
.steps { display: flex; flex-direction: column; gap: 18px; }
.step {
  display: flex; gap: 20px; align-items: flex-start;
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.10);
  border-radius: var(--radius); padding: 22px 24px;
  transition: transform .3s var(--ease), background .3s, border-color .3s;
}
.step:hover { transform: translateX(6px); background: rgba(199,154,69,.10); border-color: rgba(199,154,69,.4); }
.step-num {
  flex: none; width: 46px; height: 46px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-weight: 700; font-size: 1.3rem;
  background: linear-gradient(135deg, var(--gold-400), var(--gold-500)); color: #2a1e05;
}
.step h3 { font-size: 1.18rem; margin: 2px 0 .25rem; }
.step p { margin: 0; }

/* ---------- Profiles (para quem) ---------- */
.profiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.profile {
  text-align: center; padding: 40px 30px; border-radius: var(--radius);
  background: #fff; border: 1px solid var(--line);
  transition: transform .3s var(--ease), box-shadow .3s;
}
.profile:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.profile-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 66px; height: 66px; border-radius: 50%; margin-bottom: 20px;
  background: var(--bg-gold-tint);
}
.profile p { font-weight: 600; color: var(--navy-700); margin: 0; }

/* ---------- Authority ---------- */
.authority-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.authority-item {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px 26px; text-align: center;
  transition: transform .3s var(--ease), box-shadow .3s;
}
.authority-item:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.authority-mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 60px; height: 60px; border-radius: 14px; margin-bottom: 16px;
  background: var(--bg-gold-tint);
}
.authority-item h3 { font-size: 1.1rem; margin-bottom: .4rem; }
.authority-item p { color: var(--muted); font-size: .95rem; margin: 0; }

/* ---------- CTA Band ---------- */
.cta-band {
  position: relative; padding: 90px 0; color: #fff; text-align: center; overflow: hidden;
  background: linear-gradient(140deg, var(--navy-900), var(--navy-700));
}
.cta-band::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(80% 120% at 50% 0%, rgba(199,154,69,.22), transparent 60%);
}
.cta-inner { position: relative; max-width: 740px; margin: 0 auto; }
.cta-band h2 { color: #fff; font-size: clamp(1.6rem, 3.4vw, 2.4rem); }
.cta-band p { color: rgba(233,237,247,.86); font-size: 1.1rem; margin-bottom: 2rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-900); color: rgba(233,237,247,.78); padding-top: 72px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 48px; padding-bottom: 56px; }
.footer-logo { height: 50px; width: auto; margin-bottom: 18px; background: #fff; padding: 10px 14px; border-radius: 10px; }
.footer-identity { font-family: var(--serif); color: #fff; font-size: 1.15rem; margin: 0 0 .2rem; }
.footer-oab { font-size: .92rem; margin-bottom: 18px; }
.footer-col h3 { color: #fff; font-family: var(--sans); font-weight: 800; font-size: 1.05rem; letter-spacing: .02em; margin-bottom: 16px; }
.footer-col address { font-style: normal; line-height: 1.8; margin-bottom: 10px; }
.footer-maplink { color: var(--gold-300); font-weight: 700; font-size: .92rem; }
.footer-maplink:hover { color: var(--gold-400); }
.footer-contact li { margin-bottom: 12px; line-height: 1.4; }
.footer-contact a { color: #fff; font-weight: 700; }
.footer-contact a:hover { color: var(--gold-300); }
.footer-tag { display: block; font-size: .8rem; color: rgba(233,237,247,.6); font-weight: 400; }

.footer-social { display: flex; gap: 12px; }
.social-link {
  width: 42px; height: 42px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.08); transition: background .25s, transform .25s var(--ease);
}
.social-link svg { width: 20px; height: 20px; fill: #fff; }
.social-link:hover { transform: translateY(-3px); }
.social-linkedin:hover { background: #0a66c2; }
.social-whatsapp:hover { background: #25d366; }

.footer-bottom { border-top: 1px solid rgba(255,255,255,.10); padding: 22px 0; }
.footer-bottom-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; font-size: .88rem; }
.footer-bottom a { color: var(--gold-300); }
.footer-bottom a:hover { color: var(--gold-400); }
.footer-bottom p { margin: 0; }

/* ---------- WhatsApp float ---------- */
.whatsapp-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 900;
  width: 58px; height: 58px; border-radius: 50%;
  background: #25d366; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 30px rgba(37,211,102,.5);
  animation: wa-pulse 2.6s infinite;
  transition: transform .25s var(--ease);
}
.whatsapp-float:hover { transform: scale(1.08); }
.whatsapp-float svg { width: 32px; height: 32px; fill: #fff; }
@keyframes wa-pulse {
  0% { box-shadow: 0 0 0 0 rgba(37,211,102,.5); }
  70% { box-shadow: 0 0 0 16px rgba(37,211,102,0); }
  100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); }
}

/* ---------- Cookie banner ---------- */
.cookie-banner {
  position: fixed; left: 22px; bottom: 22px; z-index: 950;
  max-width: 380px; background: #fff; border: 1px solid var(--line);
  box-shadow: var(--shadow-lg); border-radius: var(--radius); padding: 20px 22px;
}
.cookie-banner p { font-size: .9rem; color: var(--muted); margin: 0 0 14px; }
.cookie-banner a { color: var(--gold-500); font-weight: 700; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

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

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1024px) {
  .authority-grid { grid-template-columns: repeat(2, 1fr); }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .header-phone { display: none; }
}

@media (max-width: 860px) {
  :root { --header-h: 68px; }
  .nav-toggle { display: flex; }
  .header-cta { display: none; }
  .main-nav {
    position: fixed; top: var(--header-h); right: 0;
    width: min(320px, 84vw); height: calc(100vh - var(--header-h));
    flex-direction: column; align-items: stretch; gap: 4px;
    background: #fff; padding: 24px; margin: 0;
    box-shadow: var(--shadow-lg); border-left: 1px solid var(--line);
    transform: translateX(105%); transition: transform .35s var(--ease);
    overflow-y: auto;
  }
  .main-nav.open { transform: translateX(0); }
  .nav-link { padding: 14px 12px; border-radius: 10px; font-size: 1.05rem; border-bottom: 1px solid var(--line); }
  .nav-link::after { display: none; }
  .nav-link:hover, .nav-link.active { background: var(--bg-tint); }
  .main-nav::after {
    content: "Agendar consulta";
    margin-top: 14px; text-align: center;
    background: linear-gradient(135deg, var(--gold-400), var(--gold-500)); color: #2a1e05;
    padding: 14px; border-radius: 999px; font-weight: 800;
  }

  .grid-2, .grid-2-wide { grid-template-columns: 1fr; gap: 40px; }
  .escritorio-grid { grid-template-columns: 1fr; gap: 48px; }
  .founder { max-width: 360px; margin: 0 auto; }
  .pillars { grid-template-columns: 1fr; gap: 18px; margin-top: 48px; }
  .cards { grid-template-columns: 1fr; }
  .profiles { grid-template-columns: 1fr; }
  .partners { grid-template-columns: 1fr; }
  .authority-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .section { padding: 72px 0; }
  .section-head { margin-bottom: 40px; }
}

@media (max-width: 520px) {
  body { font-size: 16px; }
  .container { padding: 0 18px; }
  .hero { min-height: auto; padding: calc(var(--header-h) + 56px) 0 64px; }
  .hero-actions .btn { width: 100%; }
  .creds-card { padding: 34px 26px; }
  .cookie-banner { left: 12px; right: 12px; max-width: none; bottom: 12px; }
  .whatsapp-float { width: 52px; height: 52px; right: 14px; bottom: 14px; }
  .footer-bottom-inner { flex-direction: column; align-items: flex-start; }
}
