/* ===========================
   MOBILE STYLES
=========================== */

@media (max-width: 760px) {

  body {
    padding-top: 4rem;
    overflow-x: hidden !important;
  }

  html {
    overflow-x: hidden !important;
  }

  /* ===========================
     NAVIGATION
  ============================ */

  .sticky-nav {
    position: relative;
    z-index: 9999 !important;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    overflow: visible !important;
  }

  /* Hide desktop nav items */
  .sticky-nav a,
  .nav-spacer {
    display: none;
  }

  /* ===========================
     BURGER BUTTON
  ============================ */

  .burger {
    display: flex;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 100000 !important;
  }

  .burger span {
    width: 26px;
    height: 3px;
    background: #fff;
    border-radius: 3px;
    transition: all 0.3s ease;
  }

  .burger.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
  }

  .burger.active span:nth-child(2) {
    opacity: 0;
  }

  .burger.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
  }

  /* ===========================
     MOBILE MENU PANEL
     (Top layer + solid black + blur)
  ============================ */

  .mobile-menu {
    position: fixed !important;
    top: 0 !important;
    right: 0;
    width: 78%;
    height: 100vh;
    padding: 1.4rem 1.6rem;

    display: flex;
    flex-direction: column;
    gap: 1.2rem;

    /* Solid black + blur */
    background: #000 !important;
    backdrop-filter: blur(18px);

    /* Slide-in */
    transform: translateX(100%);
    transition: transform 0.3s ease;

    overflow-y: auto;
    z-index: 999999 !important; /* TOP layer */
  }

  .mobile-menu.open {
    transform: translateX(0);
  }

  /* ===========================
     MENU LINKS (readable)
  ============================ */

  .mobile-menu a {
    color: #fff;
    font-family: 'DM Mono', monospace;
    font-size: 0.9rem;
    letter-spacing: 1.6px;
    text-transform: uppercase;

    background: rgba(0,0,0,0.85);
    padding: 0.75rem 1rem;
    border-radius: 6px;
    display: block;
  }

  .mobile-menu .secondary-btn {
    margin-top: 0.5rem;
    text-align: center;
    padding: 0.9rem 1.2rem;
    font-size: 0.85rem;
  }

  /* ===========================
     OVERLAY (dim + blur)
  ============================ */

  #menuOverlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.45);
    backdrop-filter: blur(2px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 999998 !important; /* Just below menu */
  }

  #menuOverlay.active {
    opacity: 1;
    pointer-events: auto;
  }

  /* ===========================
     HERO RESPONSIVE FIXES
  ============================ */

  .logo-am {
    font-size: 2.2rem;
  }

  .hero-title {
    font-size: 1.8rem;
    text-align: center;
  }

  .hero-title--white {
    font-size: 1.4rem;
  }

  .hero-subtitle {
    font-size: 1rem;
    text-align: center;
    padding: 0 1rem;
  }

  .hero-lozenges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    justify-content: center;
    padding: 1rem;
  }

  .hero-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  .hero-supporting-title {
    font-size: 1.1rem;
    text-align: center;
    padding: 0 1rem;
  }

  /* ===========================
     GENERAL MOBILE SECTION FIXES
  ============================ */

  .section-title {
    text-align: center;
  }

  .section-copy {
    text-align: center;
    padding: 0 1rem;
  }

  .services-grid,
  .approach-grid,
  .project-grid {
    grid-template-columns: 1fr;
    padding: 0 1rem;
  }

  .service-card,
  .approach-card,
  .project-card {
    padding: 1.2rem;
  }

  #contact .contact-layout,
  .contact-layout {
    display: flex !important;
    flex-direction: column !important;
    gap: 2rem;
  }

  .contact-layout > div:first-child {
    width: 100%;
    order: 1;
  }

  .contact-layout #my-cal-inline-30min {
    width: 100% !important;
    order: 2;
  }

  .contact-photo {
    width: 100%;
    max-width: 84px;
    margin: 0 auto;
    display: block;
  }

  /* ===========================
     BOOKING CALENDAR (Cal.com)
     Let the widget stretch edge-to-edge
     instead of being squeezed by the
     desktop card padding.
  ============================ */
  .section.contact {
    padding-left: 3vw;
    padding-right: 3vw;
  }

  .subpage-section {
    padding: 1rem 0.5rem 3rem;
  }

  .contact-panel {
    padding: 1.25rem 0.5rem;
    border-radius: 18px;
    max-width: 100%;
    box-shadow: 0 8px 24px rgba(17, 24, 39, 0.08);
  }

  #my-cal-inline-30min {
    width: 100%;
    min-height: 640px;
    border-radius: 14px;
    overflow: hidden;
  }

  #my-cal-inline-30min iframe {
    width: 100% !important;
    max-width: 100% !important;
  }
}
