/**
 * Unlayered cascade guards for SPA production.
 *
 * WordPress inlines `critical.css` in `<head>` with unlayered `a { color: inherit }`.
 * Unlayered author rules beat every `@layer components` selector, which leaves orange
 * chrome CTAs with black inherited body text. These guards load via the hc-app
 * stylesheet (after critical) and use class selectors so colors win again.
 *
 * Keep in sync with public_html/.../assets/css/cascade-guards.css (blog enqueue).
 * Do not wrap in @layer. Do not use !important.
 */

a.hc-header-new__cta,
.hc-header-new__cta {
  color: #fff;
  background-color: #ff7918;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 160px;
  min-height: 42px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  box-shadow: 0 10px 20px rgba(255, 121, 24, 0.25);
  letter-spacing: 0.2px;
}

a.hc-header-new__phone,
.hc-header-new__phone {
  color: #1f2b4a;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  min-height: 42px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  background: #f4f6fb;
  border: 1px solid rgba(26, 67, 191, 0.14);
  white-space: nowrap;
}

a.hc-home-new-btn-primary,
.hc-home-new-btn-primary {
  color: #fff;
}

a.hc-home-new-btn-secondary,
.hc-home-new-btn-secondary {
  color: #fff;
}

a.hc-home-new-btn,
.hc-home-new-btn {
  text-decoration: none;
}

a.hc-home-new-card-cta,
.hc-home-new-card-cta {
  color: #fff;
}

a.hc-home-new-project-cta,
.hc-home-new-project-cta {
  color: #fff;
}

a.btn-primary,
.btn-primary,
button.btn-primary {
  color: var(--bg, #fff);
}

a.premium-cta-btn,
.premium-cta-btn {
  color: #020617;
}

/* Service single + lead form — critical.css has unlayered `button { color: inherit }` */
.service-single__cta--primary,
button.service-single__cta--primary,
.service-single__cta.service-single__cta--primary {
  color: var(--bg, #fff);
}

.hc-hero-cta,
a.hc-hero-cta {
  color: var(--bg, #fff);
}

button.submit-btn,
.submit-btn,
#lead-submit-btn,
#client-submit-btn {
  color: var(--bg, #fff);
}

.modal-content .submit-btn,
.modal-content .btn.submit-btn {
  color: var(--bg, #fff);
}

.hc-footer-new__cta,
a.hc-footer-new__cta,
a.hc-footer-new__button,
.hc-footer-new__button {
  color: #fff;
  background-color: #1a43bf;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  box-shadow: 0 12px 24px rgba(26, 67, 191, 0.24);
}

.fixed-contact-cta,
.fixed-contact-cta .fixed-cta-text {
  color: #fff;
  background-color: #1a43bf;
}

button.fixed-contact-cta,
#fixed-contact-cta {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  border: none;
  border-radius: 50px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(26, 67, 191, 0.4);
}

#horizontal-contact-form,
.horizontal-contact-form {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 998;
  background: #ffffff;
  border-top: 1px solid rgba(26, 67, 191, 0.12);
  box-shadow: 0 -8px 32px rgba(15, 23, 42, 0.12);
  transform: translateY(100%);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1),
    opacity 0.4s cubic-bezier(0.23, 1, 0.32, 1),
    visibility 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.horizontal-contact-form.is-visible,
#horizontal-contact-form.is-visible {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

#horizontal-contact-form .horizontal-form-container,
.horizontal-contact-form .horizontal-form-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 12px 20px 16px;
  position: relative;
}

#horizontal-contact-form .horizontal-form-fields,
.horizontal-contact-form .horizontal-form-fields {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr)) minmax(160px, 1.6fr) auto;
  gap: 10px;
  align-items: end;
}

#horizontal-contact-form .horizontal-form-group,
.horizontal-contact-form .horizontal-form-group {
  display: flex;
  flex-direction: column;
  gap: 0;
  min-width: 0;
}

#fixed-contact-cta,
button.fixed-contact-cta {
  position: fixed;
  right: 24px;
  bottom: 150px;
  z-index: 999;
}

