/* iMove — Liberdade em movimento. Shared tokens + base. */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&family=JetBrains+Mono:wght@400;500&family=Instrument+Serif:ital@0;1&display=swap');

:root {
  /* Brand */
  --imv-blue: #4B53FE;
  --imv-blue-700: #262CBA;
  --imv-blue-50: #EEEDFB;
  --imv-orange: #FFB05C;
  --imv-orange-bright: #FFA03D;
  --imv-ink: #02013A;
  --imv-ink-soft: #0E0D5A;

  /* Legacy color aliases for Contact Hub */
  --violeta: #4B53FE;
  --marinho: #02013A;
  --laranja: #FFB05C;

  /* Multi-color palette inspired by the logo grid */
  --imv-cream: #F3F0E1;
  --imv-bone: #FBFBFA;
  --imv-mint: #D9F0A8;
  --imv-mint-soft: #EAF6CC;
  --imv-pink: #F2E0E8;
  --imv-pink-soft: #FAF0F4;
  --imv-lavender: #C9A8D8;
  --imv-lavender-soft: #E6D6EE;
  --imv-peach: #FCD7B8;

  /* Neutrals */
  --imv-paper: #FAFAF7;
  --imv-line: rgba(2, 1, 58, 0.08);
  --imv-line-strong: rgba(2, 1, 58, 0.16);
  --imv-muted: #697086;

  /* System */
  --imv-radius-sm: 8px;
  --imv-radius: 16px;
  --imv-radius-lg: 24px;
  --imv-radius-xl: 32px;
  --imv-radius-pill: 9999px;

  --imv-ease: cubic-bezier(0.16, 1, 0.3, 1);
  --imv-ease-soft: cubic-bezier(0.32, 0.72, 0, 1);

  --imv-shadow-card: 0 1px 0 rgba(11,15,44,0.04), 0 12px 32px -16px rgba(11,15,44,0.12);
  --imv-shadow-lift: 0 1px 0 rgba(11,15,44,0.04), 0 24px 48px -20px rgba(11,15,44,0.18);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Outfit', system-ui, -apple-system, sans-serif;
  background: var(--imv-paper);
  color: var(--imv-ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "ss01", "cv11";
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

::selection { background: var(--imv-blue); color: white; }

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

/* Reusable */
.imv-mono { font-family: 'JetBrains Mono', monospace; }
.imv-serif { font-family: 'Instrument Serif', serif; font-style: italic; }

.imv-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--imv-muted);
}
.imv-eyebrow::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--imv-orange);
}

.imv-container { max-width: 1320px; margin: 0 auto; padding: 0 32px; }

/* Buttons */
.imv-btn {
  display: inline-flex; align-items: center; gap: 10px;
  height: 52px; padding: 0 24px;
  border-radius: 9999px;
  font-weight: 600; font-size: 15px; letter-spacing: -0.01em;
  border: 1px solid transparent;
  transition: transform .35s var(--imv-ease), background .25s var(--imv-ease), color .25s var(--imv-ease), box-shadow .35s var(--imv-ease);
}
.imv-btn-primary {
  background: var(--imv-ink); color: white;
}
.imv-btn-primary:hover { background: var(--imv-blue); transform: translateY(-1px); box-shadow: 0 14px 28px -12px rgba(80,70,229,0.55); }
.imv-btn-primary .arrow { display: inline-flex; width: 28px; height: 28px; border-radius: 50%; background: white; color: var(--imv-ink); align-items: center; justify-content: center; transition: transform .35s var(--imv-ease); }
.imv-btn-primary:hover .arrow { transform: translateX(3px) rotate(-8deg); }

.imv-btn-ghost {
  background: transparent; color: var(--imv-ink); border-color: var(--imv-line-strong);
}
.imv-btn-ghost:hover { background: var(--imv-ink); color: white; border-color: var(--imv-ink); }

