/* =========================================================
   GONZAGA & AGRAMUNT — Quiet Luxury Jurídico
   Sistema de cores 90% P&B · 8% cinza · 2% bronze
   ========================================================= */

:root {
  --carvao: #171717;
  --carvao-soft: #2b2b2b;   /* texto de corpo escuro — evita preto absoluto */
  --ivory:  #F7F5F2;
  --warm:   #EFEDE8;
  --cinza:  #7D7D7D;        /* token de marca — labels decorativos */
  --cinza-text: #5f5f5f;    /* cinza de corpo com contraste AA */
  --bronze: #A18056;

  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans:  "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;

  --maxw: 1180px;
  --gutter: clamp(1.25rem, 5vw, 4rem);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--sans);
  font-weight: 400;
  color: var(--carvao);
  background: var(--ivory);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--carvao); color: var(--ivory); padding: .75rem 1.25rem;
}
.skip-link:focus { left: 1rem; top: 1rem; }

/* ---------- Tipografia ---------- */
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.08; letter-spacing: -0.025em; }
/* itálico serif é o próprio destaque; bronze reservado a 1 acento por título */
em { font-style: italic; color: var(--bronze); }

.eyebrow, .section-label {
  font-family: var(--sans);
  font-size: .72rem; font-weight: 500;
  letter-spacing: .28em; text-transform: uppercase;
  color: var(--cinza);
}
.section-label { display: inline-block; margin-bottom: 1.5rem; position: relative; padding-left: 2.75rem; }
.section-label::before {
  content: ""; position: absolute; left: 0; top: .5em;
  width: 2rem; height: 1px; background: var(--bronze);
}
.section-label.light { color: rgba(247,245,242,.65); }
.section-label.light::before { background: var(--bronze); }

/* ---------- Botões ---------- */
.btn {
  display: inline-block; font-family: var(--sans);
  font-size: .82rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase;
  padding: 1.05rem 2.2rem; border: 1px solid transparent; cursor: pointer;
  transition: background .4s var(--ease), color .4s var(--ease), border-color .4s var(--ease), transform .4s var(--ease);
}
.btn-primary { background: var(--carvao); color: var(--ivory); }
.btn-primary:hover { background: var(--bronze); }
.btn-ghost { background: transparent; color: currentColor; border-color: currentColor; }
.btn-ghost:hover { background: currentColor; color: var(--carvao); }
.hero .btn-ghost { color: var(--ivory); }
.hero .btn-ghost:hover { background: var(--ivory); color: var(--carvao); }
.btn-block { width: 100%; text-align: center; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background .5s var(--ease), padding .5s var(--ease), box-shadow .5s var(--ease);
  padding: 1.4rem 0;
}
.site-header.scrolled {
  background: rgba(23,23,23,.92);
  backdrop-filter: blur(10px);
  padding: .75rem 0;
  box-shadow: 0 1px 0 rgba(247,245,242,.08);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: .8rem; color: var(--ivory); }
/* símbolo escuro invertido para ivory + leve tom quente */
.brand-mark { width: 42px; height: 42px; object-fit: contain; filter: brightness(0) invert(1) sepia(.12) saturate(.6); transition: filter .4s var(--ease); }
.brand:hover .brand-mark { filter: brightness(0) invert(68%) sepia(28%) saturate(480%) hue-rotate(2deg); }
.brand-name { font-family: var(--serif); font-size: 1.25rem; letter-spacing: .02em; }
.brand-name .amp { color: var(--bronze); }

