:root {
  --bg: #f4f6fb;
  --surface: #ffffff;
  --surface-alt: #eef2fa;
  --text: #101828;
  --muted: #475467;
  --primary: #0f2f66;
  --primary-2: #163f85;
  --accent: #c9a96b;
  --border: #d8deea;
  --success: #1f8f4c;
  --radius: 14px;
  --radius-lg: 20px;
  --shadow-sm: 0 8px 18px rgba(16, 24, 40, 0.08);
  --shadow-md: 0 14px 34px rgba(16, 24, 40, 0.12);
  --container: 1140px;
  --space-1: 0.5rem;
  --space-2: 0.75rem;
  --space-3: 1rem;
  --space-4: 1.5rem;
  --space-5: 2rem;
  --space-6: 3rem;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", "Segoe UI", Roboto, Arial, sans-serif;
  background: linear-gradient(180deg, #f8f9fd 0%, var(--bg) 100%);
  color: var(--text);
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
  border-radius: var(--radius-lg);
}

ul,
ol {
  padding-left: 1.1rem;
}

.container {
  width: min(var(--container), 92%);
  margin: 0 auto;
}

.section {
  padding: 5rem 0;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--primary);
  color: #fff;
  padding: 0.75rem 1rem;
  z-index: 9999;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
  border-radius: 0.5rem;
}

.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid var(--border);
}

.nav-wrap {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}

.brand-mark {
  font-size: 1.5rem;
}

.brand-text {
  font-size: 0.72rem;
  line-height: 1.2;
  font-weight: 600;
  color: var(--primary);
  letter-spacing: 0.02em;
}

.brand-text strong {
  font-size: 0.78rem;
}

