/* OVP layout corrections. Original branding, page content and Elementor behavior remain in place.
   Specificity intentionally beats the inline style blocks in the HTML widgets.
   Elementor's generated uploads/elementor/css files must not be edited directly. */

/* Shared header: replace the fixed 500px gap and percentage widths. */
body .elementor-55 .elementor-element.elementor-element-8aea7dd {
  --flex-direction: row;
  --flex-wrap: nowrap;
  --flex-wrap-mobile: nowrap;
  --justify-content: space-between;
  --align-items: center;
  --gap: 16px;
  --row-gap: 16px;
  --column-gap: 16px;
  padding: 16px clamp(20px, 4vw, 64px);
  min-height: 80px;
}
body .elementor-55 .elementor-element.elementor-element-aa5a80c {
  --width: 230px;
  --flex-shrink: 1;
  padding: 0;
  min-width: 0;
}
body .elementor-55 .elementor-element.elementor-element-47cd789 {
  width: 100%;
  max-width: 230px;
  --container-widget-width: 100%;
}
body .elementor-55 .elementor-element.elementor-element-47cd789 > .elementor-widget-container { padding: 0; }
body .elementor-55 .elementor-element.elementor-element-47cd789 img { display: block; height: auto; }
body .elementor-55 .elementor-element.elementor-element-747a0cf {
  --width: auto;
  --flex-grow: 1;
  --flex-shrink: 1;
  min-width: 0;
  align-items: flex-end;
}
body .elementor-55 .elementor-element.elementor-element-ffce97f { width: auto; max-width: 100%; }
body .elementor-55 .elementor-nav-menu--main > .elementor-nav-menu { justify-content: flex-end; }
body .elementor-55 .elementor-element.elementor-element-ffce97f .elementor-nav-menu--main .elementor-item {
  padding: 16px 12px;
  font-size: 15px;
}
body .elementor-55 .elementor-element.elementor-element-ffce97f .elementor-menu-toggle {
  margin: 0 0 0 auto;
  min-width: 44px;
  min-height: 44px;
}
body .elementor-55 .elementor-nav-menu--dropdown .elementor-item { min-height: 44px; }

/* Footer: remove fixed spacer gaps and let columns reflow at tablet sizes. */
/* The trailing empty Elementor container contributes a 20px white strip.
   Keep it available if actual widgets are added to it later. */
body .elementor-62 .elementor-element.elementor-element-4cec0ac:not(:has(.e-con-inner > *)) { display: none; }
body .elementor-62 .elementor-element.elementor-element-d1b3016 {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: 40px;
  padding: 40px clamp(20px, 4vw, 64px) 24px;
}
body .elementor-62 .elementor-element.elementor-element-92c9c60 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  padding: 0;
  width: 100%;
}
body .elementor-62 :is(.elementor-element-4c6d9a0, .elementor-element-d316198, .elementor-element-1b9679d, .elementor-element-dc99bbc).elementor-element {
  width: 100%;
  min-width: 0;
  padding: 0;
}
body .elementor-62 .elementor-element.elementor-element-de8915a { width: 100%; gap: 12px; padding: 0; flex-wrap: wrap; }
body .elementor-62 .elementor-element-de8915a > .elementor-widget { width: auto; max-width: none; }
body .elementor-62 .elementor-element.elementor-element-a5be06a { width: 220px; max-width: 100%; }
body .elementor-62 .elementor-widget-nav-menu { width: 100%; max-width: 100%; }
body .elementor-62 .elementor-nav-menu a.elementor-item { white-space: normal; line-height: 1.5; padding: 10px 0; min-height: 44px; }
body .elementor-62 .elementor-heading-title { overflow-wrap: anywhere; }
body .elementor-62 .elementor-element.elementor-element-5aea2a2 { width: 100%; padding: 16px clamp(20px, 4vw, 64px) 32px; }
body .elementor-62 .elementor-element.elementor-element-10360eb { gap: 0; width: 100%; }
body .elementor-62 .elementor-element.elementor-element-ae1b5e5 { width: 100%; padding: 0; gap: 16px; align-items: center; flex-wrap: wrap; }
body .elementor-62 .elementor-element-ae1b5e5 > .elementor-widget { width: auto; min-width: 0; }
body .elementor-62 .elementor-element.elementor-element-32aeee6 { flex: 1 1 320px; }
body .elementor-62 .elementor-element.elementor-element-462b887 { display: none; }
body .elementor-62 .elementor-element-ae1b5e5 .elementor-heading-title { font-size: 14px; line-height: 1.6; }
body .elementor-62 .elementor-element-ae1b5e5 a { display: inline-flex; align-items: center; min-height: 44px; }

/* Shared content: allow text and flex/grid children to shrink without clipping. */
body .ovp-wrap :is(h1, h2, h3, h4, p, a, .contact-value) { overflow-wrap: anywhere; }
body .ovp-wrap :is(.hero-inner, .ai-inner, .eor-inner, .about-inner, .ap-inner, .stats-inner, .st-grid, .oc-grid, .ap-locations, .steps) > * { min-width: 0; }
body .ovp-wrap .btn { max-width: 100%; min-height: 44px; white-space: normal; text-align: center; justify-content: center; }
body .ovp-wrap :is(a, button, input, select, textarea):focus-visible,
body :is(.elementor-55, .elementor-62) a:focus-visible,
body .elementor-55 .elementor-menu-toggle:focus-visible {
  outline: 3px solid #1e5daa;
  outline-offset: 3px;
  box-shadow: 0 0 0 5px #fff;
}

