/* ============================================================
   HEADER.CSS — Monik Menezes Advocacia
   Componentes: Header fixo | Menu mobile | Info Panel lateral
   Uso: Todos os arquivos HTML do projeto
   
   Fontes necessárias (adicionar no <head> do HTML):
   <link href="https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;1,300&family=DM+Sans:wght@300;400;500&display=swap" rel="stylesheet">
============================================================ */

/* ============================================================
   VARIÁVEIS — Paleta e tokens de design
============================================================ */
:root {
  --hdr-height:   76px;
  --hdr-bg:       #40472D;
  --gold:         #c9a96e;
  --gold-light:   #e8d5b0;
  --white:        #f5f0eb;
  --muted:        rgba(245, 240, 235, 0.205);
  --panel-width:  380px;
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'DM Sans', sans-serif;
  --ease-expo:    cubic-bezier(0.19, 1, 0.22, 1);
  --ease-smooth:  cubic-bezier(0.45, 0, 0.55, 1);
}


/* ============================================================
   HEADER FIXO
   [ Todos os HTMLs ]
   Layout espelhado no desktop: nav | logo | nav+btn
============================================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 900;
  height: var(--hdr-height);
  background: var(--hdr-bg);
  border-bottom: 1px solid rgba(201, 169, 110, 0.10);
  transition: background 0.45s, box-shadow 0.45s;
}

/* Header com scroll — efeito frosted glass */
.site-header.is-scrolled {
  background: #40472d85;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 60px rgba(0, 0, 0, 0.55);
}

/* Links ficam pretos e mais fortes ao rolar */
.site-header.is-scrolled .nav-link {
  color: #e8d5b0;
  font-weight: 600;
  opacity: 1;
}

.site-header.is-scrolled .nav-link:hover {
  color: #c9a96e;
}

/* Grid: 3 colunas iguais — nav / logo / nav */
.site-header__inner {
  max-width: 1180px;
  margin: 0 auto;
  height: 100%;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 28px;
}

.site-header::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 4px;

  background: linear-gradient(
    90deg,
    #c9a96e 0%,
    #e8d3a3 25%,
    #4D1F27 50%,
    #e8d3a3 75%,
    #c9a96e 100%
  );

  background-size: 200% 100%;
  animation: goldFlash 3s linear infinite;
}   

@keyframes goldFlash {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

/* ============================================================
   LOGO CENTRAL
============================================================ */
.site-header__logo {
  grid-column: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 40px;
}

.site-header__logo img {
  height: 34px;
  width: auto;
  transition: opacity 0.35s, filter 0.35s;
}

.site-header__logo:hover img {
  opacity: 0.7;
}


.site-header__logo {
  position: relative;
}

.site-header__logo img {
  height: 60px;
  width: auto;
  transition: opacity 0.35s ease;
}

/* logo scroll começa escondida */
.logo-scroll {
  position: absolute;
  opacity: 0;
}

/* quando rolar */
.site-header.is-scrolled .logo-default {
  opacity: 0;
}

.site-header.is-scrolled .logo-scroll {
  opacity: 1;
}

/* ============================================================
   NAVEGAÇÃO DESKTOP — visível apenas ≥ 1024px
   [ Todos os HTMLs ]
============================================================ */
.site-header__nav {
  display: none;               /* escondido por padrão */
  align-items: center;
  gap: 32px;
}

@media (min-width: 1024px) {
  .site-header__nav {
    display: flex;
  }
}

/* Nav esquerda — alinhada à direita (encosta no logo) */
.site-header__nav--left {
  justify-content: flex-end;
}

/* Nav direita — alinhada à esquerda + botão info */
.site-header__nav--right {
  justify-content: flex-start;
  gap: 28px;
}

/* Links de navegação */
.nav-link {
  font-family: var(--font-body);
  font-size: 11.5px;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white);
  text-decoration: none;
  opacity: 0.55;
  position: relative;
  padding-bottom: 2px;
  transition: opacity 0.3s, color 0.3s;
}