.imv-btn-orange {
  background: var(--imv-orange); color: var(--imv-ink);
}
.imv-btn-orange:hover { background: #fbbf24; transform: translateY(-1px); }

.imv-btn-sm { height: 40px; padding: 0 16px; font-size: 13px; }

/* Tag pill */
.imv-tag {
  display: inline-flex; align-items: center; gap: 6px;
  height: 28px; padding: 0 12px;
  border-radius: 9999px;
  background: rgba(11,15,44,0.06);
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--imv-ink);
}
.imv-tag-orange { background: var(--imv-orange); color: var(--imv-ink); }
.imv-tag-blue { background: var(--imv-blue); color: white; }
.imv-tag-mint { background: var(--imv-mint); color: var(--imv-ink); }

/* Floating nav */
.imv-nav-wrap {
  position: fixed; top: 18px; left: 0; right: 0;
  z-index: 100; pointer-events: none;
}
.imv-nav {
  pointer-events: auto;
  display: flex; align-items: center; gap: 6px;
  margin: 0 auto; width: max-content;
  padding: 8px 8px 8px 18px;
  background: rgba(255,255,255,0.78);
  border: 1px solid var(--imv-line);
  border-radius: 9999px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 12px 32px -20px rgba(11,15,44,0.18);
  max-width: calc(100vw - 32px);
}
.imv-nav-logo { display: flex; align-items: center; padding-right: 8px; }
.imv-nav-links { display: flex; align-items: center; gap: 2px; }
.imv-nav-links a {
  position: relative;
  padding: 8px 14px;
  font-size: 14px; font-weight: 500;
  color: var(--imv-ink-soft);
  border-radius: 9999px;
  transition: background .25s var(--imv-ease), color .25s var(--imv-ease);
}
.imv-nav-links a:hover { background: rgba(11,15,44,0.05); color: var(--imv-ink); }
.imv-nav-links a.active { background: var(--imv-ink); color: white; }
.imv-nav-cta {
  height: 40px; padding: 0 18px;
  border-radius: 9999px;
  background: var(--imv-blue); color: white;
  font-weight: 600; font-size: 13px;
  display: inline-flex; align-items: center; gap: 6px;
  border: none;
  transition: background .25s var(--imv-ease), transform .35s var(--imv-ease);
}
.imv-nav-cta:hover { background: var(--imv-blue-700); transform: translateY(-1px); }
/* Mobile Menu Toggle & Dropdown */
.imv-nav-toggle {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  gap: 4px;
  align-items: center;
  justify-content: center;
}
.imv-nav-toggle-bar {
  width: 18px;
  height: 2px;
  background-color: var(--imv-ink);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.imv-nav-toggle.open .imv-nav-toggle-bar:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
.imv-nav-toggle.open .imv-nav-toggle-bar:nth-child(2) {
  opacity: 0;
}
.imv-nav-toggle.open .imv-nav-toggle-bar:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}
.imv-nav-mobile-menu {
  display: none;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--imv-line);
  border-radius: 24px;
  margin: 10px auto 0;
  width: max-content;
  min-width: 200px;
  padding: 12px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 16px 36px rgba(11, 15, 44, 0.12);
  pointer-events: auto;
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.25s var(--imv-ease), transform 0.25s var(--imv-ease);
}
.imv-nav-mobile-menu.open {
  display: flex;
  opacity: 1;
  transform: translateY(0);
}
.imv-nav-mobile-menu a {
  padding: 10px 20px;
  font-size: 15px;
  font-weight: 500;
  color: var(--imv-ink-soft);
  border-radius: 12px;
  transition: background 0.2s ease, color 0.2s ease;
  text-decoration: none;
  text-align: center;
}
.imv-nav-mobile-menu a:hover {
  background: rgba(11, 15, 44, 0.05);
  color: var(--imv-ink);
}
.imv-nav-mobile-menu a.active {
  background: var(--imv-ink);
  color: white;
}

@media (max-width: 980px) {
  .imv-nav-links { display: none; }
  .imv-nav { padding: 6px 6px 6px 14px; }
  .imv-nav-toggle { display: flex; }
}

