/* ================================================================
   ZORVIX CONSULTING — styles.css
   Mobile-first. Standard CSS properties. Compact sizing.
   ================================================================ */

/* ── Variables ──────────────────────────────────────────────────── */
:root {
  --primary:     #6366f1;
  --primary-dk:  #4f46e5;
  --primary-lt:  #e0e7ff;
  --dark:        #0f172a;
  --text:        #334155;
  --muted:       #64748b;
  --bg:          #f8fafc;
  --white:       #ffffff;
  --border:      #e2e8f0;
  --nav-h:       64px;
  --radius-s:    8px;
  --radius-m:    12px;
  --radius-l:    18px;
  --shadow-s:    0 1px 4px rgba(0,0,0,.08);
  --shadow-m:    0 4px 20px rgba(0,0,0,.10);
  --shadow-l:    0 12px 40px rgba(0,0,0,.13);
  --ease:        0.2s ease;
}

/* ── Reset ──────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
  overflow-x: hidden;
  padding-top: var(--nav-h);
}
img    { display: block; max-width: 100%; height: auto; }
a      { color: inherit; text-decoration: none; }
ul     { list-style: none; }
button { font: inherit; cursor: pointer; background: none; border: none; }
input, textarea { font: inherit; }

/* ── Container ──────────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1.25rem;
}
@media (min-width: 640px)  { .container { padding: 0 2rem; } }
@media (min-width: 1024px) { .container { padding: 0 2.5rem; } }

/* ── Buttons ────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  padding: .65rem 1.5rem;
  font-size: .9rem;
  font-weight: 600;
  border-radius: var(--radius-s);
  border: 2px solid transparent;
  cursor: pointer;
  transition: background var(--ease), border-color var(--ease),
              box-shadow var(--ease), transform var(--ease), opacity var(--ease);
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
}
.btn:hover  { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  box-shadow: 0 3px 12px rgba(99,102,241,.35);
}
.btn-primary:hover {
  background: var(--primary-dk);
  border-color: var(--primary-dk);
  box-shadow: 0 5px 18px rgba(99,102,241,.45);
}
.btn-white {
  background: #fff;
  color: var(--primary);
  border-color: #fff;
  box-shadow: 0 3px 12px rgba(0,0,0,.18);
}
.btn-white:hover { box-shadow: 0 5px 20px rgba(0,0,0,.24); }
.btn-outline {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,.45);
}
.btn-outline:hover {
  background: rgba(255,255,255,.1);
  border-color: rgba(255,255,255,.8);
}
.btn-full { width: 100%; }
.btn:disabled {
  opacity: .65;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

/* ── Navbar ─────────────────────────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-h);
  background: var(--white);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
  transition: box-shadow var(--ease);
}
.navbar.scrolled { box-shadow: var(--shadow-m); border-bottom-color: transparent; }

.navbar .container {
  height: 100%;
  display: flex;
  align-items: center;
  gap: .875rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-weight: 700;
  font-size: 1rem;
  color: var(--dark);
  flex-shrink: 0;
}
.logo img    { height: 34px; width: auto; object-fit: contain; }
.logo-text   { display: none; }
@media (min-width: 480px) { .logo-text { display: inline; } }

.nav-links {
  display: none;
  align-items: center;
  gap: .1rem;
  margin-left: auto;
}
.nav-links a {
  display: block;
  padding: .4rem .8rem;
  border-radius: var(--radius-s);
  font-size: .875rem;
  font-weight: 500;
  color: var(--text);
  transition: color var(--ease), background var(--ease);
}
.nav-links a:hover { color: var(--primary); background: var(--primary-lt); }

.nav-cta { display: none; padding: .5rem 1.1rem; font-size: .875rem; }

.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  margin-left: auto;
  border-radius: var(--radius-s);
  flex-shrink: 0;
  transition: background var(--ease);
}
.hamburger:hover { background: var(--bg); }
.hamburger span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--dark);
  border-radius: 2px;
  transition: transform .22s ease, opacity .22s ease, width .22s ease;
}
.hamburger[aria-expanded="true"] span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; width: 0; }
.hamburger[aria-expanded="true"] span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

@media (min-width: 768px) {
  .nav-links { display: flex; }
  .nav-cta   { display: inline-flex; }
  .hamburger { display: none; }
}

/* ── Mobile menu ────────────────────────────────────────────────── */
/* Lives OUTSIDE <nav> — no stacking context issue, no clipping */
.mobile-menu {
  position: fixed;
  top: var(--nav-h);
  left: 0;
  right: 0;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-l);
  z-index: 999;
  padding: .875rem 1.25rem 1.25rem;
  transform: translateY(-105%);
  opacity: 0;
  pointer-events: none;
  transition: transform .25s cubic-bezier(.4,0,.2,1), opacity .25s ease;
}
.mobile-menu.open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu li { border-bottom: 1px solid var(--border); }
.mobile-menu li:last-child { border-bottom: none; }
.mobile-menu li a {
  display: block;
  padding: .8rem .25rem;
  font-size: .95rem;
  font-weight: 500;
  color: var(--text);
  transition: color var(--ease);
}
.mobile-menu li a:hover { color: var(--primary); }
.mobile-menu-cta { width: 100%; margin-top: .875rem; }

