/* ============================================================
   Juris Credit — Design System
   Brand:  #A31D1D (vermelho-tijolo)
   Text:   #1A1A1A (off-black)
   Accent: #3F3F3F · #E8E8E8 · #F4F4F4 · #FFFFFF
   ============================================================ */

:root {
  /* brand */
  --brand: #a31d1d;
  --brand-600: #8b1818;
  --brand-700: #731414;
  --brand-50: #fbeaea;
  --brand-100: #f5d3d3;

  /* neutrals */
  --ink: #1a1a1a;
  --ink-2: #3f3f3f;
  --ink-3: #6b6b6b;
  --hairline: #e5e5e5;
  --surface: #ffffff;
  --surface-2: #f8f7f5;
  --surface-3: #f4f4f4;
  --faded: #e8e8e8;

  /* radii / shadows */
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 14px;
  --r-pill: 999px;
  --shadow-1: 0 1px 2px rgba(20, 20, 20, 0.04), 0 2px 8px rgba(20, 20, 20, 0.04);
  --shadow-2: 0 4px 16px rgba(20, 20, 20, 0.08), 0 12px 32px rgba(20, 20, 20, 0.06);

  /* typography */
  --font-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,
    sans-serif;

  /* layout */
  --container: 1200px;
  --gap: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: var(--brand);
  text-decoration: none;
}

a:hover {
  color: var(--brand-600);
  text-decoration: underline;
}

h1,
h2,
h3,
h4 {
  margin: 0 0 0.6em;
  letter-spacing: -0.01em;
  font-weight: 700;
  color: var(--ink);
}

h1 {
  font-size: clamp(2rem, 4vw + 1rem, 3.5rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  font-weight: 800;
}

h2 {
  font-size: clamp(1.6rem, 2vw + 1rem, 2.25rem);
  line-height: 1.15;
}

h3 {
  font-size: 1.125rem;
  line-height: 1.3;
}

p {
  margin: 0 0 1em;
  color: var(--ink-2);
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.skip-link {
  position: absolute;
  top: -40px;
  left: 16px;
  background: var(--ink);
  color: #fff;
  padding: 8px 12px;
  border-radius: var(--r-sm);
  z-index: 1000;
}

.skip-link:focus {
  top: 12px;
}

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

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brand);
  font-weight: 600;
  margin: 0 0 14px;
}

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 12px 18px;
  border-radius: var(--r-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease,
    transform 0.05s ease;
  text-decoration: none;
}

.btn:hover {
  text-decoration: none;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
}

.btn-primary:hover {
  background: var(--brand-600);
  border-color: var(--brand-600);
  color: #fff;
}

.btn-outline {
  background: transparent;
  color: var(--brand);
  border-color: var(--brand);
}

.btn-outline:hover {
  background: var(--brand-50);
  color: var(--brand);
}

.btn-lg {
  padding: 14px 22px;
  font-size: 1rem;
}

.btn-block {
  width: 100%;
}

/* ============================================================
   Header / Nav
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--hairline);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
}

.brand:hover {
  text-decoration: none;
  color: var(--ink);
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 28px;
  border-radius: var(--r-sm);
  background: var(--brand);
  color: #fff;
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
}

.brand-wordmark {
  display: inline-flex;
  align-items: baseline;
  font-weight: 700;
  letter-spacing: -0.01em;
  font-size: 1.08rem;
}

.brand-wordmark__juris {
  color: var(--ink);
}

.brand-wordmark__credit {
  color: var(--brand);
  margin-left: 4px;
}

.nav {
  margin-left: auto;
}

.nav ul {
  display: flex;
  align-items: center;
  gap: 22px;
}

.nav a {
  color: var(--ink-2);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 8px 0;
  border-bottom: 2px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.nav a:hover {
  color: var(--brand);
  border-color: var(--brand);
  text-decoration: none;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  background: transparent;
  border: 1px solid var(--hairline);
  border-radius: var(--r-sm);
  padding: 8px;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
}

.mobile-nav {
  display: none;
  border-top: 1px solid var(--hairline);
  background: #fff;
  padding: 16px 24px;
}

.mobile-nav ul {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mobile-nav a {
  display: block;
  padding: 12px 8px;
  color: var(--ink);
  border-radius: var(--r-sm);
  font-weight: 500;
}

.mobile-nav a:hover {
  background: var(--surface-3);
  text-decoration: none;
}

.mobile-nav .btn {
  margin-top: 8px;
}

/* ============================================================
   Hero
   ============================================================ */
