/* ═══════════════════════════════════════════
   ZIVOR GLOBAL — SHARED DESIGN SYSTEM
   ═══════════════════════════════════════════ */
:root {
  --bg:            #080808;
  --surf:          #121212;
  --surf2:         #181818;
  --border:        rgba(255, 255, 255, 0.08);
  --border-subtle: rgba(255, 255, 255, 0.04);
  --fg:            #f4f4f4;
  --muted:         rgba(244, 244, 244, 0.62);
  --accent:        #d4a853;
  --accent-light:  #f0c76e;
  --accent-dim:    rgba(212, 168, 83, 0.1);
  --accent-mid:    rgba(212, 168, 83, 0.25);

  --font-d: 'Syne', sans-serif;
  --font-b: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Typography scale with valid clamp syntax */
  --fs-xs:   clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --fs-sm:   clamp(0.875rem, 0.82rem + 0.3vw, 1rem);
  --fs-base: clamp(1rem, 0.95rem + 0.35vw, 1.15rem);
  --fs-lg:   clamp(1.25rem, 1.15rem + 0.6vw, 1.65rem);
  --fs-xl:   clamp(1.85rem, 1.5rem + 1.8vw, 2.75rem);
  --fs-2xl:  clamp(2.5rem, 2rem + 2.8vw, 4.25rem);
  --fs-3xl:  clamp(3.2rem, 2.5rem + 4.5vw, 6.5rem);

  /* Spacing scale with valid clamp syntax */
  --sp-xs:  clamp(0.5rem, 0.4rem + 0.4vw, 0.75rem);
  --sp-sm:  clamp(1rem, 0.85rem + 0.6vw, 1.5rem);
  --sp-md:  clamp(1.5rem, 1.25rem + 1.2vw, 2.5rem);
  --sp-lg:  clamp(2rem, 1.5rem + 2vw, 4rem);
  --sp-xl:  clamp(3.5rem, 2.5rem + 3.5vw, 6.5rem);

  --max-w:    1320px;
  --r:        16px;
  --r-sm:     10px;
  --ease-s:   cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: auto;
  background: var(--bg);
}

html, body {
  overflow-x: hidden;
  max-width: 100vw;
}

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-b);
  font-size: var(--fs-base);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: inherit;
  text-decoration: none;
}

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

button, input, select, textarea {
  font-family: inherit;
}

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

/* ── Universal Container & Alignment ── */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--sp-lg);
  padding-right: var(--sp-lg);
}

/* ── Noise Overlay ── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.025;
  pointer-events: none;
  z-index: 9997;
}

/* ── Custom Cursor ── */
@media (hover: hover) and (pointer: fine) {
  * { cursor: none !important; }
}

.cursor-dot {
  position: fixed;
  width: 7px;
  height: 7px;
  background: var(--accent);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
}

.cursor-ring {
  position: fixed;
  width: 36px;
  height: 36px;
  border: 1.5px solid var(--accent);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: width 0.25s var(--ease-s), height 0.25s var(--ease-s), opacity 0.25s;
  opacity: 0.5;
}

.cursor-ring.hovered {
  width: 60px;
  height: 60px;
  opacity: 0.9;
  background: rgba(212, 168, 83, 0.08);
}

@media (hover: none), (pointer: coarse) {
  .cursor-dot, .cursor-ring { display: none !important; }
  * { cursor: auto !important; }
}

/* ── Navigation ── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  padding: 1.25rem var(--sp-lg);
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.35s ease, backdrop-filter 0.35s ease, padding 0.35s ease, border-color 0.35s ease;
}

.nav.scrolled {
  background: rgba(8, 8, 8, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 0.85rem var(--sp-lg);
}

.nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: var(--max-w);
  margin-left: auto;
  margin-right: auto;
}

.nav-logo {
  font-family: var(--font-d);
  font-size: var(--fs-lg);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--fg);
  display: inline-flex;
  align-items: center;
}

.nav-logo span {
  color: var(--accent);
}

.nav-links {
  display: flex;
  gap: 2.25rem;
  align-items: center;
  list-style: none;
}

.nav-links li a {
  font-size: var(--fs-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  transition: color 0.25s;
}

.nav-links li a:hover,
.nav-links li a.active {
  color: var(--fg);
}

.nav-cta {
  background: var(--accent) !important;
  color: #080808 !important;
  padding: 0.6em 1.4em !important;
  border-radius: 100px !important;
  font-weight: 700 !important;
  transition: transform 0.25s var(--ease-s), box-shadow 0.25s !important;
  display: inline-flex;
  align-items: center;
}

.nav-cta:hover {
  transform: scale(1.04);
  box-shadow: 0 8px 24px rgba(212, 168, 83, 0.35);
}

.nav-ham {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: transparent;
  border: none;
  padding: 8px;
  cursor: pointer;
}

.nav-ham span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--fg);
  transition: transform 0.3s, opacity 0.3s;
}

.nav-mobile {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--bg);
  z-index: 99;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  padding: 2rem;
}

.nav-mobile a {
  font-family: var(--font-d);
  font-size: var(--fs-xl);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.nav-mobile.open {
  display: flex;
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-ham { display: flex; }
}

/* ── Section & Page Layouts ── */
.section {
  padding: var(--sp-xl) var(--sp-lg);
  position: relative;
  width: 100%;
  max-width: var(--max-w);
  margin-left: auto;
  margin-right: auto;
}

