/* ==========================================================================
   Ace Infotech — Landing Page Styles
   Structure:
     1. Design tokens
     2. Base & accessibility
     3. Buttons & shared components
     4. Top bar & navigation
     5. Hero & trust strip
     6. Content sections (about, services, why, AMC, industries, security,
        process, local, testimonials, FAQ, contact)
     7. Final CTA & footer
     8. Floating controls
     9. Reveal animations & reduced motion
   ========================================================================== */

/* 1. DESIGN TOKENS ------------------------------------------------------- */
:root {
  /* Palette */
  --c-navy: #10243A;
  --c-navy-2: #16304C;
  --c-blue: #1769AA;
  --c-blue-dark: #12578E;
  --c-cyan: #24B8D8;
  --c-cyan-dark: #0E7F99;   /* AA-compliant cyan for text on light backgrounds */
  --c-bg: #F5F8FC;
  --c-white: #FFFFFF;
  --c-text: #1D2939;
  --c-muted: #667085;
  --c-muted-dark: #526075;  /* stronger muted for small text */
  --c-border: #E4EAF1;
  --c-success: #168568;
  --c-danger: #B42318;

  /* Typography */
  --font: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --fs-h1: clamp(2.1rem, 1.4rem + 3vw, 3.6rem);
  --fs-h2: clamp(1.7rem, 1.25rem + 1.8vw, 2.55rem);
  --fs-lead: clamp(1.02rem, 0.97rem + 0.25vw, 1.15rem);

  /* Spacing */
  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2rem;
  --space-5: 3rem;
  --section-y: clamp(4rem, 3rem + 4vw, 6.5rem);

  /* Radius */
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;
  --r-pill: 999px;

  /* Shadows */
  --sh-sm: 0 1px 2px rgba(16, 36, 58, 0.06), 0 1px 3px rgba(16, 36, 58, 0.05);
  --sh-md: 0 8px 24px -8px rgba(16, 36, 58, 0.14);
  --sh-lg: 0 24px 48px -16px rgba(16, 36, 58, 0.22);

  /* Motion */
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --t-fast: 0.2s;
  --t-med: 0.35s;

  --header-h: 76px;

  /* Bootstrap overrides */
  --bs-body-font-family: var(--font);
  --bs-body-color: var(--c-text);
  --bs-link-color-rgb: 23, 105, 170;
  --bs-link-hover-color-rgb: 18, 87, 142;
}

/* 2. BASE & ACCESSIBILITY ------------------------------------------------ */
html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 8px);
}

body {
  font-family: var(--font);
  color: var(--c-text);
  background: var(--c-white);
  font-size: 1rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--c-navy);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

p { color: var(--c-muted-dark); }

img { max-width: 100%; height: auto; }

a { text-underline-offset: 3px; }

:focus-visible {
  outline: 3px solid var(--c-cyan);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 2000;
  background: var(--c-navy);
  color: #fff;
  padding: 0.75rem 1.25rem;
  border-radius: var(--r-sm);
  font-weight: 700;
  text-decoration: none;
}
.skip-link:focus { top: 1rem; color: #fff; }

/* 3. BUTTONS & SHARED COMPONENTS ----------------------------------------- */
.btn {
  font-weight: 700;
  border-radius: var(--r-pill);
  padding: 0.7rem 1.5rem;
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: transform var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease),
              background-color var(--t-fast), color var(--t-fast), border-color var(--t-fast);
}
.btn-lg { padding: 0.9rem 1.75rem; font-size: 1.02rem; min-height: 54px; }
.btn .bi-arrow-right { transition: transform var(--t-fast) var(--ease); }
.btn:hover .bi-arrow-right { transform: translateX(3px); }

.btn-brand {
  background: var(--c-blue);
  color: #fff;
  border: 2px solid var(--c-blue);
  box-shadow: 0 8px 20px -10px rgba(23, 105, 170, 0.8);
}
.btn-brand:hover, .btn-brand:focus-visible {
  background: var(--c-blue-dark);
  border-color: var(--c-blue-dark);
  color: #fff;
  transform: translateY(-2px);
}

.btn-outline-brand {
  color: var(--c-navy);
  border: 2px solid var(--c-border);
  background: #fff;
}
.btn-outline-brand:hover, .btn-outline-brand:focus-visible {
  border-color: var(--c-blue);
  color: var(--c-blue);
  transform: translateY(-2px);
}

.btn-accent {
  background: var(--c-cyan);
  color: var(--c-navy);
  border: 2px solid var(--c-cyan);
}
.btn-accent:hover, .btn-accent:focus-visible {
  background: #4FCBE6;
  border-color: #4FCBE6;
  color: var(--c-navy);
  transform: translateY(-2px);
}

.btn-outline-light { border-width: 2px; }
.btn-outline-light:hover { transform: translateY(-2px); color: var(--c-navy); }

.section { padding: var(--section-y) 0; position: relative; }
.section-alt { background: var(--c-bg); }

.section-head {
  max-width: 720px;
  margin: 0 auto var(--space-5);
  text-align: center;
}

.section-label, .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-blue);
  margin-bottom: var(--space-2);
}
.section-label::before, .eyebrow::before {
  content: "";
  width: 24px;
  height: 2px;
  background: var(--c-cyan);
  border-radius: 2px;
}
.section-label-light { color: var(--c-cyan); }

.section-title { font-size: var(--fs-h2); margin-bottom: var(--space-3); }
.section-intro { font-size: var(--fs-lead); margin-bottom: 0; }

.text-gradient {
  background: linear-gradient(90deg, var(--c-blue), var(--c-cyan-dark));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.media-frame {
  position: relative;
  border-radius: var(--r-xl);
  isolation: isolate;
}
.media-frame::before {
  content: "";
  position: absolute;
  inset: 24px -16px -16px 24px;
  border-radius: var(--r-xl);
  background: linear-gradient(135deg, rgba(36, 184, 216, 0.22), rgba(23, 105, 170, 0.12));
  z-index: -1;
}
.media-frame-right::before { inset: 24px 24px -16px -16px; }
.media-frame img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--r-xl);
  box-shadow: var(--sh-lg);
  background: var(--c-navy);
}

.media-badge {
  position: absolute;
  left: -12px;
  bottom: 28px;
  background: #fff;
  border-radius: var(--r-md);
  box-shadow: var(--sh-lg);
  padding: 1rem 1.25rem;
  display: flex;
  flex-direction: column;
  border-left: 4px solid var(--c-cyan);
}
.media-badge-num { font-size: 1.75rem; font-weight: 800; color: var(--c-navy); line-height: 1; }
.media-badge-label { font-size: 0.82rem; color: var(--c-muted-dark); font-weight: 600; margin-top: 0.3rem; }

.small-note { font-size: 0.88rem; font-style: italic; }

/* 4. TOP BAR & NAVIGATION ------------------------------------------------ */
.topbar {
  background: var(--c-navy);
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.84rem;
}
.topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  min-height: 40px;
  flex-wrap: nowrap;
  padding: 0.2rem 0;
}
.topbar-text { color: inherit; display: flex; align-items: center; gap: 0.5rem; white-space: nowrap; min-width: 0; }
.topbar-text .bi { color: var(--c-cyan); }
.topbar-divider { width: 1px; height: 14px; background: rgba(255, 255, 255, 0.25); }
.topbar-contact { display: flex; gap: 1.25rem; flex: none; }
.topbar-link {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 32px;
}
.topbar-link:hover { color: #fff; }
.topbar-link .bi { color: var(--c-cyan); }
@media (max-width: 399.98px) {
  .topbar { font-size: 0.78rem; }
  .topbar-text > .d-md-none, .topbar-text > .topbar-divider { display: none !important; }
}

/* Thin reading-progress indicator along the bottom of the header */
.scroll-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 3px;
  pointer-events: none;
}
.scroll-progress span {
  display: block;
  height: 100%;
  width: 100%;
  transform: scaleX(0);
  transform-origin: left;
  background: linear-gradient(90deg, var(--c-blue), var(--c-cyan));
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1030;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: box-shadow var(--t-med), border-color var(--t-med);
}
/* The frosted background lives on a pseudo-element: a backdrop-filter on the
   header itself would become the containing block for the fixed slide-in
   menu and clip it to the header's height. */
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(255, 255, 255, 0.96);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  backdrop-filter: saturate(160%) blur(12px);
}
.site-header.is-scrolled {
  box-shadow: 0 6px 24px -12px rgba(16, 36, 58, 0.25);
  border-bottom-color: var(--c-border);
}
.site-header .navbar { min-height: var(--header-h); padding: 0.6rem 0; }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--c-navy);
}
/* Official logo (horizontal lockup, 732×240 source → width follows height) */
.brand-logo { display: block; height: 48px; width: auto; }
.brand-logo-sm { height: 36px; }
.brand-logo-footer { height: 58px; }
.navbar-brand { padding: 0; }

.navbar .nav-link {
  font-weight: 600;
  font-size: 0.94rem;
  color: var(--c-text);
  padding: 0.5rem 0.75rem !important;
  position: relative;
  border-radius: var(--r-sm);
}
.navbar .nav-link::after {
  content: "";
  position: absolute;
  left: 0.75rem;
  right: 0.75rem;
  bottom: 2px;
  height: 2px;
  background: var(--c-cyan);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t-fast) var(--ease);
}
.navbar .nav-link:hover { color: var(--c-blue); }
.navbar .nav-link:hover::after,
.navbar .nav-link.active::after { transform: scaleX(1); }
.navbar .nav-link.active { color: var(--c-blue); }

.nav-cta { padding: 0.6rem 1.25rem; font-size: 0.92rem; white-space: nowrap; }

.navbar-toggler {
  border: 1px solid var(--c-border);
  border-radius: var(--r-sm);
  width: 48px;
  height: 48px;
  padding: 0;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.navbar-toggler:focus { box-shadow: none; }
.toggler-bar {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--c-navy);
  border-radius: 2px;
  transition: transform var(--t-fast) var(--ease), opacity var(--t-fast);
}
.navbar-toggler:hover { border-color: var(--c-blue); }

.header-actions { display: flex; align-items: center; gap: 0.6rem; margin-left: auto; }
.header-cta { padding: 0.5rem 1.1rem; min-height: 44px; font-size: 0.9rem; box-shadow: none; }