[data-scroll-top],
.scroll-top,
button[data-scroll-top] {
  position: fixed;
  z-index: 997;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  border: 1px solid rgba(148, 163, 184, 0.8);
  border-radius: 9999px;
  background-color: #2c3a5d;
  color: #ffffff;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.18);
  right: max(1.5rem, env(safe-area-inset-right));
  bottom: max(1.5rem, env(safe-area-inset-bottom));
}

[data-scroll-top] svg,
.scroll-top svg {
  display: block;
  width: 20px;
  height: 20px;
  stroke: currentColor;
}

[data-scroll-top]:hover,
.scroll-top:hover {
  background-color: #ff7918;
  color: #ffffff;
}

body.hc-blog-elementor [data-scroll-top],
body.hc-blog-elementor .scroll-top {
  background-color: #2c3a5d;
  color: #ffffff;
}

@media (max-width: 768px) {
  body.hc-blog-elementor [data-scroll-top],
  [data-scroll-top],
  .scroll-top {
    bottom: max(5.75rem, calc(env(safe-area-inset-bottom) + 4.75rem));
    right: max(1rem, env(safe-area-inset-right));
  }
}

.about-hero .btn-ghost,
a.about-hero .btn-ghost,
.about-cta-section .btn-ghost,
a.about-cta-section .btn-ghost {
  color: #f9fafb;
}

.about-hero .btn-primary,
a.about-hero .btn-primary,
.about-cta-section .btn-primary,
a.about-cta-section .btn-primary {
  color: #fff;
}

.value-card h3,
.story-card h3 {
  color: #fff;
}

/* About page — unlayered responsive guards (beats mis-ordered layered rules + WP resets) */
@media (max-width: 960px) {
  .about-section > .container.split-layout,
  .split-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.75rem;
  }

  .about-section .values-grid,
  .values-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .about-cta-section .cta-inner,
  .cta-inner {
    flex-direction: column;
    align-items: flex-start;
    margin-top: 0;
  }
}

@media (max-width: 768px) {
  .about-hero .hero-grid,
  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .about-section .values-grid,
  .values-grid,
  .team-grid,
  .about-fleet-grid {
    grid-template-columns: 1fr;
  }

  .about-hero .container.hero-grid,
  .about-section > .container {
    padding-inline: 1rem;
    max-width: 100%;
    box-sizing: border-box;
  }

  .split-text,
  .split-cards {
    min-width: 0;
    max-width: 100%;
  }
}

@media (max-width: 640px) {
  .about-section .values-grid,
  .values-grid {
    grid-template-columns: 1fr;
  }
}

/* Blog — Elementor may still embed a second header shortcode block */
body.hc-blog-elementor header.hc-header-new ~ header.hc-header-new {
  display: none;
}

/* Blog — restore SPA chrome when legacy/Elementor CSS overrides layered rules */
body.hc-blog-elementor .hc-header-new {
  position: relative;
  z-index: 50;
  padding: 12px clamp(12px, 2vw, 20px) 0;
  margin-bottom: 8px;
  background: transparent;
}

body.hc-blog-elementor .hc-header-new__container {
  width: min(1200px, 100%);
  margin: 0 auto;
  padding: 10px clamp(16px, 2.5vw, 28px);
  background: #ffffff;
  border-radius: 14px;
  border: 1px solid rgba(26, 67, 191, 0.08);
  box-shadow:
    0 8px 32px rgba(15, 27, 61, 0.1),
    0 2px 8px rgba(15, 27, 61, 0.06);
}

body.hc-blog-elementor .hc-header-new__logo img {
  height: 65px;
  width: 210px;
  display: block;
}

body.hc-blog-elementor .hc-header-new__nav a,
body.hc-blog-elementor .hc-header-new__services-toggle {
  color: #1f2b4a;
  text-decoration: none;
  font-weight: 500;
  font-size: 17px;
  border: 0;
  cursor: pointer;
}

body.hc-blog-elementor .hc-header-new__nav a.is-active,
body.hc-blog-elementor .hc-header-new__nav a:hover,
body.hc-blog-elementor .hc-header-new__services-toggle:hover,
body.hc-blog-elementor .hc-header-new__services.is-open .hc-header-new__services-toggle {
  color: #1a43bf;
}

