/* ==========================================================================
   IMOBDOC — global.css
   Paleta: ROXO/ÍNDIGO (azulado, não rosa)
   ========================================================================== */

@import url("https://fonts.googleapis.com/css2?family=Geist:wght@300;400;500;600;700;800&family=Geist+Mono:wght@400;500;600&display=swap");

/* ========================== TOKENS — LIGHT (default) ====================== */
:root {
  /* Brand — roxo índigo */
  --brand-ink: #0f1235;
  --brand-ink-2: #1a1f55;
  --brand-purple: #4f46e5;
  --brand-purple-2: #6366f1;
  --brand-purple-soft: #818cf8;
  --brand-violet: #5b4fe8;
  --brand-blue: #2f3bff;
  --brand-cyan: #38c8e8;
  --brand-accent: #6366f1;
  --brand-success: #10b981;
  --brand-success-soft: #d1fae5;
  --brand-warn: #f59e0b;
  --brand-danger: #ef4444;

  /* Surfaces — light */
  --bg: #f5f4fb;
  --bg-alt: #ebeaf6;
  --bg-elev: #ffffff;
  --bg-card: #ffffff;
  --bg-soft: #f0eef9;

  /* Borders */
  --border: #d8d6e8;
  --border-soft: #e4e2f1;
  --border-strong: #b9b5cf;

  /* Text */
  --text: #0f1235;
  --text-2: #3d4068;
  --text-3: #6d7090;
  --text-mute: #9a9cb3;
  --text-on-dark: #f2f1fa;

  /* Radius */
  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-pill: 999px;

  /* Shadows */
  --shadow-xs:
    0 1px 2px rgba(15, 18, 53, 0.06), 0 0 0 1px rgba(15, 18, 53, 0.025);
  --shadow-sm:
    0 2px 6px -1px rgba(15, 18, 53, 0.08), 0 4px 16px -4px rgba(15, 18, 53, 0.1);
  --shadow-md:
    0 4px 12px -2px rgba(15, 18, 53, 0.1),
    0 16px 36px -10px rgba(15, 18, 53, 0.18);
  --shadow-lg:
    0 8px 24px -4px rgba(15, 18, 53, 0.14),
    0 32px 64px -16px rgba(15, 18, 53, 0.22);
  --shadow-purple:
    0 6px 20px -4px rgba(79, 70, 229, 0.4),
    0 12px 32px -8px rgba(79, 70, 229, 0.25);

  /* Typo */
  --font-display: "Geist", "Inter", system-ui, -apple-system, sans-serif;
  --font-body: "Geist", "Inter", system-ui, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;

  /* Layout */
  --container: 1240px;
  --nav-h: 72px;

  /* Motion */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --dur-1: 180ms;
  --dur-2: 320ms;
  --dur-3: 520ms;

  color-scheme: light;
}

/* ========================== TOKENS — DARK ================================ */
:root[data-theme="dark"] {
  --brand-ink: #f2f1fa;
  --brand-ink-2: #e2e0f0;
  --brand-purple: #818cf8;
  --brand-purple-2: #a5b4fc;
  --brand-purple-soft: #c7d2fe;
  --brand-violet: #818cf8;
  --brand-blue: #6e84ff;
  --brand-cyan: #4ddcef;
  --brand-accent: #a5b4fc;

  --bg: #0a0a1f;
  --bg-alt: #11122e;
  --bg-elev: #161834;
  --bg-card: #14163a;
  --bg-soft: #1a1c40;

  --border: #2a2d5e;
  --border-soft: #1f2148;
  --border-strong: #3a3d75;

  --text: #f0eefa;
  --text-2: #b6b4d2;
  --text-3: #8b8aa8;
  --text-mute: #696782;

  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-sm: 0 4px 14px -4px rgba(0, 0, 0, 0.5);
  --shadow-md: 0 12px 32px -10px rgba(0, 0, 0, 0.55);
  --shadow-lg: 0 28px 60px -20px rgba(0, 0, 0, 0.7);
  --shadow-purple:
    0 6px 20px -4px rgba(129, 140, 248, 0.35),
    0 12px 32px -8px rgba(129, 140, 248, 0.22);

  color-scheme: dark;
}