.menu {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.menu a {
  font-weight: 500;
  color: var(--text);
  padding: 0.45rem 0.35rem;
  border-radius: 0.5rem;
  transition: color 0.2s ease, background 0.2s ease;
}

.menu a:hover,
.menu a:focus-visible {
  color: var(--primary-2);
  background: #edf2ff;
  outline: none;
}

.menu-toggle {
  display: none;
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 10px;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.menu-toggle span {
  width: 20px;
  height: 2px;
  background: var(--text);
  display: block;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  font-weight: 600;
  border-radius: 12px;
  padding: 0.85rem 1.2rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid rgba(22, 63, 133, 0.35);
  outline-offset: 2px;
}

.btn-nav {
  padding: 0.62rem 1rem;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-2) 100%);
  color: #fff;
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

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

.btn-secondary:hover {
  background: #f7f9ff;
}

.hero-grid,
.about-grid,
.location-grid {
  display: grid;
  gap: 2rem;
  align-items: center;
}

.hero-grid {
  grid-template-columns: 1.08fr 0.92fr;
}

.about-grid,
.location-grid {
  grid-template-columns: 1fr 1fr;
}

.eyebrow {
  display: inline-block;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.11em;
  color: var(--primary-2);
  font-weight: 700;
  margin-bottom: 0.9rem;
}

h1 {
  font-size: clamp(1.85rem, 3.6vw, 3rem);
  line-height: 1.18;
  margin-bottom: 1rem;
}

h2 {
  font-size: clamp(1.5rem, 2.8vw, 2.25rem);
  line-height: 1.2;
  margin-bottom: 0.8rem;
}

h3 {
  font-size: 1.14rem;
  line-height: 1.3;
  margin-bottom: 0.6rem;
}

.hero-text {
  color: var(--muted);
  margin-bottom: 1.5rem;
  max-width: 62ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.trust-points {
  list-style: none;
  display: grid;
  gap: 0.4rem;
  color: #0f5132;
  font-weight: 500;
  background: #ecfdf3;
  border: 1px solid #b7f0cc;
  border-radius: 12px;
  padding: 0.9rem 1rem;
}

.hero-image img {
  width: 100%;
  height: 100%;
  min-height: 360px;
  object-fit: cover;
  box-shadow: var(--shadow-md);
}

.section-head {
  margin-bottom: 1.6rem;
}

.grid {
  display: grid;
  gap: 1rem;
}

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

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

.card,
.highlight-box,
.authority-box,
.map-box,
.cta-box,
.legal-card,
.contact-panel,
.contact-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.card {
  padding: 1.2rem;
}

.card p,
.authority-box p,
.contact-panel p,
.legal-card p,
.legal-card li,
.faq-answer p {
  color: var(--muted);
}

.icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
  background: #eef3ff;
}

.about {
  background: linear-gradient(180deg, rgba(240, 244, 255, 0.6) 0%, rgba(240, 244, 255, 0) 100%);
}

.highlight-box,
.authority-box,
.cta-box,
.contact-panel,
.contact-form,
.legal-card {
  padding: 1.4rem;
}

.highlight-box ul {
  display: grid;
  gap: 0.55rem;
}

.link-arrow {
  margin-top: 0.8rem;
  display: inline-block;
  font-weight: 600;
  color: var(--primary-2);
}

.steps-list {
  list-style: none;
  display: grid;
  gap: 0.65rem;
}

.steps-list li {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: 12px;
  padding: 0.85rem 1rem;
}

.map-box iframe {
  width: 100%;
  min-height: 330px;
  border: 0;
  border-radius: 14px;
}

.faq-list {
  display: grid;
  gap: 0.75rem;
}

.faq-item {
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
}

.faq-question {
  width: 100%;
  text-align: left;
  border: 0;
  background: #fff;
  color: var(--text);
  padding: 1rem;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
}

.faq-question::after {
  content: "+";
  float: right;
  font-size: 1.2rem;
  color: var(--primary-2);
}

.faq-item.active .faq-question::after {
  content: "−";
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.28s ease;
  padding: 0 1rem;
}

.faq-item.active .faq-answer {
  padding-bottom: 1rem;
}

.final-cta .cta-box {
  text-align: center;
  background: linear-gradient(145deg, #0f2f66 0%, #1a4a99 100%);
  color: #fff;
}

.final-cta .cta-box p {
  color: #e5ebff;
  max-width: 66ch;
  margin: 0 auto 1rem;
}

.footer {
  background: #0d1b36;
  color: #d8dfef;
  padding-top: 3rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 1.2rem;
}

.footer h3,
.footer h4 {
  color: #fff;
  margin-bottom: 0.7rem;
}

.footer ul {
  list-style: none;
  padding-left: 0;
  display: grid;
  gap: 0.35rem;
}

.footer a:hover {
  text-decoration: underline;
}

.footer-bottom {
  border-top: 1px solid rgba(216, 223, 239, 0.2);
  margin-top: 1.2rem;
  padding: 1rem 0 1.4rem;
  text-align: center;
}

.whatsapp-float,
.back-to-top {
  position: fixed;
  right: 18px;
  z-index: 999;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
}

.whatsapp-float {
  bottom: 18px;
  background: #25d366;
  color: #fff;
  font-size: 1.3rem;
}

.back-to-top {
  bottom: 78px;
  background: #fff;
  color: var(--primary);
  border: 1px solid var(--border);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
}

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Contato */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-grid {
  display: grid;
  gap: 0.9rem;
}

.field {
  display: grid;
  gap: 0.35rem;
}

label {
  font-weight: 600;
  color: var(--text);
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.78rem 0.82rem;
  font-size: 0.96rem;
  font-family: inherit;
  background: #fff;
}

textarea {
  resize: vertical;
  min-height: 130px;
}

.checkbox {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.checkbox input {
  width: auto;
  margin-top: 0.2rem;
}

.error {
  color: #b42318;
  font-size: 0.85rem;
  min-height: 1em;
}

.form-message {
  margin-top: 0.8rem;
  font-weight: 500;
  color: var(--muted);
}

/* Páginas jurídicas */
.legal-main {
  padding: 3rem 0 5rem;
}

.legal-wrapper {
  max-width: 900px;
  margin: 0 auto;
}

.legal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.2rem;
  color: var(--muted);
  font-size: 0.95rem;
  margin: 0.75rem 0 1.25rem;
}

.legal-summary {
  background: #f9fbff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.9rem 1rem;
  margin-bottom: 1rem;
}

.legal-summary ul {
  display: grid;
  gap: 0.4rem;
}

.legal-card section + section {
  margin-top: 1.2rem;
}

.legal-card h2 {
  font-size: 1.25rem;
  margin-bottom: 0.45rem;
}

@media (max-width: 1024px) {
  .cards-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .menu-toggle {
    display: inline-flex;
  }

  .menu {
    position: absolute;
    top: 79px;
    right: 4%;
    left: 4%;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 0.8rem;
    box-shadow: var(--shadow-md);
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0.35rem;
  }

  .menu.open {
    display: flex;
  }

  .hero-grid,
  .about-grid,
  .location-grid,
  .contact-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .section {
    padding: 4rem 0;
  }

  .cards-4,
  .cards-3,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    align-items: stretch;
  }

  .btn {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  * {
    animation: none !important;
    transition: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}