/* =================================================================
   LOGOS – Consultoria e Assessoria Empresarial
   Redesign 2026 — single modern stylesheet, no build step.
   Palette: deep petrol teal + gold (from the Souza Lima & Lacerda mark).
   ================================================================= */

/* ---------- Fonts (self-hosted) ---------- */
@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/cormorant-500.woff2") format("woff2");
}
@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/cormorant-600.woff2") format("woff2");
}

/* ---------- Design tokens ---------- */
:root {
  --teal-900: #0a3b3f;
  --teal-800: #0e4d52;
  --teal-700: #10595f;
  --teal-50:  #eef4f4;

  --gold-600: #b8881f;
  --gold-500: #c9a24b;
  --gold-300: #e3cd92;

  --ink:      #1c2224;
  --body:     #3f4749;
  --muted:    #6b7376;
  --line:     #e3e1da;
  --paper:    #faf8f4;
  --surface:  #ffffff;

  --font-display: "Cormorant Garamond", "Iowan Old Style", Palatino, Georgia, serif;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --maxw: 1180px;
  --gap: clamp(1.5rem, 4vw, 3rem);
  --radius: 4px;
  --shadow-sm: 0 1px 2px rgba(10, 59, 63, .06), 0 2px 8px rgba(10, 59, 63, .06);
  --shadow-md: 0 8px 30px rgba(10, 59, 63, .12);
  --ease: cubic-bezier(.2, .6, .2, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: clamp(1rem, .96rem + .2vw, 1.075rem);
  line-height: 1.7;
  color: var(--body);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal-700); text-decoration-color: var(--gold-300); text-underline-offset: 3px; }
a:hover { color: var(--gold-600); }
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--ink); line-height: 1.12; font-weight: 600; margin: 0 0 .5em; letter-spacing: .002em; }
p { margin: 0 0 1rem; }
ul, ol { margin: 0 0 1rem; padding-left: 1.25rem; }
li { margin-bottom: .35rem; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }

/* ---------- Accessibility helpers ---------- */
.skip-link {
  position: absolute; left: 1rem; top: -3rem;
  background: var(--gold-500); color: var(--teal-900);
  padding: .6rem 1rem; border-radius: var(--radius); font-weight: 700; z-index: 200;
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 1rem; color: var(--teal-900); }
:focus-visible { outline: 3px solid var(--gold-500); outline-offset: 2px; border-radius: 2px; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: clamp(1.1rem, 4vw, 2rem); }
.section { padding-block: clamp(3.5rem, 8vw, 6rem); }
.section--tint { background: var(--surface); }
.section--teal { background: var(--teal-800); color: #dfeceb; }
.section--teal h2, .section--teal h3 { color: #fff; }

.eyebrow {
  font-family: var(--font-sans);
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: .76rem;
  font-weight: 700;
  color: var(--gold-600);
  margin-bottom: .75rem;
}
.section--teal .eyebrow { color: var(--gold-300); }
.section-title { font-size: clamp(2rem, 1.4rem + 2.2vw, 3rem); margin-bottom: 1rem; }
.section-head { max-width: 56ch; margin-bottom: clamp(2rem, 5vw, 3rem); }
.section-head--center { margin-inline: auto; text-align: center; }
.lead { font-size: 1.15rem; color: var(--muted); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--font-sans); font-weight: 600; font-size: .98rem;
  padding: .8rem 1.5rem; border-radius: var(--radius);
  border: 1.5px solid transparent; cursor: pointer; text-decoration: none;
  transition: transform .18s var(--ease), background .18s var(--ease), color .18s var(--ease), border-color .18s var(--ease);
}
.btn--primary { background: var(--gold-500); color: var(--teal-900); }
.btn--primary:hover { background: var(--gold-300); color: var(--teal-900); transform: translateY(-2px); }
.btn--ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .55); }
.btn--ghost:hover { background: rgba(255, 255, 255, .12); color: #fff; border-color: #fff; }
.btn--outline { background: transparent; color: var(--teal-700); border-color: var(--teal-700); }
.btn--outline:hover { background: var(--teal-700); color: #fff; transform: translateY(-2px); }
.btn-row { display: flex; flex-wrap: wrap; gap: .9rem; }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--teal-800);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 76px; }
.brand { display: inline-flex; align-items: center; gap: .9rem; }
.brand img { display: block; }
.brand .brand-logos { height: 30px; width: auto; }
.brand .brand-logos--partner { height: 38px; border-left: 1px solid rgba(255,255,255,.25); padding-left: .9rem; }