.hero {
  background: linear-gradient(180deg, var(--surface-3) 0%, #fff 100%);
  padding: 64px 0 88px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: -120px -10% auto auto;
  width: 520px;
  height: 520px;
  background: radial-gradient(closest-side, rgba(163, 29, 29, 0.08), transparent);
  pointer-events: none;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 56px;
  align-items: center;
  position: relative;
}

.hl {
  background: linear-gradient(180deg, transparent 60%, rgba(163, 29, 29, 0.15) 60%);
  padding: 0 4px;
  color: var(--brand);
}

.lede {
  font-size: 1.1rem;
  color: var(--ink-2);
  max-width: 56ch;
  margin-bottom: 28px;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 22px;
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  color: var(--ink-2);
  font-size: 0.92rem;
}

.hero-trust li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.hero-trust li::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand);
}

.hero-card {
  background: #fff;
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-2);
  padding: 22px;
}

.hero-card__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid var(--hairline);
}

.hero-card__row--final {
  border-bottom: none;
  border-top: 2px solid var(--ink);
  margin-top: 4px;
  padding-top: 16px;
}

.hero-card__label {
  color: var(--ink-3);
  font-size: 0.88rem;
  letter-spacing: 0.02em;
}

.hero-card__value {
  font-weight: 600;
  color: var(--ink);
}

.hero-card__value--ok {
  color: #1f7a3a;
}

.hero-card__value--strong {
  color: var(--brand);
  font-weight: 800;
  font-size: 1.05rem;
}

.hero-card__note {
  font-size: 0.78rem;
  color: var(--ink-3);
  margin: 14px 0 0;
}

/* ============================================================
   Metrics strip
   ============================================================ */
.metrics {
  background: var(--ink);
  color: #fff;
  padding: 28px 0;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.metric {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: flex-start;
  border-left: 2px solid var(--brand);
  padding-left: 14px;
}

.metric-value {
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: #fff;
}

.metric-label {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.9rem;
}

/* ============================================================
   Sections
   ============================================================ */
.section {
  padding: 88px 0;
}

.section-alt {
  background: var(--surface-3);
}

.section-cta {
  background: linear-gradient(180deg, #fff 0%, var(--surface-3) 100%);
}

.section-head {
  max-width: 720px;
  margin: 0 auto 48px;
  text-align: center;
}

.section-lede {
  color: var(--ink-2);
  font-size: 1.04rem;
  margin: 0;
}

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

.cards-3 {
  grid-template-columns: repeat(3, 1fr);
}

.card {
  background: #fff;
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  padding: 26px;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-2);
  border-color: var(--brand-100);
}

.card h3 {
  color: var(--ink);
  font-size: 1.08rem;
  margin-bottom: 8px;
}

.card p {
  color: var(--ink-2);
  font-size: 0.95rem;
  margin: 0;
}

.card-soft {
  background: #fff;
  border: 1px solid var(--hairline);
}

/* ============================================================
   Steps
   ============================================================ */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  counter-reset: step;
  padding: 0;
}

.step {
  background: #fff;
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  padding: 26px;
  position: relative;
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--brand);
  color: #fff;
  width: 40px;
  height: 40px;
  border-radius: var(--r-sm);
  font-weight: 800;
  font-size: 0.95rem;
  margin-bottom: 14px;
}

.step h3 {
  margin: 0 0 8px;
}

.step p {
  margin: 0;
  font-size: 0.95rem;
}

/* ============================================================
   Partners
   ============================================================ */
.partners {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}

.partners-copy h2 {
  margin-top: 0;
}

.bullets {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 16px 0 24px;
  color: var(--ink-2);
}

.bullets li {
  position: relative;
  padding-left: 22px;
}

.bullets li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 10px;
  height: 10px;
  border-radius: 2px;
  background: var(--brand);
}

.partners-card {
  background: #fff;
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-1);
  padding: 26px;
}

