/* Reliable Fire & Security — theme: white + decent red · Poppins scale */
:root {
  --rfs-red: #c41e3a;
  --rfs-red-dark: #9e1830;
  --rfs-red-soft: rgba(196, 30, 58, 0.08);
  --rfs-navy: #1e3a5f;
  --rfs-body: #2b2b2b;
  --rfs-muted: #5c5c5c;
  --rfs-white: #ffffff;
  --rfs-light: #f8f9fb;
  --font-main: "Poppins", system-ui, -apple-system, sans-serif;
  --transition-smooth: cubic-bezier(0.4, 0, 0.2, 1);
  /* Responsive type scale (mobile → large desktop) */
  --fs-body: clamp(0.9375rem, 0.88rem + 0.2vw, 1rem);
  --fs-sm: clamp(0.8125rem, 0.76rem + 0.18vw, 0.875rem);
  --fs-xs: clamp(0.75rem, 0.72rem + 0.12vw, 0.8125rem);
  --fs-lead: clamp(1rem, 0.92rem + 0.35vw, 1.125rem);
  --fs-h1: clamp(1.75rem, 1.35rem + 1.6vw, 2.75rem);
  --fs-h2: clamp(1.5rem, 1.2rem + 1.1vw, 2rem);
  --fs-h3: clamp(1.0625rem, 0.98rem + 0.35vw, 1.1875rem);
  --fs-contact-title: clamp(1.5rem, 1.25rem + 0.9vw, 2.125rem);
  --fs-label: clamp(0.6875rem, 0.62rem + 0.2vw, 0.75rem);
  --fs-nav-brand: clamp(0.875rem, 0.78rem + 0.35vw, 1.0625rem);
  --fs-stat: clamp(1.5rem, 1.25rem + 0.75vw, 1.875rem);
  --lh-tight: 1.25;
  --lh-body: 1.65;
  --lh-relaxed: 1.7;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--rfs-body);
  background: var(--rfs-white);
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6,
.navbar-brand,
.stat-num,
.section-title,
.hero-title,
.contact-section-title,
.blog-card-title {
  font-family: var(--font-main);
}

.text-primary-custom {
  color: var(--rfs-red) !important;
}

.bg-light-subtle {
  background: linear-gradient(180deg, var(--rfs-light) 0%, var(--rfs-white) 100%);
}

.py-lg-6 {
  padding-top: 4.5rem;
  padding-bottom: 4.5rem;
}

@media (min-width: 992px) {
  .py-lg-6 {
    padding-top: 6rem;
    padding-bottom: 6rem;
  }
}

/* Navbar */
#mainNav {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: box-shadow 0.35s var(--transition-smooth), padding 0.35s var(--transition-smooth);
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

#mainNav.nav-scrolled {
  box-shadow: 0 4px 24px rgba(30, 58, 95, 0.08);
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