/* Desktop: offcanvas renders inline (Bootstrap navbar-expand-xl) */
@media (min-width: 1200px) {
  .nav-offcanvas .offcanvas-body { align-items: center; }
  .nav-ico { display: none; }
  .navbar-nav { gap: 0.1rem; }
}
@media (min-width: 1200px) and (max-width: 1399.98px) {
  .navbar .nav-link { padding: 0.5rem 0.5rem !important; font-size: 0.88rem; }
  .navbar .nav-link::after { left: 0.5rem; right: 0.5rem; }
  .nav-cta { padding: 0.55rem 1rem; font-size: 0.86rem; }
  .site-header .brand-logo { height: 42px; }
}

/* Tablet & mobile: slide-in menu panel */
@media (max-width: 1199.98px) {
  .nav-offcanvas {
    --bs-offcanvas-width: min(360px, 88vw);
    --bs-offcanvas-bg: #fff;
    box-shadow: var(--sh-lg);
  }
  .nav-offcanvas .offcanvas-header {
    border-bottom: 1px solid var(--c-border);
    padding: 1.1rem 1.25rem;
  }
  .nav-offcanvas .offcanvas-body {
    display: flex;
    flex-direction: column;
    padding: 1rem 1.25rem calc(1.5rem + env(safe-area-inset-bottom));
  }
  .navbar .nav-link {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.8rem 0.75rem !important;
    min-height: 48px;
    font-size: 1rem;
  }
  .nav-offcanvas .navbar-nav { margin: 0 !important; width: 100%; }
  .navbar .nav-link::after { display: none; }
  .navbar .nav-link.active { background: var(--c-bg); }
  .nav-ico { color: var(--c-blue); font-size: 1.1rem; width: 1.25rem; text-align: center; }
  .nav-cta { width: 100%; margin-top: 1rem; min-height: 50px; }
  .offcanvas-backdrop.show { opacity: 0.45; }
}

/* Products dropdown in the navigation */
.products-menu {
  --bs-dropdown-link-active-bg: var(--c-blue);
  --bs-dropdown-link-hover-bg: var(--c-bg);
  --bs-dropdown-link-hover-color: var(--c-blue);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  box-shadow: var(--sh-lg);
  padding: 0.5rem;
  min-width: 270px;
}
.products-menu .dropdown-item {
  border-radius: var(--r-sm);
  padding: 0.55rem 0.85rem;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--c-text);
  white-space: normal;
}
.products-menu .dropdown-item:focus-visible { outline: 3px solid var(--c-cyan); outline-offset: -3px; }
@media (min-width: 1200px) { .services-menu { min-width: 340px; } }
.dropdown-item-all { color: var(--c-blue) !important; display: flex !important; justify-content: space-between; align-items: center; }
.nav-caret { font-size: 0.7rem; margin-left: 0.3rem; transition: transform var(--t-fast); }
.nav-dropdown.show .nav-caret { transform: rotate(180deg); }
@media (min-width: 1200px) {
  .products-menu { margin-top: 0.6rem !important; }
}
@media (max-width: 1199.98px) {
  .products-menu {
    position: static !important;
    transform: none !important;
    box-shadow: none;
    border: 0;
    border-left: 2px solid var(--c-border);
    border-radius: 0;
    margin: 0.25rem 0 0.5rem 1.6rem !important;
    padding: 0 0 0 0.5rem;
    min-width: 0;
  }
  .products-menu .dropdown-item { min-height: 44px; display: flex; align-items: center; }
  .nav-caret { margin-left: auto; font-size: 0.85rem; color: var(--c-muted-dark); }
}

.nav-contact {
  margin-top: auto;
  padding-top: 1.5rem;
  border-top: 1px solid var(--c-border);
  display: grid;
  gap: 0.5rem;
  font-size: 0.92rem;
}
.nav-contact-label {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-muted-dark);
  margin: 1.5rem 0 0.25rem;
}
.nav-contact a, .nav-contact span {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--c-navy);
  font-weight: 600;
  text-decoration: none;
  min-height: 40px;
}
.nav-contact .bi { color: var(--c-blue); }

/* 5. HERO & TRUST STRIP -------------------------------------------------- */
.hero {
  position: relative;
  padding: clamp(3rem, 2rem + 4vw, 6rem) 0 clamp(3.5rem, 2.5rem + 4vw, 6rem);
  overflow: hidden;
  background: var(--c-bg);
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(800px 400px at 85% 10%, rgba(36, 184, 216, 0.14), transparent 60%),
    radial-gradient(700px 500px at 0% 100%, rgba(23, 105, 170, 0.08), transparent 60%),
    linear-gradient(rgba(16, 36, 58, 0.035) 1px, transparent 1px) 0 0 / 44px 44px,
    linear-gradient(90deg, rgba(16, 36, 58, 0.035) 1px, transparent 1px) 0 0 / 44px 44px;
  pointer-events: none;
}
.hero .container { position: relative; }
.hero-title { font-size: var(--fs-h1); margin-bottom: var(--space-3); letter-spacing: -0.03em; }
.hero-lead { font-size: var(--fs-lead); max-width: 580px; margin-bottom: var(--space-4); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 0.85rem; margin-bottom: var(--space-4); }

.hero-trust {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem 1.5rem;
  margin: 0;
  padding-top: var(--space-3);
  border-top: 1px solid var(--c-border);
  max-width: 560px;
}
.hero-trust li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  font-size: 0.93rem;
  color: var(--c-navy);
}
.hero-trust .bi {
  width: 32px;
  height: 32px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: var(--r-sm);
  background: #fff;
  color: var(--c-blue);
  box-shadow: var(--sh-sm);
}

.hero-media { position: relative; padding: 1.5rem 1.5rem 1.5rem 0; }
.hero-media-deco {
  position: absolute;
  top: 0;
  right: 0;
  width: 70%;
  height: 80%;
  border-radius: var(--r-xl);
  background: linear-gradient(135deg, var(--c-blue), var(--c-cyan));
  opacity: 0.9;
}
.hero-media-deco::after {
  content: "";
  position: absolute;
  left: -36px;
  bottom: -60px;
  width: 120px;
  height: 120px;
  background-image: radial-gradient(var(--c-blue) 2px, transparent 2px);
  background-size: 16px 16px;
  opacity: 0.35;
}
.hero-img {
  position: relative;
  width: 100%;
  aspect-ratio: 11 / 9;
  object-fit: cover;
  border-radius: var(--r-xl);
  box-shadow: var(--sh-lg);
  background: var(--c-navy);
}

.float-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.8rem 1.1rem;
  background: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: var(--r-md);
  box-shadow: var(--sh-lg);
  font-size: 0.86rem;
  line-height: 1.35;
  color: var(--c-muted-dark);
}
.float-card strong { color: var(--c-navy); }
.float-card-top { top: 12%; left: -24px; }
.float-card-bottom { bottom: 10%; right: 0; }
.float-icon {
  width: 40px;
  height: 40px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: rgba(23, 105, 170, 0.1);
  color: var(--c-blue);
  font-size: 1.15rem;
}
.float-icon-green { background: rgba(22, 133, 104, 0.12); color: var(--c-success); }

@media (prefers-reduced-motion: no-preference) {
  .float-card-top { animation: float 6s ease-in-out infinite; }
  .float-card-bottom { animation: float 6s ease-in-out 1.5s infinite; }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@media (max-width: 991.98px) {
  .hero-media { padding: 1rem 1rem 1rem 0; max-width: 620px; margin: 0 auto; }
  .float-card-top { left: 8px; }
}
@media (max-width: 575.98px) {
  .hero-trust { grid-template-columns: 1fr 1fr; gap: 0.75rem; }
  .hero-trust li { font-size: 0.84rem; align-items: flex-start; line-height: 1.35; }
  .hero-ctas .btn { width: 100%; }
  /* Floating cards become a tidy 2-up row under the image to avoid overlap */
  .hero-media {
    padding: 0.75rem 0.75rem 0 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.6rem;
  }
  .hero-img { grid-column: 1 / -1; aspect-ratio: 4 / 3; }
  .hero-media-deco { height: 60%; }
  .float-card {
    position: static;
    animation: none !important;
    padding: 0.65rem 0.7rem;
    gap: 0.5rem;
    font-size: 0.78rem;
    box-shadow: var(--sh-md);
    background: #fff;
    border-color: var(--c-border);
  }
  .float-icon { width: 32px; height: 32px; font-size: 1rem; border-radius: 8px; }
}
@media (max-width: 359.98px) {
  .hero-trust { grid-template-columns: 1fr; }
  .float-card br { display: none; }
}

.trust-strip {
  background: #fff;
  border-top: 1px solid var(--c-border);
  border-bottom: 1px solid var(--c-border);
  padding: 1.35rem 0;
}
.trust-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem 2rem;
}
.trust-list li {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--c-navy);
}
.trust-list .bi { color: var(--c-blue); font-size: 1.2rem; }
@media (min-width: 1200px) {
  .trust-list li + li { padding-left: 2rem; border-left: 1px solid var(--c-border); }
  .trust-list { gap: 1rem 0; }
}
@media (max-width: 1199.98px) {
  .trust-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.9rem 1.5rem; }
}
@media (max-width: 767.98px) {
  .trust-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.85rem 1rem; }
  .trust-list li { font-size: 0.85rem; align-items: flex-start; line-height: 1.35; }
  .trust-list li:last-child { grid-column: 1 / -1; }
}

/* 6. CONTENT SECTIONS ---------------------------------------------------- */

/* About */
.benefit-list { margin: var(--space-4) 0; display: grid; gap: 1.1rem; }
.benefit-list li { display: flex; gap: 1rem; align-items: flex-start; }
.benefit-list p { font-size: 0.94rem; }
.benefit-icon {
  width: 44px;
  height: 44px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(23, 105, 170, 0.08);
  color: var(--c-blue);
  font-size: 1.2rem;
}
@media (max-width: 575.98px) {
  .media-badge { left: 12px; bottom: 12px; padding: 0.75rem 1rem; }
  .media-badge-num { font-size: 1.4rem; }
}

