/* Off-canvas menu (mobile + tablet). Hidden entirely on desktop. */

.cura-oc {
  display: none;
}

@media (max-width: 1024px) {
  .cura-oc {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 2147482000; /* above the WhatsApp bubble and the WP admin bar */
    pointer-events: none;
    visibility: hidden;
    transition: visibility 0s linear 0.32s;
  }

  .cura-oc.is-open {
    pointer-events: auto;
    visibility: visible;
    transition-delay: 0s;
  }

  .cura-oc-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(14, 24, 31, 0.55);
    -webkit-backdrop-filter: blur(3px);
    backdrop-filter: blur(3px);
    opacity: 0;
    transition: opacity 0.3s ease;
  }

  .cura-oc.is-open .cura-oc-backdrop {
    opacity: 1;
  }

  .cura-oc-panel {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: min(86vw, 360px);
    display: flex;
    flex-direction: column;
    gap: 22px;
    padding: 20px 22px 28px;
    background: linear-gradient(180deg, #1A2933 0%, #223644 100%);
    color: #FFFFFF;
    font-family: 'Amiko', sans-serif;
    overflow-y: auto;
    overscroll-behavior: contain;
    box-sizing: border-box;
    transform: translateX(-100%);
    transition: transform 0.32s cubic-bezier(0.22, 0.8, 0.24, 1);
    box-shadow: 18px 0 48px rgba(0, 0, 0, 0.35);
    outline: none;
  }

  .cura-oc.is-open .cura-oc-panel {
    transform: translateX(0);
  }

  .cura-oc-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 56px;
  }

  .cura-oc-logo img {
    display: block;
    width: 96px;
    height: auto;
  }

  .cura-oc-logo span {
    font-size: 28px;
    font-weight: 700;
    color: #FFFFFF;
  }

  .cura-oc-close {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    margin: 0;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: #FFFFFF;
    cursor: pointer;
    transition: background 0.2s ease;
  }

  .cura-oc-close:hover,
  .cura-oc-close:focus-visible {
    background: rgba(255, 255, 255, 0.18);
  }

  /* Links */

  .cura-oc-nav {
    display: flex;
    flex-direction: column;
  }

  .cura-oc-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 52px;
    padding: 0 4px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: #FFFFFF;
    font-family: 'Sofia Sans Semi Condensed', 'Sofia Sans', sans-serif;
    font-size: 20px;
    font-weight: 700;
    text-decoration: none;
    transition: color 0.2s ease, padding 0.2s ease;
  }

  .cura-oc-link svg {
    color: #73B1DD;
    transition: transform 0.2s ease;
  }

  .cura-oc-link:hover,
  .cura-oc-link:focus-visible,
  .cura-oc-link.is-current {
    color: #73B1DD;
    padding-left: 8px;
  }

  .cura-oc-link:hover svg {
    transform: translateX(3px);
  }

  /* Account */

  .cura-oc-account {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  .cura-oc-auth {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .cura-oc-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 18px;
    border-radius: 999px;
    font-family: 'Sofia Sans Semi Condensed', 'Sofia Sans', sans-serif;
    font-size: 17px;
    font-weight: 700;
    text-decoration: none;
    text-align: center;
    box-sizing: border-box;
    transition: background 0.2s ease, transform 0.15s ease;
  }

  .cura-oc-btn:active {
    transform: scale(0.98);
  }

  .cura-oc-btn-ghost {
    border: 1.5px solid rgba(255, 255, 255, 0.35);
    color: #FFFFFF;
  }

  .cura-oc-btn-ghost:hover {
    background: rgba(255, 255, 255, 0.1);
  }

  .cura-oc-btn-primary {
    background: #41637B;
    border: 1.5px solid #4E7A93;
    color: #FFFFFF;
  }

  .cura-oc-btn-primary:hover {
    background: #4E7A93;
  }

  .cura-oc-cta {
    margin-top: auto;
  }

  .cura-oc-user {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.07);
  }

  .cura-oc-user img {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
  }

  .cura-oc-user strong {
    display: block;
    font-size: 16px;
  }

  .cura-oc-user small {
    color: rgba(255, 255, 255, 0.65);
    font-size: 12.5px;
  }

  .cura-oc-acc-links {
    display: flex;
    flex-direction: column;
  }

  .cura-oc-acc-link {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 44px;
    padding: 0 6px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 15px;
    text-decoration: none;
    border-radius: 10px;
  }

  .cura-oc-acc-link:hover {
    background: rgba(255, 255, 255, 0.08);
  }

  .cura-oc-acc-link svg {
    color: #73B1DD;
    flex: none;
  }

  .cura-oc-acc-link em {
    margin-left: auto;
    min-width: 22px;
    padding: 2px 7px;
    border-radius: 999px;
    background: #F28E87;
    color: #1A2933;
    font-size: 12px;
    font-style: normal;
    font-weight: 700;
    text-align: center;
  }

  .cura-oc-acc-link.is-logout {
    color: #F28E87;
  }

  .cura-oc-acc-link.is-logout svg {
    color: #F28E87;
  }

  /* Header hamburger(s) get a proper hit area + keyboard focus ring */

  header.elementor-location-header .cura-oc-trigger {
    cursor: pointer;
  }

  header.elementor-location-header .cura-oc-trigger:focus-visible {
    outline: 2px solid #73B1DD;
    outline-offset: 3px;
    border-radius: 8px;
  }

  html.cura-oc-lock,
  html.cura-oc-lock body {
    overflow: hidden !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cura-oc-panel,
  .cura-oc-backdrop,
  .cura-oc {
    transition-duration: 0.01ms !important;
  }
}
