/* =========================================
   SCRIPTA – ECOSSISTEMA FINANCEIRO CARTÓRIOS
   ========================================= */

:root {
  /* Paleta baseada no manual da marca */
  --sky: #3291c5;
  --sea: #1d5b87;
  --ocean: #152b3e;
  --ocean-dark: #040b21;
  --indigo: #02063a;

  --safe: #bcddf0;
  --scrpt: #f2f9fd;

  --bg: #eef3fa;
  --text: #0f172a;
  --muted: #6b7280;

  /* Estilo mais clássico */
  --radius-lg: 14px;
  --radius-xl: 22px;
  --shadow-soft: 0 12px 30px rgba(3, 10, 36, 0.22);

  --max-width: 1120px;
}

/* RESET */

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

body {
  font-family: "Urbanist", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  font-size: 17px;
}

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

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

/* LAYOUT BASE */

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  padding: 0 1.5rem;
  margin: 0 auto;
}

main {
  flex: 1;
}

section {
  padding: 4.5rem 0;
}

@media (min-width: 960px) {
  section {
    padding: 6rem 0;
  }
}

/* CABEÇALHO */

header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(18px);
  background: rgba(2, 6, 58, 0.94);
  border-bottom: 1px solid rgba(148, 163, 184, 0.35);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0.9rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

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

.brand-logo {
  width: 170px;
  max-width: 45vw;
}

nav {
  display: none;
  align-items: center;
  gap: 2rem;
  font-size: 0.98rem;
}

nav a {
  position: relative;
  color: #e5e7eb;
  padding-bottom: 0.2rem;
}

nav a:hover {
  color: var(--safe);
}

nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--sky), var(--safe));
  transition: width 0.2s ease;
}

nav a:hover::after {
  width: 100%;
}

.header-cta {
  display: none;
  align-items: center;
  gap: 0.75rem;
}

/* BOTÕES */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.7rem 1.6rem;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.18s ease;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--sky), var(--sea));
  color: #ffffff;
  box-shadow: 0 16px 40px rgba(2, 6, 58, 0.55);
}

.btn-primary:hover {
  filter: brightness(1.02);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  border-color: rgba(148, 163, 184, 0.9);
  color: #e5e7eb;
}

.btn-outline:hover {
  background: rgba(15, 23, 42, 0.18);
}

/* MENU MOBILE */

.burger {
  width: 26px;
  height: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
}

.burger span {
  display: block;
  height: 2px;
  border-radius: 999px;
  background: #e5e7eb;
  transition: all 0.2s ease;
}

.mobile-nav {
  display: none;
  background: rgba(2, 6, 58, 0.98);
  border-top: 1px solid rgba(148, 163, 184, 0.35);
}

.mobile-nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0.8rem 1.5rem 1.3rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  font-size: 0.95rem;
}

.mobile-nav-links a {
  color: #e5e7eb;
}

.mobile-nav-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.8rem;
}

/* HERO – PARALLAX (USANDO background.jpeg) */

.hero {
  position: relative;
  color: #ffffff;
  padding: 6rem 0 4.5rem;
  background-color: var(--indigo);
  background-image:
    linear-gradient(120deg, rgba(4, 11, 33, 0.96), rgba(21, 91, 135, 0.92)),
    url("img/background.jpeg");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 10% 0, rgba(255, 255, 255, 0.08), transparent 55%),
    radial-gradient(circle at 80% 0, rgba(50, 145, 197, 0.18), transparent 60%);
  opacity: 0.9;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 2.6rem;
  align-items: center;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.32rem 0.9rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.55);
  border: 1px solid rgba(242, 249, 253, 0.45);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero-title {
  font-size: clamp(2.3rem, 4.4vw, 3.3rem);
  line-height: 1.15;
  margin: 1rem 0 0.85rem;
}

.hero-subtitle {
  font-size: 1.02rem;
  color: #e0f2fe;
  max-width: 36rem;
  margin-bottom: 1.9rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-bottom: 1.6rem;
}

.hero-actions .btn-outline {
  border-color: rgba(148, 163, 184, 0.7);
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
  font-size: 0.82rem;
  color: #cbd5f5;
}

.hero-meta span::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #22c55e;
  margin-right: 0.4rem;
}

/* CARTÃO HERO */

.hero-card {
  background: rgba(2, 6, 40, 0.8);
  border-radius: var(--radius-xl);
  padding: 1.8rem 1.9rem;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(148, 163, 184, 0.65);
  position: relative;
  overflow: hidden;
}

.hero-card::before {
  content: "";
  position: absolute;
  inset: -40%;
  background:
    radial-gradient(circle at 0 0, rgba(255, 255, 255, 0.06), transparent 60%),
    radial-gradient(circle at 100% 0, rgba(188, 221, 240, 0.18), transparent 60%);
  opacity: 0.9;
}

.hero-card-inner {
  position: relative;
  z-index: 1;
  font-size: 0.9rem;
}

.hero-card-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: #bfdbfe;
  margin-bottom: 0.4rem;
}

