/* ============================================================
   InfernoX — HYBRID: Dark cinematic hero + Warm stone body
   CSS only · Zero JavaScript
   ============================================================ */

:root {
  /* Warm body (not pure white) — soft stone / ember-tinted */
  --bg: #ebe6df;
  --bg-2: #e2dbd2;
  --bg-3: #d6cdc2;
  --bg-card: #f4efe8;

  /* Hero dark */
  --hero-bg: #0c0b0d;
  --hero-text: #faf9f7;

  /* Strong red */
  --red: #c8102e;
  --red-bright: #e01530;
  --red-soft: rgba(200, 16, 46, 0.09);
  --red-mid: rgba(200, 16, 46, 0.15);
  --red-glow: rgba(200, 16, 46, 0.22);

  /* Soft charcoal text */
  --text: #2c2a28;
  --text-2: #5c5854;
  --text-3: #8a8580;
  --line: rgba(44, 42, 40, 0.09);
  --line-strong: rgba(44, 42, 40, 0.15);

  --radius: 16px;
  --radius-sm: 12px;
  --radius-full: 999px;

  --font: "Inter", system-ui, -apple-system, sans-serif;
  --display: "Outfit", "Inter", system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --max: 1180px;

  --shadow-sm: 0 2px 10px rgba(44, 42, 40, 0.045);
  --shadow: 0 10px 36px rgba(44, 42, 40, 0.07);
  --shadow-lg: 0 22px 56px rgba(44, 42, 40, 0.1);
  --shadow-red: 0 10px 32px rgba(200, 16, 46, 0.2);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button, input, textarea, select { font: inherit; color: inherit; }

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Type */
h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.035em;
  color: var(--text);
}
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 0.95rem;
}
.section-label::before {
  content: "";
  width: 20px;
  height: 2px;
  background: var(--red);
  border-radius: 2px;
}
.section-title {
  font-size: clamp(1.95rem, 4.2vw, 2.85rem);
  margin-bottom: 0.85rem;
}
.section-desc {
  font-size: 1.05rem;
  color: var(--text-2);
  max-width: 520px;
  line-height: 1.7;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 1rem 1.85rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.93rem;
  border: none;
  cursor: pointer;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), background 0.25s, border-color 0.25s, color 0.25s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: linear-gradient(180deg, var(--red-bright) 0%, var(--red) 100%);
  color: #fff;
  box-shadow: var(--shadow-red);
}
.btn-primary:hover { box-shadow: 0 14px 40px rgba(200, 16, 46, 0.3); }

.btn-outline {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255,255,255,0.35);
}
.btn-outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.55);
}

/* Outline on light sections */
.section .btn-outline,
.cta-band .btn-outline {
  background: var(--bg-card);
  color: var(--text);
  border: 1.5px solid var(--line-strong);
  box-shadow: var(--shadow-sm);
}
.section .btn-outline:hover,
.cta-band .btn-outline:hover {
  border-color: var(--red);
  color: var(--red);
  box-shadow: 0 6px 22px var(--red-glow);
}

.btn-dark {
  background: var(--text);
  color: #faf9f7;
}
.btn-dark:hover {
  background: #1f1d1b;
  box-shadow: var(--shadow);
}

/* ---------- Header: transparent over hero, solid on scroll feel ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1rem 0;
  background: rgba(12, 11, 13, 0.55);
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--display);
  font-size: 1.28rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  z-index: 102;
  color: #fff;
}
.logo-img {
  width: 56px;
  height: 56px;
  object-fit: contain;
  border-radius: 50%;
}
.logo-text span { color: #ff4d5e; }

.nav-desktop { display: none; gap: 0.1rem; align-items: center; }
.nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255,255,255,0.72);
  padding: 0.5rem 0.95rem;
  border-radius: var(--radius-full);
  position: relative;
  transition: color 0.25s;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 4px;
  width: 0;
  height: 2px;
  background: var(--red-bright);
  border-radius: 2px;
  transform: translateX(-50%);
  transition: width 0.3s var(--ease);
}
.nav-link:hover { color: #fff; }
.nav-link:hover::after,
.nav-link.active::after { width: 18px; }
.nav-link.active { color: #ff6b78; }

.nav-cta { display: none; }

.menu-btn {
  display: flex;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  z-index: 102;
}
.menu-btn span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--bg-card);
  border-radius: 2px;
  transition: 0.3s var(--ease);
}

.nav-mobile {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 99;
  background: rgba(12, 11, 13, 0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: none; /* closed = completely out of layout — no white gap */
  align-items: center;
  justify-content: center;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.nav-mobile-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  transform: translateY(16px);
  transition: transform 0.4s var(--ease);
}
.nav-mobile a {
  font-family: var(--display);
  font-size: 1.55rem;
  font-weight: 650;
  padding: 0.55rem 1.2rem;
  color: #fff;
  transition: color 0.2s;
}
.nav-mobile a:hover { color: #ff6b78; }
.nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 98;
  display: none;
}

.nav-toggle:checked ~ .nav-mobile { display: flex; }
.nav-toggle:checked ~ .nav-mobile .nav-mobile-inner { transform: translateY(0); }
.nav-toggle:checked ~ .site-header .menu-btn span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle:checked ~ .site-header .menu-btn span:nth-child(2) { opacity: 0; }
.nav-toggle:checked ~ .site-header .menu-btn span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}
.nav-toggle:checked ~ .nav-overlay { display: block; }

@media (min-width: 960px) {
  .nav-desktop { display: flex; }
  .nav-cta { display: inline-flex; padding: 0.68rem 1.35rem; font-size: 0.86rem; }
  .menu-btn { display: none; }
  .nav-mobile { display: none !important; }
}

/* ========== HERO — DARK CINEMATIC ========== */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  text-align: center;
  color: var(--hero-text);
  background: var(--hero-bg);
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% 20%, rgba(200, 16, 46, 0.25), transparent 55%),
    radial-gradient(ellipse 50% 40% at 85% 85%, rgba(200, 16, 46, 0.1), transparent 50%),
    linear-gradient(165deg, #0c0b0d 0%, #16141a 50%, #0c0b0d 100%);
  animation: heroZoom 24s ease-in-out infinite alternate;
}
@keyframes heroZoom {
  from { transform: scale(1); }
  to { transform: scale(1.05); }
}
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 70px 70px;
  mask-image: radial-gradient(ellipse at center, black 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 20%, transparent 70%);
}

.hero-video, .hero-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: 0.4;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(12,11,13,0.55) 0%, rgba(12,11,13,0.88) 100%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 7rem 1.5rem 5rem;
  max-width: 820px;
  animation: heroIn 1.05s var(--ease) both;
}
@keyframes heroIn {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-badge { display: none !important; }

.hero h1 {
  font-size: clamp(2.6rem, 7vw, 4.3rem);
  font-weight: 800;
  margin-bottom: 1.2rem;
  letter-spacing: -0.045em;
  color: #fff;
  line-height: 1.05;
}
.hero h1 em {
  font-style: normal;
  background: linear-gradient(135deg, #ff4d5e 0%, #ff8a65 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-sub {
  font-size: clamp(1.02rem, 2.2vw, 1.15rem);
  color: rgba(255,255,255,0.7);
  max-width: 500px;
  margin: 0 auto 2.15rem;
  line-height: 1.7;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  justify-content: center;
  margin-bottom: 2.4rem;
}
.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 1.6rem;
  justify-content: center;
  font-size: 0.84rem;
  color: rgba(255,255,255,0.42);
  font-weight: 500;
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  pointer-events: none;
  z-index: 1;
  animation: floatOrb 14s ease-in-out infinite;
}
.hero-orb-1 {
  width: 260px; height: 260px;
  background: rgba(200, 16, 46, 0.2);
  top: 12%; left: -4%;
}
.hero-orb-2 {
  width: 180px; height: 180px;
  background: rgba(255, 100, 80, 0.12);
  bottom: 12%; right: -2%;
  animation-delay: -5s;
}
@keyframes floatOrb {
  0%, 100% { transform: translate(0,0); }
  50% { transform: translate(18px, -14px); }
}

/* ========== BODY SECTIONS — SOFT LIGHT ========== */
.section { padding: 5.5rem 0; }
.section-header {
  margin-bottom: 3.1rem;
  text-align: center;
}
.section-header .section-desc { margin: 0 auto; }
.section-header .section-label { justify-content: center; }
.section-header .section-label::before { display: none; }

.section-dark {
  background: var(--bg-2);
}

/* Services */
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.05rem;
}
@media (min-width: 640px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .services-grid { grid-template-columns: repeat(4, 1fr); } }

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.8rem 1.45rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.4s var(--ease), box-shadow 0.4s, border-color 0.3s;
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--red), #f0657a);
  opacity: 0;
  transition: opacity 0.3s;
}
.service-card:hover {
  transform: translateY(-7px);
  border-color: rgba(200, 16, 46, 0.22);
  box-shadow: var(--shadow-lg);
}
.service-card:hover::before { opacity: 1; }

