/* ═══════════════════════════════════════════════════════════════
   AVALON BRASIL — index.css
   Design System: Vibrant · Limpo · Premium · Futuro
   Paleta: #FFFFFF · #DCCBB4 · #D4A9DD · #9966CB · #73309C
═══════════════════════════════════════════════════════════════ */

/* ── 1. FONTS ─────────────────────────────────────────────── */
@font-face {
  font-family: 'BeVietnamPro';
  src: url('fontes/web/BeVietnamPro-Light.ttf') format('truetype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'BeVietnamPro';
  src: url('fontes/web/BeVietnamPro-LightItalic.ttf') format('truetype');
  font-weight: 300;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'BeVietnamPro';
  src: url('fontes/web/BeVietnamPro-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'BeVietnamPro';
  src: url('fontes/web/BeVietnamPro-Medium.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'BeVietnamPro';
  src: url('fontes/web/BeVietnamPro-SemiBold.ttf') format('truetype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'BeVietnamPro';
  src: url('fontes/web/BeVietnamPro-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'HammersmithOne';
  src: url('fontes/web/HammersmithOne-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'TTLakesNeue';
  src: url('fontes/web/TT Lakes Neue Trial Thin.ttf') format('truetype');
  font-weight: 100;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'TTLakesNeue';
  src: url('fontes/web/TT Lakes Neue Trial Light.ttf') format('truetype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'TTLakesNeue';
  src: url('fontes/web/TT Lakes Neue Trial Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'TTLakesNeue';
  src: url('fontes/web/TT Lakes Neue Trial Medium.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

/* ── 2. TOKENS ────────────────────────────────────────────── */
:root {
  /* Paleta */
  --white: #FFFFFF;
  --sand: #DCCBB4;
  --lilac: #D4A9DD;
  --purple: #9966CB;
  --deep: #73309C;

  /* Superfícies */
  --cream: #FBF7F2;
  --cream-warm: #F3EDE4;
  --dark: #0F0820;
  --dark-mid: #1A0E2E;
  --text: #2A1B3D;
  --text-soft: rgba(42, 27, 61, .5);
  --text-faint: rgba(42, 27, 61, .28);

  /* Fontes */
  --font-head: 'HammersmithOne', 'BeVietnamPro', system-ui, sans-serif;
  --font-body: 'BeVietnamPro', system-ui, sans-serif;
  --font-lakes: 'TTLakesNeue', 'BeVietnamPro', system-ui, sans-serif;

  /* Espaçamentos */
  --section-pad: clamp(4rem, 8vw, 8rem) clamp(1.2rem, 4vw, 3rem);
  --radius-card: 28px;
  --radius-pill: 100px;

  /* Gradientes */
  --grad-purple: linear-gradient(135deg, var(--deep), var(--purple));
  --grad-lilac: linear-gradient(135deg, var(--purple), var(--lilac));
  --grad-warm: linear-gradient(135deg, var(--cream-warm), var(--sand));
  --grad-glow: radial-gradient(circle, rgba(212, 169, 221, .18) 0%, transparent 70%);

  /* Sombras */
  --shadow-soft: 0 4px 24px rgba(115, 48, 156, .07);
  --shadow-hover: 0 20px 60px rgba(115, 48, 156, .14);
  --shadow-deep: 0 40px 100px rgba(115, 48, 156, .2);

  /* Transições */
  --ease-spring: cubic-bezier(.22, 1, .36, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --t-fast: .2s;
  --t-mid: .4s;
  --t-slow: .8s;
}

/* ── 3. RESET ─────────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0
}

html {
  scroll-behavior: smooth;
  background: var(--cream);
  -webkit-text-size-adjust: 100%;
  /* Barra de Rolagem Personalizada */
  scrollbar-width: thin;
  scrollbar-color: var(--purple) var(--cream);
}

/* Chrome, Edge, Safari */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: var(--cream);
}

::-webkit-scrollbar-thumb {
  background: var(--purple);
  border-radius: 10px;
  border: 2px solid var(--cream);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--deep);
}

body {
  font-family: var(--font-body);
  font-weight: 300;
  color: var(--text);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}

img {
  max-width: 100%;
  display: block
}

a {
  color: inherit;
  text-decoration: none
}

button {
  font-family: inherit;
  cursor: pointer
}

/* ── 4. NAV ───────────────────────────────────────────────── */
#mainNav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  padding: 0.5rem 3.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  overflow: visible;
  /* allow absolute dropdown to escape */
  transition: background var(--t-mid) var(--ease-out),
    padding var(--t-mid) var(--ease-out),
    box-shadow var(--t-mid) var(--ease-out);
}

#mainNav.scrolled {
  background: rgba(251, 247, 242, .95);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  box-shadow: 0 1px 0 rgba(153, 102, 203, .1), var(--shadow-soft);
  padding: 0.4rem 3.5rem;
}

#mainNav.dark-nav {
  background: rgba(15, 8, 32, .9);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
}

.brand img {
  height: 95px;
  transition: transform var(--t-mid) var(--ease-spring),
    opacity var(--t-fast);
  will-change: transform;
}

.brand img:hover {
  transform: scale(1.06)
}

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-links a {
  font-size: .65rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--text-soft);
  position: relative;
  transition: color var(--t-fast);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--purple);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t-mid) var(--ease-spring);
}

.nav-links a:hover {
  color: var(--deep)
}

.nav-links a:hover::after {
  transform: scaleX(1)
}

.nav-links a.active {
  color: var(--deep)
}

.nav-links a.active::after {
  transform: scaleX(1)
}

.nav-cta {
  padding: .5rem 1.6rem !important;
  border: 1px solid var(--purple) !important;
  border-radius: var(--radius-pill);
  color: var(--deep) !important;
  background: transparent;
  transition: background var(--t-fast), color var(--t-fast), transform var(--t-fast) !important;
}

.nav-cta:hover {
  background: var(--deep) !important;
  color: #fff !important;
  transform: translateY(-1px) !important
}

.nav-cta::after {
  display: none !important
}

/* Dark nav links */
#mainNav.dark-nav .nav-links a {
  color: rgba(255, 255, 255, .5)
}

#mainNav.dark-nav .nav-links a:hover {
  color: #fff
}

#mainNav.dark-nav .nav-cta {
  border-color: var(--lilac) !important;
  color: var(--lilac) !important
}

#mainNav.dark-nav .nav-cta:hover {
  background: var(--lilac) !important;
  color: var(--dark) !important
}

/* Hamburger */
.menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  width: 32px;
  padding: 4px;
  z-index: 201;
}