.section-full {
  padding: var(--sp-xl) var(--sp-lg);
  position: relative;
  width: 100%;
}

.page-hero {
  padding: calc(var(--sp-xl) + 80px) var(--sp-lg) var(--sp-lg);
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: var(--max-w);
  margin-left: auto;
  margin-right: auto;
}

.page-hero-glow {
  position: absolute;
  top: -20%;
  right: -10%;
  width: 55vw;
  height: 55vw;
  max-width: 600px;
  max-height: 600px;
  background: radial-gradient(circle, rgba(212, 168, 83, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.sec-label {
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 0.85rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.sec-label::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.heading-xl {
  font-family: var(--font-d);
  font-size: var(--fs-2xl);
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-weight: 800;
  color: var(--fg);
}

.heading-lg {
  font-family: var(--font-d);
  font-size: var(--fs-xl);
  line-height: 1.15;
  letter-spacing: -0.025em;
  font-weight: 800;
  color: var(--fg);
}

.body-p {
  font-size: var(--fs-base);
  color: var(--muted);
  line-height: 1.7;
}

/* ── Fallback Reveal Animation ── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
}

@keyframes _revealFallback {
  to {
    opacity: 1;
    transform: none;
  }
}

.reveal {
  animation: _revealFallback 0.01s 0.8s forwards;
}

/* ── Buttons ── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  background: var(--accent);
  color: #080808;
  font-family: var(--font-d);
  font-weight: 700;
  font-size: var(--fs-sm);
  padding: 0.9em 2.2em;
  border-radius: 100px;
  border: none;
  transition: transform 0.25s var(--ease-s), box-shadow 0.25s, background 0.25s;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
}

.btn-primary:hover {
  background: var(--accent-light);
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 12px 32px rgba(212, 168, 83, 0.35);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  font-size: var(--fs-sm);
  color: var(--fg);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  padding: 0.9em 2em;
  border-radius: 100px;
  transition: color 0.25s, border-color 0.25s, background 0.25s, transform 0.25s;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
}

.btn-ghost:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-2px);
}

/* ── Divider ── */
hr.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 0 auto;
  max-width: var(--max-w);
  width: 100%;
}

/* ── Tag / Pill ── */
.pill {
  display: inline-flex;
  align-items: center;
  font-size: var(--fs-xs);
  padding: 0.35em 0.9em;
  border-radius: 100px;
  border: 1px solid var(--border);
  color: var(--muted);
  background: var(--surf);
  font-weight: 500;
}

.pill-accent {
  border-color: var(--accent-mid);
  color: var(--accent);
  background: var(--accent-dim);
  font-weight: 600;
}

/* ── Card Grids & Glass Cards ── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--sp-sm);
}

.glass-card {
  background: var(--surf);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: var(--sp-md);
  transition: transform 0.35s var(--ease-s), border-color 0.3s;
}

.glass-card:hover {
  transform: translateY(-6px);
  border-color: var(--accent-mid);
}

/* ── CTA Final Section ── */
.cta-final {
  padding: var(--sp-xl) var(--sp-lg);
  text-align: center;
  position: relative;
  overflow: hidden;
  background: var(--surf);
  border-top: 1px solid var(--border);
  width: 100%;
}

.cta-final::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 70vw;
  height: 70vw;
  max-width: 700px;
  max-height: 700px;
  background: radial-gradient(circle, rgba(212, 168, 83, 0.08) 0%, transparent 65%);
  pointer-events: none;
}

.cta-final .heading-xl {
  max-width: 18ch;
  margin: 0 auto var(--sp-sm);
}

.cta-final .body-p {
  max-width: 48ch;
  margin: 0 auto var(--sp-md);
}

.cta-btns {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ── Footer ── */
/* Service Cards */
.svc-card {
  background: var(--surf);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: var(--sp-lg);
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  transition: transform 0.3s var(--ease-out), border-color 0.3s;
}

.svc-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent);
}

.svc-card-icon {
  font-size: 1.5rem;
  color: var(--muted);
  margin-bottom: var(--sp-xs);
}

.svc-card-h {
  font-family: var(--font-d);
  font-size: var(--fs-lg);
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--fg);
}

.svc-card-p {
  font-size: var(--fs-sm);
  color: var(--muted);
  line-height: 1.6;
}

.site-footer {
  border-top: 1px solid var(--border);
  background: #060606;
  padding: 0 var(--sp-lg);
  width: 100%;
}

.footer-top {
  padding-top: var(--sp-lg);
  padding-bottom: var(--sp-lg);
  display: grid;
  grid-template-columns: 1.2fr 2fr;
  gap: var(--sp-lg);
  max-width: var(--max-w);
  margin-left: auto;
  margin-right: auto;
}

.footer-brand {
  max-width: 340px;
}