/* Home hero: content determines height; the media follows the text column. */
body.home .ovp-wrap .hero { height: auto; }
body.home .ovp-wrap .hero-inner { height: auto; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
body.home .ovp-wrap .hero-content { padding: clamp(40px, 5vw, 80px) clamp(24px, 4.4vw, 64px); }
body.home .ovp-wrap .hero-img-wrap { height: auto; min-height: 560px; }
body.home .ovp-wrap .hero-video-placeholder { min-height: 100%; }
body.home .ovp-wrap .hero-tagline { color: #896500 !important; }
body.home .ovp-wrap .hero-sub { margin-bottom: 24px; }
body.home .ovp-wrap .hero h1 { font-size: clamp(28px, 3.1vw, 44px) !important; }
body.home .ovp-wrap .st-card h3 { line-height: 1.45 !important; }
body.home .ovp-wrap .outcomes :is(h2, h3) { color: #fff !important; }
body.home .ovp-wrap .outcomes p { color: #dce5ef !important; }
body.home .ovp-wrap .about-badge { right: 12px; }

/* Search and form controls retain usable widths on phones. */
body.page-id-712 .presence-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
body.page-id-712 .presence-card, body.page-id-712 .presence-detail > p { min-width: 0; overflow-wrap: anywhere; }
body.page-id-712 .presence-detail svg { flex-shrink: 0; }
body .ovp-faq-search input { min-width: 0 !important; width: 100%; font-size: 16px !important; }
body .ovp-faq-search button { flex-shrink: 0; }
body .faq-q:focus-visible { outline: 3px solid #1e5daa; outline-offset: 3px; }
body .ovp-faq-search input:focus-visible { outline: 3px solid #1e5daa !important; outline-offset: -3px; }
body .elementor-form :is(input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]), select, textarea) {
  max-width: 100%;
  min-width: 0;
  font-size: 16px;
}

@media (max-width: 1100px) {
  body.home .ovp-wrap .hero-inner { grid-template-columns: minmax(0, 1fr); }
  body.home .ovp-wrap .hero-img-wrap { min-height: 0; height: clamp(220px, 40vw, 380px); }
  body.home .ovp-wrap .hero-img-wrap::before { display: none; }
  body.home .ovp-wrap .steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
  body.home .ovp-wrap .step { padding: 0 8px; }
  body.home .ovp-wrap .step-arrow { display: none; }
}
@media (max-width: 1024px) {
  body .elementor-62 .elementor-element.elementor-element-d1b3016 { grid-template-columns: minmax(0, 1fr); }
  body .elementor-55 .elementor-element.elementor-element-aa5a80c { --width: 200px; }
  body .elementor-55 .elementor-element.elementor-element-ffce97f { position: static; }
  body .elementor-55 .elementor-element.elementor-element-ffce97f > .elementor-widget-container { position: static; }
  body .elementor-55 .elementor-element.elementor-element-747a0cf { position: static; }
  body .elementor-55 .elementor-nav-menu--dropdown.elementor-nav-menu__container {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: 100%;
    margin-top: 0;
    z-index: 1000;
    max-height: calc(100dvh - 90px);
    overflow-y: auto;
  }
}
@media (max-width: 767px) {
  body .elementor-745 .elementor-element.elementor-element-a8a231a { padding: 0 20px; }
  body .elementor-745 .elementor-element.elementor-element-a3f1842 { width: 100%; max-width: 100%; }
  body .elementor-745 .elementor-element.elementor-element-a3f1842 > .elementor-widget-container { padding: 0; }
  body.page-id-712 .presence-grid { grid-template-columns: minmax(0, 1fr); }
  body .elementor-62 .elementor-element.elementor-element-92c9c60 { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  body .elementor-55 .elementor-element.elementor-element-8aea7dd { padding: 14px 20px; min-height: 76px; }
  body .elementor-55 .elementor-element.elementor-element-aa5a80c { --width: 180px; }
  body.home .ovp-wrap .hero-content { padding: 40px 20px; }
  body.home .ovp-wrap .section { padding: 48px 20px; }
  body.home .ovp-wrap :is(.st-grid, .oc-grid) { grid-template-columns: minmax(0, 1fr); }
  body.home .ovp-wrap :is(.st-card, .oc-card) { padding: 24px; }
  body.home .ovp-wrap .stats-inner { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  body.home .ovp-wrap .stat-card { padding: 16px 4px; }
  body.home .ovp-wrap .stat-num { font-size: clamp(32px, 10vw, 48px) !important; }
  body.home .ovp-wrap .steps { grid-template-columns: minmax(0, 1fr); }
  body.home .ovp-wrap .ai-visual { padding: 24px 20px; }
  body.home .ovp-wrap .about-img-wrap img { height: auto; aspect-ratio: 4 / 3; }
  body .ovp-wrap .cta-band-left { padding: 40px 20px; min-width: 0; }
  body .ovp-wrap :is(.hero-btns, .cta-btns) { flex-direction: column; align-items: stretch; }
}
@media (prefers-reduced-motion: reduce) {
  body .ovp-wrap *, body .ovp-wrap *::before, body .ovp-wrap *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