/* Services */
.service-card {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  padding: 2rem 1.75rem;
  box-shadow: var(--sh-sm);
  transition: transform var(--t-med) var(--ease), box-shadow var(--t-med) var(--ease), border-color var(--t-med);
  overflow: hidden;
}
.service-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, var(--c-blue), var(--c-cyan));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t-med) var(--ease);
}
.service-card:hover, .service-card:focus-within {
  transform: translateY(-6px);
  box-shadow: var(--sh-lg);
  border-color: transparent;
}
.service-card:hover::before, .service-card:focus-within::before { transform: scaleX(1); }
.service-icon {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(23, 105, 170, 0.12), rgba(36, 184, 216, 0.14));
  color: var(--c-blue);
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
  transition: background var(--t-med), color var(--t-med);
}
.service-card:hover .service-icon { background: var(--c-blue); color: #fff; }
.service-title { font-size: 1.18rem; margin-bottom: 0.75rem; }
.service-card p { font-size: 0.95rem; }
.service-points {
  display: grid;
  gap: 0.45rem;
  margin: 0 0 1.25rem;
  padding-top: 1rem;
  border-top: 1px dashed var(--c-border);
  flex-grow: 1;
  align-content: start;
}
.service-points li { display: flex; gap: 0.5rem; align-items: flex-start; font-size: 0.9rem; font-weight: 600; color: var(--c-navy); line-height: 1.45; }
.service-points .bi { color: var(--c-success); font-size: 1rem; flex: none; margin-top: 1px; }
.service-tag {
  align-self: flex-start;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-blue);
  background: rgba(23, 105, 170, 0.08);
  border-radius: var(--r-pill);
  padding: 0.2rem 0.65rem;
  margin: -0.35rem 0 0.75rem;
}
.service-card .service-link { margin-top: auto; }
.service-link {
  font-weight: 700;
  color: var(--c-blue);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.5rem;
}
.service-link .bi { transition: transform var(--t-fast) var(--ease); }
.service-card:hover .service-link .bi { transform: translateX(4px); }
.service-link:focus-visible { outline: none; }
.service-link:focus-visible::after { outline: 3px solid var(--c-cyan); outline-offset: -3px; border-radius: var(--r-lg); }

/* Products */
.product-card {
  position: relative;
  height: 100%;
  display: flex;
  gap: 1.1rem;
  align-items: flex-start;
  padding: 1.5rem;
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  transition: transform var(--t-med) var(--ease), box-shadow var(--t-med) var(--ease), border-color var(--t-med);
}
.product-card:hover, .product-card:focus-within {
  transform: translateY(-4px);
  box-shadow: var(--sh-md);
  border-color: rgba(23, 105, 170, 0.35);
}
.product-icon {
  width: 52px;
  height: 52px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(23, 105, 170, 0.1), rgba(36, 184, 216, 0.14));
  color: var(--c-blue);
  font-size: 1.45rem;
  transition: background var(--t-med), color var(--t-med);
}
.product-card:hover .product-icon { background: var(--c-blue); color: #fff; }
.product-body { display: flex; flex-direction: column; min-width: 0; height: 100%; }
.product-title { font-size: 1.05rem; margin-bottom: 0.35rem; }
.product-card p { font-size: 0.9rem; line-height: 1.55; margin-bottom: 0.75rem; flex-grow: 1; }
.product-link {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--c-blue);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.product-link .bi { transition: transform var(--t-fast) var(--ease); }
.product-card:hover .product-link .bi { transform: translateX(4px); }
.product-link:focus-visible { outline: none; }
.product-link:focus-visible::after { outline: 3px solid var(--c-cyan); outline-offset: -3px; border-radius: var(--r-lg); }

/* Highlight when reached from the menu / footer */
.product-card.is-highlighted, .service-card.is-highlighted { animation: productPulse 2.4s var(--ease); }
@keyframes productPulse {
  0% { box-shadow: 0 0 0 0 rgba(36, 184, 216, 0.6); border-color: var(--c-cyan); }
  40% { box-shadow: 0 0 0 8px rgba(36, 184, 216, 0.18); border-color: var(--c-cyan); }
  100% { box-shadow: 0 0 0 0 rgba(36, 184, 216, 0); }
}

.products-note {
  margin-top: var(--space-4);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  flex-wrap: wrap;
  padding: 1.25rem 1.5rem;
  border-radius: var(--r-lg);
  background: var(--c-bg);
  border: 1px solid var(--c-border);
}
.products-note p { font-size: 0.92rem; display: flex; gap: 0.5rem; align-items: flex-start; }
.products-note .bi { color: var(--c-blue); }

@media (max-width: 767.98px) {
  .product-card { flex-direction: column; gap: 0.75rem; padding: 1.15rem; }
  .product-icon { width: 44px; height: 44px; font-size: 1.25rem; border-radius: 12px; }
  .product-title { font-size: 0.98rem; }
  .product-card p { font-size: 0.84rem; }
  .products-note { padding: 1.15rem; }
  .products-note .btn { width: 100%; }
}
.quote-short { display: none; }
@media (max-width: 575.98px) {
  .quote-long { display: none; }
  .quote-short { display: inline; }
  .product-link { white-space: nowrap; }
}
/* The 9th card spans the row below desktop, laid out horizontally */
@media (max-width: 991.98px) {
  .product-col-wide .product-card { flex-direction: row; align-items: center; }
  .product-col-wide .product-card p { flex-grow: 0; }
}
@media (max-width: 359.98px) {
  #products .col-6 { width: 100%; }
  .product-col-wide .product-card { flex-direction: column; align-items: flex-start; }
}

/* Why us */
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--c-border);
  gap: 1px;
}
.why-item { background: #fff; padding: 2.25rem 2rem; transition: background var(--t-med); }
.why-item:hover { background: var(--c-bg); }
.why-icon {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--c-border);
  color: var(--c-blue);
  font-size: 1.3rem;
  margin-bottom: 1.1rem;
  background: #fff;
}
.why-title { font-size: 1.08rem; margin-bottom: 0.5rem; }
.why-item p { font-size: 0.94rem; margin-bottom: 0; }
@media (max-width: 991.98px) { .why-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 575.98px) {
  .why-grid { grid-template-columns: 1fr; }
  .why-item { padding: 1.75rem 1.5rem; }
}

/* AMC */
.amc {
  background: linear-gradient(160deg, var(--c-navy) 0%, var(--c-navy-2) 60%, #133D63 100%);
  color: rgba(255, 255, 255, 0.85);
  overflow: hidden;
}
.amc-pattern {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(600px 300px at 100% 0%, rgba(36, 184, 216, 0.18), transparent 60%),
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px) 0 0 / 48px 48px,
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px) 0 0 / 48px 48px;
  pointer-events: none;
}
.amc-lead { color: rgba(255, 255, 255, 0.82); font-size: var(--fs-lead); }
.amc-subtitle { color: #fff; font-size: 1.05rem; margin: var(--space-4) 0 var(--space-2); }
.amc-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem 1.5rem;
  margin: 0;
}
.amc-list li { display: flex; gap: 0.6rem; align-items: flex-start; color: rgba(255, 255, 255, 0.9); font-size: 0.95rem; line-height: 1.5; }
.amc-list .bi { color: var(--c-cyan); font-size: 1.1rem; flex: none; margin-top: 1px; }
@media (max-width: 575.98px) { .amc-list { grid-template-columns: 1fr; } }

.amc-panel {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--r-xl);
  padding: clamp(1.5rem, 1rem + 2vw, 2.5rem);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.amc-panel-title { color: #fff; font-size: 1.25rem; margin-bottom: 1.5rem; }
.amc-steps { margin: 0 0 1.75rem; display: grid; gap: 0; }
.amc-steps li {
  display: flex;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.amc-steps li:last-child { border-bottom: 0; }
.amc-step-num {
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--c-cyan);
  width: 44px;
  height: 44px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 12px;
  border: 1px solid rgba(36, 184, 216, 0.4);
  background: rgba(36, 184, 216, 0.08);
}
.amc-steps strong { display: block; color: #fff; font-weight: 700; }
.amc-steps span:not(.amc-step-num) { display: block; font-size: 0.9rem; color: rgba(255, 255, 255, 0.72); }
.amc-disclaimer {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.72);
  margin: 1rem 0 0;
  display: flex;
  gap: 0.5rem;
  line-height: 1.5;
}

/* Industries */
.industry-card {
  height: 100%;
  border-radius: var(--r-lg);
  padding: 1.75rem;
  background: linear-gradient(180deg, #fff, var(--c-bg));
  border: 1px solid var(--c-border);
  transition: transform var(--t-med) var(--ease), box-shadow var(--t-med) var(--ease);
}
.industry-card:hover { transform: translateY(-4px); box-shadow: var(--sh-md); }
.industry-icon {
  display: inline-grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--c-navy);
  color: var(--c-cyan);
  font-size: 1.35rem;
  margin-bottom: 1.1rem;
}
.industry-title { font-size: 1.08rem; margin-bottom: 0.5rem; }
.industry-card p { font-size: 0.94rem; margin-bottom: 0; }

/* Mid-page CTA banner */
.cta-banner {
  margin-top: var(--space-5);
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.75rem 2rem;
  border-radius: var(--r-lg);
  background:
    radial-gradient(400px 200px at 100% 50%, rgba(36, 184, 216, 0.16), transparent 70%),
    linear-gradient(90deg, #EAF3FB, #F5F8FC);
  border: 1px solid #D5E5F3;
}
.cta-banner-icon {
  width: 56px;
  height: 56px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: var(--c-blue);
  color: #fff;
  font-size: 1.5rem;
}
.cta-banner-copy { flex: 1; min-width: 0; }
.cta-banner-title { font-size: 1.15rem; margin-bottom: 0.25rem; }
.cta-banner-copy p { font-size: 0.95rem; }
.cta-banner-btn { flex: none; }
@media (max-width: 767.98px) {
  .cta-banner { flex-direction: column; align-items: flex-start; padding: 1.5rem; gap: 1rem; }
  .cta-banner-icon { width: 48px; height: 48px; font-size: 1.3rem; }
  .cta-banner-btn { width: 100%; }
}

.section-bordered { border-top: 1px solid var(--c-border); }

/* Security */
.check-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.6rem 1.25rem;
  margin: var(--space-3) 0;
}
.check-grid li { display: flex; gap: 0.5rem; align-items: center; font-weight: 600; color: var(--c-navy); font-size: 0.95rem; }
.check-grid .bi {
  width: 24px;
  height: 24px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(22, 133, 104, 0.12);
  color: var(--c-success);
  font-size: 0.95rem;
}
@media (max-width: 575.98px) { .check-grid { grid-template-columns: 1fr; } }

/* Process: horizontal on desktop, vertical timeline on mobile */
.process {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.5rem;
  margin: 0;
  position: relative;
  counter-reset: none;
}
.process-step { position: relative; text-align: center; padding: 0 0.5rem; }
.process-step::before {
  content: "";
  position: absolute;
  top: 32px;
  left: calc(50% + 40px);
  width: calc(100% - 80px + 1.5rem);
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--c-cyan) 0 8px, transparent 8px 14px);
  opacity: 0.6;
}
.process-step:last-child::before { display: none; }
.process-num {
  width: 64px;
  height: 64px;
  margin: 0 auto 1.25rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--c-blue);
  color: var(--c-blue);
  font-size: 1.4rem;
  font-weight: 800;
  box-shadow: 0 0 0 8px rgba(23, 105, 170, 0.08);
  position: relative;
  z-index: 1;
  transition: background var(--t-med), color var(--t-med);
}
.process-step:hover .process-num { background: var(--c-blue); color: #fff; }
.process-title { font-size: 1.1rem; margin-bottom: 0.5rem; }
.process-step p { font-size: 0.94rem; margin-bottom: 0; }

@media (max-width: 991.98px) {
  .process { grid-template-columns: 1fr; gap: 0; max-width: 560px; margin: 0 auto; }
  .process-step {
    text-align: left;
    padding: 0 0 2rem 5.25rem;
    min-height: 64px;
  }
  .process-step:last-child { padding-bottom: 0; }
  .process-step::before {
    top: 64px;
    left: 31px;
    width: 2px;
    height: calc(100% - 64px);
    background: repeating-linear-gradient(180deg, var(--c-cyan) 0 8px, transparent 8px 14px);
  }
  .process-num { position: absolute; left: 0; top: 0; margin: 0; }
  .process-title { padding-top: 0.9rem; }
}

/* Local */
.local-card {
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--r-xl);
  padding: clamp(1.75rem, 1rem + 3vw, 3.25rem);
  box-shadow: var(--sh-md);
  position: relative;
  overflow: hidden;
}
.local-card::after {
  content: "";
  position: absolute;
  right: -80px;
  top: -80px;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(36, 184, 216, 0.14), transparent 70%);
  pointer-events: none;
}
.local-aside {
  background: var(--c-bg);
  border-radius: var(--r-lg);
  padding: 1.5rem;
  position: relative;
  z-index: 1;
}
.local-aside-label {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-muted-dark);
  margin-bottom: 0.6rem;
}
.local-place {
  font-style: normal;
  font-weight: 600;
  color: var(--c-navy);
  display: flex;
  gap: 0.6rem;
  line-height: 1.6;
  font-size: 0.94rem;
  margin-bottom: 1.25rem;
}
.local-place .bi { margin-top: 0.2rem; }
.local-map {
  margin-top: 0.5rem;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--c-border);
  background: var(--c-bg);
  position: relative;
  z-index: 1;
}
.local-map iframe { display: block; width: 100%; height: 360px; border: 0; }
@media (max-width: 575.98px) { .local-map iframe { height: 280px; } }
.local-place .bi { color: var(--c-blue); }
.local-aside .btn { white-space: normal; text-align: center; }

