/* =========================================================================
   Zuptek SEO – brand polish on top of Tailwind
   ========================================================================= */

:root {
  --brand-50:  #eef2ff;
  --brand-100: #e0e7ff;
  --brand-500: #3563ff;
  --brand-600: #2a4fd6;
  --brand-700: #1e2a78;
  --brand-900: #131a4d;
  --accent:    #10b981;
  --ink:       #0f172a;
  --muted:     #64748b;
  --bg:        #f8fafc;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, sans-serif;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, .display {
  font-family: 'Plus Jakarta Sans', 'Inter', system-ui, sans-serif;
  letter-spacing: -0.02em;
}

/* ---------- Header ---------- */
#siteHeader {
  background-color: rgba(255, 255, 255, .92);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: box-shadow .25s ease, border-color .25s ease, background-color .25s ease;
}
#siteHeader.is-scrolled {
  background-color: rgba(255, 255, 255, .98);
  box-shadow: 0 8px 24px -12px rgba(15, 23, 42, .12);
  border-bottom-color: #eef0f5;
}

.logo-img {
  height: 36px;
  width: auto;
  display: block;
}
@media (min-width: 768px) { .logo-img { height: 40px; } }

/* White-out the colored logo for use on dark backgrounds (e.g., footer) */
.logo-img--invert {
  filter: brightness(0) invert(1);
  opacity: .95;
  height: 38px;
}

/* ---------- Floating accent cards (Who-We-Are visual) ---------- */
.floating-card {
  animation: floatY 6s ease-in-out infinite;
  will-change: transform;
}
.floating-card--delay   { animation-delay: -2s; animation-duration: 7s; }
.floating-card--delay-2 { animation-delay: -4s; animation-duration: 8s; }

@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-6px); }
}
/* Preserve the centered translate for the mid-right keyword chip while floating */
.floating-card--delay-2 {
  animation-name: floatYCenter;
}
@keyframes floatYCenter {
  0%, 100% { transform: translateY(-50%); }
  50%      { transform: translateY(calc(-50% - 6px)); }
}

@media (prefers-reduced-motion: reduce) {
  .floating-card,
  .floating-card--delay,
  .floating-card--delay-2 { animation: none; }
}

/* ---------- Avatar chips (hero trust strip) ---------- */
.avatar-chip {
  width: 38px;
  height: 38px;
  border-radius: 9999px;
  border: 2px solid rgba(255, 255, 255, .55);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  position: relative;
  box-shadow: 0 4px 12px -4px rgba(0, 0, 0, .35);
  transition: transform .25s ease;
  overflow: hidden;
}
.avatar-chip:hover {
  transform: translateY(-3px) scale(1.08);
  z-index: 5;
}
.avatar-chip svg {
  width: 22px;
  height: 22px;
  /* nudge so the head sits centered above the rounded shoulders area */
  margin-top: 4px;
}

/* ---------- Social icons ---------- */
.social-icon {
  width: 38px;
  height: 38px;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .12);
  color: #ffffff;
  transition: background-color .25s ease, color .25s ease, transform .25s ease, border-color .25s ease;
}
.social-icon:hover {
  background-color: var(--brand-500);
  border-color: var(--brand-500);
  color: #ffffff;
  transform: translateY(-2px);
}
.social-icon svg { display: block; }

/* ---------- Hero ---------- */
.hero-grad {
  background:
    radial-gradient(900px 500px at 85% -10%, rgba(53,99,255,.35), transparent 60%),
    radial-gradient(800px 500px at -10% 20%, rgba(16,185,129,.18), transparent 55%),
    linear-gradient(135deg, #0e1547 0%, #1e2a78 45%, #2a4fd6 100%);
}

.hero-grid {
  background-image:
    linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse at 50% 30%, #000 40%, transparent 75%);
}

.glow {
  position: absolute;
  border-radius: 9999px;
  filter: blur(80px);
  opacity: .55;
  pointer-events: none;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .85rem 1.4rem;
  border-radius: 9999px;
  font-weight: 600;
  font-size: .95rem;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--brand-500), var(--brand-700));
  color: #fff;
  box-shadow: 0 10px 30px -10px rgba(53,99,255,.55);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 36px -8px rgba(53,99,255,.7); }
.btn-accent {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 10px 30px -10px rgba(16,185,129,.55);
}
.btn-accent:hover { transform: translateY(-2px); filter: brightness(1.05); }
.btn-ghost {
  background: rgba(255,255,255,.08);
  color: #fff;
  border: 1px solid rgba(255,255,255,.18);
  backdrop-filter: blur(8px);
}
.btn-ghost:hover { background: rgba(255,255,255,.16); }
.btn-outline {
  background: #fff;
  color: var(--brand-700);
  border: 1px solid #e2e8f0;
}
.btn-outline:hover { border-color: var(--brand-500); color: var(--brand-500); }