@media (min-width: 768px) { .mobile-menu { display: none; } }

/* ── Pills / labels ─────────────────────────────────────────────── */
.pill {
  display: inline-block;
  padding: .25rem .875rem;
  border-radius: 50px;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .5px;
  text-transform: uppercase;
}
.pill--hero {
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.25);
  color: #c7d2fe;
  margin-bottom: 1.125rem;
}
.pill--dark {
  background: var(--primary-lt);
  color: var(--primary);
  margin-bottom: .875rem;
}

/* ── Sections ───────────────────────────────────────────────────── */
.section  { padding: 4.5rem 0; }
.bg-light { background: var(--bg); }
.bg-white { background: var(--white); }

.section-hd {
  text-align: center;
  margin-bottom: 3rem;
}
.section-hd h2 {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 800;
  color: var(--dark);
  line-height: 1.2;
  margin-bottom: .5rem;
}
.section-hd p {
  font-size: .95rem;
  color: var(--muted);
  max-width: 540px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ── Gradient text ──────────────────────────────────────────────── */
.text-grad {
  background: linear-gradient(130deg, #a5b4fc 0%, #c084fc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Hero ───────────────────────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 55%, #312e81 100%);
  color: #fff;
  min-height: calc(100vh - var(--nav-h));
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image: radial-gradient(rgba(255,255,255,.055) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
}
.hero .container { position: relative; padding-top: 2.5rem; padding-bottom: 2.5rem; }

.hero-grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.5rem;
}
@media (min-width: 900px) {
  .hero-grid {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 3rem;
  }
}

/* Hero text */
.hero-text { text-align: center; }
@media (min-width: 900px) { .hero-text { text-align: left; flex: 1; } }

.hero-text h1 {
  font-size: clamp(1.75rem, 4.5vw, 3rem);
  font-weight: 800;
  line-height: 1.12;
  color: #fff;
  margin-bottom: 1rem;
}
.hero-sub {
  font-size: .975rem;
  color: rgba(255,255,255,.7);
  line-height: 1.75;
  margin-bottom: 1.75rem;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}
@media (min-width: 900px) { .hero-sub { margin-left: 0; margin-right: 0; } }

.hero-btns {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  justify-content: center;
  margin-bottom: 1.5rem;
}
@media (min-width: 900px) { .hero-btns { justify-content: flex-start; } }

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: .875rem;
  justify-content: center;
  font-size: .8rem;
  color: rgba(255,255,255,.5);
}
@media (min-width: 900px) { .trust-row { justify-content: flex-start; } }

/* Hero stat card */
.hero-card {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--radius-l);
  padding: 1.75rem 2rem;
  text-align: center;
  width: 100%;
  max-width: 270px;
  flex-shrink: 0;
}
.hero-card-logo {
  height: 46px;
  width: auto;
  object-fit: contain;
  margin: 0 auto .5rem;
}
.hero-card-name {
  font-size: .8rem;
  font-weight: 700;
  color: rgba(255,255,255,.8);
  margin-bottom: 1.125rem;
}
.hero-card-divider {
  border: none;
  border-top: 1px solid rgba(255,255,255,.14);
  margin-bottom: 1.125rem;
}
.hero-stats { display: flex; flex-direction: column; gap: .75rem; }
.hero-stat strong {
  display: block;
  font-size: 1.65rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: .15rem;
  background: linear-gradient(135deg, #fff, #c7d2fe);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-stat span { font-size: .74rem; color: rgba(255,255,255,.5); }

/* Scroll hint */
.scroll-hint {
  position: absolute;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 38px;
  border: 2px solid rgba(255,255,255,.22);
  border-radius: 12px;
  display: flex;
  justify-content: center;
  padding-top: 6px;
}
.scroll-hint span {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(255,255,255,.7);
  animation: scrollDot 2s infinite ease-in-out;
}
@keyframes scrollDot {
  0%   { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(12px); }
}

/* ── Services ───────────────────────────────────────────────────── */
.cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
@media (min-width: 600px) { .cards-grid { grid-template-columns: repeat(2,1fr); } }
@media (min-width: 960px) { .cards-grid { grid-template-columns: repeat(3,1fr); } }

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-l);
  padding: 1.875rem 1.75rem;
  transition: transform var(--ease), box-shadow var(--ease), border-color var(--ease);
}
.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-l);
  border-color: transparent;
}