/* Footer */
.imv-footer {
  background: var(--imv-ink);
  color: rgba(255,255,255,0.85);
  padding: 80px 0 32px;
  margin-top: 80px;
  position: relative;
  overflow: hidden;
}
.imv-footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 64px;
}
.imv-footer h4 {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--imv-orange); font-weight: 500;
  margin: 0 0 16px;
}
.imv-footer h5 {
  font-size: 13px; font-weight: 600; color: white;
  margin: 24px 0 10px;
  text-transform: uppercase; letter-spacing: 0.05em;
  font-family: 'JetBrains Mono', monospace;
}
.imv-footer ul { list-style: none; padding: 0; margin: 0; }
.imv-footer li { margin: 8px 0; }
.imv-footer a {
  color: rgba(255,255,255,0.65); font-size: 14px;
  transition: color .25s var(--imv-ease);
}
.imv-footer a:hover { color: white; }
.imv-footer-brand {
  font-size: 12px; color: rgba(255,255,255,0.4);
  font-family: 'JetBrains Mono', monospace;
}

.imv-footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  display: flex; justify-content: space-between; gap: 16px;
  font-size: 12px; color: rgba(255,255,255,0.5);
  font-family: 'JetBrains Mono', monospace;
  flex-wrap: wrap;
}
.imv-footer-ghost {
  position: absolute; bottom: -40px; left: 0; right: 0;
  text-align: center;
  font-size: 320px; font-weight: 800; letter-spacing: -0.05em;
  color: rgba(255,255,255,0.03);
  line-height: 0.85;
  pointer-events: none;
  font-family: 'Outfit', sans-serif;
}
@media (max-width: 980px) {
  .imv-footer-grid { grid-template-columns: 1fr 1fr; }
  .imv-footer-ghost { font-size: 160px; }
}
@media (max-width: 600px) {
  .imv-footer-grid { grid-template-columns: 1fr; }
}

/* Hero scroll-in entry helper */
@keyframes imvFadeUp {
  from { opacity: 0; transform: translateY(16px); filter: blur(8px); }
  to { opacity: 1; transform: translateY(0); filter: blur(0); }
}
.imv-fade-up { opacity: 0; animation: imvFadeUp .9s var(--imv-ease) forwards; }

@keyframes imvMarquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@keyframes imvFloat {
  0%, 100% { transform: translateY(0) rotate(var(--r, 0deg)); }
  50% { transform: translateY(-12px) rotate(var(--r, 0deg)); }
}

@keyframes imvSpin {
  from { transform: rotate(0); }
  to { transform: rotate(360deg); }
}

