/* ==========================================================================
   Malachias e Vallejo Advogados — Design System
   ========================================================================== */

:root {
  /* Brand colors (extraídas do logo oficial) */
  --orange: #ff6600;
  --orange-deep: #c24a00;   /* versão escura, usada em texto/botão p/ contraste AA */
  --gray: #6e6e6e;
  --gray-light: #a3a3a3;
  --charcoal: #222222;
  --ink: #2b2b2b;

  --bg: #ffffff;
  --bg-soft: #f7f6f4;
  --bg-soft-2: #f1efec;
  --border: #e5e2dd;

  --font-serif: "Lora", Georgia, "Times New Roman", serif;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --container: 1160px;
  --radius: 6px;
  --shadow: 0 4px 24px rgba(30, 26, 20, 0.08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  color: var(--charcoal);
  line-height: 1.25;
  margin: 0 0 0.5em;
  font-weight: 600;
}

h1 { font-size: clamp(2rem, 4vw, 2.85rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1em; }

a { color: var(--orange-deep); text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--orange-deep);
  margin-bottom: 0.75em;
}

.section {
  padding: 72px 0;
}
.section--soft { background: var(--bg-soft); }
.section--tight { padding: 48px 0; }

.section-head {
  max-width: 680px;
  margin: 0 0 40px;
}
.section-head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.18s ease;
  text-decoration: none !important;
}
.btn--primary {
  background: var(--orange-deep);
  color: #fff;
}
.btn--primary:hover { background: #a53f00; }
.btn--outline {
  border-color: var(--charcoal);
  color: var(--charcoal);
}
.btn--outline:hover { background: var(--charcoal); color: #fff; }
.btn--ghost-light {
  border-color: rgba(255,255,255,0.6);
  color: #fff;
}
.btn--ghost-light:hover { background: rgba(255,255,255,0.12); }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.96);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--border);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand img { height: 46px; width: auto; }

.nav {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav a {
  color: var(--ink);
  font-weight: 500;
  font-size: 0.95rem;
}
.nav a:hover { color: var(--orange-deep); text-decoration: none; }
.nav a.is-active { color: var(--orange-deep); }

.nav-cta { display: flex; align-items: center; gap: 16px; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--charcoal);
  margin: 5px 0;
  transition: 0.2s;
}

@media (max-width: 880px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute;
    top: 84px;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    align-items: flex-start;
    padding: 24px;
    gap: 18px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav-cta { flex-direction: column; align-items: flex-start; width: 100%; }
  .nav-cta .btn { width: 100%; justify-content: center; }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--bg-soft);
  padding: 96px 0 110px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}
.hero h1 { margin-bottom: 0.4em; }
.hero .lead {
  font-size: 1.15rem;
  color: #4a4a4a;
  max-width: 52ch;
}
.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 28px;
}
.hero-mark {
  display: flex;
  justify-content: center;
  align-items: center;
}
.hero-mark img { width: 100%; max-width: 380px; height: auto; }

@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-mark { order: -1; max-width: 220px; margin: 0 auto 16px; }
}

/* Chevron motif divider */
.chevron-divider {
  height: 46px;
  background: var(--bg-soft);
  position: relative;
}

/* ==========================================================================
   Cards / grids
   ========================================================================== */
.grid {
  display: grid;
  gap: 24px;
}
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }

@media (max-width: 880px) {
  .grid--3, .grid--2 { grid-template-columns: 1fr; }
}

.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: box-shadow 0.2s, transform 0.2s;
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }

