/* ═══════════════════════════════════════
   CARIAS ADVOCACIA — Shared Stylesheet
═══════════════════════════════════════ */

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* ── Tokens ── */
:root {
  --bg:        #0f1d36;
  --bg-alt:    #0a1628;
  --bg-card:   #162444;
  --bg-light:  #1a2d50;
  --gold:      #b8944a;
  --gold-dim:  rgba(184,148,74,.3);
  --white:     #ffffff;
  --dim:       rgba(255,255,255,.6);
  --faint:     rgba(255,255,255,.15);
  --rule:      rgba(255,255,255,.1);
  --radius:    4px;
}

/* ── Typography ── */
h1, h2, h3, h4 {
  font-family: 'Cormorant Garamond', serif;
  line-height: 1.2;
  color: var(--white);
}
h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); font-weight: 300; }
h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); font-weight: 400; }
h3 { font-size: 1.4rem; font-weight: 500; }
p  { color: var(--dim); line-height: 1.8; text-align: justify; }

/* Justifica textos em divs de conteúdo */
.hero-sub, .area-desc, .about-text, .cred-course,
.info-value, .footer-desc, .pub-excerpt,
.area-block-body p, .section p, .card p,
[class*="-text"] p, [class*="-desc"], [class*="-body"] p,
[class*="-content"] p { text-align: justify; }

/* ── Layout ── */
.container { max-width: 1100px; margin: 0 auto; padding: 0 40px; }
.section    { padding: 96px 0; }

/* ── Header ── */
#header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 900;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--rule);
  transition: box-shadow .3s;
}
#header.scrolled { box-shadow: 0 2px 32px rgba(0,0,0,.4); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.logo img { height: 58px; width: auto; }

nav {
  display: flex;
  align-items: center;
  gap: 8px;
}
nav a {
  font-size: .75rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--dim);
  padding: 8px 14px;
  border-radius: var(--radius);
  transition: color .2s, background .2s;
}
nav a:hover       { color: var(--white); background: var(--faint); }
nav a.active      { color: var(--white); }
nav a.nav-cta {
  background: var(--gold);
  color: var(--white);
  padding: 8px 18px;
}
nav a.nav-cta:hover { background: #a07d38; }

.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 22px; height: 1px;
  background: var(--white);
  margin: 6px 0;
  transition: all .3s;
}

/* ── Mobile menu ── */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--bg-alt);
  z-index: 899;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.8rem;
  font-weight: 400;
  color: var(--white);
  transition: color .2s;
}
.mobile-menu a:hover { color: var(--gold); }
.mobile-close {
  position: absolute;
  top: 22px; right: 40px;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--dim);
  cursor: pointer;
}

/* ── Page Banner ── */
.page-banner {
  padding-top: 76px;
  min-height: 280px;
  background: var(--bg-alt);
  display: flex;
  align-items: flex-end;
  border-bottom: 1px solid var(--rule);
}
.page-banner .container {
  padding-bottom: 48px;
}
.banner-breadcrumb {
  font-size: .68rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}
.banner-breadcrumb span { color: var(--dim); margin: 0 8px; }
.page-banner h1 { font-size: clamp(2rem, 4vw, 3rem); }
.page-banner p {
  margin-top: 12px;
  max-width: 540px;
  font-size: .95rem;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 26px;
  font-family: 'Inter', sans-serif;
  font-size: .75rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  cursor: pointer;
  border: none;
  transition: all .2s;
  border-radius: var(--radius);
}
.btn-gold    { background: var(--gold); color: var(--white); }
.btn-gold:hover { background: #a07d38; }
.btn-outline {
  background: transparent;
  border: 1px solid var(--rule);
  color: var(--dim);
}
.btn-outline:hover { border-color: var(--white); color: var(--white); }
.btn-wa {
  background: #25d366;
  color: var(--white);
}
.btn-wa:hover { background: #1ebc59; }

/* ── Gold rule ── */
.g-rule {
  width: 40px; height: 1px;
  background: var(--gold);
  margin: 20px 0;
}
.g-rule.center { margin: 20px auto; }

/* ── Section label ── */
.section-label {
  font-size: .65rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
  display: block;
}

/* ── Cards ── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 32px;
  transition: border-color .25s, transform .25s;
}
.card:hover { border-color: var(--gold-dim); transform: translateY(-2px); }

/* ── Footer ── */
footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--rule);
  padding: 52px 0 32px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 40px;
}
.footer-logo img { height: 96px; width: auto; margin-bottom: 16px; }
.footer-desc { font-size: .85rem; line-height: 1.75; color: var(--dim); }
.footer-social { display: flex; gap: 16px; margin-top: 20px; }
.footer-social a {
  font-size: .7rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--dim);
  transition: color .2s;
}
.footer-social a:hover { color: var(--gold); }

.footer-col h4 {
  font-family: 'Inter', sans-serif;
  font-size: .65rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 18px;
}
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-links a { font-size: .82rem; color: var(--dim); transition: color .2s; }
.footer-links a:hover { color: var(--white); }

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid var(--rule);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom p { font-size: .73rem; color: rgba(255,255,255,.3); }

/* ── WhatsApp float ── */
.wa-float {
  position: fixed;
  bottom: 28px; right: 28px;
  z-index: 800;
  width: 52px; height: 52px;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,.3);
  transition: transform .2s, box-shadow .2s;
}
.wa-float:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 28px rgba(37,211,102,.45);
}

/* ── Form ── */
.form-group {
  margin-bottom: 22px;
}
.form-group label {
  display: block;
  font-size: .62rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 8px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-light);
  border: 1px solid var(--rule);
  color: var(--white);
  font-family: 'Inter', sans-serif;
  font-size: .88rem;
  outline: none;
  border-radius: var(--radius);
  transition: border-color .2s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--gold); }
.form-group select option { background: var(--bg-card); }
.form-group textarea { resize: vertical; min-height: 100px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

/* ── Responsive ── */
@media (max-width: 960px) {
  .container { padding: 0 24px; }
  nav { display: none; }
  .hamburger { display: block; }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .form-row { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .section { padding: 64px 0; }
}