body.hc-blog-elementor .hc-header-new__services-item {
  font-size: 14px;
  font-weight: 600;
  color: #1f2b4a;
  text-decoration: none;
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(26, 67, 191, 0.06);
  border: 1px solid rgba(26, 67, 191, 0.12);
}

body.hc-blog-elementor .hc-footer-new {
  background: #ffffff;
  color: #1a1a2e;
  padding: clamp(50px, 8vw, 90px) 0 30px;
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

body.hc-blog-elementor .hc-footer-new__container {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.1fr;
  gap: 32px;
  width: min(1200px, 92%);
  margin: 0 auto;
}

body.hc-blog-elementor .hc-footer-new__brand img {
  height: 86px;
  width: auto;
  display: block;
  margin-bottom: 12px;
}

body.hc-blog-elementor .hc-footer-new__brand p {
  color: #2c3a5d;
  font-size: 1.0625rem;
  line-height: 1.75;
  max-width: 34ch;
}

body.hc-blog-elementor .hc-footer-new h4 {
  margin-bottom: 14px;
  font-size: 1.125rem;
  color: #1a43bf;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
}

body.hc-blog-elementor .hc-footer-new__links a {
  display: block;
  margin-bottom: 10px;
  text-decoration: none;
  color: #2c3a5d;
  font-size: 1rem;
  line-height: 1.5;
}

body.hc-blog-elementor .hc-footer-new__links a:hover {
  color: #1a43bf;
}

body.hc-blog-elementor .hc-footer-new__contact p {
  color: #2c3a5d;
  font-size: 1rem;
  line-height: 1.55;
  margin: 0 0 10px;
}

body.hc-blog-elementor .hc-footer-new__contact strong {
  color: #1a43bf;
}

body.hc-blog-elementor a.hc-footer-new__button,
body.hc-blog-elementor .hc-footer-new__button {
  color: #fff;
  background-color: #1a43bf;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 24px;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 12px 24px rgba(26, 67, 191, 0.24);
}

body.hc-blog-elementor .hc-footer-new__social a {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(26, 67, 191, 0.12);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #1a43bf;
}

body.hc-blog-elementor .hc-footer-new__bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  width: min(1200px, 92%);
  margin: 30px auto 0;
  padding-top: 20px;
  border-top: 1px solid rgba(26, 67, 191, 0.15);
  font-size: 0.9375rem;
  color: #1a43bf;
  font-weight: 500;
}

@media (min-width: 1025px) {
  body.hc-blog-elementor .hc-header-new__container {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: clamp(16px, 2.5vw, 28px);
  }

  body.hc-blog-elementor nav.hc-header-new__nav {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-self: center;
    gap: clamp(14px, 2vw, 22px);
    font-size: 17px;
    flex-direction: row;
    width: auto;
    max-height: none;
    opacity: 1;
    transform: none;
    padding: 0;
    margin-top: 0;
    border-top: 0;
    box-shadow: none;
    overflow: visible;
  }

  body.hc-blog-elementor .hc-header-new__actions {
    display: flex;
    align-items: center;
    justify-self: end;
    gap: clamp(12px, 2vw, 20px);
  }

  body.hc-blog-elementor .hc-header-new__menu-toggle {
    display: none;
  }

  body.hc-blog-elementor .hc-header-new__services {
    position: relative;
  }

  body.hc-blog-elementor .hc-header-new__services-panel {
    position: absolute;
    top: calc(100% + 12px);
    left: 50%;
    transform: translateX(-50%);
    z-index: 120;
    background: #f7f9fd;
    border-radius: 16px;
    padding: 14px 16px;
    border: 1px solid rgba(26, 67, 191, 0.12);
    box-shadow: 0 18px 36px rgba(15, 27, 61, 0.12);
  }

  body.hc-blog-elementor .hc-header-new__services:not(.is-open) .hc-header-new__services-panel {
    display: none;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
  }

  body.hc-blog-elementor .hc-header-new__services.is-open .hc-header-new__services-panel {
    display: block;
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
  }

  body.hc-blog-elementor .hc-header-new__services-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 250px;
    max-height: min(70vh, 520px);
    overflow-y: auto;
  }

  body.hc-blog-elementor .hc-header-new__nav a,
  body.hc-blog-elementor .hc-header-new__services-toggle {
    background: transparent;
    border-radius: 0;
    padding: 0 0 4px;
    width: auto;
    max-width: none;
    margin: 0;
    display: inline-flex;
    border-bottom: 2px solid transparent;
  }

  body.hc-blog-elementor .hc-header-new__nav a.is-active,
  body.hc-blog-elementor .hc-header-new__nav a:hover,
  body.hc-blog-elementor .hc-header-new__services-toggle:hover,
  body.hc-blog-elementor .hc-header-new__services.is-open .hc-header-new__services-toggle {
    border-bottom-color: #1a43bf;
  }
}