/* =============================== RESET =================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
}
* {
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  transition:
    background var(--dur-2) var(--ease-out),
    color var(--dur-2) var(--ease-out);
  min-height: 100vh;
  overflow-x: hidden;
}

img,
svg,
video {
  display: block;
  max-width: 100%;
  height: auto;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}
input,
textarea,
select {
  font: inherit;
  color: inherit;
}
::selection {
  background: var(--brand-purple);
  color: #fff;
}

/* ============================== TIPO ==================================== */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-display);
  color: var(--brand-ink);
  letter-spacing: -0.02em;
  font-weight: 700;
  line-height: 1.05;
}

h1 {
  font-size: clamp(2.4rem, 5.5vw, 4.8rem);
  letter-spacing: -0.035em;
}
h2 {
  font-size: clamp(1.9rem, 4vw, 3rem);
  letter-spacing: -0.03em;
}
h3 {
  font-size: clamp(1.3rem, 2vw, 1.6rem);
}
h4 {
  font-size: 1.1rem;
  letter-spacing: -0.015em;
}

p {
  color: var(--text-2);
  line-height: 1.6;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-3);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.eyebrow::before {
  content: "";
  width: 32px;
  height: 1px;
  background: var(--text-3);
}
.eyebrow .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand-purple);
  box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.2);
  animation: pulse 2.4s var(--ease-out) infinite;
}
:root[data-theme="dark"] .eyebrow .dot {
  box-shadow: 0 0 0 4px rgba(129, 140, 248, 0.22);
}

@keyframes pulse {
  0%,
  100% {
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.2);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(79, 70, 229, 0.04);
  }
}

.text-gradient {
  background: linear-gradient(
    90deg,
    var(--brand-purple) 0%,
    var(--brand-blue) 50%,
    var(--brand-cyan) 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.dot-end {
  color: var(--brand-purple);
}
.dot-end-cyan {
  color: var(--brand-cyan);
}

/* ============================ CONTAINER ================================== */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
}

section {
  padding: 100px 0;
  position: relative;
}
section.tight {
  padding: 70px 0;
}

/* ============================ BUTTONS ==================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 22px;
  border-radius: var(--radius-pill);
  font-weight: 500;
  font-size: 0.94rem;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: all var(--dur-2) var(--ease-out);
  white-space: nowrap;
  border: 1px solid transparent;
  position: relative;
}

.btn-primary {
  background: linear-gradient(
    135deg,
    var(--brand-purple) 0%,
    var(--brand-violet) 100%
  );
  color: #fff;
  box-shadow: var(--shadow-purple);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px -4px rgba(79, 70, 229, 0.55);
}

.btn-ghost {
  background: var(--bg-elev);
  color: var(--text);
  border-color: var(--border);
}
.btn-ghost:hover {
  border-color: var(--brand-purple);
  color: var(--brand-purple);
  transform: translateY(-1px);
}

.btn-light {
  background: #fff;
  color: var(--brand-ink);
}
.btn-light:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  background: transparent;
}
.btn-outline:hover {
  background: rgba(255, 255, 255, 0.08);
}

.btn-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--dur-2) var(--ease-out);
}
.btn-primary .btn-icon {
  background: rgba(255, 255, 255, 0.18);
}
.btn:hover .btn-icon {
  transform: translateX(3px);
}

/* ============================ CHIPS ====================================== */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: var(--bg-elev);
  font-size: 0.82rem;
  color: var(--text-2);
  font-weight: 500;
}
.chip::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand-purple);
}

/* ============================ BADGE ====================================== */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 500;
  white-space: nowrap;
}
.badge.success {
  background: var(--brand-success-soft);
  color: var(--brand-success);
}
.badge.active {
  background: rgba(79, 70, 229, 0.14);
  color: var(--brand-purple);
}
.badge.pending {
  background: var(--bg-soft);
  color: var(--text-3);
}
.badge.in-progress {
  background: rgba(79, 70, 229, 0.1);
  color: var(--brand-purple);
}