.nav-menu { list-style: none; display: flex; align-items: center; gap: 2.2rem; }
.nav-menu a { color: var(--ivory); font-size: .82rem; letter-spacing: .06em; position: relative; padding: .25rem 0; opacity: .85; transition: opacity .3s; }
.nav-menu a:hover { opacity: 1; }
.nav-menu a:not(.nav-cta)::after {
  content: ""; position: absolute; left: 0; bottom: -2px; width: 0; height: 1px;
  background: var(--bronze); transition: width .4s var(--ease);
}
.nav-menu a:not(.nav-cta):hover::after { width: 100%; }
.nav-cta { border: 1px solid rgba(247,245,242,.4); padding: .6rem 1.3rem !important; opacity: 1 !important; transition: background .4s, border-color .4s; }
.nav-cta:hover { background: var(--bronze); border-color: var(--bronze); }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; width: 34px; height: 34px; position: relative; }
.nav-toggle span { display: block; height: 1.5px; width: 24px; background: var(--ivory); margin: 5px auto; transition: transform .4s var(--ease), opacity .3s; }
.nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100svh; display: flex; align-items: center;
  background: var(--carvao); color: var(--ivory);
  padding: 8rem 0 6rem; overflow: hidden;
}
.hero::after { /* elemento proprietário: diagonal inspirada no corte da logo */
  content: ""; position: absolute; top: -20%; right: 8%; width: 1px; height: 150%;
  background: linear-gradient(to bottom, transparent, rgba(161,128,79,.75), transparent);
  transform: rotate(24deg); transform-origin: top;
}
.hero-inner { position: relative; z-index: 2; max-width: 900px; }
.hero .eyebrow { display: block; margin-bottom: 2rem; color: rgba(247,245,242,.72); }
.hero-title {
  font-size: clamp(2.3rem, 8vw, 6rem); font-weight: 300;
  margin-bottom: 2rem; letter-spacing: -0.02em; overflow-wrap: break-word;
}
.hero-sub { max-width: 46ch; font-size: clamp(1rem, 1.6vw, 1.18rem); color: rgba(247,245,242,.75); font-weight: 300; margin-bottom: 2.8rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; }

.scroll-cue { position: absolute; bottom: 2.2rem; left: 50%; transform: translateX(-50%); z-index: 2; }
.scroll-cue span { display: block; width: 1px; height: 54px; background: rgba(247,245,242,.4); position: relative; overflow: hidden; }
.scroll-cue span::after { content: ""; position: absolute; top: -50%; left: 0; width: 100%; height: 50%; background: var(--bronze); animation: cue 2.4s var(--ease) infinite; }
@keyframes cue { 0% { top: -50%; } 60%,100% { top: 100%; } }

/* ---------- Seções base ---------- */
.section { padding: clamp(5rem, 12vh, 9rem) 0; position: relative; }
.section-title { font-size: clamp(2rem, 4.5vw, 3.4rem); font-weight: 300; margin-bottom: 1rem; }
.section-title.light { color: var(--ivory); }

/* ---------- Manifesto ---------- */
.manifesto { background: var(--warm); }
.manifesto-title { font-size: clamp(1.9rem, 4.6vw, 3.6rem); font-weight: 300; max-width: 20ch; margin-bottom: 3rem; }
.manifesto-body { display: grid; grid-template-columns: 1fr; gap: 2rem; max-width: 62ch; margin-left: auto; }
.manifesto-body p { font-size: 1.08rem; color: var(--carvao-soft); }
.manifesto-quote { font-family: var(--serif); font-style: italic; font-size: 1.5rem; color: var(--bronze); }

/* ---------- Áreas ---------- */
.areas { background: var(--warm); }
.areas-head { max-width: 60ch; margin-bottom: 4rem; }
.areas-lead { margin-top: 1.3rem; color: var(--cinza-text); font-size: 1.08rem; max-width: 54ch; }
.areas-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.area-card {
  position: relative; overflow: hidden; background: var(--ivory);
  border: 1px solid rgba(23,23,23,.08); padding: 2.8rem 2.4rem 3rem;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .5s var(--ease);
}
.area-card::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 0;
  background: var(--bronze); transition: width .55s var(--ease);
}
.area-card:hover { border-color: rgba(23,23,23,.22); }
.area-card:hover::after { width: 100%; }
.area-watermark {
  position: absolute; top: .8rem; right: 1.4rem;
  font-family: var(--serif); font-size: 3.6rem; line-height: 1;
  color: rgba(23,23,23,.06); transition: color .5s var(--ease);
}
.area-card:hover .area-watermark { color: rgba(23,23,23,.12); }
.area-icon { display: block; width: 42px; height: 42px; color: var(--carvao); margin-bottom: 1.6rem; }
.area-icon svg { width: 100%; height: 100%; }
.area-card h3 { font-size: 1.55rem; line-height: 1.12; margin-bottom: 1rem; font-weight: 400; }
.area-card p { font-size: .97rem; color: var(--cinza-text); }
.areas-cta { margin-top: 3.5rem; text-align: center; }
@media (max-width: 980px) { .areas-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) {
  .areas-grid { grid-template-columns: 1fr; }
  /* contato: empilhar rótulo/valor e apertar menos o formulário */
  .contato-list li { grid-template-columns: 1fr; gap: .35rem; }
  .contato-list span { margin-bottom: .1rem; }
  .contato-form { padding: 1.8rem 1.4rem; }
  .area-card { padding: 2.4rem 1.8rem 2.6rem; }
}