.service-icon {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--red-soft);
  border-radius: 14px;
  margin-bottom: 1.15rem;
  color: var(--red);
  transition: transform 0.4s var(--ease), background 0.3s;
}
.service-icon svg { width: 24px; height: 24px; }
.service-card:hover .service-icon {
  transform: scale(1.08) rotate(-3deg);
  background: var(--red-mid);
}
.service-card h3 { font-size: 1.08rem; margin-bottom: 0.4rem; font-weight: 700; }
.service-card p { font-size: 0.88rem; color: var(--text-3); line-height: 1.55; }
.service-num {
  position: absolute;
  top: 1.25rem;
  right: 1.35rem;
  font-family: var(--display);
  font-size: 0.78rem;
  font-weight: 700;
  color: rgba(44, 42, 40, 0.14);
  letter-spacing: 0.06em;
}

/* Stages */
.stages-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.05rem;
}
@media (min-width: 640px) { .stages-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .stages-grid { grid-template-columns: repeat(3, 1fr); } }

.stage-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.8rem 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s var(--ease), box-shadow 0.35s, border-color 0.3s;
}
.stage-card:hover {
  transform: translateY(-5px);
  border-color: rgba(200, 16, 46, 0.2);
  box-shadow: var(--shadow);
}
.stage-num {
  font-family: var(--display);
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--red);
  margin-bottom: 0.7rem;
  line-height: 1;
}
.stage-card h3 { font-size: 1.1rem; margin-bottom: 0.4rem; font-weight: 700; }
.stage-card p { font-size: 0.9rem; color: var(--text-3); line-height: 1.55; }

/* Why / products */
.why-grid, .products-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.05rem;
}
@media (min-width: 640px) {
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .products-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .products-grid { grid-template-columns: repeat(3, 1fr); }
}

.why-card, .product-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s var(--ease), border-color 0.3s, box-shadow 0.35s;
}
.why-card:hover, .product-card:hover {
  transform: translateY(-5px);
  border-color: rgba(200, 16, 46, 0.18);
  box-shadow: var(--shadow);
}
.why-card .step {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--red);
  letter-spacing: 0.12em;
  margin-bottom: 0.55rem;
}
.why-card h3, .product-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.4rem;
  font-weight: 700;
}
.why-card p, .product-card p {
  font-size: 0.9rem;
  color: var(--text-3);
  line-height: 1.55;
}

/* Clients */
.clients-section {
  padding: 3.25rem 0 4rem;
  background: var(--bg);
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.clients-section .section-header { margin-bottom: 1.5rem; }
.clients-marquee {
  position: relative;
  width: 100%;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.clients-track {
  display: flex;
  align-items: center;
  gap: 2.25rem;
  width: max-content;
  padding: 0.5rem 0;
}
.clients-marquee:hover .clients-track { animation-play-state: paused; }
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.client-logo {
  flex-shrink: 0;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1.15rem;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.3s, box-shadow 0.3s;
}
.client-logo:hover {
  border-color: rgba(200, 16, 46, 0.25);
  box-shadow: 0 6px 20px var(--red-glow);
}
.client-logo img {
  max-height: 34px;
  max-width: 120px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: grayscale(0.35);
  opacity: 0.8;
  transition: filter 0.35s, opacity 0.35s, transform 0.35s;
}
.client-logo:hover img {
  filter: grayscale(0);
  opacity: 1;
  transform: scale(1.04);
}

/* Work */
.work-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
}
@media (min-width: 768px) {
  .work-grid { grid-template-columns: repeat(4, 1fr); gap: 1rem; }
}
.work-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 1;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.work-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}
.work-item:hover img { transform: scale(1.07); }
.work-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(44, 42, 40, 0.3) 100%);
  pointer-events: none;
}

/* FAQ */
.faq-list { max-width: 700px; margin: 0 auto; }
details.faq-native { border-bottom: 1px solid var(--line); }
details.faq-native summary {
  list-style: none;
  cursor: pointer;
  padding: 1.35rem 0;
  font-weight: 650;
  font-size: 1.02rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  transition: color 0.2s;
  color: var(--text);
}
details.faq-native summary::-webkit-details-marker { display: none; }
details.faq-native summary::after {
  content: "+";
  color: var(--red);
  font-size: 1.3rem;
  font-weight: 500;
  flex-shrink: 0;
}
details.faq-native[open] summary::after { content: "−"; }
details.faq-native summary:hover { color: var(--red); }
details.faq-native .faq-body {
  padding: 0 0 1.35rem;
  color: var(--text-3);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ================== HERO SECTION FIXES ================== */
/* Fix for mobile background image visibility */
.hero-video, .hero-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: 0.45;
  background-size: cover;
  background-position: center;
}
.hero-video {
  opacity: 0;
  transition: opacity 0.45s ease;
  background: #0c0b0d;
}
.hero-video.is-ready {
  opacity: 0.5;
}

/* ================== CONTACT SECTION ================== */
/* Contact Wrapper - Main Grid */
.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: start;
}
@media (min-width: 768px) {
  .contact-wrapper {
    grid-template-columns: 1.15fr 1fr;
    gap: 3.5rem;
  }
}
@media (min-width: 1024px) {
  .contact-wrapper {
    grid-template-columns: 1.25fr 0.95fr;
    gap: 4rem;
  }
}

/* Contact Form Container */
.contact-form-container {
  width: 100%;
}

/* Form Header */
.form-header {
  margin-bottom: 2.5rem;
}

.form-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 0.8rem;
  padding: 0.35rem 0.85rem;
  background: var(--red-soft);
  border-radius: 20px;
  border: 1px solid rgba(200, 16, 46, 0.2);
}

.form-header h2 {
  font-size: clamp(1.8rem, 5vw, 2.4rem);
  font-weight: 800;
  margin-bottom: 0.8rem;
  color: var(--text);
  line-height: 1.2;
}

.form-header p {
  font-size: 1rem;
  color: var(--text-3);
  line-height: 1.7;
  max-width: 500px;
}

/* Contact Form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 640px) {
  .form-row {
    grid-template-columns: 1fr 1fr;
  }
}

/* Form Group */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.form-group.full-width {
  grid-column: 1 / -1;
}

.form-group label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: var(--text-2);
}

.label-text {
  display: block;
}

.required {
  color: var(--red);
  font-weight: 800;
  font-size: 1.1em;
}

/* Input/Textarea Wrapper */
.input-wrapper,
.select-wrapper,
.textarea-wrapper {
  position: relative;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.95rem 1.1rem;
  background: var(--bg-card);
  border: 1.5px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 500;
  transition: all 0.25s;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-3);
  opacity: 0.8;
}

/* Focus States - Better visibility */
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--red);
  background: var(--bg-card);
  box-shadow: 0 0 0 4px var(--red-soft), inset 0 0 0 1.5px var(--red);
}

/* Textarea Special */
.form-group textarea {
  resize: vertical;
  min-height: 150px;
  line-height: 1.6;
  font-weight: 400;
}

.textarea-wrapper {
  position: relative;
}

.char-count {
  position: absolute;
  right: 1rem;
  bottom: 0.7rem;
  font-size: 0.75rem;
  color: var(--text-3);
  font-weight: 600;
  pointer-events: none;
}

/* Select Styling */
.select-wrapper select {
  appearance: none;
  padding-right: 2.5rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%235c5854' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  cursor: pointer;
}

/* Form Message */
.form-msg {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 1.4rem;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 550;
  border: 1.5px solid;
  animation: slideDown 0.35s var(--ease);
}

.msg-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  font-weight: 800;
  flex-shrink: 0;
}

.form-msg.success {
  background: rgba(34, 197, 94, 0.08);
  border-color: rgba(34, 197, 94, 0.3);
  color: #16a34a;
}

.form-msg.error {
  background: rgba(200, 16, 46, 0.08);
  border-color: rgba(200, 16, 46, 0.3);
  color: var(--red);
}

/* Form Actions */
.form-actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1.5rem;
}

.btn-large {
  padding: 1.05rem 2.2rem !important;
  font-size: 1.05rem;
  font-weight: 700;
  width: 100%;
  justify-content: center;
  align-items: center;
  gap: 0.6rem;
  border-radius: 8px;
  letter-spacing: 0.2px;
  transition: all 0.3s var(--ease);
  display: flex;
}