.nav-logo {
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.brand-text {
  font-family: var(--font-main);
  font-weight: 600;
  font-size: var(--fs-nav-brand);
  line-height: var(--lh-tight);
  max-width: 220px;
  letter-spacing: -0.01em;
}

.brand-highlight {
  display: inline;
  color: var(--rfs-red);
  font-weight: 700;
  background: linear-gradient(180deg, transparent 65%, var(--rfs-red-soft) 65%);
  padding: 0 0.02em;
}

.brand-line2 {
  color: var(--rfs-navy);
  font-weight: 600;
}

.navbar .nav-link {
  font-weight: 500;
  color: var(--rfs-body) !important;
  padding: 0.5rem 0.75rem !important;
  position: relative;
  transition: color 0.25s ease;
}

.navbar .nav-link:not(.btn-nav-cta)::after {
  content: "";
  position: absolute;
  left: 0.75rem;
  right: 0.75rem;
  bottom: 0.25rem;
  height: 2px;
  background: var(--rfs-red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--transition-smooth);
}

.navbar .nav-link:not(.btn-nav-cta):hover::after,
.navbar .nav-link:not(.btn-nav-cta):focus::after {
  transform: scaleX(1);
}

.navbar .nav-link.btn-nav-cta {
  background: var(--rfs-red) !important;
  color: #fff !important;
  border-radius: 999px !important;
  padding: 0.45rem 1.15rem !important;
  transition: transform 0.25s ease, box-shadow 0.25s ease !important;
}

.navbar .nav-link.btn-nav-cta:hover,
.navbar .nav-link.btn-nav-cta:focus {
  color: #fff !important;
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(196, 30, 58, 0.35);
}

.navbar .nav-link.btn-nav-cta::after {
  display: none;
}

/* Buttons */
.btn-primary {
  --bs-btn-bg: var(--rfs-red);
  --bs-btn-border-color: var(--rfs-red);
  --bs-btn-hover-bg: var(--rfs-red-dark);
  --bs-btn-hover-border-color: var(--rfs-red-dark);
  --bs-btn-active-bg: var(--rfs-red-dark);
  --bs-btn-active-border-color: var(--rfs-red-dark);
  --bs-btn-focus-shadow-rgb: 196, 30, 58;
}

.btn-outline-primary {
  --bs-btn-color: var(--rfs-red);
  --bs-btn-border-color: var(--rfs-red);
  --bs-btn-hover-bg: var(--rfs-red);
  --bs-btn-hover-border-color: var(--rfs-red);
}

.btn-glow {
  box-shadow: 0 8px 28px rgba(196, 30, 58, 0.35);
  animation: btnPulse 3s ease-in-out infinite;
}

@keyframes btnPulse {
  0%, 100% { box-shadow: 0 8px 28px rgba(196, 30, 58, 0.35); }
  50% { box-shadow: 0 8px 36px rgba(196, 30, 58, 0.5); }
}

/* Hero */
.hero {
  min-height: 100vh;
  padding-top: 88px;
  background: var(--rfs-white);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 70% 20%, var(--rfs-red-soft) 0%, transparent 55%),
    radial-gradient(ellipse 60% 50% at 10% 80%, rgba(30, 58, 95, 0.06) 0%, transparent 50%);
  pointer-events: none;
  animation: heroGradient 12s ease-in-out infinite alternate;
}

@keyframes heroGradient {
  0% { opacity: 1; transform: scale(1); }
  100% { opacity: 0.85; transform: scale(1.03); }
}

.hero-shapes .shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.45;
  animation: floatShape 18s ease-in-out infinite;
}

.shape-1 {
  width: 280px;
  height: 280px;
  background: rgba(196, 30, 58, 0.15);
  top: 10%;
  right: 5%;
  animation-delay: 0s;
}

.shape-2 {
  width: 200px;
  height: 200px;
  background: rgba(30, 58, 95, 0.12);
  bottom: 20%;
  left: 3%;
  animation-delay: -6s;
}

.shape-3 {
  width: 120px;
  height: 120px;
  background: rgba(196, 30, 58, 0.2);
  top: 45%;
  left: 40%;
  animation-delay: -12s;
}

@keyframes floatShape {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(20px, -25px) scale(1.05); }
  66% { transform: translate(-15px, 15px) scale(0.95); }
}

.hero-badge {
  display: inline-block;
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--rfs-red);
  background: var(--rfs-red-soft);
  padding: 0.45rem 1rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}

.hero-title {
  font-size: var(--fs-h1);
  line-height: var(--lh-tight);
  color: var(--rfs-navy);
  letter-spacing: -0.025em;
}

.lead-custom {
  font-size: var(--fs-lead);
  line-height: var(--lh-relaxed);
  font-weight: 400;
}

.text-gradient {
  background: linear-gradient(135deg, var(--rfs-red) 0%, var(--rfs-red-dark) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.animate-on-load {
  opacity: 0;
  transform: translateY(24px);
  animation: fadeUp 0.9s var(--transition-smooth) forwards;
}

.delay-1 { animation-delay: 0.12s; }
.delay-2 { animation-delay: 0.24s; }
.delay-3 { animation-delay: 0.36s; }
.delay-4 { animation-delay: 0.48s; }

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-logo-wrap {
  position: relative;
  max-width: 380px;
}

.hero-logo-ring {
  position: absolute;
  inset: -8%;
  border-radius: 50%;
  border: 2px solid rgba(196, 30, 58, 0.2);
  animation: ringPulse 4s ease-in-out infinite;
}

@keyframes ringPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.04); opacity: 0.7; }
}

.hero-logo {
  position: relative;
  border-radius: 50%;
  box-shadow: 0 24px 60px rgba(30, 58, 95, 0.18);
  z-index: 1;
}

