/* =========================================================
   Deborah Fleischman — Advocacia Cível
   Design system: navy + gold (extraído da identidade da logo)
   Tipografia: Cormorant Garamond (display) + Plus Jakarta Sans (corpo)
   ========================================================= */

:root {
  --ivory: #F7F4EC;
  --paper: #FCFAF5;
  --navy-900: #0A1330;
  --navy-800: #0F1B3D;
  --navy-700: #182A57;
  --gold-600: #A6813E;
  --gold-500: #BD9A54;
  --gold-300: #DFC998;
  --ink: #1E1B16;
  --ink-soft: #55503F;
  --ink-faint: #837C68;
  --line: #E1D6BE;
  --line-dark: rgba(223, 201, 152, 0.25);

  --font-display: 'Cormorant Garamond', 'Iowan Old Style', Georgia, serif;
  --font-body: 'Plus Jakarta Sans', 'Segoe UI', -apple-system, sans-serif;

  --container: 1180px;
  --radius: 2px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { scroll-behavior: smooth; }

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

body {
  font-family: var(--font-body);
  background: var(--ivory);
  color: var(--ink);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; text-decoration: none; }

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

section { position: relative; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--ink);
  line-height: 1.15;
}

p { max-width: 62ch; }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* focus visibility */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--gold-600);
  outline-offset: 3px;
}

/* -------------------- Buttons -------------------- */

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: 15px 30px;
  border: 1px solid transparent;
  cursor: pointer;
  overflow: hidden;
  transition: color 0.4s var(--ease), border-color 0.4s var(--ease), transform 0.3s var(--ease);
}

.btn span { position: relative; z-index: 2; }
.btn svg { position: relative; z-index: 2; flex-shrink: 0; }

.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s var(--ease);
  z-index: 1;
}

.btn:hover { transform: translateY(-1px); }
.btn:hover::before { transform: scaleX(1); }

.btn-gold {
  background: var(--gold-600);
  color: var(--navy-900);
  border-color: var(--gold-600);
}
.btn-gold::before { background: var(--navy-900); }
.btn-gold:hover { color: var(--ivory); }

.btn-outline-light {
  background: transparent;
  color: var(--ivory);
  border-color: var(--line-dark);
}
.btn-outline-light::before { background: var(--gold-600); }
.btn-outline-light:hover { color: var(--navy-900); border-color: var(--gold-600); }

.btn-ghost {
  background: transparent;
  color: var(--navy-800);
  padding: 15px 4px;
  border-bottom: 1px solid var(--ink-faint);
}
.btn-ghost::before { display: none; }
.btn-ghost:hover { border-color: var(--navy-800); transform: none; }

/* -------------------- Navbar -------------------- */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 22px 0;
  transition: padding 0.4s var(--ease), background-color 0.4s var(--ease),
              box-shadow 0.4s var(--ease), backdrop-filter 0.4s var(--ease);
}

.nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-brand img {
  height: 32px;
  width: auto;
  filter: brightness(0) invert(1);
  transition: filter 0.4s var(--ease);
}

.nav-brand-text {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.08rem;
  letter-spacing: 0.01em;
  color: var(--ivory);
  white-space: nowrap;
  transition: color 0.4s var(--ease);
}

.nav.is-scrolled .nav-brand-text { color: var(--navy-800); }

.nav.is-scrolled {
  padding: 12px 0;
  background: rgba(247, 244, 236, 0.86);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  box-shadow: 0 1px 0 var(--line);
}

.nav.is-scrolled .nav-brand img { filter: none; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 34px;
  list-style: none;
}

.nav-links a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ivory);
  position: relative;
  padding-bottom: 4px;
  transition: color 0.35s var(--ease);
}

.nav.is-scrolled .nav-links a { color: var(--navy-800); }

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: var(--gold-600);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s var(--ease);
}

.nav-links a:hover::after,
.nav-links a.is-active::after { transform: scaleX(1); transform-origin: left; }

.nav-cta { display: flex; align-items: center; gap: 24px; }

.nav-cta .btn { padding: 11px 22px; font-size: 0.85rem; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 30px; height: 22px;
  position: relative;
  z-index: 200;
}
.nav-toggle span {
  position: absolute; left: 0; right: 0; height: 1.5px;
  background: var(--ivory);
  transition: transform 0.35s var(--ease), opacity 0.35s var(--ease), background 0.35s var(--ease);
}
.nav.is-scrolled .nav-toggle span { background: var(--navy-800); }
.nav-toggle span:nth-child(1) { top: 0; }
.nav-toggle span:nth-child(2) { top: 10px; }
.nav-toggle span:nth-child(3) { top: 20px; }

.nav-toggle.is-open span { background: var(--ivory) !important; }
.nav-toggle.is-open span:nth-child(1) { transform: translateY(10px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-10px) rotate(-45deg); }

/* -------------------- Hero -------------------- */

