/* FAZFISIO — Sistema de design */

@font-face {
  font-family: "Unbounded";
  src: url("assets/Unbounded.ttf") format("truetype-variations");
  font-weight: 200 900;
  font-display: swap;
}

:root {
  /* Brand */
  --green-deep: #3D6B5A;
  --green-deep-2: #2F574A;
  --green-mid: #5C9C7C;
  --green-light: #6FBF94;
  --green-pale: #C9E4D5;
  --green-mist: #EAF3EE;

  /* Neutrals */
  --cream: #F7F5F0;
  --cream-2: #F0EDE5;
  --ink: #1F2A26;
  --ink-soft: #4A5751;
  --ink-mute: #7A857F;
  --line: #E2E0D8;

  /* Type */
  --display: "Unbounded", system-ui, sans-serif;
  --body: "Inter", system-ui, -apple-system, sans-serif;

  /* Layout */
  --max: 1240px;
  --gutter: clamp(20px, 5vw, 64px);
  --radius: 18px;
  --radius-sm: 10px;
  --radius-lg: 28px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: clip; }
body {
  font-family: var(--body);
  color: var(--ink);
  background: #FFFFFF;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-size: 16px;
  line-height: 1.55;
  overflow-x: clip;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; border: none; background: none; cursor: pointer; color: inherit; }

/* Utilities */
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.eyebrow {
  font-family: var(--body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--green-deep);
}
.h-display {
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.05;
  color: var(--ink);
  margin: 0;
  text-wrap: balance;
}
h1.h-display { font-size: clamp(36px, 6.5vw, 76px); }
h2.h-display { font-size: clamp(28px, 4.5vw, 52px); }
h3.h-display { font-size: clamp(22px, 3vw, 32px); }

.lead {
  font-size: clamp(17px, 1.6vw, 20px);
  color: var(--ink-soft);
  line-height: 1.55;
  text-wrap: pretty;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  transition: transform 0.18s ease, background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--green-deep);
  color: white;
}
.btn-primary:hover { background: var(--green-deep-2); transform: translateY(-1px); }
.btn-light {
  background: white;
  color: var(--green-deep);
  border: 1px solid var(--line);
}
.btn-light:hover { background: var(--green-mist); border-color: var(--green-pale); }
.btn-ghost {
  color: var(--green-deep);
  padding: 14px 0;
}
.btn-ghost:hover { color: var(--green-deep-2); gap: 14px; }

.arrow-right::after {
  content: "→";
  display: inline-block;
  transition: transform 0.2s ease;
}
.btn:hover .arrow-right::after, a:hover .arrow-right::after { transform: translateX(3px); }

/* HEADER */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, background 0.3s ease;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.site-header .inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 24px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { height: 56px; width: auto; }
.nav-desktop {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-desktop a {
  padding: 10px 14px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-soft);
  transition: color 0.2s, background 0.2s;
}
.nav-desktop a:hover { color: var(--green-deep); background: var(--green-mist); }
.nav-desktop a.active { color: var(--green-deep); font-weight: 600; }
.header-cta { display: flex; align-items: center; gap: 8px; }
.header-cta .btn { padding: 10px 18px; font-size: 14px; }
.menu-btn {
  display: none;
  width: 44px; height: 44px;
  border-radius: 12px;
  background: white;
  border: 1px solid var(--line);
  align-items: center; justify-content: center;
}
.menu-btn svg { width: 20px; height: 20px; }

@media (max-width: 960px) {
  .nav-desktop, .header-cta .btn-primary { display: none; }
  .menu-btn { display: inline-flex; }
}

/* Mobile drawer */
.mobile-drawer {
  position: fixed;
  inset: 72px 0 0 0;
  background: #FFFFFF;
  z-index: 49;
  padding: 20px var(--gutter) 40px;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(.4,0,.2,1);
  overflow-y: auto;
}
.mobile-drawer.open { transform: translateX(0); }
.mobile-drawer a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--display);
  font-size: 24px;
  font-weight: 500;
  color: var(--ink);
}
.mobile-drawer a:hover, .mobile-drawer a.active { color: var(--green-deep); }
.mobile-drawer a svg { width: 22px; height: 22px; flex-shrink: 0; color: var(--green-deep); }
.mobile-drawer .drawer-cta { margin-top: 28px; display: flex; flex-direction: column; gap: 12px; }
.mobile-drawer .drawer-cta .btn { justify-content: center; padding: 16px; font-size: 16px; }