.menu-btn span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: var(--deep);
  transition: transform var(--t-mid) var(--ease-spring),
    opacity var(--t-fast), width var(--t-mid);
}

.menu-btn span:nth-child(1) {
  width: 100%
}

.menu-btn span:nth-child(2) {
  width: 70%
}

.menu-btn span:nth-child(3) {
  width: 100%
}

.menu-btn.open span:nth-child(1) {
  transform: rotate(45deg) translate(4px, 7px)
}

.menu-btn.open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0)
}

.menu-btn.open span:nth-child(3) {
  transform: rotate(-45deg) translate(4px, -7px)
}

nav.dark-nav .menu-btn span {
  background: #fff
}

/* ── 5. SPA TRANSITIONS ───────────────────────────────────── */
#pageTransition {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: var(--cream);
  pointer-events: none;
  opacity: 0;
  transition: opacity .28s var(--ease-out);
}

#pageTransition.active {
  opacity: 1;
  pointer-events: all
}

#app {
  min-height: 100vh;
  opacity: 1;
  transition: opacity .3s var(--ease-out);
}

#app.exiting {
  opacity: 0;
  transform: translateY(8px)
}

#app.entering {
  animation: appEnter .5s var(--ease-spring) both;
}

@keyframes appEnter {
  from {
    opacity: 0;
    transform: translateY(16px)
  }

  to {
    opacity: 1;
    transform: translateY(0)
  }
}

/* ── 6. CURSOR GLOW ───────────────────────────────────────── */
.cursor-glow {
  position: fixed;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212, 169, 221, .1) 0%, transparent 70%);
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: opacity .3s;
  will-change: left, top;
}

/* ── 7. TIPOGRAFIA BASES ─────────────────────────────────── */
h1,
h2,
h3,
h4,
h5 {
  font-family: var(--font-head);
  font-weight: 400;
  line-height: 1.1
}

.stag {
  font-size: .58rem;
  letter-spacing: .42em;
  text-transform: uppercase;
  color: var(--purple);
  margin-bottom: 1.4rem;
  display: inline-flex;
  align-items: center;
  gap: .8rem;
}

.stag::before {
  content: '';
  width: 24px;
  height: 1px;
  background: var(--purple)
}

h2.stl {
  font-family: var(--font-lakes);
  font-size: clamp(2.2rem, 4vw, 3.8rem);
  font-weight: 300;
  line-height: 1.12;
  margin-bottom: 2rem;
}

h2.stl em {
  font-style: italic;
  color: var(--deep)
}

/* ── 8. BOTÕES ────────────────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  padding: .9rem 2.6rem;
  background: var(--grad-purple);
  color: #fff;
  border: none;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-size: .7rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform var(--t-mid) var(--ease-spring),
    box-shadow var(--t-mid) var(--ease-spring);
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, .08);
  opacity: 0;
  transition: opacity var(--t-fast);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 45px rgba(115, 48, 156, .35)
}

.btn-primary:hover::before {
  opacity: 1
}

.btn-primary:active {
  transform: translateY(-1px)
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  padding: .88rem 2.2rem;
  background: transparent;
  color: var(--deep);
  border: 1px solid rgba(153, 102, 203, .25);
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-size: .7rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color var(--t-fast), color var(--t-fast), transform var(--t-mid) var(--ease-spring);
}

.btn-ghost:hover {
  border-color: var(--purple);
  color: var(--purple);
  transform: translateY(-2px)
}

/* ── 9. LAYOUT ────────────────────────────────────────────── */
.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 clamp(1.2rem, 4vw, 3rem)
}

section {
  padding: var(--section-pad)
}

/* ── 10. SCROLL REVEAL ────────────────────────────────────── */
.rv {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity var(--t-slow) var(--ease-spring),
    transform var(--t-slow) var(--ease-spring);
}

.rv.visible {
  opacity: 1;
  transform: translateY(0)
}

/* ── 11. FLOW DIVIDER ─────────────────────────────────────── */
.flow-div {
  width: 100%;
  overflow: hidden;
  line-height: 0;
  margin: -1px 0
}

.flow-div svg {
  width: 100%;
  height: 80px;
  display: block
}

/* ── 12. MARQUEE ──────────────────────────────────────────── */
.marquee-wrap {
  padding: 1.6rem 0;
  overflow: hidden;
  white-space: nowrap;
  background: var(--cream-warm);
  border-top: 1px solid rgba(220, 203, 180, .4);
  border-bottom: 1px solid rgba(220, 203, 180, .4);
}

.marquee-track {
  display: inline-block;
  animation: mscr 50s linear infinite
}

.marquee-track span {
  font-family: var(--font-lakes);
  font-style: italic;
  font-size: 1rem;
  letter-spacing: .14em;
  color: var(--text-soft);
  padding: 0 2.5rem;
}

.marquee-track span::after {
  content: '\2726';
  margin-left: 2.5rem;
  color: var(--purple);
  opacity: .35;
  font-style: normal;
  font-size: .65em;
}

@keyframes mscr {
  0% {
    transform: translateX(0)
  }

  100% {
    transform: translateX(-50%)
  }
}

/* ── 13. HERO ─────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background: var(--cream);
}

#particles {
  position: absolute;
  inset: 0;
  z-index: 0
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1300px;
  margin: 0 auto;
  padding: 6rem clamp(1.2rem, 4vw, 3rem) 2rem;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  align-items: center;
  gap: 3rem;
}

.hero-text {
  padding: 2rem 0
}

.hero-eyebrow {
  font-size: .6rem;
  letter-spacing: .5em;
  text-transform: uppercase;
  color: var(--purple);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: .8rem;
}

.hero-eyebrow::before {
  content: '';
  width: 40px;
  height: 1px;
  background: linear-gradient(to right, var(--purple), transparent);
}

.hero h1 {
  font-family: var(--font-lakes);
  font-weight: 300;
  font-size: clamp(3rem, 5.5vw, 6rem);
  line-height: 1.02;
  margin-bottom: 1.6rem;
  letter-spacing: -.01em;
}

.hero h1 .line2 {
  display: block;
  font-style: italic;
  color: var(--deep)
}

.hero h1 .line3 {
  display: block;
  font-size: .32em;
  font-family: var(--font-body);
  font-weight: 300;
  letter-spacing: .18em;
  color: var(--text-soft);
  margin-top: .8rem;
  font-style: normal;
  text-transform: uppercase;
}

.hero-p {
  color: var(--text-soft);
  font-size: .88rem;
  line-height: 1.95;
  max-width: 440px;
  margin-bottom: 2.8rem
}

.hero-actions {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap
}

/* Hero visual */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 520px
}

