/* Mobile shell: shared Target Works typography, Nimble disclosure hierarchy.
   Desktop rules remain in style.css. Keep this sheet after shared styles. */
@media (max-width: 980px) {
  /* Keep the native no-JS disclosure usable; enhanced locking also fixes the
     body's position so iOS cannot pan the page underneath the scrollable menu. */
  html:has(.mobile-navigation[open]):not(:has(.mobile-menu-locked)) { overflow: hidden; overscroll-behavior: none; }
  body.mobile-menu-locked {
    position: fixed;
    left: 0;
    right: 0;
    width: 100%;
    overflow: hidden;
    overscroll-behavior: none;
  }
  /* Fixed-body locking changes the sticky containing block. Pin the header
     explicitly and preserve its 72px flow space so the backdrop does not jump. */
  body.mobile-menu-locked::before { content: ""; display: block; height: var(--header-height); }
  body.mobile-menu-locked .site-header { position: fixed; }

  .site-header {
    gap: 12px;
    padding-inline: var(--container-padding);
  }

  .site-header .header-mobile-cta {
    min-height: 44px;
    padding-inline: 12px;
    font-size: 11px;
  }

  .mobile-navigation > .nav-toggle {
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    -webkit-tap-highlight-color: transparent;
  }

  .nav-toggle-icon {
    position: relative;
    display: block;
    width: 26px;
    height: 20px;
  }

  .nav-toggle-icon > span {
    position: absolute;
    inset-inline: 0;
    height: 2px;
    background: currentColor;
    transform-origin: center;
    transition: transform 180ms var(--ease-out), opacity 180ms var(--ease-out);
  }

  .nav-toggle-icon > span:nth-child(1) { top: 1px; }
  .nav-toggle-icon > span:nth-child(2) { top: 9px; }
  .nav-toggle-icon > span:nth-child(3) { top: 17px; }
  .mobile-navigation[open] .nav-toggle-icon > span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .mobile-navigation[open] .nav-toggle-icon > span:nth-child(2) { opacity: 0; transform: scaleX(0); }
  .mobile-navigation[open] .nav-toggle-icon > span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

  .mobile-navigation-panel {
    display: flex;
    flex-direction: column;
    gap: 0;
    max-height: calc(100vh - var(--header-height));
    max-height: calc(100dvh - var(--header-height));
    padding: 24px var(--container-padding) max(24px, env(safe-area-inset-bottom));
    border-top: 3px solid var(--atc-red);
    border-bottom: 1px solid var(--line);
    background: var(--atc-black-true);
    color: var(--atc-ivory);
    box-shadow: 0 20px 40px rgb(0 0 0 / 45%);
  }

  .mobile-navigation-eyebrow {
    margin: 0 0 20px;
    color: var(--fg-muted);
    font: 500 10px/1.5 var(--font-ui);
    letter-spacing: .12em;
    text-transform: uppercase;
  }

  .site-header .mobile-navigation-panel .main-nav {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    border-top: 1px solid var(--line);
  }

  .site-header .mobile-navigation-panel .main-nav a {
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr);
    gap: 12px;
    min-height: 56px;
    padding: 11px 0;
    border-bottom: 1px solid var(--line);
    color: var(--atc-ivory);
    letter-spacing: 0;
  }

  .mobile-navigation-index {
    align-self: center;
    color: var(--fg-muted);
    font: 400 10px/1.4 var(--font-ui);
  }

  .mobile-navigation-label {
    font: 500 clamp(26px, 6.8vw, 34px)/1.08 var(--font-display);
    text-transform: uppercase;
  }

  .site-header .mobile-navigation-panel .main-nav a.active {
    box-shadow: inset 3px 0 var(--atc-red-bright);
    padding-inline-start: 12px;
  }

  .site-header .mobile-navigation-panel .main-nav a:is(:hover, :focus-visible) {
    background: rgb(255 245 223 / 5%);
    color: var(--atc-ivory);
  }

  .mobile-navigation-utility {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
    margin-top: 24px;
  }

  .mobile-navigation-enquiry {
    display: grid;
    gap: 6px;
    padding: 16px;
    color: var(--atc-ivory);
    background: var(--atc-red);
    text-decoration: none;
  }

  .mobile-navigation-enquiry > span {
    font: 400 10px/1.4 var(--font-ui);
    letter-spacing: .03em;
  }

  .mobile-navigation-enquiry strong {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font: 500 25px/1.1 var(--font-display);
    text-transform: uppercase;
  }

  .site-header .mobile-navigation-panel .trade-link {
    display: flex;
    justify-content: space-between;
    min-height: 48px;
    padding: 12px 16px;
    color: var(--atc-ivory);
    background: transparent;
    border: 1px solid var(--line);
    font-size: 12px;
  }

  .mobile-navigation-connect {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 8px 16px;
    margin-top: 20px;
  }

  .mobile-navigation-connect > span {
    color: var(--fg-muted);
    font: 400 10px/1.4 var(--font-ui);
    letter-spacing: .02em;
  }

  .mobile-navigation-social { gap: 8px; }
  .site-header .mobile-navigation-panel .mobile-navigation-social a {
    width: 44px;
    height: 44px;
    color: var(--atc-ivory);
    border: 0;
    background: transparent;
  }
  .mobile-navigation-social svg { width: 20px; height: 20px; }
}