/* SECTION baseline */
.section { padding: clamp(56px, 8vw, 110px) 0; }
.section-tight { padding: clamp(40px, 5vw, 70px) 0; }
.section-head { display: grid; gap: 14px; max-width: 720px; margin-bottom: clamp(32px, 5vw, 56px); }

/* GENERIC visual / placeholders */
.visual {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--green-mist);
}
.visual.tall { aspect-ratio: 3/4; }
.visual.wide { aspect-ratio: 16/9; }
.visual.square { aspect-ratio: 1; }
.visual-art {
  position: absolute; inset: 0;
  display: grid;
  place-items: center;
}
.placeholder-tag {
  position: absolute;
  bottom: 14px; left: 14px;
  font-family: ui-monospace, "SF Mono", monospace;
  font-size: 11px;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(6px);
  padding: 6px 10px;
  border-radius: 999px;
  color: var(--ink-soft);
  letter-spacing: 0.04em;
}

/* Footer */
.site-footer {
  background: var(--green-deep);
  color: white;
  padding: clamp(56px, 8vw, 90px) 0 30px;
}
.site-footer .grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 40px;
  margin-bottom: 60px;
}
.site-footer h4 {
  font-family: var(--display);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 0 0 18px;
  color: var(--green-light);
}
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.site-footer ul a { color: rgba(255,255,255,0.85); font-size: 15px; transition: color 0.2s; }
.site-footer ul a:hover { color: white; }
.site-footer .brand-block img { height: 44px; filter: brightness(0) invert(1); margin-bottom: 16px; }
.site-footer .brand-block p { color: rgba(255,255,255,0.75); font-size: 14px; max-width: 320px; }
.site-footer .bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.12);
  font-size: 13px;
  color: rgba(255,255,255,0.6);
  flex-wrap: wrap;
  gap: 16px;
}
@media (max-width: 800px) {
  .site-footer .grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .site-footer .brand-block { grid-column: 1 / -1; }
}
@media (max-width: 480px) {
  .site-footer .grid { grid-template-columns: 1fr; }
}

/* WhatsApp FAB */
.fab-wa {
  position: fixed;
  bottom: 22px; right: 22px;
  z-index: 60;
  width: 58px; height: 58px;
  border-radius: 50%;
  background: #25D366;
  color: white;
  display: grid;
  place-items: center;
  box-shadow: 0 14px 30px -8px rgba(37, 211, 102, 0.55);
  transition: transform 0.25s ease;
}
.fab-wa:hover { transform: scale(1.08); }
.fab-wa svg { width: 28px; height: 28px; }

/* Page enter animation */
.page-enter { animation: pageEnter 0.55s cubic-bezier(.2,.7,.2,1) both; }
@keyframes pageEnter {
  from { opacity: 0; transform: translateY(18px); filter: blur(4px); }
  to { opacity: 1; transform: translateY(0); filter: blur(0); }
}
.page-exit { animation: pageExit 0.3s cubic-bezier(.4,0,.2,1) both; }
@keyframes pageExit {
  from { opacity: 1; transform: translateY(0); }
  to { opacity: 0; transform: translateY(-12px); }
}

.fade-up { animation: fadeUp 0.7s cubic-bezier(.2,.7,.2,1) both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

/* Word-by-word reveal for hero headlines */
.headline-anim { display: inline-block; }
.word {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.6em) rotate(2deg);
  animation: wordRise 0.8s cubic-bezier(.2,.7,.2,1) forwards;
  will-change: transform, opacity;
}
.word.space { width: 0.28em; animation: none; opacity: 1; }
@keyframes wordRise {
  from { opacity: 0; transform: translateY(0.6em) rotate(2deg); }
  to { opacity: 1; transform: translateY(0) rotate(0); }
}

/* Heartbeat — pulse contínuo, sereno, em "cuida" */
.word-heartbeat {
  display: inline-block;
  transform-origin: center;
  animation:
    wordRise 0.8s cubic-bezier(.2,.7,.2,1) forwards,
    heartbeatPulse 1.6s ease-in-out 1.4s infinite;
}
@keyframes heartbeatPulse {
  0%, 100% { transform: scale(1); }
  14% { transform: scale(1.045); }
  28% { transform: scale(1); }
  42% { transform: scale(1.025); }
  56% { transform: scale(1); }
}