/* Underline animado dourado */
.nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width 0.4s var(--ease-expo);
}

.nav-link:hover {
  opacity: 1;
  color: var(--gold-light);
}

.nav-link:hover::after {
  width: 100%;
}


/* ============================================================
   BOTÃO INFO (três traços circulares) — abre o painel lateral
   [ Todos os HTMLs ]
============================================================ */
.info-trigger {
  background: none;
  border: 1px solid rgba(201, 169, 110, 0.28);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 0;
  transition: border-color 0.3s, background 0.3s;
  flex-shrink: 0;
}

.info-trigger__bar {
  display: block;
  height: 1px;
  background: var(--gold);
  transition: width 0.3s var(--ease-expo);
}

.info-trigger__bar:nth-child(1) { width: 14px; }
.info-trigger__bar:nth-child(2) { width: 10px; }
.info-trigger__bar:nth-child(3) { width: 7px;  }

.info-trigger:hover {
  background: rgba(201, 169, 110, 0.07);
  border-color: var(--gold);
}

.info-trigger:hover .info-trigger__bar {
  width: 14px;
}


/* ============================================================
   HAMBÚRGUER — visível apenas ≤ 1023px
   [ Todos os HTMLs ]
============================================================ */
.hamburger {
  display: flex;
  grid-column: 3;
  justify-self: end;
  flex-direction: column;
  gap: 8px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

@media (min-width: 1024px) {
  .hamburger {
    display: none;
  }
}

.hamburger span {
  display: block;
  width: 24px;
  height: 1px;
  background: var(--white);
  border-radius: 1px;
  transform-origin: left center;
  transition: transform 0.45s var(--ease-expo),
              opacity 0.3s,
              width 0.35s var(--ease-expo);
}

/* Estado ativo: X */
.hamburger.is-active span:first-child {
  transform: rotate(42deg) scaleX(1.08);
}

.hamburger.is-active span:last-child {
  transform: rotate(-42deg) scaleX(1.08);
}


/* ============================================================
   MENU MOBILE — OVERLAY TELA CHEIA
   [ Todos os HTMLs ]
   Animação: círculo expande do canto superior direito
============================================================ */
.nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 1800;
  background: #060606;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 48px;

  /* Estado inicial: oculto como ponto no canto */
  pointer-events: none;
  clip-path: circle(0% at calc(100% - 44px) 44px);
  transition: clip-path 0.75s var(--ease-expo);
}

/* Textura sutil de grão */
.nav-overlay::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Linha decorativa vertical dourada */
.nav-overlay::after {
  content: '';
  position: absolute;
  top: 0;
  left: 48px;
  width: 1px;
  height: 100%;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(201, 169, 110, 0.35) 25%,
    rgba(201, 169, 110, 0.35) 75%,
    transparent 100%
  );
}

/* Estado aberto: círculo expande */
.nav-overlay.is-open {
  pointer-events: all;
  clip-path: circle(160% at calc(100% - 44px) 44px);
}

/* Botão fechar (×) */
.nav-overlay__close {
  position: absolute;
  top: 22px;
  right: 26px;
  background: none;
  border: none;
  color: rgba(245, 240, 235, 0.45);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  font-family: var(--font-body);
  font-weight: 300;
  transition: color 0.3s, transform 0.4s var(--ease-expo);
}

.nav-overlay__close:hover {
  color: var(--white);
  transform: rotate(90deg);
}

/* Eyebrow — subtítulo do escritório */
.nav-overlay__eyebrow {
  font-family: var(--font-body);
  font-size: 9.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 36px;
  padding-left: 24px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.4s 0.08s, transform 0.5s 0.08s var(--ease-expo);
}

.nav-overlay.is-open .nav-overlay__eyebrow {
  opacity: 1;
  transform: none;
}

/* Links de navegação (grandes, serif) */
.nav-overlay__nav {
  display: flex;
  flex-direction: column;
}