@media (max-width: 680px) {
  .site-footer {
    padding: 56px var(--container-padding) 28px;
  }

  .footer-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }

  .footer-brand {
    text-align: center;
    padding-inline: 8px;
  }

  .footer-home { width: min(230px, 76%); }
  .footer-logo { width: 100%; }
  .footer-brand > p:first-of-type {
    max-width: 32ch;
    margin: 20px auto 0;
    font-size: 14px;
    line-height: 1.65;
  }

  .footer-assurance {
    margin-top: 16px;
    gap: 4px;
    font-size: 9px;
    letter-spacing: .05em;
  }

  .footer-navigation { grid-column: 1; grid-row: auto; }
  .footer-connect { display: none; }
  .footer-mobile-group summary { min-height: 58px; font-size: 12px; }
  .footer-mobile-group > div { padding-bottom: 18px; }
  .footer-mobile-group a { font-size: 14px; }
  .footer-mobile-connect .footer-contact a { min-height: 44px; }
  .footer-mobile-connect .footer-address { max-width: 30ch; padding: 12px 0; font-size: 14px; }
  .footer-mobile-connect .footer-social { margin: 12px 0 0; }
  .footer-mobile-connect .footer-social a { display: inline-grid; padding: 0; border: 0; }

  .footer-newsletter {
    grid-column: 1;
    grid-row: auto;
    display: block;
    padding: 0;
    border: 0;
  }

  .footer-newsletter .eyebrow { margin-bottom: 10px; }
  .footer-newsletter h2 { font-size: 40px; }
  .footer-newsletter .footer-newsletter-copy { max-width: 36ch; margin: 12px 0 22px; }
  .footer-newsletter-fields { display: flex; flex-direction: column; gap: 10px; }
  .footer-newsletter-fields input,
  .footer-newsletter-fields button { width: 100%; min-height: 48px; }
  .footer-newsletter-fields button { justify-content: space-between; }
  .footer-newsletter .footer-newsletter-status { margin-top: 14px; }

  .footer-meta {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    margin-top: 28px;
    padding-top: 20px;
  }

  .footer-policy-links {
    grid-column: 1;
    grid-row: 1;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 12px;
    align-items: center;
    justify-content: center;
  }

  .footer-policy-links a,
  .footer-policy-links button {
    width: 100%;
    min-width: 0;
    min-height: 44px;
    white-space: normal;
    font-size: 12px;
    text-align: center;
  }

  .footer-legal {
    grid-column: 1;
    grid-row: 2;
    justify-items: center;
    gap: 6px;
    text-align: center;
    font-size: 11px;
    line-height: 1.6;
  }

  .footer-nimble {
    grid-column: 1;
    grid-row: 3;
    justify-content: center;
  }
  .footer-nimble img { width: 132px; }
}

@media (prefers-reduced-motion: reduce) {
  .nav-toggle-icon > span { transition: none; }
}
html.motion-reduced .nav-toggle-icon > span { transition: none; }