.hero-card-title {
  font-size: 1.08rem;
  font-weight: 600;
  margin-bottom: 0.9rem;
}

.hero-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

.hero-card-item {
  padding: 0.6rem 0.8rem;
  border-radius: 0.9rem;
  background: rgba(15, 23, 42, 0.92);
  border: 1px solid rgba(148, 163, 184, 0.9);
}

.hero-card-item span {
  display: block;
  font-size: 0.72rem;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.12rem;
}

.hero-card-item strong {
  font-size: 0.92rem;
}

/* SEÇÕES GENÉRICAS */

.section-header {
  max-width: 42rem;
  margin-bottom: 2.8rem;
}

.section-kicker {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--muted);
  font-weight: 600;
}

.section-title {
  font-size: 1.8rem;
  margin-top: 0.3rem;
}

.section-subtitle {
  font-size: 0.98rem;
  color: var(--muted);
  margin-top: 0.6rem;
}

.grid-2 {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 2.3rem;
  align-items: flex-start;
}

.feature-list {
  list-style: none;
  display: grid;
  gap: 0.75rem;
  font-size: 0.96rem;
}

.feature-list li {
  display: flex;
  gap: 0.7rem;
}

.feature-icon {
  font-size: 1.1rem;
  margin-top: 0.18rem;
}

/* CARDS */

.card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 1.4rem 1.5rem;
  border: 1px solid rgba(209, 213, 219, 0.9);
  box-shadow: var(--shadow-soft);
  font-size: 0.96rem;
}

.card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.45rem;
}

.card p {
  color: var(--muted);
}

/* PARALLAX INTERMEDIÁRIAS (DUAS SEÇÕES) */

.parallax-strong {
  position: relative;
  color: #ffffff;
  background-image:
    linear-gradient(120deg, rgba(2, 6, 58, 0.96), rgba(21, 91, 135, 0.9)),
    url("img/background.jpeg");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.parallax-strong .section-header {
  margin-bottom: 2.2rem;
}

.parallax-strong .section-kicker,
.parallax-strong .section-subtitle {
  color: #e5f2ff;
}

.parallax-strong .card {
  background: rgba(15, 23, 42, 0.9);
  border-color: rgba(148, 163, 184, 0.85);
  color: #e5e7eb;
}

.parallax-strong .card p {
  color: #dbeafe;
}

.card-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

/* SEGUNDA PARALLAX – FRASE DE IMPACTO */

.parallax-quote {
  position: relative;
  color: #ffffff;
  background-image:
    linear-gradient(120deg, rgba(4, 11, 33, 0.96), rgba(21, 91, 135, 0.9)),
    url("img/background.jpeg");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  text-align: center;
}

.parallax-quote-inner {
  max-width: 720px;
  margin: 0 auto;
}

.parallax-quote h2 {
  font-size: 1.9rem;
  margin-bottom: 0.7rem;
}

.parallax-quote p {
  font-size: 1.02rem;
  color: #e5f2ff;
}

/* PARCEIROS – CARROSSEL HORIZONTAL */

.partners {
  text-align: center;
}

.partners-title {
  font-size: 1.6rem;
  margin-bottom: 0.5rem;
}

.partners-text {
  max-width: 640px;
  margin: 0 auto 2rem;
  font-size: 0.98rem;
  color: var(--muted);
}

.partners-carousel-wrapper {
  position: relative;
  overflow: hidden;
  padding: 1rem 0;
}

.partners-carousel-track {
  display: flex;
  gap: 2.5rem;
  align-items: center;
  transition: transform 0.4s ease;
}

.partner-logo {
  flex: 0 0 auto;
  padding: 0.9rem 1.7rem;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid rgba(209, 213, 219, 0.95);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.partner-logo img {
  display: block;
  max-width: 150px;
  height: auto;
  object-fit: contain;
}

.partners-nav {
  display: flex;
  justify-content: center;
  gap: 0.7rem;
  margin-top: 1.2rem;
}

.partners-nav button {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.8);
  background: #ffffff;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ocean);
  transition: background 0.18s ease;
}

.partners-nav button:hover {
  background: var(--scrpt);
}

/* CNR BANNER – INSTITUCIONAL FINAL */

.cnr-section {
  background: #ffffff;
}

.cnr-banner {
  border-radius: var(--radius-xl);
  padding: 1.6rem 1.7rem;
  border: 1px solid rgba(209, 213, 219, 0.95);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.05);
  display: flex;
  flex-wrap: wrap;
  gap: 1.4rem;
  justify-content: space-between;
  align-items: center;
}

.cnr-left {
  display: flex;
  align-items: center;
  gap: 1.1rem;
}

.cnr-logo {
  width: 74px;
  height: 74px;
  border-radius: 18px;
  background: radial-gradient(circle at 20% 20%, var(--safe), var(--sea));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #ffffff;
  font-size: 0.9rem;
}

.cnr-logo-img {
  width: 90px;
  height: auto;
  border-radius: 18px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}


.cnr-text strong {
  display: block;
  font-size: 1.02rem;
}

.cnr-text span {
  font-size: 0.9rem;
  color: var(--muted);
}

