/* ============================================
   BACH TECHNICAL ApS — Stylesheet
   Industriel teknisk æstetik: stål-blå + signalgul, duotone hero-foto
   ============================================ */

:root {
  --color-steel: #22333B;
  --color-steel-dark: #16232A;
  --color-steel-mid: #3A4C55;
  --color-yellow: #E8A33D;
  --color-yellow-dark: #C6822A;
  --color-bg: #EDEFEF;
  --color-bg-alt: #E2E6E6;
  --color-white: #ffffff;
  --color-text: #1B2528;
  --color-text-muted: #4B5A5F;
  --color-border: #D2D8D8;
  --color-success: #2E7D4F;
  --color-error: #B3431E;

  --font-head: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --font-main: 'Barlow', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;

  --radius-sm: 3px;
  --radius-md: 6px;
  --radius-lg: 10px;

  --shadow-sm: 0 1px 3px rgba(22, 35, 42, 0.10);
  --shadow-md: 0 6px 20px rgba(22, 35, 42, 0.16);
  --shadow-lg: 0 16px 40px rgba(22, 35, 42, 0.24);

  --max-width: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-main);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 3px solid var(--color-yellow);
  outline-offset: 2px;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: 0.005em;
  margin: 0 0 16px;
  color: var(--color-steel);
  text-transform: none;
}
h1 { font-size: clamp(2.3rem, 5vw, 3.6rem); font-weight: 700; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 16px; color: var(--color-text-muted); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-head);
  font-size: 0.92rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-yellow-dark);
  font-weight: 700;
  margin-bottom: 12px;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--color-yellow-dark); display: inline-block; }

.section { padding: 84px 0; }
.section-alt { background: var(--color-bg-alt); }
.section-header { max-width: 720px; margin-bottom: 44px; }
.section-header.center { margin-left: auto; margin-right: auto; text-align: center; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 13px 28px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.98rem;
  font-family: var(--font-main);
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.18s ease;
}
.btn-primary { background: var(--color-yellow); color: var(--color-steel-dark); }
.btn-primary:hover { background: var(--color-yellow-dark); }
.btn-outline { background: transparent; border-color: rgba(255,255,255,0.6); color: var(--color-white); }
.btn-outline:hover { background: rgba(255,255,255,0.12); border-color: var(--color-white); }
.btn:disabled { opacity: 0.65; cursor: not-allowed; }

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  background: var(--color-steel);
  border-bottom: 3px solid var(--color-yellow);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 78px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--color-white);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: 0.01em;
}
.brand-mark {
  width: 38px; height: 38px;
  flex-shrink: 0;
  display: block;
}
.brand small { display: block; font-family: var(--font-main); font-weight: 500; font-size: 0.66rem; color: #A9BAC0; letter-spacing: 0.08em; text-transform: uppercase; }

.main-nav { display: flex; align-items: center; gap: 26px; }
.main-nav a {
  color: rgba(255,255,255,0.86);
  font-size: 0.94rem;
  font-weight: 600;
}
.main-nav a:hover { color: var(--color-yellow); }
.nav-toggle { display: none; background: none; border: none; color: var(--color-white); font-size: 1.7rem; cursor: pointer; min-width: 44px; min-height: 44px; }

/* ===== Hero — duotone real photo ===== */
.hero {
  position: relative;
  color: var(--color-white);
  padding: 128px 0 100px;
  overflow: hidden;
  isolation: isolate;
}
.hero-media {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(0.85) sepia(0.35) hue-rotate(148deg) saturate(1.9) brightness(0.55) contrast(1.12);
}
@media (prefers-reduced-motion: reduce) {
  .hero-media { display: none; }
  .hero { background-image: url('../images/hero-bottling-line.jpg'); background-size: cover; background-position: center; }
}
.hero-media::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(115deg, rgba(22,35,42,0.94) 8%, rgba(22,35,42,0.78) 42%, rgba(34,51,59,0.55) 100%);
}
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; position: relative; z-index: 1; }
.hero h1 { color: var(--color-white); }
.hero .lead { color: rgba(255,255,255,0.86); font-size: 1.15rem; max-width: 540px; }
.hero-cta { display: flex; gap: 14px; margin-top: 28px; flex-wrap: wrap; }
.hero-trust { margin-top: 24px; font-family: var(--font-main); font-size: 0.86rem; color: rgba(255,255,255,0.62); border-left: 2px solid var(--color-yellow); padding-left: 12px; }
.hero-panel {
  background: rgba(237,239,239,0.06);
  border: 1px solid rgba(232,163,61,0.4);
  border-radius: var(--radius-lg);
  padding: 28px;
  backdrop-filter: blur(6px);
  position: relative;
}
.hero-panel::before, .hero-panel::after {
  content: ""; position: absolute; width: 14px; height: 14px; border: 2px solid var(--color-yellow);
}
.hero-panel::before { top: -2px; left: -2px; border-right: none; border-bottom: none; }
.hero-panel::after { bottom: -2px; right: -2px; border-left: none; border-top: none; }
.hero-panel dl { margin: 0; }
.hero-panel .stat { display: flex; justify-content: space-between; padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,0.12); }
.hero-panel .stat:last-child { border-bottom: none; }
.hero-panel .stat dt { color: rgba(255,255,255,0.68); font-size: 0.88rem; }
.hero-panel .stat dd { margin: 0; font-weight: 800; font-family: var(--font-head); font-size: 1.1rem; color: var(--color-yellow); }

