/* ============================================================
   Qitec — Custom CSS (complementa o Tailwind)
   ============================================================ */

:root {
  --qt-dark:    #0a0a0f;
  --qt-surface: #0f0f1a;
  --qt-card:    #161625;
  --qt-border:  #1e1e30;
  --qt-accent:  #0EA5E9;
  --qt-green:   #25D366;
  --qt-muted:   #64748B;
  --qt-subtle:  #94A3B8;
  --header-h:   160px;
}

* { scroll-behavior: smooth; box-sizing: border-box; }

html { overflow-x: hidden; }

/* Scroll offset sincronizado com altura real do header */
section[id], article[id] { scroll-margin-top: var(--header-h); }

/* Padding do hero igual à altura do header */
.hero-pt { padding-top: var(--header-h); }

/* Scrollbar */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--qt-dark); }
::-webkit-scrollbar-thumb { background: var(--qt-border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(14,165,233,.5); }

/* ── Header ──────────────────────────────────────── */
#main-header {
  transition: background 300ms ease, border-color 300ms ease, box-shadow 300ms ease;
}
.header-scrolled {
  background: rgba(10, 10, 15, 0.90);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(30, 30, 48, 0.7);
  box-shadow: 0 4px 30px rgba(0,0,0,.4);
}

/* ── Hero ────────────────────────────────────────── */
.hero-bg {
  background:
    radial-gradient(ellipse at 15% 60%, rgba(14,165,233,.07) 0%, transparent 55%),
    radial-gradient(ellipse at 85% 20%, rgba(124,58,237,.05) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 100%, rgba(14,165,233,.04) 0%, transparent 50%);
}
.hero-grid {
  background-image:
    linear-gradient(rgba(30,30,48,.5) 1px, transparent 1px),
    linear-gradient(90deg, rgba(30,30,48,.5) 1px, transparent 1px);
  background-size: 60px 60px;
}

/* ── Gradient Text ───────────────────────────────── */
.gradient-text {
  background: linear-gradient(135deg, #0EA5E9 0%, #7C3AED 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Buttons ─────────────────────────────────────── */
.btn-whatsapp {
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  transition: all .3s ease;
}
.btn-whatsapp:hover {
  filter: brightness(1.1);
  box-shadow: 0 8px 32px rgba(37,211,102,.35);
  transform: translateY(-2px);
}

.btn-accent {
  background: linear-gradient(135deg, #0EA5E9 0%, #0284C7 100%);
  transition: all .3s ease;
}
.btn-accent:hover {
  filter: brightness(1.1);
  box-shadow: 0 8px 32px rgba(14,165,233,.35);
  transform: translateY(-2px);
}

.btn-outline {
  border: 1px solid rgba(14,165,233,.35);
  color: #0EA5E9;
  transition: all .3s ease;
}
.btn-outline:hover {
  border-color: #0EA5E9;
  background: rgba(14,165,233,.08);
}

/* ── Cards ───────────────────────────────────────── */
.card-hover {
  transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
}
.card-hover:hover {
  transform: translateY(-5px);
  border-color: rgba(14,165,233,.25);
  box-shadow: 0 24px 48px rgba(0,0,0,.4), 0 0 0 1px rgba(14,165,233,.08);
}

/* ── Badge ───────────────────────────────────────── */
.badge {
  background: rgba(14,165,233,.08);
  border: 1px solid rgba(14,165,233,.2);
  color: #0EA5E9;
}

/* ── Service icon glow ───────────────────────────── */
@keyframes icon-glow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(14,165,233,.3); }
  50%       { box-shadow: 0 0 0 10px rgba(14,165,233,.0); }
}
.icon-glow { animation: icon-glow 3.5s ease-in-out infinite; }

/* ── Divider ─────────────────────────────────────── */
.gradient-hr {
  border: none;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(14,165,233,.3), transparent);
}

/* ── Section dot ─────────────────────────────────── */
.section-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #0EA5E9;
  box-shadow: 0 0 8px rgba(14,165,233,.8);
  flex-shrink: 0;
}

/* ── Form inputs ─────────────────────────────────── */
.form-input {
  background: rgba(22, 22, 37, 0.9);
  border: 1px solid rgba(30, 30, 48, 0.9);
  color: #F1F5F9;
  transition: border-color .2s ease, box-shadow .2s ease;
  width: 100%;
}
.form-input:focus {
  outline: none;
  border-color: rgba(14,165,233,.55);
  box-shadow: 0 0 0 3px rgba(14,165,233,.10);
}
.form-input::placeholder { color: rgba(148,163,184,.4); }
.form-input option { background: #161625; color: #F1F5F9; }

/* ── Scroll reveal ───────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .65s ease, transform .65s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal.delay-100 { transition-delay: .1s; }
.reveal.delay-200 { transition-delay: .2s; }
.reveal.delay-300 { transition-delay: .3s; }

/* ── Hero entry animations ───────────────────────── */
@keyframes fade-up {
  from { opacity: 0; transform: translateY(32px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-up      { animation: fade-up .7s ease both; }
.fade-up-d1   { animation: fade-up .7s .12s ease both; }
.fade-up-d2   { animation: fade-up .7s .24s ease both; }
.fade-up-d3   { animation: fade-up .7s .36s ease both; }
.fade-up-d4   { animation: fade-up .7s .48s ease both; }

/* ── Mobile nav ──────────────────────────────────── */
#mobile-menu {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height .4s ease, opacity .3s ease;
}
#mobile-menu.open {
  max-height: 460px;
  opacity: 1;
}

/* ── Filter tabs (cases) ─────────────────────────── */
.case-filter {
  background: rgba(22,22,37,.8);
  border: 1px solid rgba(30,30,48,.9);
  color: var(--qt-muted);
  cursor: pointer;
  transition: all .25s ease;
}
.case-filter:hover,
.case-filter.active {
  background: rgba(14,165,233,.1);
  border-color: rgba(14,165,233,.3);
  color: #0EA5E9;
}

/* ── Floating WhatsApp ───────────────────────────── */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-6px); }
}
.floating-wa {
  animation: float 3s ease-in-out infinite;
  box-shadow: 0 8px 32px rgba(37,211,102,.4);
  transition: box-shadow .3s ease;
}
.floating-wa:hover {
  box-shadow: 0 12px 40px rgba(37,211,102,.6);
}

/* ── Logo customizada no site ─────────────────────── */
[data-logo-wrap].logo-custom {
  display: inline-flex !important;
  align-items: center;
  align-self: flex-start;
}
[data-logo-wrap].logo-custom img {
  display: block !important;
  height: 134px !important;
  width: auto !important;
  max-width: 540px;
  object-fit: contain;
  flex-shrink: 0;
}

/* Footer: logo menor e proporcional ao rodapé */
footer [data-logo-wrap].logo-custom img {
  height: 48px !important;
  max-width: 160px;
}

/* Mobile: logo compacta para não quebrar o layout */
@media (max-width: 1023px) {
  :root { --header-h: 96px; }
  [data-logo-wrap].logo-custom img {
    height: 64px !important;
  }
}

/* ── Stat card metric ────────────────────────────── */
.metric-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(30,30,48,.9);
}
.metric-line:last-child { border-bottom: none; }

/* ── Acessibilidade: preferência de redução de movimento ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}