@media (max-width: 1024px) {
  body.hc-blog-elementor .hc-header-new {
    padding: 10px 10px 0;
  }

  body.hc-blog-elementor .hc-header-new__container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    padding: 12px 14px 16px;
    border-radius: 16px;
  }

  body.hc-blog-elementor .hc-header-new__logo {
    justify-self: auto;
  }

  body.hc-blog-elementor nav.hc-header-new__nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    order: 3;
    justify-self: auto;
    flex-wrap: wrap;
    gap: 10px;
    padding: 0;
    margin-top: 10px;
    border-top: 1px solid rgba(26, 67, 191, 0.08);
    background: #ffffff;
    border-radius: 18px;
    box-shadow: 0 20px 40px rgba(15, 27, 61, 0.15);
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-6px);
    transition: max-height 0.25s ease, opacity 0.2s ease, transform 0.2s ease;
  }

  body.hc-blog-elementor .hc-header-new.is-nav-open nav.hc-header-new__nav {
    max-height: calc(100vh - 140px);
    opacity: 1;
    transform: translateY(0);
    padding: 12px 0 24px;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }

  body.hc-blog-elementor .hc-header-new__menu-toggle {
    display: inline-flex;
  }

  body.hc-blog-elementor .hc-header-new__actions {
    order: 2;
    display: flex;
    gap: 10px;
    align-items: center;
    justify-self: auto;
  }

  body.hc-blog-elementor .hc-header-new__nav > a,
  body.hc-blog-elementor .hc-header-new__nav > .hc-header-new__services {
    width: min(100%, 520px);
    margin: 0 auto;
  }

  body.hc-blog-elementor .hc-header-new__nav a,
  body.hc-blog-elementor .hc-header-new__services-toggle {
    padding: 12px 12px;
    width: 100%;
    max-width: 520px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: #f7f9fd;
    border-radius: 12px;
    border-bottom: none;
  }

  body.hc-blog-elementor .hc-header-new__services {
    width: 100%;
    max-width: 520px;
    display: flex;
    flex-direction: column;
    align-items: center;
    align-self: center;
  }

  body.hc-blog-elementor .hc-header-new__services-panel {
    position: static;
    top: auto;
    left: auto;
    transform: none;
    z-index: auto;
    width: min(100%, 520px);
    max-width: 520px;
    box-shadow: none;
    border: 1px solid rgba(26, 67, 191, 0.12);
    padding: 8px 12px 12px;
    background: rgba(26, 67, 191, 0.04);
    border-radius: 16px;
    display: block;
    margin: 0 auto;
    box-sizing: border-box;
  }

  body.hc-blog-elementor .hc-header-new__services:not(.is-open) .hc-header-new__services-panel {
    display: none;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
  }

  body.hc-blog-elementor .hc-header-new__services.is-open .hc-header-new__services-panel {
    display: block;
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
  }

  body.hc-blog-elementor .hc-header-new__services-list {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    max-width: 520px;
    max-height: none;
    overflow-y: visible;
    margin: 0 auto;
    padding: 0 0 8px;
  }

  body.hc-blog-elementor .hc-header-new__services-toggle {
    position: relative;
    padding-right: 42px;
    padding-left: 42px;
  }

  body.hc-blog-elementor .hc-header-new__services-arrow {
    position: absolute;
    right: 14px;
  }

  body.hc-blog-elementor .hc-footer-new__container {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  body.hc-blog-elementor .hc-header-new__container {
    flex-direction: column;
    align-items: stretch;
  }

  body.hc-blog-elementor .hc-header-new__logo {
    display: flex;
    justify-content: center;
  }

  body.hc-blog-elementor .hc-header-new__actions {
    display: grid;
    grid-template-columns: 46px 1fr 143px;
    align-items: center;
    gap: 10px;
    padding: 0 10px;
    width: 100%;
  }

  body.hc-blog-elementor .hc-header-new__phone {
    flex: 0 0 auto;
    padding: 8px 12px;
    font-size: 13px;
    justify-self: center;
    width: fit-content;
    max-width: 100%;
  }

  body.hc-blog-elementor a.hc-header-new__cta,
  body.hc-blog-elementor .hc-header-new__cta {
    width: 143px;
    justify-self: end;
  }

  body.hc-blog-elementor .hc-header-new__menu-toggle {
    width: 46px;
    height: 46px;
    border-radius: 14px;
  }
}