.hero-orb {
  width: 400px;
  height: 400px;
  border-radius: 50%;
  position: relative;
  background: radial-gradient(circle at 30% 30%, rgba(212, 169, 221, .22), rgba(153, 102, 203, .08), transparent 70%);
  animation: breathe 8s ease-in-out infinite;
}

.hero-orb::before {
  content: '';
  position: absolute;
  inset: 28px;
  border-radius: 50%;
  border: 1px solid rgba(153, 102, 203, .14);
  animation: spinr 40s linear infinite;
}

.hero-orb::after {
  content: '';
  position: absolute;
  inset: 60px;
  border-radius: 50%;
  border: 1px solid rgba(212, 169, 221, .08);
  animation: spinr 60s linear infinite reverse;
}

.hero-orb img {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 200px;
  filter: drop-shadow(0 0 40px rgba(153, 102, 203, .22));
}

.orbit-dot {
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--lilac);
  box-shadow: 0 0 12px rgba(212, 169, 221, .6);
}

.orbit-dot:nth-child(2) {
  top: 10%;
  left: 50%;
  animation: od1 12s linear infinite
}

.orbit-dot:nth-child(3) {
  top: 50%;
  right: 5%;
  animation: od2 16s linear infinite
}

.orbit-dot:nth-child(4) {
  bottom: 15%;
  left: 20%;
  animation: od3 20s linear infinite
}

.float-tag {
  position: absolute;
  padding: .55rem 1.4rem;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, .88);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow-soft);
  font-size: .61rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--deep);
  border: 1px solid rgba(153, 102, 203, .1);
}

.float-tag.t1 {
  top: 15%;
  right: -8%;
  animation: ftag 6s ease-in-out infinite
}

.float-tag.t2 {
  bottom: 20%;
  left: -5%;
  animation: ftag 8s ease-in-out 1s infinite
}

.float-tag.t3 {
  top: 55%;
  right: -15%;
  animation: ftag 7s ease-in-out 2s infinite
}

@keyframes breathe {

  0%,
  100% {
    transform: scale(1)
  }

  50% {
    transform: scale(1.04)
  }
}

@keyframes spinr {
  to {
    transform: rotate(360deg)
  }
}

@keyframes od1 {
  0% {
    transform: translate(0, 0)
  }

  25% {
    transform: translate(10px, 20px)
  }

  50% {
    transform: translate(20px, 0)
  }

  75% {
    transform: translate(10px, -20px)
  }

  100% {
    transform: translate(0, 0)
  }
}

@keyframes od2 {
  0% {
    transform: translateY(0)
  }

  50% {
    transform: translateY(-26px)
  }

  100% {
    transform: translateY(0)
  }
}

@keyframes od3 {
  0% {
    transform: translateX(0)
  }

  50% {
    transform: translateX(22px)
  }

  100% {
    transform: translateX(0)
  }
}

@keyframes ftag {

  0%,
  100% {
    transform: translateY(0)
  }

  50% {
    transform: translateY(-9px)
  }
}

/* ── 14. SOBRE ────────────────────────────────────────────── */
.about-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: center
}

.about-img {
  position: relative;
  aspect-ratio: 4/5;
  border-radius: 40px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--cream-warm), rgba(212, 169, 221, .15));
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-hover);
}

.about-img img {
  width: 55%;
  filter: drop-shadow(0 20px 60px rgba(115, 48, 156, .18));
  animation: breathe 10s ease-in-out infinite
}

.ab {
  position: absolute;
  border-radius: 50%;
  opacity: .18;
  filter: blur(70px)
}

.ab.b1 {
  width: 220px;
  height: 220px;
  background: var(--purple);
  top: 10%;
  left: 10%
}

.ab.b2 {
  width: 180px;
  height: 180px;
  background: var(--lilac);
  bottom: 15%;
  right: 10%
}

.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 2.5rem
}

.stat-box {
  padding: 1.5rem 1.8rem;
  border-radius: 20px;
  background: var(--cream-warm);
  border: 1px solid rgba(153, 102, 203, .06);
  transition: transform var(--t-mid) var(--ease-spring), box-shadow var(--t-mid);
}

.stat-box:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover)
}

.stat-val {
  font-family: var(--font-lakes);
  font-size: 2.4rem;
  font-weight: 300;
  color: var(--deep);
  line-height: 1;
}

.stat-label {
  font-size: .65rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-top: .4rem
}

/* ── 15. CER SECTION ──────────────────────────────────────── */
.cer {
  background: var(--dark);
  color: #fff;
  border-radius: 48px;
  margin: 0 1rem;
  padding: clamp(4rem, 6vw, 7rem) clamp(2rem, 5vw, 5rem);
  position: relative;
  overflow: hidden;
}

.cer::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -10%;
  width: 700px;
  height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(153, 102, 203, .14), transparent 65%);
  pointer-events: none;
}

.cer::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -8%;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212, 169, 221, .07), transparent 65%);
  pointer-events: none;
}

.cer .container {
  position: relative;
  z-index: 1
}

.cer-head {
  text-align: center;
  margin-bottom: 4rem
}

.cer-badge {
  display: inline-block;
  padding: .4rem 1.6rem;
  border: 1px solid rgba(212, 169, 221, .2);
  border-radius: var(--radius-pill);
  font-size: .56rem;
  letter-spacing: .38em;
  text-transform: uppercase;
  color: var(--lilac);
  margin-bottom: 1.6rem;
}

.cer h2 {
  font-family: var(--font-lakes);
  font-size: clamp(3rem, 6vw, 5.5rem);
  font-weight: 200;
  line-height: 1;
}

.cer h2 span {
  color: var(--lilac)
}

.cer-sub {
  color: rgba(255, 255, 255, .45);
  font-size: .88rem;
  max-width: 620px;
  margin: 1.6rem auto 0;
  line-height: 1.9;
  text-align: center
}

.cer-pills {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: .6rem;
  margin: 3rem 0
}

.cer-pills span {
  padding: .55rem 1.6rem;
  border: 1px solid rgba(212, 169, 221, .14);
  border-radius: var(--radius-pill);
  font-size: .66rem;
  letter-spacing: .1em;
  color: var(--lilac);
  transition: all var(--t-mid) var(--ease-spring);
  cursor: default;
}

.cer-pills span:hover {
  background: rgba(212, 169, 221, .08);
  border-color: var(--lilac);
  transform: translateY(-2px)
}