/* Testimonials */
.testimonial-placeholder {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
  padding: 2.5rem 1.5rem;
  border: 2px dashed var(--c-border);
  border-radius: var(--r-lg);
  color: var(--c-muted-dark);
}
.testimonial-placeholder .bi { font-size: 2rem; color: var(--c-blue); display: block; margin-bottom: 0.5rem; }
.testimonial-card {
  height: 100%;
  margin: 0;
  padding: 2rem;
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-sm);
}
.testimonial-mark { font-size: 2rem; color: var(--c-cyan); line-height: 1; }
.testimonial-quote p { color: var(--c-text); font-size: 1rem; }
.testimonial-name { display: block; font-weight: 800; color: var(--c-navy); }
.testimonial-org { display: block; font-size: 0.88rem; color: var(--c-muted-dark); }

/* FAQ */
.faq-accordion {
  --bs-accordion-border-color: var(--c-border);
  --bs-accordion-border-radius: var(--r-md);
  --bs-accordion-inner-border-radius: var(--r-md);
  --bs-accordion-btn-focus-box-shadow: 0 0 0 3px rgba(36, 184, 216, 0.45);
  --bs-accordion-active-bg: #fff;
  --bs-accordion-active-color: var(--c-blue);
  --bs-accordion-btn-color: var(--c-navy);
}
.faq-accordion .accordion-item {
  border: 1px solid var(--c-border);
  border-radius: var(--r-md) !important;
  margin-bottom: 0.75rem;
  overflow: hidden;
  background: #fff;
}
.faq-accordion .accordion-header { margin: 0; }
.faq-accordion .accordion-button {
  font-weight: 700;
  font-size: 1rem;
  padding: 1.15rem 1.35rem;
  line-height: 1.45;
}
.faq-accordion .accordion-button:not(.collapsed) { box-shadow: inset 0 -1px 0 var(--c-border); }
.faq-accordion .accordion-body { color: var(--c-muted-dark); padding: 1.15rem 1.35rem 1.35rem; }