/* Drift — texto se movimenta suavemente em "movimenta" */
.word-drift {
  display: inline-block;
  animation:
    wordRise 0.8s cubic-bezier(.2,.7,.2,1) forwards,
    driftFlow 5.5s ease-in-out 1.6s infinite;
}
@keyframes driftFlow {
  0%, 100% { transform: translate(0, 0) rotate(0); }
  25% { transform: translate(2px, -2px) rotate(-0.4deg); }
  50% { transform: translate(0, 1px) rotate(0); }
  75% { transform: translate(-2px, -1px) rotate(0.4deg); }
}

/* Joints — cada letra é uma articulação que se move independente */
.word-joints { display: inline-block; white-space: nowrap; }
.word-joints .joint {
  display: inline-block;
  transform-origin: 50% 90%;
  animation: jointSway 4.2s ease-in-out infinite;
  will-change: transform;
}
@keyframes jointSway {
  0%, 100% { transform: translateY(0) rotate(0); }
  20% { transform: translateY(-2px) rotate(-2.5deg); }
  40% { transform: translateY(1px) rotate(1.5deg); }
  60% { transform: translateY(-1px) rotate(-1deg); }
  80% { transform: translateY(2px) rotate(2deg); }
}

@media (prefers-reduced-motion: reduce) {
  .word-heartbeat, .word-drift { animation: wordRise 0.8s cubic-bezier(.2,.7,.2,1) forwards !important; }
  .word-joints .joint { animation: none !important; }
}

/* Underline draw under accent words */
.word-accent { position: relative; }
.word-accent::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0.06em;
  height: 0.08em;
  background: var(--green-light);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left center;
  animation: underlineDraw 0.7s cubic-bezier(.4,0,.2,1) forwards;
  animation-delay: var(--ud-delay, 1.2s);
}
@keyframes underlineDraw { to { transform: scaleX(1); } }

/* Walking figure — gentle bob */
.walk-bob { animation: walkBob 2.6s ease-in-out infinite; transform-origin: center bottom; }
@keyframes walkBob {
  0%, 100% { transform: translateY(0) rotate(-1deg); }
  50% { transform: translateY(-8px) rotate(1deg); }
}

/* Floating elements */
.float-slow { animation: floatSlow 6s ease-in-out infinite; }
@keyframes floatSlow {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
.float-fast { animation: floatSlow 4s ease-in-out infinite; }

/* Stat numbers — count-up handled in JS, but pulse on enter */
.pulse-in { animation: pulseIn 0.9s cubic-bezier(.2,.7,.2,1) both; }
@keyframes pulseIn {
  0% { opacity: 0; transform: scale(0.85); }
  60% { transform: scale(1.05); }
  100% { opacity: 1; transform: scale(1); }
}

/* Card hover lift already exists; enhance with arrow slide */
.card .arrow-slide svg { transition: transform 0.3s cubic-bezier(.2,.7,.2,1); }
.card:hover .arrow-slide svg { transform: translateX(6px); }
.arrow-slide svg { width: 20px; height: 20px; color: var(--green-deep); }

/* Small service-card arrow, aligned right */
.card-arrow svg { width: 18px; height: 18px; transition: transform 0.25s cubic-bezier(.2,.7,.2,1); }
a:hover .card-arrow svg { transform: translateX(4px); }

/* Practices carousel */
.practices-track::-webkit-scrollbar { display: none; }
.carousel-nav {
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1.5px solid var(--line);
  background: white;
  color: var(--ink);
  display: grid; place-items: center;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.carousel-nav:hover {
  background: var(--green-deep);
  color: white;
  border-color: var(--green-deep);
}
/* Auto-scrolling practices marquee */
.practices-marquee .marquee-track.practices-auto {
  gap: 24px;
  animation: marquee 55s linear infinite;
}
.practices-marquee .marquee-track.practices-auto:hover { animation-play-state: paused; }

/* Marquee speed variants */
.marquee-track.fast { animation-duration: 28s; }
.marquee-track.slow { animation-duration: 60s; }

/* Scroll progress bar */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--green-light), var(--green-deep));
  z-index: 100;
  width: 0;
  transition: width 0.1s linear;
}

/* Section-anchor parallax on visual blocks */
.parallax-img {
  transition: transform 0.6s cubic-bezier(.2,.7,.2,1);
}
[data-reveal].visible .parallax-img { transform: translateY(0); }
[data-reveal] .parallax-img { transform: translateY(28px); }