.cer-numbers {
  display: flex;
  justify-content: center;
  gap: 4rem;
  margin-top: 3rem;
  padding-top: 3rem;
  border-top: 1px solid rgba(255, 255, 255, .06);
  flex-wrap: wrap;
}

.cer-n .v {
  font-family: var(--font-lakes);
  font-size: clamp(2.5rem, 4vw, 4rem);
  font-weight: 200;
  color: var(--lilac);
}

.cer-n .l {
  font-size: .56rem;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .3);
  margin-top: .5rem
}

/* ── 16. TECH CARDS ───────────────────────────────────────── */
.tech-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem
}

.tc {
  padding: 2.5rem 2.2rem;
  border-radius: var(--radius-card);
  border: 1px solid rgba(153, 102, 203, .07);
  background: var(--cream-warm);
  transition: transform var(--t-mid) var(--ease-spring), box-shadow var(--t-mid), border-color var(--t-mid);
  position: relative;
  overflow: hidden;
}

.tc:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(153, 102, 203, .14)
}

.tc::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--grad-lilac);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t-mid) var(--ease-spring);
}

.tc:hover::before {
  transform: scaleX(1)
}

.tc-n {
  font-family: var(--font-lakes);
  font-size: 3.8rem;
  color: rgba(153, 102, 203, .06);
  font-weight: 300;
  line-height: 1;
  margin-bottom: 1rem
}

.tc h3 {
  font-size: .76rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-weight: 500;
  margin-bottom: .8rem;
  color: var(--deep)
}

.tc p {
  color: var(--text-soft);
  font-size: .78rem;
  line-height: 1.9
}

/* ── 17. MATERIAIS ────────────────────────────────────────── */
.dl-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 2rem
}

.dli {
  display: flex;
  gap: 1.4rem;
  align-items: center;
  padding: 1.6rem 2rem;
  border-radius: 22px;
  border: 1px solid rgba(153, 102, 203, .07);
  background: #fff;
  box-shadow: var(--shadow-soft);
  transition: border-color var(--t-mid), transform var(--t-mid) var(--ease-spring), box-shadow var(--t-mid);
}

.dli:hover {
  border-color: var(--purple);
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover)
}

.dli .ico {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  flex-shrink: 0;
  background: linear-gradient(135deg, rgba(153, 102, 203, .1), rgba(212, 169, 221, .15));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.dli h4 {
  font-size: .84rem;
  font-weight: 500;
  margin-bottom: .25rem;
  font-family: var(--font-body)
}

.dli p {
  font-size: .68rem;
  color: var(--text-soft)
}

/* ── 18. PDF VIEWER ───────────────────────────────────────── */
.pdf-viewer {
  background: var(--dark-mid);
  border-radius: 40px;
  margin: 2rem 0;
  overflow: hidden;
  box-shadow: var(--shadow-deep);
}

.pdf-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 1.2rem 2rem;
  background: rgba(255, 255, 255, .04);
  border-bottom: 1px solid rgba(255, 255, 255, .06);
}

.pdf-toolbar-btns {
  display: flex;
  align-items: center;
  gap: .6rem
}

.pdf-btn {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: none;
  background: rgba(255, 255, 255, .08);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--t-fast), transform var(--t-fast);
  font-size: 1rem;
}

.pdf-btn:hover {
  background: rgba(153, 102, 203, .3);
  transform: scale(1.08)
}

.pdf-btn:disabled {
  opacity: .3;
  cursor: not-allowed;
  transform: none
}

.pdf-page-info {
  color: rgba(255, 255, 255, .5);
  font-size: .72rem;
  letter-spacing: .1em
}

.pdf-zoom-btns {
  display: flex;
  gap: .5rem
}

.pdf-canvas-wrap {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 2rem;
  min-height: 600px;
  overflow-x: auto;
}

.pdf-canvas-wrap canvas {
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .4);
  max-width: 100%;
  height: auto;
}

.pdf-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 500px;
  color: rgba(255, 255, 255, .4);
  font-size: .8rem;
  gap: 1.2rem;
}

.pdf-spinner {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 3px solid rgba(212, 169, 221, .2);
  border-top-color: var(--lilac);
  animation: spin .8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg)
  }
}

.pdf-thumb-strip {
  display: flex;
  gap: 1rem;
  padding: 1.2rem 2rem;
  overflow-x: auto;
  background: rgba(0, 0, 0, .2);
  border-top: 1px solid rgba(255, 255, 255, .04);
  scrollbar-width: thin;
  scrollbar-color: rgba(153, 102, 203, .3) transparent;
}

.pdf-thumb {
  flex-shrink: 0;
  width: 80px;
  cursor: pointer;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid transparent;
  transition: border-color var(--t-fast), transform var(--t-fast);
  opacity: .5;
}

.pdf-thumb:hover {
  opacity: .8;
  transform: scale(1.05)
}

.pdf-thumb.active {
  border-color: var(--purple);
  opacity: 1
}

.pdf-thumb canvas {
  width: 100% !important;
  height: auto !important
}

/* ── 19. SOCIAL / FRANQUIAS GRID ─────────────────────────── */
.sbar {
  display: flex;
  gap: 1rem;
  margin-bottom: 2.5rem
}

.sbar a {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 1px solid rgba(153, 102, 203, .12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--deep);
  font-size: 1.1rem;
  transition: background var(--t-mid) var(--ease-spring), color var(--t-fast), transform var(--t-mid) var(--ease-spring), box-shadow var(--t-mid);
}

.sbar a:hover {
  background: var(--deep);
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(115, 48, 156, .25)
}

.fgrid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: .8rem;
  height: 420px;
}

.fi {
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  transition: transform var(--t-mid) var(--ease-spring), box-shadow var(--t-mid);
}

.fi:hover {
  transform: scale(1.025);
  box-shadow: var(--shadow-hover)
}

.fi:nth-child(1) {
  grid-row: 1/3;
  background: linear-gradient(160deg, rgba(153, 102, 203, .14), rgba(212, 169, 221, .08))
}

.fi:nth-child(2) {
  background: linear-gradient(160deg, rgba(212, 169, 221, .16), rgba(220, 203, 180, .1))
}

.fi:nth-child(3) {
  background: linear-gradient(160deg, rgba(220, 203, 180, .16), rgba(153, 102, 203, .07))
}

.fi:nth-child(4) {
  grid-row: 1/3;
  background: linear-gradient(160deg, rgba(212, 169, 221, .11), rgba(153, 102, 203, .14))
}

.fi:nth-child(5) {
  background: linear-gradient(160deg, rgba(153, 102, 203, .09), rgba(212, 169, 221, .13))
}

