@media (max-width: 1100px) {
  .nav-toggle { display: flex; }
  .site-header .brand-logo { width: min(320px, calc(100vw - 93px)); }
  .site-nav { position: absolute; top: 100%; right: 0; left: 0; display: none; padding: .75rem 16px 1.3rem; border-bottom-color: var(--ink); border-bottom: 1px solid var(--ink); background: var(--white); }
  .site-nav[data-open="true"] { display: block; }
  .site-nav ul { display: grid; gap: 0; }
  .site-nav a { padding-inline: .4rem; border-bottom: 1px solid var(--line); }
  .nav-toggle[aria-expanded="true"] .nav-toggle-lines { background: transparent; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-lines::before { top: 0; transform: rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle-lines::after { top: 0; transform: rotate(-45deg); }
}

@media (max-width: 980px) {
  :root { --shell: min(100% - 32px, 860px); --corner-lg: 0 0 36px 0; }
  /* Mobile hero: stack — copy card on top, visual band (in flow) beneath */
  .hero { min-height: 0; }
  .hero-grid { min-height: 0; grid-template-columns: 1fr; gap: 0; padding-bottom: 2.5rem; }
  .hero-copy { width: 100%; align-self: start; margin-top: 2.5rem; }
  .hero-visual { position: relative; inset: auto; width: 100%; height: 300px; min-height: 0; margin-top: 1.5rem; }
  .hero-orbit { width: 300px; height: 300px; top: 50%; left: auto; right: -30px; }
  .hero-product-main { width: 150px; right: 12%; bottom: 22px; }
  .hero-product-secondary { width: 112px; left: auto; right: 34%; bottom: 38px; }
  .quality-seal { width: 100px; height: 100px; right: 10px; top: 6px; }
  .page-intro-grid, .section-heading-grid, .quality-grid, .about-grid, .service-layout, .product-intro-grid, .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .page-intro .lede { margin: 0; }
  .capability-grid { grid-template-columns: 1fr; }
  .capability-card + .capability-card { border-top: 1px solid var(--ink); border-left: 0; }
  .about-categories { grid-template-columns: 1fr; }
  .service-heading { position: static; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .product-card:nth-child(3n) { border-radius: 0; }
  .product-card:nth-child(2n) { border-radius: var(--corner-md); }
  .product-layout { grid-template-columns: 1fr; }
  .product-aside { position: static; }
  .product-aside nav { grid-template-columns: 1fr 1fr; column-gap: 1.5rem; }
  .product-hero-image { max-width: 540px; }
  .footer-grid { grid-template-columns: 1.5fr 1fr; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
}

@media (max-width: 680px) {
  :root { --shell: calc(100% - 28px); --corner-lg: 0 0 28px 0; --corner-md: 0 20px 0 0; }
  .header-inner { min-height: 82px; gap: 1rem; }
  .brand-copy strong { font-size: 1.4rem; }
  .hero-copy { margin-top: 1.5rem; padding: 1.5rem; }
  .hero h1 { font-size: clamp(2rem, 9vw, 2.9rem); }
  .hero .button-row { align-items: flex-start; flex-direction: column; }
  .hero-visual { height: 270px; }
  .hero-orbit { width: 260px; height: 260px; right: -30px; }
  .hero-product-main { width: 135px; right: 12%; bottom: 18px; }
  .hero-product-secondary { width: 100px; left: auto; right: 36%; bottom: 32px; }
  .quality-seal { width: 92px; height: 92px; right: 6px; top: 4px; }
  .quality-seal strong { font-size: 1.4rem; }
  .quality-seal span { font-size: .5rem; }
  .trust-grid { grid-template-columns: 1fr; padding-block: .5rem; }
  .trust-grid p { min-height: 150px; border-right: 0; border-left: 0; border-bottom: 1px solid var(--line); }
  .trust-grid p:last-child { border-right: 0; border-bottom: 0; }
  .section-heading-grid > p { margin-top: 0; }
  .page-intro-grid { padding: 1.5rem; }
  .page-intro h1 { font-size: clamp(1.95rem, 8.5vw, 2.8rem); }
  .capability-card { min-height: auto; }
  .tag-cloud span { flex-basis: 50%; }
  .standards-grid, .quality-certs, .contact-cards { grid-template-columns: 1fr; }
  .standard-card, .standard-card--figure { min-height: 0; grid-template-columns: minmax(0, 1fr); }
  .standard-figure, .certificate-image { grid-column: 1; margin-top: 1rem; }
  .product-grid { grid-template-columns: 1fr; }
  .product-card:nth-child(2n) { border-radius: 0; }
  .product-card { border-radius: var(--corner-md); }
  .product-image { min-height: 240px; }
  .catalogue-toolbar { align-items: flex-start; flex-direction: column; }
  .product-aside nav { grid-template-columns: 1fr; }
  .legacy-product .products { width: 47%; margin-right: 1%; }
  .legacy-product .products a { min-height: 150px; }
  .cta-band-inner { min-height: 300px; align-items: flex-start; flex-direction: column; justify-content: center; }
  .address-grid, .footer-grid { grid-template-columns: 1fr; }
  .footer-grid { gap: 2.5rem; }
  .footer-grid > div:first-child { grid-column: auto; }
  .footer-legal { align-items: flex-start; flex-direction: column; gap: .4rem; }
  .map-wrap { min-height: 400px; }
  .map-wrap iframe { min-height: 385px; }
}

/*
 * These base rules from the consolidated reference-theme must appear AFTER the @media
 * blocks above so they win the cascade over the responsive overrides — mirroring the
 * original behaviour where reference-theme.css (last loaded) beat responsive.css.
 * This also ensures .page-intro rules beat .product-intro rules from components.css
 * at desktop widths (same cascade-order mechanism).
 *
 * At ≤680px, .product-intro h1 in the block above intentionally wins (it appears
 * after .page-intro h1 in that block, matching reference-theme's original order).
 */
.page-intro { padding-block: clamp(1.75rem, 3vw, 2.75rem); }

@media (min-width: 681px) {
  .page-intro h1 { font-size: clamp(1.9rem, 2.8vw, 2.6rem); }
}