@media (max-width: 390px) {
  body.hc-blog-elementor .hc-header-new__actions {
    grid-template-columns: 46px 1fr 130px;
    gap: 8px;
    padding: 0 8px;
  }

  body.hc-blog-elementor a.hc-header-new__cta,
  body.hc-blog-elementor .hc-header-new__cta {
    width: 130px;
    font-size: 13px;
  }
}

@media (max-width: 680px) {
  body.hc-blog-elementor .hc-footer-new__container {
    grid-template-columns: 1fr;
  }

  body.hc-blog-elementor .hc-footer-new__bottom {
    flex-direction: column;
    text-align: center;
  }
}

/* ── Blog / Elementor — unlayered guards for HC forms + embedded CTAs ── */

body.hc-blog-elementor a.about-areas-cta,
a.about-areas-cta {
  display: inline-block;
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  background-color: #001a4d;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(0, 26, 77, 0.2);
}

body.hc-blog-elementor a.about-areas-cta:hover,
a.about-areas-cta:hover {
  background-color: #002060;
  color: #fff;
}

#horizontal-contact-form .horizontal-form-input,
#horizontal-contact-form .horizontal-form-select,
#horizontal-contact-form .horizontal-form-textarea,
.horizontal-contact-form .horizontal-form-input,
.horizontal-contact-form .horizontal-form-select,
.horizontal-contact-form .horizontal-form-textarea {
  width: 100%;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid #cccccc;
  font-size: 14px;
  font-family: inherit;
  background: #ffffff;
  color: #1a1a2e;
  box-sizing: border-box;
  appearance: none;
}

#horizontal-contact-form .horizontal-form-input:focus,
#horizontal-contact-form .horizontal-form-select:focus,
#horizontal-contact-form .horizontal-form-textarea:focus,
.horizontal-contact-form .horizontal-form-input:focus,
.horizontal-contact-form .horizontal-form-select:focus,
.horizontal-contact-form .horizontal-form-textarea:focus {
  outline: none;
  border-color: #1a43bf;
  box-shadow: 0 0 0 3px rgba(26, 67, 191, 0.14);
}

.horizontal-form-textarea:focus {
  max-height: 96px;
  white-space: normal;
  overflow: auto;
}

.horizontal-form-toolbar-title {
  color: #1a43bf;
}

#horizontal-contact-form .horizontal-form-select,
.horizontal-contact-form .horizontal-form-select {
  background-color: #ffffff;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L6 6L11 1' stroke='%23334155' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 40px;
}

button.horizontal-form-submit-btn,
#horizontal-contact-form .horizontal-form-submit-btn,
#horizontal-submit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  background-color: #1a43bf;
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  min-height: 44px;
  box-shadow: 0 4px 12px rgba(26, 67, 191, 0.24);
}

button.horizontal-form-submit-btn:hover:not(:disabled),
#horizontal-contact-form .horizontal-form-submit-btn:hover:not(:disabled),
#horizontal-submit-btn:hover:not(:disabled) {
  background-color: #ff7918;
  color: #fff;
}