/* ===== About ===== */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.about-media { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); margin-bottom: 20px; position: relative; }
.about-media img { width: 100%; height: 260px; object-fit: cover; }
.about-media figcaption { font-size: 0.76rem; color: var(--color-text-muted); padding: 8px 2px 0; font-style: italic; }
.about-facts { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 14px; }
.about-facts li {
  display: flex; gap: 12px; align-items: flex-start;
  background: var(--color-white); border: 1px solid var(--color-border); border-left: 3px solid var(--color-yellow);
  border-radius: var(--radius-md); padding: 14px 16px;
}
.about-facts .ico { color: var(--color-yellow-dark); font-weight: 800; font-family: var(--font-head); font-size: 1.1rem; }

/* ===== Products ===== */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.product-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-top: 3px solid var(--color-steel);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-top-color: var(--color-yellow); }
.product-card .num {
  font-family: var(--font-head); font-weight: 800; color: var(--color-yellow-dark);
  font-size: 1.6rem; margin-bottom: 6px; display: block; line-height: 1;
}
.product-card h3 { margin-bottom: 10px; }
.product-card p { margin-bottom: 0; font-size: 0.95rem; }

/* ===== Why trust ===== */
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 8px; }
.trust-item {
  background: var(--color-steel);
  color: var(--color-white);
  border-radius: var(--radius-md);
  padding: 26px 20px;
  border-bottom: 3px solid var(--color-yellow);
}
.trust-item .figure { font-family: var(--font-head); font-size: 2rem; font-weight: 800; color: var(--color-yellow); margin-bottom: 6px; line-height: 1.1; }
.trust-item p { color: rgba(255,255,255,0.78); font-size: 0.89rem; margin: 0; }
.trust-note { margin-top: 18px; font-size: 0.85rem; color: var(--color-text-muted); font-style: italic; }

/* ===== Process ===== */
.process-wrap { display: grid; grid-template-columns: 1fr 1.15fr; gap: 40px; align-items: start; }
.process-media { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); position: sticky; top: 100px; }
.process-media img { width: 100%; height: 100%; min-height: 380px; object-fit: cover; }
.process-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; counter-reset: step; }
.process-list li { display: flex; gap: 18px; background: var(--color-white); border: 1px solid var(--color-border); border-radius: var(--radius-md); padding: 18px 20px; }
.process-list .step-num {
  counter-increment: step; flex-shrink: 0;
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--color-yellow); color: var(--color-steel-dark);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-family: var(--font-head); font-size: 1.15rem;
}
.process-list .step-num::before { content: counter(step); }

/* ===== Contact — map background + overlay card ===== */
.contact-section { position: relative; padding: 0; overflow: hidden; }
.contact-map-bg {
  position: relative;
  min-height: 560px;
  display: flex;
  align-items: center;
}
.contact-map-bg::before {
  content: "";
  position: absolute; inset: 0;
  background-image: url('../images/contact-pipes-valves.jpg');
  background-size: cover; background-position: center;
  filter: grayscale(0.7) brightness(0.4) saturate(0.6);
}
.contact-map-bg::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(22,35,42,0.92) 30%, rgba(22,35,42,0.55) 100%);
}
.contact-map-bg .container { position: relative; z-index: 1; padding-top: 84px; padding-bottom: 84px; }
.contact-map-bg .section-header h2, .contact-map-bg .section-header .eyebrow { color: var(--color-white); }
.contact-map-bg .eyebrow { color: var(--color-yellow); }
.contact-map-bg .section-header p { color: rgba(255,255,255,0.72); }