/* Grain overlay */
.imv-grain::before {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 1000;
  opacity: 0.025;
  background-image: url("data:image/svg+xml;utf8,<svg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.95' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

/* Headings */
.imv-display {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 0.92;
  font-size: clamp(48px, 7.5vw, 112px);
  margin: 0;
}
.imv-h2 {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 0.96;
  font-size: clamp(36px, 5vw, 72px);
  margin: 0;
}
.imv-h3 {
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.05;
  font-size: clamp(24px, 2.4vw, 32px);
  margin: 0;
}
.imv-lead {
  font-size: clamp(17px, 1.6vw, 20px);
  line-height: 1.5;
  color: var(--imv-muted);
  max-width: 60ch;
}

/* Card */
.imv-card {
  background: white;
  border: 1px solid var(--imv-line);
  border-radius: 24px;
  box-shadow: var(--imv-shadow-card);
  transition: transform .5s var(--imv-ease), box-shadow .5s var(--imv-ease);
}
.imv-card:hover { transform: translateY(-2px); box-shadow: var(--imv-shadow-lift); }

/* Contact Hub Styles */
.contact-hub {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 180;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
  pointer-events: none;
}
.contact-hub-menu {
  width: 270px;
  padding: 14px;
  border: 1px solid rgba(2,1,58,.10);
  border-radius: 22px;
  background: rgba(255,255,255,.98);
  box-shadow: 0 24px 70px rgba(2,1,58,.22);
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px) scale(.96);
  transform-origin: bottom right;
  transition: opacity .22s ease, transform .22s ease, visibility .22s ease;
  pointer-events: auto;
}
.contact-hub.open .contact-hub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}
.contact-hub-title {
  margin: 2px 4px 12px;
  color: var(--marinho);
  font-family: 'Sora', sans-serif;
  font-size: .98rem;
  font-weight: 800;
}
.contact-hub-subtitle {
  margin: -5px 4px 12px;
  color: #73788f;
  font-size: .82rem;
  line-height: 1.4;
}
.contact-channel {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 11px 12px;
  border-radius: 15px;
  color: var(--marinho);
  text-decoration: none;
  transition: transform .18s ease, background .18s ease;
}
.contact-channel:hover {
  background: #f3f4ff;
  transform: translateX(-2px);
}
.contact-channel + .contact-channel {
  margin-top: 4px;
}
.contact-channel-icon {
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 13px;
  color: #fff;
}
.contact-channel-icon svg {
  width: 21px;
  height: 21px;
  fill: currentColor;
}
.contact-channel.chat .contact-channel-icon {
  background: linear-gradient(135deg, var(--violeta), #6d77ff);
}
.contact-channel.whatsapp-channel .contact-channel-icon {
  background: #25D366;
}
.contact-channel.messenger .contact-channel-icon {
  background: linear-gradient(135deg, #0084FF, #7A5CFF);
}
.contact-channel.instagram .contact-channel-icon {
  background: linear-gradient(135deg, #6f34e8, #d62976 58%, #feda75);
}
.contact-channel.email .contact-channel-icon {
  background: linear-gradient(135deg, var(--laranja), #ff8f3d);
  color: var(--marinho);
}
.contact-channel-copy {
  min-width: 0;
}
.contact-channel-copy strong {
  display: block;
  color: var(--marinho);
  font-size: .93rem;
  line-height: 1.2;
}
.contact-channel-copy span {
  display: block;
  margin-top: 3px;
  color: #7b8095;
  font-size: .78rem;
  line-height: 1.25;
}
.contact-hub-toggle {
  position: relative;
  width: 60px;
  height: 60px;
  border: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, var(--violeta), #6872ff);
  box-shadow: 0 16px 38px rgba(75,83,254,.38);
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease;
  pointer-events: auto;
}
.contact-hub-toggle:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 44px rgba(75,83,254,.46);
}
.contact-hub-toggle svg {
  width: 27px;
  height: 27px;
  fill: currentColor;
  transition: transform .22s ease;
}
.contact-hub.open .contact-hub-toggle svg {
  transform: rotate(8deg) scale(.94);
}
.contact-hub-toggle::after {
  content: "";
  position: absolute;
  width: 12px;
  height: 12px;
  right: 1px;
  top: 1px;
  border: 3px solid #fff;
  border-radius: 50%;
  background: #25D366;
}
@media (max-width: 680px) {
  .contact-hub {
    right: 14px;
    bottom: 14px;
  }
  .contact-hub-menu {
    width: min(288px, calc(100vw - 28px));
  }
  .contact-hub-toggle {
    width: 56px;
    height: 56px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .contact-hub-menu,
  .contact-hub-toggle,
  .contact-channel,
  .contact-hub-toggle svg {
    transition: none;
  }
}

/* Pure CSS Brand Logo & Architecture */
.imv-logo-brand {
  display: flex;
  flex-direction: column;
  justify-content: center;
  line-height: 0.82;
  text-decoration: none;
  pointer-events: auto;
}
.logo-imove {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 19px;
  letter-spacing: -0.04em;
  color: var(--imv-ink);
}
.logo-i-wrap {
  position: relative;
  display: inline-block;
  color: inherit;
}
.logo-i-dot {
  position: absolute;
  top: 1.5px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 4px;
  background-color: var(--imv-orange);
  border-radius: 50%;
}
.logo-sub {
  font-family: 'Outfit', sans-serif;
  font-size: 9.5px;
  font-weight: 400;
  letter-spacing: -0.02em;
  margin-top: -1px;
  text-transform: none;
  display: block;
}
.logo-segment {
  font-weight: 700;
}

/* Segment-specific brand colors for sub-logo line */
.logo-sub.sub-empresas {
  color: var(--imv-orange) !important;
}
.logo-sub.sub-motoristas,
.logo-sub.sub-passageiros,
.logo-sub.sub-food,
.logo-sub.sub-mercado,
.logo-sub.sub-conteudo {
  color: var(--imv-blue) !important;
}