.btn-large .arrow {
  display: inline-block;
  font-weight: 800;
}

@media (min-width: 640px) {
  .btn-large {
    width: fit-content;
  }
}

.form-note {
  font-size: 0.85rem;
  color: var(--text-3);
  text-align: center;
  font-weight: 500;
}

/* Success Message */
.success-message {
  animation: slideDown 0.4s var(--ease);
}

.success-content {
  text-align: center;
  padding: 3rem 2rem;
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.06) 0%, rgba(34, 197, 94, 0.02) 100%);
  border: 1.5px solid rgba(34, 197, 94, 0.25);
  border-radius: 12px;
}

.success-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.15) 0%, rgba(34, 197, 94, 0.05) 100%);
  border-radius: 50%;
  margin-bottom: 1.5rem;
  color: #16a34a;
  font-size: 2rem;
}

.success-icon svg {
  width: 40px;
  height: 40px;
  stroke-width: 3;
}

.success-content h3 {
  font-size: 1.6rem;
  color: #16a34a;
  margin-bottom: 0.8rem;
}

.success-content p {
  color: var(--text-3);
  line-height: 1.8;
  margin-bottom: 0.8rem;
  font-size: 0.95rem;
}

.response-time {
  color: var(--text-2) !important;
  font-weight: 600;
  margin-bottom: 1.8rem !important;
}

/* Contact Info Box */
.contact-info-box {
  background: linear-gradient(135deg, var(--bg-2) 0%, var(--bg-3) 100%);
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  padding: 2.2rem;
  height: fit-content;
  position: sticky;
  top: 1.5rem;
  box-shadow: 0 4px 20px rgba(44, 42, 40, 0.04);
}

@media (max-width: 767px) {
  .contact-info-box {
    position: static;
  }
}

.info-header {
  margin-bottom: 2rem;
}

.info-header h3 {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 0.4rem;
}

.info-header p {
  font-size: 0.85rem;
  color: var(--text-3);
}

/* Contact Methods */
.info-methods {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  margin-bottom: 2rem;
}

.info-method {
  display: flex;
  gap: 1.2rem;
  align-items: center;
  padding: 1.1rem;
  background: rgba(255, 255, 255, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.3s;
  cursor: pointer;
}

.info-method:hover {
  background: rgba(200, 16, 46, 0.08);
  border-color: var(--red);
  transform: translateX(4px);
}

.info-method.static {
  cursor: default;
  background: rgba(255, 255, 255, 0.2);
}

.info-method.static:hover {
  transform: none;
}

.method-icon {
  width: 2.6rem;
  height: 2.6rem;
  min-width: 2.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(200, 16, 46, 0.1);
  color: var(--red);
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
.method-icon svg {
  display: block;
  flex-shrink: 0;
}
.method-icon--phone { background: #fee2e2; color: #dc2626; }
.method-icon--wa { background: #dcfce7; color: #16a34a; }
.method-icon--mail { background: #e0e7ff; color: #4f46e5; }
.method-icon--loc { background: #ffedd5; color: #ea580c; }
.method-icon--ig { background: linear-gradient(135deg, #fce7f3, #ede9fe); color: #c026d3; }

.method-content {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.method-content strong {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  color: var(--text-2);
  font-weight: 700;
}

.method-content span {
  color: var(--red);
  font-weight: 600;
  font-size: 0.9rem;
}

.info-method.static .method-content span {
  color: var(--text-2);
}

/* Info Cards */
.info-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-bottom: 2rem;
}

@media (min-width: 640px) {
  .info-cards {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.8rem;
  }
}

@media (max-width: 767px) {
  .info-cards {
    grid-template-columns: repeat(3, 1fr);
  }
}

.info-card {
  padding: 1.2rem;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 8px;
  text-align: center;
  transition: all 0.3s;
}

.info-card:hover {
  background: var(--red-soft);
  border-color: rgba(200, 16, 46, 0.2);
  transform: translateY(-2px);
}

.card-icon {
  width: 2.75rem;
  height: 2.75rem;
  margin: 0 auto 0.65rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(200, 16, 46, 0.1);
  color: var(--red);
}
.card-icon svg {
  display: block;
}

.info-card h4 {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.4rem;
}

.info-card p {
  font-size: 0.8rem;
  color: var(--text-3);
  line-height: 1.5;
}

/* Service Area */
.service-area {
  padding: 1.2rem;
  background: rgba(200, 16, 46, 0.06);
  border: 1px solid rgba(200, 16, 46, 0.15);
  border-radius: 8px;
  text-align: center;
}

.service-area strong {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  color: var(--red);
  margin-bottom: 0.4rem;
  font-weight: 700;
}

.service-area p {
  font-size: 0.95rem;
  color: var(--text-2);
  font-weight: 600;
}

/* Animation */
@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Blog */
.blog-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
@media (min-width: 640px) { .blog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .blog-grid { grid-template-columns: repeat(3, 1fr); } }
.blog-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  transition: 0.4s var(--ease);
  display: block;
}
.blog-card:hover {
  transform: translateY(-6px);
  border-color: rgba(200, 16, 46, 0.15);
  box-shadow: var(--shadow-lg);
}
.blog-card-img {
  height: 185px;
  background: var(--bg-3);
  overflow: hidden;
}
.blog-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.blog-card:hover .blog-card-img img { transform: scale(1.05); }
.blog-card-body { padding: 1.4rem; }
.blog-card-date {
  font-size: 0.75rem;
  color: var(--text-3);
  margin-bottom: 0.4rem;
  font-weight: 550;
}
.blog-card h3 { font-size: 1.08rem; margin-bottom: 0.4rem; font-weight: 700; }
.blog-card p {
  font-size: 0.88rem;
  color: var(--text-3);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Footer — soft */
.site-footer {
  position: relative;
  background: var(--bg-2);
  border-top: 1px solid var(--line);
  padding: 3.75rem 0 1.6rem;
}
.footer-glow { display: none; }
.footer-top {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.25rem;
  margin-bottom: 2.5rem;
}
@media (min-width: 768px) {
  .footer-top { grid-template-columns: 1.2fr 1fr; gap: 3rem; }
}
.footer-tagline {
  color: var(--text-2);
  margin: 0.9rem 0 0.3rem;
  font-size: 0.95rem;
}
.footer-loc { color: var(--text-3); font-size: 0.85rem; }
.footer-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}
.footer-col h4 {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 0.9rem;
}
.footer-col a {
  display: block;
  font-size: 0.92rem;
  color: var(--text-2);
  padding: 0.28rem 0;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--red); }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--line);
  font-size: 0.82rem;
  color: var(--text-3);
}
.to-top {
  color: var(--text-2);
  font-weight: 550;
  transition: color 0.2s;
}
.to-top:hover { color: var(--red); }

/* Logo in footer — dark text */
.site-footer .logo { color: var(--text); }
.site-footer .logo-text span { color: var(--red); }

/* WhatsApp */
.wa-float {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 90;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 22px rgba(37, 211, 102, 0.4);
  transition: transform 0.25s var(--ease);
}
.wa-float:hover { transform: scale(1.08); }

/* Utils */
.text-center { text-align: center; }
.mt-2 { margin-top: 2.25rem; }
.mb-2 { margin-bottom: 2rem; }

.reveal { animation: revealUp 0.8s var(--ease) both; }
@keyframes revealUp {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: translateY(0); }
}
.reveal-d1 { animation-delay: 0.08s; }
.reveal-d2 { animation-delay: 0.16s; }
.reveal-d3 { animation-delay: 0.24s; }
.reveal-d4 { animation-delay: 0.32s; }

.cta-band {
  text-align: center;
  padding: 5rem 0;
  background: var(--bg-2);
}
.cta-band .section-desc { margin: 0 auto 1.9rem; }
.cta-band .section-title {
  font-size: clamp(1.9rem, 4vw, 2.7rem);
}

:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
}

/* ============================================================
   ADVANCED CSS ANIMATIONS + MOBILE RESPONSIVE
   ============================================================ */

/* ---- Advanced keyframes ---- */
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}
@keyframes borderGlow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(200, 16, 46, 0); }
  50% { box-shadow: 0 0 24px 2px rgba(200, 16, 46, 0.25); }
}
@keyframes lineDraw {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}
@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(32px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeSlideLeft {
  from { opacity: 0; transform: translateX(-28px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.92); }
  to { opacity: 1; transform: scale(1); }
}
@keyframes softPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.03); }
}
@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
@keyframes iconFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
@keyframes underlineGrow {
  from { width: 0; }
  to { width: 100%; }
}