button.horizontal-form-close,
#horizontal-form-close {
  display: none;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  min-width: 36px;
  min-height: 36px;
  padding: 0;
  background-color: #1a43bf;
  color: #fff;
  border: none;
  border-radius: 999px;
  box-shadow: 0 4px 16px rgba(26, 67, 191, 0.35);
  cursor: pointer;
  pointer-events: auto;
}

#horizontal-form-close svg,
.horizontal-form-close svg {
  pointer-events: none;
}

.horizontal-contact-form.is-visible .horizontal-form-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(26, 67, 191, 0.1);
}

.horizontal-contact-form.is-visible .horizontal-form-close,
.horizontal-contact-form.is-visible #horizontal-form-close {
  display: inline-flex;
  pointer-events: auto;
}

/* Lead modal — unlayered guards beat Elementor + critical.css button resets on blog */
#service-lead-modal.modal-overlay,
#service-lead-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.7);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

#service-lead-modal.is-open,
#service-lead-modal[aria-hidden="false"] {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

#service-lead-modal .modal-content {
  pointer-events: auto;
  position: relative;
  z-index: 1;
  background: #ffffff;
  border-radius: 16px;
  width: 90%;
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 30px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  -webkit-overflow-scrolling: touch;
}

#service-lead-modal .modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
}

#service-lead-modal .modal-header h3,
#service-lead-modal #modal-title {
  margin: 0;
  font-size: 24px;
  font-weight: 800;
  line-height: 1.2;
  color: #1a1a2e;
}

#service-lead-modal .modal-header .close-btn,
#service-lead-modal .modal-header .modal-close,
#service-lead-modal button.modal-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  min-width: 40px;
  min-height: 40px;
  padding: 0;
  margin: 0;
  border: none;
  border-radius: 8px;
  background: transparent;
  background-color: transparent;
  color: #6b7280;
  cursor: pointer;
  box-shadow: none;
  pointer-events: auto;
}

#service-lead-modal .modal-close svg,
#service-lead-modal .close-btn svg {
  pointer-events: none;
  display: block;
}

#service-lead-modal .modal-header .close-btn:hover,
#service-lead-modal .modal-header .modal-close:hover,
#service-lead-modal button.modal-close:hover {
  color: #1a1a2e;
  background: rgba(26, 67, 191, 0.08);
}

#service-lead-modal .service-context {
  font-size: 14px;
  color: #6b7280;
  margin: 0 0 20px;
  padding: 10px 12px;
  background: #f7f9fd;
  border-radius: 8px;
}

#service-lead-modal .form-group {
  margin-bottom: 20px;
}

#service-lead-modal .form-group label {
  display: block;
  margin-bottom: 6px;
  font-size: 15px;
  font-weight: 600;
  color: #1a1a2e;
}

#service-lead-modal .form-group input,
#service-lead-modal .form-group textarea,
#service-lead-modal .form-group select,
.modal-overlay .form-group input,
.modal-overlay .form-group textarea,
.modal-overlay .form-group select {
  width: 100%;
  padding: 12px;
  border: 1px solid #cccccc;
  border-radius: 8px;
  font-size: 16px;
  color: #1a1a2e;
  background: #ffffff;
  box-sizing: border-box;
  appearance: none;
}

#service-lead-modal .form-group input:focus,
#service-lead-modal .form-group textarea:focus,
#service-lead-modal .form-group select:focus {
  outline: none;
  border-color: #1a43bf;
  box-shadow: 0 0 0 3px rgba(26, 67, 191, 0.14);
}

#service-lead-modal .form-group select {
  background-color: #ffffff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}

#service-lead-modal .submit-btn,
#service-lead-modal #lead-submit-btn,
.modal-overlay .submit-btn {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background-color: #ff7918;
  color: #fff;
  border: none;
  padding: 14px 20px;
  font-size: 17px;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  min-height: 44px;
  box-shadow: none;
}

#service-lead-modal .submit-btn:hover:not(:disabled),
#service-lead-modal #lead-submit-btn:hover:not(:disabled) {
  background-color: #e86a0f;
  color: #fff;
}

/* Elementor table of contents + embedded widgets on blog */
body.hc-blog-elementor .elementor-widget-table-of-contents .elementor-toc__header,
.elementor-widget-table-of-contents .elementor-toc__header {
  background-color: #1a43bf;
  color: #fff;
}