.partners-card__pill {
  display: inline-flex;
  align-items: center;
  background: var(--brand-50);
  color: var(--brand);
  border-radius: var(--r-pill);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 6px 12px;
  margin-bottom: 16px;
}

.partners-card__title {
  margin: 0;
  font-weight: 700;
  color: var(--ink);
  font-size: 1.1rem;
}

.partners-card__sub {
  margin: 4px 0 16px;
  color: var(--ink-3);
  font-size: 0.92rem;
}

.partners-card__list {
  display: flex;
  flex-direction: column;
}

.partners-card__list li {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-top: 1px solid var(--hairline);
  font-size: 0.94rem;
}

.partners-card__list li span:last-child {
  color: var(--brand);
  font-weight: 700;
}

/* ============================================================
   FAQ
   ============================================================ */
.faq {
  display: grid;
  gap: 12px;
  max-width: 780px;
  margin: 0 auto;
}

.faq details {
  background: #fff;
  border: 1px solid var(--hairline);
  border-radius: var(--r-md);
  padding: 16px 20px;
  transition: border-color 0.15s ease;
}

.faq details[open] {
  border-color: var(--brand-100);
}

.faq summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--ink);
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: '+';
  font-size: 1.4rem;
  color: var(--brand);
  font-weight: 700;
  line-height: 1;
}

.faq details[open] summary::after {
  content: '–';
}

.faq details p {
  margin: 12px 0 0;
  color: var(--ink-2);
}

/* ============================================================
   Contato
   ============================================================ */
.contact {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  align-items: start;
}

.contact-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 16px;
}

.contact-list li {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 14px 16px;
  background: #fff;
  border: 1px solid var(--hairline);
  border-radius: var(--r-md);
}

.contact-list__label {
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  background: #fff;
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-1);
  padding: 26px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field-full {
  grid-column: 1 / -1;
}

.field label {
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--ink);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--r-md);
  padding: 11px 12px;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(163, 29, 29, 0.12);
}

.field textarea {
  resize: vertical;
}

.form-note {
  grid-column: 1 / -1;
  font-size: 0.82rem;
  color: var(--ink-3);
  margin: 0;
}

.contact-form .btn {
  grid-column: 1 / -1;
}

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  background: var(--ink);
  color: #cfcfcf;
  padding: 56px 0 24px;
  margin-top: 48px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.1fr 2fr;
  gap: 48px;
  padding-bottom: 32px;
}

.footer-brand .brand-mark {
  margin-bottom: 16px;
}

.footer-name {
  color: #fff;
  font-weight: 700;
  margin: 0 0 6px;
}

.footer-meta {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.9rem;
  margin: 0;
}

.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.footer-cols h4 {
  color: #fff;
  font-size: 0.82rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin: 0 0 14px;
}

.footer-cols ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-cols a {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.94rem;
}

.footer-cols a:hover {
  color: #fff;
}

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

.footer-bottom p {
  margin: 0;
  color: inherit;
}

.footer-legal {
  font-size: 0.82rem;
}

/* ============================================================
   Floating WhatsApp
   ============================================================ */
.whatsapp-fab {
  position: fixed;
  bottom: 22px;
  right: 22px;
  background: #25d366;
  color: #fff;
  border-radius: var(--r-pill);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  font-weight: 700;
  font-size: 0.9rem;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.32);
  z-index: 90;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.whatsapp-fab:hover {
  text-decoration: none;
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 10px 26px rgba(37, 211, 102, 0.4);
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 980px) {
  .hero {
    padding: 48px 0 64px;
  }
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .partners {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .contact {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .cards,
  .cards-3,
  .steps {
    grid-template-columns: repeat(2, 1fr);
  }
  .metrics-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

@media (max-width: 720px) {
  .nav,
  .header-actions .btn {
    display: none;
  }
  .nav-toggle {
    display: flex;
  }
  .header-actions {
    margin-left: auto;
  }
  .section {
    padding: 64px 0;
  }
  .cards,
  .cards-3,
  .steps,
  .footer-cols {
    grid-template-columns: 1fr;
  }
  .contact-form {
    grid-template-columns: 1fr;
  }
  .whatsapp-fab span {
    display: none;
  }
  .whatsapp-fab {
    padding: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