.card-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-m);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  color: #fff;
}
.card-icon svg { width: 24px; height: 24px; }
.ci-indigo { background: linear-gradient(135deg, #6366f1, #4f46e5); }
.ci-purple { background: linear-gradient(135deg, #8b5cf6, #7c3aed); }
.ci-teal   { background: linear-gradient(135deg, #06b6d4, #0891b2); }

.card h3 { font-size: 1.1rem; font-weight: 700; color: var(--dark); margin-bottom: .55rem; }
.card p  { font-size: .9rem; color: var(--muted); line-height: 1.7; margin-bottom: 1.25rem; }

.card-link {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  font-size: .85rem;
  font-weight: 600;
  color: var(--primary);
  transition: gap var(--ease), color var(--ease);
}
.card:hover .card-link { gap: .55rem; color: var(--primary-dk); }

/* ── About ──────────────────────────────────────────────────────── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: start;
}
@media (min-width: 900px) { .about-grid { grid-template-columns: 1fr 1fr; gap: 4.5rem; } }

.about-text .pill--dark { display: inline-block; }
.about-text h2 {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 800;
  color: var(--dark);
  line-height: 1.2;
  margin-bottom: 1rem;
}
.about-text p { font-size: .9rem; color: var(--muted); line-height: 1.8; margin-bottom: 1rem; }

.about-stats {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: .875rem;
  margin-top: 1.75rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--border);
}
.about-stat strong {
  display: block;
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
  margin-bottom: .2rem;
}
.about-stat span { font-size: .74rem; color: var(--muted); font-weight: 500; }

/* Feature items */
.features { display: flex; flex-direction: column; gap: .875rem; }
.feature {
  display: flex;
  align-items: flex-start;
  gap: .875rem;
  padding: 1.125rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-m);
  transition: border-color var(--ease), box-shadow var(--ease), transform var(--ease);
}
.feature:hover {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-lt);
  transform: translateX(4px);
}
.feature-icon {
  width: 40px;
  height: 40px;
  background: var(--primary-lt);
  border-radius: var(--radius-s);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  flex-shrink: 0;
  transition: background var(--ease), color var(--ease);
}
.feature:hover .feature-icon { background: var(--primary); color: #fff; }
.feature-icon svg { width: 18px; height: 18px; }
.feature h4 { font-size: .9rem; font-weight: 700; color: var(--dark); margin-bottom: .2rem; }
.feature p  { font-size: .83rem; color: var(--muted); line-height: 1.55; margin: 0; }

/* ── Contact ────────────────────────────────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
@media (min-width: 900px) {
  .contact-grid { grid-template-columns: 1fr 1.65fr; gap: 3rem; align-items: start; }
}

.contact-info { display: flex; flex-direction: column; gap: 1rem; }

.contact-card {
  display: flex;
  align-items: flex-start;
  gap: .875rem;
  padding: 1.25rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-m);
  transition: box-shadow var(--ease), border-color var(--ease);
}
.contact-card:hover { box-shadow: var(--shadow-m); border-color: var(--primary); }
.contact-icon {
  width: 40px;
  height: 40px;
  background: var(--primary-lt);
  border-radius: var(--radius-s);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  flex-shrink: 0;
}
.contact-icon svg { width: 18px; height: 18px; }
.contact-card h4 { font-size: .9rem; font-weight: 700; color: var(--dark); margin-bottom: .25rem; }
.contact-card p  { font-size: .84rem; color: var(--muted); line-height: 1.6; }
.contact-card a  { color: var(--primary); font-weight: 500; }
.contact-card a:hover { text-decoration: underline; }

/* Contact form */
.contact-form {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-l);
  padding: 2rem;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0 1.125rem;
}
@media (min-width: 480px) { .form-row { grid-template-columns: 1fr 1fr; } }

.form-group { margin-bottom: 1.125rem; }
.form-group label {
  display: block;
  font-size: .8rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: .35rem;
}
.form-group input,
.form-group textarea {
  width: 100%;
  padding: .65rem .9rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-s);
  font-size: .9rem;
  color: var(--dark);
  background: var(--white);
  -webkit-appearance: none;
  transition: border-color var(--ease), box-shadow var(--ease);
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-lt);
}
.form-group textarea { resize: vertical; min-height: 120px; }

/* Form status message */
.form-msg {
  display: flex;
  align-items: flex-start;
  gap: .625rem;
  padding: .8rem 1rem;
  border-radius: var(--radius-s);
  font-size: .875rem;
  font-weight: 500;
  margin-bottom: 1.125rem;
  line-height: 1.5;
}
.form-msg--ok  { background: #f0fdf4; border: 1.5px solid #86efac; color: #166534; }
.form-msg--err { background: #fef2f2; border: 1.5px solid #fca5a5; color: #991b1b; }
.form-msg--err a { color: inherit; font-weight: 700; }

/* ── Footer ─────────────────────────────────────────────────────── */
.footer { background: var(--dark); color: rgba(255,255,255,.6); padding-top: 3.5rem; }
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.25rem;
  padding-bottom: 2.75rem;
}
@media (min-width: 600px)  { .footer-grid { grid-template-columns: repeat(2,1fr); } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 2.75rem; } }

.footer-logo {
  height: 38px;
  width: auto;
  object-fit: contain;
  margin-bottom: .75rem;
  filter: brightness(0) invert(1) opacity(.75);
}
.footer-brand p { font-size: .84rem; line-height: 1.65; max-width: 220px; }

.footer-col h4 { font-size: .875rem; font-weight: 700; color: #fff; margin-bottom: 1rem; }
.footer-col ul li { margin-bottom: .55rem; }
.footer-col ul li a {
  font-size: .84rem;
  color: rgba(255,255,255,.55);
  transition: color var(--ease);
}
.footer-col ul li a:hover { color: #fff; }
.footer-col .footer-addr { font-size: .82rem; line-height: 1.65; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 1.25rem 0;
  text-align: center;
  font-size: .8rem;
}

/* ── Reveal animations ──────────────────────────────────────────── */
.fade-up {
  animation: fadeUp .6s ease both;
}
.fade-up--d1 { animation-delay: .12s; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .5s ease, transform .5s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

.cards-grid .card:nth-child(2) { transition-delay: .07s; }
.cards-grid .card:nth-child(3) { transition-delay: .14s; }
.features .feature:nth-child(2) { transition-delay: .06s; }
.features .feature:nth-child(3) { transition-delay: .12s; }
.features .feature:nth-child(4) { transition-delay: .18s; }

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