.contact-overlay-card {
  background: rgba(237,239,239,0.98);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  border: 1px solid rgba(232,163,61,0.5);
  max-width: 920px;
  position: relative;
}
.contact-overlay-card::before, .contact-overlay-card::after {
  content: ""; position: absolute; width: 18px; height: 18px; border: 3px solid var(--color-yellow); z-index: 2;
}
.contact-overlay-card::before { top: -3px; left: -3px; border-right: none; border-bottom: none; }
.contact-overlay-card::after { bottom: -3px; right: -3px; border-left: none; border-top: none; }
.contact-map { width: 100%; height: 260px; border: 0; display: block; filter: saturate(0.85); }
.contact-tiles { display: grid; grid-template-columns: repeat(4, 1fr); }
.contact-tile { padding: 22px; border-right: 1px solid var(--color-border); border-top: 1px solid var(--color-border); }
.contact-tile:last-child { border-right: none; }
.contact-tile .t-ico { font-family: var(--font-head); color: var(--color-yellow-dark); font-weight: 800; font-size: 0.82rem; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 8px; display: block; }
.contact-tile a, .contact-tile span.value { font-weight: 700; color: var(--color-steel); font-size: 0.98rem; }

/* ===== FAQ ===== */
.faq-list { max-width: 820px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--color-border); }
.faq-question {
  width: 100%; text-align: left; background: none; border: none;
  padding: 20px 4px; font-size: 1.06rem; font-weight: 700; color: var(--color-steel);
  cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  font-family: var(--font-main); min-height: 44px;
}
.faq-question .plus { font-size: 1.5rem; color: var(--color-yellow-dark); flex-shrink: 0; transition: transform .2s ease; }
.faq-item[data-open="true"] .plus { transform: rotate(45deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height .25s ease; }
.faq-item[data-open="true"] .faq-answer { max-height: 400px; }
.faq-answer p { padding: 0 4px 20px; margin: 0; }

/* ===== Form (RFQ single-step) ===== */
.form-section-wrap { max-width: 720px; margin: 0 auto; }
.contact-form-card { background: var(--color-white); border-radius: var(--radius-lg); box-shadow: var(--shadow-md); padding: 36px; border: 1px solid var(--color-border); border-top: 4px solid var(--color-yellow); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-weight: 700; font-size: 0.9rem; margin-bottom: 6px; color: var(--color-steel); }
.form-group .req { color: var(--color-yellow-dark); }
.form-group .hint { font-size: 0.78rem; color: var(--color-text-muted); margin-top: 4px; }
.form-group input, .form-group textarea, .form-group select {
  width: 100%; min-height: 46px; padding: 12px 14px; border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm); font-family: var(--font-main); font-size: 0.98rem; color: var(--color-text);
  transition: border-color .15s ease; background: var(--color-white);
}
.form-group textarea { min-height: 120px; }
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { outline: none; border-color: var(--color-yellow-dark); }
.form-group.has-error input, .form-group.has-error textarea, .form-group.has-error select { border-color: var(--color-error); }
.field-error { color: var(--color-error); font-size: 0.82rem; margin-top: 5px; display: none; }
.form-group.has-error .field-error { display: block; }
.form-checkbox { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 22px; }
.form-checkbox input { width: 20px; height: 20px; margin-top: 2px; flex-shrink: 0; }
.form-checkbox label { font-size: 0.86rem; color: var(--color-text-muted); font-weight: 400; }
.form-checkbox label a { color: var(--color-yellow-dark); font-weight: 700; }
.form-disclaimer { font-size: 0.82rem; color: var(--color-text-muted); margin-top: 10px; }
.form-disclaimer a { color: var(--color-yellow-dark); font-weight: 600; }
.submit-btn { width: 100%; margin-top: 6px; position: relative; }
.spinner {
  width: 18px; height: 18px; border: 2.5px solid rgba(22,35,42,0.35);
  border-top-color: var(--color-steel-dark); border-radius: 50%;
  animation: spin 0.7s linear infinite; display: none;
}
.submit-btn.loading .spinner { display: inline-block; }
.submit-btn.loading .btn-label { display: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.form-success { display: none; text-align: center; padding: 20px 0; }
.form-success.visible { display: block; }
.form-success .check {
  width: 64px; height: 64px; border-radius: 50%; background: var(--color-success);
  color: var(--color-white); display: flex; align-items: center; justify-content: center;
  font-size: 2rem; margin: 0 auto 18px;
}

/* ===== Final CTA ===== */
.final-cta { background: var(--color-steel-dark); color: var(--color-white); text-align: center; padding: 68px 0; border-top: 3px solid var(--color-yellow); }
.final-cta h2 { color: var(--color-white); }
.final-cta p { color: rgba(255,255,255,0.72); max-width: 560px; margin-left: auto; margin-right: auto; }

/* ===== Footer ===== */
.site-footer { background: var(--color-steel-dark); color: rgba(255,255,255,0.7); padding: 56px 0 28px; font-size: 0.92rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.2fr; gap: 32px; margin-bottom: 40px; }
.footer-grid h4 { font-family: var(--font-head); color: var(--color-white); font-size: 1rem; letter-spacing: 0.05em; text-transform: uppercase; margin-bottom: 16px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-grid a:hover { color: var(--color-yellow); }
.footer-brand p { color: rgba(255,255,255,0.6); font-size: 0.88rem; }
.footer-disclaimer {
  border-top: 1px solid rgba(255,255,255,0.1); padding-top: 24px;
  font-size: 0.79rem; color: rgba(255,255,255,0.48); line-height: 1.7;
}
.footer-bottom {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  margin-top: 20px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.08);
  font-size: 0.8rem; color: rgba(255,255,255,0.48);
}

/* ===== Cookie banner ===== */
.cookie-banner {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 900;
  background: var(--color-steel-dark); color: rgba(255,255,255,0.9);
  border-top: 3px solid var(--color-yellow);
  padding: 20px 24px; display: none;
}
.cookie-banner.visible { display: block; }
.cookie-banner-inner { max-width: var(--max-width); margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cookie-banner p { margin: 0; font-size: 0.87rem; color: rgba(255,255,255,0.78); max-width: 640px; }
.cookie-banner a { color: var(--color-yellow); font-weight: 700; }
.cookie-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.cookie-actions .btn { padding: 10px 18px; font-size: 0.85rem; min-height: 44px; }
.btn-ghost { background: transparent; color: rgba(255,255,255,0.85); border: 1.5px solid rgba(255,255,255,0.32); }
.btn-ghost:hover { border-color: var(--color-white); color: var(--color-white); }

.cookie-modal-overlay {
  position: fixed; inset: 0; background: rgba(15,22,26,0.66); z-index: 950;
  display: none; align-items: center; justify-content: center; padding: 20px;
}
.cookie-modal-overlay.visible { display: flex; }
.cookie-modal { background: var(--color-white); border-radius: var(--radius-lg); max-width: 560px; width: 100%; padding: 32px; max-height: 86vh; overflow-y: auto; border-top: 4px solid var(--color-yellow); }
.cookie-modal h3 { margin-bottom: 8px; }
.cookie-cat { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--color-border); }
.cookie-cat:last-of-type { border-bottom: none; }
.cookie-cat h4 { margin: 0 0 4px; font-size: 0.98rem; font-family: var(--font-main); font-weight: 700; }
.cookie-cat p { margin: 0; font-size: 0.85rem; }
.toggle { position: relative; width: 46px; height: 26px; flex-shrink: 0; }
.toggle input { opacity: 0; width: 0; height: 0; }
.toggle .slider { position: absolute; inset: 0; background: #c7ced4; border-radius: 20px; cursor: pointer; transition: .2s; }
.toggle .slider::before { content: ""; position: absolute; width: 20px; height: 20px; left: 3px; top: 3px; background: white; border-radius: 50%; transition: .2s; }
.toggle input:checked + .slider { background: var(--color-yellow-dark); }
.toggle input:checked + .slider::before { transform: translateX(20px); }
.toggle input:disabled + .slider { opacity: 0.6; cursor: not-allowed; }
.cookie-modal-actions { display: flex; gap: 10px; margin-top: 24px; flex-wrap: wrap; }

/* ===== Thank you page ===== */
.thankyou-hero { position: relative; padding: 118px 0 96px; text-align: center; color: var(--color-white); overflow: hidden; }
.thankyou-hero::before {
  content: ""; position: absolute; inset: 0;
  background-image: url('../images/hero-bottling-line.jpg'); background-size: cover; background-position: center;
  filter: grayscale(0.85) sepia(0.35) hue-rotate(148deg) saturate(1.9) brightness(0.4) contrast(1.1);
}
.thankyou-hero .container { position: relative; z-index: 1; }
.thankyou-hero .check { width: 84px; height: 84px; border-radius: 50%; background: var(--color-yellow); color: var(--color-steel-dark); display: flex; align-items: center; justify-content: center; font-size: 2.4rem; margin: 0 auto 24px; }
.thankyou-hero h1 { color: var(--color-white); }
.thankyou-steps { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; margin-top: 32px; }
.thankyou-steps li { list-style: none; background: rgba(237,239,239,0.08); border: 1px solid rgba(232,163,61,0.35); border-radius: var(--radius-md); padding: 20px; text-align: left; }

/* ===== Legal pages ===== */
.legal-page { padding: 64px 0 80px; }
.legal-page .container { max-width: 820px; }
.legal-page h2 { margin-top: 40px; font-size: 1.5rem; }
.legal-page .updated { font-family: var(--font-main); font-weight: 600; font-size: 0.85rem; color: var(--color-text-muted); margin-bottom: 40px; }
.legal-page table { width: 100%; border-collapse: collapse; margin: 20px 0; font-size: 0.9rem; }
.legal-page th, .legal-page td { border: 1px solid var(--color-border); padding: 10px 12px; text-align: left; vertical-align: top; }
.legal-page th { background: var(--color-bg-alt); font-family: var(--font-head); }
.legal-page ul, .legal-page ol { color: var(--color-text-muted); padding-left: 22px; }
.legal-page li { margin-bottom: 8px; }
.breadcrumb { font-size: 0.85rem; color: var(--color-text-muted); margin-bottom: 20px; }
.breadcrumb a { color: var(--color-yellow-dark); font-weight: 600; }

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .hero-grid, .about-grid, .process-wrap { grid-template-columns: 1fr; }
  .process-media { position: static; }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-tiles { grid-template-columns: repeat(2, 1fr); }
  .contact-tile { border-right: none; }
  .thankyou-steps { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
}
@media (max-width: 920px) {
  .main-nav { position: fixed; top: 78px; left: 0; right: 0; background: var(--color-steel); flex-direction: column; padding: 20px 24px; gap: 18px; display: none; border-bottom: 3px solid var(--color-yellow); max-height: calc(100vh - 78px); overflow-y: auto; }
  .main-nav.open { display: flex; }
  .nav-toggle { display: block; }
  .card-grid { grid-template-columns: 1fr; }
  .trust-grid { grid-template-columns: 1fr; }
  .contact-tiles { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .cookie-banner-inner { flex-direction: column; align-items: flex-start; }
  .footer-bottom { flex-direction: column; }
  .hero { padding: 108px 0 72px; }
}

/* Responsive safety net — long unbreakable strings (email/phone) must not force horizontal overflow */
a[href^="mailto:"], a[href^="tel:"] { overflow-wrap: anywhere; }
body { overflow-x: hidden; }

/* Codex containment patch: preserves the site's original max-width tokens. */
.brand-mark {
  width: 48px;
  height: 48px;
  object-fit: contain;
  flex: 0 0 48px;
}

:where(main, section, article, footer, header, nav, form, dl, div) {
  min-width: 0;
}

:where(img, video, iframe, svg) {
  max-width: 100%;
}

.skip,
.skip-link {
  position: absolute;
  left: 0;
  top: 0;
  transform: translateY(-140%);
}

.skip:focus,
.skip-link:focus {
  transform: translateY(0);
}

a[href^="mailto:"],
a[href^="tel:"],
dd,
.value,
.contact-tile,
.footer-col,
.verified-company-facts {
  overflow-wrap: anywhere;
}

.legal-content,
.legal-page,
.disclaimer-content,
.privacy-content,
.terms-content,
.cookie-content,
.section,
.hero,
.thankyou-hero {
  min-width: 0;
  overflow-wrap: anywhere;
}

table {
  width: 100%;
  min-width: 0 !important;
  table-layout: fixed;
}

th,
td {
  overflow-wrap: anywhere;
}

.table-wrap,
.legal-table-wrap {
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

@media (max-width: 1040px) {
  header nav:not(.mobile-open),
  header .main-nav:not(.mobile-open) {
    display: none;
  }
}

@media (max-width: 480px) {
  header {
    padding-left: 12px;
    padding-right: 12px;
  }

  .container {
    padding-left: 16px;
    padding-right: 16px;
  }

  .btn,
  button,
  #navToggle,
  #nav-toggle,
  .nav-toggle {
    max-width: calc(100vw - 24px);
    white-space: normal;
    right: 12px !important;
    overflow: hidden;
  }

  #navToggle span,
  #nav-toggle span,
  .nav-toggle span {
    max-width: 24px;
  }

  .contact-card-overlay,
  .hero-badge,
  .floating-card,
  .testimonial-card {
    position: static !important;
    transform: none !important;
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
}
