/* ==============================================
   O CÓDIGO DA ADVOGADA — STYLE.CSS (GLOBAL)
   Brandbook: Feltran Angeli · Versão 1.0
   ============================================== */

/* ==============================================
   1. TOKENS — DESIGN SYSTEM
   ============================================== */
:root {
  /* === PALETA INSTITUCIONAL — FELTRAN ANGELI === */
  --fa-navy:            #0C365A;
  --fa-navy-deep:       #082544;
  --fa-blue-editorial:  #5B758F;
  --fa-gray:            #7A7A7A;
  --fa-gray-light:      #DADBDC;
  --fa-off-white:       #F8F9FA;
  --fa-white:           #FFFFFF;
  --fa-text:            #1A1A1A;

  /* === PALETA OFICIAL — Fernanda Feltran PGD (Brand Guidelines) === */
  --cda-marsala:        #4F0025;  /* Burgundy/Vinho Roxo — cor primária */
  --cda-wine:           #3A001B;  /* Vinho mais escuro p/ hover e profundidade */
  --cda-caramel:        #D4A574;  /* Dourado Champagne luminoso — destaques */
  --cda-text-brown:     #301C23;  /* Preto Vinho — corpo de texto */
  --cda-terracotta:     #D4A574;  /* alias do champagne (compat eyebrows/borders) */
  --cda-oxblood:        #4E1B19;  /* Marrom Vinho/Oxblood — acentos quentes (uso pontual) */
  --cda-rose:           #F8F1E2;  /* Creme claro */
  --cda-sand:           #F5E9D8;  /* Champagne — fundo nude oficial */
  --cda-cream:          #FAF5E9;  /* Bege off-white p/ áreas suaves */
  --cda-moss:           #2F4F4F;  /* Verde Musgo (uso raro) */

  /* === ESTADOS === */
  --c-success:          #2E7D5B;
  --c-warning:          #C68A2E;
  --c-error:            #A53A2C;

  /* === TIPOGRAFIA — PGD oficial === */
  --ff-display: "Newsreader", Georgia, "Times New Roman", serif;
  --ff-body:    "Menbere", "Lora", Georgia, "Times New Roman", serif;

  --fs-h1: clamp(2.25rem, 4vw + 1rem, 4.5rem);
  --fs-h2: clamp(1.75rem, 2.5vw + 1rem, 3rem);
  --fs-h3: clamp(1.5rem, 1.5vw + 1rem, 2rem);
  --fs-h4: 1.375rem;
  --fs-body-l: 1.125rem;
  --fs-body: 1rem;
  --fs-small: 0.875rem;
  --fs-caption: 0.75rem;

  /* === ESPAÇAMENTO (8pt grid) === */
  --sp-1: 0.5rem;   /*  8px */
  --sp-2: 1rem;     /* 16px */
  --sp-3: 1.5rem;   /* 24px */
  --sp-4: 2rem;     /* 32px */
  --sp-5: 3rem;     /* 48px */
  --sp-6: 4rem;     /* 64px */
  --sp-7: 6rem;     /* 96px */
  --sp-8: 8rem;     /*128px */

  /* === BORDAS E RAIOS === */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 20px;
  --radius-pill: 999px;

  /* === SOMBRAS (suaves e quentes) === */
  --shadow-sm:  0 2px 8px rgba(12, 54, 90, 0.06);
  --shadow-md:  0 8px 24px rgba(12, 54, 90, 0.10);
  --shadow-lg:  0 16px 48px rgba(12, 54, 90, 0.14);
  --shadow-cda: 0 8px 24px rgba(79, 0, 37, 0.10);
  --shadow-cda-lg: 0 16px 48px rgba(79, 0, 37, 0.18);

  /* === TRANSITIONS === */
  --t-fast: 150ms ease;
  --t-base: 250ms ease;
  --t-slow: 400ms ease;

  /* === LAYOUT === */
  --container-max: 1200px;
  --container-pad: clamp(1.25rem, 4vw, 2rem);
}

/* ==============================================
   2. RESET MODERNO
   ============================================== */
*, *::before, *::after { box-sizing: border-box; }