.fi:nth-child(6) {
  background: linear-gradient(160deg, rgba(220, 203, 180, .13), rgba(212, 169, 221, .11))
}

.fi-e {
  font-size: 2.8rem
}

.fi-t {
  font-size: .58rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--purple)
}

.fi-h {
  position: absolute;
  inset: 0;
  background: rgba(26, 14, 46, .88);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.6rem;
  opacity: 0;
  transition: opacity var(--t-mid);
}

.fi:hover .fi-h {
  opacity: 1
}

.fi-h p {
  color: rgba(255, 255, 255, .85);
  font-size: .75rem;
  line-height: 1.7;
  text-align: center
}

/* ── 21. MAP MODAL ────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 8, 32, 0.85);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all var(--t-mid) var(--ease-out);
}

.modal-overlay.open {
  opacity: 1;
  visibility: visible;
}

.modal-container {
  background: var(--white);
  width: 90%;
  max-width: 900px;
  height: 80vh;
  border-radius: var(--radius-card);
  position: relative;
  overflow: hidden;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.4);
  transform: translateY(30px) scale(0.95);
  transition: all var(--t-mid) var(--ease-spring);
  display: flex;
  flex-direction: column;
}

.modal-overlay.open .modal-container {
  transform: translateY(0) scale(1);
}

.modal-header {
  padding: 1.5rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--cream-warm);
}

.modal-title-wrap h3 {
  font-family: var(--font-head);
  font-size: 1.2rem;
  color: var(--deep);
  margin-bottom: 0.2rem;
}

.modal-title-wrap p {
  font-size: 0.8rem;
  color: var(--text-soft);
}

.modal-close {
  background: var(--cream);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--deep);
  font-size: 1.5rem;
  transition: all var(--t-fast);
}

.modal-close:hover {
  background: var(--deep);
  color: var(--white);
  transform: rotate(90deg);
}

#modalMap {
  flex: 1;
  width: 100%;
  z-index: 1;
  min-height: 300px;
  background: #eee;
}

/* Ensure Leaflet tiles are not hidden by some container styles */
.leaflet-container {
  height: 100% !important;
  width: 100% !important;
}

@media (max-width: 768px) {
  .modal-container {
    width: 95%;
    height: 90vh;
  }

  .modal-header {
    padding: 1rem 1.2rem;
  }
}

.franchise-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}

.clinic-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 1.5rem;
}

@media (min-width: 1100px) {

  .franchise-grid,
  .clinic-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.franchise-card {
  border-radius: var(--radius-card);
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(153, 102, 203, .07);
  box-shadow: var(--shadow-soft);
  transition: transform var(--t-mid) var(--ease-spring), box-shadow var(--t-mid);
}

.franchise-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover)
}

.fc-img {
  aspect-ratio: 4/3;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(212, 169, 221, .1), rgba(153, 102, 203, .08));
  display: flex;
  align-items: center;
  justify-content: center;
}

.fc-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 1.5rem
}

.fc-body {
  padding: 1.3rem 1.8rem;
}

.fc-city {
  font-size: .62rem;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--purple);
  margin-bottom: .4rem
}

.fc-name {
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--text)
}

/* ── 21. CONTATO ──────────────────────────────────────────── */
.cw {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start
}

.cl h2 {
  font-family: var(--font-lakes);
  font-size: clamp(2.2rem, 4vw, 3.8rem);
  font-weight: 300;
  line-height: 1.1;
  margin-bottom: 1.5rem
}

.cl h2 em {
  color: var(--deep);
  font-style: italic
}

.cl>p {
  color: var(--text-soft);
  line-height: 1.9;
  font-size: .88rem;
  margin-bottom: 2.5rem;
  max-width: 400px
}

.cln {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.2rem;
  font-size: .84rem;
  color: var(--text-soft)
}

.cln .ci {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  flex-shrink: 0;
  background: rgba(153, 102, 203, .07);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.cln a {
  color: var(--deep);
  transition: color var(--t-fast)
}

.cln a:hover {
  color: var(--purple)
}

/* Form Box */
.fbx {
  border-radius: 32px;
  border: 1px solid rgba(153, 102, 203, .1);
  background: #fff;
  padding: 3rem;
  box-shadow: 0 30px 80px rgba(115, 48, 156, .06);
}

.fbx h3 {
  font-family: var(--font-lakes);
  font-size: 1.6rem;
  font-weight: 400;
  margin-bottom: .35rem;
  color: var(--deep)
}

.fbx .fs {
  font-size: .7rem;
  color: var(--text-soft);
  margin-bottom: 2rem
}

.fg {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .9rem
}

.ff {
  display: flex;
  flex-direction: column;
  gap: .35rem
}

.ff.full {
  grid-column: 1/-1
}

.ff label {
  font-size: .58rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--text-soft)
}

.ff input,
.ff textarea {
  border: 1px solid rgba(153, 102, 203, .12);
  border-radius: 14px;
  padding: .85rem 1.1rem;
  background: var(--cream);
  color: var(--text);
  outline: none;
  font-family: var(--font-body);
  font-size: .84rem;
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}

.ff input:focus,
.ff textarea:focus {
  border-color: var(--purple);
  box-shadow: 0 0 0 4px rgba(153, 102, 203, .07);
}

.ff textarea {
  resize: vertical;
  min-height: 80px
}

.ckr {
  grid-column: 1/-1;
  display: flex;
  gap: .75rem;
  align-items: flex-start;
  margin-top: .4rem
}

.ckr input {
  margin-top: 3px;
  accent-color: var(--deep);
  cursor: pointer
}

.ckr span {
  font-size: .66rem;
  color: var(--text-soft);
  line-height: 1.6
}

.fa {
  grid-column: 1/-1;
  display: flex;
  align-items: center;
  gap: 1.2rem;
  margin-top: .7rem
}

.bsub {
  padding: .88rem 2.6rem;
  background: var(--grad-purple);
  color: #fff;
  border: none;
  border-radius: var(--radius-pill);
  font-size: .68rem;
  letter-spacing: .26em;
  text-transform: uppercase;
  cursor: pointer;
  font-family: var(--font-body);
  transition: transform var(--t-mid) var(--ease-spring), box-shadow var(--t-mid), opacity var(--t-fast);
}

.bsub:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 35px rgba(115, 48, 156, .3)
}

.bsub:disabled {
  opacity: .45;
  cursor: not-allowed;
  transform: none
}

#leadStatus {
  font-size: .7rem;
  color: var(--text-soft)
}

.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden
}

