/* Final touch-first pass shared by every public Bonnova page. */
@media (max-width: 900px) {
  html { scroll-padding-top: 5.8rem; }
  body { overflow-x: clip; }
  .header, .arena-nav { width: calc(100% - 1rem) !important; height: 62px !important; min-height: 62px !important; padding-top: 0 !important; top: .75rem !important; grid-template-columns: 1fr auto !important; background: transparent !important; box-shadow: none !important; }
  .brand-logo, .arena-brand-logo { width: 42px !important; height: 42px !important; }
  .mobile-menu-toggle { min-height: 40px; padding: .6rem .8rem; font-size: .68rem; }
  .header .menu-group, .arena-nav nav, .arena-nav .nav-contact { display: none !important; }
  .header.is-menu-open .menu-group, .arena-nav.is-menu-open nav { display: grid !important; top: calc(100% + .45rem) !important; max-height: calc(100svh - 5.5rem); overflow-y: auto; overscroll-behavior: contain; }
  .arena-nav, .arena-nav.is-nav-fixed {
    left: 1rem !important;
    right: 1rem !important;
    width: auto !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    transform: none !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: none !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    animation: none !important;
  }
  .arena-nav .mobile-menu-toggle { justify-self: auto !important; }
  .arena-nav.is-nav-hidden {
    transform: translateY(-5.5rem) !important;
    opacity: 0 !important;
    pointer-events: none !important;
  }
  .header.is-menu-open nav a, .arena-nav.is-menu-open nav a { min-height: 44px; display: flex; align-items: center; justify-content: space-between; }
  .header.is-menu-open .specialties-popover { position: relative; width: 100%; }
  .header.is-menu-open .specialties-popover summary { min-height: 44px; display: flex; align-items: center; justify-content: space-between; padding: 0 .7rem; color: #f5f1e9; cursor: pointer; }
  .header.is-menu-open .specialties-panel { position: static; width: auto; margin-top: .25rem; padding: .45rem; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-radius: .85rem; background: rgba(245, 241, 233, .08); box-shadow: none; }
  .header.is-menu-open .specialties-panel a { min-width: 0; min-height: 40px; padding: .55rem .6rem; font-size: .68rem; }
  .header.is-menu-open .specialties-panel .specialties-all { grid-column: 1 / -1; justify-content: center; }
  .section-tracker { left: .75rem; bottom: .8rem; max-width: calc(100% - 5.5rem); min-height: 38px; padding: .45rem .75rem; font-size: .62rem; }
  .whatsapp { width: 52px; height: 52px; right: .85rem; bottom: .85rem; }
  .contact-form label { font-size: .7rem; }
  .contact-form input, .contact-form select, .contact-form textarea { border-radius: .35rem; }
}

@media (max-width: 620px) {
  .shell, .wrap, .hero-content, .arena-hero-content { width: calc(100% - 2rem); }
  .hero-panel { min-height: 100svh; }
  .hero-content { margin-bottom: 5.5rem; }
  .type-title, .hero-panel-arena h2 { font-size: clamp(3.35rem, 15vw, 4.8rem); }
  .hero-bottom { margin-top: 1.5rem; }
  .hero-bottom p { max-width: 31rem; font-size: 1rem; line-height: 1.58; }
  .hero-bottom .button { min-height: 48px; }
  .intro, .services, .projects, .contact, .facts, .amenities, .arena-gallery { padding-block: 3.8rem !important; }
  .intro-grid, .contact-grid { gap: 1.5rem; }
  .intro-copy { padding-left: 0; }
  .intro-copy p, .services-intro, .contact-copy > p { font-size: 1rem; line-height: 1.65; }
  .study-feature { margin-top: 2.8rem; }
  .study-image { min-height: 300px; }
  .study-feature-copy { padding: 1.5rem; }
  .service-grid { gap: .75rem; }
  .service-grid article { min-height: 0; padding: 1.35rem; }
  .service-grid article h3 { font-size: clamp(2.45rem, 11vw, 3.35rem); }
  .service-detail { margin-top: 1.1rem; }
  .service-more-toggle { min-height: 44px; }
  .project-head { gap: 1rem; }
  .project-head > p { margin: 0; font-size: .96rem; }
  .gallery { gap: .75rem; }
  .gallery .card, .gallery .card.active { min-height: 52svh; border-radius: 0; }
  .gallery .card-copy { left: 1.1rem; right: 1.1rem; bottom: 1.1rem; max-width: none; }
  .gallery .card-copy h3 { font-size: clamp(2.7rem, 13vw, 3.55rem); }
  .gallery .card-copy p { margin: .55rem 0 .8rem; font-size: .96rem; }
  .gallery .card-copy b { display: none; }
  .contact-copy h2, .cta-content h2 { font-size: clamp(3.1rem, 14vw, 4.35rem); }
  .contact-actions { width: 100%; gap: .85rem; }
  .contact-actions > a, .contact-instagram { width: 100%; }
  .contact-instagram { padding: 1rem; }
  .contact-instagram strong { font-size: 1.85rem; }
  .arena-hero { min-height: max(620px, 88svh); }
  .arena-hero-content { margin-bottom: 4.7rem; }
  .arena-hero h1 { font-size: clamp(5.1rem, 27vw, 7.6rem); }
  .hero-lead { font-size: 1rem; max-width: 25rem; }
  .arena-intro { padding-block: 3.8rem; }
  .arena-intro h2, .split-heading h2 { font-size: clamp(3.1rem, 14vw, 4.25rem); }
  .location-layout, .location-intro, .facts-lead, .facts-image-row, .location-context { gap: 1.5rem; }
  .location-layout figure, .location-context figure { margin: 0; }
  .location-layout img, .location-context img { width: 100%; height: auto; }
  /* Break the location map out to the screen edges and zoom in so it reads bigger on phones. */
  .location-layout figure { margin-inline: -1rem; width: calc(100% + 2rem); }
  .location-layout img { height: auto; aspect-ratio: 4 / 3; object-fit: cover; object-position: 58% 42%; }
  .location-routes { grid-template-columns: 1fr; }
  .facts-grid, .fact-details, .amenity-grid { grid-template-columns: 1fr; }
  .facts-grid article { min-height: 0; padding: 1.2rem; }
  .fact-details { gap: .75rem; }
  .amenities-title { margin-bottom: 1.35rem; font-size: clamp(3.1rem, 14vw, 4.25rem); }
  .amenity-grid article { min-height: 250px; padding: 1.35rem; }
  .amenity-grid article h3 { font-size: clamp(2.35rem, 11vw, 3.2rem); }
  .arena-carousel, .arena-carousel-large, .types-clean-window, .types-clean-render-window, .types-lightbox-panel, .amenity-lightbox-panel { border-radius: 0 !important; box-shadow: none !important; overflow: hidden; }
  .arena-carousel .carousel-window,
  .arena-carousel .carousel-track figure,
  .types-clean-track figure,
  .types-clean-render-panel,
  .types-clean-render-window,
  .amenity-lightbox img,
  .types-lightbox img { background: transparent !important; }
  .arena-carousel .carousel-controls,
  .carousel-track figcaption,
  .amenity-open,
  .types-clean-track figure span,
  .types-clean-renders-head,
  .types-lightbox-panel button,
  .amenity-lightbox-close { display: none !important; }
  .types-clean-section { padding-block: 3.8rem; }
  .types-clean-heading { margin-bottom: 2.4rem; }
  .types-clean-heading h2 { font-size: clamp(3.05rem, 14vw, 4.2rem); }
  .types-clean-heading > p:last-child { font-size: 1rem; }
  .types-clean-track img, .types-clean-render-window .types-clean-track img { width: 100%; height: auto; min-height: 0; max-height: none; object-fit: contain; }
  .types-clean-track figure { width: 100%; background: transparent; }
  .types-clean-renders { margin-top: 1rem; padding-top: 0; }
  .types-clean-renders-head { align-items: center; }
  .types-lightbox { padding: 0; }
  .types-lightbox-panel { width: 100%; }
  .arena-document-actions > div { grid-template-columns: 1fr; }
  .arena-document-button { min-height: 5.2rem; }
  .arena-footer { grid-template-columns: 42px 1fr; gap: .75rem; }
  body > header:not(.header):not(.arena-nav):not(.case-header) { width: calc(100% - 2rem); height: 72px; gap: .75rem; }
  body > header:not(.header):not(.arena-nav):not(.case-header) img { width: 42px; height: 42px; }
  body > header:not(.header):not(.arena-nav):not(.case-header) nav { display: flex; gap: .35rem; overflow-x: auto; white-space: nowrap; font-size: .62rem; scrollbar-width: none; }
  body > header:not(.header):not(.arena-nav):not(.case-header) nav::-webkit-scrollbar { display: none; }
  body > header:not(.header):not(.arena-nav):not(.case-header) nav a { padding: .55rem .65rem; }
  .case-header { min-height: 66px; padding-inline: 1rem; }
  .case-header nav { gap: .45rem; overflow-x: auto; white-space: nowrap; scrollbar-width: none; }
  .case-header nav::-webkit-scrollbar { display: none; }
  .case-header nav a { min-height: 38px; display: inline-flex; align-items: center; padding: .45rem .55rem; }
  .case-hero-image { min-height: 43svh; }
  .case-hero-copy { padding: 2rem 1rem 2.5rem; }
  .case-hero h1 { font-size: clamp(4.2rem, 19vw, 5.7rem); }
  .case-hero-copy > p:last-child, .case-summary p { font-size: 1rem; line-height: 1.65; }
  .case-gallery { columns: 1; padding-top: 2rem; }
  .case-gallery figure { margin-bottom: .75rem; }
  .case-cta { margin-top: 2.5rem; }
}

@media (max-width: 390px) {
  .header.is-menu-open .specialties-panel { grid-template-columns: 1fr; }
}

/* Shared hamburger navigation for the home, Arena, portfolio and case pages. */
@media (max-width: 900px) {
  .mobile-menu-toggle {
    width: 44px;
    height: 44px;
    min-height: 44px;
    display: inline-grid;
    place-items: center;
    padding: 0;
    border-color: rgba(245, 241, 233, .52);
  }

  .menu-bars { display: grid; gap: 4px; width: 18px; }
  .menu-bars i { display: block; width: 18px; height: 1.5px; border-radius: 999px; background: currentColor; transition: transform .22s ease, opacity .18s ease; }
  .is-menu-open .menu-bars i:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
  .is-menu-open .menu-bars i:nth-child(2) { opacity: 0; }
  .is-menu-open .menu-bars i:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

  .case-header,
  body > header:not(.header):not(.arena-nav):not(.case-header) {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(241, 237, 229, .96);
    backdrop-filter: blur(14px);
  }

  .case-header nav,
  body > header:not(.header):not(.arena-nav):not(.case-header) nav {
    display: none !important;
  }

  .case-header.is-menu-open nav,
  body > header:not(.header):not(.arena-nav):not(.case-header).is-menu-open nav {
    position: absolute;
    top: calc(100% + .35rem);
    left: .5rem;
    right: .5rem;
    display: grid !important;
    gap: .3rem;
    padding: .65rem;
    border: 1px solid rgba(29, 28, 25, .13);
    border-radius: 1rem;
    background: rgba(241, 237, 229, .98);
    box-shadow: 0 16px 34px rgba(31, 28, 22, .16);
  }

  .case-header.is-menu-open nav a,
  body > header:not(.header):not(.arena-nav):not(.case-header).is-menu-open nav a {
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: .75rem .8rem;
    border-radius: .65rem;
    color: #1e1e1c;
    font-size: .72rem;
  }

  .case-header.is-menu-open nav .contact-menu,
  body > header:not(.header):not(.arena-nav):not(.case-header).is-menu-open nav .contact-menu {
    justify-content: center;
    border-color: #1e1e1c !important;
  }

  .header.is-menu-open nav a,
  .arena-nav.is-menu-open nav a,
  .case-header.is-menu-open nav a,
  body > header:not(.header):not(.arena-nav):not(.case-header).is-menu-open nav a {
    opacity: 0;
    transform: translateY(-8px);
    animation: mobile-menu-link .32s cubic-bezier(.16, 1, .3, 1) forwards;
  }

  .header.is-menu-open nav a:nth-child(1),
  .arena-nav.is-menu-open nav a:nth-child(1),
  .case-header.is-menu-open nav a:nth-child(1),
  body > header:not(.header):not(.arena-nav):not(.case-header).is-menu-open nav a:nth-child(1) { animation-delay: .05s; }
  .header.is-menu-open nav a:nth-child(2),
  .arena-nav.is-menu-open nav a:nth-child(2),
  .case-header.is-menu-open nav a:nth-child(2),
  body > header:not(.header):not(.arena-nav):not(.case-header).is-menu-open nav a:nth-child(2) { animation-delay: .09s; }
  .header.is-menu-open nav a:nth-child(3),
  .arena-nav.is-menu-open nav a:nth-child(3),
  .case-header.is-menu-open nav a:nth-child(3),
  body > header:not(.header):not(.arena-nav):not(.case-header).is-menu-open nav a:nth-child(3) { animation-delay: .13s; }
  .header.is-menu-open nav a:nth-child(4),
  .arena-nav.is-menu-open nav a:nth-child(4),
  .case-header.is-menu-open nav a:nth-child(4),
  body > header:not(.header):not(.arena-nav):not(.case-header).is-menu-open nav a:nth-child(4) { animation-delay: .17s; }
  .header.is-menu-open nav a:nth-child(5),
  .arena-nav.is-menu-open nav a:nth-child(5),
  .case-header.is-menu-open nav a:nth-child(5),
  body > header:not(.header):not(.arena-nav):not(.case-header).is-menu-open nav a:nth-child(5) { animation-delay: .21s; }
}

@keyframes mobile-menu-link { to { opacity: 1; transform: none; } }