/* ---------- Método ---------- */
.metodo { background: var(--carvao); color: var(--ivory); }
.metodo-inner { display: grid; grid-template-columns: 1fr; gap: 4rem; }
.metodo-lead { color: rgba(247,245,242,.7); max-width: 44ch; margin-top: 1rem; font-weight: 300; }
.metodo-list { list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); gap: 3.2rem 4.5rem; }
.metodo-list li { display: flex; gap: 1.6rem; align-items: flex-start; padding-top: 2rem; border-top: 1px solid rgba(247,245,242,.15); }
.m-num { font-family: var(--serif); font-size: 1.4rem; color: rgba(247,245,242,.55); flex-shrink: 0; line-height: 1; padding-top: .1em; }
.metodo-list h3 { font-size: 1.4rem; font-weight: 400; margin-bottom: .6rem; color: var(--ivory); }
.metodo-list p { color: rgba(247,245,242,.78); font-size: .96rem; font-weight: 300; }
@media (max-width: 720px) { .metodo-list { grid-template-columns: 1fr; gap: 2.5rem; } }

/* ---------- Advogados ---------- */
.adv-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 3.5rem; margin-top: 3.5rem; }
.adv-card { }
.adv-photo {
  aspect-ratio: 4/5; background: var(--warm); overflow: hidden; margin-bottom: 1.8rem;
  position: relative;
}
.adv-photo img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.04); transition: filter .6s var(--ease), transform 1.2s var(--ease); }
.adv-card:hover .adv-photo img { filter: grayscale(1) contrast(1.08); transform: scale(1.03); }
.adv-info h3 { font-size: 1.7rem; font-weight: 400; }
.adv-role { font-size: .74rem; letter-spacing: .22em; text-transform: uppercase; color: var(--bronze); margin: .5rem 0 1.2rem; }
.adv-bio { color: var(--carvao-soft); margin-bottom: 1rem; }
.adv-tags { font-family: var(--serif); font-style: italic; font-size: 1.1rem; color: var(--carvao); margin-bottom: 1rem; }
.adv-oab { font-size: .85rem; color: var(--cinza-text); border-left: 1px solid var(--bronze); padding-left: 1rem; }

/* ---------- Contato ---------- */
.contato { background: var(--carvao); color: var(--ivory); position: relative; overflow: hidden; }
.contato::before { /* diagonal proprietária recorrente */
  content: ""; position: absolute; top: -25%; left: 6%; width: 1px; height: 150%;
  background: linear-gradient(to bottom, transparent, rgba(161,128,79,.4), transparent);
  transform: rotate(24deg); transform-origin: top; pointer-events: none;
}
.contato-inner { position: relative; z-index: 1; }
.contato-inner { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 6vw, 6rem); align-items: start; }
.contato-lead { color: rgba(247,245,242,.72); margin: 1.5rem 0 2.5rem; font-weight: 300; max-width: 40ch; }
.contato-list { list-style: none; display: grid; gap: 1.3rem; }
.contato-list li { display: grid; grid-template-columns: 90px 1fr; gap: 1rem; align-items: baseline; padding-bottom: 1.3rem; border-bottom: 1px solid rgba(247,245,242,.12); font-size: .98rem; }
.contato-list span { font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; color: var(--cinza); }
.contato-list a:hover { color: var(--bronze); }