/* ── 22. FOOTER ───────────────────────────────────────────── */
footer {
  background: var(--dark);
  border-radius: 40px 40px 0 0;
  margin: 0 1rem 0;
  padding: 2.5rem 3rem 1.5rem;
  position: relative;
  /* stay in normal flow */
  z-index: 1;
  /* below any fixed elements */
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 2rem;
  align-items: start;
  border-bottom: 1px solid rgba(255, 255, 255, .06);
  padding-bottom: 2rem;
  margin-bottom: 1.5rem;
}

.footer-brand .footer-logo {
  height: 100px;
  margin-bottom: 1.2rem;
  opacity: 1;
  filter: drop-shadow(0 0 10px rgba(153, 102, 203, 0.2));
}

.footer-brand p {
  color: rgba(255, 255, 255, .35);
  font-size: .78rem;
  line-height: 1.8
}

.footer-brand em {
  color: var(--lilac);
  font-style: italic
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: .8rem;
}

.footer-links a {
  color: rgba(255, 255, 255, .35);
  font-size: .72rem;
  letter-spacing: .1em;
  transition: color var(--t-fast), transform var(--t-fast);
  display: inline-block;
}

.footer-links a:hover {
  color: var(--lilac);
  transform: translateX(4px)
}

.footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: .8rem;
  align-items: flex-start
}

.footer-social a {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, .08);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--t-mid) var(--ease-spring), box-shadow var(--t-mid), filter var(--t-fast);
}

.footer-social a.s-ig {
  background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
  border: none;
}

.footer-social a.s-wa {
  background-color: #25d366;
  border-color: #25d366;
}

.footer-social a.s-fb {
  background-color: #1877f2;
  border-color: #1877f2;
}

.footer-social a.s-yt {
  background-color: #ff0000;
  border-color: #ff0000;
}

.footer-social a svg {
  width: 20px;
  height: 20px;
}

.footer-social a:hover {
  transform: translateY(-3px) scale(1.08);
  filter: brightness(1.15);
  box-shadow: 0 8px 20px rgba(0, 0, 0, .3)
}

.footer-social a.s-yt {
  background: #FF0000;
  border-color: #FF0000
}

.footer-social a.s-ig {
  background: linear-gradient(135deg, #f58529, #dd2a7b, #8134af, #515bd4);
  border-color: #dd2a7b
}

.footer-social a.s-fb {
  background: #1877F2;
  border-color: #1877F2
}

.footer-social a.s-wa {
  background: #25D366;
  border-color: #25D366
}

.footer-social a svg path,
.footer-social a svg rect,
.footer-social a svg circle {
  fill: #fff
}

/* sbar brand social */
.sbar a.s-yt {
  background: #FF0000 !important;
  border-color: #FF0000 !important;
  color: #fff !important
}

.sbar a.s-ig {
  background: linear-gradient(135deg, #f58529, #dd2a7b, #8134af) !important;
  border-color: #dd2a7b !important;
  color: #fff !important
}

.sbar a.s-fb {
  background: #1877F2 !important;
  border-color: #1877F2 !important;
  color: #fff !important
}

.sbar a.s-wa {
  background: #25D366 !important;
  border-color: #25D366 !important;
  color: #fff !important
}

.sbar a {
  color: #fff !important
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: .6rem;
  color: rgba(255, 255, 255, .2);
  font-size: .6rem;
  letter-spacing: .12em;
}

.footer-bottom a {
  color: rgba(255, 255, 255, .2);
  transition: color var(--t-fast)
}

.footer-bottom a:hover {
  color: var(--lilac)
}

/* ── 23. SOBRE PAGE ───────────────────────────────────────── */
.page-hero {
  padding: clamp(7rem, 12vw, 12rem) 3rem clamp(4rem, 6vw, 6rem);
  text-align: center;
  background: var(--cream);
}

.page-hero-tag {
  font-size: .58rem;
  letter-spacing: .45em;
  text-transform: uppercase;
  color: var(--purple);
  margin-bottom: 1.2rem
}

.page-hero h1 {
  font-family: var(--font-lakes);
  font-size: clamp(2.8rem, 5vw, 5rem);
  font-weight: 300;
  line-height: 1.05
}

.page-hero h1 em {
  font-style: italic;
  color: var(--deep)
}

.page-hero p {
  color: var(--text-soft);
  font-size: .92rem;
  line-height: 1.9;
  max-width: 600px;
  margin: 1.5rem auto 0
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem
}

.val-card {
  padding: 2.5rem 2rem;
  border-radius: var(--radius-card);
  background: var(--cream-warm);
  border: 1px solid rgba(153, 102, 203, .07);
  position: relative;
  overflow: hidden;
  transition: transform var(--t-mid) var(--ease-spring), box-shadow var(--t-mid);
}

.val-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover)
}

.val-icon {
  font-size: 2.4rem;
  margin-bottom: 1.2rem
}

.val-card h3 {
  font-size: .78rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--deep);
  margin-bottom: .6rem
}

.val-card p {
  font-size: .78rem;
  color: var(--text-soft);
  line-height: 1.85
}

.timeline {
  margin-top: 4rem;
  position: relative;
  padding-left: 2rem
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--purple), transparent)
}

.timeline-item {
  position: relative;
  padding: 0 0 3rem 2.5rem
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -2rem;
  top: .35rem;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--purple);
  box-shadow: 0 0 0 4px rgba(153, 102, 203, .18);
}

.timeline-year {
  font-size: .6rem;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--purple);
  margin-bottom: .4rem
}

.timeline-title {
  font-size: 1.05rem;
  font-weight: 500;
  margin-bottom: .5rem
}

.timeline-text {
  font-size: .82rem;
  color: var(--text-soft);
  line-height: 1.85
}

/* ── 24. CER PAGE ─────────────────────────────────────────── */
.cer-feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
  padding: 5rem 0;
}

.cer-feature.reverse {
  direction: rtl
}

.cer-feature.reverse>* {
  direction: ltr
}

.cer-feature-img {
  border-radius: 60px;
  overflow: hidden;
  aspect-ratio: 1;
  background: linear-gradient(135deg, rgba(212, 169, 221, .15), rgba(153, 102, 203, .08));
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-hover);
  position: relative;
}

.cer-feature-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  opacity: .04;
  pointer-events: none;
  mix-blend-mode: overlay;
}

.cer-feature-img img {
  width: 75%;
  border-radius: 40px;
  filter: drop-shadow(0 20px 50px rgba(115, 48, 156, .2));
  animation: breathe 10s ease-in-out infinite;
  mask-image: radial-gradient(circle, black 60%, transparent 95%);
  -webkit-mask-image: radial-gradient(circle, black 60%, transparent 95%);
}