/* Contact: split card — navy reassurance panel + form */
.contact-shell {
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--r-xl);
  box-shadow: var(--sh-lg);
  overflow: hidden;
}
.contact-aside {
  height: 100%;
  background:
    radial-gradient(420px 260px at 100% 0%, rgba(36, 184, 216, 0.22), transparent 70%),
    linear-gradient(165deg, var(--c-navy), #133D63);
  color: rgba(255, 255, 255, 0.85);
  padding: clamp(1.5rem, 1rem + 2.5vw, 2.75rem);
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
.contact-aside-title { color: #fff; font-size: 1.2rem; margin: 0; }
.next-steps { display: grid; gap: 1.1rem; margin: -0.75rem 0 0; }
.next-steps li { display: flex; gap: 0.9rem; align-items: flex-start; }
.next-steps strong { display: block; color: #fff; font-weight: 700; line-height: 1.4; }
.next-steps span:not(.next-num) { display: block; font-size: 0.9rem; color: rgba(255, 255, 255, 0.72); line-height: 1.5; }
.next-num {
  width: 32px;
  height: 32px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(36, 184, 216, 0.15);
  border: 1px solid rgba(36, 184, 216, 0.5);
  color: var(--c-cyan);
  font-weight: 800;
  font-size: 0.88rem;
}
.contact-info {
  display: grid;
  gap: 1.1rem;
  margin-top: auto !important;
  padding-top: 1.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}
.contact-info li { display: flex; gap: 0.9rem; align-items: flex-start; }
.contact-info a, .contact-value { color: #fff; font-weight: 700; text-decoration: none; word-break: break-word; }
.contact-info a { display: block; padding: 0.1rem 0; }
.contact-address { font-style: normal; margin: 0.1rem 0 0.4rem; line-height: 1.55; font-size: 0.95rem; }
.contact-info a.contact-directions {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--c-cyan);
  font-size: 0.88rem;
  min-height: 32px;
}
.contact-info a.contact-directions:hover { color: #fff; }
.contact-info a.contact-directions .bi { font-size: 0.75rem; }
.contact-info a:hover { color: var(--c-cyan); }
.contact-icon {
  width: 42px;
  height: 42px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--c-cyan);
  font-size: 1.05rem;
}
.contact-label {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.6);
}

.form-card {
  background: #fff;
  padding: clamp(1.25rem, 0.75rem + 2.5vw, 2.75rem);
}

.form-assurance {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem 1.25rem;
  margin-top: 0.9rem;
  font-size: 0.82rem;
  color: var(--c-muted-dark);
}
.form-assurance li { display: inline-flex; align-items: center; gap: 0.35rem; }
.form-assurance .bi { color: var(--c-success); }
.form-note { font-size: 0.86rem; margin-bottom: 1.25rem; }
.req { color: var(--c-danger); font-weight: 700; }
.form-label { font-weight: 700; font-size: 0.9rem; color: var(--c-navy); margin-bottom: 0.4rem; }
.form-control, .form-select {
  border: 1px solid #CDD6E1;
  border-radius: var(--r-sm);
  padding: 0.7rem 0.9rem;
  min-height: 48px;
  font-size: 1rem;
  color: var(--c-text);
}
.form-control::placeholder { color: #8A94A6; }
.form-control:focus, .form-select:focus {
  border-color: var(--c-blue);
  box-shadow: 0 0 0 3px rgba(23, 105, 170, 0.18);
}
.form-control.is-invalid, .form-select.is-invalid { border-color: var(--c-danger); }
.invalid-feedback { color: var(--c-danger); font-weight: 600; font-size: 0.85rem; }
.form-text { font-size: 0.82rem; color: var(--c-muted-dark); }
.form-check-input { width: 1.2em; height: 1.2em; margin-top: 0.25em; }
.form-check-input:checked { background-color: var(--c-blue); border-color: var(--c-blue); }
.form-check-label { font-size: 0.92rem; color: var(--c-muted-dark); }

.hp-field {
  position: absolute !important;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.turnstile-field { min-height: 65px; }
.turnstile-field[hidden] { display: none; }
.turnstile-error { color: var(--c-danger); font-weight: 600; font-size: 0.85rem; margin-top: 0.35rem; }
.turnstile-error:empty { display: none; }

.submit-btn .btn-loading { display: none; align-items: center; gap: 0.5rem; }
.submit-btn.is-loading .btn-label { display: none; }
.submit-btn.is-loading .btn-loading { display: inline-flex; }
.submit-btn:disabled { opacity: 0.85; cursor: progress; }

.form-status { margin-top: 1.25rem; border-radius: var(--r-md); }
.form-status:empty { display: none; }
.form-status:focus { outline: none; }
.form-status .alert { margin: 0; display: flex; gap: 0.75rem; align-items: flex-start; border-radius: var(--r-md); }
.form-status .alert .bi { font-size: 1.25rem; flex: none; }
.form-status .alert-success { background: #E7F5F0; border-color: #B5DFD0; color: #0E5A46; }
.form-status .alert-danger { background: #FDECEA; border-color: #F5C2BD; color: #8A1C12; }
.form-status .alert-warning { background: #FFF6E5; border-color: #F5D9A6; color: #6B4A08; }

/* 7. FINAL CTA & FOOTER -------------------------------------------------- */
.final-cta {
  position: relative;
  background: var(--c-navy);
  padding: clamp(4rem, 3rem + 4vw, 6rem) 0;
  overflow: hidden;
}
.final-cta-glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(500px 260px at 50% 0%, rgba(23, 105, 170, 0.55), transparent 70%),
    radial-gradient(300px 200px at 90% 100%, rgba(36, 184, 216, 0.18), transparent 70%);
  pointer-events: none;
}
.final-cta-title { color: #fff; font-size: var(--fs-h2); margin-bottom: 1rem; }
.final-cta-text {
  color: rgba(255, 255, 255, 0.82);
  font-size: var(--fs-lead);
  max-width: 680px;
  margin: 0 auto 2rem;
}
.final-cta-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.85rem; }
@media (max-width: 575.98px) { .final-cta-actions .btn { width: 100%; } }

.site-footer {
  background: #0B1A2B;
  color: rgba(255, 255, 255, 0.72);
  padding: 4rem 0 1.5rem;
  font-size: 0.94rem;
}
.footer-about { color: rgba(255, 255, 255, 0.68); margin-top: 1.25rem; max-width: 360px; }
.footer-heading {
  color: #fff;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 1.1rem;
}
.footer-links li { margin-bottom: 0.1rem; }
.footer-plain li { margin-bottom: 0.5rem; }
.footer-links a {
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none;
  display: inline-block;
  padding: 0.35rem 0;
  transition: color var(--t-fast);
}
.footer-links a:hover { color: var(--c-cyan); }
.footer-plain li { color: rgba(255, 255, 255, 0.68); }

.footer-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  margin-top: 2.5rem;
  padding: 1.5rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.footer-contact a, .footer-contact span { color: rgba(255, 255, 255, 0.82); text-decoration: none; display: inline-flex; align-items: center; gap: 0.5rem; }
.footer-contact a:hover { color: var(--c-cyan); }
.footer-contact .bi { color: var(--c-cyan); }
.footer-contact a.footer-address { align-items: flex-start; max-width: 640px; line-height: 1.55; }
.footer-contact a.footer-address .bi { margin-top: 0.2rem; }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.86rem;
}
.footer-bottom p { color: rgba(255, 255, 255, 0.6); }
.footer-legal { display: flex; gap: 1.5rem; }
.footer-legal a { color: rgba(255, 255, 255, 0.72); text-decoration: none; display: inline-block; padding: 0.4rem 0; }
.footer-legal a:hover { color: var(--c-cyan); }
@media (max-width: 575.98px) {
  .site-footer { padding-top: 3rem; }
  .footer-contact { flex-direction: column; gap: 0.75rem; }
  .footer-bottom { flex-direction: column-reverse; align-items: flex-start; gap: 0.25rem; }
}

/* 8. FLOATING CONTROLS --------------------------------------------------- */
.back-to-top, .whatsapp-btn {
  position: fixed;
  right: 20px;
  z-index: 1040;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 0;
  box-shadow: var(--sh-lg);
  transition: opacity var(--t-med), transform var(--t-med) var(--ease), visibility var(--t-med);
}
.back-to-top {
  bottom: calc(20px + var(--float-offset, 0px));
  background: var(--c-navy);
  color: #fff;
  font-size: 1.2rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
}
.back-to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.back-to-top:hover { background: var(--c-blue); }

/* Floating WhatsApp button — sits at the bottom; back-to-top stacks above it */
.whatsapp-btn {
  bottom: calc(20px + var(--float-offset, 0px));
  width: 56px;
  height: 56px;
  background: #16843F;  /* WhatsApp green, darkened for 4.5:1 contrast with white */
  color: #fff;
  font-size: 1.6rem;
  text-decoration: none;
  box-shadow: 0 10px 24px -8px rgba(22, 132, 63, 0.6);
}
.whatsapp-btn:hover, .whatsapp-btn:focus-visible { color: #fff; background: #12703A; }
.whatsapp-btn::after {   /* soft pulse ring to draw attention */
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 2px solid #25D366;
  opacity: 0;
  pointer-events: none;
}
@media (prefers-reduced-motion: no-preference) {
  .whatsapp-btn::after { animation: waPulse 3s ease-out 2s 3; }
}
@keyframes waPulse {
  0% { transform: scale(1); opacity: 0.7; }
  100% { transform: scale(1.5); opacity: 0; }
}
.whatsapp-label { display: none; }
body:has(.whatsapp-btn) .back-to-top { bottom: calc(88px + var(--float-offset, 0px)); right: 23px; }

/* Desktop: labelled pill */
@media (min-width: 1200px) {
  .whatsapp-btn {
    width: auto;
    border-radius: var(--r-pill);
    display: inline-flex;
    gap: 0.55rem;
    padding: 0 1.25rem 0 1rem;
    font-size: 1.45rem;
  }
  .whatsapp-label { display: inline; font-size: 0.95rem; font-weight: 700; }
  .whatsapp-btn:hover { transform: translateY(-2px); }
}
/* Tablets: the sticky enquiry pill sits bottom-right, so WhatsApp and
   back-to-top move to the bottom-left */
@media (min-width: 768px) and (max-width: 1199.98px) {
  .whatsapp-btn { right: auto; left: 20px; }
  body:has(.whatsapp-btn) .back-to-top { right: auto; left: 23px; }
}

/* Contact panel WhatsApp row */
.contact-icon-wa { color: #4ADE80; }

/* Hidden while the slide-in menu is open */
body.menu-open .mobile-cta,
body.menu-open .back-to-top,
body.menu-open .whatsapp-btn { visibility: hidden; opacity: 0; pointer-events: none; }

/* Sticky mobile/tablet action bar */
.mobile-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1035;
  display: none;
  gap: 0.6rem;
  padding: 0.65rem 0.9rem calc(0.65rem + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.97);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--c-border);
  box-shadow: 0 -10px 30px -16px rgba(16, 36, 58, 0.35);
  transform: translateY(110%);
  transition: transform var(--t-med) var(--ease);
}
.mobile-cta.is-visible { transform: none; }
.mobile-cta-main { flex: 1; min-height: 48px; padding: 0.6rem 1rem; font-size: 0.95rem; }
.mobile-cta-main { white-space: nowrap; }
.mobile-cta .cta-short { display: none; }
@media (max-width: 399.98px) {
  .mobile-cta .cta-long { display: none; }
  .mobile-cta .cta-short { display: inline; }
}
.mobile-cta-call {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 48px;
  padding: 0 1.1rem;
  border-radius: var(--r-pill);
  border: 2px solid var(--c-border);
  color: var(--c-navy);
  font-weight: 700;
  text-decoration: none;
}
.mobile-cta-call[hidden] { display: none; }
.mobile-cta-call .bi { color: var(--c-success); }
@media (max-width: 1199.98px) {
  .mobile-cta { display: flex; }
  body.has-mobile-cta { --float-offset: 72px; }
  .site-footer { padding-bottom: calc(1.5rem + 76px); }
}
@media (min-width: 768px) and (max-width: 1199.98px) {
  /* Tablets: a compact floating pill instead of a full-width bar */
  .mobile-cta {
    left: auto;
    right: 20px;
    bottom: calc(20px + env(safe-area-inset-bottom));
    padding: 0.5rem;
    border: 1px solid var(--c-border);
    border-radius: var(--r-pill);
    transform: translateY(160%);
  }
  .mobile-cta-main { flex: none; }
  body.has-mobile-cta { --float-offset: 0px; }
  body.has-mobile-cta .back-to-top { right: auto; left: 20px; }
  .site-footer { padding-bottom: calc(1.5rem + 80px); }
}

/* 9. REVEAL ANIMATIONS & REDUCED MOTION ---------------------------------- */
/* Content is only hidden when JS has confirmed it can reveal it again
   (html.js-reveal is set by script.js), so nothing disappears if JS fails. */
.js-reveal .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.js-reveal .reveal.is-visible { opacity: 1; transform: none; }

@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;
  }
  .js-reveal .reveal { opacity: 1; transform: none; }
}

/* Image fallback state (set by script.js if a remote photo fails) */
img.img-fallback { object-fit: cover; }

/* Narrow container for legal placeholder pages */
.container-narrow { max-width: 760px; }

/* Keep decorative image offsets inside the gutter on small screens */
@media (max-width: 767.98px) {
  .media-frame::before { inset: 16px -8px -8px 16px; }
  .media-frame-right::before { inset: 16px 16px -8px -8px; }
}

/* 10. DEVICE FINE-TUNING ------------------------------------------------- */
/* Small phones (≤575px) */
@media (max-width: 575.98px) {
  :root { --header-h: 68px; }
  .site-header .navbar { padding: 0.45rem 0; }
  .site-header .brand-logo { height: 40px; }
  .hero { padding-top: 2.25rem; }
  .hero-lead { margin-bottom: 1.5rem; }
  .eyebrow { font-size: 0.72rem; letter-spacing: 0.1em; }
  .section-head { margin-bottom: 2rem; }
  .service-card { padding: 1.6rem 1.35rem; }
  .industry-card { padding: 1.4rem; }
  .amc-panel { border-radius: var(--r-lg); }
  .amc-steps li { gap: 0.8rem; }
  .local-aside { padding: 1.25rem; }
  .faq-accordion .accordion-button { padding: 1rem 1.1rem; font-size: 0.96rem; }
  .faq-accordion .accordion-body { padding: 1rem 1.1rem 1.15rem; }
  .form-card { padding: 1.35rem 1.1rem 1.5rem; }
  .contact-shell { border-radius: var(--r-lg); }
  .form-assurance { justify-content: flex-start; flex-direction: column; }
}
/* Narrow phones (≤399px): keep logo, CTA and menu button on one row */
@media (max-width: 399.98px) {
  .navbar-brand { margin-right: 0.5rem; }
  .site-header .brand-logo { height: 36px; }
  .header-actions { gap: 0.45rem; }
  .header-cta { padding: 0.45rem 0.85rem; font-size: 0.85rem; min-height: 42px; }
  .navbar-toggler { width: 44px; height: 44px; }
}
/* Very small phones (≤359px, e.g. older Android / iPhone SE 1st gen) */
@media (max-width: 359.98px) {
  .site-header .brand-logo { height: 32px; }
  .btn-lg { font-size: 0.96rem; padding: 0.85rem 1.1rem; }
}
/* Tablets (768–1199px): balance two-column areas */
@media (min-width: 768px) and (max-width: 991.98px) {
  .hero-trust { max-width: none; }
  .hero-lead { max-width: none; }
  .contact-aside { gap: 1.5rem; }
  .next-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
  .next-steps li { flex-direction: column; }
  .contact-info { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .contact-info li { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
}
/* Landscape phones: avoid oversized headings and keep the menu scrollable */
@media (max-height: 500px) and (orientation: landscape) {
  .hero { padding: 2rem 0; }
  .hero-title { font-size: clamp(1.8rem, 1.2rem + 2.4vw, 2.4rem); }
  .nav-offcanvas .offcanvas-body { overflow-y: auto; }
  .navbar .nav-link { min-height: 42px; padding-top: 0.55rem !important; padding-bottom: 0.55rem !important; }
}
/* Large desktops (≥1600px): slightly wider canvas */
@media (min-width: 1600px) {
  .container { max-width: 1380px; }
}
/* Hover effects only on devices that can hover (prevents sticky hover on touch) */
@media (hover: none) {
  .service-card:hover, .industry-card:hover { transform: none; box-shadow: var(--sh-sm); }
  .btn:hover { transform: none; }
}

/* 11. WAYFINDING --------------------------------------------------------- */
/* "Up next" link at the end of each section */
.up-next {
  display: flex;
  justify-content: center;
  margin-top: clamp(2.5rem, 2rem + 2vw, 3.5rem);
}
.up-next a {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 44px;
  padding: 0.55rem 0.6rem 0.55rem 1.1rem;
  border-radius: var(--r-pill);
  border: 1px solid var(--c-border);
  background: #fff;
  color: var(--c-navy);
  text-decoration: none;
  font-size: 0.92rem;
  box-shadow: var(--sh-sm);
  transition: border-color var(--t-fast), box-shadow var(--t-fast), transform var(--t-fast) var(--ease);
  max-width: 100%;
}
.up-next a:hover { border-color: var(--c-blue); box-shadow: var(--sh-md); transform: translateY(-2px); color: var(--c-navy); }
.up-next-label {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-blue);
  white-space: nowrap;
}
.up-next-title { font-weight: 700; }
.up-next a .bi {
  width: 30px;
  height: 30px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(23, 105, 170, 0.1);
  color: var(--c-blue);
  transition: background var(--t-fast), color var(--t-fast);
}
.up-next a:hover .bi { background: var(--c-blue); color: #fff; }
/* Final hop to the contact form gets primary emphasis */
.up-next-final a { background: var(--c-blue); border-color: var(--c-blue); color: #fff; }
.up-next-final a:hover { background: var(--c-blue-dark); color: #fff; }
.up-next-final .up-next-label { color: rgba(255, 255, 255, 0.8); }
.up-next-final a .bi { background: rgba(255, 255, 255, 0.18); color: #fff; }
/* On the dark AMC section */
.amc .up-next a { background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.2); color: #fff; box-shadow: none; }
.amc .up-next a:hover { border-color: var(--c-cyan); }
.amc .up-next-label { color: var(--c-cyan); }
.amc .up-next a .bi { background: rgba(36, 184, 216, 0.15); color: var(--c-cyan); }
@media (max-width: 575.98px) {
  .up-next a { font-size: 0.86rem; gap: 0.5rem; padding-left: 0.95rem; }
  .up-next-label { font-size: 0.64rem; }
}

/* Desktop section rail: shows where you are and what's ahead */
.section-rail { display: none; }
@media (min-width: 1280px) and (min-height: 640px) {
  .section-rail {
    position: fixed;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1020;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
    padding: 0.5rem 0;
    transition: opacity var(--t-med);
  }
  .section-rail::before {   /* track line */
    content: "";
    position: absolute;
    right: 9px;
    top: 18px;
    bottom: 18px;
    width: 2px;
    background: var(--c-border);
    border-radius: 2px;
  }
  .section-rail.is-hidden { opacity: 0; pointer-events: none; }
  .section-rail a {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.55rem;
    height: 22px;
    text-decoration: none;
  }
  .rail-dot {
    width: 10px;
    height: 10px;
    margin: 0 5px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid #B9C6D4;
    transition: transform var(--t-fast), background var(--t-fast), border-color var(--t-fast);
  }
  .section-rail a.is-past .rail-dot { background: var(--c-cyan); border-color: var(--c-cyan); }
  .section-rail a.is-active .rail-dot { background: var(--c-blue); border-color: var(--c-blue); transform: scale(1.35); box-shadow: 0 0 0 4px rgba(23, 105, 170, 0.15); }
  .rail-label {
    font-size: 0.74rem;
    font-weight: 700;
    color: var(--c-navy);
    background: #fff;
    border: 1px solid var(--c-border);
    border-radius: var(--r-pill);
    padding: 0.15rem 0.6rem;
    box-shadow: var(--sh-sm);
    opacity: 0;
    transform: translateX(6px);
    transition: opacity var(--t-fast), transform var(--t-fast);
    white-space: nowrap;
    pointer-events: none;
  }
  /* Labels appear on hover only, so they never cover page content */
  .section-rail a:hover .rail-label { opacity: 1; transform: none; }
  .section-rail a.is-active .rail-label { color: var(--c-blue); }
}

/* 12. CHAT ASSISTANT ----------------------------------------------------- */
.chat-launcher {
  position: fixed;
  right: 20px;
  bottom: calc(20px + var(--float-offset, 0px));
  z-index: 1041;
  width: 60px;
  height: 60px;
  border: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--c-blue), #0E7F99);
  color: #fff;
  font-size: 1.55rem;
  box-shadow: 0 12px 28px -10px rgba(16, 36, 58, 0.55);
  transition: transform var(--t-fast) var(--ease), box-shadow var(--t-fast), bottom var(--t-med);
}
.chat-launcher:hover { transform: translateY(-2px); }
.chat-launcher .chat-launcher-close { display: none; font-size: 1.25rem; }
body.chat-open .chat-launcher .chat-launcher-open { display: none; }
body.chat-open .chat-launcher .chat-launcher-close { display: block; }

/* Floating stack when the assistant is present:
   desktop & phone → right column: chat (bottom) · WhatsApp · back-to-top */
body.has-chat .whatsapp-btn { bottom: calc(92px + var(--float-offset, 0px)); right: 20px; left: auto; }
body.has-chat .back-to-top { bottom: calc(160px + var(--float-offset, 0px)); right: 25px; left: auto; }
@media (min-width: 1200px) {
  body.has-chat .back-to-top { bottom: 160px; }
}
@media (max-width: 767.98px) {
  .chat-launcher { right: 16px; bottom: calc(16px + var(--float-offset, 0px)); width: 56px; height: 56px; font-size: 1.4rem; }
  body.has-chat .whatsapp-btn { right: 18px; bottom: calc(84px + var(--float-offset, 0px)); width: 52px; height: 52px; font-size: 1.45rem; }
  body.has-chat .back-to-top { right: auto; left: 16px; bottom: calc(16px + var(--float-offset, 0px)); width: 46px; height: 46px; }
}
/* Tablets: the sticky enquiry pill owns the bottom-right corner */
@media (min-width: 768px) and (max-width: 1199.98px) {
  .chat-launcher { right: auto; left: 20px; }
  body.has-chat .whatsapp-btn { right: auto; left: 22px; bottom: 92px; }
  body.has-chat .back-to-top { left: auto; right: 24px; bottom: calc(100px + env(safe-area-inset-bottom)); }
}

/* Hide other floating controls while chatting or using the menu */
body.chat-open .whatsapp-btn,
body.chat-open .back-to-top,
body.chat-open .mobile-cta,
body.menu-open .chat-launcher,
body.menu-open .chat-nudge { visibility: hidden; opacity: 0; pointer-events: none; }

/* Nudge bubble */
.chat-nudge {
  position: fixed;
  right: 92px;
  bottom: calc(26px + var(--float-offset, 0px));
  z-index: 1041;
  display: flex;
  align-items: flex-start;
  gap: 0.25rem;
  max-width: 260px;
  padding: 0.75rem 0.5rem 0.75rem 0.9rem;
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--r-md) var(--r-md) 4px var(--r-md);
  box-shadow: var(--sh-lg);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity var(--t-med), transform var(--t-med) var(--ease);
}
.chat-nudge.is-visible { opacity: 1; transform: none; }
.chat-nudge-text { border: 0; background: none; padding: 0; text-align: left; font-size: 0.9rem; line-height: 1.45; color: var(--c-text); }
.chat-nudge-text strong { color: var(--c-blue); }
.chat-nudge-close { border: 0; background: none; color: var(--c-muted-dark); font-size: 1.1rem; line-height: 1; padding: 0.1rem; min-width: 28px; min-height: 28px; }
@media (max-width: 767.98px) {
  .chat-nudge { right: 16px; bottom: calc(150px + var(--float-offset, 0px)); border-radius: var(--r-md); }
}
@media (min-width: 768px) and (max-width: 1199.98px) {
  .chat-nudge { right: auto; left: 92px; border-radius: var(--r-md) var(--r-md) var(--r-md) 4px; }
}

/* Panel */
.chat-panel {
  position: fixed;
  right: 20px;
  bottom: 92px;
  z-index: 1042;
  width: 380px;
  height: min(620px, calc(100vh - 130px));
  height: min(620px, calc(100dvh - 130px));
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  box-shadow: 0 30px 60px -20px rgba(16, 36, 58, 0.45);
  overflow: hidden;
  opacity: 0;
  transform: translateY(12px) scale(0.98);
  transform-origin: bottom right;
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease);
}
.chat-panel.is-open { opacity: 1; transform: none; }
.chat-panel[hidden] { display: none; }
@media (min-width: 768px) and (max-width: 1199.98px) {
  .chat-panel { right: auto; left: 20px; transform-origin: bottom left; }
}
@media (max-width: 767.98px) {
  .chat-panel {
    inset: 0;
    width: 100%;
    height: 100%;
    border-radius: 0;
    border: 0;
  }
  body.chat-open .chat-launcher { visibility: hidden; }
  body.chat-open { overflow: hidden; }
}

.chat-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.9rem 0.9rem 0.9rem 1rem;
  background: linear-gradient(135deg, var(--c-navy), #133D63);
  color: #fff;
  flex: none;
}
.chat-avatar { width: 40px; height: 40px; border-radius: 10px; background: #fff; padding: 3px; flex: none; }
.chat-header-text { flex: 1; min-width: 0; }
.chat-title { color: #fff; font-size: 1rem; margin: 0; letter-spacing: 0; }
.chat-status { margin: 0.1rem 0 0; font-size: 0.78rem; color: rgba(255, 255, 255, 0.75); display: flex; align-items: center; gap: 0.4rem; }
.chat-status-dot { width: 8px; height: 8px; border-radius: 50%; background: #4ADE80; box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.25); }
.chat-status-dot.is-offline { background: #FBBF24; box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.25); }
.chat-close {
  border: 0;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  flex: none;
}
.chat-close:hover { background: rgba(255, 255, 255, 0.2); }

.chat-log {
  flex: 1;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 1rem 0.9rem;
  background: var(--c-bg);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.chat-msg { display: flex; flex-direction: column; max-width: 88%; }
.chat-msg-bot { align-self: flex-start; }
.chat-msg-user { align-self: flex-end; }
.chat-bubble {
  padding: 0.65rem 0.85rem;
  border-radius: 14px;
  font-size: 0.92rem;
  line-height: 1.55;
  word-wrap: break-word;
}
.chat-msg-bot .chat-bubble { background: #fff; border: 1px solid var(--c-border); color: var(--c-text); border-bottom-left-radius: 4px; }
.chat-msg-user .chat-bubble { background: var(--c-blue); color: #fff; border-bottom-right-radius: 4px; }
.chat-bubble a { color: var(--c-blue); font-weight: 700; }
.chat-bubble strong { color: var(--c-navy); }
.chat-msg-user .chat-bubble strong { color: #fff; }

.chat-typing .chat-bubble { display: inline-flex; gap: 4px; padding: 0.8rem 0.9rem; }
.chat-typing span { width: 7px; height: 7px; border-radius: 50%; background: #9AA8B8; animation: chatDot 1s infinite ease-in-out; }
.chat-typing span:nth-child(2) { animation-delay: 0.15s; }
.chat-typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes chatDot { 0%, 80%, 100% { opacity: 0.3; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }

.chat-chips { display: flex; flex-wrap: wrap; gap: 0.4rem; padding-left: 0.1rem; }
.chat-chip {
  border: 1px solid #C9DCEE;
  background: #fff;
  color: var(--c-blue);
  border-radius: var(--r-pill);
  padding: 0.4rem 0.8rem;
  font-size: 0.84rem;
  font-weight: 700;
  line-height: 1.3;
  text-decoration: none;
  text-align: left;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast);
}
.chat-chip:hover { background: var(--c-blue); border-color: var(--c-blue); color: #fff; }
.chat-chip-action { background: #EAF3FB; }
.chat-chip-wa { background: #16843F; border-color: #16843F; color: #fff; }
.chat-chip-wa:hover { background: #12703A; border-color: #12703A; }

.chat-confirm { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.5rem; }
.chat-captcha:empty { display: none; }
.chat-captcha { width: 100%; }
.chat-send-btn, .chat-cancel-btn {
  border-radius: var(--r-pill);
  font-weight: 700;
  font-size: 0.88rem;
  padding: 0.5rem 1rem;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.chat-send-btn { background: var(--c-blue); color: #fff; border: 0; }
.chat-send-btn:disabled { opacity: 0.6; }
.chat-cancel-btn { background: #fff; color: var(--c-navy); border: 1px solid var(--c-border); }

.chat-input {
  display: flex;
  gap: 0.5rem;
  padding: 0.7rem;
  border-top: 1px solid var(--c-border);
  background: #fff;
  flex: none;
}
.chat-input input {
  flex: 1;
  min-width: 0;
  border: 1px solid #CDD6E1;
  border-radius: var(--r-pill);
  padding: 0.6rem 1rem;
  font-size: 1rem; /* ≥16px prevents iOS zoom on focus */
  min-height: 46px;
}
.chat-input input:focus { outline: none; border-color: var(--c-blue); box-shadow: 0 0 0 3px rgba(23, 105, 170, 0.18); }
.chat-input button {
  width: 46px;
  height: 46px;
  flex: none;
  border: 0;
  border-radius: 50%;
  background: var(--c-blue);
  color: #fff;
  display: grid;
  place-items: center;
}
.chat-footnote {
  margin: 0;
  padding: 0 0.9rem calc(0.55rem + env(safe-area-inset-bottom));
  font-size: 0.72rem;
  color: var(--c-muted-dark);
  background: #fff;
  text-align: center;
  flex: none;
}
@media (prefers-reduced-motion: reduce) {
  .chat-typing span { animation: none; opacity: 0.6; }
}


/* ==========================================================================
   13. DJANGO SITE ADDITIONS
   Pages inside base.html are wrapped in .legacy-content, and base.html has
   older inline rules that load AFTER this file, so every selector below
   starts with .legacy-content to win over them.
   ========================================================================== */

/* 13a. Homepage (index.html, wrapper .new-home) */
.legacy-content .new-home { font-family: var(--font); line-height: 1.7; color: var(--c-text); }
.legacy-content .new-home h1,.legacy-content .new-home h2,.legacy-content .new-home h3,.legacy-content .new-home h4,.legacy-content .new-home h5,.legacy-content .new-home h6 { font-family: var(--font); font-weight: 800; letter-spacing: -0.02em; line-height: 1.2; color: var(--c-navy); }
.legacy-content .new-home p,.legacy-content .new-home li { text-align: left; color: var(--c-muted-dark); }
.legacy-content .new-home a { text-decoration: none; }
.legacy-content .new-home section { overflow: visible; }
.legacy-content .new-home .section-title { font-size: var(--fs-h2); line-height: 1.2; margin-bottom: var(--space-3); text-align: left; }
.legacy-content .new-home .section-head,.legacy-content .new-home .section-head p,.legacy-content .new-home .section-head .section-title { text-align: center; }
.legacy-content .new-home .hero-title { font-size: var(--fs-h1); }
.legacy-content .new-home .amc p,.legacy-content .new-home .amc li,.legacy-content .new-home .amc h2,.legacy-content .new-home .amc h3 { color: rgba(255,255,255,.88); }
.legacy-content .new-home .amc .section-title { color: #fff; }
.legacy-content .new-home .hero-trust li,.legacy-content .new-home .trust-list li,.legacy-content .new-home .service-points li { color: var(--c-navy); }
/* dark panels: AMC panel + contact left panel -> light text */
.legacy-content .new-home .amc .amc-panel-title,.legacy-content .new-home .amc .amc-subtitle,.legacy-content .new-home .amc .amc-steps strong { color: #fff; }
.legacy-content .new-home .amc .amc-steps span:not(.amc-step-num) { color: rgba(255,255,255,.72); }
.legacy-content .new-home .amc .amc-step-num { color: var(--c-cyan); }
.legacy-content .new-home .amc .amc-disclaimer,.legacy-content .new-home .amc .amc-disclaimer i { color: rgba(255,255,255,.62); }
.legacy-content .new-home .amc .amc-lead { color: rgba(255,255,255,.82); }
.legacy-content .new-home .contact-aside,.legacy-content .new-home .contact-aside p,.legacy-content .new-home .contact-aside li { color: rgba(255,255,255,.85); }
.legacy-content .new-home .contact-aside .contact-aside-title,.legacy-content .new-home .contact-aside .next-steps strong { color: #fff; }
.legacy-content .new-home .contact-aside .next-steps span:not(.next-num) { color: rgba(255,255,255,.72); }
.legacy-content .new-home .contact-aside .contact-label { color: rgba(255,255,255,.6); }
.legacy-content .new-home .contact-aside .contact-info a,.legacy-content .new-home .contact-aside .contact-value { color: #fff; }
.legacy-content .new-home .contact-aside .contact-info a.contact-directions { color: var(--c-cyan); }
.legacy-content .new-home .final-cta-title { color: #fff; text-align: center; }
.legacy-content .new-home .final-cta p { color: rgba(255,255,255,.82); text-align: center; }
.legacy-content .new-home .trust-strip { padding: 1.25rem 0; }
.legacy-content .hero-quick { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .9rem; margin-bottom: var(--space-4); font-size: .95rem; }
.legacy-content .hero-quick a { font-weight: 700; color: var(--c-navy); display: inline-flex; align-items: center; gap: .4rem; }
.legacy-content .hero-quick a:hover { color: var(--c-blue); }
.legacy-content .hero-quick .bi-telephone-fill { color: var(--c-blue); }
.legacy-content .hero-quick .bi-whatsapp { color: #1fa855; }
.legacy-content .hero-quick-sep { color: var(--c-border); }
.legacy-content .new-home .service-card,.legacy-content .new-home .product-card { padding: 0; display: flex; flex-direction: column; align-items: stretch; gap: 0; overflow: hidden; }
.legacy-content .new-home .card-media { width: 100%; aspect-ratio: 16 / 10; overflow: hidden; background: var(--c-bg); flex: none; }
.legacy-content .new-home .card-img { width: 100% !important; height: 100% !important; max-width: none; object-fit: cover; display: block; transition: transform .5s var(--ease); }
.legacy-content .service-card:hover .card-img,.legacy-content .product-card:hover .card-img { transform: scale(1.05); }
.legacy-content .card-body-new { padding: 1.4rem 1.5rem 1.5rem; display: flex; flex-direction: column; flex-grow: 1; }
.legacy-content .new-home .service-title,.legacy-content .new-home .product-title { font-size: 1.08rem; margin-bottom: .5rem; }
.legacy-content .new-home .service-link,.legacy-content .new-home .product-link { margin-top: auto; padding-top: .5rem; }
.legacy-content .new-home .testimonial-quote { margin: .5rem 0 1rem; }
.legacy-content .new-home .testimonial-quote p { font-style: italic; color: var(--c-text); }
.legacy-content .new-home .form-card { padding: 2rem; }
.legacy-content .new-home .form-label { font-weight: 700; color: var(--c-navy); font-size: .92rem; }
.legacy-content .new-home .form-control,.legacy-content .new-home .form-select { border-radius: 10px; padding: .7rem .9rem; }
.legacy-content .form-status-msg { margin-top: 1rem; padding: .85rem 1rem; border-radius: 10px; font-weight: 600; display: none; }
.legacy-content .form-status-msg.ok { display: block; background: #E7F5F0; color: #0E5A46; border: 1px solid #B5DFD0; }
.legacy-content .form-status-msg.err { display: block; background: #FDECEA; color: #8A1C12; border: 1px solid #F5C2BD; }
.legacy-content .new-home .reviews-wrap { padding: 2.5rem 0; background: #fff; }
@media (max-width: 767.98px) {
  .legacy-content .new-home .form-card { padding: 1.35rem 1.1rem; }
  .legacy-content .card-body-new { padding: 1.1rem; }
}

/* 13b. Policy pages (wrapper .policy-page) */
.legacy-content .policy-page { font-family: var(--font); color: var(--c-text); line-height: 1.75; }
.legacy-content .policy-hero { position: relative; overflow: hidden; background: var(--c-bg); padding: clamp(2.5rem, 2rem + 3vw, 4.5rem) 0 clamp(2rem, 1.5rem + 2vw, 3rem); border-bottom: 1px solid var(--c-border); }
.legacy-content .policy-hero::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(700px 300px at 90% 0%, rgba(36, 184, 216, .14), transparent 60%), linear-gradient(rgba(16, 36, 58, .035) 1px, transparent 1px) 0 0 / 44px 44px, linear-gradient(90deg, rgba(16, 36, 58, .035) 1px, transparent 1px) 0 0 / 44px 44px; }
.legacy-content .policy-hero .container { position: relative; }
.legacy-content .policy-crumbs { display: flex; flex-wrap: wrap; gap: .4rem; list-style: none; padding: 0; margin: 0 0 1rem; font-size: .88rem; }
.legacy-content .policy-crumbs li { color: var(--c-muted-dark); }
.legacy-content .policy-crumbs li + li::before { content: "/"; margin-right: .4rem; color: #B9C6D4; }
.legacy-content .policy-crumbs a { color: var(--c-blue); text-decoration: none; font-weight: 600; }
.legacy-content .policy-crumbs a:hover { text-decoration: underline; }
.legacy-content .policy-page h1.policy-title { font-size: clamp(1.9rem, 1.3rem + 2.4vw, 2.9rem); font-weight: 800; letter-spacing: -.02em; line-height: 1.15; color: var(--c-navy); margin: 0; text-align: left; }
.legacy-content .policy-body { padding: clamp(2.5rem, 2rem + 2vw, 4rem) 0 clamp(3rem, 2.5rem + 2vw, 5rem); }
.legacy-content .policy-card { background: #fff; border: 1px solid var(--c-border); border-radius: var(--r-lg); box-shadow: var(--sh-sm); padding: clamp(1.5rem, 1rem + 2.5vw, 3rem); }
.legacy-content .policy-content { font-size: 1rem; color: var(--c-text); }
.legacy-content .policy-content p,.legacy-content .policy-content li { text-align: left !important; color: var(--c-text); }
.legacy-content .policy-content p { margin-bottom: 1rem; }
.legacy-content .policy-content h1,.legacy-content .policy-content h2,.legacy-content .policy-content h3,.legacy-content .policy-content h4 { color: var(--c-navy); font-weight: 800; letter-spacing: -.01em; line-height: 1.3; margin: 2rem 0 .75rem; text-align: left; }
.legacy-content .policy-content h2 { font-size: 1.4rem; }
.legacy-content .policy-content h3 { font-size: 1.2rem; }
.legacy-content .policy-content h4 { font-size: 1.05rem; }
.legacy-content .policy-content > :first-child,.legacy-content .policy-block:first-child > :first-child { margin-top: 0; }
.legacy-content .policy-content ul,.legacy-content .policy-content ol { padding-left: 1.4rem; margin-bottom: 1rem; }
.legacy-content .policy-content li { margin-bottom: .4rem; }
.legacy-content .policy-content a { color: var(--c-blue); text-decoration: underline; text-underline-offset: 3px; }
.legacy-content .policy-content table { width: 100%; border-collapse: collapse; margin-bottom: 1rem; }
.legacy-content .policy-content th,.legacy-content .policy-content td { border: 1px solid var(--c-border); padding: .6rem .75rem; text-align: left; }
.legacy-content .policy-block + .policy-block { margin-top: 1.25rem; }
.legacy-content .policy-help { margin-top: 2rem; padding: 1.25rem 1.5rem; border-radius: var(--r-md); background: var(--c-bg); border: 1px solid var(--c-border); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; }
.legacy-content .policy-help p { margin: 0; color: var(--c-muted-dark); text-align: left !important; }
.legacy-content .policy-help strong { color: var(--c-navy); }
@media (max-width: 575.98px) {
  .legacy-content .policy-help .btn { width: 100%; }
}

/* 13c. Homepage: step-by-step enquiry form + callback form */
.legacy-content .form-progress { margin-bottom: 1.25rem; }
.legacy-content .form-progress-labels { display: flex; justify-content: space-between; font-size: .8rem; font-weight: 700; color: var(--c-muted-dark); margin-bottom: .45rem; }
.legacy-content .form-progress-labels span.is-active { color: var(--c-blue); }
.legacy-content .form-progress-bar { height: 6px; border-radius: 6px; background: var(--c-border); overflow: hidden; }
.legacy-content .form-progress-bar span { display: block; height: 100%; width: 33.3%; background: linear-gradient(90deg, var(--c-blue), var(--c-cyan)); border-radius: 6px; transition: width .35s var(--ease); }
.legacy-content .form-step { border: 0; padding: 0; margin: 0; min-width: 0; }
.legacy-content .form-step[hidden] { display: none; }
.legacy-content .form-step-title { font-size: 1.1rem; font-weight: 800; color: var(--c-navy); margin-bottom: 1rem; float: none; width: 100%; }
.legacy-content .form-step-title .req, .legacy-content .form-label .req { color: var(--c-danger); }
.legacy-content .svc-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .65rem; }
.legacy-content .svc-tile { position: relative; display: flex; margin: 0; cursor: pointer; }
.legacy-content .svc-tile input { position: absolute; opacity: 0; pointer-events: none; }
.legacy-content .svc-tile-body { flex: 1; min-height: 100px; justify-content: center; display: flex; flex-direction: column; align-items: center; text-align: center; gap: .2rem; padding: .9rem .5rem; border: 1.5px solid var(--c-border); border-radius: 12px; background: #fff; transition: border-color .2s, background .2s, box-shadow .2s; }
.legacy-content .svc-tile-body .bi { font-size: 1.35rem; color: var(--c-blue); margin-bottom: .2rem; }
.legacy-content .svc-tile-title { font-weight: 800; font-size: .86rem; color: var(--c-navy); line-height: 1.25; }
.legacy-content .svc-tile-sub { font-size: .74rem; color: var(--c-muted-dark); line-height: 1.3; }
.legacy-content .svc-tile:hover .svc-tile-body { border-color: rgba(23,105,170,.45); }
.legacy-content .svc-tile input:checked + .svc-tile-body { border-color: var(--c-blue); background: rgba(23,105,170,.06); box-shadow: 0 0 0 3px rgba(23,105,170,.12); }
.legacy-content .svc-tile input:focus-visible + .svc-tile-body { outline: 3px solid var(--c-cyan); outline-offset: 2px; }
.legacy-content .step-nav { display: flex; justify-content: space-between; align-items: center; gap: .75rem; margin-top: 1.5rem; }
.legacy-content .step-nav .step-next:only-child, .legacy-content .step-nav .submit-btn:only-child { margin-left: auto; }
.legacy-content .field-error { display: none; color: var(--c-danger); font-size: .85rem; font-weight: 600; margin-top: .35rem; }
.legacy-content .field-error.show { display: block; }
.legacy-content .form-control.is-invalid, .legacy-content .form-select.is-invalid { border-color: var(--c-danger); }
.legacy-content .form-assurance { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem 1.25rem; margin-top: 1.25rem; font-size: .85rem; }
.legacy-content .form-assurance li { display: flex; align-items: center; gap: .4rem; color: var(--c-muted-dark); }
.legacy-content .form-assurance .bi { color: var(--c-success); }
.legacy-content .new-home .form-check-label { font-size: .88rem; color: var(--c-muted-dark); }
@media (max-width: 767.98px) {
  .legacy-content .svc-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .legacy-content .step-nav { flex-wrap: wrap; }
  .legacy-content .step-nav .btn-lg { flex: 1; }
}

.legacy-content .callback-form { max-width: 680px; margin: 0 auto; }
.legacy-content .callback-fields { display: flex; gap: .6rem; }
.legacy-content .callback-fields input { flex: 1; min-width: 0; height: 56px; padding: 0 1.25rem; border-radius: 999px; border: 1px solid rgba(255,255,255,.22); background: rgba(255,255,255,.08); color: #fff; font: inherit; font-size: 1rem; }
.legacy-content .callback-fields input::placeholder { color: rgba(255,255,255,.6); }
.legacy-content .callback-fields input:focus { outline: none; border-color: var(--c-cyan); background: rgba(255,255,255,.12); }
.legacy-content .callback-fields input.is-invalid { border-color: #F59E9E; }
.legacy-content .callback-fields .btn { flex: none; height: 56px; white-space: nowrap; }
.legacy-content .new-home .callback-consent { font-size: .8rem; color: rgba(255,255,255,.62); margin: .9rem 0 0; text-align: center; }
.legacy-content .new-home .callback-consent a { color: #fff; text-decoration: underline; }
.legacy-content .callback-status { margin-top: .9rem; font-weight: 700; text-align: center; }
.legacy-content .callback-status.ok { color: #7EE2C0; }
.legacy-content .callback-status.err { color: #FFB4B4; }
.legacy-content .new-home .final-cta-alt { margin: 1.5rem 0 0; color: rgba(255,255,255,.8); text-align: center; }
.legacy-content .new-home .final-cta-alt a { color: #fff; font-weight: 800; text-decoration: underline; }
@media (max-width: 575.98px) {
  .legacy-content .callback-fields { flex-direction: column; }
  .legacy-content .callback-fields .btn { width: 100%; }
}

/* 13d. Homepage cards exactly as the design: photo on top, icon badge over the photo */
.legacy-content .new-home .service-body,
.legacy-content .new-home .product-body { position: relative; display: flex; flex-direction: column; flex-grow: 1; height: auto; padding: 0 1.5rem 1.5rem; }
.legacy-content .new-home .service-body .service-icon {
  position: relative; z-index: 2; margin: -28px 0 1rem; width: 56px; height: 56px;
  background: #fff; box-shadow: var(--sh-md, 0 8px 20px rgba(16,36,58,.12));
}
.legacy-content .new-home .service-card:hover .service-body .service-icon { background: var(--c-blue); color: #fff; }
.legacy-content .new-home .product-card > .product-icon {
  position: relative; z-index: 2; margin: -24px 0 0 1.25rem; width: 48px; height: 48px;
  background: #fff; box-shadow: var(--sh-md, 0 8px 20px rgba(16,36,58,.12));
}
.legacy-content .new-home .product-card:hover > .product-icon { background: var(--c-blue); color: #fff; }
.legacy-content .new-home .product-body { padding: .9rem 1.25rem 1.25rem; }
.legacy-content .new-home .service-points { flex-grow: 1; }
.legacy-content .new-home .product-card p { flex-grow: 1; }
/* 9th (UPS) card: keep the photo-on-top layout on tablets too */
@media (max-width: 991.98px) {
  .legacy-content .new-home .product-col-wide .product-card { flex-direction: column; align-items: stretch; }
}
@media (max-width: 767.98px) {
  .legacy-content .new-home .service-body { padding: 0 1.15rem 1.25rem; }
  .legacy-content .new-home .product-body { padding: .75rem 1rem 1rem; }
  .legacy-content .new-home .product-card > .product-icon { width: 42px; height: 42px; margin: -21px 0 0 1rem; }
}

/* 13e. Tablet: back-to-top on the right, above the Call / Consultation pill (as in the design) */
@media (min-width: 768px) and (max-width: 1199.98px) {
  body.has-mobile-cta .back-to-top { left: auto !important; right: 26px !important; bottom: 112px !important; }
  body.has-mobile-cta .whatsapp-btn { left: 20px; right: auto; bottom: 20px; }
}