/* =========================================
   BANCO DA MODA – ECOSSISTEMA FINANCEIRO PARA EMPRESAS
   ========================================= */

:root {
  /* Paleta BANCO DA MODA (vermelho suave + minimalista) */
  --sky: #ff5a0a;        /* destaque (botões/links) */
  --sea: #df4a00;        /* destaque escuro */
  --ocean: #111827;      /* base escura */
  --ocean-dark: #0B0F1A; /* header/rodapé */
  --indigo: #5a240c;     /* hero overlay */

  --safe: #fff0e8;       /* fundo suave */
  --scrpt: #fff8f3;      /* cartões claros */

  --bg: #fbfbfc;         /* fundo geral branco */
  --text: #0f172a;
  --muted: #6b7280;

  --radius-lg: 14px;
  --radius-xl: 22px;
  --shadow-soft: 0 12px 30px rgba(22, 8, 10, 0.18);

  --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(255, 255, 255, 0.92);
  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: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1.25rem;
}

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

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

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

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

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

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;
  justify-content: flex-end;
  gap: 0.75rem;
}

.brand{
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  max-width: 180px;
  overflow: hidden;
}

.brand-logo{
  display: block;
  width: 100%;
  max-width: 180px;
  height: auto;
  max-height: 52px;
  object-fit: contain;
}