.animate-float {
  animation: heroFloat 6s ease-in-out infinite;
}

@keyframes heroFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

.stat-num {
  font-size: var(--fs-stat);
  font-weight: 700;
  color: var(--rfs-red);
  line-height: 1;
}

.stat-suffix {
  font-weight: 700;
  color: var(--rfs-red);
  font-size: clamp(1.125rem, 1rem + 0.4vw, 1.375rem);
}

.stat-caption {
  font-size: var(--fs-xs);
  line-height: 1.35;
  margin-top: 0.35rem;
}

.scroll-hint {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--rfs-muted);
  text-decoration: none;
  opacity: 0.7;
  animation: scrollBounce 2s ease-in-out infinite;
}

.scroll-mouse {
  width: 22px;
  height: 36px;
  border: 2px solid var(--rfs-red);
  border-radius: 12px;
  position: relative;
}

.scroll-mouse::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 8px;
  width: 4px;
  height: 8px;
  margin-left: -2px;
  background: var(--rfs-red);
  border-radius: 2px;
  animation: wheel 2s ease-in-out infinite;
}

@keyframes wheel {
  0%, 100% { opacity: 1; transform: translateY(0); }
  50% { opacity: 0.3; transform: translateY(8px); }
}

@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(6px); }
}

/* Sections */
.section-label {
  display: inline-block;
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--rfs-red);
  margin-bottom: 0.5rem;
}

.section-title {
  font-size: var(--fs-h2);
  font-weight: 700;
  line-height: var(--lh-tight);
  color: var(--rfs-navy);
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.section-intro {
  font-size: var(--fs-lead);
  line-height: var(--lh-relaxed);
  max-width: 52rem;
  margin-left: auto;
  margin-right: auto;
}

.card-title-custom {
  font-size: var(--fs-h3);
  line-height: var(--lh-tight);
  color: var(--rfs-navy);
  margin-bottom: 0.5rem;
}

.card-text-custom {
  font-size: var(--fs-sm);
  line-height: var(--lh-relaxed);
}

.why-card-title {
  font-size: var(--fs-sm);
  line-height: var(--lh-tight);
  color: var(--rfs-navy);
}

.why-card-text {
  font-size: var(--fs-sm);
  line-height: var(--lh-relaxed);
}

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s var(--transition-smooth), transform 0.7s var(--transition-smooth);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.card-lift {
  border-radius: 1rem;
  transition: transform 0.4s var(--transition-smooth), box-shadow 0.4s var(--transition-smooth);
}

.card-lift:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(30, 58, 95, 0.1) !important;
}

.icon-box {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--rfs-red-soft);
  color: var(--rfs-red);
  font-weight: 700;
  font-size: var(--fs-xs);
  border-radius: 12px;
}

/* Service cards */
.service-card {
  background: var(--rfs-white);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 1.25rem;
  padding: 1.75rem;
  transition: transform 0.45s var(--transition-smooth), box-shadow 0.45s var(--transition-smooth), border-color 0.45s ease;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--rfs-red), var(--rfs-red-dark));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--transition-smooth);
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 48px rgba(30, 58, 95, 0.12);
  border-color: rgba(196, 30, 58, 0.25);
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--rfs-red-soft);
  color: var(--rfs-red);
  border-radius: 16px;
  margin-bottom: 1.25rem;
  font-size: 1.5rem;
  transition: transform 0.35s var(--transition-smooth);
}

.service-card:hover .service-icon {
  transform: scale(1.08) rotate(-3deg);
}

/* Why us */
.list-check {
  list-style: none;
  padding: 0;
  margin: 0;
}

.list-check li {
  position: relative;
  padding-left: 1.75rem;
  margin-bottom: 0.75rem;
  color: var(--rfs-muted);
  font-size: var(--fs-sm);
  line-height: var(--lh-relaxed);
}

.list-check li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45rem;
  width: 8px;
  height: 8px;
  background: var(--rfs-red);
  border-radius: 50%;
  box-shadow: 0 0 0 4px var(--rfs-red-soft);
}

.why-panel {
  background: linear-gradient(145deg, var(--rfs-white) 0%, var(--rfs-light) 100%);
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 16px 48px rgba(30, 58, 95, 0.08);
}