* { margin: 0; padding: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: var(--ff-body);
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--cda-text-brown);
  background-color: var(--cda-cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, picture, video, svg {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--t-fast);
}

button {
  font-family: inherit;
  border: none;
  background: none;
  cursor: pointer;
  color: inherit;
}

ul, ol { list-style: none; }

input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

/* Acessibilidade — focus visível */
:focus-visible {
  outline: 3px solid var(--cda-terracotta);
  outline-offset: 3px;
  border-radius: 2px;
}

/* Reduce motion */
@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;
  }
}

/* ==============================================
   3. UTILITÁRIOS DE LAYOUT
   ============================================== */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

/* Esconder visualmente mas manter acessível */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* ==============================================
   4. TIPOGRAFIA — HIERARQUIA
   ============================================== */
.section-title {
  font-family: var(--ff-display);
  font-size: var(--fs-h2);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.005em;
  color: var(--cda-marsala);
  margin-bottom: var(--sp-3);
}

.section-title em {
  font-style: italic;
  color: var(--cda-terracotta);
}

.section-title--cream { color: var(--cda-cream); }

.lead {
  font-size: var(--fs-body-l);
  line-height: 1.6;
  color: var(--cda-text-brown);
  max-width: 60ch;
}

.lead strong { color: var(--cda-marsala); font-weight: 600; }

.eyebrow {
  display: inline-block;
  font-family: var(--ff-body);
  font-size: var(--fs-caption);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cda-marsala);
  margin-bottom: var(--sp-2);
  position: relative;
  padding-left: 36px;
}

.eyebrow::before {
  content: "";
  position: absolute;
  left: 0; top: 50%;
  width: 24px; height: 1px;
  background: var(--cda-terracotta);
  transform: translateY(-50%);
}

.eyebrow--caramel { color: var(--cda-caramel); }
.eyebrow--caramel::before { background: var(--cda-caramel); }
.eyebrow--cream { color: var(--cda-rose); }
.eyebrow--cream::before { background: var(--cda-rose); }

/* Pill eyebrow — referência dos criativos: tag premium no topo do hero */
.eyebrow--pill {
  padding: 9px 22px 9px 38px;
  border: 1px solid var(--cda-caramel);
  border-radius: 999px;
  font-size: 0.72rem;
  color: var(--cda-marsala);
  background: transparent;
  letter-spacing: 0.22em;
  font-weight: 500;
  position: relative;
}
.eyebrow--pill::before {
  content: "✻";
  position: absolute;
  left: 16px;
  top: 50%;
  width: auto; height: auto;
  background: transparent;
  color: var(--cda-caramel);
  font-size: 14px;
  transform: translateY(-50%);
}
/* sobre fundos escuros (CTA, O Código da Advogada) */
.eyebrow--pill.eyebrow--cream {
  border-color: var(--cda-caramel);
  color: var(--cda-sand);
}
.eyebrow--pill.eyebrow--cream::before { color: var(--cda-caramel); }