/* 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 12px 28px rgba(217, 104, 32, 0.28);
}

.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: #0f172a;
  transition: all 0.2s ease;
}

.mobile-nav {
  display: none;
  background: rgba(255, 255, 255, 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: #0f172a;
}

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

@media (max-width: 960px){
  .brand{
    max-width: 150px;
  }

  .brand-logo{
    max-width: 150px;
    max-height: 44px;
  }
}

@media (max-width: 560px){
  .brand{
    max-width: 132px;
  }

  .brand-logo{
    max-width: 132px;
    max-height: 38px;
  }
}

/* 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(22, 8, 10, 0.72), rgba(184, 90, 90, 0.22)),
    url("img/background-principal.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(217, 118, 118, 0.16), 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.28);
  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: #fdecec;
  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: #f4d0d0;
}

.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: #ffe4e4;
  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-principal.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;
  padding: 6rem 0 4.5rem;
  background-color: var(--indigo);
  background-image:
    linear-gradient(120deg, rgba(22, 8, 10, 0.72), rgba(184, 90, 90, 0.22)),
    url("img/background-principal.jpeg");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  overflow: hidden;
}

.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);
}

/* MASTERMIND 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-color: var(--indigo);
  background-image:
    linear-gradient(120deg, rgba(22, 8, 10, 0.72), rgba(184, 90, 90, 0.22)),
    url("img/background-principal.jpeg");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  overflow: hidden;
  color: #ffffff;
  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: #fdecec;
}

.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: rgba(255, 255, 255, 0.92);
  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;
  }
}
}
/* UNIDADE DE NEGÓCIO */
.unit-dropdown{position:relative;display:inline-flex;align-items:center}
.unit-toggle{display:inline-flex;align-items:center;gap:.4rem;cursor:pointer}
.unit-toggle::after{content:"▾";font-size:.72rem;opacity:.7}
.unit-dropdown-menu{position:absolute;top:calc(100% + 12px);left:0;min-width:260px;max-height:360px;overflow:auto;background:#fff;border:1px solid rgba(148,163,184,.28);border-radius:16px;box-shadow:0 18px 45px rgba(15,23,42,.16);padding:.55rem;display:none;z-index:60}
.unit-dropdown.open .unit-dropdown-menu{display:grid;gap:.15rem}
.unit-option{width:100%;text-align:left;border:0;background:transparent;padding:.72rem .8rem;border-radius:12px;font:inherit;color:#0f172a;cursor:pointer}
.unit-option:hover{background:#fff3eb;color:var(--sea)}
.mobile-unit-trigger{margin-top:.3rem}
.state-modal{position:fixed;inset:0;background:rgba(15,23,42,.56);display:none;align-items:center;justify-content:center;z-index:9998;padding:1rem}
.state-modal.is-open{display:flex}
.state-modal-card{width:min(100%,560px);background:#fff;border-radius:28px;padding:1.6rem;box-shadow:0 24px 60px rgba(15,23,42,.2);border:1px solid rgba(217,104,32,.18)}
.state-modal-brand{display:flex;align-items:center;gap:.9rem;margin-bottom:1rem}
.state-modal-brand img{width:52px;height:52px;border-radius:14px}
.state-modal-card h2{font-size:1.55rem;line-height:1.1;margin-bottom:.45rem}
.state-modal-card p{color:var(--muted);margin-bottom:1rem}
.state-modal-select{width:100%;padding:.95rem 1rem;border-radius:16px;border:1px solid rgba(148,163,184,.45);font:inherit;margin-bottom:1rem;background:#fff}
.state-modal-actions{display:flex;flex-wrap:wrap;gap:.75rem}
.state-modal-note{font-size:.84rem;color:var(--muted);margin-top:.85rem}
body.modal-open{overflow:hidden}
@media (min-width: 768px){
  nav{display:flex}
  .header-cta{display:flex}
  .burger{display:none}
}
@media (max-width:767px){
  .header-inner{grid-template-columns:auto 1fr auto}
  nav{display:none}
  .header-cta{display:none}
  .unit-dropdown{display:none}
  .mobile-unit-trigger{display:inline-flex}
}
.state-modal-card{position:relative}
.state-modal-close{
  position:absolute; top:12px; right:14px; width:36px; height:36px; border:none; border-radius:999px;
  background:#f7f7f8; color:#0f172a; font-size:26px; line-height:1; cursor:pointer;
  display:flex; align-items:center; justify-content:center;
}
.state-modal-close:hover{background:#fff3eb;color:#d96820}
.mobile-unit-trigger{display:none}
@media (max-width:767px){ .mobile-unit-trigger{display:inline-flex} }

/* SAFE ACCESS PAGE */
.safe-access-page{min-height:calc(100vh - 160px);background:linear-gradient(180deg, rgba(255,248,243,0.95), rgba(255,255,255,0.98)), var(--bg);}
.safe-access-shell{max-width:1120px;margin:0 auto;padding:3.5rem 1.5rem 4rem;}
.safe-access-grid{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(360px,460px);gap:2rem;align-items:stretch;}
.safe-access-hero{border-radius:28px;padding:2.25rem;color:#fff;background:linear-gradient(135deg, rgba(217,104,32,0.92), rgba(240,122,47,0.82)), url("../img/background-principal.jpeg");background-size:cover;background-position:center;box-shadow:0 24px 60px rgba(217,104,32,0.20);}
.safe-access-kicker{display:inline-flex;align-items:center;padding:.45rem .9rem;border-radius:999px;background:rgba(255,255,255,0.14);border:1px solid rgba(255,255,255,0.25);font-size:.78rem;letter-spacing:.12em;text-transform:uppercase;}
.safe-access-hero h1{font-size:clamp(2rem,4vw,3.1rem);line-height:1.06;margin:1rem 0 .9rem;}
.safe-access-hero p{font-size:1rem;color:rgba(255,255,255,0.92);max-width:34rem;}
.safe-access-contact{margin-top:1.5rem;display:grid;gap:.6rem;font-size:.95rem;}
.safe-access-contact a{color:#fff;text-decoration:underline;text-decoration-style:dotted;}
.safe-access-card{background:#fff;border:1px solid rgba(217,104,32,0.16);border-radius:28px;padding:2rem;box-shadow:0 24px 60px rgba(15,23,42,0.08);}
.safe-access-brand{display:flex;align-items:center;gap:.9rem;margin-bottom:1.15rem;}
.safe-access-brand img{width:58px;height:58px;object-fit:contain;border-radius:14px;}
.safe-access-card h2{font-size:1.55rem;line-height:1.1;margin-bottom:.5rem;}
.safe-access-card p{color:var(--muted);margin-bottom:1rem;}
.safe-access-form{display:grid;gap:.9rem;}
.safe-access-form input{width:100%;padding:.9rem 1rem;border-radius:14px;border:1px solid rgba(148,163,184,.55);font:inherit;background:#fff;}
.safe-access-form .btn{width:100%;}
.safe-access-note{margin-top:1rem;font-size:.85rem;color:var(--muted);}
.safe-access-alert{display:none;margin-top:1rem;padding:1rem 1.05rem;border-radius:16px;background:#fff7f0;border:1px solid rgba(217,104,32,0.22);color:#7a3b13;line-height:1.6;}
.safe-access-alert.is-visible{display:block;}
.safe-access-actions{display:flex;flex-wrap:wrap;gap:.75rem;margin-top:1rem;}
.safe-access-actions .btn{width:auto;}
.onboarding-theme-cta .btn-primary{background:linear-gradient(135deg, var(--sky), var(--sea));box-shadow:0 12px 28px rgba(217,104,32,0.28);}
@media (max-width:959px){.safe-access-grid{grid-template-columns:1fr;}}

/* ACTIVE UNIT BADGE */
.active-unit-badge{
  display:none;
  align-items:center;
  justify-content:center;
  padding:.55rem .9rem;
  border-radius:999px;
  background:#fff3eb;
  color:#b85a17;
  border:1px solid rgba(217,104,32,.18);
  font-size:.82rem;
  font-weight:700;
  white-space:nowrap;
}
@media (min-width: 1024px){
  .active-unit-badge{display:inline-flex}
}

/* SAFE ACCESS SPLIT PAGE */
.access-split-page{
  min-height: calc(100vh - 140px);
  background:#f6f7fb;
}
.access-split-shell{
  min-height: calc(100vh - 140px);
  display:grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(420px, .8fr);
}
.access-split-brand{
  position:relative;
  overflow:hidden;
  background:
    radial-gradient(circle at 65% 20%, rgba(240,122,47,.16), transparent 30%),
    linear-gradient(135deg, #4b1f08 0%, #9b4f18 35%, #f07a2f 100%);
  color:#fff;
}
.access-split-brand::after{
  content:"";
  position:absolute;
  top:0;
  right:-60px;
  width:180px;
  height:100%;
  background:rgba(255,255,255,.18);
  transform:skewX(-10deg);
}
.access-split-brand-inner{
  position:relative;
  z-index:1;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  min-height:100%;
  padding:3.2rem 3rem 2rem;
}
.access-logo-wrap img{
  width:min(360px, 58%);
  max-width:100%;
  object-fit:contain;
  filter: brightness(0) invert(1);
  opacity:.95;
}
.access-brand-copy{
  max-width:520px;
}
.access-brand-copy h1{
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height:1.03;
  margin:1rem 0 .85rem;
}
.access-brand-copy p{
  color:rgba(255,255,255,.9);
  font-size:1rem;
  line-height:1.7;
}
.access-brand-footer{
  display:flex;
  flex-wrap:wrap;
  gap:1.2rem;
  color:#fff;
  font-size:.98rem;
}
.access-brand-footer a{
  color:#fff;
  text-decoration:none;
}
.access-form-side{
  display:flex;
  align-items:center;
  justify-content:center;
  padding:3rem 2rem;
  background:#fbfbfd;
}
.access-form-card{
  width:100%;
  max-width:420px;
}
.access-form-card h2{
  font-size:2rem;
  color:#d96820;
  margin-bottom:2rem;
}
.access-field{
  margin-bottom:1.2rem;
}
.access-field label{
  display:block;
  margin-bottom:.55rem;
  font-size:1rem;
  color:#1f2937;
  font-weight:600;
}
.access-field input{
  width:100%;
  padding:1rem 1rem;
  border-radius:12px;
  border:1px solid rgba(148,163,184,.32);
  background:#f3f4f6;
  font:inherit;
}
.access-keypad{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:.65rem;
  margin:.8rem 0 1.5rem;
}
.access-key{
  padding:.85rem .5rem;
  border-radius:10px;
  border:1px solid rgba(148,163,184,.38);
  background:#fff;
  color:#b85a17;
  text-align:center;
  font-size:1rem;
}
.access-submit{
  width:100%;
  margin-top:.2rem;
}
.access-help{
  display:none;
  margin-top:1rem;
  padding:1rem;
  border-radius:14px;
  background:#fff7f0;
  border:1px solid rgba(217,104,32,.2);
  color:#8a4212;
  line-height:1.6;
}
.access-help.is-visible{
  display:block;
}
.access-links{
  display:flex;
  flex-wrap:wrap;
  gap:.75rem;
  margin-top:1rem;
}
.access-links .btn{
  width:auto;
}
@media (max-width: 980px){
  .access-split-shell{
    grid-template-columns:1fr;
  }
  .access-split-brand{
    min-height:320px;
  }
  .access-split-brand::after{
    display:none;
  }
}


/* Ajuste de header em uma linha */
.header-inner{
  display:flex !important;
  align-items:center !important;
  justify-content:space-between !important;
  gap:1rem !important;
  flex-wrap:nowrap !important;
}
nav{
  display:flex;
  align-items:center;
  gap:1.6rem;
  flex:1 1 auto;
  justify-content:center;
  min-width:0;
}
.header-cta{
  display:flex;
  align-items:center;
  gap:.65rem;
  flex-wrap:nowrap;
  white-space:nowrap;
}
.header-link-cta{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  font-size:.98rem;
  font-weight:500;
  color:#0f172a;
  padding:.2rem 0;
  white-space:nowrap;
}
.header-link-cta:hover{
  color:var(--sea);
}
.header-link-cta::after{
  content:"";
  display:block;
}
.active-unit-badge{
  margin-right:.35rem;
  flex:0 0 auto;
}
.brand{
  flex:0 0 auto;
}
@media (max-width: 1200px){
  .header-inner{gap:.75rem !important;}
  nav{gap:1.1rem;}
  .header-cta .btn{
    padding:.65rem 1.1rem;
    font-size:.9rem;
  }
}
@media (max-width: 1024px){
  .active-unit-badge{
    display:none !important;
  }
  nav{gap:.9rem;}
  .header-cta .btn{
    padding:.62rem .95rem;
    font-size:.88rem;
  }
}

.credit-card--whatsapp{
  background: linear-gradient(135deg, #111111 0%, #25d366 100%) !important;
  color: #ffffff !important;
}

.credit-card--whatsapp .credit-card__tag,
.credit-card--whatsapp .credit-card-tag,
.credit-card--whatsapp .card-tag{
  background: rgba(255,255,255,0.16) !important;
  color: #ffffff !important;
  border-color: rgba(255,255,255,0.28) !important;
}

.credit-card--whatsapp .credit-card__title,
.credit-card--whatsapp .credit-card-title,
.credit-card--whatsapp h3,
.credit-card--whatsapp h2{
  color: #ffffff !important;
}

.credit-card--whatsapp .credit-card__text,
.credit-card--whatsapp .credit-card-text,
.credit-card--whatsapp p,
.credit-card--whatsapp span{
  color: rgba(255,255,255,0.92) !important;
}

.credit-card--whatsapp .credit-card__icon,
.credit-card--whatsapp .credit-card-arrow,
.credit-card--whatsapp .card-arrow{
  background: rgba(255,255,255,0.14) !important;
  border-color: rgba(255,255,255,0.24) !important;
  color: #ffffff !important;
}

/* credito brand patch */
.credit-page{background:linear-gradient(180deg,#fff6ef 0%,#fffdfa 100%) !important;}
.credit-hero{border-color:rgba(217,104,32,0.16) !important; box-shadow:0 24px 50px rgba(217,104,32,0.10) !important;}

/* modal rebuilt */
.state-modal{
  position:fixed;
  inset:0;
  background:rgba(15,23,42,.56);
  display:none;
  align-items:center;
  justify-content:center;
  z-index:9998;
  padding:1rem;
}
.state-modal.is-open{display:flex}
.state-modal-card{
  position:relative;
  width:min(100%,560px);
  background:#fff;
  border-radius:28px;
  padding:1.6rem;
  box-shadow:0 24px 60px rgba(15,23,42,.20);
  border:1px solid rgba(217,104,32,.18);
}
.state-modal-brand{display:flex;align-items:center;gap:.9rem;margin-bottom:1rem}
.state-modal-brand img{width:52px;height:52px;border-radius:14px}
.state-modal-card h2{font-size:1.55rem;line-height:1.1;margin-bottom:.45rem}
.state-modal-card p{color:var(--muted);margin-bottom:1rem}
.state-modal-select{width:100%;padding:.95rem 1rem;border-radius:16px;border:1px solid rgba(148,163,184,.45);font:inherit;margin-bottom:1rem;background:#fff}
.state-modal-actions{display:flex;flex-wrap:wrap;gap:.75rem}
.state-modal-note{font-size:.84rem;color:var(--muted);margin-top:.85rem}
.state-modal-close{
  position:absolute;top:12px;right:14px;width:36px;height:36px;border:none;border-radius:999px;
  background:#f7f7f8;color:#0f172a;font-size:26px;line-height:1;cursor:pointer;
  display:flex;align-items:center;justify-content:center;
}
.state-modal-close:hover{background:#fff3eb;color:#d96820}
body.modal-open{overflow:hidden}

/* modal rebuilt global */
.unit-dropdown{position:relative;display:inline-flex;align-items:center}
.unit-toggle{display:inline-flex;align-items:center;gap:.4rem;cursor:pointer}
.unit-toggle::after{content:"▾";font-size:.72rem;opacity:.7}
.unit-dropdown-menu{position:absolute;top:calc(100% + 12px);left:0;min-width:260px;max-height:360px;overflow:auto;background:#fff;border:1px solid rgba(148,163,184,.28);border-radius:16px;box-shadow:0 18px 45px rgba(15,23,42,.16);padding:.55rem;display:none;z-index:60}
.unit-dropdown.open .unit-dropdown-menu{display:grid;gap:.15rem}
.unit-option{width:100%;text-align:left;border:0;background:transparent;padding:.72rem .8rem;border-radius:12px;font:inherit;color:#0f172a;cursor:pointer}
.unit-option:hover{background:#fff3eb;color:var(--sea)}
.mobile-unit-trigger{display:none}
.active-unit-badge{display:none;align-items:center;justify-content:center;padding:.55rem .9rem;border-radius:999px;background:#fff3eb;color:#b85a17;border:1px solid rgba(217,104,32,.18);font-size:.82rem;font-weight:700;white-space:nowrap}
@media (min-width:1024px){.active-unit-badge{display:inline-flex}}
.state-modal{position:fixed;inset:0;background:rgba(15,23,42,.56);display:none;align-items:center;justify-content:center;z-index:9998;padding:1rem}
.state-modal.is-open{display:flex}
.state-modal-card{position:relative;width:min(100%,560px);background:#fff;border-radius:28px;padding:1.6rem;box-shadow:0 24px 60px rgba(15,23,42,.20);border:1px solid rgba(217,104,32,.18)}
.state-modal-brand{display:flex;align-items:center;gap:.9rem;margin-bottom:1rem}
.state-modal-brand img{width:52px;height:52px;border-radius:14px}
.state-modal-card h2{font-size:1.55rem;line-height:1.1;margin-bottom:.45rem}
.state-modal-card p{color:var(--muted);margin-bottom:1rem}
.state-modal-select{width:100%;padding:.95rem 1rem;border-radius:16px;border:1px solid rgba(148,163,184,.45);font:inherit;margin-bottom:1rem;background:#fff}
.state-modal-actions{display:flex;flex-wrap:wrap;gap:.75rem}
.state-modal-note{font-size:.84rem;color:var(--muted);margin-top:.85rem}
.state-modal-close{position:absolute;top:12px;right:14px;width:36px;height:36px;border:none;border-radius:999px;background:#f7f7f8;color:#0f172a;font-size:26px;line-height:1;cursor:pointer;display:flex;align-items:center;justify-content:center}
.state-modal-close:hover{background:#fff3eb;color:#d96820}
body.modal-open{overflow:hidden}
@media (max-width:767px){.unit-dropdown{display:none}.mobile-unit-trigger{display:inline-flex}}
