/* Ocean Group mobile navigation, conversion bar, and overflow safeguards. */
html,
body {
  max-width: 100%;
  overflow-x: clip;
}

.og-mobile-menu-toggle,
.og-mobile-menu,
.og-mobile-action-bar {
  display: none;
}

@media (max-width: 768px) {
  body {
    padding-bottom: calc(76px + env(safe-area-inset-bottom));
  }

  body.og-mobile-menu-open {
    overflow: hidden;
  }

  body > *,
  main,
  section,
  article,
  header,
  footer,
  nav,
  div,
  ul,
  li {
    min-width: 0;
    max-width: 100%;
  }

  img,
  video,
  iframe,
  svg,
  canvas {
    max-width: 100%;
    height: auto;
  }

  pre,
  code {
    max-width: 100%;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
  }

  p,
  li,
  li > span,
  a,
  h1,
  h2,
  h3,
  h4 {
    overflow-wrap: anywhere;
  }

  [style*="display:grid"],
  [style*="display: grid"] {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  [style*="display:flex"],
  [style*="display: flex"] {
    flex-wrap: wrap !important;
  }

  [style*="transform:scale"],
  [style*="transform: scale"] {
    transform: none !important;
  }

  .container,
  .nav-inner,
  .hero-inner,
  .section-inner {
    width: 100%;
    max-width: 100% !important;
  }

  nav,
  .nav {
    position: sticky;
    top: 0;
    z-index: 10000;
    padding: 0 !important;
  }

  nav .nav-inner,
  .nav .nav-inner,
  .og-mobile-nav-shell {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
    min-height: 68px;
    padding: 10px 14px !important;
    gap: 12px;
    flex-wrap: nowrap !important;
  }

  .og-mobile-nav-shell > .nav-brand {
    flex: 1 1 auto;
    min-width: 0;
  }

  .og-mobile-nav-shell > .nav-brand > div {
    display: none;
  }

  .og-mobile-nav-shell > span:not(.nav-logo) {
    display: none;
  }

  .og-mobile-nav-shell:not(.nav-inner) > *:not(:first-child):not(.og-mobile-menu-toggle) {
    display: none !important;
  }

  .og-mobile-nav-shell > a:first-child img {
    display: block;
    width: auto;
    max-width: 220px;
    max-height: 44px;
  }

  nav .nav-logo,
  .nav .nav-logo {
    flex: 1 1 auto;
    min-width: 0;
    font-size: 0.95rem;
  }

  nav .nav-logo small,
  .nav .nav-logo small {
    font-size: 0.55rem;
    letter-spacing: 0.04em;
  }

  nav .nav-links,
  .nav .nav-links {
    display: none !important;
  }

  .og-mobile-menu-toggle {
    display: inline-flex;
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255,255,255,.28);
    border-radius: 10px;
    background: rgba(255,255,255,.08);
    color: #fff;
    cursor: pointer;
  }

  .og-mobile-menu-toggle svg {
    width: 24px;
    height: 24px;
  }

  .og-mobile-menu {
    position: fixed;
    top: var(--og-mobile-nav-height, 68px);
    right: 0;
    bottom: calc(64px + env(safe-area-inset-bottom));
    left: 0;
    z-index: 9999;
    overflow-y: auto;
    padding: 12px 16px 28px;
    background: #111c2d;
    border-top: 1px solid rgba(255,255,255,.12);
    box-shadow: 0 18px 40px rgba(0,0,0,.35);
  }

  .og-mobile-menu.is-open {
    display: grid;
    align-content: start;
    gap: 4px;
  }

  .og-mobile-menu a {
    display: block;
    min-height: 46px;
    padding: 12px 10px;
    border-bottom: 1px solid rgba(255,255,255,.09);
    color: #e2e8f0 !important;
    font-size: 0.95rem;
    font-weight: 650;
    text-decoration: none;
  }

  .og-mobile-menu a:last-child {
    border-bottom: 0;
  }

  .og-mobile-action-bar {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 10001;
    min-height: calc(68px + env(safe-area-inset-bottom));
    padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
    gap: 8px;
    background: rgba(15,23,42,.97);
    border-top: 1px solid rgba(255,255,255,.14);
    box-shadow: 0 -8px 24px rgba(0,0,0,.25);
    backdrop-filter: blur(12px);
    box-sizing: border-box;
  }

  .og-mobile-action-bar a {
    display: flex;
    min-width: 0;
    min-height: 52px;
    align-items: center;
    justify-content: center;
    padding: 10px 12px;
    border-radius: 9px;
    color: #fff !important;
    font-size: 0.82rem;
    font-weight: 800;
    line-height: 1.1;
    text-align: center;
    text-decoration: none;
  }

  .og-mobile-action-bar .og-mobile-action-label {
    display: inline !important;
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
    font: inherit !important;
    opacity: 1 !important;
    visibility: visible !important;
  }

  .og-mobile-call {
    background: #13734b;
  }

  .og-mobile-assessment {
    background: #e8720c;
  }
}