.nav-toggle {
  display: none; background: transparent; border: 0; cursor: pointer; padding: .5rem;
  color: #fff;
}
.nav-toggle svg { display: block; }

.nav-menu { display: flex; align-items: center; gap: .35rem; list-style: none; margin: 0; padding: 0; }
.nav-menu a {
  display: inline-block; color: #e7efee; text-decoration: none; font-weight: 600;
  font-size: .96rem; padding: .55rem .85rem; border-radius: var(--radius);
  transition: color .15s var(--ease), background .15s var(--ease);
}
.nav-menu a:hover { color: #fff; background: rgba(255, 255, 255, .08); }
.nav-menu a[aria-current="page"] { color: var(--gold-300); }
.nav-menu a[aria-current="page"]::after {
  content: ""; display: block; height: 2px; background: var(--gold-500);
  margin-top: 4px; border-radius: 2px;
}
.nav-cta { margin-left: .5rem; }

@media (max-width: 880px) {
  .nav-toggle { display: inline-flex; }
  .nav-menu {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--teal-800); padding: .5rem 1rem 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    box-shadow: var(--shadow-md);
    display: none;
  }
  .nav-menu.is-open { display: flex; }
  .nav-menu a { padding: .85rem .5rem; border-bottom: 1px solid rgba(255, 255, 255, .07); }
  .nav-menu a[aria-current="page"]::after { display: none; }
  .nav-cta { margin: .75rem .5rem 0; }
  .nav-cta .btn { width: 100%; justify-content: center; }
  .brand .brand-logos--partner { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; color: #fff;
  background: linear-gradient(180deg, rgba(10, 59, 63, .82), rgba(10, 59, 63, .92)), var(--teal-900);
  background-size: cover; background-position: center;
  overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background-image: var(--hero-img);
  background-size: cover; background-position: center;
  mix-blend-mode: luminosity; opacity: .28; z-index: 0;
}
.hero .container { position: relative; z-index: 1; padding-block: clamp(4.5rem, 12vw, 8.5rem); }
.hero-inner { max-width: 44ch; }
.hero h1 {
  color: #fff; font-size: clamp(2.6rem, 1.6rem + 4vw, 4.6rem);
  font-weight: 600; line-height: 1.05; margin-bottom: 1rem;
}
.hero p { font-size: clamp(1.1rem, 1rem + .5vw, 1.35rem); color: #dbe7e6; margin-bottom: 2rem; max-width: 42ch; }
.hero .btn-row { margin-bottom: 1.75rem; }
.hero-contact { display: flex; flex-wrap: wrap; gap: .4rem 1.6rem; font-size: .95rem; color: #cddddc; }
.hero-contact a { color: #cddddc; text-decoration: none; }
.hero-contact a:hover { color: var(--gold-300); }

/* ---------- Intro / two-column ---------- */
.split { display: grid; gap: clamp(2rem, 5vw, 4rem); grid-template-columns: 1fr; align-items: center; }
@media (min-width: 820px) { .split { grid-template-columns: 1fr 1fr; } .split--media-first .split-media { order: -1; } }
.split-media img { border-radius: var(--radius); box-shadow: var(--shadow-md); width: 100%; object-fit: cover; }
.prose p:last-child { margin-bottom: 0; }
.prose strong { color: var(--ink); }

.stat-row { display: flex; flex-wrap: wrap; gap: 2.5rem; margin-top: 1.75rem; }
.stat .num { font-family: var(--font-display); font-size: 2.6rem; font-weight: 600; color: var(--teal-700); line-height: 1; }
.stat .label { font-size: .9rem; color: var(--muted); }

/* ---------- Practice-area grid (home) ---------- */
.areas-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.area-card {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.15rem 1.25rem; text-decoration: none; color: var(--ink); font-weight: 600;
  font-family: var(--font-display); font-size: 1.3rem;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), border-color .18s var(--ease);
}
.area-card span.arrow { color: var(--gold-500); transition: transform .18s var(--ease); }
.area-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--gold-300); color: var(--teal-800); }
.area-card:hover span.arrow { transform: translateX(4px); }

/* ---------- Practice areas detail (atuação) ---------- */
.area-toc { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 3rem; }
.area-toc a {
  font-size: .9rem; font-weight: 600; text-decoration: none; color: var(--teal-700);
  background: var(--teal-50); border: 1px solid var(--line); padding: .4rem .85rem; border-radius: 999px;
}
.area-toc a:hover { background: var(--teal-700); color: #fff; border-color: var(--teal-700); }

.area-block { scroll-margin-top: 100px; padding-block: clamp(2.5rem, 5vw, 3.5rem); border-top: 1px solid var(--line); }
.area-block:first-of-type { border-top: 0; }
.area-block .split { align-items: start; }
.area-block h3 { font-size: clamp(1.6rem, 1.2rem + 1.5vw, 2.1rem); }
.area-block .split-media img { position: sticky; top: 100px; }

/* ---------- Team ---------- */
.team-lead { display: grid; gap: clamp(1.5rem, 4vw, 3rem); grid-template-columns: 1fr; }
@media (min-width: 820px) { .team-lead { grid-template-columns: 320px 1fr; align-items: start; } }
.team-lead .split-media img { position: sticky; top: 100px; }
.team-card {
  background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--gold-500);
  border-radius: var(--radius); padding: 1.5rem 1.75rem; margin-top: 1.5rem; box-shadow: var(--shadow-sm);
}
.team-card h3 { margin-bottom: .65rem; font-size: 1.6rem; }
.team-card ul { margin-bottom: 0; }
.tenure { display: flex; flex-wrap: wrap; gap: 1.5rem; margin-top: 1rem; }
.tenure .stat .num { font-size: 2rem; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; gap: clamp(2rem, 5vw, 3.5rem); grid-template-columns: 1fr; }
@media (min-width: 860px) { .contact-grid { grid-template-columns: 1.1fr .9fr; } }

.field { display: grid; gap: .4rem; margin-bottom: 1.1rem; }
.field label { font-weight: 600; color: var(--ink); font-size: .95rem; }
.field input, .field textarea {
  font: inherit; color: var(--ink); background: var(--surface);
  border: 1.5px solid var(--line); border-radius: var(--radius); padding: .75rem .9rem; width: 100%;
  transition: border-color .15s var(--ease), box-shadow .15s var(--ease);
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: 0; border-color: var(--teal-700); box-shadow: 0 0 0 3px rgba(16, 89, 95, .15); }
.field input:user-invalid, .field textarea:user-invalid { border-color: #b3261e; }
.field .error { color: #b3261e; font-size: .85rem; min-height: 1em; }
.form-status { margin-top: 1rem; font-weight: 600; }
.form-status[data-state="ok"] { color: var(--teal-700); }
.form-status[data-state="err"] { color: #b3261e; }

.info-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem 1.75rem; box-shadow: var(--shadow-sm); }
.info-card + .info-card { margin-top: 1.25rem; }
.info-card h3 { font-size: 1.35rem; margin-bottom: .5rem; }
.info-card address { font-style: normal; color: var(--body); }
.info-card a { font-weight: 600; }
.map-embed { margin-top: 1.25rem; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); display: block; }
.map-embed img { width: 100%; }

/* ---------- Contact strip (CTA band) ---------- */
.cta-band { text-align: center; }
.cta-band h2 { color: #fff; font-size: clamp(1.8rem, 1.3rem + 2vw, 2.6rem); }
.cta-band p { color: #cfe0df; max-width: 50ch; margin-inline: auto; margin-bottom: 1.75rem; }
.cta-band .btn-row { justify-content: center; }

/* ---------- Footer ---------- */
.site-footer { background: var(--teal-900); color: #b9cccb; padding-block: clamp(3rem, 6vw, 4.5rem) 2rem; }
.footer-grid { display: grid; gap: 2rem; grid-template-columns: 1fr; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.3fr 1fr 1fr; } }
.site-footer h4 { color: #fff; font-family: var(--font-sans); font-size: .82rem; text-transform: uppercase; letter-spacing: .14em; margin-bottom: 1rem; }
.site-footer a { color: #cddddc; text-decoration: none; }
.site-footer a:hover { color: var(--gold-300); }
.site-footer address { font-style: normal; line-height: 1.6; margin-bottom: 1.25rem; }
.footer-logo { height: 34px; width: auto; margin-bottom: 1.25rem; }
.footer-bottom { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid rgba(255, 255, 255, .12); font-size: .85rem; color: #8aa3a2; display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; justify-content: space-between; }

/* ---------- Reveal-on-scroll (progressive, JS-toggled) ---------- */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; } }