/* Hero title shimmer on accent */
.hero h1 em {
  background-size: 200% auto;
  animation: gradientShift 5s ease infinite;
  background-image: linear-gradient(135deg, #ff4d5e 0%, #ff8a65 40%, #ff4d5e 80%);
}

/* Staggered section cards on load */
.service-card,
.stage-card,
.why-card,
.product-card {
  animation: fadeSlideUp 0.7s var(--ease) both;
}
.services-grid .service-card:nth-child(1) { animation-delay: 0.05s; }
.services-grid .service-card:nth-child(2) { animation-delay: 0.12s; }
.services-grid .service-card:nth-child(3) { animation-delay: 0.19s; }
.services-grid .service-card:nth-child(4) { animation-delay: 0.26s; }
.services-grid .service-card:nth-child(5) { animation-delay: 0.33s; }
.services-grid .service-card:nth-child(6) { animation-delay: 0.4s; }
.services-grid .service-card:nth-child(7) { animation-delay: 0.47s; }
.services-grid .service-card:nth-child(8) { animation-delay: 0.54s; }

.stages-grid .stage-card:nth-child(1) { animation-delay: 0.06s; }
.stages-grid .stage-card:nth-child(2) { animation-delay: 0.14s; }
.stages-grid .stage-card:nth-child(3) { animation-delay: 0.22s; }
.stages-grid .stage-card:nth-child(4) { animation-delay: 0.3s; }
.stages-grid .stage-card:nth-child(5) { animation-delay: 0.38s; }
.stages-grid .stage-card:nth-child(6) { animation-delay: 0.46s; }

/* Service icon float on hover */
.service-card:hover .service-icon {
  animation: iconFloat 1.4s ease-in-out infinite;
}

/* Primary button soft pulse idle */
.btn-primary {
  animation: softPulse 3.5s ease-in-out infinite;
}
.btn-primary:hover {
  animation: none;
}

/* CTA band accent line */
.cta-band .section-title::after {
  content: "";
  display: block;
  width: 56px;
  height: 3px;
  background: linear-gradient(90deg, var(--red), transparent);
  margin: 1rem auto 0;
  border-radius: 2px;
  transform-origin: left center;
  animation: lineDraw 0.9s var(--ease) 0.3s both;
}

/* Work items scale-in */
.work-item {
  animation: scaleIn 0.65s var(--ease) both;
}
.work-grid .work-item:nth-child(1) { animation-delay: 0.05s; }
.work-grid .work-item:nth-child(2) { animation-delay: 0.1s; }
.work-grid .work-item:nth-child(3) { animation-delay: 0.15s; }
.work-grid .work-item:nth-child(4) { animation-delay: 0.2s; }
.work-grid .work-item:nth-child(5) { animation-delay: 0.25s; }
.work-grid .work-item:nth-child(6) { animation-delay: 0.3s; }
.work-grid .work-item:nth-child(7) { animation-delay: 0.35s; }
.work-grid .work-item:nth-child(8) { animation-delay: 0.4s; }

/* FAQ open animation */
details.faq-native[open] .faq-body {
  animation: fadeSlideUp 0.35s var(--ease) both;
}

/* Form focus glow ring */
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  animation: borderGlow 1.8s ease-in-out infinite;
}

/* Logo hover */
.logo:hover .logo-img {
  transform: rotate(-6deg) scale(1.06);
  transition: transform 0.4s var(--ease);
}
.logo-img {
  transition: transform 0.4s var(--ease);
}

/* Nav link underline smoother */
.nav-link::after {
  transition: width 0.35s var(--ease);
}

/* WhatsApp entrance */
.wa-float {
  animation: scaleIn 0.5s var(--ease) 1s both, softPulse 2.8s ease-in-out 1.5s infinite;
}
.wa-float:hover {
  animation: none;
  transform: scale(1.1);
}

/* Hero actions stagger */
.hero-actions .btn:nth-child(1) {
  animation: fadeSlideUp 0.7s var(--ease) 0.35s both;
}
.hero-actions .btn:nth-child(2) {
  animation: fadeSlideUp 0.7s var(--ease) 0.48s both;
}
.hero-sub {
  animation: fadeSlideUp 0.7s var(--ease) 0.2s both;
}
.hero-facts {
  animation: fadeSlideUp 0.7s var(--ease) 0.55s both;
}

/* ============================================================
   RESPONSIVE — MOBILE FIRST POLISH
   ============================================================ */

/* Large tablets */
@media (max-width: 1024px) {
  .section { padding: 4.25rem 0; }
  .section-title { font-size: clamp(1.7rem, 4vw, 2.3rem); }
  .hero h1 { font-size: clamp(2.2rem, 6vw, 3.4rem); }
}

/* Tablets */
@media (max-width: 768px) {
  .container { padding: 0 1.15rem; }
  .section { padding: 3.5rem 0; }
  .section-header { margin-bottom: 2.25rem; }

  .hero-content {
    padding: 6rem 1.15rem 3.5rem;
  }
  .hero h1 {
    font-size: clamp(2rem, 8vw, 2.75rem);
    margin-bottom: 1rem;
  }
  .hero-sub {
    font-size: 0.98rem;
    margin-bottom: 1.75rem;
  }
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 0.65rem;
    margin-bottom: 1.75rem;
  }
  .hero-actions .btn {
    width: 100%;
    justify-content: center;
    padding: 1rem 1.25rem;
  }
  .hero-facts {
    flex-direction: column;
    gap: 0.4rem;
    font-size: 0.8rem;
  }

  .services-grid,
  .stages-grid,
  .why-grid,
  .products-grid {
    gap: 0.85rem;
  }

  .service-card,
  .stage-card,
  .why-card,
  .product-card {
    padding: 1.4rem 1.2rem;
  }

  .work-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.6rem;
  }

  .cta-band { padding: 3.5rem 0; }
  .cta-band .section-title { font-size: 1.65rem; }

  .footer-top { gap: 1.75rem; margin-bottom: 1.75rem; }
  .footer-cols { gap: 1.25rem; }

  .form-card { padding: 1.35rem; }

  .wa-float {
    width: 52px;
    height: 52px;
    bottom: 1.15rem;
    right: 1.15rem;
  }

  .site-header { padding: 0.75rem 0; }
  .logo { font-size: 1.12rem; }
  .logo-img { width: 48px; height: 48px; }
}

/* Phones */
@media (max-width: 480px) {
  .container { padding: 0 1rem; }
  .section { padding: 2.85rem 0; }

  .hero {
    min-height: 100svh;
  }
  .hero-content {
    padding: 5.5rem 1rem 3rem;
  }
  .hero h1 {
    font-size: 1.85rem;
    letter-spacing: -0.03em;
  }
  .hero-sub {
    font-size: 0.92rem;
    line-height: 1.6;
  }

  .section-title {
    font-size: 1.55rem;
  }
  .section-desc {
    font-size: 0.95rem;
  }
  .section-label {
    font-size: 0.68rem;
    letter-spacing: 0.14em;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }
  .stages-grid {
    grid-template-columns: 1fr;
  }
  .why-grid {
    grid-template-columns: 1fr;
  }
  .products-grid {
    grid-template-columns: 1fr;
  }

  .work-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
  }

  .service-icon {
    width: 44px;
    height: 44px;
  }
  .stage-num {
    font-size: 1.65rem;
  }

  .btn {
    padding: 0.9rem 1.4rem;
    font-size: 0.9rem;
  }

  .nav-mobile a {
    font-size: 1.3rem;
    padding: 0.45rem 1rem;
  }

  .clients-track {
    gap: 1.25rem;
  }
  .client-logo {
    height: 48px;
    padding: 0.4rem 0.85rem;
  }
  .client-logo img {
    max-height: 28px;
    max-width: 100px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  details.faq-native summary {
    font-size: 0.95rem;
    padding: 1.15rem 0;
  }

  .blog-grid {
    grid-template-columns: 1fr;
  }
  .blog-card-img { height: 160px; }
}

/* Very small phones */
@media (max-width: 360px) {
  .hero h1 { font-size: 1.65rem; }
  .hero-actions .btn { font-size: 0.88rem; }
  .section-title { font-size: 1.4rem; }
  .work-grid { gap: 0.4rem; }
}

/* Landscape phones */
@media (max-height: 500px) and (orientation: landscape) {
  .hero {
    min-height: auto;
    padding: 5rem 0 2.5rem;
  }
  .hero-content {
    padding: 4rem 1rem 2rem;
  }
  .hero h1 {
    font-size: 1.75rem;
    margin-bottom: 0.6rem;
  }
  .hero-sub {
    margin-bottom: 1rem;
    font-size: 0.9rem;
  }
  .hero-facts { display: none; }
}