.why-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--rfs-red);
  color: #fff;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.9rem;
}

/* Blog */
.blog-card {
  background: var(--rfs-white);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 1.25rem;
  padding: 1.5rem 1.5rem 1.35rem;
  transition: transform 0.4s var(--transition-smooth), box-shadow 0.4s var(--transition-smooth), border-color 0.35s ease;
}

.blog-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 44px rgba(30, 58, 95, 0.1);
  border-color: rgba(196, 30, 58, 0.2);
}

.blog-card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  margin-bottom: 0.85rem;
  font-size: var(--fs-xs);
  color: var(--rfs-muted);
}

.blog-card-meta time {
  font-weight: 500;
}

.blog-pill {
  display: inline-block;
  padding: 0.2rem 0.55rem;
  font-size: var(--fs-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--rfs-red);
  background: var(--rfs-red-soft);
  border-radius: 6px;
}

.blog-card-title {
  font-size: clamp(1rem, 0.92rem + 0.3vw, 1.125rem);
  font-weight: 600;
  line-height: var(--lh-tight);
  color: var(--rfs-navy);
  margin-bottom: 0.65rem;
  letter-spacing: -0.015em;
}

.blog-card-excerpt {
  font-size: var(--fs-sm);
  line-height: var(--lh-relaxed);
  color: var(--rfs-muted);
  margin-bottom: 0;
}

.blog-read {
  margin-top: 1rem;
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--rfs-red);
  display: inline-flex;
  align-items: center;
  gap: 0;
}

.blog-read i {
  font-size: 1.35rem;
  vertical-align: middle;
}

/* Our Clients */
.clients-section {
  background: linear-gradient(180deg, var(--rfs-white) 0%, #f3f4f8 45%, var(--rfs-white) 100%);
}

.clients-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 50% at 20% 30%, var(--rfs-red-soft) 0%, transparent 50%),
    radial-gradient(ellipse 60% 45% at 85% 70%, rgba(30, 58, 95, 0.06) 0%, transparent 45%);
  pointer-events: none;
}

.clients-grid {
  display: grid;
  gap: clamp(0.85rem, 2vw, 1.35rem);
  grid-template-columns: repeat(2, 1fr);
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
}

.clients-grid > * {
  min-width: 0;
}

@media (min-width: 768px) {
  .clients-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 992px) {
  .clients-grid {
    grid-template-columns: repeat(5, 1fr);
    max-width: 1200px;
  }
}

.client-card {
  position: relative;
  border-radius: 1.25rem;
  padding: 0.35rem;
  transition: transform 0.45s var(--transition-smooth);
}

.client-card-glow {
  position: absolute;
  inset: -2px;
  border-radius: 1.35rem;
  background: linear-gradient(135deg, rgba(196, 30, 58, 0.35), rgba(30, 58, 95, 0.2), rgba(196, 30, 58, 0.25));
  opacity: 0;
  z-index: 0;
  transition: opacity 0.45s var(--transition-smooth);
  filter: blur(8px);
}

.client-card:hover .client-card-glow {
  opacity: 0.55;
}

.client-card:hover {
  transform: translateY(-8px);
}

.client-card-frame {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: clamp(6.25rem, 14vw, 7.5rem);
  padding: 1rem 0.85rem;
  background: var(--rfs-white);
  border-radius: 1.1rem;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow:
    0 4px 6px rgba(30, 58, 95, 0.04),
    0 12px 28px rgba(30, 58, 95, 0.08);
  transition:
    box-shadow 0.45s var(--transition-smooth),
    border-color 0.35s ease;
  overflow: hidden;
}

.client-card:hover .client-card-frame {
  border-color: rgba(196, 30, 58, 0.2);
  box-shadow:
    0 8px 16px rgba(30, 58, 95, 0.08),
    0 20px 40px rgba(30, 58, 95, 0.12);
}

.client-logo {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: clamp(3rem, 9vw, 4.25rem);
  margin: 0 auto;
  object-fit: contain;
  object-position: center;
  transition: transform 0.45s var(--transition-smooth);
}

@media (min-width: 992px) {
  .client-logo {
    max-height: clamp(3.25rem, 4.5vw, 4.5rem);
  }
}

.client-card:hover .client-logo {
  transform: scale(1.04);
}

