/* Phone-only overrides. Keep this after the existing theme styles. */
@media (max-width: 760px) {
  html { scroll-padding-top: 88px; }
  .wrap { padding-inline: max(20px, env(safe-area-inset-left)) max(20px, env(safe-area-inset-right)); }
  .mega-header .site-header { height: 72px; min-height: 72px; padding-block: 12px; flex-wrap: nowrap; }
  .mega-header .brand { font-size: clamp(20px, 6.15vw, 24px); min-width: 0; max-width: calc(100% - 60px); flex: 0 1 auto; overflow-wrap: anywhere; }
  .mega-header .brand small { font-size: 7px; letter-spacing: .14em; margin-top: 6px; }
  .mega-header .hamb { min-width: 44px; min-height: 44px; padding: 6px; flex-shrink: 0; }
  .mega-header .nav {
    max-height: calc(100svh - 72px);
    max-height: calc(100dvh - 72px - var(--mobile-admin-offset, 0px));
    padding: 12px 20px max(24px, env(safe-area-inset-bottom));
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }
  .mega-header .nav-direct, .mega-header .nav-trigger { min-height: 48px; padding: 13px 8px; }
  .mega-header .nav-menu-grid { grid-template-columns: minmax(0, 1fr); }
  .mega-header .nav-menu-item { min-height: 48px; padding: 12px 8px; }
  .mega-header .nav-menu-item strong { overflow-wrap: anywhere; }
  .mega-header .nav-panel-footer { min-height: 48px; }
  .mega-header #csp-language { min-height: 48px; font-size: 16px; }
  .quick-contact-inner { flex-direction: row; align-items: center; gap: 12px; padding-block: 10px; }
  .quick-contact-inner p { flex: 1; min-width: 0; font-size: 12px; line-height: 1.4; }
  .quick-contact-inner p strong { white-space: normal; overflow-wrap: anywhere; }
  .quick-contact-inner p span { display: none; }
  .quick-contact-link { align-self: center; flex-shrink: 0; max-width: 60%; min-height: 44px; padding-inline: 12px; white-space: normal; }

  /* Remove the extra sticky scroll stage and keep the primary action in view. */
  .hero-scroll-stage { height: auto !important; }
  .hero-scroll-stage > .operating-hero { position: relative; }
  .operating-hero { min-height: 0; padding: 42px 0 36px; }
  .operating-hero > .wrap { opacity: 1; transform: none; animation: none; transition: none; }
  .operating-hero::before { opacity: .9; transform: none; animation: none; transition: none; }
  .operating-hero h1 { font-size: clamp(32px, 8.8vw, 48px); line-height: 1.1; }
  .operating-hero .hero-track-record { margin-top: 20px; font-size: 15px; }
  .operating-hero .operating-intro { margin-top: 18px; }
  .operating-hero .operating-intro > p { font-size: 15px; line-height: 1.65; }
  .operating-hero .operating-intro .hero-actions { flex-direction: column; align-items: stretch; gap: 10px; margin-top: 24px; }
  .operating-hero .hero-actions .text-link { align-self: flex-start; }
  .btn { min-height: 48px; max-width: 100%; white-space: normal; text-align: center; padding-block: 12px; line-height: 1.45; font-size: 13px; }
  .btn > span { flex-shrink: 0; }
  .text-link { min-height: 44px; align-items: center; }
  h2 { font-size: clamp(30px, 8.2vw, 40px); line-height: 1.08; }
  main h1, main h2, main h3 { overflow-wrap: anywhere; }
  .category-timeline li > div, .category-product-list article > div { min-width: 0; }
  .page-hero h1, .detailed-quote h1 { font-size: clamp(34px, 9.5vw, 44px); line-height: 1.08; }
  .section, .cta { padding-block: 56px; }
  .page-hero, .quote-page { padding-block: 36px 44px; }
  .split, .quality-grid, .cta-grid { gap: 30px; }
  .hero-copy h1, .hero-copy h2 { font-size: clamp(34px, 9vw, 46px); }
  .service-row summary { font-size: 24px; line-height: 1.2; gap: 16px; min-height: 44px; }
  .service-row summary > span, .faq-row summary > span { flex-shrink: 0; }
  .faq-row summary { gap: 16px; min-height: 44px; align-items: center; }
  .cat-grid { gap: 30px; }
  .cat img, .cat:nth-child(2) img, .cat:nth-child(3) img { height: auto; aspect-ratio: 4 / 3; }
  .process-step { grid-template-columns: 40px minmax(0, 1fr); gap: 14px; padding-block: 20px; }
  .process-step b { font-size: 24px; }
  .supplier-promise { min-height: 0; padding-block: 56px; }

  /* Compact service rows retain all content and avoid a five-screen card stack. */
  .manufacturing-overview { padding-block: 48px; }
  .manufacturing-heading { text-align: start; margin-bottom: 24px; }
  .manufacturing-heading h2 { font-size: clamp(30px, 8vw, 38px); }
  .manufacturing-heading > p { font-size: 15px; margin-top: 14px; }
  .manufacturing-tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .manufacturing-tabs button { min-height: 48px; padding: 10px 8px; line-height: 1.4; }
  .manufacturing-panel, .manufacturing-panel--process { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .manufacturing-card { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 10px 16px; min-height: 0; padding: 22px 18px; border-radius: 6px; }
  .manufacturing-card > svg { grid-column: 1; grid-row: 1 / 4; width: 32px; height: 32px; margin: 0; }
  .manufacturing-card h3 { grid-column: 2; margin: 0; font-size: 20px; }
  .manufacturing-card > p { grid-column: 2; margin: 0; font-size: 14px; }
  .manufacturing-link { grid-column: 2; justify-self: start; min-height: 44px; margin: 2px 0 0; padding: 10px 14px; }
  .manufacturing-card:not(:has(> svg)) { grid-template-columns: minmax(0, 1fr); }
  .manufacturing-card:not(:has(> svg)) > * { grid-column: 1; }
  .product-showcase-facts { grid-template-columns: minmax(0, 1fr); gap: 0; background: #f0f3f6; border-radius: 6px; }
  .product-showcase-facts > div { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; padding: 12px 16px; border-radius: 0; background: none; }
  .product-showcase-facts > div + div { border-top: 1px solid #d8dfe4; }
  .product-showcase-facts dt { margin: 0; font-size: 12px; }
  .product-showcase-facts dd { font-size: 13px; }

  /* 16px fields avoid automatic zoom on iPhone; no zoom restrictions needed. */
  .form input:not([type=checkbox]), .form select, .form textarea,
  .mini-form input, .mini-form textarea { font-size: 16px; min-height: 48px; scroll-margin-top: 96px; }
  .form input[type=file] { width: 100%; padding: 8px 0; }
  .form input::file-selector-button { min-height: 44px; max-width: 100%; }
  .form label, .mini-form label { font-size: 14px; }
  .form .check { min-height: 44px; align-items: flex-start; padding-block: 10px; }
  .form input[type=checkbox] { width: 20px; height: 20px; margin-top: 2px; }
  .detailed-form .btn, .mini-form .btn { width: 100%; }
  .detailed-form .brief-group { padding-block: 20px 24px; }
  .brief-group legend { line-height: 1.4; }
  .filters { gap: 8px; flex-wrap: wrap; }
  .filter, .engagement-nav a, .category-jump a { min-height: 44px; display: inline-flex; align-items: center; }
  .category-detail h1, .subpage-shell h1 { overflow-wrap: anywhere; }
  .footer { padding-bottom: max(28px, env(safe-area-inset-bottom)); }
  .footer nav a { min-height: 44px; display: inline-flex; align-items: center; }
  .scroll-reveal { opacity: 1; transform: none; transition: none; }
  .admin-bar { --mobile-admin-offset: 46px; }
}
@media (max-width: 600px) {
  .admin-bar { --mobile-admin-offset: 0px; }
}