:root[data-theme="dark"] .badge.success {
  background: rgba(16, 185, 129, 0.16);
  color: #6ee7b7;
}
:root[data-theme="dark"] .badge.active {
  background: rgba(129, 140, 248, 0.18);
  color: var(--brand-purple-2);
}
:root[data-theme="dark"] .badge.in-progress {
  background: rgba(129, 140, 248, 0.14);
  color: var(--brand-purple-2);
}

/* ============================ NAVBAR ===================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: rgba(245, 244, 251, 0.78);
  backdrop-filter: saturate(160%) blur(18px);
  -webkit-backdrop-filter: saturate(160%) blur(18px);
  border-bottom: 1px solid transparent;
  transition:
    background var(--dur-2),
    border-color var(--dur-2),
    box-shadow var(--dur-2);
}
:root[data-theme="dark"] .navbar {
  background: rgba(10, 10, 31, 0.82);
}

.navbar.scrolled {
  border-bottom-color: var(--border-soft);
  box-shadow:
    0 1px 0 rgba(15, 18, 53, 0.04),
    0 8px 24px -8px rgba(15, 18, 53, 0.1);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.logo-text {
  display: flex;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  font-weight: 500;
  text-transform: uppercase;
  color: var(--text-2);
}
.logo-text img {
  max-height: 80px;
  width: auto;
  display: block;
}
:root[data-theme="dark"] .logo-text img {
  filter: brightness(0) invert(1);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
}
.nav-links a {
  display: inline-block;
  padding: 8px 14px;
  font-size: 0.92rem;
  color: var(--text-2);
  font-weight: 500;
  border-radius: 8px;
  transition:
    color var(--dur-1),
    background var(--dur-1);
}
.nav-links a:hover {
  color: var(--brand-purple);
  background: rgba(79, 70, 229, 0.06);
}
:root[data-theme="dark"] .nav-links a:hover {
  background: rgba(129, 140, 248, 0.1);
}
.nav-links a.active {
  color: var(--brand-purple);
  background: rgba(79, 70, 229, 0.08);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.theme-toggle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  background: var(--bg-elev);
  transition: all var(--dur-2) var(--ease-out);
}
.theme-toggle:hover {
  transform: rotate(12deg);
  border-color: var(--brand-purple);
  color: var(--brand-purple);
}
.theme-toggle svg {
  width: 16px;
  height: 16px;
  color: var(--text-2);
}
.theme-toggle .icon-sun {
  display: none;
}
.theme-toggle .icon-moon {
  display: block;
}
:root[data-theme="dark"] .theme-toggle .icon-sun {
  display: block;
}
:root[data-theme="dark"] .theme-toggle .icon-moon {
  display: none;
}
:root[data-theme="dark"] .theme-toggle svg {
  color: var(--text);
}

.btn-nav {
  padding: 10px 18px;
  font-size: 0.9rem;
}

.nav-burger {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  align-items: center;
  justify-content: center;
  background: var(--bg-elev);
}
.nav-burger span {
  display: block;
  width: 16px;
  height: 1.5px;
  background: var(--text);
  position: relative;
}
.nav-burger span::before,
.nav-burger span::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 1.5px;
  background: var(--text);
  transition: transform var(--dur-2);
}
.nav-burger span::before {
  top: -5px;
}
.nav-burger span::after {
  top: 5px;
}
.nav-burger.open span {
  background: transparent;
}
.nav-burger.open span::before {
  transform: translateY(5px) rotate(45deg);
}
.nav-burger.open span::after {
  transform: translateY(-5px) rotate(-45deg);
}

/* Mobile drawer */
.mobile-drawer {
  position: fixed;
  top: var(--nav-h);
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--bg);
  padding: 24px 28px 32px;
  transform: translateY(-110%);
  transition: transform var(--dur-3) var(--ease-out);
  z-index: 99;
  overflow-y: auto;
}
.mobile-drawer.open {
  transform: translateY(0);
}
.mobile-drawer ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.mobile-drawer a {
  display: block;
  padding: 14px 4px;
  border-bottom: 1px solid var(--border-soft);
  font-size: 1.05rem;
  color: var(--text);
  font-weight: 500;
}
.mobile-drawer .mobile-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 24px;
}
.mobile-drawer .mobile-actions .btn {
  width: 100%;
  padding: 14px 22px;
}