/* Touch-friendly targets */
@media (hover: none) and (pointer: coarse) {
  .nav-link,
  .btn,
  .service-card,
  .stage-card,
  .why-card,
  .product-card,
  .client-logo,
  .work-item,
  details.faq-native summary {
    -webkit-tap-highlight-color: transparent;
  }
  .btn {
    min-height: 48px;
  }
  .nav-mobile a {
    min-height: 48px;
    display: flex;
    align-items: center;
  }
  /* Reduce motion intensity on touch devices for performance */
  .service-card:hover .service-icon {
    animation: none;
  }
  .btn-primary {
    animation: none;
  }
}

/* High DPI / retina images */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .logo-img,
  .work-item img,
  .client-logo img {
    image-rendering: -webkit-optimize-contrast;
  }
}

/* Safe area for notched phones */
@supports (padding: max(0px)) {
  .site-header {
    padding-left: max(0px, env(safe-area-inset-left));
    padding-right: max(0px, env(safe-area-inset-right));
  }
  .wa-float {
    bottom: max(1.15rem, env(safe-area-inset-bottom));
    right: max(1.15rem, env(safe-area-inset-right));
  }
  .container {
    padding-left: max(1rem, env(safe-area-inset-left));
    padding-right: max(1rem, env(safe-area-inset-right));
  }
}

/* ============================================================
   SEAMLESS PAGES + PAGE HERO (all inner pages)
   ============================================================ */

/* Browser native view transitions — soft crossfade between pages */
@view-transition {
  navigation: auto;
}
::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: 0.35s;
  animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
}

/* Unified body — no jarring bg jumps */
html {
  background: #0c0b0d; /* matches hero dark so top never flashes white */
}
body {
  background: var(--bg);
  /* soft page enter */
  animation: pageEnter 0.45s var(--ease) both;
}
@keyframes pageEnter {
  from { opacity: 0.72; }
  to   { opacity: 1; }
}

/* Inner page hero — same dark language as home hero */
.page-hero {
  position: relative;
  min-height: 42vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 7.5rem 1.5rem 3.5rem;
  color: #faf9f7;
  overflow: hidden;
  background: #0c0b0d;
}
.page-hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(200, 16, 46, 0.28), transparent 55%),
    radial-gradient(ellipse 40% 40% at 90% 80%, rgba(200, 16, 46, 0.1), transparent 50%),
    linear-gradient(165deg, #0c0b0d 0%, #16141a 55%, #0c0b0d 100%);
  z-index: 0;
}
.page-hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  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: 64px 64px;
  mask-image: radial-gradient(ellipse at center, black 25%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 25%, transparent 75%);
  opacity: 0.7;
}
.page-hero .container {
  position: relative;
  z-index: 1;
  max-width: 720px;
}
.page-hero h1 {
  font-family: var(--display);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  color: #fff;
  margin-bottom: 0.75rem;
  animation: fadeSlideUp 0.7s var(--ease) both;
}
.page-hero p {
  color: rgba(255,255,255,0.65);
  font-size: 1.05rem;
  max-width: 480px;
  margin: 0 auto;
  line-height: 1.65;
  animation: fadeSlideUp 0.7s var(--ease) 0.1s both;
}

/* Soft blend from dark hero into light body */
.page-hero + .section {
  position: relative;
}
.page-hero + .section::before {
  display: none;
}

/* section-alt alias for older pages */
.section-alt {
  background: var(--bg-2);
}

/* ============================================================
   LIVE ICON ANIMATIONS (fire, water, pump, alarm…)
   ============================================================ */

.service-icon .ico {
  width: 24px;
  height: 24px;
  overflow: visible;
}

/* --- Sprinkler: water spray + falling drops --- */
@keyframes sprayPulse {
  0%, 100% { opacity: 0.35; stroke-dashoffset: 8; }
  50% { opacity: 1; stroke-dashoffset: 0; }
}
@keyframes dropFall {
  0%   { opacity: 0; transform: translateY(-4px); }
  30%  { opacity: 1; }
  100% { opacity: 0; transform: translateY(6px); }
}
.ico-sprinkler .ico-spray {
  stroke-dasharray: 20;
  animation: sprayPulse 1.6s ease-in-out infinite;
}
.ico-sprinkler .ico-spray-2 {
  animation-delay: 0.35s;
}
.ico-sprinkler .ico-drop {
  animation: dropFall 1.4s ease-in infinite;
}
.ico-sprinkler .ico-drop-1 { animation-delay: 0s; }
.ico-sprinkler .ico-drop-2 { animation-delay: 0.35s; }
.ico-sprinkler .ico-drop-3 { animation-delay: 0.7s; }

/* --- Extinguisher / fire flame flicker --- */
@keyframes flameFlicker {
  0%, 100% { transform: scaleY(1) scaleX(1); opacity: 0.9; }
  25% { transform: scaleY(1.15) scaleX(0.9); opacity: 1; }
  50% { transform: scaleY(0.9) scaleX(1.1); opacity: 0.75; }
  75% { transform: scaleY(1.1) scaleX(0.95); opacity: 1; }
}
.ico-ext .ico-flame {
  transform-origin: center bottom;
  fill: currentColor;
  stroke: none;
  animation: flameFlicker 0.7s ease-in-out infinite;
}

/* --- Hydrant: water drip --- */
@keyframes drip {
  0%   { opacity: 0; transform: translateY(0); }
  40%  { opacity: 1; }
  100% { opacity: 0; transform: translateY(5px); }
}
.ico-hydrant .ico-drip {
  animation: drip 1.5s ease-in infinite;
}

/* --- Alarm: ring + sound waves --- */
@keyframes bellRing {
  0%, 100% { transform: rotate(0deg); }
  15% { transform: rotate(10deg); }
  30% { transform: rotate(-8deg); }
  45% { transform: rotate(6deg); }
  60% { transform: rotate(-3deg); }
  75% { transform: rotate(1deg); }
}
@keyframes waveOut {
  0%   { opacity: 0; }
  40%  { opacity: 0.8; }
  100% { opacity: 0; }
}
.ico-alarm .ico-bell {
  transform-origin: 12px 8px;
  animation: bellRing 2.2s ease-in-out infinite;
}
.ico-alarm .ico-wave {
  animation: waveOut 2.2s ease-in-out infinite;
}
.ico-alarm .ico-wave-2 {
  animation-delay: 0.25s;
}

/* --- Pump: rotating spokes --- */
@keyframes pumpSpin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
.ico-pump .ico-spoke {
  transform-origin: 12px 12px;
  animation: pumpSpin 4s linear infinite;
}
.ico-pump .ico-core {
  animation: softPulse 2s ease-in-out infinite;
}

/* --- Audit: check draw --- */
@keyframes checkDraw {
  0%   { stroke-dashoffset: 20; opacity: 0.3; }
  50%  { stroke-dashoffset: 0; opacity: 1; }
  100% { stroke-dashoffset: 0; opacity: 0.6; }
}
.ico-audit .ico-check {
  stroke-dasharray: 20;
  animation: checkDraw 2s ease-in-out infinite;
}

/* --- AMC: checklist pulse --- */
@keyframes linePulse {
  0%, 100% { opacity: 0.45; }
  50% { opacity: 1; }
}
.ico-amc .ico-check {
  animation: linePulse 1.8s ease-in-out infinite;
}

/* --- Training: line reveal --- */
.ico-train .ico-lines {
  stroke-dasharray: 12;
  animation: checkDraw 2.4s ease-in-out infinite;
}

/* Hover intensifies live icons */
.service-card:hover .ico-sprinkler .ico-spray,
.service-card:hover .ico-sprinkler .ico-drop {
  animation-duration: 0.8s;
}
.service-card:hover .ico-ext .ico-flame {
  animation-duration: 0.4s;
}
.service-card:hover .ico-pump .ico-spoke {
  animation-duration: 1.5s;
}
.service-card:hover .ico-alarm .ico-bell {
  animation-duration: 1s;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .ico-sprinkler .ico-spray,
  .ico-sprinkler .ico-drop,
  .ico-ext .ico-flame,
  .ico-hydrant .ico-drip,
  .ico-alarm .ico-bell,
  .ico-alarm .ico-wave,
  .ico-pump .ico-spoke,
  .ico-pump .ico-core,
  .ico-audit .ico-check,
  .ico-amc .ico-check,
  .ico-train .ico-lines {
    animation: none !important;
  }
  body { animation: none; }
}

