/* =========================================================
   ZYFLOX – OPTIMIZATION OVERRIDE
   ---------------------------------------------------------
   Isko app.min.css ke BAAD load karo (header.php me):
   <link href="/assets/css/app.min.css?v=..." rel="stylesheet">
   <link href="/assets/css/zyflox-optimize.css?v=1" rel="stylesheet">   <-- ye line add karo

   Ye file kuch bhi delete nahi karti, sirf zaroori jagah override karti hai.
   Isliye 18k-line wali CSS todne ka risk nahi hai.
   ========================================================= */

/* ---------------------------------------------------------
   1) FONT FIX (sabse important)
   Site "Barlow" font load karti hai (assets/fonts/barlow-*.woff2)
   lekin body me "Manrope" maanga gaya hai jo kahin define hi nahi.
   Isliye poora text abhi Arial me render ho raha hai + Barlow bytes waste.
   Neeche Barlow ko force kar rahe hain.
--------------------------------------------------------- */
body,
h1, h2, h3, h4, h5, h6,
p, a, span, li, label, input, select, textarea, button,
.btn, .btn-primary {
  font-family: "Barlow", "Segoe UI", Arial, sans-serif !important;
}

/* ---------------------------------------------------------
   2) MOBILE TAP TARGETS (Google mobile-usability + conversions)
   Har clickable button/link kam se kam 44-48px height ho.
--------------------------------------------------------- */
@media (max-width: 767px) {
  .btn,
  .btn-primary,
  .submit-btn,
  .nav-cta,
  .header-call-action,
  .quote-modal-phone,
  .floating-contact-btn,
  .navbar-toggler {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
  }

  /* Primary CTA mobile pe full-width + thumb-friendly */
  .submit-btn,
  form .btn-primary {
    width: 100%;
    font-size: 1.05rem;
    padding: 14px 20px;
  }

  /* Form inputs 16px+ taaki iOS input pe auto-zoom na kare */
  .quote-form input,
  .quote-form select,
  .quote-form textarea,
  input[type="text"],
  input[type="tel"],
  input[type="email"],
  select,
  textarea {
    font-size: 16px !important;
    min-height: 48px;
    line-height: 1.4;
  }
  .quote-form textarea {
    min-height: 110px;
  }
}

/* ---------------------------------------------------------
   3) MOBILE TYPOGRAPHY POLISH
   Heading thoda chhota + tight, paragraph readable.
--------------------------------------------------------- */
@media (max-width: 767px) {
  h1, .inner-hero h1 {
    font-size: 2.15rem;
    line-height: 1.15;
    letter-spacing: -0.01em;
  }
  h2 { font-size: 1.7rem; line-height: 1.2; }
  h3 { font-size: 1.2rem; }

  p {
    font-size: 1rem;
    line-height: 1.65;
  }

  /* Section padding thoda kam taaki mobile pe content jaldi dikhe */
  .section-pad     { padding-top: 2.6rem; padding-bottom: 2.6rem; }
  .section-pad-lg  { padding-top: 3rem;   padding-bottom: 3rem; }
}

@media (max-width: 380px) {
  h1, .inner-hero h1 { font-size: 1.9rem; }
  h2 { font-size: 1.5rem; }
}

/* ---------------------------------------------------------
   4) PARAGRAPH CONTRAST GUARD (accessibility)
   --zf-muted (#aab3c2) light backgrounds par bahut halka lagta hai.
   Jahan white/light card ho wahan text thoda gehra karo.
   NOTE: agar aapke light sections ka class alag hai to selector adjust karna.
--------------------------------------------------------- */
.bg-white p,
.contact-card p,
.thank-you-card p,
section[style*="--zf-white"] p {
  color: #4a5568;
}

/* ---------------------------------------------------------
   5) FLOATING WHATSAPP / CALL BUTTONS – mobile polish
   Footer me pehle se floating WhatsApp + Call buttons hain.
   Mobile par inhe compact + tap-friendly rakho, overlap na ho.
--------------------------------------------------------- */
@media (max-width: 767px) {
  .floating-contact-btn {
    min-height: 48px;
  }
  /* WhatsApp/Call text lambi na ho to buttons neat rahein */
  .floating-contact-copy small {
    font-size: 0.7rem;
  }
}

/* ---------------------------------------------------------
   6) DESKTOP QUOTE POPUP – vertical scroll fix + clean look
   Problem: form column 760px pe capped tha, fields zyada
   the -> andar scrollbar aa jata tha. Ab height content ke
   hisaab se flexible + spacing tight, taaki ek clean look aaye
   bina awkward inner-scroll ke.
--------------------------------------------------------- */
@media (min-width: 992px) {
  /* Modal ki height ab content follow karegi, viewport tak */
  .quote-modal .modal-dialog {
    max-width: min(1080px, calc(100vw - 40px));
  }
  .quote-modal-content {
    max-height: calc(100vh - 32px);
  }
  .quote-modal-grid {
    height: auto;
    min-height: 0;
    max-height: calc(100vh - 32px);
    align-items: stretch;
  }

  /* Left intro column: short content, no scroll, nicely centered */
  .quote-modal-intro {
    overflow: hidden;
    justify-content: center;
    gap: 1.1rem;
    padding: 2.25rem 2.25rem;
  }
  .quote-modal-intro h2 {
    max-width: none;
    font-size: clamp(1.82rem, 2vw, 2.1rem);
    line-height: 1.12;
    letter-spacing: -0.03em;
  }
  .quote-modal-intro h2 span {
    display: block;
    white-space: nowrap;
  }
  .quote-modal-intro img { margin-bottom: 0.5rem; }
  .quote-modal-points { margin-top: 1rem; }
  .quote-modal-points span { padding: 0.7rem 1rem 0.7rem 2.25rem; }
  .quote-modal-points span::before { top: 1.15rem; }

  /* Right form column: tighter spacing so it fits without scroll */
  .quote-popup-form {
    padding: 2rem 2.25rem;
    justify-content: center;
  }
  .quote-popup-form .quote-popup-heading { margin-bottom: 1.15rem; }
  .quote-popup-form .quote-popup-heading h3 { margin-bottom: 0.55rem; }
  .quote-popup-form .quote-popup-heading span {
    margin: 0;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.88rem;
    font-weight: 600;
    line-height: 1.5;
    letter-spacing: 0;
    text-transform: none;
  }
  .quote-popup-form .form-grid { gap: 0.7rem; }
  .quote-popup-form .form-field label { margin-bottom: 0.25rem; }
  .quote-popup-form .form-field input,
  .quote-popup-form .form-field select,
  .quote-popup-form .form-field textarea {
    padding-top: 0.6rem;
    padding-bottom: 0.6rem;
  }
  .quote-popup-form .quote-popup-form textarea,
  .quote-popup-form textarea {
    min-height: 70px;
  }
  .quote-popup-form .submit-btn { margin-top: 0.9rem; }

  /* Agar chhoti laptop screen ho to sirf form column smoothly
     scroll kare, poora modal nahi (clean look) */
  .quote-popup-form { overflow-y: auto; }
}

/* =========================================================
   MOBILE UI OVERHAUL  (v2)
   Requests: consistent left/right spacing, uniform text
   sizes, shorter popup, compact map cities, footer accordion
   ========================================================= */

