/* Fixes for quirks introduced by exporting Elementor's live-rendered markup
   into a static site (these behaviors relied on WordPress/Elementor's
   server-side grid-column computation, which isn't available statically). */

@media (min-width: 601px) {
  .elementor-section .elementor-container { flex-wrap: nowrap !important; }
}

.elementor-icon-list-items.elementor-social-icons-wrapper {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  justify-content: flex-end;
  list-style: none;
  padding: 0;
  margin: 0;
  gap: 10px;
}
.elementor-icon-list-items.elementor-social-icons-wrapper > * {
  display: inline-flex !important;
  flex: none !important;
}
.elementor-social-icon {
  display: inline-flex !important;
  align-items: center; justify-content: center;
  width: calc(var(--icon-size, 16px) * 2.2);
  height: calc(var(--icon-size, 16px) * 2.2);
  border-radius: 50%;
  background: #00aee7; color: #fff !important;
  flex: none !important;
  font-size: var(--icon-size, 16px);
}

/* "Find What You Need" CTA band appears on Home, About, and Services
   pages — same real padding (65px all sides) and same inner-section
   background pattern each time. Tightened + stretched full-bleed. */
.elementor-element-70c475fa,
.elementor-element-6cd0d7d4,
.elementor-element-1d12aba3 { padding: 10px 24px !important; }

.elementor-element-70c475fa,
.elementor-element-6cd0d7d4,
.elementor-element-1d12aba3 {
  width: 100vw !important;
  max-width: 100vw !important;
  margin-left: calc(-50vw + 50%) !important;
  margin-right: calc(-50vw + 50%) !important;
}
.elementor-element-70c475fa > .elementor-container,
.elementor-element-6cd0d7d4 > .elementor-container,
.elementor-element-1d12aba3 > .elementor-container {
  max-width: 1140px; margin: 0 auto;
}

/* CTA banner base styles ("Find What You Need.") — the actual colors/
   fonts come from home-78.css on pages that load it (Home/About/
   Services), but legal pages don't load that file, so this makes the
   banner render correctly everywhere it's reused, including there. */
.elementor-element-70c475fa {
  background-color: var(--e-global-color-a83fbe1);
  transition: background .3s;
}
.elementor-element-2cc7ccc0 .elementor-heading-title {
  color: var(--e-global-color-e64be90);
  font-family: var(--e-global-typography-0d20bac-font-family), Sans-serif;
  font-size: var(--e-global-typography-0d20bac-font-size, 3rem);
  font-weight: var(--e-global-typography-0d20bac-font-weight, 600);
  text-transform: var(--e-global-typography-0d20bac-text-transform);
  line-height: var(--e-global-typography-0d20bac-line-height, 1em);
}
.elementor-element-2cc7ccc0 > .elementor-widget-container { padding: 0 0 8px 0; }
.elementor-element-6e1e06b2 .elementor-button {
  fill: var(--e-global-color-a83fbe1); color: var(--e-global-color-a83fbe1);
  background-color: var(--e-global-color-e64be90);
  border: 1px solid var(--e-global-color-e64be90);
}
.elementor-element-6e1e06b2 .elementor-button:hover {
  color: var(--e-global-color-e64be90); background-color: var(--e-global-color-eb507f3);
}
.elementor-element-6c9f1ef9 .elementor-button {
  fill: var(--e-global-color-e64be90); color: var(--e-global-color-e64be90);
  background-color: var(--e-global-color-eb507f3);
  border: 1px solid var(--e-global-color-e64be90);
}
.elementor-element-6c9f1ef9 .elementor-button:hover {
  color: var(--e-global-color-a83fbe1); background-color: var(--e-global-color-e64be90);
}
.elementor-element-70c475fa .elementor-column { align-items: center; }

/* Compact the CTA banner everywhere it appears, at every screen size —
   the 3rem heading + full-size buttons made this band feel oversized
   even on desktop. Structural selectors (position inside the section)
   are used instead of widget IDs because each page re-exports this
   block with fresh random IDs for the heading/buttons. */
.elementor-element-70c475fa .elementor-widget-heading .elementor-heading-title,
.elementor-element-6cd0d7d4 .elementor-widget-heading .elementor-heading-title,
.elementor-element-1d12aba3 .elementor-widget-heading .elementor-heading-title {
  font-size: 22px !important; line-height: 1.15 !important;
}
.elementor-element-70c475fa .elementor-widget-heading > .elementor-widget-container,
.elementor-element-6cd0d7d4 .elementor-widget-heading > .elementor-widget-container,
.elementor-element-1d12aba3 .elementor-widget-heading > .elementor-widget-container {
  padding: 0 !important;
}
.elementor-element-70c475fa .elementor-button,
.elementor-element-6cd0d7d4 .elementor-button,
.elementor-element-1d12aba3 .elementor-button {
  padding: 7px 16px !important; font-size: 13px !important;
}

