/*
  Leo Domestic Packers And Movers — global stylesheet
  Complements Tailwind CDN (config in includes/head.php).

  Design language: restrained, premium, high-contrast. Tight type scale,
  disciplined spacing, subtle layered shadows, hairline borders.
*/

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  color: #3a3a3d;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Bricolage Grotesque", system-ui, sans-serif;
  line-height: 1.18;
  letter-spacing: -0.02em;
  color: #0d0d0d;
}

/* ---------- Eyebrow / tagline chip ---------- */
.tagline {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1.2;
}

/* ---------- Section heading system ---------- */
.section-title {
  font-family: "Bricolage Grotesque", system-ui, sans-serif;
  font-weight: 700;
  font-size: clamp(1.5rem, 1.3rem + 0.85vw, 2rem);
  line-height: 1.18;
  letter-spacing: -0.025em;
}

.section-desc {
  font-size: 1rem;
  line-height: 1.6;
}

/* Card / component headings */
.card-title {
  font-family: "Bricolage Grotesque", system-ui, sans-serif;
  font-weight: 700;
  font-size: 1.125rem;
  line-height: 1.3;
  letter-spacing: -0.015em;
}

/* ---------- Hero ---------- */
.hero-title {
  font-family: "Bricolage Grotesque", system-ui, sans-serif;
  font-weight: 700;
  font-size: clamp(2.1rem, 1.6rem + 2.2vw, 3.4rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
}
.hero-subtitle {
  font-size: 1.0625rem;
  line-height: 1.6;
}

/* ---------- Buttons ---------- */
.btn,
button[type="submit"],
input[type="submit"] {
  font-weight: 600;
  letter-spacing: 0.005em;
}

/* ---------- Scroll reveal ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}
[data-reveal="fade"] {
  transform: translateY(0);
}
[data-reveal="left"] {
  transform: translateX(-28px);
}
[data-reveal="left"].is-visible {
  transform: translateX(0);
}
[data-reveal="right"] {
  transform: translateX(28px);
}
[data-reveal="right"].is-visible {
  transform: translateX(0);
}
[data-reveal="zoom"] {
  transform: scale(0.94);
}
[data-reveal="zoom"].is-visible {
  transform: scale(1);
}

[data-reveal-group] > * {
  transition-delay: calc(var(--stagger-index, 0) * 85ms);
}

/* ---------- Glassmorphism ---------- */
.glass-card {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.5);
}
.glass-dark {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* ---------- Gradients ---------- */
.bg-red-gradient {
  background: linear-gradient(135deg, #ff4b51 0%, #e31e24 48%, #b31217 100%);
}
.bg-dark-gradient {
  background: linear-gradient(160deg, #1c1c1e 0%, #0d0d0d 60%, #050505 100%);
}
.text-gradient-red {
  background: linear-gradient(120deg, #ff6b70 0%, #e31e24 55%, #b31217 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Reusable card surface ---------- */
.card-surface {
  background: #fff;
  border: 1px solid rgba(13, 13, 13, 0.06);
  border-radius: 1.25rem;
  box-shadow: 0 1px 2px rgba(13, 13, 13, 0.04);
  transition:
    box-shadow 0.35s ease,
    transform 0.35s ease,
    border-color 0.35s ease;
}
.card-surface:hover {
  border-color: rgba(227, 30, 36, 0.18);
  box-shadow: 0 18px 40px -22px rgba(13, 13, 13, 0.28);
  transform: translateY(-4px);
}

/* Icon tile inside cards */
.icon-tile {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 0.9rem;
  background: linear-gradient(135deg, #fdecec 0%, #fbd5d6 100%);
  color: #e31e24;
  transition:
    background 0.35s ease,
    color 0.35s ease,
    transform 0.35s ease;
}
.group:hover .icon-tile {
  background: linear-gradient(135deg, #ff4b51 0%, #e31e24 100%);
  color: #fff;
  transform: scale(1.05);
}

/* Hairline divider */
.hairline {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(13, 13, 13, 0.1), transparent);
}

/* ---------- Decorative glow blobs (subtle) ---------- */
.glow-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}

/* ---------- Noise / texture overlay for dark sections ---------- */
.noise-overlay {
  position: relative;
  isolation: isolate;
}
.noise-overlay::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  pointer-events: none;
}

/* ---------- Animated counters ---------- */
.counter-value {
  font-family: "Bricolage Grotesque", system-ui, sans-serif;
  font-weight: 700;
  font-size: 1.75rem;
  line-height: 1.05;
  letter-spacing: -0.02em;
}
@media (min-width: 768px) {
  .counter-value {
    font-size: 2.25rem;
  }
}

/* ---------- Marquee ---------- */
/*
  Base state: CSS keyframe animation (no-JS / very first paint fallback).
  Once JS boots, initSeamlessMarquee() adds .marquee-js, which disables this
  keyframe and drives the loop itself with a pixel-accurate, continuously
  re-measured width. This avoids the flicker/"restart" snap that happens when
  percentage-based transforms (translateX(-50%)) are computed against a track
  whose width changes after async images (like client logos) finish loading.
*/
.marquee-track {
  display: flex;
  align-items: center;
  gap: 3.5rem;
  width: max-content;
  animation: marquee 32s linear infinite;
  will-change: transform;
}
.marquee-track:hover {
  animation-play-state: paused;
}
.marquee-track.marquee-js {
  animation: none;
}
@keyframes marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/* ---------- Gallery filter ---------- */
.gallery-item {
  transition:
    opacity 0.3s ease,
    transform 0.3s ease;
}
.gallery-item.is-hidden {
  display: none;
}

/* ---------- Lightbox ---------- */
#lightbox {
  transition: opacity 0.25s ease;
}

/* ---------- FAQ accordion ---------- */
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.faq-item.is-open .faq-answer {
  max-height: 500px;
}
.faq-item.is-open .faq-chevron {
  transform: rotate(180deg);
}
.faq-item.is-open {
  border-color: rgba(227, 30, 36, 0.25);
}
.faq-chevron {
  transition: transform 0.3s ease;
}

/* ---------- Testimonial slider ---------- */
.testimonial-track {
  display: flex;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- Line clamp ---------- */
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ---------- Custom scrollbar ---------- */
.thin-scrollbar::-webkit-scrollbar {
  width: 6px;
}
.thin-scrollbar::-webkit-scrollbar-thumb {
  background: #e31e24;
  border-radius: 999px;
}

/* ---------- Loading spinner ---------- */
.spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  display: inline-block;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ---------- Subtle float ---------- */
@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-12px);
  }
}
.animate-float {
  animation: float 7s ease-in-out infinite;
}

/* ---------- Step number watermark ---------- */
.step-number {
  font-family: "Bricolage Grotesque", system-ui, sans-serif;
  font-weight: 800;
  -webkit-text-stroke: 1px rgba(227, 30, 36, 0.22);
}

/* ---------- Form fields ---------- */
.field {
  width: 100%;
  border-radius: 0.75rem;
  border: 1px solid rgba(13, 13, 13, 0.12);
  background: #fff;
  padding: 0.7rem 0.9rem;
  font-size: 0.9375rem;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}
.field:focus {
  outline: none;
  border-color: #e31e24;
  box-shadow: 0 0 0 3px rgba(227, 30, 36, 0.12);
}