.nav-overlay__link {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(36px, 10vw, 60px);
  font-weight: 300;
  font-style: italic;
  color: rgba(245, 240, 235, 0.75);
  text-decoration: none;
  line-height: 1.15;
  padding: 10px 0 10px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  position: relative;
  overflow: hidden;

  /* Estado inicial (escondido) */
  opacity: 0;
  transform: translateX(-24px);
  transition: opacity 0.55s, transform 0.55s var(--ease-expo),
              color 0.3s, padding-left 0.4s var(--ease-expo);
}

/* Número decorativo */
.nav-overlay__link::before {
  content: attr(data-num);
  font-family: var(--font-body);
  font-size: 10px;
  font-style: normal;
  letter-spacing: 0.1em;
  color: var(--gold);
  position: absolute;
  left: -30px;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0;
  transition: opacity 0.3s, left 0.4s var(--ease-expo);
}

.nav-overlay__link:hover {
  color: var(--white);
  padding-left: 58px;
}

.nav-overlay__link:hover::before {
  opacity: 1;
  left: 24px;
}

/* Entrada escalonada dos links */
.nav-overlay.is-open .nav-overlay__link:nth-child(1) { opacity: 1; transform: none; transition-delay: 0.12s; }
.nav-overlay.is-open .nav-overlay__link:nth-child(2) { opacity: 1; transform: none; transition-delay: 0.18s; }
.nav-overlay.is-open .nav-overlay__link:nth-child(3) { opacity: 1; transform: none; transition-delay: 0.24s; }
.nav-overlay.is-open .nav-overlay__link:nth-child(4) { opacity: 1; transform: none; transition-delay: 0.30s; }
.nav-overlay.is-open .nav-overlay__link:nth-child(5) { opacity: 1; transform: none; transition-delay: 0.36s; }

/* Redes sociais (rodapé do menu mobile) */
.nav-overlay__footer {
  display: flex;
  gap: 24px;
  margin-top: 44px;
  padding-left: 24px;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.4s 0.42s, transform 0.45s 0.42s var(--ease-expo);
}

.nav-overlay.is-open .nav-overlay__footer {
  opacity: 1;
  transform: none;
}

.nav-overlay__social {
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.3s;
}

.nav-overlay__social:hover {
  color: var(--gold);
}


/* ============================================================
   INFO PANEL — Gaveta lateral direita
   [ Todos os HTMLs ]
   Abre pelo botão de traços no header
============================================================ */
.info-panel {
  position: fixed;
  inset: 0;
  z-index: 1500;
  pointer-events: none;
}

.info-panel.is-open {
  pointer-events: all;
}

/* Overlay escuro com blur */
.info-panel__bg {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.58);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity 0.45s;
  cursor: pointer;
}

.info-panel.is-open .info-panel__bg {
  opacity: 1;
}

/* Painel lateral */
.info-panel__drawer {
  position: absolute;
  top: 0;
  right: 0;
  width: min(var(--panel-width), 92vw);
  height: 100%;
  background: var(--hdr-bg);
  border-left: 1px solid rgba(201, 169, 110, 0.13);
  padding: 52px 36px 48px;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 0.6s var(--ease-expo);
  scrollbar-width: thin;
  scrollbar-color: rgba(201, 169, 110, 0.18) transparent;
}

.info-panel.is-open .info-panel__drawer {
  transform: translateX(0);
}