.hero {
  position: relative;
  background: radial-gradient(120% 140% at 78% -10%, var(--navy-700) 0%, var(--navy-800) 46%, var(--navy-900) 100%);
  color: var(--ivory);
  padding: 200px 0 140px;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--line-dark) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-dark) 1px, transparent 1px);
  background-size: 64px 64px;
  opacity: 0.35;
  mask-image: linear-gradient(180deg, transparent, rgba(0,0,0,0.6) 40%, transparent 90%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 760px;
}

.hero-logo {
  height: 152px;
  width: auto;
  margin-bottom: 34px;
  filter: brightness(0) invert(1);
  opacity: 0;
  transform: translateY(14px);
  animation: rise 0.9s var(--ease) forwards;
  animation-delay: 0.1s;
}

.hero h1 {
  font-size: clamp(2.4rem, 4.6vw, 3.6rem);
  font-weight: 500;
  color: var(--ivory);
  max-width: 15ch;
  opacity: 0;
  transform: translateY(16px);
  animation: rise 1s var(--ease) forwards;
  animation-delay: 0.3s;
}

.hero .lede {
  margin-top: 26px;
  font-size: 1.1rem;
  color: var(--gold-300);
  max-width: 46ch;
  opacity: 0;
  transform: translateY(16px);
  animation: rise 1s var(--ease) forwards;
  animation-delay: 0.5s;
}

.hero-actions {
  margin-top: 46px;
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
  opacity: 0;
  transform: translateY(16px);
  animation: rise 1s var(--ease) forwards;
  animation-delay: 0.7s;
}

@keyframes rise {
  to { opacity: 1; transform: translateY(0); }
}

/* small caption row used in sub-hero of service pages */
.eyebrow-plain {
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--gold-300);
  margin-bottom: 18px;
}

/* -------------------- Sub-hero (service pages) -------------------- */

.subhero {
  background: var(--navy-900);
  color: var(--ivory);
  padding: 170px 0 100px;
}

.subhero .container { max-width: 880px; }

.subhero h1 {
  color: var(--ivory);
  font-size: clamp(2.1rem, 4vw, 3rem);
  font-weight: 500;
  max-width: 18ch;
}

.subhero .lede {
  margin-top: 22px;
  font-size: 1.08rem;
  color: rgba(247,244,236,0.78);
  max-width: 58ch;
}

.subhero .hero-actions { margin-top: 40px; }

/* -------------------- Section spacing / headings -------------------- */

.section { padding: 118px 0; }
.section-tight { padding: 90px 0; }

.section-head { max-width: 640px; margin-bottom: 64px; }

.section-head h2 {
  font-size: clamp(1.9rem, 3vw, 2.5rem);
  font-weight: 500;
}

.section-head p {
  margin-top: 18px;
  color: var(--ink-soft);
  font-size: 1.05rem;
}

.section-dark {
  background: var(--navy-900);
  color: var(--ivory);
}
.section-dark h2 { color: var(--ivory); }
.section-dark .section-head p { color: rgba(247,244,236,0.7); }

.section-alt { background: var(--paper); }

/* -------------------- About / Sobre -------------------- */

.about-grid {
  display: grid;
  grid-template-columns: 0.82fr 1fr;
  gap: 88px;
  align-items: center;
}

.about-figure {
  position: relative;
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.about-figure.reveal-pending { opacity: 0; transform: translateY(24px); }
.about-figure.reveal-pending.is-visible { opacity: 1; transform: translateY(0); }

.about-figure-frame {
  position: relative;
  padding: 22px 22px 0 0;
}

.about-figure-frame::before {
  content: "";
  position: absolute;
  top: 22px; right: 0;
  width: 100%; height: 100%;
  border: 1px solid var(--gold-600);
  z-index: 0;
}

.about-figure img {
  position: relative;
  z-index: 1;
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  filter: grayscale(14%) contrast(1.02);
}

.about-copy {
  transition: opacity 0.9s var(--ease) 0.15s, transform 0.9s var(--ease) 0.15s;
}
.about-copy.reveal-pending { opacity: 0; transform: translateY(24px); }
.about-copy.reveal-pending.is-visible { opacity: 1; transform: translateY(0); }

.about-copy .role {
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  color: var(--gold-600);
  font-weight: 600;
  margin-bottom: 10px;
}

.about-copy h2 {
  font-size: clamp(2rem, 3.4vw, 2.7rem);
  margin-bottom: 22px;
}

.about-copy p {
  color: var(--ink-soft);
  font-size: 1.05rem;
  margin-bottom: 16px;
}

.value-list {
  margin-top: 34px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.value-list li {
  list-style: none;
  padding-left: 22px;
  position: relative;
  color: var(--ink);
  font-size: 1rem;
}

.value-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 9px;
  width: 10px; height: 1px;
  background: var(--gold-600);
}

/* -------------------- Services grid -------------------- */

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
  background: var(--line);
  border: 1px solid var(--line);
}

.service-card {
  background: var(--ivory);
  padding: 48px 44px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease), background 0.4s var(--ease);
}

.service-card.reveal-pending { opacity: 0; transform: translateY(20px); }
.service-card.reveal-pending.is-visible { opacity: 1; transform: translateY(0); }

.service-card:hover { background: var(--paper); }

.service-icon {
  width: 40px; height: 40px;
  color: var(--gold-600);
}