/* Mobile page-hero */
@media (max-width: 768px) {
  .page-hero {
    min-height: 34vh;
    padding: 6rem 1.15rem 2.5rem;
  }
  .page-hero h1 {
    font-size: 1.75rem;
  }
  .page-hero p {
    font-size: 0.95rem;
  }
}
@media (max-width: 480px) {
  .page-hero {
    min-height: 30vh;
    padding: 5.5rem 1rem 2rem;
  }
  .page-hero h1 {
    font-size: 1.55rem;
  }
}

/* ============================================================
   FULL HERO ON ALL PAGES (home + inner)
   Matches Next.js cinematic template — CSS only
   ============================================================ */

.hero--page {
  min-height: 92svh; /* nearly full like home — no short white-bottom look */
}
.hero--page .hero-content {
  padding: 7.5rem 1.5rem 3.5rem;
  max-width: 760px;
}
.hero--page h1 {
  font-size: clamp(2.2rem, 5.5vw, 3.4rem);
}

/* Stronger cinematic media treatment (from Next Hero.tsx) */
.hero-video,
.hero-photo {
  opacity: 0.55;
  animation: heroMediaZoom 28s ease-in-out infinite alternate;
}
@keyframes heroMediaZoom {
  from { transform: scale(1); }
  to   { transform: scale(1.08); }
}

.hero-overlay {
  background:
    linear-gradient(180deg, rgba(12,11,13,0.35) 0%, rgba(12,11,13,0.55) 40%, rgba(12,11,13,0.92) 100%),
    linear-gradient(90deg, rgba(12,11,13,0.65) 0%, transparent 45%, rgba(12,11,13,0.45) 100%);
}

/* Bottom FIRE glow — looks like fire burning at base (no white) */
.hero--page::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 28%;
  background:
    linear-gradient(180deg,
      transparent 0%,
      rgba(80, 20, 5, 0.15) 35%,
      rgba(180, 40, 10, 0.35) 70%,
      rgba(40, 10, 5, 0.75) 100%);
  z-index: 2;
  pointer-events: none;
}

/* Home hero — bottom fire glow (embers rising from fire) */
.hero:not(.hero--page)::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 26%;
  background:
    linear-gradient(180deg,
      transparent 0%,
      rgba(80, 20, 5, 0.12) 30%,
      rgba(200, 45, 10, 0.32) 65%,
      rgba(30, 8, 4, 0.7) 100%);
  z-index: 2;
  pointer-events: none;
}

/* Glow orb visibility boost */
.hero-orb {
  display: block;
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
  z-index: 1;
  animation: floatOrb 14s ease-in-out infinite;
}
.hero-orb-1 {
  width: 280px; height: 280px;
  background: rgba(200, 16, 46, 0.22);
  top: 14%; left: -3%;
}
.hero-orb-2 {
  width: 200px; height: 200px;
  background: rgba(255, 120, 80, 0.12);
  bottom: 14%; right: -2%;
  animation-delay: -5s;
}

/* Hide old thin page-hero if any leftover markup */
.page-hero { display: none !important; }

@media (max-width: 768px) {
  .hero--page { min-height: 85svh; }
  .hero--page .hero-content { padding: 6rem 1.15rem 2.5rem; }
}
@media (max-width: 480px) {
  .hero--page { min-height: 80svh; }
  .hero--page h1 { font-size: 1.75rem; }
}

/* ============================================================
   LIGHTER HERO SHADING + FIRE PARTICLES (from bottom)
   ============================================================ */

/* Reduce heavy dark overlay — keep text readable, show more photo */
.hero-overlay {
  background:
    linear-gradient(180deg, rgba(12,11,13,0.15) 0%, rgba(12,11,13,0.28) 45%, rgba(12,11,13,0.55) 100%),
    linear-gradient(90deg, rgba(12,11,13,0.25) 0%, transparent 40%, rgba(12,11,13,0.2) 100%) !important;
}

.hero-video,
.hero-photo {
  opacity: 0.78 !important; /* brighter media */
}

/* Force fire-glow bottom on all heroes — never white/cream wipe */
.hero::after,
.hero--page::after {
  height: 28% !important;
  background:
    linear-gradient(180deg,
      transparent 0%,
      rgba(90, 22, 6, 0.18) 30%,
      rgba(190, 42, 8, 0.38) 65%,
      rgba(25, 6, 3, 0.82) 100%) !important;
}

/* ---- Fire particles rising from bottom ---- */
.hero-particles {
  display: none; /* replaced by global canvas particles */
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  overflow: hidden;
}