/* Botão fechar do painel */
.info-panel__close {
  position: absolute;
  top: 18px;
  right: 18px;
  background: none;
  border: none;
  cursor: pointer;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.info-panel__close span {
  position: absolute;
  display: block;
  width: 18px;
  height: 1px;
  background: rgba(0, 0, 0, 0.45);
  transition: background 0.3s;
}

.info-panel__close span:first-child { transform: rotate(45deg); }
.info-panel__close span:last-child  { transform: rotate(-45deg); }

.info-panel__close:hover span {
  background: var(--hdr-bg);
}

/* Logo dentro do painel */
.info-panel__logo {
  margin-bottom: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.info-panel__logo img {
  height: 60px;
  width: auto;
  
}

/* Bio / descrição */
.info-panel__bio {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 300;
  line-height: 1.8;
  color: var(--muted);
  margin-bottom: 24px;
}

/* Ícones sociais */
.info-panel__social {
  display: flex;
  gap: 10px;
  margin-bottom: 36px;
}

.info-panel__social a {
  width: 33px;
  height: 33px;
  border: 1px solid rgba(201, 169, 110, 0.22);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-size: 11px;
  text-decoration: none;
  transition: background 0.3s, border-color 0.3s, transform 0.3s;
}

.info-panel__social a:hover {
  background: rgba(201, 169, 110, 0.1);
  border-color: var(--gold);
  transform: translateY(-2px);
}

/* Divisor */
.info-panel__divider {
  height: 1px;
  border: none;
  background: rgba(201, 169, 110, 0.10);
  margin: 0 0 28px;
}

/* Títulos de seção dentro do painel */
.info-panel__section-title {
  font-family: var(--font-body);
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 18px;
}

/* Post recente */
.info-panel__post {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 18px;
}

.info-panel__post-img {
  width: 60px;
  height: 60px;
  flex-shrink: 0;
  border-radius: 2px;
  overflow: hidden;
  background: #1a1a1a;
}

.info-panel__post-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease-expo), opacity 0.3s;
}

.info-panel__post:hover .info-panel__post-img img {
  transform: scale(1.07);
  opacity: 0.85;
}

.info-panel__post-title {
  font-family: var(--font-display);
  font-size: 14.5px;
  font-weight: 400;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
  display: block;
  margin-bottom: 5px;
  transition: color 0.3s;
}

.info-panel__post-title:hover {
  color: var(--gold);
}

.info-panel__post-date {
  font-family: var(--font-body);
  font-size: 10.5px;
  /* color: var(--muted); */
  letter-spacing: 0.04em;
}

/* Newsletter */
.info-panel__newsletter-text {
  font-family: var(--font-body);
  font-size: 12.5px;
  font-weight: 300;
  line-height: 1.7;
  color: var(--muted);
  margin-bottom: 14px;
}

.info-panel__form {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.info-panel__input {
  /* background: rgba(255, 255, 255, 0.04); */
  border: 1px solid rgba(201, 169, 110, 0.20);
  border-radius: 2px;
  color: var(--hdr-bg);
  padding: 11px 14px;
  font-family: var(--font-body);
  font-size: 12.5px;
  outline: none;
  transition: border-color 0.3s;
}

.info-panel__input::placeholder {
  color: rgba(0, 0, 0, 0.2);
}

.info-panel__input:focus {
  border-color: rgba(201, 169, 110, 0.55);
}

.info-panel__submit {
  background: var(--gold);
  color: #070707;
  border: none;
  border-radius: 2px;
  padding: 12px 24px;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.3s, transform 0.2s;
}

.info-panel__submit:hover {
  background: var(--gold-light);
}

.info-panel__submit:active {
  transform: scale(0.98);
}


/* ============================================================
   ESPAÇADOR — evita conteúdo sob o header fixo
============================================================ */
body {
  padding-top: var(--hdr-height);
}


/* ============================================================
   RESPONSIVO — ajustes menores
============================================================ */

/* Tablet intermediário */
@media (max-width: 1023px) {
  /* No mobile, logo ocupa a coluna inteira da esquerda */
  .site-header__inner {
    grid-template-columns: 1fr auto;
    padding: 0 20px;
  }

  .site-header__logo {
    grid-column: 1;
    justify-content: flex-start;
    padding: 0;
  }
}

/* Mobile pequeno */
@media (max-width: 400px) {
  .nav-overlay {
    padding: 40px 28px;
  }

  .nav-overlay::after {
    left: 28px;
  }

  .nav-overlay__eyebrow,
  .nav-overlay__link,
  .nav-overlay__footer {
    padding-left: 16px;
  }
}