.footer-tagline {
  font-size: var(--fs-sm);
  color: var(--muted);
  line-height: 1.6;
  margin-top: 0.6rem;
  margin-bottom: 1rem;
}

.footer-email a {
  color: var(--accent);
  font-size: var(--fs-sm);
  font-weight: 500;
  transition: color 0.2s;
}

.footer-email a:hover {
  color: var(--accent-light);
}

.footer-nav-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-md);
}

.f-col {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.f-col-h {
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--fg);
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.f-col a {
  font-size: var(--fs-sm);
  color: var(--muted);
  transition: color 0.2s;
}

.f-col a:hover {
  color: var(--fg);
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 1.5rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: var(--fs-xs);
  color: var(--muted);
  max-width: var(--max-w);
  margin-left: auto;
  margin-right: auto;
}

.footer-bottom a {
  color: var(--muted);
  transition: color 0.2s;
}

.footer-bottom a:hover {
  color: var(--fg);
}

@media (max-width: 820px) {
  .footer-top {
    grid-template-columns: 1fr;
    gap: var(--sp-md);
  }
  .footer-nav-cols {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .footer-nav-cols {
    grid-template-columns: 1fr;
  }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ═══════════════════════════════════════════
   FLOATING ACTION BUTTONS & AI ASSISTANT WIDGET
   ═══════════════════════════════════════════ */
.floating-dock {
  position: fixed;
  bottom: 24px;
  right: 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  z-index: 999;
}

.float-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 9999px;
  font-family: var(--font-b);
  font-size: var(--fs-xs);
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  transition: transform 0.3s var(--ease-s), box-shadow 0.3s;
  border: 1px solid transparent;
}

.float-btn:hover {
  transform: translateY(-3px) scale(1.02);
}

.float-wa {
  background: #25D366;
  color: #ffffff;
}

.float-wa:hover {
  box-shadow: 0 12px 28px rgba(37, 211, 102, 0.4);
}

.float-ai {
  background: var(--surf);
  color: var(--fg);
  border-color: var(--accent-mid);
}

.float-ai:hover {
  border-color: var(--accent);
  box-shadow: 0 12px 28px rgba(212, 168, 83, 0.25);
}

.float-ai .ai-badge {
  background: var(--accent);
  color: #080808;
  font-size: 9px;
  font-weight: 900;
  padding: 2px 6px;
  border-radius: 6px;
  text-transform: uppercase;
}

/* AI Chat Modal */
.ai-modal {
  position: fixed;
  bottom: 84px;
  right: 24px;
  width: min(420px, calc(100vw - 32px));
  height: min(580px, calc(100vh - 120px));
  background: #111218;
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.75);
  display: none;
  flex-direction: column;
  overflow: hidden;
  z-index: 1000;
  animation: modalPop 0.35s var(--ease-s);
}

.ai-modal.active {
  display: flex;
}

@keyframes modalPop {
  0% { opacity: 0; transform: translateY(20px) scale(0.95); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

.ai-modal-header {
  padding: 14px 18px;
  background: #181a24;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ai-modal-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-d);
  font-weight: 700;
  font-size: var(--fs-sm);
}

.ai-modal-title span.status {
  width: 8px;
  height: 8px;
  background: #10b981;
  border-radius: 50%;
  display: inline-block;
}

.ai-close-btn {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 1.2rem;
  cursor: pointer;
  padding: 4px;
  line-height: 1;
}

.ai-close-btn:hover {
  color: var(--fg);
}

.ai-chat-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ai-msg {
  display: flex;
  flex-direction: column;
  max-width: 90%;
  gap: 4px;
}

.ai-msg.bot {
  align-self: flex-start;
}

.ai-msg.user {
  align-self: flex-end;
}

.ai-bubble {
  padding: 12px 14px;
  border-radius: 14px;
  font-size: var(--fs-xs);
  line-height: 1.5;
}

.ai-msg.bot .ai-bubble {
  background: #1c1e2c;
  color: #e2e8f0;
  border: 1px solid #2a2d42;
  border-bottom-left-radius: 4px;
}

.ai-msg.user .ai-bubble {
  background: var(--accent);
  color: #080808;
  font-weight: 600;
  border-bottom-right-radius: 4px;
}

.ai-quick-options {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 8px;
}

.ai-opt-btn {
  background: #151722;
  border: 1px solid #2a2e45;
  color: #cbd5e1;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 11px;
  text-align: left;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.ai-opt-btn:hover {
  background: var(--accent-dim);
  border-color: var(--accent);
  color: var(--fg);
}

.ai-input-bar {
  padding: 12px;
  background: #181a24;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 8px;
}

.ai-input {
  flex: 1;
  background: #0f1017;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px 12px;
  color: var(--fg);
  font-family: inherit;
  font-size: var(--fs-xs);
  outline: none;
}

.ai-input:focus {
  border-color: var(--accent);
}

.ai-send-btn {
  background: var(--accent);
  color: #080808;
  border: none;
  border-radius: 10px;
  padding: 8px 14px;
  font-weight: 700;
  font-size: var(--fs-xs);
  cursor: pointer;
  transition: opacity 0.2s;
}

.ai-send-btn:hover {
  opacity: 0.9;
}