.cnr-right {
  font-size: 0.86rem;
  max-width: 20rem;
  color: var(--muted);
}

.cnr-right a {
  color: var(--sea);
  text-decoration: underline;
  text-decoration-style: dotted;
}

/* PRÉ-FOOTER – 2º RODAPÉ COM FORMULÁRIO */

.pre-footer {
  background: linear-gradient(135deg, var(--ocean-dark), var(--sea));
  color: #e5e7eb;
  padding: 3.2rem 0;
}

.pre-footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 2rem;
  align-items: flex-start;
}

.pre-footer h2 {
  font-size: 1.6rem;
  margin-bottom: 0.5rem;
}

.pre-footer p {
  font-size: 0.96rem;
  color: #dbeafe;
}

.pre-footer-info {
  font-size: 0.88rem;
  color: #e5e7eb;
  margin-top: 1rem;
}

.pre-footer-info a {
  color: #e0f2fe;
}

.pre-footer form label {
  color: #e5e7eb;
}

.pre-footer input[type="text"],
.pre-footer input[type="email"],
.pre-footer textarea {
  background: rgba(15, 23, 42, 0.7);
  border-color: rgba(148, 163, 184, 0.9);
  color: #e5e7eb;
}

/* FORMULÁRIOS GERAIS (para reuso em contato.php também) */

form {
  display: grid;
  gap: 0.9rem;
  font-size: 0.95rem;
}

label {
  font-weight: 500;
  font-size: 0.86rem;
}

input[type="text"],
input[type="email"],
textarea {
  width: 100%;
  padding: 0.6rem 0.75rem;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.9);
  font: inherit;
  resize: vertical;
  background: #ffffff;
}

textarea {
  min-height: 120px;
}

.small-note {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 0.25rem;
}

/* ALERTAS (para contato.php / formulários) */

.alert {
  padding: 0.6rem 0.8rem;
  border-radius: 10px;
  font-size: 0.86rem;
  margin-bottom: 0.8rem;
}

.alert-success {
  background: #ecfdf3;
  color: #166534;
  border: 1px solid #22c55e;
}

.alert-error {
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #ef4444;
}

/* FOOTER FINAL */

footer {
  background: #020617;
  color: #9ca3af;
  padding: 2.6rem 0 1.6rem;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr));
  gap: 1.9rem;
  font-size: 0.86rem;
}

.footer-brand-logo {
  width: 170px;
  margin-bottom: 0.6rem;
}

.footer-brand p {
  margin-bottom: 0.8rem;
}

.footer-lgpd {
  font-size: 0.8rem;
  border-left: 2px solid var(--safe);
  padding-left: 0.7rem;
  color: #9ca3af;
}

.footer-col-title {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: #6b7280;
  margin-bottom: 0.7rem;
}

.footer-links {
  list-style: none;
  display: grid;
  gap: 0.35rem;
}

.footer-links a {
  color: #9ca3af;
}

.footer-links a:hover {
  color: #e5e7eb;
}

.footer-bottom {
  max-width: var(--max-width);
  margin: 1.9rem auto 0;
  padding: 0 1.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.9rem;
  font-size: 0.78rem;
  color: #6b7280;
}

.footer-bottom a {
  color: #9ca3af;
  text-decoration: underline;
  text-decoration-style: dotted;
}

/* RESPONSIVO */

@media (min-width: 768px) {
  nav {
    display: flex;
  }
  .header-cta {
    display: flex;
  }
  .burger {
    display: none;
  }
}

@media (max-width: 959px) {
  .hero-inner,
  .grid-2,
  .card-grid-3,
  .pre-footer-inner {
    grid-template-columns: minmax(0, 1fr);
  }

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

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

  .hero,
  .parallax-strong,
  .parallax-quote {
    background-attachment: scroll; /* Parallax apenas no desktop */
  }
}

@media (max-width: 720px) {
  section {
    padding: 3.5rem 0;
  }

  .hero {
    padding-top: 4.6rem;
  }

  .hero-card {
    margin-top: 1rem;
  }

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

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



/* BOTÃO WHATSAPP FLUTUANTE */
.whatsapp-float {
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
  opacity: 0.96;
}

.whatsapp-float:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 35px rgba(15, 23, 42, 0.45);
  opacity: 1;
}

.whatsapp-float img {
  width: 30px;
  height: 30px;
  display: block;
}

@media (max-width: 480px) {
  .whatsapp-float {
    right: 14px;
    bottom: 14px;
    width: 48px;
    height: 48px;
  }

  .whatsapp-float img {
    width: 26px;
    height: 26px;
  }

.whatsapp-float {
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
  opacity: 0.96;
}

.whatsapp-float:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 35px rgba(15, 23, 42, 0.45);
  opacity: 1;
}

.whatsapp-float img {
  width: 30px;
  height: 30px;
  display: block;
}

@media (max-width: 480px) {
  .whatsapp-float {
    right: 14px;
    bottom: 14px;
    width: 48px;
    height: 48px;
  }

  .whatsapp-float img {
    width: 26px;
    height: 26px;
  }
}
}