.client-caption {
  position: relative;
  z-index: 1;
  text-align: center;
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--rfs-muted);
  margin: 0.65rem 0 0;
  letter-spacing: 0.02em;
  line-height: 1.35;
  transition: color 0.35s ease;
}

.client-card:hover .client-caption {
  color: var(--rfs-navy);
}

/* Contact */
.bg-contact {
  background: linear-gradient(135deg, var(--rfs-navy) 0%, #152a45 50%, var(--rfs-red-dark) 100%);
}

.contact-section-title {
  font-size: var(--fs-contact-title);
  line-height: var(--lh-tight);
  letter-spacing: -0.02em;
}

.contact-section-lead {
  font-size: var(--fs-lead);
  line-height: var(--lh-relaxed);
}

.contact-aside-text {
  font-size: var(--fs-sm);
  line-height: var(--lh-relaxed);
}

.contact-deco {
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.9;
  pointer-events: none;
}

.form-card {
  border-radius: 1.5rem;
  animation: formGlow 5s ease-in-out infinite alternate;
}

@keyframes formGlow {
  from { box-shadow: 0 24px 64px rgba(0, 0, 0, 0.2); }
  to { box-shadow: 0 28px 72px rgba(196, 30, 58, 0.15); }
}

.form-control:focus {
  border-color: var(--rfs-red);
  box-shadow: 0 0 0 0.2rem rgba(196, 30, 58, 0.15);
}

/* Lead form: smaller type, subdued placeholders */
#leadForm .form-label {
  font-size: clamp(0.75rem, 0.71rem + 0.12vw, 0.8125rem);
  font-weight: 500;
  color: var(--rfs-muted);
  margin-bottom: 0.35rem;
}

#leadForm .form-control.form-control-lg {
  font-size: clamp(0.8125rem, 0.76rem + 0.12vw, 0.875rem);
  padding: 0.5rem 0.75rem;
  line-height: 1.45;
  color: var(--rfs-body);
}

#leadForm textarea.form-control.form-control-lg {
  min-height: 6.25rem;
}

#leadForm .form-control::placeholder {
  color: #a8a8a8;
  opacity: 1;
}

#leadForm .form-control::-webkit-input-placeholder {
  color: #a8a8a8;
  opacity: 1;
}

#leadForm .form-control::-moz-placeholder {
  color: #a8a8a8;
  opacity: 1;
}

#leadForm .form-control:-ms-input-placeholder {
  color: #a8a8a8;
}

#leadForm .btn.btn-lg {
  font-size: clamp(0.8125rem, 0.78rem + 0.1vw, 0.875rem);
  padding: 0.55rem 1.15rem;
}

.contact-mini-icon {
  font-style: normal;
  opacity: 0.85;
}

.btn-submit-anim:not(:disabled):hover .btn-text {
  display: inline-block;
  animation: shake 0.5s ease;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-2px); }
  75% { transform: translateX(2px); }
}

/* Footer */
.footer {
  background: linear-gradient(180deg, #0f1f33 0%, #0a1522 100%);
}

.footer .letter-spacing {
  letter-spacing: 0.08em;
  font-size: var(--fs-label);
  color: rgba(255, 255, 255, 0.55);
}

.footer-text {
  font-size: var(--fs-sm);
  line-height: var(--lh-relaxed);
}

.footer .small,
.footer a {
  font-size: var(--fs-sm);
  line-height: 1.55;
}

.form-label {
  font-size: var(--fs-sm);
}

.form-control {
  font-size: var(--fs-body);
}

@media (max-width: 575.98px) {
  .navbar .nav-link {
    font-size: var(--fs-sm);
  }
}

@media (min-width: 1200px) {
  .section-intro {
    font-size: clamp(1.0625rem, 1rem + 0.15vw, 1.125rem);
  }
}

/* Web3Forms toast (below fixed navbar) */
.form-toast-container {
  z-index: 1085;
  padding-top: 5.25rem !important;
  max-width: 100%;
  width: min(22rem, calc(100vw - 1.5rem));
}

.form-toast-container .toast {
  width: 100%;
  font-size: var(--fs-sm);
}

.form-toast-container .toast-body {
  line-height: var(--lh-relaxed);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html {
    scroll-behavior: auto;
  }
}
