/* ── Fade-up animation helpers ──────────────────────────────────────────── */
.fu1 { animation: fadeUp 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.08s both; }
.fu2 { animation: fadeUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.20s both; }
.fu3 { animation: fadeUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.34s both; }
.fu4 { animation: fadeUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.48s both; }
.fu5 { animation: fadeUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.62s both; }
.fu6 { animation: fadeUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.26s both; }
.draw { animation: drawLine 0.85s cubic-bezier(0.22, 1, 0.36, 1) 0.9s both; }

/* ── Page transition ────────────────────────────────────────────────────── */
.page-enter { animation: fadeIn 0.38s cubic-bezier(0.22, 1, 0.36, 1) both; }

/* ── Floating card (hero) ──────────────────────────────────────────────── */
.float-card { animation: float 7s ease-in-out infinite; }

/* ── Trust strip ─────────────────────────────────────────────────────────── */
.trust-strip-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Track wraps the flex items; on desktop it fills the container naturally.
   On mobile the items are duplicated (×2) and the track animates to −50%,
   creating a seamless infinite marquee. */
.trust-strip-track {
  display: flex;
  width: 100%;
  align-items: center;
}

@keyframes trust-marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ── Responsive layout ──────────────────────────────────────────────────── */

/* Hero */
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

/* About cols */
.about-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

/* Contact cols */
.contact-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

/* Calculator layout */
.calc-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 28px;
  align-items: start;
}

/* Stats bar */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
}

@media (max-width: 900px) {
  .calc-layout {
    grid-template-columns: 1fr;
  }
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .hero-grid > *:last-child {
    display: none; /* hide teaser card on small screens */
  }
}

@media (max-width: 768px) {
  .about-cols,
  .contact-cols {
    grid-template-columns: 1fr;
  }
  .stats-bar {
    grid-template-columns: 1fr 1fr;
  }
  /* Trust strip: let the outer blue div (overflow:hidden set in JS) clip the track */
  .trust-strip-inner {
    overflow: visible;
    padding: 0;
    gap: 0;
  }
  .trust-strip-track {
    width: max-content;
    animation: trust-marquee 22s linear infinite;
  }
}

@media (prefers-reduced-motion: reduce) {
  .trust-strip-track { animation: none !important; }
}

@media (max-width: 600px) {
  .hero-grid,
  .about-cols,
  .contact-cols {
    padding: 0;
  }
}

/* ── Nav: hamburger (mobile) / links (desktop) ──────────────────────────── */
.nav-links     { display: flex; gap: 28px; align-items: center; }
.nav-hamburger {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 4px;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.nav-cta { display: flex; }

.nav-drawer {
  position: fixed;
  top: 68px;
  left: 0;
  right: 0;
  z-index: 99;
  transform: translateY(-10px);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.22s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.18s ease;
}
.nav-drawer.open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

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

/* ── Service card body ───────────────────────────────────────────────────── */
/* Replaces the inline grid style on each card — stacks CTA below on phones */
.svc-body {
  padding: 28px 32px;
  flex: 1;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: center;
}

@media (max-width: 640px) {
  .svc-body {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 20px;
  }
  /* CTA button full-width on mobile */
  .svc-body .svc-cta-btn { width: 100%; justify-content: center; }
}

/* ── Nav scroll shadow ──────────────────────────────────────────────────── */
.nav-scrolled {
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

/* ── Spinner ────────────────────────────────────────────────────────────── */
.spinner {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border-width: 2px;
  border-style: solid;
  border-top-color: transparent;
  animation: spin 0.75s linear infinite;
  display: inline-block;
}
