.mobile-menu-toggle,
.mobile-menu-panel,
.services-mobile-view {
  display: none;
}

@media (max-width: 900px) {
  html,
  body {
    overflow-x: hidden;
    min-height: 100%;
  }

  body {
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
  }

  body.menu-open {
    overflow: hidden !important;
  }

  .jDe9Eg {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 14px 18px !important;
    position: sticky;
    top: 0;
    z-index: 1001;
  }

  .jDe9Eg .DBPC9g {
    display: flex;
    align-items: center;
    gap: 0;
    flex: 1;
    min-width: 0;
    margin: 0;
    padding: 0;
  }

  .jDe9Eg .DBPC9g li {
    display: none !important;
  }

  .jDe9Eg .DBPC9g li:first-child,
  .jDe9Eg .DBPC9g li:first-child a,
  .jDe9Eg .DBPC9g li:first-child span {
    display: none !important;
  }

  .mobile-menu-toggle {
    display: flex !important;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    appearance: none;
    border: 0;
    background: transparent;
    width: 44px;
    height: 44px;
    padding: 10px;
    cursor: pointer;
    flex: 0 0 auto;
    position: relative;
    z-index: 100000;
    pointer-events: auto;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    margin-left: auto;
  }

  .mobile-menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: #304254;
    border-radius: 2px;
    pointer-events: none;
  }

  body > .mobile-menu-panel {
    display: none;
    position: fixed !important;
    top: 72px !important;
    left: 16px !important;
    right: 16px !important;
    background: #fff;
    border-radius: 16px;
    padding: 12px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.18);
    z-index: 99999 !important;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
    max-height: calc(100dvh - 96px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  body > .mobile-menu-panel.is-open {
    display: block !important;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }

  .mobile-menu-panel a {
    display: block;
    padding: 12px 10px;
    color: #304254;
    text-decoration: none;
    font-family: YAFdJs2qTWQ_0, Arial, sans-serif;
    font-weight: 700;
    border-radius: 10px;
  }

  .mobile-menu-panel a[aria-current="page"],
  .mobile-menu-panel a:hover {
    background: #f3f4fb;
  }

  /* Hide the original Canva fixed canvas on mobile */
  ._65lpxA {
    display: none !important;
  }

  /* Mobile replacement view */
  .services-mobile-view {
    display: block;
    background: #5555b7;
    padding: 24px 16px 40px;
    height: calc(100dvh - 72px);
    min-height: calc(100dvh - 72px);
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    box-sizing: border-box;
  }

  .services-mobile-inner {
    max-width: 560px;
    margin: 0 auto;
    padding-bottom: 28px;
  }

  .services-mobile-view h1 {
    margin: 8px 0 24px;
    font-family: YAFdJs2qTWQ_0, Arial, sans-serif;
    font-size: clamp(36px, 10vw, 56px);
    line-height: 0.95;
    letter-spacing: -0.05em;
    color: #fff;
    font-weight: 700;
    opacity: 1;
    transform: none;
    animation: servicesFadeUp 0.7s cubic-bezier(.22, 1, .36, 1) both;
  }

  .services-mobile-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .services-card {
    background: #fff;
    border-radius: 24px;
    padding: 14px;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.08);
    opacity: 1;
    transform: none;
    animation: servicesFadeUp 0.7s cubic-bezier(.22, 1, .36, 1) both;
  }

  .services-card:nth-child(1) {
    animation-delay: 0.08s;
  }

  .services-card:nth-child(2) {
    animation-delay: 0.16s;
  }

  .services-card:nth-child(3) {
    animation-delay: 0.24s;
  }

  .services-card img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border-radius: 18px;
  }

  .services-card h2 {
    margin: 14px 6px 4px;
    font-family: YAFdJs2qTWQ_0, Arial, sans-serif;
    font-size: 28px;
    line-height: 1.05;
    letter-spacing: -0.03em;
    color: #ff803b;
    font-weight: 700;
  }

  .services-card:nth-child(2) h2 {
    max-width: 10ch;
  }

  .services-card:nth-child(3) h2 {
    max-width: 11ch;
  }
}

@keyframes servicesFadeUp {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (min-width: 901px) {
  .jDe9Eg[data-animate="hero-subtle"],
  .DF_utQ[data-animate="hero-title"],
  .DF_utQ[data-animate="service-card"] {
    animation: servicesDesktopFade 0.85s cubic-bezier(.22, 1, .36, 1) both;
  }

  .DF_utQ[data-animate="hero-title"] {
    animation-delay: 0.08s;
  }

  .DF_utQ[data-animate="service-card"]:nth-of-type(1) {
    animation-delay: 0.16s;
  }

  .DF_utQ[data-animate="service-card"]:nth-of-type(2) {
    animation-delay: 0.24s;
  }

  .DF_utQ[data-animate="service-card"]:nth-of-type(3) {
    animation-delay: 0.32s;
  }
}

@keyframes servicesDesktopFade {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}