.hero-particles span {
  position: absolute;
  bottom: -8%;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: radial-gradient(circle, #ffb347 0%, #ff4d00 45%, transparent 70%);
  box-shadow:
    0 0 8px 2px rgba(255, 100, 20, 0.75),
    0 0 18px 4px rgba(255, 60, 0, 0.35);
  opacity: 0;
  animation: fireRise 4.5s ease-in infinite;
}

/* ember variation sizes */
.hero-particles span:nth-child(odd) {
  width: 4px;
  height: 4px;
  background: radial-gradient(circle, #ffe08a 0%, #ff6a00 50%, transparent 70%);
}
.hero-particles span:nth-child(3n) {
  width: 8px;
  height: 8px;
  background: radial-gradient(circle, #ff7a33 0%, #dc2626 55%, transparent 70%);
}

@keyframes fireRise {
  0% {
    opacity: 0;
    transform: translateY(0) translateX(0) scale(0.6);
  }
  12% {
    opacity: 0.95;
  }
  50% {
    opacity: 0.75;
    transform: translateY(-45vh) translateX(12px) scale(1);
  }
  80% {
    opacity: 0.35;
  }
  100% {
    opacity: 0;
    transform: translateY(-85vh) translateX(-18px) scale(0.3);
  }
}

/* positions + staggered delays */
.hero-particles span:nth-child(1)  { left: 6%;  animation-delay: 0s;    animation-duration: 4.2s; }
.hero-particles span:nth-child(2)  { left: 14%; animation-delay: 0.7s;  animation-duration: 5.1s; }
.hero-particles span:nth-child(3)  { left: 22%; animation-delay: 1.4s;  animation-duration: 4.6s; }
.hero-particles span:nth-child(4)  { left: 31%; animation-delay: 0.3s;  animation-duration: 5.4s; }
.hero-particles span:nth-child(5)  { left: 40%; animation-delay: 1.9s;  animation-duration: 4.3s; }
.hero-particles span:nth-child(6)  { left: 48%; animation-delay: 0.9s;  animation-duration: 5.0s; }
.hero-particles span:nth-child(7)  { left: 56%; animation-delay: 1.6s;  animation-duration: 4.8s; }
.hero-particles span:nth-child(8)  { left: 64%; animation-delay: 0.4s;  animation-duration: 5.3s; }
.hero-particles span:nth-child(9)  { left: 72%; animation-delay: 2.1s;  animation-duration: 4.4s; }
.hero-particles span:nth-child(10) { left: 80%; animation-delay: 1.1s;  animation-duration: 5.2s; }
.hero-particles span:nth-child(11) { left: 88%; animation-delay: 0.6s;  animation-duration: 4.7s; }
.hero-particles span:nth-child(12) { left: 94%; animation-delay: 1.8s;  animation-duration: 5.5s; }
.hero-particles span:nth-child(13) { left: 18%; animation-delay: 2.4s;  animation-duration: 4.9s; }
.hero-particles span:nth-child(14) { left: 52%; animation-delay: 2.8s;  animation-duration: 4.1s; }
.hero-particles span:nth-child(15) { left: 76%; animation-delay: 3.1s;  animation-duration: 5.6s; }
.hero-particles span:nth-child(16) { left: 35%; animation-delay: 3.4s;  animation-duration: 4.5s; }

/* subtle horizontal drift alternate */
.hero-particles span:nth-child(even) {
  animation-name: fireRiseAlt;
}
@keyframes fireRiseAlt {
  0% {
    opacity: 0;
    transform: translateY(0) translateX(0) scale(0.5);
  }
  15% {
    opacity: 0.9;
  }
  55% {
    opacity: 0.7;
    transform: translateY(-50vh) translateX(-14px) scale(1.05);
  }
  100% {
    opacity: 0;
    transform: translateY(-90vh) translateX(20px) scale(0.25);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-particles span {
    animation: none !important;
    opacity: 0 !important;
  }
}

/* Mobile: fewer visual particles via size, keep performance */
@media (max-width: 768px) {
  .hero-particles span:nth-child(n+11) {
    display: none;
  }
  .hero-overlay {
    background:
      linear-gradient(180deg, rgba(12,11,13,0.2) 0%, rgba(12,11,13,0.35) 50%, rgba(12,11,13,0.6) 100%),
      linear-gradient(90deg, rgba(12,11,13,0.2) 0%, transparent 50%, rgba(12,11,13,0.15) 100%) !important;
  }
}

/* ---- Global fire particles canvas (from main.js) ---- */
#fire-particles {
  position: fixed !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  pointer-events: none !important;
  z-index: 1 !important;
}

/* Keep header, nav, floating buttons, and main content above particles */
.site-header,
.nav-mobile,
.nav-overlay,
.wa-float,
.hero-content,
main,
.section,
.site-footer {
  position: relative;
  z-index: 2;
}
.site-header { z-index: 100; }
.nav-mobile { z-index: 99; }
.nav-overlay { z-index: 98; }
.wa-float { z-index: 90; }

/* ============================================================

/* ============================================================
   CLIENTS dual marquee — plain logos, no boxes, seamless
   ============================================================ */
.clients-section {
  padding: 3.25rem 0 3.75rem;
  overflow: hidden;
  background: var(--bg, #ebe6df);
}
.clients-marquee {
  position: relative;
  width: 100%;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent 0%, #000 5%, #000 95%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 5%, #000 95%, transparent 100%);
}
.clients-marquee-rev { margin-top: 1.35rem; }
.clients-track {
  display: flex;
  align-items: center;
  gap: 3.5rem;
  width: max-content;
  padding: 0.5rem 0;
  will-change: transform;
}
/* 4 copies → -25% seamless; linear infinite never stops */
.clients-track-fwd {
  animation: marquee-fwd 28s linear infinite;
}
.clients-track-rev {
  animation: marquee-rev 32s linear infinite;
}
@keyframes marquee-fwd {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-25%, 0, 0); }
}
@keyframes marquee-rev {
  from { transform: translate3d(-25%, 0, 0); }
  to { transform: translate3d(0, 0, 0); }
}
/* Pause only on hover of that strip — keep rolling otherwise */
.clients-marquee:hover .clients-track {
  animation-play-state: paused;
}
/* NO box / border / background — plain logo */
.client-logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 72px;
  padding: 0;
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}
.client-logo:hover {
  transform: none;
  border: none !important;
  box-shadow: none !important;
}
.client-logo img {
  max-height: 64px;
  max-width: 180px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  filter: none;
}
@media (max-width: 767px) {
  .client-logo { height: 56px; }
  .client-logo img { max-height: 48px; max-width: 140px; }
  .clients-track { gap: 2.25rem; }
  .clients-track-fwd { animation-duration: 22s; }
  .clients-track-rev { animation-duration: 26s; }
  .clients-marquee-rev { margin-top: 1rem; }
}

/* Header scroll */
.site-header {
  transition: transform 0.35s cubic-bezier(0.22,1,0.36,1), background 0.3s, box-shadow 0.3s;
}
.site-header.header-hidden { transform: translateY(-100%); }
.site-header.header-scrolled {
  background: rgba(250, 249, 247, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 24px rgba(0,0,0,0.06);
}

/* ============================================================
   ROAD SCENE
   ============================================================ */
body.has-road-scene { padding-bottom: 5.5rem; }
@media (min-width: 768px) {
  body.has-road-scene { padding-bottom: 6.25rem; }
}

/* .road-bar-simple removed — was showing black line on non-home pages */

.road-scene {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 50;
  height: 5.25rem;
  pointer-events: none;
  overflow: hidden;
}
@media (min-width: 768px) {
  .road-scene { height: 6rem; }
}

.rs-skyline {
  position: absolute;
  left: 0; right: 0;
  bottom: 2.5rem;
  height: 3.5rem;
  overflow: hidden;
}
@media (min-width: 768px) {
  .rs-skyline { bottom: 2.85rem; height: 4rem; }
}

.rs-buildings {
  position: absolute;
  bottom: 0; left: 0;
  display: flex;
  align-items: flex-end;
  width: 130%;
  will-change: transform;
}
.rs-bldg {
  flex-shrink: 0;
  background: #1a1a1a;
  border-radius: 1px 1px 0 0;
}

/* Target building (right) — richer burning building */
.rs-target {
  position: absolute;
  bottom: 0;
  right: 3%;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 2;
}
@media (min-width: 768px) {
  .rs-target { right: 5%; }
}
.rs-bldg-target {
  position: relative;
  z-index: 2;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.45));
}
.rs-bldg-roof {
  width: 58px;
  height: 11px;
  background: linear-gradient(180deg, #dc2626, #991b1b);
  border-radius: 2px 2px 0 0;
  margin: 0 auto;
  box-shadow: 0 -1px 0 rgba(255,200,100,0.15);
}
.rs-bldg-body {
  width: 50px;
  height: 42px;
  background: linear-gradient(180deg, #2a1810 0%, #1a100c 100%);
  border: 1px solid #4a2c1c;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px;
  padding: 7px 8px;
  position: relative;
}
.rs-bldg-body span {
  display: block;
  width: 100%;
  height: 11px;
  background: #2a2218;
  border-radius: 1px;
  transition: background 0.4s, box-shadow 0.4s;
}
/* Windows glow when on fire */
.rs-fire.is-on ~ .rs-bldg-target .rs-bldg-body span,
.rs-target:has(.rs-fire.is-on) .rs-bldg-body span {
  background: rgba(251, 146, 60, 0.75);
  box-shadow: 0 0 8px 2px rgba(249, 115, 22, 0.7);
}

/* Fire on target — bigger, more dramatic */
.rs-fire {
  position: absolute;
  bottom: calc(100% - 4px);
  left: 50%;
  transform: translateX(-50%);
  width: 72px;
  height: 64px;
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
  --fi: 0;
  z-index: 3;
}
.rs-fire.is-on { opacity: 1; }

.rs-flames {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 48px;
}
.rs-flame {
  position: absolute;
  bottom: 0;
  border-radius: 50% 50% 35% 35%;
  background: linear-gradient(to top, #7f1d1d 0%, #dc2626 22%, #ea580c 48%, #fbbf24 75%, #fef9c3 100%);
  animation: rs-flame 0.38s ease-in-out infinite alternate;
  opacity: var(--fi, 1);
  filter: blur(0.4px);
  box-shadow: 0 0 12px 2px rgba(234, 88, 12, 0.65);
}
@keyframes rs-flame {
  from { transform: scaleY(1) scaleX(1) translateY(0); }
  to { transform: scaleY(1.28) scaleX(0.88) translateY(-2px); }
}
.rs-fire-glow {
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 50px;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(234,88,12, calc(0.55 * var(--fi,1))) 0%, rgba(220,38,38, calc(0.25 * var(--fi,1))) 45%, transparent 70%);
  filter: blur(8px);
  pointer-events: none;
}
.rs-smoke {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  width: 70px;
  height: 48px;
}
.rs-puff {
  position: absolute;
  bottom: 0;
  border-radius: 999px;
  background: linear-gradient(to top, rgba(60,60,70,0.55), rgba(100,100,110,0.2), transparent);
  filter: blur(3.5px);
  animation: rs-smoke 2.4s ease-in-out infinite;
  opacity: calc(var(--fi, 1) * 0.65);
}
@keyframes rs-smoke {
  0%, 100% { transform: translateY(0) scale(1); opacity: calc(var(--fi, 1) * 0.4); }
  50% { transform: translateY(-14px) scale(1.25); opacity: calc(var(--fi, 1) * 0.7); }
}
/* Roof edge fire lick */
.rs-roof-lick {
  position: absolute;
  top: -3px;
  left: 4px;
  right: 4px;
  height: 4px;
  background: linear-gradient(90deg, transparent, #f97316, #fbbf24, #f97316, transparent);
  opacity: 0;
  filter: blur(1px);
  transition: opacity 0.3s;
  z-index: 4;
}
.rs-fire.is-on ~ .rs-bldg-target .rs-roof-lick,
.rs-target:has(.rs-fire.is-on) .rs-roof-lick {
  opacity: calc(var(--fi, 1) * 0.9);
}

/* Road surface */
.rs-road {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2.5rem;
  background: linear-gradient(to top, #080808 0%, #141414 70%, #1a1a1a 100%);
  border-top: 1px solid rgba(255,255,255,0.08);
}
@media (min-width: 768px) {
  .rs-road { height: 2.85rem; }
}
.rs-dashes {
  position: absolute;
  top: 52%;
  left: 0;
  width: 200%;
  height: 2px;
  transform: translateY(-50%);
  opacity: 0.4;
  background: repeating-linear-gradient(90deg, rgba(255,255,255,0.35) 0 22px, transparent 22px 40px);
  will-change: transform;
}

.rs-truck {
  position: absolute;
  top: 48%;
  left: 5%;
  transform: translate(-50%, -55%);
  will-change: left;
}
.rs-truck-svg {
  display: block;
  transform: scaleX(-1) scale(1.35);
  filter: drop-shadow(0 2px 3px rgba(0,0,0,0.5));
}
.rs-siren {
  position: absolute;
  top: -3px;
  left: 12px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ef4444;
  box-shadow: 0 0 8px 2px rgba(239,68,68,0.8);
  animation: rs-pulse 0.9s ease-in-out infinite;
  transition: opacity 0.25s;
}
@keyframes rs-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

.rs-fireman {
  position: absolute;
  top: 36%;
  left: 72%;
  transform: translate(-18%, -75%);
  opacity: 0;
  will-change: left, opacity;
  transition: none;
  z-index: 4;
  filter: drop-shadow(0 2px 5px rgba(0,0,0,0.5));
}
.rs-fireman-svg {
  display: block;
  width: 130px;
  height: 56px;
  overflow: visible;
}
.rs-spray {
  transition: opacity 0.15s linear;
  pointer-events: none;
}

/* Mobile road — compact but visible */
@media (max-width: 767px) {
  .road-scene { height: 4.5rem; }
  body.has-road-scene { padding-bottom: 4.75rem; }
  .rs-skyline { bottom: 2.1rem; height: 2.6rem; }
  .rs-road { height: 2.1rem; }
  .rs-truck-svg { transform: scaleX(-1) scale(1.05); }
  .rs-fireman-svg { width: 105px; height: 45px; }
  .rs-bldg-roof { width: 40px; height: 8px; }
  .rs-bldg-body { width: 34px; height: 28px; padding: 5px 5px; gap: 3px; }
  .rs-bldg-body span { height: 8px; }
  .rs-fire { width: 52px; height: 44px; }
  .rs-flames { height: 34px; }
  .rs-target { right: 2%; }
  .wa-float { bottom: 5.25rem !important; right: 0.85rem !important; width: 48px; height: 48px; }
}

.rs-embers {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* WhatsApp — fixed, never jumps with road */
.wa-float {
  position: fixed !important;
  bottom: 6.5rem !important;
  right: 1.25rem !important;
  left: auto !important;
  z-index: 60 !important;
  transform: none !important;
}
.wa-float:hover {
  transform: scale(1.06) !important;
}
@media (min-width: 768px) {
  .wa-float { bottom: 7.25rem !important; }
}

/* ============================================================
   MISSION pin section
   ============================================================ */
.mission-section {
  position: relative;
  background: #0c0b0a;
  color: #faf9f7;
  overflow: hidden;
}
.mission-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 55% 40% at 50% 0%, rgba(200,16,46,0.14), transparent 70%), #0c0b0a;
  pointer-events: none;
}
.mission-header-wrap {
  position: relative;
  z-index: 2;
  padding: 3.5rem 1.5rem 0.75rem;
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}
.mission-header .section-label { color: rgba(255,255,255,0.5); }
.mission-header .section-label::before { background: var(--red); }
.mission-header .section-title {
  color: #fff;
  font-size: clamp(1.85rem, 4.5vw, 3rem);
}
.mission-header .section-title em {
  font-style: normal;
  background: linear-gradient(90deg, #e01530, #ff6b35, #ffb347);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.mission-header .section-desc { color: rgba(255,255,255,0.55); margin: 0 auto; }

.mission-stage {
  display: none;
  position: relative;
  z-index: 2;
  height: 56vh;
  min-height: 400px;
  max-height: 580px;
  overflow: hidden;
}
@media (min-width: 768px) {
  .mission-stage { display: block; }
  .mission-mobile { display: none !important; }
}

.mission-progress {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 5;
  padding: 0.65rem 1.5rem 0;
  max-width: 880px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.mission-counter {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.9rem;
  font-weight: 600;
  color: #ff6b35;
  flex-shrink: 0;
}
.mission-total { color: rgba(255,255,255,0.4); }
.mission-line {
  flex: 1;
  height: 2px;
  background: rgba(255,255,255,0.12);
  border-radius: 999px;
  overflow: hidden;
  position: relative;
}
.mission-line-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0%;
  background: linear-gradient(90deg, #c8102e, #ff6b35);
  border-radius: 999px;
}

.mission-track {
  display: flex;
  height: 100%;
  align-items: center;
  will-change: transform;
}
.mission-panel {
  flex-shrink: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 0 12vw;
  opacity: 0.25;
  transition: opacity 0.3s ease;
}
@media (min-width: 1024px) {
  .mission-panel { padding: 0 18vw; }
}
.mission-panel.is-active { opacity: 1; }
.mission-num {
  font-size: clamp(3.5rem, 8vw, 5.5rem);
  font-weight: 800;
  line-height: 1;
  margin-bottom: 0.5rem;
  color: rgba(255,255,255,0.16);
  letter-spacing: -0.03em;
  user-select: none;
  text-align: center;
  width: 100%;
}
.mission-panel.is-active .mission-num { color: rgba(255,255,255,0.95); }
.mission-title {
  font-size: clamp(1.55rem, 3.5vw, 2.25rem);
  font-weight: 700;
  margin-bottom: 0.65rem;
  color: #fff;
  text-align: center;
  width: 100%;
}
.mission-desc {
  font-size: 1.05rem;
  max-width: 28rem;
  line-height: 1.65;
  color: rgba(255,255,255,0.6);
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.mission-mobile {
  position: relative;
  z-index: 2;
  padding: 1.25rem 1.5rem 3rem;
  max-width: 480px;
  margin: 0 auto;
}
.mission-mobile-line {
  position: absolute;
  left: calc(1.5rem + 15px);
  top: 1.5rem;
  bottom: 3rem;
  width: 1px;
  background: rgba(255,255,255,0.12);
}
.mission-mobile-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 1rem;
}
.mission-mobile-dot {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  border-radius: 50%;
  background: #0c0b0a;
  border: 2px solid rgba(224, 21, 48, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}
.mission-mobile-dot span {
  font-size: 9px;
  font-weight: 700;
  color: #fda4af;
}
.mission-mobile-card {
  flex: 1;
  padding: 0.9rem 1rem;
  border-radius: 4px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
}
.mission-mobile-card h3 { font-size: 1.05rem; color: #fff; margin-bottom: 0.3rem; }
.mission-mobile-card p { font-size: 0.875rem; color: rgba(255,255,255,0.55); line-height: 1.5; }

.mission-spacer { display: none !important; }

.service-card { position: relative; overflow: hidden; }
.service-card::after {
  content: "";
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--red), transparent);
  opacity: 0;
  transition: opacity 0.35s;
}
.service-card:hover::after { opacity: 0.7; }

@media (prefers-reduced-motion: reduce) {
  .rs-flame, .rs-puff, .rs-siren { animation: none !important; }
  .clients-track-fwd, .clients-track-rev { animation: none; }
  .mission-panel { opacity: 1; }
}

/* Fire extinguished state */
.rs-fire.is-out .rs-flame,
.rs-fire.is-out .rs-puff,
.rs-fire.is-out .rs-fire-glow {
  opacity: 0.05 !important;
  animation: none !important;
}
.rs-target:has(.rs-fire.is-out) .rs-bldg-body span {
  background: #2a2218 !important;
  box-shadow: none !important;
}
.rs-target:has(.rs-fire.is-out) .rs-roof-lick {
  opacity: 0 !important;
}


/* Force plain logos (override any older boxed styles) */
.clients-section .client-logo {
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
  height: auto !important;
  min-height: 56px;
}
.clients-section .client-logo img {
  max-height: 64px !important;
  max-width: 180px !important;
  filter: none !important;
  opacity: 0.92;
}
.clients-section .client-logo:hover img { opacity: 1; }

/* Realistic skyline windows */
.rs-bldg {
  position: relative;
  border-radius: 1px 1px 0 0;
  overflow: hidden;
  box-shadow: 1px 0 0 rgba(0,0,0,0.25);
}
.rs-bldg-wins {
  position: absolute;
  inset: 3px 2px 4px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  justify-content: space-evenly;
}
.rs-win-row {
  display: flex;
  gap: 2px;
  justify-content: center;
}
.rs-win-row i {
  display: block;
  width: 3px;
  height: 3px;
  background: rgba(40, 38, 35, 0.9);
  border-radius: 0.5px;
}
.rs-win-row i.lit {
  background: rgba(255, 200, 120, 0.55);
  box-shadow: 0 0 2px rgba(255, 180, 80, 0.35);
}
@media (max-width: 767px) {
  .rs-win-row i { width: 2px; height: 2px; }
}