/* Testimonial: tighten the very airy default spacing so text, photo,
   and name read as one connected block instead of separate floating
   pieces. */
.premium-testimonial-content-wrapper { gap: 0; }
.premium-testimonial-upper-quote { margin-bottom: 4px; }
.premium-testimonial-text-wrapper { margin: 0 0 24px 0 !important; }
.premium-testimonial-author-info { margin-top: 0 !important; gap: 2px; }
.premium-testimonial-img-wrapper { width: 64px !important; height: 64px !important; margin-bottom: 10px; }

/* Footer: tighten the gap between "Find Us On" and its icon row. */
.elementor-element-ce93032 { margin-bottom: 0 !important; padding-bottom: 0 !important; }
.elementor-element-12d17ef { margin-top: -6px !important; padding-top: 0 !important; }

/* ===== Header navigation: Policies dropdown + mobile hamburger =====
   The original nav had no mobile toggle at all — added since the site
   now has 8 pages instead of 4 and needs it to stay usable on phones. */
.mobile-nav-toggle { display: none; }
.site-nav .elementor-nav-menu {
  display: flex; align-items: center; gap: 28px; list-style: none; margin: 0; padding: 0;
}
.site-nav .menu-item { position: relative; }
.site-nav .menu-item > a { color: inherit; font-weight: 500; font-size: 15px; padding: 8px 0; display: inline-block; }
.policies-menu-item .caret { font-size: 11px; margin-left: 3px; }
.policies-menu-item .sub-menu {
  list-style: none; margin: 0; padding: 8px 0;
  position: absolute; top: 100%; left: 0; min-width: 200px;
  background: #fff; box-shadow: 0 12px 28px rgba(0,0,0,.12); border-radius: 4px;
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity .15s ease, transform .15s ease, visibility .15s;
  z-index: 200;
}
.policies-menu-item:hover .sub-menu,
.policies-menu-item.open .sub-menu {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.policies-menu-item .sub-menu .menu-item { display: block; }
.policies-menu-item .sub-menu a {
  display: block; padding: 10px 18px; font-size: 14px; color: #333 !important; white-space: nowrap;
}
.policies-menu-item .sub-menu a:hover { background: #f2fafc; color: #00AEE7 !important; }

/* Services dropdown has 16 items — lay out in two columns on desktop
   so it doesn't run off the bottom of the screen. */
.services-sub-menu {
  display: grid !important; grid-template-columns: 1fr 1fr; min-width: 480px !important; padding: 10px !important;
}
.services-sub-menu .menu-item { border-radius: 4px; }
.services-sub-menu a { white-space: normal !important; padding: 9px 12px !important; border-radius: 4px; }

@media (max-width: 860px) {
  .mobile-nav-toggle {
    display: flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 36px; height: 32px; background: none !important; border: none !important;
    box-shadow: none !important; padding: 0 !important; margin: 0;
    cursor: pointer; position: relative; z-index: 210;
  }
  .mobile-nav-toggle:hover, .mobile-nav-toggle:focus {
    background: none !important; border: none !important;
  }
  .mobile-nav-toggle span {
    display: block !important; width: 100% !important; height: 2.5px !important;
    background: #1c2b33 !important; border-radius: 2px; flex: none;
  }
  .site-nav {
    position: fixed; top: 0; right: -300px; width: 280px; height: 100vh;
    background: #fff; box-shadow: -8px 0 30px rgba(0,0,0,.15);
    transition: right .25s ease; z-index: 205; overflow-y: auto; padding: 80px 0 30px;
  }
  .site-nav.open { right: 0; }
  .site-nav .elementor-nav-menu { flex-direction: column; align-items: flex-start; gap: 0; width: 100%; }
  .site-nav .menu-item { width: 100%; border-bottom: 1px solid #eee; }
  .site-nav .menu-item > a { width: 100%; padding: 14px 24px; }
  .policies-menu-item .sub-menu {
    position: static; box-shadow: none; opacity: 1; visibility: visible; transform: none;
    max-height: 0; overflow: hidden; padding: 0; transition: max-height .2s ease;
    background: #f7fafa;
  }
  .policies-menu-item.open .sub-menu { max-height: 240px; padding: 6px 0; }
  .services-menu-item.open .sub-menu { max-height: 2000px !important; padding: 6px 0 !important; }
  .services-sub-menu { display: block !important; grid-template-columns: none !important; min-width: 0 !important; }
  .policies-menu-item .sub-menu a { padding: 10px 24px 10px 36px; }
  .mobile-nav-backdrop {
    display: none; position: fixed; inset: 0; background: rgba(0,0,0,.6); z-index: 204;
  }
  .mobile-nav-backdrop.open { display: block; }
}
.elementor-screen-only {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0,0,0,0);
}
.premium-testimonial-avatar {
  width: 80px; height: 80px; border-radius: 50%;
  object-fit: cover; flex: none;
}

/* Testimonial widget — matches the real plugin's class names so the
   already-loaded per-page CSS (avatar size, text margins, quote icon
   color) applies; this just fills in what that CSS assumes exists. */
.premium-testimonial-content-wrapper {
  max-width: 700px; margin: 0 auto; text-align: center;
  display: flex; flex-direction: column; align-items: center;
}
.premium-testimonial-upper-quote {
  font-size: 50px; line-height: 1; color: #00AEE71F;
  font-family: Georgia, serif; margin-bottom: -10px;
}
.premium-testimonial-text-wrapper p {
  margin: 0; font-size: 16px; line-height: 1.7; color: #555;
}
.premium-testimonial-author-info {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  margin-top: 20px;
}
.premium-testimonial-img-wrapper {
  width: 80px; height: 80px; border-radius: 50%; overflow: hidden;
  margin-bottom: 6px;
}
.premium-testimonial-img {
  width: 100%; height: 100%; object-fit: cover;
}
.premium-testimonial-name { margin: 0; }
.premium-testimonial-company-link { color: #00AEE7; font-weight: 600; }

/* Contact page: the phone/email/address "premium-lottie" cards have real
   padding of 90px top + 150px side margins — authentic but reads as far
   too empty/enlarged on screen. Tightened per request. */
.elementor-element-25d62727 > .elementor-element-populated,
.elementor-element-32697b75 > .elementor-element-populated,
.elementor-element-1db3db1b > .elementor-element-populated {
  padding: 16px !important;
  margin: 0 0 10px 0 !important;
}
.elementor-element-25d62727 .ekit-lottie-wrap,
.elementor-element-32697b75 .ekit-lottie-wrap,
.elementor-element-1db3db1b .ekit-lottie-wrap {
  max-height: 40px !important; min-height: 0 !important;
}
.elementor-element-25d62727 .elementor-widget-container,
.elementor-element-32697b75 .elementor-widget-container,
.elementor-element-1db3db1b .elementor-widget-container {
  margin: 0 !important;
}

/* Contact page map: stretch the section edge-to-edge like the CTA band. */
.elementor-element-73cba565 {
  width: 100vw !important;
  max-width: 100vw !important;
  margin-left: calc(-50vw + 50%) !important;
  margin-right: calc(-50vw + 50%) !important;
}
.elementor-element-38027908 iframe { width: 100% !important; }

/* Contact page hero: keep the phone photo's focal point in frame instead
   of being cropped awkwardly at typical viewport heights. */
.elementor-element-25bb3c92:not(.elementor-motion-effects-element-type-background),
.elementor-element-25bb3c92 > .elementor-motion-effects-container > .elementor-motion-effects-layer {
  background-position: 68% 70% !important;
  min-height: 480px;
}
/* Keep the heading/paragraph narrow enough that they read as a block
   sitting to the left of the phone, not running into it, at any width —
   the column itself is 100% so this text had no width limit before. */
.elementor-element-25bb3c92 .elementor-widget-wrap {
  max-width: 460px;
}

/* Services page: several real sections have 80-100px top/bottom padding,
   which reads as excessive gaps between short content blocks. Tightened. */
.elementor-element-6bfa80ea { padding: 50px 20px 20px 20px !important; }
.elementor-element-8083ce5 { padding: 20px 0 !important; }
.elementor-element-56b393c { padding: 0 0 20px 0 !important; }
.elementor-element-6c870fa { padding: 20px 0 !important; }
.elementor-element-349121f3 { padding: 20px 0 !important; }

/* Footer + CTA banner: real padding (50px/20px on footer, 65px on the
   banner) still reads as too airy in practice. Tightened further —
   and applied at every width, not just mobile, since it looked heavy
   on desktop too. */
.elementor-element-1842516 { padding: 10px 0 !important; }
.elementor-element-2d5aabf { padding: 6px 0 !important; }
.elementor-148 .elementor-icon-list-item { margin-bottom: 2px !important; }
.elementor-148 .elementor-icon-list-item:not(:last-child) { margin-bottom: 2px !important; }
/* The 20px default gap Elementor puts between every stacked widget
   (logo/text/heading/icons in one column, heading/list in the next,
   etc.) adds up across 3 footer columns — tighten it everywhere. */
.elementor-148 .elementor-widget:not(:last-child) { margin-block-end: 4px !important; }
/* The "Find Us On" / "Quick Link" / "Office Address" headings were
   rendering at 26px each — shrinking them trims real height across
   all 3 stacked columns on mobile, and looks tidier on desktop too. */
.elementor-148 .elementor-widget-heading .elementor-heading-title {
  font-size: 19px !important; margin: 0 !important;
}

/* Contact page map: the 10px default column padding (from Elementor's
   base column styles) was keeping a gutter around the map even after
   the section itself was stretched to 100vw. Remove it so the map is
   truly edge-to-edge. */
.elementor-element-5664ffb7 > .elementor-element-populated { padding: 0 !important; }

/* ===== Mobile-only tightening (footer, hero images, button layout) ===== */
@media (max-width: 767px) {
  /* "Find What You Need." banner heading/padding/buttons are already
     compacted above at every width; the one thing that still needs a
     mobile-specific fix is forcing the two button columns side-by-side
     — see below. */
  /* Force the two button columns side-by-side (2nd/3rd column in the
     row) instead of stacking full-width — this is what home-78.css did
     for the Home page only; doing it here covers every page. */
  .elementor-element-70c475fa > .elementor-container > .elementor-column:nth-child(2),
  .elementor-element-70c475fa > .elementor-container > .elementor-column:nth-child(3),
  .elementor-element-6cd0d7d4 > .elementor-container > .elementor-column:nth-child(2),
  .elementor-element-6cd0d7d4 > .elementor-container > .elementor-column:nth-child(3),
  .elementor-element-1d12aba3 > .elementor-container > .elementor-column:nth-child(2),
  .elementor-element-1d12aba3 > .elementor-container > .elementor-column:nth-child(3) {
    width: 50% !important;
  }

  /* Footer "Quick Link" column: 9 stacked links make the footer very
     tall once columns stack on mobile. Lay them out 2-per-row instead. */
  .elementor-element-cb7e40b .elementor-icon-list-items {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    column-gap: 12px;
  }
  /* Footer overall: already tightened at every width above; nothing
     further needed here. */

  /* Contact form: the first/last name inputs sit in a fixed flex row
     with no allowance to shrink, so on narrow phones the row overflows
     past the edge of the screen. Stack them on very narrow viewports. */
  .mf-form > div:first-child { flex-direction: column !important; gap: 10px !important; }
  .mf-form > div:first-child input.mf-input { width: 100% !important; flex: none !important; box-sizing: border-box !important; }

  /* Services page hero: keep the hand/globe illustration (the visually
     important part, off to the right of the source photo) in frame
     instead of being cropped off when the wide image is cover-fit into
     a narrow phone width. */
  .elementor-element-6bfa80ea:not(.elementor-motion-effects-element-type-background),
  .elementor-205 .elementor-element.elementor-element-6bfa80ea > .elementor-motion-effects-container > .elementor-motion-effects-layer {
    background-position: 80% 25% !important;
  }

  /* Contact page hero: on a narrow/tall mobile box this wide photo
     still crops horizontally under "cover" (whichever X% you pick, the
     phone spans too much of the image's width to stay fully in frame).
     Switch to "contain" so the full phone is always visible, anchored
     to the bottom — it then naturally sits below the text instead of
     behind it, fixing the overlap too. */
  .elementor-element-25bb3c92:not(.elementor-motion-effects-element-type-background),
  .elementor-element-25bb3c92 > .elementor-motion-effects-container > .elementor-motion-effects-layer {
    background-size: contain !important;
    background-position: bottom center !important;
    background-color: #050505;
    min-height: 460px;
  }
  /* Keep the heading/paragraph from stretching edge-to-edge so they
     read as a block sitting above the phone rather than over it. */
  .elementor-element-25bb3c92 .elementor-widget-wrap {
    max-width: 85%;
  }

  /* About page hero: the background photo is mostly empty dark space
     with the "innovation bulb" graphic confined to its right third.
     A cover-fit crop on a narrow phone was blowing that graphic up and
     letting it spill past the edge, colliding with the heading text.
     Using "contain" keeps the whole graphic visible and in proportion. */
  .elementor-element-6da31bf2:not(.elementor-motion-effects-element-type-background),
  .elementor-166 .elementor-element.elementor-element-6da31bf2 > .elementor-motion-effects-container > .elementor-motion-effects-layer {
    background-size: contain !important;
    background-position: right bottom !important;
    background-color: #102431;
  }
}
