/* Worldview Immigration — custom styles & motion */

:root {
  --navy: #0f172a;
  --crimson: #dc2626;
  --crimson-dark: #b91c1c;
  --slate: #64748b;
  --off-white: #f8fafc;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--navy);
  background-color: #ffffff;
  -webkit-font-smoothing: antialiased;
}

/* Atmospheric hero wash */
.hero-surface {
  background:
    radial-gradient(ellipse 80% 60% at 70% 20%, rgba(220, 38, 38, 0.12), transparent 55%),
    radial-gradient(ellipse 60% 50% at 10% 80%, rgba(15, 23, 42, 0.08), transparent 50%),
    linear-gradient(160deg, #0f172a 0%, #1e293b 45%, #0f172a 100%);
}

.hero-grid {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, black 40%, transparent 100%);
}

/* Subtle section texture */
.section-wash {
  background:
    linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
}

/* Nav active underline */
.nav-link {
  position: relative;
  transition: color 0.2s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: var(--crimson);
  transition: width 0.25s ease;
}

.nav-link:hover::after,
.nav-link[aria-current="page"]::after {
  width: 100%;
}

.nav-link[aria-current="page"] {
  color: var(--crimson);
  font-weight: 600;
}

/* Mobile drawer */
.mobile-drawer {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.35s ease, opacity 0.25s ease, padding 0.35s ease;
}

.mobile-drawer.is-open {
  max-height: 420px;
  opacity: 1;
}

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Soft hover lift for interactive surfaces */
.lift {
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.lift:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px -12px rgba(15, 23, 42, 0.18);
}

/* Form focus ring */
.form-input:focus {
  outline: none;
  border-color: var(--crimson);
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.15);
}

/* Form success banner */
.form-success {
  display: none;
}

.form-success.is-shown {
  display: block;
  animation: fadeSlide 0.4s ease;
}

@keyframes fadeSlide {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* CTA banner mesh */
.cta-mesh {
  background:
    radial-gradient(circle at 20% 50%, rgba(220, 38, 38, 0.25), transparent 45%),
    radial-gradient(circle at 85% 30%, rgba(255, 255, 255, 0.06), transparent 40%),
    linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
}

/* Maple leaf logo mark pulse on load */
@keyframes softIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-animate > * {
  animation: softIn 0.7s ease both;
}

.hero-animate > *:nth-child(1) { animation-delay: 0.05s; }
.hero-animate > *:nth-child(2) { animation-delay: 0.15s; }
.hero-animate > *:nth-child(3) { animation-delay: 0.25s; }
.hero-animate > *:nth-child(4) { animation-delay: 0.35s; }
.hero-animate > *:nth-child(5) { animation-delay: 0.45s; }

/* Skip link for a11y */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 0.75rem 1rem;
  background: var(--crimson);
  color: white;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

/* Google review stars */
.star-gold {
  color: #f59e0b;
}

/* Skeleton pulse for review cards */
.skeleton-pulse {
  background: linear-gradient(90deg, #e2e8f0 25%, #f1f5f9 50%, #e2e8f0 75%);
  background-size: 200% 100%;
  animation: skeletonShimmer 1.4s ease-in-out infinite;
}

@keyframes skeletonShimmer {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

.review-card-enter {
  animation: softIn 0.5s ease both;
}