/* ---------- Cards ---------- */
.card {
  background: #fff;
  border: 1px solid #eef0f5;
  border-radius: 1.25rem;
  padding: 1.6rem;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -20px rgba(15,23,42,.18);
  border-color: #dfe6ff;
}

.icon-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  /* Use longhand so utility classes can override cleanly */
  background-color: #eef2ff;
  background-image: linear-gradient(135deg, #eef2ff, #ffffff);
  color: var(--brand-700);
  border: 1px solid #e0e7ff;
  transition: background-color .25s ease, background-image .25s ease, color .25s ease, border-color .25s ease, transform .25s ease;
  flex-shrink: 0;
}

/* CSS-driven hover (works regardless of Tailwind utility load order) */
.card.group:hover .icon-chip,
.group:hover > .icon-chip,
a.group:hover .icon-chip {
  background-color: var(--brand-500);
  background-image: linear-gradient(135deg, var(--brand-500), var(--brand-700));
  color: #fff;
  border-color: transparent;
  transform: rotate(-4deg) scale(1.05);
}

/* Special hover tint for WhatsApp link in contact section */
a.group.is-whatsapp:hover .icon-chip {
  background-color: #10b981;
  background-image: linear-gradient(135deg, #10b981, #059669);
}

/* ---------- Section helpers ---------- */
.eyebrow {
  display: inline-block;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--brand-500);
  background: var(--brand-50);
  padding: .35rem .8rem;
  border-radius: 9999px;
}
.section-title {
  font-size: clamp(1.75rem, 1.4rem + 1.6vw, 2.6rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--ink);
}
.section-sub { color: var(--muted); max-width: 640px; }

/* ---------- Pricing ---------- */
.price-card { position: relative; }
.price-card.popular {
  border-color: transparent;
  background:
    linear-gradient(#fff, #fff) padding-box,
    linear-gradient(135deg, var(--brand-500), var(--brand-700)) border-box;
  border: 2px solid transparent;
  box-shadow: 0 30px 60px -30px rgba(53,99,255,.45);
}
.price-card .badge {
  position: absolute;
  top: -14px; left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--brand-500), var(--brand-700));
  color: #fff;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: .35rem .8rem;
  border-radius: 9999px;
  box-shadow: 0 10px 24px -8px rgba(53,99,255,.5);
}

/* ---------- Pricing tabs ---------- */
.tab-btn {
  padding: .7rem 1.4rem;
  border-radius: 9999px;
  font-weight: 600;
  font-size: .92rem;
  color: var(--muted);
  transition: all .2s ease;
}
.tab-btn.active {
  background: #fff;
  color: var(--brand-700);
  box-shadow: 0 6px 18px -6px rgba(15,23,42,.15);
}

/* ---------- FAQ ---------- */
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 1.1rem 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-weight: 600;
  color: var(--ink);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .chev { transition: transform .25s ease; color: var(--brand-500); }
.faq-item[open] summary .chev { transform: rotate(180deg); }
.faq-item .answer {
  padding: 0 1.25rem 1.1rem;
  color: var(--muted);
  line-height: 1.65;
}

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.in {
  opacity: 1;
  transform: none;
}

/* ---------- Floating WhatsApp ---------- */
.whatsapp-float {
  position: fixed;
  right: 20px;
  bottom: 22px;
  z-index: 60;
  width: 58px;
  height: 58px;
  border-radius: 9999px;
  background: #25D366;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 14px 30px -8px rgba(37,211,102,.55);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 14px 30px -8px rgba(37,211,102,.55), 0 0 0 0 rgba(37,211,102,.45); }
  50%      { box-shadow: 0 14px 30px -8px rgba(37,211,102,.55), 0 0 0 16px rgba(37,211,102,0); }
}

/* ---------- Result cards (Our Results Speak) ---------- */
.result-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #eef0f5;
  border-radius: 1.25rem;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.result-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 48px -24px rgba(15, 23, 42, .22);
  border-color: #d8e0ff;
}

.result-card__media {
  position: relative;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, #f8fafc, #eef2ff);
  overflow: hidden;
  border-bottom: 1px solid #eef0f5;
}
.result-card__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform .5s ease;
}
.result-card:hover .result-card__media img {
  transform: scale(1.04);
}

.result-card__zoom {
  position: absolute;
  bottom: 12px;
  right: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 9999px;
  background: rgba(15, 23, 42, .82);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .02em;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .2s ease, transform .25s ease;
  backdrop-filter: blur(6px);
}
.result-card:hover .result-card__zoom {
  opacity: 1;
  transform: translateY(0);
}