@media (max-width: 767px) {
  /* -------------------------------------------------------
     A) CONSISTENT LEFT/RIGHT SPACING (har section same)
     Hero jaisa clean gutter sab jagah - 20px dono taraf.
  ------------------------------------------------------- */
  .container {
    padding-left: 20px !important;
    padding-right: 20px !important;
  }

  /* -------------------------------------------------------
     B) UNIFORM TEXT SCALE (koi bada koi chhota na lage)
     Ek consistent hierarchy - heading > subheading > body.
  ------------------------------------------------------- */
  h1, .hero-title, .inner-hero h1 {
    font-size: 2.15rem !important;
    line-height: 1.16 !important;
    letter-spacing: -0.01em;
  }
  h2 { font-size: 1.72rem !important; line-height: 1.2 !important; }
  h3 { font-size: 1.28rem !important; line-height: 1.25 !important; }
  h4 { font-size: 1.08rem !important; line-height: 1.3 !important; }
  /* subtitle / eyebrow strong lines */
  .hero-slide strong, .hero-copy + strong, section strong.subtitle,
  .hero-slide-content strong {
    font-size: 1.02rem !important;
    line-height: 1.35 !important;
  }
  .section-label, .eyebrow {
    font-size: 0.78rem !important;
    letter-spacing: 0.12em;
  }
  p, .hero-copy, li {
    font-size: 1rem !important;
    line-height: 1.6 !important;
  }
  /* saare buttons same text size + look */
  .btn, .btn-primary, .btn-outline, .submit-btn,
  .hero-actions .btn, .footer-cta-button {
    font-size: 1rem !important;
    font-weight: 700;
  }

  /* -------------------------------------------------------
     C) POPUP FORM – mobile pe chhota karo
     Sirf LOGO + ek heading rakho, baaki intro text hatao.
  ------------------------------------------------------- */
  .quote-modal-intro {
    padding: 1.4rem 1.4rem 0.5rem !important;
    gap: 0.5rem !important;
  }
  .quote-modal-intro .section-label,
  .quote-modal-intro p,
  .quote-modal-points,
  .quote-modal-phone,
  .quote-popup-form .quote-popup-heading {
    display: none !important;
  }
  .quote-modal-intro img {
    width: 150px !important;
    margin: 0 auto 0.3rem !important;
  }
  .quote-modal-intro h2 {
    font-size: 1.3rem !important;
    text-align: center;
    max-width: 100% !important;
    margin: 0 auto !important;
  }
  .quote-modal-intro h2 span {
    display: block;
  }
  .quote-popup-form { padding: 1.25rem 1.4rem 1.6rem !important; }
  .quote-popup-form .form-grid { gap: 0.7rem !important; }

  /* -------------------------------------------------------
     D) MAP CITIES – long list ko compact 2-column karo
  ------------------------------------------------------- */
  .network-board .network-location-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 0.5rem !important;
  }
  .network-board .network-location-card {
    grid-template-columns: 22px minmax(0, 1fr) !important;
    grid-template-areas: "icon city" !important;
    min-height: 44px !important;
    padding: 0.5rem 0.6rem !important;
    column-gap: 0.5rem !important;
  }
  .network-board .network-location-icon {
    width: 22px !important;
    height: 22px !important;
    font-size: 0.65rem !important;
  }
  .network-location-card h4 {
    font-size: 0.82rem !important;
    white-space: nowrap;
  }
  .network-board .network-location-card p { display: none !important; }
}

@media (max-width: 420px) {
  /* chhoti screen pe bhi 2-column hi rahe (single-col long list na ho) */
  .network-board .network-location-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

/* -------------------------------------------------------
   E) FOOTER ACCORDION (Quick Links + Services) – mobile
   JS in-DOM 'nav.footer-column' pe 'is-collapsible' class
   lagata hai. Yaha collapse/expand ka look define hai.
------------------------------------------------------- */
@media (max-width: 767px) {
  /* Footer section labels: keep compact and readable on phone screens. */
  .site-footer .footer-column > h2,
  .site-footer nav.footer-column.is-collapsible > h2 {
    font-size: clamp(0.82rem, 3.5vw, 0.95rem) !important;
    line-height: 1.25 !important;
    font-weight: 800 !important;
    letter-spacing: 0.075em !important;
  }

  nav.footer-column.is-collapsible > h2 {
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0;
    min-height: 48px;
    padding: 0.8rem 0;
    border-bottom: 1px solid rgba(198, 206, 218, 0.14);
    user-select: none;
  }
  nav.footer-column.is-collapsible > h2::after {
    content: "\002B"; /* + */
    font-size: 1.05rem;
    line-height: 1;
    font-weight: 400;
    transition: transform 220ms ease;
  }
  nav.footer-column.is-collapsible.is-open > h2::after {
    content: "\2212"; /* − */
  }
  nav.footer-column.is-collapsible > ul {
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transition: max-height 300ms ease, opacity 220ms ease, padding 220ms ease;
    padding: 0;
  }
  nav.footer-column.is-collapsible.is-open > ul {
    max-height: 640px;
    opacity: 1;
    padding-top: 0.6rem;
    padding-bottom: 0.4rem;
  }
}

/* =========================================================
   MOBILE UI v3 – footer space fix, interaction, performance
   ========================================================= */

@media (max-width: 767px) {
  /* -------------------------------------------------------
     F) FOOTER – neeche ka bada empty space hatao + compact
     (footer-bottom me 120px padding tha -> wahi space tha)
  ------------------------------------------------------- */
  footer.site-footer {
    padding-top: 40px !important;
    padding-bottom: 24px !important;
  }
  .footer-bottom {
    padding-top: 20px !important;
    padding-bottom: 8px !important;   /* pehle 120px tha */
    margin-top: 28px !important;      /* pehle 76px tha */
  }
  .footer-main-grid {
    gap: 26px !important;             /* pehle 43px tha */
  }
  .footer-company img {
    width: 150px !important;
    height: auto !important;
  }
  /* CTA banner ("Ready to transform") ko thoda compact karo */
  .footer-cta-banner { padding-top: 2.2rem !important; padding-bottom: 2.2rem !important; }
  .footer-cta-card { padding: 1.6rem 1.4rem !important; }

  /* -------------------------------------------------------
     G) USER INTERACTION – tap feedback (mobile feel better)
  ------------------------------------------------------- */
  .btn, .btn-primary, .btn-outline, .submit-btn,
  .footer-cta-button, .nav-cta, .header-call-action,
  .network-location-card, .home-service-card,
  .customer-type-option, .floating-contact-btn {
    transition: transform 0.12s ease, box-shadow 0.12s ease, opacity 0.12s ease;
    -webkit-tap-highlight-color: transparent;
  }
  .btn:active, .btn-primary:active, .btn-outline:active,
  .submit-btn:active, .footer-cta-button:active,
  .nav-cta:active, .header-call-action:active,
  .floating-contact-btn:active {
    transform: scale(0.97);
    opacity: 0.92;
  }
  .network-location-card:active,
  .home-service-card:active {
    transform: scale(0.985);
  }

  /* hero slider swipe: smoother + hint that it's swipeable */
  .hero-swiper { touch-action: pan-y; }
  .hero-slide { -webkit-tap-highlight-color: transparent; }
}

/* smooth in-page scroll for anchor links (better interaction) */
html {
  scroll-behavior: smooth;
}

/* Quote popup mobile wizard. Step wrappers remain layout-transparent on
   desktop so the existing two-column form stays unchanged. */
.quote-step-back,
.quote-step-next {
  display: none;
}

.quote-form-step,
.quote-form-navigation {
  display: contents;
}

@media (max-width: 767px) {
  .quote-popup-form.is-wizard-ready .quote-form-step {
    display: none;
  }

  .quote-popup-form.is-wizard-ready .quote-form-step.is-active {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0.7rem;
  }

  .quote-popup-form.is-wizard-ready .quote-form-navigation {
    display: grid;
    gap: 0.65rem;
    margin-top: 0.95rem;
  }

  .quote-popup-form.is-wizard-ready.is-step-1 .quote-form-navigation {
    grid-template-columns: minmax(0, 1fr);
  }

  .quote-popup-form.is-wizard-ready.is-step-2 .quote-form-navigation {
    grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr);
  }

  .quote-popup-form.is-wizard-ready .quote-form-navigation .btn {
    width: 100%;
    min-width: 0;
    min-height: 50px;
    margin: 0 !important;
  }

  .quote-popup-form.is-wizard-ready.is-step-1 .quote-step-next,
  .quote-popup-form.is-wizard-ready.is-step-2 .quote-step-back,
  .quote-popup-form.is-wizard-ready.is-step-2 .submit-btn {
    display: inline-flex;
  }

  .quote-popup-form.is-wizard-ready.is-step-1 .quote-step-back,
  .quote-popup-form.is-wizard-ready.is-step-1 .submit-btn,
  .quote-popup-form.is-wizard-ready.is-step-2 .quote-step-next {
    display: none !important;
  }

  .quote-popup-form.is-wizard-ready .form-status {
    margin-top: 0.68rem;
  }
}