/* Hero rotating phrase (subtle) */
.rotate-word {
  display: inline-block;
  position: relative;
  vertical-align: baseline;
}
.rotate-word .rw-item {
  display: inline-block;
  opacity: 0;
  transform: translateY(100%);
  position: absolute;
  left: 0; top: 0;
  white-space: nowrap;
  animation: rwLoop 9s infinite;
}
.rotate-word .rw-spacer { visibility: hidden; }
@keyframes rwLoop {
  0%, 28% { opacity: 1; transform: translateY(0); }
  33%, 100% { opacity: 0; transform: translateY(-100%); }
}

/* Pilar card num — animated draw */
.pilar-num {
  background: linear-gradient(180deg, var(--green-mid), var(--green-deep));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: -0.02em;
}

/* Pulsing dot */
.pulse-dot {
  position: relative;
  display: inline-block;
  width: 8px; height: 8px;
  background: var(--green-light);
  border-radius: 50%;
}
.pulse-dot::before {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: var(--green-light);
  opacity: 0.4;
  animation: pulseDot 1.8s ease-in-out infinite;
}
@keyframes pulseDot {
  0% { transform: scale(0.6); opacity: 0.55; }
  100% { transform: scale(2.5); opacity: 0; }
}

/* Reveal stagger children */
[data-reveal-stagger] > * {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(.2,.7,.2,1);
}
[data-reveal-stagger].visible > * {
  opacity: 1;
  transform: none;
}
[data-reveal-stagger].visible > *:nth-child(1) { transition-delay: 0.05s; }
[data-reveal-stagger].visible > *:nth-child(2) { transition-delay: 0.12s; }
[data-reveal-stagger].visible > *:nth-child(3) { transition-delay: 0.19s; }
[data-reveal-stagger].visible > *:nth-child(4) { transition-delay: 0.26s; }
[data-reveal-stagger].visible > *:nth-child(5) { transition-delay: 0.33s; }
[data-reveal-stagger].visible > *:nth-child(6) { transition-delay: 0.40s; }
[data-reveal-stagger].visible > *:nth-child(n+7) { transition-delay: 0.47s; }

/* Arrow nudge on link hover */
a:hover .arrow-right::after, .btn:hover .arrow-right::after { animation: arrowNudge 0.7s ease infinite; }
@keyframes arrowNudge {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(6px); }
}

/* Image / visual hover zoom */
.zoom-on-hover { overflow: hidden; }
.zoom-on-hover > svg, .zoom-on-hover > img { transition: transform 0.6s cubic-bezier(.2,.7,.2,1); }
.zoom-on-hover:hover > svg, .zoom-on-hover:hover > img { transform: scale(1.06); }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Reusable */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.03em;
  background: var(--green-mist);
  color: var(--green-deep);
  white-space: nowrap;
  line-height: 1.4;
}
.tag.solid { background: var(--green-deep); color: white; }
.tag.outline { background: transparent; border: 1px solid var(--green-pale); color: var(--green-deep); }
.tag svg { width: 14px; height: 14px; flex-shrink: 0; }
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }

.divider {
  height: 1px;
  background: var(--line);
  border: 0;
  margin: 0;
}

/* Small mark dot */
.dot {
  width: 6px; height: 6px;
  background: var(--green-light);
  border-radius: 50%;
  display: inline-block;
}

/* Scroll-revealed marquee */
.marquee {
  overflow: hidden;
  padding: 28px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track {
  display: flex;
  width: max-content;
  gap: 60px;
  animation: marquee 40s linear infinite;
}
.marquee-track:hover { animation-play-state: paused; }
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* Convenio chip used in marquees + grids */
.conv-chip {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 22px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 14px;
  min-width: 200px;
  flex-shrink: 0;
}
.conv-chip .pill {
  width: 38px; height: 38px;
  background: var(--green-mist);
  color: var(--green-deep);
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-family: var(--display);
  font-weight: 600;
  font-size: 14px;
  flex-shrink: 0;
}
.conv-chip .name {
  font-weight: 600;
  font-size: 15px;
  white-space: nowrap;
}

/* Reveal on scroll util */
[data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(.2,.7,.2,1); }
[data-reveal].visible { opacity: 1; transform: none; }

/* Card */
.card {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.card:hover {
  border-color: var(--green-pale);
  box-shadow: 0 18px 40px -22px rgba(61, 107, 90, 0.25);
  transform: translateY(-2px);
}