.area-card {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.area-card .icon {
  flex: none;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: #fff2e8;
  color: var(--orange-deep);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  font-family: var(--font-serif);
}
.area-card h3 { font-size: 1.05rem; margin-bottom: 4px; }
.area-card p { font-size: 0.92rem; color: #5c5c5c; margin: 0; }

/* Values strip */
.values-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}
.value-chip {
  border: 1px solid var(--border);
  background: #fff;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.88rem;
  color: var(--gray);
}

/* Partners */
.partner-card {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}
.partner-avatar {
  flex: none;
  width: 84px; height: 84px;
  border-radius: 50%;
  background: linear-gradient(145deg, #fff2e8, #f1efec);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.6rem;
  color: var(--orange-deep);
}
.partner-card h3 { margin-bottom: 2px; }
.partner-oab {
  font-size: 0.85rem;
  color: var(--gray);
  margin-bottom: 10px;
  display: block;
}

/* CTA band */
.cta-band {
  background: var(--charcoal);
  color: #fff;
  padding: 64px 0;
  text-align: center;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: #d9d5cf; max-width: 60ch; margin: 0 auto 28px; }
.cta-band .actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ==========================================================================
   Accordion (áreas de atuação)
   ========================================================================== */
.accordion-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 14px;
  overflow: hidden;
  background: #fff;
  scroll-margin-top: 110px;
}
.accordion-item summary {
  cursor: pointer;
  list-style: none;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--charcoal);
}
.accordion-item summary::-webkit-details-marker { display: none; }
.accordion-item summary .plus {
  font-family: var(--font-sans);
  font-size: 1.4rem;
  color: var(--orange-deep);
  transition: transform 0.2s;
}
.accordion-item[open] summary .plus { transform: rotate(45deg); }
.accordion-item .accordion-body {
  padding: 0 24px 24px;
  color: #4a4a4a;
}
.accordion-item .accordion-body ul {
  margin: 0;
  padding-left: 20px;
}
.accordion-item .accordion-body li { margin-bottom: 8px; }

/* ==========================================================================
   Articles
   ========================================================================== */
.article-card h3 { margin-bottom: 8px; }
.article-meta {
  font-size: 0.82rem;
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 10px;
  display: block;
}
.article-body {
  max-width: 72ch;
  margin: 0 auto;
}
.article-body h2 { margin-top: 1.4em; }
.article-body p { color: #3c3c3c; }

/* ==========================================================================
   Contact
   ========================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}
@media (max-width: 880px) {
  .contact-grid { grid-template-columns: 1fr; }
}
.contact-item {
  display: flex;
  gap: 14px;
  margin-bottom: 22px;
}
.contact-item .icon {
  flex: none;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: #fff2e8;
  color: var(--orange-deep);
  display: flex; align-items: center; justify-content: center;
}
.contact-item h3 { font-size: 1rem; margin-bottom: 2px; }
.map-frame {
  width: 100%;
  height: 100%;
  min-height: 340px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.map-frame iframe { width: 100%; height: 100%; min-height: 340px; border: 0; }

/* WhatsApp floating button */
.whatsapp-fab {
  position: fixed;
  bottom: 22px;
  right: 22px;
  width: 58px; height: 58px;
  border-radius: 50%;
  background: #25d366;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 20px rgba(0,0,0,0.25);
  z-index: 90;
  transition: transform 0.15s;
}
.whatsapp-fab:hover { transform: scale(1.06); }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: var(--bg-soft-2);
  border-top: 1px solid var(--border);
  padding: 56px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 36px;
}
@media (max-width: 880px) {
  .footer-grid { grid-template-columns: 1fr; }
}
.footer-grid h4 {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gray);
  margin-bottom: 14px;
}
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 9px; }
.footer-grid a { color: var(--ink); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 22px;
  font-size: 0.85rem;
  color: var(--gray);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}
.footer-brand img { height: 38px; margin-bottom: 12px; }
.footer-oab-notice {
  font-size: 0.78rem;
  color: var(--gray-light);
  max-width: 60ch;
  margin-top: 10px;
}

/* Page hero (inner pages) */
.page-hero {
  background: var(--bg-soft);
  padding: 56px 0;
}
.page-hero .eyebrow { margin-bottom: 10px; }
.breadcrumb {
  font-size: 0.85rem;
  color: var(--gray);
}
.breadcrumb a { color: var(--gray); }
