/* Megaphone PHX — Responsive (mobile <= 512px) */

@media (max-width: 512px) {

  /* ==================== LAYOUT ==================== */

  .row.stack-mobile {
    grid-template-columns: 1fr;
  }

  .row.stack-mobile > [class*="col-"] {
    grid-column: span 1;
  }

  /* ==================== TYPOGRAPHY ==================== */

  h1 {
    font-size: 8rem;
  }

  h2 {
    font-size: 10vw;
  }

  /* ==================== BUTTONS ==================== */

  .button {
    font-size: min(2rem, 32px);
  }

  .button:hover {
    background-color: var(--swatch-6);
    transform: none !important;
    box-shadow: none !important;
  }

  .button.services {
    font-size: min(1.2rem, 2rem);
  }

  /* ==================== PARALLAX ==================== */

  .floating-elements {
    display: none;
  }

  /* ==================== MARQUEE ==================== */

  .marquee-content span {
    font-size: 0.75rem;
  }

  .CTA {
    min-height: 50px;
    text-align: center;
  }

  .CTA span {
    font-size: 2rem;
  }

  .mobile-hide {
    display: none !important;
  }
  .navContainer {
    height: auto !important;
    padding: 0 1rem !important;
  }

  .navItem a {
    font-size: 6vw;
  }

  .navContainer .secondary {
    display: none !important;
  }

  .navItem {
    flex-flow: row nowrap !important;
    gap: 1rem;
    text-align: center;
    justify-content: space-around;
    margin: 2rem 0 -1rem;
  }

  .drama {
    text-align: left;
    padding-left: 0;
    display: inline-block;
    width: 100%;
  }

  /* ==================== NEWSLETTER ==================== */

  .newsletter-form {
    padding: 0;
    margin: 3rem 0;
  }

  .newsletter-form input[type="text"],
  .newsletter-form input[type="email"] {
    font-size: 1rem;
    padding: 0.8rem 1rem;
  }

  .newsletter-form .button {
    font-size: clamp(10px, 2.0rem, 3rem) !important;
  }

  /* ==================== GALLERY ==================== */

  .indexGallery {
    min-height: 50vh;
    padding: 2rem;
  }

  .fadeBG {
    margin: -2rem 0 0 -2rem;
  }

  .gallery-grid {
    position: static;
    min-height: auto;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding: 0;
  }

  .gallery-item {
    position: static;
    width: 100% !important;
  }

  /* ==================== SERVICES ==================== */

  #services {
    margin-top: 0;
  }

  .section {
    padding: 0;
    text-align: center;
  }

  .sectionHeader {
    padding: 4rem 2rem 2rem !important;
  }

  .serviceItem {
    padding: 1rem 2rem 2rem !important;
  }

  .serviceItem .title {
    font-size: 2.0rem;
    padding: 2.0rem 1rem 1rem !important;
  }

  .serviceItem .drop-in {
    padding: 1.5rem !important;
  }

  .serviceItem .button {
    width: calc(100% - 2rem);
    margin: 0 0 3rem 1rem;
  }

  /* Disable hover effects on mobile */
  .serviceItem:hover .img {
    filter: grayscale(100%);
  }

  .serviceItem:hover .title {
    background-color: transparent;
    color: var(--agedBlack);
    font-weight: 400;
  }

  .serviceItem:hover .inset {
    background-color: transparent;
  }

  .serviceItem:hover .title::before,
  .serviceItem:hover .title::after {
    content: none;
  }

  /* Active state for scroll-based highlighting */
  .serviceItem.active .img {
    filter: grayscale(0%);
  }

  .serviceItem.active .title {
    background-color: var(--tangerine);
    font-weight: 600;
  }

  .serviceItem.active .title::before {
    content: "\2192  ";
    color: white;
  }

  .serviceItem.active .title::after {
    content: " _";
    color: white;
  }

  .serviceItem.active .inset {
    background-color: rgba(255, 255, 255, 0.4);
  }

  .serviceItem.active .button {
    opacity: 100%;
    filter: grayscale(0%);
  }

  /* ==================== OVERLAY ==================== */

  .overlay.active {
    display: flex;
    flex-direction: column;
    top: 1rem;
    left: 2.5%;
    right: 2.5%;
    width: 95%;
    max-width: none;
    max-height: calc(100vh - 2rem);
    overflow-y: auto;
    overflow-x: hidden;
  }

  .zone1, .zone2, .zone3, .zone4, .zone5, .zone6 {
    grid-area: auto !important;
    position: relative !important;
  }

  .zone1 {
    padding: 1rem;
    min-height: auto !important;
    text-indent: 0;
    order: 1;
  }

  .zone1 h1 {
    font-size: 3rem;
    letter-spacing: -0.15rem;
  }

  .zone4 {
    position: absolute !important;
    top: 0;
    right: 0;
    height: auto;
    padding: 0.7rem;
    z-index: 10;
    order: 2;
    border-radius: 0;
  }

  .zone5 {
    position: relative;
    top: 0;
    height: auto;
    min-height: none;
    padding: 1.5rem 1rem 0;
    order: 3;
    display: flex !important;
    overflow: visible !important;
    flex-direction: column;
  }

  .zone5 .img {
    margin: -1.5rem -1rem 1rem;
    min-height: 300px;
    flex: 0 0 auto !important;
  }

  .zone5 .name {
    font-size: 3.0rem;
    letter-spacing: -0.1rem;
    margin-bottom: 0.75rem;
  }

  .zone5 .tagGroup {
    display: flex;
    margin: 1rem 0;
  }

  .zone5 .tagGroup:empty {
    display: none;
    margin: 0;
    padding: 0;
    height: 0;
  }

  .zone5 .desc {
    font-size: 0.95rem;
    line-height: 1.4;
    margin-bottom: 1rem;
  }

  .zone6 {
    padding: 1rem 1rem 1rem .75rem;
    margin-bottom: 0;
    order: 4;
  }

  .zone2 {
    display: flex !important;
    flex-direction: column;
    order: 5;
    height: auto !important;
  }

  .zone2 .menuTitle {
    grid-area: auto;
  }

  .zone2 .menuItem {
    height: auto;
    min-height: 36px;
    padding: 0.5rem 1rem;
    font-size: 0.95rem;
  }

  .zone3 {
    display: flex !important;
    flex-direction: column;
    height: auto !important;
    order: 6;
    align-content: normal !important;
  }

  .zone3 h2 {
    font-size: 1.1rem;
  }

  .zone3 .event {
    height: auto;
    max-height: none;
    min-height: 36px;
    padding: 0.5rem 1rem;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
    grid-template-areas: none !important;
    grid-template-columns: none !important;
    grid-template-rows: none !important;
  }

  .zone3 .eventTitle {
    font-size: 0.95rem;
    margin-bottom: 0;
    flex: 1;
    text-align: left;
  }

  .zone3 .eventDate {
    font-size: 0.95rem;
    flex: 0 0 auto;
    text-align: right;
    font-weight: 400;
  }

  .zone3 .eventDesc,
  .zone3 .eventAddress {
    display: none;
  }

  .tag {
    font-size: .875rem;
    padding: 5px;
    border-radius: 0 0.5rem .5rem;
  }

  .iconLink {
    padding: 6px 8px 6px 25px;
  }

  /* ==================== FOOTER ==================== */

  .footer {
    margin-bottom: 0;
  }

  .footer .brand {
    width: 100%;
    margin: 3rem 0;
    padding: 0;
  }

  .footer .brand .superscript {
    font-size: 4.0vw;
  }

  .footer .vacancy {
    padding: 3rem;
  }

  .footer .findUs {
    font-size: 1.2rem;
    margin: 3rem 1rem 3rem 2rem;
    line-height: 1.5;
  }

  .footer .copyright {
    font-size: 0.77rem;
    text-align: center;
  }
}