.section-header {
  text-align: center;
  margin-bottom: var(--sp-6);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.section-header .lead { margin-top: var(--sp-2); }

/* ==============================================
   5. BOTÕES (sistema)
   ============================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-1);
  font-family: var(--ff-body);
  font-weight: 500;
  letter-spacing: 0.02em;
  border-radius: var(--radius-md);
  padding: 14px 28px;
  cursor: pointer;
  transition: background var(--t-base), transform var(--t-base), box-shadow var(--t-base), color var(--t-base);
  text-align: center;
  white-space: nowrap;
  border: 1.5px solid transparent;
}

.btn i { width: 18px; height: 18px; }

/* Primário — Marsala (paleta da mentoria) */
.btn--primary {
  background: var(--cda-marsala);
  color: var(--cda-cream);
}
.btn--primary:hover {
  background: var(--cda-wine);
  transform: translateY(-2px);
  box-shadow: var(--shadow-cda);
}

/* Outline / Ghost */
.btn--ghost {
  background: transparent;
  color: var(--cda-marsala);
  border-color: var(--cda-marsala);
}
.btn--ghost:hover {
  background: var(--cda-marsala);
  color: var(--cda-cream);
}

/* Tamanhos */
.btn--sm { padding: 10px 18px; font-size: var(--fs-small); }
.btn--lg { padding: 16px 36px; font-size: var(--fs-body-l); }
.btn--full { width: 100%; }

/* ==============================================
   6. HEADER (LP minimalista)
   ============================================== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 243, 231, 0.92);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid rgba(122, 74, 48, 0.08);
}

.header__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-block: var(--sp-2);
  gap: var(--sp-3);
}

.header__brand {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.header__brand-name {
  font-family: var(--ff-display);
  font-size: 1.375rem;
  font-weight: 600;
  color: var(--cda-marsala);
  letter-spacing: -0.005em;
}

.header__brand-tag {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cda-caramel);
  font-weight: 500;
}

@media (max-width: 640px) {
  .header__cta { display: none; }
}

/* ==============================================
   7. FOOTER
   ============================================== */
.footer {
  background: var(--cda-marsala);
  color: var(--cda-sand);
  padding-top: var(--sp-7);
  margin-top: var(--sp-8);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1.6fr 1.2fr 1.2fr;
  gap: var(--sp-5);
  padding-bottom: var(--sp-6);
}

.footer__brand img {
  background: var(--fa-white);
  padding: 14px 18px;
  border-radius: var(--radius-md);
  width: 180px;
  height: auto;
  margin-bottom: var(--sp-3);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
}

.footer__brand-desc {
  font-size: var(--fs-small);
  line-height: 1.6;
  color: rgba(255,255,255,0.75);
  max-width: 28ch;
}

.footer__col h4 {
  font-family: var(--ff-display);
  font-size: 1.375rem;
  font-weight: 600;
  color: var(--fa-white);
  margin-bottom: var(--sp-3);
}

.footer__list,
.footer__social {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}

.footer__list li,
.footer__social li a {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: var(--fs-small);
  color: rgba(255,255,255,0.8);
  line-height: 1.5;
}

.footer__list a:hover,
.footer__social a:hover {
  color: var(--cda-rose);
}

.footer__list i,
.footer__social i {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: var(--cda-rose);
  margin-top: 3px;
}

.footer__list--links li {
  display: block;
}

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-block: var(--sp-3);
}

.footer__bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--fs-caption);
  color: rgba(255,255,255,0.6);
  flex-wrap: wrap;
}

@media (max-width: 900px) {
  .footer__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--sp-4);
  }
}

@media (max-width: 540px) {
  .footer__grid { grid-template-columns: 1fr; }
  .footer__bottom-inner { flex-direction: column; text-align: center; }
}

/* ==============================================
   8. STICKY CTA MOBILE
   ============================================== */
.sticky-cta {
  display: none;
  position: fixed;
  bottom: var(--sp-2);
  left: var(--sp-2);
  right: var(--sp-2);
  z-index: 90;
  background: var(--cda-marsala);
  color: var(--cda-cream);
  padding: 14px 20px;
  border-radius: var(--radius-pill);
  font-family: var(--ff-body);
  font-weight: 500;
  font-size: var(--fs-body);
  text-align: center;
  box-shadow: 0 8px 32px rgba(79, 0, 37, 0.35);
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.sticky-cta i { width: 18px; height: 18px; }

@media (max-width: 768px) {
  .sticky-cta { display: flex; }
}

/* ==============================================
   9. COOKIE BANNER (LGPD)
   ============================================== */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: var(--cda-cream);
  border-top: 2px solid var(--cda-marsala);
  box-shadow: 0 -8px 32px rgba(0,0,0,0.12);
  padding: var(--sp-3);
  transform: translateY(100%);
  transition: transform var(--t-slow);
}

.cookie-banner.is-visible { transform: translateY(0); }

.cookie-banner__content {
  max-width: var(--container-max);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--sp-3);
  flex-wrap: wrap;
}

.cookie-banner p {
  font-size: var(--fs-small);
  color: var(--cda-text-brown);
  flex: 1;
  min-width: 280px;
}

.cookie-banner a {
  color: var(--cda-marsala);
  text-decoration: underline;
}

.cookie-banner__actions {
  display: flex;
  gap: var(--sp-2);
  flex-wrap: wrap;
}