@media (max-width: 380px) {
  .quote-popup-form.is-wizard-ready.is-step-2 .quote-form-navigation {
    grid-template-columns: minmax(0, 0.62fr) minmax(0, 1.38fr);
  }

  .quote-popup-form.is-wizard-ready .quote-form-navigation .btn {
    padding-inline: 0.7rem;
    font-size: 0.9rem !important;
  }
}

/* Use the homepage hero's exact silver shade for every meaningful heading. */
body h1,
body h2,
body h3,
body h4,
body h5,
body h6,
body .hero-title {
  color: var(--zf-silver, #c6ceda) !important;
}

/* About / Operating Principles: reference-led split cards + premium media. */
.page-about .principles-showcase {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background:
    radial-gradient(circle at 82% 18%, rgba(44, 118, 181, 0.16), transparent 31%),
    linear-gradient(180deg, #071b37 0%, #06162e 100%);
}

.page-about .principles-showcase::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.18;
  background:
    linear-gradient(rgba(142, 200, 245, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(142, 200, 245, 0.08) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to bottom, transparent, #000 16%, #000 86%, transparent);
}

.page-about .principles-showcase-heading {
  max-width: 960px;
  margin-bottom: clamp(2rem, 3vw, 2.75rem);
}

.page-about .principles-showcase-heading h2 {
  max-width: none;
  color: #eef4fb;
  font-size: clamp(2.55rem, 3.25vw, 3.5rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.page-about .principles-title-line {
  display: block;
  white-space: nowrap;
}

.page-about .principles-showcase-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(390px, 0.96fr);
  gap: clamp(1.25rem, 2.6vw, 2.35rem);
  align-items: stretch;
}

.page-about .principles-card-list {
  display: grid;
  grid-template-rows: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 1.7vw, 1.35rem);
}

.page-about .principles-card {
  position: relative;
  overflow: hidden;
  display: grid;
  align-content: center;
  gap: 1.05rem;
  min-height: 0;
  padding: clamp(1.35rem, 2.2vw, 2rem);
  border: 1px solid rgba(172, 202, 231, 0.27);
  border-radius: 20px;
  background: linear-gradient(145deg, rgba(23, 58, 99, 0.72), rgba(6, 24, 52, 0.86));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07), 0 22px 52px rgba(1, 9, 25, 0.2);
  transition: transform 240ms ease, border-color 240ms ease, background 240ms ease;
}

.page-about .principles-card::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 38%;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(142, 200, 245, 0.78));
}

.page-about .principles-card.is-featured {
  border-color: rgba(142, 200, 245, 0.46);
  background: linear-gradient(135deg, #1d609b 0%, #123f70 55%, #0a294f 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 26px 58px rgba(2, 12, 34, 0.32);
}

.page-about .principles-card:hover {
  transform: translateY(-4px);
  border-color: rgba(184, 216, 242, 0.48);
}

.page-about .principles-card-head {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 1rem;
  align-items: center;
}

.page-about .principles-card-icon {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  color: #164f80;
  border: 1px solid rgba(224, 235, 246, 0.85);
  border-radius: 16px;
  background: linear-gradient(145deg, #f4f7fb, #b9c8d8);
  box-shadow: 0 12px 26px rgba(1, 8, 24, 0.28);
  font-size: 1.18rem;
}

.page-about .principles-card-index {
  display: block;
  margin-bottom: 0.2rem;
  color: #8ec8f5;
  font-size: 0.75rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.12em;
}

.page-about .principles-card h3 {
  color: #fff;
  font-size: clamp(1.18rem, 1.65vw, 1.55rem);
  line-height: 1.18;
  letter-spacing: -0.018em;
}

.page-about .principles-card p {
  margin: 0;
  color: rgba(229, 237, 246, 0.83);
  font-size: clamp(0.9rem, 1vw, 1rem) !important;
  line-height: 1.58 !important;
}

.page-about .principles-showcase-media {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 680px;
  margin: 0;
  border: 1px solid rgba(184, 216, 242, 0.3);
  border-radius: 24px;
  background: #0b2347;
  box-shadow: 0 30px 68px rgba(1, 9, 25, 0.34);
}

.page-about .principles-showcase-media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(5, 20, 43, 0.05), rgba(5, 20, 43, 0.26)),
    linear-gradient(135deg, rgba(78, 151, 210, 0.08), transparent 48%);
}

.page-about .principles-showcase-media img {
  width: 100%;
  height: 100%;
  min-height: 680px;
  object-fit: cover;
  object-position: center center;
  filter: saturate(0.9) contrast(1.03);
  transition: transform 700ms ease;
}

.page-about .principles-showcase-media:hover img {
  transform: scale(1.025);
}

@media (max-width: 991px) {
  .page-about .principles-showcase-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .page-about .principles-showcase-media {
    order: -1;
    width: min(100%, 640px);
    min-height: 0;
    aspect-ratio: 4 / 5;
    justify-self: center;
  }

  .page-about .principles-showcase-media img {
    min-height: 0;
  }

  .page-about .principles-card-list {
    grid-template-rows: none;
  }
}

@media (max-width: 767px) {
  .page-about .principles-showcase-heading {
    max-width: 100%;
    margin-bottom: 1.65rem;
  }

  .page-about .principles-showcase-heading h2 {
    max-width: 100%;
    font-size: clamp(1.9rem, 8.4vw, 2.28rem) !important;
    line-height: 1.12 !important;
    letter-spacing: -0.025em;
  }

  .page-about .principles-showcase-layout {
    gap: 1rem;
  }

  .page-about .principles-showcase-media {
    aspect-ratio: 4 / 5;
    border-radius: 18px;
  }

  .page-about .principles-card-list {
    gap: 0.82rem;
  }

  .page-about .principles-card {
    gap: 0.9rem;
    padding: 1.15rem;
    border-radius: 16px;
  }

  .page-about .principles-card-head {
    grid-template-columns: 50px minmax(0, 1fr);
    gap: 0.85rem;
  }

  .page-about .principles-card-icon {
    width: 50px;
    height: 50px;
    border-radius: 13px;
    font-size: 1rem;
  }

  .page-about .principles-card h3 {
    font-size: 1.14rem !important;
    line-height: 1.22 !important;
  }

  .page-about .principles-card p {
    font-size: 0.92rem !important;
    line-height: 1.56 !important;
  }
}