.cer-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 2rem
}

.cer-detail {
  padding: 1.5rem;
  border-radius: 20px;
  background: rgba(153, 102, 203, .04);
  border: 1px solid rgba(153, 102, 203, .08);
}

.cer-detail-icon {
  font-size: 1.6rem;
  margin-bottom: .8rem
}

.cer-detail h4 {
  font-size: .75rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--deep);
  margin-bottom: .5rem
}

.cer-detail p {
  font-size: .75rem;
  color: var(--text-soft);
  line-height: 1.8
}

/* ── 25. PROJETOS PAGE (PDF) ──────────────────────────────── */
.projetos-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  margin-bottom: 3rem
}

/* ── 26. SECTION BACKGROUNDS ─────────────────────────────── */
.bg-cream {
  background: var(--cream)
}

.bg-warm {
  background: var(--cream-warm);
  border-radius: 40px;
  margin: 0 1rem
}

/* ── 27. RESPONSIVE ───────────────────────────────────────── */
@media (max-width:1024px) {

  .cw,
  .cer-feature,
  .projetos-intro {
    grid-template-columns: 1fr
  }

  .cer-feature.reverse {
    direction: ltr
  }
}

@media (max-width:900px) {
  #mainNav {
    padding: 1.1rem 1.4rem
  }

  #mainNav.scrolled {
    padding: .9rem 1.4rem
  }

  /* Mobile nav: dropdown below nav bar, not fullscreen overlay */
  .nav-links {
    display: none;
    /* COMPLETELY HIDDEN when closed (no ghost) */
    position: absolute;
    /* absolute to nav bar, NOT fixed to viewport */
    top: 100%;
    /* right below the nav bar */
    left: 0;
    right: 0;
    background: rgba(251, 247, 242, .98);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    z-index: 201;
    padding: 1.2rem 2rem 1.8rem;
    box-shadow: 0 20px 50px rgba(115, 48, 156, .1);
    border-top: 1px solid rgba(153, 102, 203, .08);
  }

  .nav-links.open {
    display: flex;
    /* show as column dropdown */
  }

  .nav-links a {
    display: block;
    font-size: 1.1rem;
    letter-spacing: .05em;
    color: var(--text) !important;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(153, 102, 203, .06);
  }

  .nav-links a::after {
    display: none
  }

  .nav-cta {
    display: inline-block !important;
    margin: 1.5rem 0 0 !important;
    border-radius: var(--radius-pill) !important
  }

  .menu-btn {
    display: flex
  }

  .brand img {
    height: 70px
  }

  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 7rem 1.5rem 3rem
  }

  .hero-visual {
    min-height: 320px;
    order: -1
  }

  .hero-orb {
    width: 260px;
    height: 260px
  }

  .float-tag {
    display: none
  }

  .hero-p {
    margin-left: auto;
    margin-right: auto
  }

  .hero-actions {
    justify-content: center
  }

  .about-split {
    grid-template-columns: 1fr;
    gap: 3rem
  }

  .about-stats {
    grid-template-columns: 1fr 1fr
  }

  .cw {
    grid-template-columns: 1fr;
    gap: 3rem
  }

  .fg {
    grid-template-columns: 1fr
  }

  .tech-row {
    grid-template-columns: 1fr
  }

  .dl-row {
    grid-template-columns: 1fr
  }

  .values-grid {
    grid-template-columns: 1fr
  }

  .cer-detail-grid {
    grid-template-columns: 1fr
  }

  .cer {
    margin: 0;
    border-radius: 0;
    padding: 4rem 1.5rem
  }

  .bg-warm {
    margin: 0;
    border-radius: 0
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 2rem
  }

  footer {
    margin: 0;
    border-radius: 0
  }

  .fgrid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: auto;
    height: auto
  }

  .fi {
    min-height: 150px
  }

  .fi:nth-child(1),
  .fi:nth-child(4) {
    grid-row: auto
  }

  .cursor-glow {
    display: none
  }

  /* ── LEAFLET MAP ─────────────────────────────────────────── */
  #franchiseMap {
    height: 520px;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: var(--shadow-hover);
  }

  .leaflet-popup-content-wrapper {
    border-radius: 16px !important;
    border: none !important;
    box-shadow: 0 8px 30px rgba(0, 0, 0, .15) !important;
  }

  .leaflet-popup-content {
    margin: 1rem 1.2rem !important;
    font-family: var(--font-body) !important
  }

  .map-popup-logo {
    width: 100px;
    display: block;
    margin: 0 auto .5rem
  }

  .map-popup-city {
    text-align: center;
    font-weight: 600;
    color: var(--deep);
    font-size: .9rem
  }

  .map-popup-state {
    text-align: center;
    font-size: .7rem;
    color: var(--text-soft);
    margin-bottom: .6rem
  }

  .map-popup-btns {
    display: flex;
    gap: .4rem;
    justify-content: center;
    flex-wrap: wrap
  }

  .map-popup-btn {
    padding: .35rem .9rem;
    border-radius: 100px;
    font-size: .62rem;
    font-weight: 500;
    letter-spacing: .06em;
    border: none;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
  }

  .map-popup-btn.wa {
    background: #25D366;
    color: #fff
  }

  .map-popup-btn.tel {
    background: var(--purple);
    color: #fff
  }

  /* nearest franchise result */
  .nearest-box {
    background: linear-gradient(135deg, rgba(115, 48, 156, .08), rgba(212, 169, 221, .06));
    border: 1px solid rgba(153, 102, 203, .18);
    border-radius: 24px;
    padding: 1.8rem 2rem;
    margin-bottom: 2rem;
    display: flex;
    gap: 1.4rem;
    align-items: center;
    flex-wrap: wrap;
  }

  .nearest-logo {
    width: 120px;
    border-radius: 12px;
    background: #fff;
    padding: .5rem
  }

  .nearest-info h4 {
    font-size: 1.1rem;
    color: var(--deep);
    margin-bottom: .3rem
  }

  .nearest-info p {
    font-size: .78rem;
    color: var(--text-soft);
    margin-bottom: .8rem
  }

  .nearest-btns {
    display: flex;
    gap: .6rem;
    flex-wrap: wrap
  }

  .nearest-btns a {
    padding: .45rem 1.2rem;
    border-radius: 100px;
    font-size: .66rem;
    font-weight: 500;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: .4rem;
  }

  .nearest-btns .b-wa {
    background: #25D366;
    color: #fff
  }

  .nearest-btns .b-tel {
    background: var(--purple);
    color: #fff
  }

  .nearest-btns .b-mail {
    background: var(--deep);
    color: #fff
  }

  .pdf-toolbar {
    flex-direction: column;
    align-items: flex-start
  }

  .pdf-canvas-wrap {
    padding: 1.2rem
  }
}

