/* Mobile nav — premium slide-in drawer (overrides inline dropdown) */

@media (max-width: 1100px) {
  :root {
    --header-h: 72px;
    --mobile-drawer-w: min(320px, 88vw);
  }

  body.mobile-nav-open {
    overflow: hidden;
    touch-action: none;
  }

  .site-header {
    position: sticky;
    top: 0;
    z-index: 10001;
  }

  .site-header.is-open {
    max-height: none;
    overflow: visible;
  }

  .header-inner {
    grid-template-columns: auto 1fr auto;
    grid-template-rows: auto;
    align-items: center;
    gap: 0.6rem;
    min-height: var(--header-h);
    padding-block: 0.45rem;
  }

  .brand-lockup {
    grid-column: 2;
    grid-row: 1;
    min-width: 0;
  }

  .brand-lockup__logos-img {
    height: 38px;
    max-width: min(110px, 34vw);
  }

  .brand-lockup__name {
    font-size: clamp(0.95rem, 4.2vw, 1.2rem);
  }

  .brand-lockup__tag {
    font-size: clamp(0.48rem, 2.2vw, 0.58rem);
    letter-spacing: 0.12em;
  }

  .nav-toggle {
    display: flex;
    grid-column: 1;
    grid-row: 1;
    justify-self: start;
    align-self: center;
    width: 44px;
    height: 44px;
    border-radius: 13px;
    border: 1px solid rgba(13, 109, 102, 0.18);
    background: linear-gradient(165deg, #f8fffe 0%, #e8f7f3 100%);
    box-shadow: 0 2px 10px rgba(13, 109, 102, 0.1);
    z-index: 10003;
  }

  .nav-toggle span {
    width: 20px;
    background: #0d6d66;
    border-radius: 1px;
  }

  .site-header.is-open .nav-toggle {
    background: #ffffff;
    border-color: rgba(13, 109, 102, 0.22);
    box-shadow: 0 4px 16px rgba(13, 109, 102, 0.12);
  }

  .header-cta-group {
    grid-column: 3;
    grid-row: 1;
    justify-self: end;
    flex-wrap: nowrap;
    gap: 0.4rem;
    max-width: none;
    padding: 0;
  }

  .header-consult-btn {
    display: none;
  }

  .header-call {
    padding: 0.48rem 0.85rem;
    font-size: 0.72rem;
    white-space: nowrap;
    box-shadow: 0 3px 12px rgba(13, 109, 102, 0.2);
  }

  /* Full-screen overlay + right drawer */
  .site-nav {
    position: fixed;
    inset: 0;
    z-index: 10002;
    display: flex;
    justify-content: flex-end;
    align-items: stretch;
    grid-column: unset;
    grid-row: unset;
    max-height: none;
    margin: 0;
    padding: 0;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    background: rgba(6, 12, 22, 0.48);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition:
      opacity 0.32s ease,
      visibility 0.32s ease;
    border: none;
    overflow: hidden;
  }

  .site-header.is-open .site-nav {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    padding-bottom: 0;
    margin-top: 0;
  }

  .site-nav__pill {
    width: var(--mobile-drawer-w);
    height: 100%;
    max-height: 100dvh;
    margin: 0 0 0 auto;
    padding:
      calc(var(--header-h) + 0.75rem)
      1.15rem
      calc(5.5rem + env(safe-area-inset-bottom));
    border-radius: 26px 0 0 26px;
    border: none;
    border-left: 1px solid rgba(255, 255, 255, 0.75);
    background:
      radial-gradient(ellipse 90% 50% at 100% 0%, rgba(186, 230, 253, 0.35) 0%, transparent 55%),
      linear-gradient(168deg, #fcfeff 0%, #eef8fb 45%, #faf6ef 100%);
    box-shadow: -12px 0 48px rgba(12, 18, 34, 0.18);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    transform: translateX(104%);
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .site-header.is-open .site-nav__pill {
    transform: translateX(0);
  }

  .site-nav__pill::before {
    content: "Navigate";
    display: block;
    margin: 0 0 0.35rem 0.15rem;
    font-family: var(--font-sans);
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: #0d6d66;
  }

  .site-nav__pill::after {
    content: "";
    display: block;
    width: 2.5rem;
    height: 3px;
    margin: 0 0 1.1rem 0.15rem;
    border-radius: 999px;
    background: linear-gradient(90deg, #0d6d66 0%, #0d6d66 55%, #e8b923 55%, #e8b923 100%);
  }

  .site-nav__row {
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    width: 100%;
    gap: 0.4rem;
  }

  .site-nav__row--primary {
    padding-bottom: 0;
    border: none;
  }

  .site-nav__row--secondary {
    padding-top: 0.5rem;
    margin-top: 0.35rem;
    border-top: 1px solid rgba(13, 109, 102, 0.12);
  }

  .site-nav li {
    list-style: none;
    opacity: 0;
    transform: translateX(14px);
    transition:
      opacity 0.35s ease,
      transform 0.35s ease;
  }

  .site-header.is-open .site-nav li {
    opacity: 1;
    transform: translateX(0);
  }

  .site-header.is-open .site-nav__row--primary li:nth-child(1) { transition-delay: 0.06s; }
  .site-header.is-open .site-nav__row--primary li:nth-child(2) { transition-delay: 0.1s; }
  .site-header.is-open .site-nav__row--primary li:nth-child(3) { transition-delay: 0.14s; }
  .site-header.is-open .site-nav__row--primary li:nth-child(4) { transition-delay: 0.18s; }
  .site-header.is-open .site-nav__row--secondary li:nth-child(1) { transition-delay: 0.22s; }
  .site-header.is-open .site-nav__row--secondary li:nth-child(2) { transition-delay: 0.26s; }

  .site-nav a {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.88rem 1rem;
    font-size: 1rem;
    font-weight: 600;
    text-align: left;
    color: #0f172a;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(13, 109, 102, 0.1);
    box-shadow: 0 2px 10px rgba(12, 18, 34, 0.04);
    transition:
      transform 0.22s ease,
      background 0.22s ease,
      border-color 0.22s ease,
      box-shadow 0.22s ease;
  }

  .site-nav a::before {
    content: "";
    flex-shrink: 0;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0d6d66, #14b8a6);
    box-shadow: 0 0 0 3px rgba(13, 109, 102, 0.12);
  }

  .site-nav a:hover,
  .site-nav a:focus-visible {
    background: #ffffff;
    border-color: rgba(13, 109, 102, 0.28);
    transform: translateX(5px);
    box-shadow: 0 6px 20px rgba(13, 109, 102, 0.1);
  }

  /* Drawer footer — Book + Call */
  .site-header.is-open .header-cta-group {
    position: fixed;
    right: 0;
    bottom: 0;
    z-index: 10003;
    width: var(--mobile-drawer-w);
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.55rem;
    padding:
      1rem 1.15rem
      calc(1.15rem + env(safe-area-inset-bottom));
    background: linear-gradient(
      to top,
      #faf6ef 0%,
      rgba(250, 246, 239, 0.97) 65%,
      transparent 100%
    );
    pointer-events: auto;
  }

  .site-header.is-open .header-consult-btn {
    display: inline-flex;
    justify-content: center;
    width: 100%;
    padding: 0.72rem 1rem;
    font-size: 0.8125rem;
    font-weight: 700;
    border-radius: 999px;
    background: linear-gradient(105deg, #b5e8dc 0%, #d4f2ea 48%, #ecfbf7 100%);
    box-shadow: 0 4px 18px rgba(13, 109, 102, 0.12);
  }

  .site-header.is-open .header-call {
    display: inline-flex;
    justify-content: center;
    width: 100%;
    padding: 0.72rem 1rem;
    font-size: 0.8125rem;
    border-radius: 999px;
  }
}

@media (max-width: 1100px) and (prefers-reduced-motion: reduce) {
  .site-nav,
  .site-nav__pill,
  .site-nav a {
    transition: none;
  }

  .site-header.is-open .site-nav__pill {
    transform: none;
  }
}