@media (max-width: 380px) {
  .page-about .principles-title-line {
    white-space: normal;
  }

  .page-about .principles-card {
    padding: 1rem;
  }

  .page-about .principles-card-head {
    grid-template-columns: 46px minmax(0, 1fr);
    gap: 0.72rem;
  }

  .page-about .principles-card-icon {
    width: 46px;
    height: 46px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-about .principles-card,
  .page-about .principles-showcase-media img {
    transition: none;
  }
}

/* Floating Call Now: calm double-ring pulse with a short handset nudge. */
.floating-contact-btn.floating-call {
  position: relative;
  isolation: isolate;
  overflow: visible;
}

.floating-contact-btn.floating-call::before,
.floating-contact-btn.floating-call::after {
  position: absolute;
  z-index: -1;
  inset: -7px;
  content: "";
  pointer-events: none;
  border: 2px solid rgba(105, 183, 241, 0.46);
  border-radius: 50%;
  opacity: 0;
  animation: zfFloatingCallPulse 3.6s cubic-bezier(0.2, 0.7, 0.25, 1) infinite;
}

.floating-contact-btn.floating-call::after {
  animation-delay: 0.7s;
}

.floating-contact-btn.floating-call .floating-contact-icon i {
  transform-origin: 50% 58%;
  animation: zfFloatingCallRing 3.6s ease-in-out infinite;
}

@keyframes zfFloatingCallPulse {
  0%, 42%, 100% {
    opacity: 0;
    transform: scale(0.88);
  }
  50% { opacity: 0.72; }
  72% {
    opacity: 0;
    transform: scale(1.34);
  }
}

@keyframes zfFloatingCallRing {
  0%, 44%, 64%, 100% { transform: rotate(0deg); }
  48% { transform: rotate(-12deg); }
  52% { transform: rotate(10deg); }
  56% { transform: rotate(-8deg); }
  60% { transform: rotate(5deg); }
}

@media (prefers-reduced-motion: reduce) {
  .floating-contact-btn.floating-call::before,
  .floating-contact-btn.floating-call::after,
  .floating-contact-btn.floating-call .floating-contact-icon i {
    animation: none;
  }
}

/* Site-wide mobile conversion rail; on the homepage it replaces the repeated
   buttons inside every hero slide. */
.mobile-sticky-quote {
  display: none;
}

@media (max-width: 767px) {
  .page-home .hero-slider-section .hero-actions {
    display: none !important;
  }

  .mobile-sticky-quote {
    position: fixed;
    bottom: max(0.75rem, env(safe-area-inset-bottom));
    left: 50%;
    z-index: 980;
    display: inline-flex;
    width: auto;
    min-width: 190px;
    max-width: min(218px, calc(100vw - 7.5rem));
    min-height: 48px;
    align-items: center;
    justify-content: center;
    gap: 0.58rem;
    padding: 0.72rem 1.1rem;
    color: #f7fbff;
    border: 1px solid rgba(157, 210, 255, 0.58);
    border-radius: 999px;
    background:
      linear-gradient(135deg, rgba(43, 137, 211, 0.98), rgba(11, 53, 112, 0.98));
    box-shadow:
      0 14px 34px rgba(2, 12, 31, 0.38),
      inset 0 1px 0 rgba(255, 255, 255, 0.22);
    font-size: 0.9rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0.01em;
    text-decoration: none;
    white-space: nowrap;
    transform: translateX(-50%);
    -webkit-tap-highlight-color: transparent;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
  }

  .mobile-sticky-quote:active {
    transform: translateX(-50%) scale(0.97);
  }

  .mobile-sticky-quote:focus-visible {
    outline: 3px solid rgba(166, 220, 255, 0.78);
    outline-offset: 3px;
  }

  /* Keep the existing quick-contact rail clear of the new bottom CTA. */
  body .back-to-top {
    bottom: calc(max(0.75rem, env(safe-area-inset-bottom)) + 60px) !important;
  }

  body .floating-contact-actions {
    bottom: calc(max(0.75rem, env(safe-area-inset-bottom)) + 126px) !important;
  }

  .page-home .quote-popup-form .quote-form-navigation {
    display: block;
    margin-top: 0.95rem;
  }

  .page-home .quote-popup-form .quote-form-navigation .submit-btn {
    display: inline-flex;
    width: 100%;
    min-height: 50px;
    margin: 0 !important;
  }
}

/* Homepage hero pagination: compact, fixed-bottom dots on every viewport.
   The visible circle is separate from the larger keyboard/touch target. */
.page-home .hero-swiper-controls {
  position: absolute;
  right: auto;
  bottom: clamp(0.9rem, 1.8vw, 1.4rem);
  left: 50%;
  z-index: 20;
  display: flex !important;
  width: auto;
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  visibility: visible;
  opacity: 1;
  transform: translateX(-50%);
  pointer-events: auto;
}

.page-home .hero-swiper-pagination {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
  min-width: 0;
  min-height: 44px;
  padding: 0.25rem 0.45rem;
  border: 1px solid rgba(221, 233, 246, 0.22);
  border-radius: 999px;
  background: rgba(4, 18, 40, 0.66);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.page-home .hero-swiper-pagination .swiper-pagination-bullet {
  position: relative;
  display: grid;
  width: 32px !important;
  height: 32px !important;
  flex: 0 0 32px;
  margin: 0 !important;
  padding: 0;
  place-items: center;
  border: 0 !important;
  border-radius: 50%;
  background: transparent !important;
  opacity: 1;
  transform: none !important;
  cursor: pointer;
}

.page-home .hero-swiper-pagination .swiper-pagination-bullet::before {
  width: 8px;
  height: 8px;
  content: "";
  border: 1px solid rgba(233, 241, 249, 0.72);
  border-radius: 50%;
  background: rgba(198, 211, 225, 0.62);
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.page-home .hero-swiper-pagination .swiper-pagination-bullet.is-active::before,
.page-home .hero-swiper-pagination .swiper-pagination-bullet-active::before,
.page-home .hero-swiper-pagination .swiper-pagination-bullet[aria-current="true"]::before {
  border-color: #f5f9fd;
  background: #f5f9fd;
  box-shadow: 0 0 0 4px rgba(75, 160, 225, 0.24), 0 0 16px rgba(113, 190, 244, 0.52);
  transform: scale(1.28);
}

.page-home .hero-swiper-pagination .swiper-pagination-bullet:focus-visible {
  outline: 2px solid rgba(132, 202, 250, 0.96);
  outline-offset: 1px;
}

@media (max-width: 767px) {
  .page-home .hero-swiper-controls {
    /* Keep dots above the fixed mobile quote CTA while remaining anchored to
       the lower edge of the hero. */
    bottom: calc(max(0.75rem, env(safe-area-inset-bottom)) + 4.4rem);
  }

  .page-home .hero-swiper-pagination {
    min-height: 40px;
    padding: 0.2rem 0.35rem;
  }

  .page-home .hero-swiper-pagination .swiper-pagination-bullet {
    width: 30px !important;
    height: 30px !important;
    flex-basis: 30px;
  }
}

@media (max-width: 360px) {
  .mobile-sticky-quote {
    min-width: 178px;
    max-width: 190px;
    padding-inline: 0.9rem;
    font-size: 0.84rem;
  }
}

/* Homepage client proof: compact social proof directly after the hero. */
.page-home .client-proof-section {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(3rem, 5.5vw, 5.4rem) 0;
  border-bottom: 1px solid rgba(142, 200, 245, 0.16);
  background:
    radial-gradient(circle at 84% 18%, rgba(43, 120, 186, 0.18), transparent 34%),
    linear-gradient(180deg, #0a2348 0%, #071a35 100%);
}

.page-home .client-proof-section::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.18;
  background:
    linear-gradient(rgba(142, 200, 245, 0.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(142, 200, 245, 0.09) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent);
}

.page-home .client-proof-shell {
  display: grid;
  grid-template-columns: minmax(280px, 0.82fr) minmax(0, 1.5fr);
  gap: clamp(2rem, 4.5vw, 4.6rem);
  align-items: center;
  padding: clamp(1.7rem, 3.5vw, 3.25rem);
  border: 1px solid rgba(166, 204, 237, 0.28);
  border-radius: 24px;
  background: linear-gradient(145deg, rgba(20, 61, 107, 0.7), rgba(5, 20, 44, 0.9));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 28px 62px rgba(1, 9, 25, 0.3);
}

.page-home .client-proof-intro {
  min-width: 0;
}

.page-home .client-proof-intro .section-label {
  margin-bottom: 0.9rem;
}

.page-home .client-proof-intro h2 {
  max-width: 12ch;
  margin: 0 0 1rem;
  color: var(--zf-silver, #c6ceda);
  font-size: clamp(2.15rem, 3vw, 3.35rem);
  line-height: 1.06;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.page-home .client-proof-intro p {
  max-width: 40rem;
  margin: 0 0 1.5rem;
  color: rgba(224, 233, 243, 0.82);
  font-size: 1rem;
  line-height: 1.65;
}

.page-home .client-proof-cta {
  width: fit-content;
  min-width: 0;
}

.page-home .client-proof-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.78rem;
  min-width: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.page-home .client-proof-card {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 18px;
  gap: 0.85rem;
  min-width: 0;
  min-height: 78px;
  align-items: center;
  padding: 0.88rem 1rem;
  border: 1px solid rgba(166, 204, 237, 0.22);
  border-radius: 15px;
  background: linear-gradient(145deg, rgba(13, 45, 86, 0.94), rgba(7, 28, 59, 0.96));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition: transform 220ms ease, border-color 220ms ease, background 220ms ease;
}

.page-home .client-proof-card:hover {
  transform: translateY(-3px);
  border-color: rgba(184, 216, 242, 0.48);
  background: linear-gradient(145deg, rgba(24, 75, 125, 0.96), rgba(8, 34, 70, 0.98));
}

.page-home .client-proof-mark {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  color: #123f70;
  border: 1px solid rgba(230, 239, 247, 0.75);
  border-radius: 12px;
  background: linear-gradient(145deg, #f1f5f9, #c6d2df);
  box-shadow: 0 9px 22px rgba(1, 9, 25, 0.24);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.page-home .client-proof-card strong {
  min-width: 0;
  color: #eef4fa;
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.3;
}

.page-home .client-proof-card > i {
  color: #8ec8f5;
  font-size: 0.92rem;
}

@media (max-width: 991px) {
  .page-home .client-proof-shell {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.75rem;
  }

  .page-home .client-proof-intro h2 {
    max-width: 18ch;
  }
}

@media (max-width: 767px) {
  .page-home .client-proof-section {
    padding: 2.4rem 0;
  }

  .page-home .client-proof-section > .container {
    padding-inline: 1rem;
  }

  .page-home .client-proof-shell {
    gap: 1.4rem;
    padding: 1.25rem;
    border-radius: 18px;
  }

  .page-home .client-proof-intro h2 {
    max-width: 100%;
    font-size: clamp(1.9rem, 8.2vw, 2.28rem);
    line-height: 1.12;
  }

  .page-home .client-proof-intro p {
    margin-bottom: 1.2rem;
    font-size: 0.94rem;
    line-height: 1.58;
  }

  .page-home .client-proof-cta {
    width: 100%;
  }

  .page-home .client-proof-grid {
    gap: 0.65rem;
  }

  .page-home .client-proof-card {
    grid-template-columns: 42px minmax(0, 1fr) 16px;
    gap: 0.7rem;
    min-height: 70px;
    padding: 0.75rem;
    border-radius: 13px;
  }

  .page-home .client-proof-mark {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    font-size: 0.75rem;
  }

  .page-home .client-proof-card strong {
    font-size: 0.9rem;
  }
}

@media (max-width: 560px) {
  .page-home .client-proof-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .client-proof-card {
    transition: none;
  }
}

/* Compact client wordmark rail based on the supplied reference design. */
.page-home .client-logo-section {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(2.5rem, 4.5vw, 4.25rem) 0;
  border-bottom: 1px solid rgba(142, 200, 245, 0.18);
  background:
    radial-gradient(circle at 10% 8%, rgba(47, 134, 216, 0.24), transparent 30%),
    radial-gradient(circle at 88% 84%, rgba(30, 63, 204, 0.22), transparent 34%),
    linear-gradient(145deg, #102b5f 0%, #0c2150 48%, #081936 100%);
}

.page-home .client-logo-section::before {
  content: "";
  position: absolute;
  right: -9rem;
  bottom: -12rem;
  z-index: -1;
  width: 30rem;
  height: 30rem;
  border: 1px solid rgba(117, 185, 255, 0.12);
  border-radius: 50%;
  box-shadow:
    0 0 0 4rem rgba(47, 134, 216, 0.035),
    0 0 0 8rem rgba(47, 134, 216, 0.025);
  pointer-events: none;
}

.page-home .client-logo-showcase {
  position: relative;
  overflow: hidden;
  padding: clamp(1.8rem, 3.2vw, 2.8rem) 0;
  border: 1px solid rgba(198, 206, 218, 0.2);
  border-radius: clamp(22px, 2.4vw, 32px);
  background:
    radial-gradient(circle at 86% 8%, rgba(47, 134, 216, 0.18), transparent 28%),
    linear-gradient(135deg, rgba(12, 43, 95, 0.96) 0%, rgba(8, 31, 82, 0.97) 52%, rgba(6, 25, 54, 0.98) 100%);
  box-shadow:
    0 34px 80px rgba(3, 13, 32, 0.38),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.page-home .client-logo-heading {
  display: grid;
  max-width: 780px;
  justify-items: center;
  margin: 0 auto clamp(1.65rem, 3vw, 2.5rem);
  padding-inline: clamp(1rem, 4vw, 2.5rem);
  text-align: center;
}

.page-home .client-logo-heading .section-label {
  justify-content: center;
  margin-bottom: 0.65rem;
  color: #75b9ff;
}

.page-home .client-logo-heading .section-label::before {
  background: linear-gradient(90deg, #1e3fcc, #2f86d8);
  box-shadow: 0 0 16px rgba(47, 134, 216, 0.28);
}

.page-home .client-logo-heading h2 {
  max-width: 24ch;
  margin: 0;
  color: #f4f8ff;
  background: linear-gradient(92deg, #ffffff 0%, #dbe8f6 58%, #9fc9ef 100%);
  background-clip: text;
  -webkit-background-clip: text;
  font-size: clamp(1.55rem, 2.5vw, 2.25rem);
  line-height: 1.18;
  letter-spacing: -0.025em;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 10px 32px rgba(3, 13, 32, 0.28);
  text-wrap: balance;
}

.page-home .client-logo-cta {
  justify-content: center;
  margin-top: 0.8rem;
  color: #75b9ff;
  font-size: 0.92rem;
}

.page-home .client-logo-controls {
  position: absolute;
  top: 1.4rem;
  right: 1rem;
  z-index: 2;
  display: flex;
  gap: 0.5rem;
}

.page-home .client-logo-controls button {
  display: grid;
  width: 42px;
  height: 42px;
  min-width: 42px;
  min-height: 42px;
  place-items: center;
  padding: 0;
  color: #eef6ff;
  border: 1px solid rgba(117, 185, 255, 0.34);
  border-radius: 50%;
  background: linear-gradient(145deg, rgba(30, 63, 204, 0.46), rgba(6, 26, 102, 0.82));
  box-shadow:
    0 12px 26px rgba(3, 13, 32, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transition: color 180ms ease, border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.page-home .client-logo-controls button:hover,
.page-home .client-logo-controls button:focus-visible {
  color: #fff;
  border-color: rgba(184, 216, 242, 0.72);
  background: linear-gradient(145deg, #2f86d8, #0b2ea8);
  transform: translateY(-2px);
}

.page-home .client-logo-viewport {
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-behavior: smooth;
  scroll-snap-type: inline mandatory;
  scrollbar-width: none;
  outline: none;
  mask-image: linear-gradient(90deg, transparent 0, #000 4%, #000 96%, transparent 100%);
}

.page-home .client-logo-viewport::-webkit-scrollbar {
  display: none;
}

.page-home .client-logo-viewport:focus-visible {
  box-shadow: inset 0 0 0 2px rgba(142, 200, 245, 0.5);
}

.page-home .client-logo-track {
  display: flex;
  gap: clamp(0.65rem, 1.25vw, 1rem);
  width: max-content;
  min-width: 100%;
  align-items: stretch;
  margin: 0;
  padding: 0.55rem clamp(1.5rem, 4vw, 3.5rem);
  list-style: none;
}

.page-home .client-logo-item {
  position: relative;
  overflow: hidden;
  display: flex;
  width: clamp(230px, 23vw, 310px);
  min-height: 136px;
  flex: 0 0 clamp(230px, 23vw, 310px);
  flex-direction: column;
  gap: 0.7rem;
  align-items: center;
  justify-content: center;
  padding: 1.1rem 1.2rem;
  scroll-snap-align: center;
  border: 1px solid rgba(198, 206, 218, 0.2);
  border-radius: 14px;
  background:
    linear-gradient(145deg, rgba(18, 61, 204, 0.34), rgba(6, 26, 102, 0.64)),
    rgba(7, 25, 63, 0.82);
  box-shadow:
    0 18px 38px rgba(3, 13, 32, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.page-home .client-logo-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, #1e3fcc, #2f86d8);
}

.page-home .client-logo-item:hover {
  border-color: rgba(117, 185, 255, 0.42);
  box-shadow:
    0 22px 46px rgba(3, 13, 32, 0.32),
    0 0 28px rgba(47, 134, 216, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  transform: translateY(-4px);
}

.page-home .client-logo-mark {
  display: grid;
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  place-items: center;
  color: #0c2b5f;
  border: 1px solid rgba(235, 242, 248, 0.78);
  border-radius: 50%;
  background: linear-gradient(145deg, #f8fbff 0%, #dce8f4 58%, #abc9e4 100%);
  box-shadow:
    0 10px 24px rgba(1, 9, 25, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.04em;
}

.page-home .client-logo-item strong {
  display: grid;
  max-width: 20ch;
  min-height: 2.52em;
  place-items: center;
  color: #f4f8ff;
  font-size: clamp(0.94rem, 1.15vw, 1.08rem);
  font-weight: 720;
  line-height: 1.26;
  text-align: center;
  text-wrap: balance;
}

.page-home .client-logo-swipe {
  display: none;
}

@media (max-width: 767px) {
  .page-home .client-logo-section {
    padding: 2rem 0;
  }

  .page-home .client-logo-section > .container {
    padding-inline: 0.85rem;
  }

  .page-home .client-logo-showcase {
    padding: 1.3rem 0 1.1rem;
    border: 1px solid rgba(198, 206, 218, 0.2);
    border-radius: 16px;
    background:
      radial-gradient(circle at 92% 4%, rgba(47, 134, 216, 0.17), transparent 34%),
      linear-gradient(145deg, rgba(12, 43, 95, 0.98), rgba(6, 25, 54, 0.99));
    box-shadow:
      0 24px 54px rgba(3, 13, 32, 0.34),
      inset 0 1px 0 rgba(255, 255, 255, 0.1);
  }

  .page-home .client-logo-heading {
    margin-bottom: 1.1rem;
    padding-inline: 1rem;
  }

  .page-home .client-logo-heading h2 {
    max-width: 100%;
    font-size: clamp(1.45rem, 6.3vw, 1.78rem);
    line-height: 1.18;
  }

  .page-home .client-logo-cta {
    font-size: 0.88rem;
  }

  .page-home .client-logo-controls {
    position: static;
    display: flex;
    justify-content: center;
    margin-top: 0.8rem;
  }

  .page-home .client-logo-viewport {
    mask-image: linear-gradient(90deg, transparent 0, #000 2.5%, #000 97.5%, transparent 100%);
  }

  .page-home .client-logo-track {
    gap: 0.65rem;
    padding: 0.4rem 1rem;
  }

  .page-home .client-logo-item {
    width: min(78vw, 300px);
    min-height: 132px;
    flex-basis: min(78vw, 300px);
    justify-content: center;
    padding: 1rem;
    border-radius: 13px;
  }

  .page-home .client-logo-mark {
    width: 44px;
    height: 44px;
    flex-basis: 44px;
  }

  .page-home .client-logo-item strong {
    font-size: 0.94rem;
  }

}

@media (prefers-reduced-motion: reduce) {
  .page-home .client-logo-viewport {
    scroll-behavior: auto;
  }
}

/* Reference-led industries showcase with a responsive mobile rail. */
.page-home .industry-section {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background:
    radial-gradient(circle at 8% 12%, rgba(47, 134, 216, 0.22), transparent 30%),
    radial-gradient(circle at 92% 88%, rgba(30, 63, 204, 0.2), transparent 34%),
    linear-gradient(145deg, #102b5f 0%, #0c2150 48%, #081936 100%);
}

.page-home .industry-section::before {
  content: "";
  position: absolute;
  top: -10rem;
  right: -8rem;
  z-index: -1;
  width: 31rem;
  height: 31rem;
  border: 1px solid rgba(117, 185, 255, 0.11);
  border-radius: 50%;
  box-shadow:
    0 0 0 4rem rgba(47, 134, 216, 0.03),
    0 0 0 8rem rgba(47, 134, 216, 0.02);
  pointer-events: none;
}

.page-home .industry-section > .container {
  position: relative;
  z-index: 1;
}

.page-home .industry-showcase-panel {
  position: relative;
  padding: clamp(1rem, 2vw, 1.5rem) 0;
}

.page-home .industry-copy {
  display: grid;
  max-width: 900px;
  justify-items: center;
  margin: 0 auto clamp(2rem, 3.5vw, 3rem);
  text-align: center;
}

.page-home .industry-copy .section-label {
  justify-content: center;
  color: #75b9ff;
}

.page-home .industry-copy .section-label::before {
  background: linear-gradient(90deg, #1e3fcc, #2f86d8);
  box-shadow: 0 0 16px rgba(47, 134, 216, 0.28);
}

.page-home .industry-copy h2 {
  max-width: 22ch;
  margin: 0;
  color: #f4f8ff;
  background: linear-gradient(92deg, #ffffff 0%, #dbe8f6 60%, #a7cef1 100%);
  background-clip: text;
  -webkit-background-clip: text;
  font-size: clamp(2rem, 3.4vw, 3.5rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 10px 34px rgba(3, 13, 32, 0.3);
  text-wrap: balance;
}

.page-home .industry-copy p {
  max-width: 78ch;
  margin: 1.15rem auto 1.5rem;
  color: rgba(220, 229, 241, 0.8);
  font-size: clamp(0.94rem, 1vw, 1.05rem);
  line-height: 1.68;
}

.page-home .industry-copy .btn {
  min-width: 178px;
  color: #f3f8ff;
  border-color: rgba(117, 185, 255, 0.38);
  background: linear-gradient(145deg, rgba(30, 63, 204, 0.4), rgba(6, 26, 102, 0.72));
  box-shadow:
    0 14px 30px rgba(3, 13, 32, 0.26),
    inset 0 1px 0 rgba(255, 255, 255, 0.09);
}

.page-home .industry-copy .btn:hover,
.page-home .industry-copy .btn:focus-visible {
  color: #fff;
  border-color: rgba(184, 216, 242, 0.7);
  background: linear-gradient(145deg, #2f86d8, #0b2ea8);
}

.page-home .industry-weave {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(0.75rem, 1.3vw, 1rem);
  margin: 0;
  padding: 0;
}

.page-home .industry-pill,
.page-home .industry-pill.is-wide {
  position: relative;
  display: grid;
  grid-column: auto;
  min-width: 0;
  min-height: 238px;
  align-content: start;
  justify-items: center;
  gap: 0;
  padding: clamp(1.15rem, 1.8vw, 1.55rem);
  overflow: hidden;
  text-align: center;
  border: 1px solid rgba(117, 185, 255, 0.28);
  border-radius: 18px;
  background:
    radial-gradient(circle at 18% 8%, rgba(79, 164, 242, 0.2), transparent 36%),
    linear-gradient(145deg, #123f9a 0%, #0b2d78 48%, #071d4e 100%);
  box-shadow:
    0 20px 44px rgba(3, 13, 32, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.page-home .industry-pill::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, #1e3fcc, #2f86d8 62%, transparent);
}

.page-home .industry-pill:hover {
  border-color: rgba(117, 185, 255, 0.44);
  box-shadow:
    0 24px 48px rgba(3, 13, 32, 0.32),
    0 0 28px rgba(47, 134, 216, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  transform: translateY(-5px);
}

.page-home .industry-pill-icon {
  display: grid;
  width: 62px;
  height: 62px;
  place-items: center;
  margin-bottom: 1rem;
  color: #f4f8ff;
  border: 1px solid rgba(117, 185, 255, 0.42);
  border-radius: 17px;
  background: linear-gradient(145deg, rgba(47, 134, 216, 0.78), rgba(30, 63, 204, 0.68));
  box-shadow:
    0 14px 30px rgba(3, 13, 32, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
  font-size: 1.28rem;
}

.page-home .industry-pill > small {
  position: absolute;
  top: 1rem;
  right: 1rem;
  color: rgba(117, 185, 255, 0.74);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.page-home .industry-pill > strong {
  color: #f4f8ff;
  font-size: clamp(1rem, 1.05vw, 1.14rem);
  font-weight: 850;
  line-height: 1.25;
  text-wrap: balance;
}

.page-home .industry-pill > p {
  margin: 0.7rem 0 0;
  color: rgba(216, 226, 241, 0.74);
  font-size: clamp(0.82rem, 0.75vw, 0.9rem);
  line-height: 1.52;
}

.page-home .industry-mobile-controls,
.page-home .industry-swipe-hint {
  display: none;
}

@media (max-width: 1199px) and (min-width: 768px) {
  .page-home .industry-weave {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .page-home .industry-section {
    padding: 2.25rem 0;
  }

  .page-home .industry-section > .container {
    padding-inline: 0.85rem;
  }

  .page-home .industry-showcase-panel {
    padding: 0.6rem 0 0;
  }

  .page-home .industry-copy {
    margin-bottom: 1.25rem;
    padding-inline: 1.15rem;
  }

  .page-home .industry-copy h2 {
    max-width: 100%;
    font-size: clamp(1.7rem, 7.4vw, 2.1rem);
    line-height: 1.14;
  }

  .page-home .industry-copy p {
    margin: 0.9rem auto 1.15rem;
    font-size: 0.92rem;
    line-height: 1.62;
  }

  .page-home .industry-copy .btn {
    min-width: min(100%, 176px);
  }

  .page-home .industry-mobile-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin: 0.75rem 1rem 0;
  }

  .page-home .industry-mobile-controls button {
    display: grid;
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    place-items: center;
    padding: 0;
    color: #eef6ff;
    border: 1px solid rgba(117, 185, 255, 0.35);
    border-radius: 50%;
    background: linear-gradient(145deg, rgba(30, 63, 204, 0.46), rgba(6, 26, 102, 0.82));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
  }

  .page-home .industry-mobile-controls button:focus-visible,
  .page-home .industry-mobile-controls button:hover {
    border-color: rgba(184, 216, 242, 0.7);
    background: linear-gradient(145deg, #2f86d8, #0b2ea8);
  }

  .page-home .industry-mobile-controls button:disabled {
    color: rgba(216, 226, 241, 0.34);
    border-color: rgba(117, 185, 255, 0.14);
    background: linear-gradient(145deg, rgba(24, 54, 108, 0.46), rgba(6, 22, 55, 0.62));
    box-shadow: none;
    cursor: not-allowed;
    opacity: 0.55;
    transform: none;
  }

  .page-home .industry-mobile-controls > span {
    display: none;
  }

  .page-home .industry-mobile-controls strong {
    color: #75b9ff;
    font-size: 0.98rem;
  }

  .page-home .industry-mobile-controls i {
    font-style: normal;
  }

  .page-home .industry-weave {
    display: flex;
    grid-template-columns: none;
    gap: 0.75rem;
    width: 100%;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-behavior: smooth;
    scroll-snap-type: inline mandatory;
    padding: 0.45rem 1rem 0.6rem;
    scrollbar-width: none;
    mask-image: linear-gradient(90deg, transparent 0, #000 2.5%, #000 97.5%, transparent 100%);
  }

  .page-home .industry-weave::-webkit-scrollbar {
    display: none;
  }

  .page-home .industry-weave:focus-visible {
    box-shadow: inset 0 0 0 2px rgba(117, 185, 255, 0.46);
  }

  .page-home .industry-pill,
  .page-home .industry-pill.is-wide {
    width: min(82vw, 330px);
    min-height: 245px;
    flex: 0 0 min(82vw, 330px);
    padding: 1.25rem;
    scroll-snap-align: center;
    border-radius: 17px;
  }

  .page-home .industry-pill:hover {
    transform: none;
  }

  .page-home .industry-pill-icon {
    width: 58px;
    height: 58px;
    margin-bottom: 0.9rem;
    font-size: 1.2rem;
  }

  .page-home .industry-pill > strong {
    font-size: 1.08rem;
  }

  .page-home .industry-pill > small {
    display: none;
  }

  .page-home .industry-pill > p {
    font-size: 0.88rem;
    line-height: 1.56;
  }

}

@media (max-width: 420px) {
  .page-home .industry-copy {
    padding-inline: 1rem;
  }

  .page-home .industry-pill,
  .page-home .industry-pill.is-wide {
    width: 80vw;
    flex-basis: 80vw;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .industry-weave {
    scroll-behavior: auto;
  }

  .page-home .industry-pill {
    transition: none;
  }
}

/* Dribbble-inspired editorial commitment stage: one visual, compact operating standards. */
.page-home .commitment-section {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background:
    radial-gradient(circle at 8% 8%, rgba(87, 163, 231, 0.18), transparent 28%),
    radial-gradient(circle at 92% 90%, rgba(30, 63, 204, 0.22), transparent 31%),
    linear-gradient(125deg, #071a38 0%, #092654 50%, #0b2b73 100%);
}

.page-home .commitment-section::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.2;
  background:
    linear-gradient(rgba(142, 200, 245, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(142, 200, 245, 0.08) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
  pointer-events: none;
}

.page-home .commitment-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(2rem, 4vw, 3.6rem);
  align-items: stretch;
}

.page-home .commitment-copy {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  column-gap: clamp(2rem, 7vw, 7rem);
  align-items: end;
}

.page-home .commitment-copy .section-label {
  grid-column: 1 / -1;
  color: #a8d4fa;
}

.page-home .commitment-copy .section-label::before {
  background: linear-gradient(90deg, #d9ebfa, #75b9ff);
  box-shadow: 0 0 16px rgba(117, 185, 255, 0.22);
}

.page-home .commitment-copy h2 {
  max-width: 18ch;
  margin: 0;
  color: #f4f8ff;
  background: linear-gradient(98deg, #fff 0%, #dce8f5 58%, #a8cbea 100%);
  background-clip: text;
  -webkit-background-clip: text;
  font-size: clamp(2.35rem, 3.35vw, 3.9rem);
  line-height: 1.04;
  letter-spacing: -0.045em;
  -webkit-text-fill-color: transparent;
  text-wrap: balance;
}

.page-home .commitment-copy p {
  max-width: 49ch;
  margin: 0 0 0.25rem;
  color: rgba(226, 234, 243, 0.8);
  font-size: clamp(0.96rem, 0.94vw, 1.06rem);
  line-height: 1.7;
}

.page-home .commitment-stage {
  display: grid;
  grid-template-columns: minmax(340px, 0.86fr) minmax(0, 1.14fr);
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(139, 192, 238, 0.24);
  border-radius: 26px;
  background: rgba(4, 20, 49, 0.56);
  box-shadow: 0 30px 70px rgba(2, 12, 31, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

.page-home .commitment-visual {
  position: relative;
  min-height: 536px;
  margin: 0;
  overflow: hidden;
}

.page-home .commitment-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(4, 18, 45, 0.08) 45%, rgba(4, 18, 45, 0.78) 100%),
    linear-gradient(0deg, rgba(3, 15, 38, 0.86) 0%, transparent 48%);
  pointer-events: none;
}

.page-home .commitment-visual img {
  width: 100%;
  height: 100%;
  min-height: 536px;
  object-fit: cover;
  object-position: center;
  transition: transform 700ms ease;
}

.page-home .commitment-stage:hover .commitment-visual img {
  transform: scale(1.025);
}

.page-home .commitment-visual figcaption {
  position: absolute;
  right: clamp(1.1rem, 2vw, 1.75rem);
  bottom: clamp(1.1rem, 2vw, 1.75rem);
  left: clamp(1.1rem, 2vw, 1.75rem);
  z-index: 1;
  display: grid;
  gap: 0.32rem;
  padding: 1rem 1.1rem;
  border: 1px solid rgba(196, 224, 247, 0.26);
  border-radius: 16px;
  background: rgba(5, 24, 59, 0.76);
  box-shadow: 0 18px 42px rgba(2, 12, 31, 0.3);
  backdrop-filter: blur(12px);
}

.page-home .commitment-visual figcaption span {
  color: #83c6ff;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.page-home .commitment-visual figcaption strong {
  color: #f7fbff;
  font-size: clamp(1.05rem, 1.35vw, 1.38rem);
  line-height: 1.25;
}

.page-home .commitment-board {
  min-width: 0;
  padding: clamp(1.15rem, 2.2vw, 2rem);
}

.page-home .commitment-card-rail {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: clamp(1rem, 2vw, 1.7rem);
}

.page-home .commitment-card {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  min-width: 0;
  min-height: 68px;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 0.2rem;
  border-bottom: 1px solid rgba(139, 192, 238, 0.15);
  transition: padding 200ms ease, background-color 200ms ease;
}

.page-home .commitment-card:hover {
  padding-inline: 0.65rem;
  border-radius: 12px;
  background: rgba(73, 143, 211, 0.1);
}

.page-home .commitment-card-icon {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: #dcecf9;
  border: 1px solid rgba(155, 207, 248, 0.28);
  border-radius: 11px;
  background: linear-gradient(145deg, rgba(38, 113, 190, 0.78), rgba(13, 50, 119, 0.72));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
  font-size: 0.82rem;
}

.page-home .commitment-card strong {
  color: #edf5fc;
  font-size: clamp(0.82rem, 0.8vw, 0.94rem);
  font-weight: 760;
  line-height: 1.3;
}

.page-home .commitment-mobile-controls,
.page-home .commitment-swipe-hint {
  display: none;
}

@media (max-width: 1199px) {
  .page-home .commitment-copy h2 {
    max-width: 16ch;
  }

  .page-home .commitment-stage {
    grid-template-columns: minmax(300px, 0.72fr) minmax(0, 1.28fr);
  }

  .page-home .commitment-visual,
  .page-home .commitment-visual img {
    min-height: 584px;
  }

  .page-home .commitment-board {
    padding: 1rem 1.35rem;
  }

  .page-home .commitment-card-rail {
    column-gap: 1rem;
  }
}

@media (max-width: 991px) and (min-width: 768px) {
  .page-home .commitment-copy {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .page-home .commitment-copy h2,
  .page-home .commitment-copy p {
    max-width: 760px;
  }

  .page-home .commitment-stage {
    grid-template-columns: 1fr;
  }

  .page-home .commitment-visual,
  .page-home .commitment-visual img {
    min-height: 390px;
    max-height: 390px;
  }

  .page-home .commitment-visual::after {
    background: linear-gradient(0deg, rgba(3, 15, 38, 0.86) 0%, transparent 58%);
  }

  .page-home .commitment-board {
    padding: 1.25rem 1.5rem 1.6rem;
  }
}

@media (max-width: 767px) {
  .page-home .commitment-section {
    padding: 2.65rem 0;
  }

  .page-home .commitment-section > .container {
    padding-inline: 0.85rem;
  }

  .page-home .commitment-layout {
    gap: 1.45rem;
  }

  .page-home .commitment-copy {
    display: block;
    padding-inline: 0.25rem;
  }

  .page-home .commitment-copy h2 {
    max-width: 100%;
    font-size: clamp(1.72rem, 7.4vw, 2.1rem);
    line-height: 1.14;
  }

  .page-home .commitment-copy p {
    max-width: 100%;
    margin-top: 0.9rem;
    font-size: 0.92rem;
    line-height: 1.62;
  }

  .page-home .commitment-stage {
    grid-template-columns: 1fr;
    overflow: visible;
    border-radius: 20px;
  }

  .page-home .commitment-visual,
  .page-home .commitment-visual img {
    min-height: 230px;
    max-height: 230px;
  }

  .page-home .commitment-visual {
    border-radius: 19px 19px 0 0;
  }

  .page-home .commitment-visual::after {
    background: linear-gradient(0deg, rgba(3, 15, 38, 0.88) 0%, transparent 62%);
  }

  .page-home .commitment-visual figcaption {
    right: 0.85rem;
    bottom: 0.85rem;
    left: 0.85rem;
    padding: 0.72rem 0.85rem;
    border-radius: 13px;
  }

  .page-home .commitment-visual figcaption strong {
    font-size: 1rem;
  }

  .page-home .commitment-board {
    padding: 1rem 0 1.1rem;
    overflow: hidden;
  }

  .page-home .commitment-mobile-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.85rem;
    margin-top: 0.7rem;
  }

  .page-home .commitment-mobile-controls button {
    display: grid;
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    place-items: center;
    padding: 0;
    color: #eef6ff;
    border: 1px solid rgba(117, 185, 255, 0.4);
    border-radius: 50%;
    background: linear-gradient(145deg, #1d68b6, #0a2c70);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.13);
  }

  .page-home .commitment-mobile-controls button:disabled {
    color: rgba(216, 226, 241, 0.32);
    border-color: rgba(117, 185, 255, 0.14);
    background: rgba(9, 37, 85, 0.7);
    cursor: not-allowed;
    opacity: 0.48;
  }

  .page-home .commitment-card-rail {
    display: flex;
    gap: 0.75rem;
    width: 100%;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-behavior: smooth;
    scroll-snap-type: inline mandatory;
    padding: 0.3rem max(0.9rem, calc((100% - min(79vw, 330px)) / 2)) 0.55rem;
    scrollbar-width: none;
  }

  .page-home .commitment-card-rail::-webkit-scrollbar {
    display: none;
  }

  .page-home .commitment-card-rail:focus-visible {
    box-shadow: inset 0 0 0 2px rgba(117, 185, 255, 0.46);
  }

  .page-home .commitment-card {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    width: min(79vw, 330px);
    min-height: 162px;
    flex: 0 0 min(79vw, 330px);
    gap: 0.85rem;
    align-content: center;
    align-items: center;
    justify-items: center;
    padding: 1.2rem;
    border: 1px solid rgba(117, 185, 255, 0.3);
    border-radius: 17px;
    background:
      radial-gradient(circle at 15% 0%, rgba(65, 154, 236, 0.22), transparent 40%),
      linear-gradient(145deg, #103879, #071f4c);
    box-shadow: 0 16px 34px rgba(2, 12, 31, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    scroll-snap-align: center;
    text-align: center;
  }

  .page-home .commitment-card:hover {
    padding: 1.2rem;
    background:
      radial-gradient(circle at 15% 0%, rgba(65, 154, 236, 0.22), transparent 40%),
      linear-gradient(145deg, #103879, #071f4c);
  }

  .page-home .commitment-card-icon {
    grid-column: 1;
    grid-row: 1;
    width: 54px;
    height: 54px;
    font-size: 1.05rem;
  }

  .page-home .commitment-card strong {
    grid-column: 1;
    grid-row: 2;
    font-size: 1.05rem;
    line-height: 1.36;
  }

}

@media (prefers-reduced-motion: reduce) {
  .page-home .commitment-card-rail {
    scroll-behavior: auto;
  }

  .page-home .commitment-stage:hover .commitment-visual img,
  .page-home .commitment-card {
    transition: none;
    transform: none;
  }
}

/* Popup title variants: desktop keeps the consultation copy; mobile replaces
   it with one centered callback message and avoids a duplicate form heading. */
.quote-modal-title-mobile,
.quote-modal-mobile-subheading {
  display: none;
}

@media (max-width: 767px) {
  .quote-modal-intro h2 {
    display: block !important;
    width: 100%;
    max-width: 100% !important;
    margin: 0.35rem auto 0 !important;
    color: #f5f8fc;
    font-size: 1.35rem !important;
    font-weight: 800;
    line-height: 1.2 !important;
    letter-spacing: -0.015em;
    text-align: center;
  }

  .quote-modal-intro {
    gap: 0.7rem !important;
    padding-bottom: 1rem !important;
  }

  .quote-modal-intro .quote-modal-title-desktop-line,
  .quote-modal-intro .quote-modal-desktop-copy {
    display: none !important;
  }

  .quote-modal-intro .quote-modal-title-mobile {
    display: block !important;
    white-space: normal;
  }

  .quote-modal-intro .quote-modal-mobile-subheading {
    display: block !important;
    width: min(100%, 29rem);
    max-width: 31ch;
    margin: 0 auto !important;
    color: rgba(231, 239, 248, 0.82);
    font-size: 0.92rem !important;
    font-weight: 500;
    line-height: 1.48 !important;
    letter-spacing: 0;
    text-align: center;
    text-transform: none;
  }

  .quote-popup-form .quote-popup-heading {
    display: none !important;
  }
}