.service-card h3 {
  font-size: 1.5rem;
  font-weight: 600;
}

.service-card p {
  color: var(--ink-soft);
  font-size: 0.98rem;
  flex-grow: 1;
}

.service-card .btn-ghost { align-self: flex-start; }

/* -------------------- Situations checklist -------------------- */

.checklist {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px 48px;
  list-style: none;
}

.checklist li {
  position: relative;
  padding-left: 24px;
  font-size: 1.02rem;
  color: var(--ink);
  border-left: 1px solid var(--line);
  padding: 4px 0 4px 22px;
}

.checklist li::before {
  content: "";
  position: absolute;
  left: -1px; top: 0;
  width: 1px; height: 100%;
  background: var(--gold-600);
  transform: scaleY(1);
  transform-origin: top;
  transition: transform 0.6s var(--ease);
}

.checklist li.reveal-pending::before { transform: scaleY(0); }
.checklist li.reveal-pending.is-visible::before { transform: scaleY(1); }

/* -------------------- Pull quote -------------------- */

.pull-quote {
  padding: 100px 0;
  background: var(--paper);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.pull-quote blockquote {
  max-width: 780px;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  color: var(--navy-800);
  line-height: 1.4;
  position: relative;
  padding-left: 34px;
  border-left: 2px solid var(--gold-600);
}

/* -------------------- Process steps -------------------- */

.process {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
}

.process-step .num {
  font-family: var(--font-display);
  font-size: 2.6rem;
  color: var(--gold-600);
  font-weight: 500;
  margin-bottom: 18px;
  line-height: 1;
}

.process-step h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.process-step p {
  color: var(--ink-soft);
  font-size: 0.98rem;
}

/* -------------------- CTA band -------------------- */

.cta-band {
  background: var(--navy-900);
  color: var(--ivory);
  padding: 110px 0;
  position: relative;
  overflow: hidden;
}

.cta-band::before {
  content: "";
  position: absolute;
  width: 620px; height: 620px;
  border: 1px solid var(--line-dark);
  border-radius: 50%;
  top: -320px; right: -220px;
}

.cta-inner {
  position: relative;
  z-index: 1;
  max-width: 640px;
}

.cta-band h2 {
  color: var(--ivory);
  font-size: clamp(2rem, 3.6vw, 2.8rem);
}

.cta-band p {
  margin-top: 18px;
  color: rgba(247,244,236,0.72);
  font-size: 1.05rem;
  max-width: 50ch;
}

.cta-actions {
  margin-top: 40px;
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}

.cta-social {
  font-size: 0.92rem;
  color: var(--gold-300);
  border-bottom: 1px solid var(--line-dark);
  padding-bottom: 3px;
  transition: border-color 0.3s var(--ease), color 0.3s var(--ease);
}
.cta-social:hover { color: var(--ivory); border-color: var(--gold-600); }

/* -------------------- Footer -------------------- */

.footer {
  background: var(--navy-900);
  color: rgba(247,244,236,0.6);
  padding: 60px 0 34px;
  border-top: 1px solid var(--line-dark);
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  padding-bottom: 44px;
  flex-wrap: wrap;
}

.footer-brand-lockup {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.footer-brand-lockup img {
  height: 36px;
  width: auto;
  filter: brightness(0) invert(1);
}

.footer-brand-lockup span {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--ivory);
}

.footer-brand p { font-size: 0.88rem; max-width: 34ch; }

.footer-cols {
  display: flex;
  gap: 72px;
  flex-wrap: wrap;
}

.footer-col h4 {
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--gold-300);
  margin-bottom: 16px;
}

.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col a { font-size: 0.9rem; transition: color 0.3s var(--ease); }
.footer-col a:hover { color: var(--ivory); }

.footer-bottom {
  padding-top: 26px;
  border-top: 1px solid var(--line-dark);
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 0.82rem;
}

/* -------------------- Responsive -------------------- */

@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; gap: 48px; }
  .about-figure { max-width: 420px; }
  .services-grid { grid-template-columns: 1fr; }
  .process { grid-template-columns: 1fr; gap: 40px; }
  .checklist { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .nav-links, .nav-cta .btn-outline-light-desktop { display: none; }

  .nav-links {
    position: fixed;
    inset: 0;
    background: var(--navy-900);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 30px;
    transform: translateY(-100%);
    transition: transform 0.5s var(--ease);
  }
  .nav-links.is-open { transform: translateY(0); display: flex; }
  .nav-links a { color: var(--ivory); font-size: 1.3rem; }

  .nav-toggle { display: block; }

  .hero { padding: 150px 0 100px; }
  .subhero { padding: 130px 0 76px; }
  .section { padding: 84px 0; }

  .container { padding: 0 22px; }

  .footer-top { flex-direction: column; gap: 32px; }
  .footer-cols { gap: 40px; }
}

@media (max-width: 480px) {
  .hero-actions, .cta-actions { gap: 20px; }
  .btn { padding: 14px 24px; }
  .pull-quote blockquote { padding-left: 20px; }
  .nav-brand-text { display: none; }
}