@media (max-width:480px) {
  .franchise-grid {
    grid-template-columns: 1fr
  }

  .about-stats {
    grid-template-columns: 1fr
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center
  }
}

/* ── 28. ACESSIBILIDADE ───────────────────────────────────── */
:focus-visible {
  outline: 2px solid var(--purple);
  outline-offset: 3px;
  border-radius: 4px;
}

@media (prefers-reduced-motion:reduce) {

  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important
  }
}

/* ── 29. SOCIAL FEED & CHAT INTERACTIVE ───────────────────── */
.sf-container {
  margin-top: 2rem;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 20px;
  border: 1px solid rgba(153, 102, 203, 0.15);
  box-shadow: var(--shadow-soft);
  animation: sfEnter var(--t-mid) var(--ease-spring) forwards;
  display: none;
}

.sf-container.active {
  display: block;
}

@keyframes sfEnter {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.sf-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.2rem;
}

.sf-header h4 {
  font-family: var(--font-lakes);
  color: var(--deep);
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
}

.sf-close {
  background: none;
  border: none;
  font-size: 1.8rem;
  color: var(--text-soft);
  cursor: pointer;
  transition: color var(--t-fast);
  line-height: 1;
  padding: 0 0.5rem;
}

.sf-close:hover {
  color: var(--deep);
}

.sf-feed-row {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding-bottom: 0.8rem;
  scroll-snap-type: x mandatory;
}

.sf-feed-row::-webkit-scrollbar {
  height: 6px;
}

.sf-feed-row::-webkit-scrollbar-thumb {
  background: rgba(153, 102, 203, 0.3);
  border-radius: 3px;
}

.sf-card {
  flex: 0 0 280px;
  scroll-snap-align: start;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
  text-decoration: none;
  color: var(--text);
  transition: transform var(--t-mid) var(--ease-spring), box-shadow var(--t-mid);
  border: 1px solid rgba(153, 102, 203, 0.1);
  display: flex;
  flex-direction: column;
}

.sf-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.sf-card-img {
  height: 140px;
  background: var(--cream-warm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: var(--purple);
  position: relative;
}

.sf-card-body {
  padding: 1rem;
}

.sf-card-title {
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 0.4rem;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.sf-card-meta {
  font-size: 0.75rem;
  color: var(--text-soft);
}

.sf-chat {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 440px;
  margin: 0 auto;
  background: #e5ddd5;
  border-radius: 16px;
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.sf-msg-bot {
  background: #fff;
  padding: 0.8rem 1rem;
  border-radius: 0 12px 12px 12px;
  font-size: 0.9rem;
  color: #303030;
  width: fit-content;
  max-width: 85%;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  position: relative;
  animation: sfMsg var(--t-mid) var(--ease-spring) forwards;
  line-height: 1.4;
}

.sf-msg-bot::after {
  content: '';
  position: absolute;
  top: 0;
  left: -8px;
  border: 8px solid transparent;
  border-top-color: #fff;
  border-right-color: #fff;
}

.sf-msg-opts {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-top: 0.5rem;
  animation: sfMsg var(--t-mid) var(--ease-spring) 0.2s both;
}

.sf-msg-opt {
  background: #dcf8c6;
  border: none;
  padding: 0.8rem 1rem;
  border-radius: 12px;
  font-size: 0.9rem;
  color: #303030;
  cursor: pointer;
  transition: filter var(--t-fast);
  text-align: center;
  font-weight: 500;
  display: block;
  text-decoration: none;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.sf-msg-opt:hover {
  filter: brightness(0.95);
}

@keyframes sfMsg {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── PRIVACY BANNER ───────────────────────────────────────── */
.privacy-banner {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  width: calc(100% - 2rem);
  max-width: 900px;
  background: rgba(15, 8, 32, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(153, 102, 203, 0.2);
  border-radius: 1.2rem;
  padding: 1.5rem 2rem;
  z-index: 9999;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), var(--shadow-deep);
  transition: transform 0.6s var(--ease-spring), opacity 0.4s ease;
  opacity: 0;
  display: block;
}

.privacy-banner:not([hidden]) {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

.pb-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.pb-text h3 {
  font-family: var(--font-lakes);
  font-size: 1.1rem;
  color: var(--lilac);
  margin-bottom: 0.3rem;
  font-weight: 600;
}

.pb-text p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
  line-height: 1.4;
}

.pb-btn {
  padding: 0.8rem 1.8rem;
  background: rgba(153, 102, 203, 0.15);
  color: var(--lilac);
  border: 1px solid var(--lilac);
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--t-fast);
}

.pb-btn:hover {
  background: var(--lilac);
  color: var(--dark);
  transform: scale(1.05);
}

@media (max-width: 768px) {
  .privacy-banner {
    bottom: 1rem;
    padding: 1.2rem;
    width: calc(100% - 1.5rem);
  }

  .pb-content {
    flex-direction: column;
    text-align: center;
    gap: 1.2rem;
  }

  .pb-btn {
    width: 100%;
  }
}

/* ── NEAREST UNIT DISPLAY ─────────────────────────────────── */
.nearest-box {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  background: rgba(153, 102, 203, 0.05);
  border: 1px solid rgba(153, 102, 203, 0.1);
  padding: 1.2rem;
  border-radius: 1rem;
  margin-bottom: 2.5rem;
  /* Space between unit and address */
  margin-top: 1rem;
  animation: fadeInDown 0.6s var(--ease-spring);
}

.nearest-logo {
  flex-shrink: 0;
  width: 200px;
  height: auto;
  max-width: 100%;
  object-fit: contain;
  border-radius: 0.5rem;
}

.nearest-info h4 {
  font-family: var(--font-lakes);
  font-size: 1rem;
  color: var(--deep);
  margin-bottom: 0.4rem;
}

.nearest-info p {
  font-size: 0.85rem;
  color: var(--text-soft);
  margin-bottom: 1rem;
}

.nearest-btns {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.nearest-btns a {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--purple);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: opacity var(--t-fast);
}

.nearest-btns a:hover {
  opacity: 0.7;
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 600px) {
  .nearest-box {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
    padding: 1rem;
  }

  .nearest-logo {
    width: 160px;
  }

  .nearest-btns {
    justify-content: center;
  }
}