.result-card__body {
  padding: 1rem 1.1rem 1.15rem;
}

.result-card__delta {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 9999px;
  background: linear-gradient(135deg, #d1fae5, #a7f3d0);
  color: #065f46;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .02em;
  white-space: nowrap;
}

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(2, 6, 23, .92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  transition: opacity .25s ease;
}
.lightbox.open {
  display: flex;
  opacity: 1;
}

.lightbox__figure {
  margin: 0;
  max-width: min(1200px, 96vw);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .75rem;
  animation: lbZoom .3s ease;
}
@keyframes lbZoom {
  from { transform: scale(.96); opacity: 0; }
  to   { transform: scale(1);   opacity: 1; }
}

.lightbox__figure img {
  display: block;
  max-width: 100%;
  max-height: 78vh;
  width: auto;
  height: auto;
  border-radius: .9rem;
  box-shadow: 0 30px 80px -16px rgba(0, 0, 0, .7);
  background: #fff;
}

.lightbox__caption {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: .5rem .75rem;
  color: rgba(255, 255, 255, .92);
  font-size: .875rem;
  text-align: center;
  max-width: 760px;
  padding: 0 .5rem;
}
.lightbox__chip {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .15);
  color: #ffffff;
}
.lightbox__chip--delta {
  background: linear-gradient(135deg, #34d399, #059669);
  border-color: transparent;
  text-transform: none;
}
.lightbox__text {
  font-weight: 500;
  color: rgba(255, 255, 255, .9);
}
.lightbox__counter {
  width: 100%;
  font-size: 11px;
  color: rgba(255, 255, 255, .55);
  letter-spacing: .08em;
  margin-top: 2px;
}

.lightbox__close,
.lightbox__nav {
  position: fixed;
  width: 44px;
  height: 44px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .18);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color .2s ease, transform .2s ease, border-color .2s ease;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.lightbox__close:hover,
.lightbox__nav:hover {
  background: rgba(255, 255, 255, .22);
  border-color: rgba(255, 255, 255, .32);
  transform: scale(1.06);
}

.lightbox__close {
  top: 1rem;
  right: 1rem;
}
.lightbox__nav--prev {
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
}
.lightbox__nav--next {
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
}
.lightbox__nav--prev:hover { transform: translateY(-50%) scale(1.06); }
.lightbox__nav--next:hover { transform: translateY(-50%) scale(1.06); }

@media (max-width: 640px) {
  .lightbox__nav--prev { left: .5rem; }
  .lightbox__nav--next { right: .5rem; }
  .lightbox__figure img { max-height: 70vh; }
}

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 100;
  padding: 1rem 1.25rem;
  border-radius: .9rem;
  background: #fff;
  box-shadow: 0 20px 40px -16px rgba(15,23,42,.25);
  border-left: 4px solid var(--accent);
  font-weight: 500;
  max-width: 360px;
  /* Hidden by default — opacity + visibility so the empty box never peeks */
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateX(20px);
  transition: opacity .25s ease, transform .35s ease, visibility 0s linear .35s;
}
.toast.show {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(0);
  transition: opacity .25s ease, transform .35s ease, visibility 0s linear 0s;
}
.toast.error { border-left-color: #ef4444; }

/* ---------- Modal ---------- */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 70;
  background: rgba(15,23,42,.55);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  transition: opacity .25s ease;
}
.modal-backdrop.open { display: flex; opacity: 1; }
.modal {
  background: #fff;
  border-radius: 1.25rem;
  width: 100%;
  max-width: 480px;
  padding: 1.6rem;
  transform: translateY(20px);
  transition: transform .25s ease;
}
.modal-backdrop.open .modal { transform: none; }

/* ---------- Form ---------- */
.field {
  width: 100%;
  padding: .85rem 1rem;
  border: 1px solid #e2e8f0;
  border-radius: .8rem;
  font-size: .95rem;
  background: #fff;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.field:focus {
  outline: none;
  border-color: var(--brand-500);
  box-shadow: 0 0 0 4px rgba(53,99,255,.15);
}
.field.error { border-color: #ef4444; }
.field-error { color: #ef4444; font-size: .8rem; margin-top: .35rem; display: none; }
.field.error + .field-error { display: block; }

/* ---------- Testimonial slider ---------- */
.slider-track {
  display: flex;
  transition: transform .5s ease;
}
.slide {
  flex: 0 0 100%;
  padding: .25rem;
}
@media (min-width: 768px) {
  .slide { flex: 0 0 50%; }
}
@media (min-width: 1024px) {
  .slide { flex: 0 0 33.3333%; }
}

/* ---------- Misc ---------- */
.divider-fade {
  height: 1px;
  background: linear-gradient(90deg, transparent, #e2e8f0, transparent);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