body.hc-blog-elementor .elementor-widget-table-of-contents .elementor-toc__list-item-text,
.elementor-widget-table-of-contents .elementor-toc__list-item-text {
  color: #1a1a2e;
}

body.hc-blog-elementor .elementor-widget-table-of-contents a:hover .elementor-toc__list-item-text,
.elementor-widget-table-of-contents a:hover .elementor-toc__list-item-text {
  color: #1a43bf;
}

body.hc-blog-elementor .about-areas-subtitle,
.about-areas-subtitle {
  color: #2c3a5d;
}

body.hc-blog-elementor .blog-single-date,
.blog-single-date {
  color: rgba(255, 255, 255, 0.92);
}

/* Lead modal close — ensure hit target stays above overlay stacking quirks */
#service-lead-modal.is-open .modal-close,
#service-lead-modal.is-open .close-btn,
#service-lead-modal[aria-hidden="false"] .modal-close,
#service-lead-modal[aria-hidden="false"] .close-btn {
  pointer-events: auto;
  cursor: pointer;
  position: relative;
  z-index: 2;
}

body.hc-modal-open {
  overflow: hidden;
}

/* ── Responsive chrome guards (SPA + blog; unlayered beats layered mobile rules) ── */

@media (max-width: 1024px) {
  .hc-footer-new__container {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 680px) {
  .hc-footer-new__container {
    grid-template-columns: 1fr;
  }

  .hc-footer-new__bottom {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 640px) {
  a.hc-header-new__cta,
  .hc-header-new__cta {
    width: 143px;
    min-height: 40px;
    font-size: 14px;
  }
}

@media (max-width: 390px) {
  a.hc-header-new__cta,
  .hc-header-new__cta {
    width: 130px;
    font-size: 13px;
  }

  a.hc-header-new__phone,
  .hc-header-new__phone {
    font-size: 12px;
    padding: 8px 10px;
  }
}

@media (max-width: 768px) {
  .modal-overlay {
    padding: 12px;
    align-items: flex-end;
  }

  #service-lead-modal.modal-overlay {
    align-items: flex-end;
    padding: 12px;
  }

  .modal-content,
  #service-lead-modal .modal-content {
    width: 100%;
    max-width: none;
    padding: 20px 16px 24px;
    max-height: min(90vh, calc(100dvh - 24px));
    border-radius: 16px 16px 0 0;
  }

  .modal-header h3,
  #service-lead-modal .modal-header h3,
  #service-lead-modal #modal-title {
    font-size: 20px;
  }

  .form-group input,
  .form-group textarea,
  .form-group select {
    font-size: 16px;
  }

  button.fixed-contact-cta,
  #fixed-contact-cta {
    right: 16px;
    bottom: 26px;
    padding: 12px 18px;
    font-size: 14px;
  }

  #horizontal-contact-form .horizontal-form-fields,
  .horizontal-contact-form .horizontal-form-fields {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  #horizontal-contact-form .horizontal-form-group-project-description,
  #horizontal-contact-form .horizontal-form-submit,
  .horizontal-contact-form .horizontal-form-group-project-description,
  .horizontal-contact-form .horizontal-form-submit {
    grid-column: 1;
  }

  #horizontal-contact-form .horizontal-form-container,
  .horizontal-contact-form .horizontal-form-container {
    padding: 12px 14px 14px;
  }
}

@media (max-width: 1199px) {
  #horizontal-contact-form .horizontal-form-fields,
  .horizontal-contact-form .horizontal-form-fields {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  #horizontal-contact-form .horizontal-form-group-project-description,
  .horizontal-contact-form .horizontal-form-group-project-description {
    grid-column: 1 / 3;
  }

  #horizontal-contact-form .horizontal-form-submit,
  .horizontal-contact-form .horizontal-form-submit {
    grid-column: 3;
  }
}

@media (max-width: 480px) {
  .modal-content {
    padding: 18px 14px 22px;
  }

  button.fixed-contact-cta,
  #fixed-contact-cta {
    padding: 15px;
  }
}