.contato-form { background: var(--ivory); color: var(--carvao); padding: clamp(2rem, 4vw, 3rem); }
.field { margin-bottom: 1.4rem; }
.field label { display: block; font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--cinza); margin-bottom: .55rem; }
.field input, .field select, .field textarea {
  width: 100%; max-width: 100%; min-width: 0; font-family: var(--sans); font-size: 1rem; color: var(--carvao);
  background: transparent; border: 0; border-bottom: 1px solid rgba(23,23,23,.25);
  padding: .6rem 0; transition: border-color .4s var(--ease);
}
/* impede que itens de grid (ex.: select longo) estourem a largura no mobile */
.contato-inner > *, .footer-inner > *, .metodo-list > *, .areas-grid > *, .contato-list li { min-width: 0; }
.contato-list li a, .contato-list li { overflow-wrap: anywhere; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--bronze); }
.field textarea { resize: vertical; }
.form-micro { font-size: .8rem; color: var(--cinza-text); margin-top: 1rem; text-align: center; }
.hidden-field { display: none; }

/* ---------- Footer ---------- */
.site-footer { background: var(--carvao); color: rgba(247,245,242,.72); padding: 4.5rem 0 2.5rem; }
.footer-inner { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 2.5rem; align-items: start; }
.footer-brand { display: flex; align-items: center; gap: 1rem; }
.footer-brand img { width: 52px; height: 52px; object-fit: contain; filter: brightness(0) invert(1) sepia(.12) saturate(.6); }
.footer-brand p { font-family: var(--serif); font-size: 1.2rem; color: var(--ivory); line-height: 1.2; }
.footer-brand span { font-size: .8rem; letter-spacing: .1em; color: var(--cinza); }
.footer-nav { display: flex; flex-direction: column; gap: .8rem; font-size: .9rem; }
.footer-nav a:hover { color: var(--bronze); }
.footer-legal { font-size: .78rem; line-height: 1.7; color: var(--cinza); }

/* ---------- WhatsApp flutuante ---------- */
.wa-float {
  position: fixed; bottom: 1.6rem; right: 1.6rem; z-index: 90;
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--carvao); color: var(--ivory);
  display: grid; place-items: center;
  box-shadow: 0 8px 30px rgba(23,23,23,.35);
  transition: background .4s var(--ease), transform .4s var(--ease);
}
.wa-float:hover { background: var(--bronze); transform: translateY(-3px); }

/* ---------- Hero: entrada por CSS puro (aparece mesmo sem JS) ---------- */
.hero-in { opacity: 0; animation: heroIn 1s var(--ease) forwards; }
.hero-inner .hero-in:nth-child(1) { animation-delay: .1s; }
.hero-inner .hero-in:nth-child(2) { animation-delay: .25s; }
.hero-inner .hero-in:nth-child(3) { animation-delay: .4s; }
.hero-inner .hero-in:nth-child(4) { animation-delay: .55s; }
@keyframes heroIn { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

/* ---------- Reveal on scroll (só esconde quando há JS ativo) ---------- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .hero-in { animation: none; opacity: 1; }
  .js .reveal { opacity: 1 !important; transform: none !important; transition: none; }
  .scroll-cue span::after { animation: none; }
}

/* ---------- Responsivo ---------- */
@media (max-width: 860px) {
  .contato-inner { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
  .nav-toggle { display: block; z-index: 110; }
  .nav-menu {
    position: fixed; inset: 0; background: rgba(23,23,23,.98);
    flex-direction: column; justify-content: center; gap: 2.2rem;
    transform: translateX(100%); transition: transform .5s var(--ease);
  }
  .nav-menu.open { transform: none; }
  .nav-menu a { font-size: 1.4rem; font-family: var(--serif); }
  .nav-cta { border: 1px solid var(--bronze); }
}