.mobile-socials {
  display: flex;
  gap: 10px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border-soft);
  justify-content: center;
}
.mobile-socials a {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--bg-soft);
  display: grid;
  place-items: center;
  color: var(--text-2);
  transition: all var(--dur-1);
}
.mobile-socials a:hover {
  background: var(--brand-purple);
  color: #fff;
}
.mobile-socials svg {
  width: 18px;
  height: 18px;
}

/* ============================ FOOTER ===================================== */
.footer {
  padding: 70px 0 32px;
  border-top: 1px solid var(--border-soft);
  background: var(--bg-alt);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 48px;
  margin-bottom: 48px;
}
.footer-brand p {
  color: var(--text-3);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-top: 20px;
  max-width: 380px;
}

.footer-col h5 {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-3);
  font-weight: 500;
  margin-bottom: 18px;
}
.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-col a {
  color: var(--text-2);
  font-size: 0.92rem;
  transition: color var(--dur-1);
}
.footer-col a:hover {
  color: var(--brand-purple);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  padding-top: 24px;
  border-top: 1px solid var(--border-soft);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--text-3);
}
.footer-bottom .legal-links {
  display: flex;
  gap: 24px;
}
.footer-bottom .legal-links a:hover {
  color: var(--brand-purple);
}

/* === Ghara Group credit === */
.footer-credits {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--text-3);
}
.ghara-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--bg-elev);
  border: 1px solid var(--border-soft);
  color: var(--text-2);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: none;
  transition: all var(--dur-2) var(--ease-out);
  position: relative;
  overflow: hidden;
}
.ghara-link::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--brand-purple), var(--brand-violet));
  opacity: 0;
  transition: opacity var(--dur-2);
  z-index: 0;
}
.ghara-link > * {
  position: relative;
  z-index: 1;
}
.ghara-link:hover {
  color: #fff;
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px -4px rgba(79, 70, 229, 0.4);
}
.ghara-link:hover::before {
  opacity: 1;
}
.ghara-mark {
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  color: var(--brand-purple);
  transition:
    color var(--dur-2),
    transform var(--dur-3) var(--ease-spring);
}
.ghara-link:hover .ghara-mark {
  color: #fff;
  transform: rotate(180deg) scale(1.1);
}
.ghara-mark svg {
  width: 100%;
  height: 100%;
}

/* ============================ WHATSAPP FLOAT ============================ */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow:
    0 8px 24px -4px rgba(37, 211, 102, 0.45),
    0 4px 12px rgba(37, 211, 102, 0.3);
  z-index: 90;
  transition: transform var(--dur-2) var(--ease-out);
  animation: floatPulse 2.4s var(--ease-out) infinite;
}
.whatsapp-float:hover {
  transform: scale(1.08);
}
.whatsapp-float svg {
  width: 28px;
  height: 28px;
}
@keyframes floatPulse {
  0%,
  100% {
    box-shadow:
      0 8px 24px -4px rgba(37, 211, 102, 0.45),
      0 4px 12px rgba(37, 211, 102, 0.3),
      0 0 0 0 rgba(37, 211, 102, 0.45);
  }
  50% {
    box-shadow:
      0 8px 24px -4px rgba(37, 211, 102, 0.45),
      0 4px 12px rgba(37, 211, 102, 0.3),
      0 0 0 14px rgba(37, 211, 102, 0);
  }
}

/* ============================ SCROLLBAR ================================= */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: var(--border-strong);
  border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--brand-purple);
}

/* ============================ FOCUS ================================= */
:focus-visible {
  outline: 2px solid var(--brand-purple);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Background hint roxo */
:root:not([data-theme="dark"]) body {
  background:
    radial-gradient(
      1200px 600px at 50% -200px,
      rgba(79, 70, 229, 0.06),
      transparent 60%
    ),
    var(--bg);
}
:root[data-theme="dark"] body {
  background:
    radial-gradient(
      1200px 600px at 50% -200px,
      rgba(129, 140, 248, 0.08),
      transparent 60%
    ),
    var(--bg);
}
