/* ==========================================================================
   DWG Consulting — style.css
   Design System: "The Industrial Monolith"
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design tokens
   -------------------------------------------------------------------------- */

:root {
  /* Surface hierarchy (warm, foundry-inspired) */
  --surface:          #fef8f3;
  --surface-low:      #f8f3ee;
  --surface-high:     #ede8e3;
  --surface-highest:  #e6e2dd;

  /* Brand */
  --primary:          #ba0013;
  --primary-cta:      #e31e24;
  --secondary:        #1B2B5E;
  --secondary-dark:   #0e1840;
  --tertiary:         #67594a;
  --outline-variant:  #e7bdb8;

  /* On-colors */
  --on-surface:       #201c1b;
  --on-surface-sub:   #4f4540;
  --on-secondary:     #ffffff;

  /* Typography */
  --font-head: 'Work Sans', sans-serif;
  --font-body: 'Public Sans', sans-serif;

  /* Shadow tints (rgb values for rgba()) */
  --sh-warm: 103, 89, 74;
  --sh-navy: 27,  43, 94;

  /* Layout */
  --container: 1200px;
  --nav-h:     68px;

  /* Radii */
  --r:     2px;
  --r-btn: 0.375rem;
  --r-lg:  6px;
}

/* --------------------------------------------------------------------------
   2. Reset & base
   -------------------------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  color: var(--on-surface);
  background: var(--surface);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; display: block; }

a { color: inherit; text-decoration: none; }

ul, ol { list-style: none; }

button {
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

:focus-visible {
  outline: 2px solid var(--primary-cta);
  outline-offset: 2px;
}

button,
input[type="submit"] {
  min-width: 44px;
  min-height: 44px;
}

input[type="checkbox"],
input[type="radio"],
a {
  min-width: 24px;
  min-height: 24px;
}

/* --------------------------------------------------------------------------
   3. Container
   -------------------------------------------------------------------------- */

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1rem, 5vw, 2rem);
}

/* --------------------------------------------------------------------------
   4. Buttons
   No pill shapes. Sharp industrial corners.
   Red only for conversion actions.
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  font-family: var(--font-head);
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: .7rem 1.5rem;
  border-radius: var(--r-btn);
  cursor: pointer;
  transition: filter .18s ease, box-shadow .18s ease, transform .18s ease;
  white-space: nowrap;
  line-height: 1;
  border: none;
}

.btn:focus-visible {
  outline: 3px solid var(--primary-cta);
  outline-offset: 3px;
}

/* Primary — gradient "molten metal" */
.btn--red {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-cta) 100%);
  color: var(--on-secondary);
  box-shadow: 0 4px 20px rgba(var(--sh-warm), .18);
}
.btn--red:hover {
  filter: brightness(1.08);
  box-shadow: 0 8px 28px rgba(186, 0, 19, .28);
  transform: translateY(-1px);
}

/* Secondary — foundational action on dark bg */
.btn--outline {
  background: transparent;
  color: var(--on-secondary);
  /* Ghost border — accessibility fallback only */
  border: 1px solid rgba(255, 255, 255, .3);
}
.btn--outline:hover {
  background: rgba(255, 255, 255, .08);
  border-color: rgba(255, 255, 255, .55);
}

.btn--lg {
  font-size: .95rem;
  padding: .85rem 2rem;
}

.btn--full {
  width: 100%;
  justify-content: center;
}

/* --------------------------------------------------------------------------
   5. Section shared
   -------------------------------------------------------------------------- */

.section {
  padding-block: clamp(3.5rem, 8vw, 5.5rem);
}

/*
  The "No-Line Rule": sections are defined by tonal surface shifts,
  not borders. --surface → --surface-low → --surface → --surface-low...
*/
.section--dark {
  /* Redefined: warm industrial, not navy */
  background: var(--surface-low);
}

/* Eyebrow metadata label */
.section__eyebrow {
  display: block;
  font-family: var(--font-body);
  font-size: .7rem;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--tertiary);
  margin-bottom: .65rem;
}
.section__eyebrow--accent { color: var(--primary-cta); }

/* Section heading — Work Sans, tight tracking */
.section__h2 {
  font-family: var(--font-head);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--secondary);
  margin-bottom: 2.5rem;
}
/* On surface-low sections these headings stay navy */
.section__h2--light { color: var(--secondary); }

/* --------------------------------------------------------------------------
   6. Reveal animation
   -------------------------------------------------------------------------- */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered entrance */
.hero__stats   .reveal:nth-child(2) { transition-delay: .10s; }
.hero__stats   .reveal:nth-child(3) { transition-delay: .20s; }
.advantages    .reveal:nth-child(2) { transition-delay: .10s; }
.advantages    .reveal:nth-child(3) { transition-delay: .20s; }
.industries__grid .reveal:nth-child(2) { transition-delay: .05s; }
.industries__grid .reveal:nth-child(3) { transition-delay: .10s; }
.industries__grid .reveal:nth-child(4) { transition-delay: .15s; }
.industries__grid .reveal:nth-child(5) { transition-delay: .20s; }
.industries__grid .reveal:nth-child(6) { transition-delay: .10s; }
.industries__grid .reveal:nth-child(7) { transition-delay: .15s; }
.industries__grid .reveal:nth-child(8) { transition-delay: .20s; }
.industries__grid .reveal:nth-child(9) { transition-delay: .10s; }

/* --------------------------------------------------------------------------
   7. NAV — Glassmorphism floating panel
   "surface at 80% opacity with 20px backdrop-blur"
   -------------------------------------------------------------------------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 200;
  height: var(--nav-h);
  background: rgba(254, 248, 243, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  /* Ambient shadow — no hard border */
  box-shadow: 0 2px 32px rgba(var(--sh-warm), .08);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

/* Logo — no pill needed on warm glass nav */
.nav__logo img {
  height: 38px;
  width: auto;
}

.nav__menu {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav__list {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.nav__link {
  font-family: var(--font-body);
  font-size: .82rem;
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--on-surface-sub);
  transition: color .15s ease;
  position: relative;
  padding-bottom: 2px;
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 0; height: 2px;
  background: var(--primary-cta);
  transition: width .2s ease;
}

.nav__link:hover,
.nav__link.is-active {
  color: var(--secondary);
}
.nav__link:hover::after,
.nav__link.is-active::after { width: 100%; }

.nav__cta {
  font-size: .78rem;
  padding: .5rem 1.1rem;
}

.nav__lang {
  display: flex;
  align-items: center;
  gap: .25rem;
  margin-left: .75rem;
}

.nav__lang-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  font-size: 1.25rem;
  border-radius: 4px;
  opacity: .45;
  transition: opacity .15s;
  text-decoration: none;
}

.nav__lang-link:hover,
.nav__lang-link:focus-visible { opacity: .75; }

.nav__lang-link.is-active { opacity: 1; }

.nav__hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  padding: 4px;
}

.nav__hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--secondary);
  border-radius: 1px;
  transition: transform .25s ease, opacity .25s ease;
  transform-origin: center;
}

.nav__hamburger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__hamburger.is-open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav__hamburger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* --------------------------------------------------------------------------
   8. HERO — Dark anchor section
   -------------------------------------------------------------------------- */

.hero {
  background: var(--secondary);
  color: var(--on-secondary);
  padding-block: clamp(4rem, 10vw, 6.5rem) clamp(3rem, 7vw, 5rem);
  position: relative;
  overflow: hidden;
}

/* Subtle gradient texture */
.hero::before {
  content: '';
  position: absolute;
  top: -20%; right: -5%;
  width: 55%; height: 120%;
  background: radial-gradient(ellipse, rgba(186,0,19,.1) 0%, transparent 65%);
  pointer-events: none;
}

/* Blueprint grid */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(254,248,243,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(254,248,243,.03) 1px, transparent 1px);
  background-size: 52px 52px;
  pointer-events: none;
}

.hero .container { position: relative; z-index: 1; }

.hero__eyebrow {
  font-family: var(--font-body);
  font-size: .7rem;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--outline-variant);
  margin-bottom: 1rem;
}

/* Display scale — heavy, tight tracking */
.hero__h1 {
  font-family: var(--font-head);
  font-size: clamp(2rem, 5.5vw, 3.75rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.06;
  margin-bottom: 1.25rem;
  max-width: 740px;
}

.hero__sub {
  font-family: var(--font-body);
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: rgba(254,248,243,.75);
  max-width: 580px;
  margin-bottom: 2rem;
  line-height: 1.65;
}

.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-bottom: 2.5rem;
}

/* Two-column split layout */
.hero__grid {
  display: grid;
  grid-template-columns: 55fr 45fr;
  gap: 2rem 5rem;
  align-items: center;
}

.hero__right {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Right column overrides */
.hero__right .trust-bar   { margin-bottom: 0; }
.hero__right .hero__stats { grid-template-columns: 1fr; }

/* Trust bar — tonal, no border */
.trust-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .3rem .85rem;
  padding: .9rem 1.25rem;
  background: rgba(254,248,243,.06);
  border-radius: var(--r);
  margin-bottom: 3rem;
}

.trust-bar__item {
  font-family: var(--font-body);
  font-size: .7rem;
  font-weight: 500;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: rgba(254,248,243,.65);
}

.trust-bar__dot {
  width: 3px; height: 3px;
  border-radius: 50%;
  background: var(--outline-variant);
  flex-shrink: 0;
  opacity: .5;
}

/* Stat cards */
.hero__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.stat {
  background: rgba(254,248,243,.04);
  border-top: 3px solid var(--primary-cta);
  border-radius: var(--r);
  padding: clamp(1.25rem, 3vw, 1.75rem);
  text-align: right
}

.stat__num {
  display: block;
  font-family: var(--font-head);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--on-secondary);
  line-height: 1;
  margin-bottom: .5rem;
}

.stat__label {
  font-family: var(--font-body);
  font-size: .84rem;
  color: rgba(254,248,243,.6);
  line-height: 1.45;
}

/* --------------------------------------------------------------------------
   9. ABOUT — Surface base (#fef8f3)
   -------------------------------------------------------------------------- */

.about__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}

/* Left accent bar — brand element, not a section border */
.about__blockquote {
  background: var(--surface-low);
  border-left: 4px solid var(--primary-cta);
  border-radius: 0 var(--r-lg) var(--r-lg) 0;
  padding: 2.25rem 2rem 2.25rem 2.25rem;
}

.about__blockquote p {
  font-family: var(--font-head);
  font-size: clamp(1.1rem, 2.5vw, 1.35rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.55;
  color: var(--secondary);
  margin-bottom: 1rem;
}

.about__quote-src {
  font-family: var(--font-body);
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--tertiary);
}

.about__text p {
  margin-bottom: 1rem;
  color: var(--on-surface-sub);
}
.about__text p:last-child { margin-bottom: 0; }
.about__text .section__h2 { margin-top: .25rem; }

/* --------------------------------------------------------------------------
   10. OFFER — Surface-low (#f8f3ee)
   Advantages + technical data table
   -------------------------------------------------------------------------- */

.advantages {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-bottom: 4rem;
}

/* Cards pulled toward user via surface-highest */
.advantage {
  background: var(--surface-highest);
  border-radius: var(--r-lg);
  padding: 2rem;
  /* Ambient shadow — tinted, diffused */
  box-shadow: 0 8px 32px rgba(var(--sh-warm), .06);
}

.advantage__num {
  display: block;
  font-family: var(--font-head);
  font-size: 2.25rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--primary-cta);
  opacity: .7;
  line-height: 1;
  margin-bottom: .65rem;
}

.advantage__title {
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--secondary);
  margin-bottom: .65rem;
}

.advantage p {
  font-size: .9375rem;
  color: var(--on-surface-sub);
  line-height: 1.62;
}

/* Materials section */
.materials { margin-top: 0; }

.materials__title {
  font-family: var(--font-head);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--secondary);
  margin-bottom: 1.5rem;
}

.materials__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: start;
}

.materials__table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--r-lg);
  /* Ambient shadow */
  box-shadow: 0 8px 32px rgba(var(--sh-warm), .07);
}

/* Technical data table — navy header per spec */
.materials__table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-body);
  font-size: .875rem;
}

.materials__table thead tr {
  background: var(--secondary);
}

.materials__table th {
  font-family: var(--font-body);
  font-size: .7rem;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--on-secondary);
  text-align: left;
  padding: .75rem 1.1rem;
}

/* Alternating rows — no divider lines */
.materials__table tbody tr:nth-child(odd)  { background: var(--surface); }
.materials__table tbody tr:nth-child(even) { background: var(--surface-low); }

.materials__table td {
  padding: .7rem 1.1rem;
  color: var(--on-surface-sub);
  vertical-align: middle;
}

.materials__table td:first-child {
  font-family: var(--font-head);
  font-weight: 600;
  letter-spacing: .01em;
  color: var(--secondary);
  white-space: nowrap;
}

.materials__caps-title {
  font-family: var(--font-head);
  font-size: .95rem;
  font-weight: 700;
  color: var(--secondary);
  margin-bottom: 1rem;
}

.materials__list {
  display: flex;
  flex-direction: column;
  gap: .6rem;
}

.materials__list li {
  font-size: .875rem;
  color: var(--on-surface-sub);
  padding-left: 1.2rem;
  position: relative;
  line-height: 1.5;
}

.materials__list li::before {
  content: '→';
  position: absolute;
  left: 0; top: 0;
  color: var(--primary-cta);
  font-size: .78rem;
}

/* --------------------------------------------------------------------------
   11. INDUSTRIES — Surface (#fef8f3)
   -------------------------------------------------------------------------- */

.industries__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

/* Cards at surface-highest for subtle elevation */
.industry-card {
  display: flex;
  flex-direction: column;
  gap: .5rem;
  padding: 1.5rem;
  background: var(--surface-highest);
  border-radius: var(--r-lg);
  /* Ambient shadow */
  box-shadow: 0 4px 16px rgba(var(--sh-warm), .05);
  transition: box-shadow .2s ease, transform .2s ease;
  cursor: pointer;
  color: inherit;
}

.industry-card:hover,
.industry-card:focus-visible {
  box-shadow: 0 16px 40px rgba(var(--sh-warm), .12);
  transform: translateY(-3px);
}

/* 4px left accent bar on hover — per spec "Active list items" */
.industry-card:hover { border-left: 4px solid var(--tertiary); padding-left: calc(1.5rem - 4px); }

.industry-card__icon {
  width: 40px; height: 40px;
  color: var(--primary-cta);
  margin-bottom: .25rem;
  flex-shrink: 0;
}
.industry-card__icon svg { width: 100%; height: 100%; }

.industry-card__title {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--secondary);
}

.industry-card__desc {
  font-size: .875rem;
  color: var(--on-surface-sub);
  line-height: 1.4;
  flex: 1;
}

.industry-card__cta {
  display: block;
  font-family: var(--font-body);
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--primary-cta);
  margin-top: .4rem;
  transition: letter-spacing .18s ease;
}
.industry-card:hover .industry-card__cta { letter-spacing: .12em; }

/* --------------------------------------------------------------------------
   12. FAQ — Surface-low (#f8f3ee)
   No divider lines. Spacing defines rhythm.
   -------------------------------------------------------------------------- */

.faq__layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}

/* Accordion — spacing-only separation, no 1px lines */
.faq__item {
  padding-block: .25rem;
}

.faq__question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 0;
  font-family: var(--font-head);
  font-size: .975rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--secondary);
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
  transition: color .15s ease;
}

.faq__question:hover,
.faq__question[aria-expanded="true"] { color: var(--primary-cta); }

.faq__question:focus-visible {
  outline: 2px solid var(--primary-cta);
  outline-offset: 2px;
  border-radius: 2px;
}

/* Plus/minus icon */
.faq__icon {
  flex-shrink: 0;
  width: 20px; height: 20px;
  /* Ghost border fallback */
  border: 1.5px solid rgba(var(--sh-warm), .25);
  border-radius: 50%;
  position: relative;
  transition: transform .28s ease, border-color .15s ease;
}

.faq__icon::before,
.faq__icon::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  background: currentColor;
  border-radius: 1px;
  transition: opacity .25s ease, transform .25s ease;
}
.faq__icon::before { width: 8px; height: 1.5px; }
.faq__icon::after  { width: 1.5px; height: 8px; }

.faq__question[aria-expanded="true"] .faq__icon { transform: rotate(45deg); }
.faq__question[aria-expanded="true"] .faq__icon,
.faq__question:hover .faq__icon { border-color: var(--primary-cta); }

/* Answer */
.faq__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height .38s ease;
}
.faq__answer.is-open { max-height: 500px; }

.faq__answer p {
  padding-bottom: 1.25rem;
  font-size: .9375rem;
  color: var(--on-surface-sub);
  line-height: 1.65;
}

/* Sidebar — secondary (navy) on light surface-low for contrast */
.faq__sidebar {
  background: var(--secondary);
  color: var(--on-secondary);
  border-radius: var(--r-lg);
  padding: 1.75rem;
  box-shadow: 0 16px 48px rgba(var(--sh-navy), .18);
}

.faq__sidebar-title {
  font-family: var(--font-head);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--on-secondary);
  margin-bottom: .5rem;
}

.faq__sidebar-lead {
  font-size: .875rem;
  color: rgba(254,248,243,.65);
  margin-bottom: 1.5rem;
  line-height: 1.55;
}

.faq__steps {
  display: flex;
  flex-direction: column;
  gap: .75rem;
  counter-reset: steps;
  margin-bottom: 2rem;
}

.faq__steps li {
  font-size: .84rem;
  color: rgba(254,248,243,.78);
  padding-left: 2.1rem;
  position: relative;
  counter-increment: steps;
  line-height: 1.45;
}

.faq__steps li::before {
  content: counter(steps);
  position: absolute;
  left: 0; top: -.05em;
  width: 1.5rem; height: 1.5rem;
  background: var(--primary-cta);
  color: var(--on-secondary);
  border-radius: 50%;
  font-family: var(--font-head);
  font-size: .72rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.faq__time-card {
  background: rgba(254,248,243,.06);
  border-top: 3px solid var(--primary-cta);
  border-radius: var(--r);
  padding: 1.25rem;
}

.faq__time-num {
  display: block;
  font-family: var(--font-head);
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--on-secondary);
  line-height: 1;
  margin-bottom: .2rem;
}

.faq__time-sub {
  display: block;
  font-family: var(--font-body);
  font-size: .7rem;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--outline-variant);
  margin-bottom: .75rem;
}

.faq__time-card p {
  font-size: .83rem;
  color: rgba(254,248,243,.55);
  line-height: 1.55;
}

/* --------------------------------------------------------------------------
   13. CTA band — Secondary (navy) — the ONE strong dark moment
   -------------------------------------------------------------------------- */

.cta-band {
  background: var(--secondary);
  color: var(--on-secondary);
}

.cta-band__inner {
  text-align: center;
  max-width: 620px;
  margin-inline: auto;
}

.cta-band__tagline {
  font-family: var(--font-body);
  font-size: .7rem;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--outline-variant);
  margin-bottom: .75rem;
}

.cta-band__h2 {
  font-family: var(--font-head);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--on-secondary);
  margin-bottom: .9rem;
  line-height: 1.08;
}

.cta-band__text {
  font-size: 1.05rem;
  color: rgba(254,248,243,.7);
  margin-bottom: 2rem;
}

/* --------------------------------------------------------------------------
   14. CONTACT — Surface (#fef8f3)
   -------------------------------------------------------------------------- */

.contact__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

/* Info panel */
.contact__dl {
  display: flex;
  flex-direction: column;
  gap: .85rem;
  margin-bottom: 1.75rem;
}

.contact__dl-row {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: .5rem;
  align-items: baseline;
}

/* Metadata label — tertiary per spec */
.contact__dl-row dt {
  font-family: var(--font-body);
  font-size: .7rem;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--tertiary);
  padding-top: .1rem;
}

.contact__dl-row dd {
  font-size: .9375rem;
  color: var(--on-surface-sub);
  line-height: 1.5;
}

.contact__dl-row dd a {
  color: var(--secondary);
  transition: color .15s ease;
}
.contact__dl-row dd a:hover { color: var(--primary-cta); }

.contact__links {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.contact__ext-link {
  font-family: var(--font-body);
  font-size: .76rem;
  font-weight: 500;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--primary-cta);
  transition: color .15s ease;
}
.contact__ext-link:hover { color: var(--secondary); }

/* Form */
.contact__form-title {
  font-family: var(--font-head);
  font-size: clamp(1.3rem, 3vw, 1.65rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--secondary);
  margin-bottom: .5rem;
  line-height: 1.2;
}

.contact__form-sub {
  font-size: .9375rem;
  color: var(--on-surface-sub);
  margin-bottom: 1.75rem;
  line-height: 1.55;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.form__row--2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.1rem;
}

.form__group {
  display: flex;
  flex-direction: column;
  gap: .35rem;
}

/* Label — tertiary metadata */
.form__label {
  font-family: var(--font-body);
  font-size: .7rem;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--tertiary);
}

.form__req { color: var(--primary-cta); }

.form__opt {
  font-size: .7rem;
  letter-spacing: 0;
  text-transform: none;
  font-weight: 400;
  color: rgba(103, 89, 74, .5);
}

/* Filled input style — surface-highest background */
.form__input,
.form__select,
.form__textarea {
  background: var(--surface-highest);
  border: none;
  /* 2px bottom signature line — no full border */
  border-bottom: 2px solid transparent;
  border-radius: var(--r) var(--r) 0 0;
  color: var(--on-surface);
  font-family: var(--font-body);
  font-size: .9375rem;
  padding: .75rem .9rem;
  width: 100%;
  transition: border-color .15s ease, background .15s ease;
  -webkit-appearance: none;
  appearance: none;
}

.form__input::placeholder,
.form__textarea::placeholder { color: rgba(103, 89, 74, .45); }

/* Active state — 2px bottom border of primary */
.form__input:focus,
.form__select:focus,
.form__textarea:focus {
  border-bottom-color: var(--primary);
  background: var(--surface-high);
}

.form__input--error { border-bottom-color: var(--primary-cta) !important; }

.form__error {
  font-size: .75rem;
  color: var(--primary-cta);
  min-height: 1em;
  line-height: 1.4;
}

.form__hint {
  font-size: .78rem;
  color: var(--tertiary);
  line-height: 1.45;
}

.form__required-note {
  font-size: .78rem;
  color: var(--tertiary);
  margin-bottom: .5rem;
}

.form__privacy {
  font-size: .75rem;
  color: var(--tertiary);
  text-align: center;
  opacity: .75;
}

.form__privacy a {
  color: var(--tertiary);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.form__privacy a:hover { color: var(--secondary); }

.form__select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='7' viewBox='0 0 12 7'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2367594a' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .9rem center;
  padding-right: 2.5rem;
  cursor: pointer;
}

.form__select option { background: var(--surface); color: var(--on-surface); }

.form__textarea {
  resize: vertical;
  min-height: 120px;
}

.form__file {
  font-family: var(--font-body);
  font-size: .875rem;
  color: var(--on-surface-sub);
  cursor: pointer;
}

.form__file::file-selector-button {
  font-family: var(--font-body);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .07em;
  text-transform: uppercase;
  background: var(--surface-high);
  border: none;
  border-radius: var(--r-btn);
  color: var(--secondary);
  padding: .45rem .9rem;
  margin-right: .75rem;
  cursor: pointer;
  transition: background .15s ease;
}
.form__file::file-selector-button:hover { background: var(--surface-highest); }

.form__note {
  font-size: .78rem;
  color: var(--tertiary);
  text-align: center;
  line-height: 1.55;
  padding-top: .25rem;
  opacity: .75;
}

/* --------------------------------------------------------------------------
   15. FOOTER — Deep navy anchor
   -------------------------------------------------------------------------- */

.footer {
  background: var(--secondary-dark);
  color: var(--on-secondary);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.25rem;
  padding-block: 3.5rem 2.5rem;
}

.footer__col {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Logo pill — needed on dark footer */
.footer__brand a {
  display: inline-block;
  background: rgba(254,248,243,.92);
  border-radius: var(--r);
  padding: 5px 10px;
  line-height: 0;
  margin-bottom: .75rem;
}

.footer__tagline {
  font-family: var(--font-head);
  font-size: .9rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: rgba(254,248,243,.85);
  margin-bottom: .35rem;
}

.footer__since {
  font-size: .82rem;
  color: rgba(103,89,74,.7);
}

.footer__heading {
  font-family: var(--font-body);
  font-size: .7rem;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--outline-variant);
  margin-bottom: .9rem;
}

.footer__list {
  display: flex;
  flex-direction: column;
  gap: .45rem;
}

.footer__list a {
  font-size: .875rem;
  color: rgba(254,248,243,.5);
  transition: color .15s ease;
}
.footer__list a:hover { color: rgba(254,248,243,.9); }

.footer__address {
  font-style: normal;
  display: flex;
  flex-direction: column;
  gap: .35rem;
  margin-bottom: 1rem;
}

.footer__address p { font-size: .875rem; color: rgba(254,248,243,.5); line-height: 1.45; }
.footer__address a { color: rgba(254,248,243,.5); transition: color .15s ease; }
.footer__address a:hover { color: rgba(254,248,243,.9); }

.footer__social { display: flex; gap: .9rem; flex-wrap: wrap; }

.footer__social-link {
  font-family: var(--font-body);
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--outline-variant);
  transition: color .15s ease;
}
.footer__social-link:hover { color: rgba(254,248,243,.9); }

.footer__bottom {
  padding-block: 1.25rem;
  text-align: center;
  /* No border — tonal separation only */
  background: rgba(0,0,0,.12);
}

.footer__bottom p { font-size: .78rem; color: rgba(254,248,243,.28); }

.footer__legal-link {
  display: inline-block;
  margin-top: .5rem;
  font-size: .78rem;
  color: rgba(254,248,243,.28);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color .15s ease;
}
.footer__legal-link:hover { color: rgba(254,248,243,.6); }

.footer__legal-link--btn {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font-family: inherit;
}

/* ==========================================================================
   RESPONSIVE — Tablet up (≥ 640px)
   ========================================================================== */

@media (min-width: 640px) {
  .industries__grid   { grid-template-columns: repeat(2, 1fr); }
  .form__row--2       { grid-template-columns: 1fr 1fr; }
  .footer__grid       { grid-template-columns: 1fr 1fr; }
  .footer__brand      { grid-column: 1 / -1; }
}

/* ==========================================================================
   RESPONSIVE — Desktop (≥ 900px)
   ========================================================================== */

@media (min-width: 900px) {
  .nav__hamburger { display: none; }
  .nav__menu      { display: flex !important; transform: none !important; position: static !important; }

  .about__grid    { grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; }
  .advantages     { grid-template-columns: repeat(3, 1fr); }
  .materials__grid { grid-template-columns: 1fr 1fr; }
  .industries__grid { grid-template-columns: repeat(3, 1fr); }

  .faq__layout    { grid-template-columns: 1fr 320px; align-items: start; }
  .faq__sidebar   { position: sticky; top: calc(var(--nav-h) + 1.5rem); }

  .contact__grid  { grid-template-columns: 300px 1fr; gap: 4rem; align-items: start; }

  .footer__grid   { grid-template-columns: 2fr 1fr 1fr 1.5fr; }
  .footer__brand  { grid-column: auto; }
}

/* ==========================================================================
   RESPONSIVE — Wide (≥ 1200px)
   ========================================================================== */

@media (min-width: 1200px) {
  .faq__layout { grid-template-columns: 1fr 360px; }
}

/* ==========================================================================
   Mobile NAV overlay (< 900px)
   ========================================================================== */

@media (max-width: 899px) {
  .nav__hamburger { display: flex; }

  .nav__menu {
    position: fixed;
    inset: var(--nav-h) 0 0 0;
    background: rgba(254,248,243,.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2.5rem;
    transform: translateX(100%);
    transition: transform .32s cubic-bezier(.4,0,.2,1);
    z-index: 190;
    overflow-y: auto;
  }

  .nav__menu.is-open { transform: translateX(0); }

  .nav__list { flex-direction: column; align-items: center; gap: 1.5rem; }
  .nav__link { font-size: 1.1rem; color: var(--secondary); }
  .nav__cta  { font-size: .9rem; padding: .75rem 2rem; }
}

/* ==========================================================================
   Mobile tweaks (< 480px)
   ========================================================================== */

@media (max-width: 767px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__right .hero__stats { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 479px) {
  .hero__h1 br { display: none; }
  .trust-bar__dot { display: none; }

  .hero__ctas { flex-direction: column; align-items: stretch; }
  .hero__ctas .btn { justify-content: center; }
}

/* ==========================================================================
   404 — Not Found
   ========================================================================== */

.not-found {
  background: var(--secondary);
  color: var(--on-secondary);
  min-height: calc(100vh - var(--nav-h));
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-block: clamp(5rem, 10vw, 8rem);
}

/* Blueprint grid */
.not-found::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(254,248,243,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(254,248,243,.03) 1px, transparent 1px);
  background-size: 52px 52px;
  pointer-events: none;
}

/* Radial glow */
.not-found::after {
  content: '';
  position: absolute;
  top: -20%; left: 50%;
  transform: translateX(-50%);
  width: 80%; height: 120%;
  background: radial-gradient(ellipse, rgba(186,0,19,.14) 0%, transparent 65%);
  pointer-events: none;
}

.not-found .container {
  position: relative;
  z-index: 1;
  text-align: center;
}

/* Giant decorative number — visual flair, aria-hidden */
.not-found__code {
  display: block;
  font-family: var(--font-head);
  font-size: clamp(8rem, 25vw, 18rem);
  font-weight: 800;
  line-height: .85;
  letter-spacing: -0.06em;
  color: var(--primary-cta);
  opacity: .14;
  margin-bottom: 1.5rem;
  pointer-events: none;
  user-select: none;
}

.not-found__eyebrow {
  font-family: var(--font-body);
  font-size: .7rem;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--outline-variant);
  margin-bottom: 1rem;
}

.not-found__h1 {
  font-family: var(--font-head);
  font-size: clamp(1.75rem, 4.5vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 1rem;
  max-width: 520px;
  margin-inline: auto;
}

.not-found__sub {
  font-family: var(--font-body);
  font-size: clamp(.95rem, 2vw, 1.05rem);
  color: rgba(254,248,243,.65);
  max-width: 440px;
  margin-inline: auto;
  margin-bottom: 2.5rem;
  line-height: 1.65;
}

/* Search — filled input, 2px bottom-border on focus (per design system) */
.not-found__search {
  max-width: 480px;
  margin-inline: auto;
  margin-bottom: 2.5rem;
}

.not-found__search-wrap {
  display: flex;
  background: rgba(254,248,243,.07);
  border-radius: var(--r);
  overflow: hidden;
}

.not-found__search-input {
  flex: 1;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  padding: .85rem 1.25rem;
  font-family: var(--font-body);
  font-size: .95rem;
  color: var(--on-secondary);
  transition: border-color .2s;
}

.not-found__search-input::placeholder { color: rgba(254,248,243,.35); }
.not-found__search-input:focus { border-bottom-color: var(--primary-cta); }

.not-found__search-btn {
  padding: .85rem 1.25rem;
  background: none;
  border: none;
  color: rgba(254,248,243,.55);
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: color .2s;
}
.not-found__search-btn:hover { color: var(--outline-variant); }

/* CTAs */
.not-found__ctas {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .75rem;
  margin-bottom: 3.5rem;
}

/* Quick nav — tonal separation via opacity shift, no border */
.not-found__nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: .5rem 1.75rem;
}

.not-found__nav-label {
  width: 100%;
  font-family: var(--font-body);
  font-size: .65rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(254,248,243,.28);
  margin-bottom: .5rem;
}

.not-found__nav a {
  font-family: var(--font-body);
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(254,248,243,.4);
  transition: color .2s;
}
.not-found__nav a:hover { color: var(--outline-variant); }

@media (max-width: 479px) {
  .not-found__code { font-size: clamp(6rem, 28vw, 8rem); }
  .not-found__ctas { flex-direction: column; align-items: stretch; }
  .not-found__ctas .btn { justify-content: center; }
}

/* --------------------------------------------------------------------------
   Cookie consent banner
   -------------------------------------------------------------------------- */

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 900;
  background: var(--secondary-dark);
  color: var(--on-secondary);
  padding: 1rem clamp(1rem, 5vw, 2rem);
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  box-shadow: 0 -4px 24px rgba(var(--sh-navy), .3);
}

.cookie-banner[hidden] { display: none; }

.cookie-banner__text {
  flex: 1;
  min-width: 220px;
  font-size: .85rem;
  line-height: 1.55;
  color: rgba(254, 248, 243, .75);
  margin: 0;
}

.cookie-banner__text a {
  color: var(--outline-variant);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.cookie-banner__text a:hover { color: #fff; }

.cookie-banner__actions {
  display: flex;
  gap: .6rem;
  flex-shrink: 0;
}

.cookie-banner__btn {
  font-family: var(--font-body);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .07em;
  text-transform: uppercase;
  border-radius: var(--r-btn);
  padding: .55rem 1.1rem;
  cursor: pointer;
  border: none;
  transition: background .15s ease, color .15s ease;
}

.cookie-banner__btn--reject {
  background: rgba(255, 255, 255, .08);
  color: rgba(254, 248, 243, .7);
  border: 1px solid rgba(255, 255, 255, .18);
}
.cookie-banner__btn--reject:hover {
  background: rgba(255, 255, 255, .14);
  color: #fff;
}

.cookie-banner__btn--accept {
  background: var(--primary-cta);
  color: #fff;
}
.cookie-banner__btn--accept:hover {
  background: var(--primary);
}

/* --------------------------------------------------------------------------
   Legal page (polityka-prywatnosci.html)
   -------------------------------------------------------------------------- */

.legal__content {
  max-width: 740px;
  margin-inline: auto;
  padding-block: 3rem 4rem;
}

.legal__h1 {
  font-family: var(--font-head);
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  font-weight: 800;
  color: var(--secondary);
  margin-bottom: .5rem;
  letter-spacing: -.02em;
}

.legal__updated {
  font-size: .82rem;
  color: var(--tertiary);
  margin-bottom: 2.5rem;
}

.legal__h2 {
  font-family: var(--font-head);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--secondary);
  margin-top: 2.25rem;
  margin-bottom: .6rem;
}

.legal__h3 {
  font-family: var(--font-body);
  font-size: .95rem;
  font-weight: 600;
  color: var(--on-surface);
  margin-top: 1.25rem;
  margin-bottom: .4rem;
}

.legal__content p {
  font-size: .9375rem;
  line-height: 1.7;
  color: var(--on-surface-sub);
  margin-bottom: .75rem;
}

.legal__list {
  list-style: disc;
  padding-left: 1.4rem;
  margin-bottom: .75rem;
}

.legal__list li {
  font-size: .9375rem;
  line-height: 1.65;
  color: var(--on-surface-sub);
  margin-bottom: .3rem;
}

.legal__content a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.legal__content a:hover { color: var(--primary-cta); }

.legal__table {
  width: 100%;
  border-collapse: collapse;
  font-size: .875rem;
  margin-block: 1rem 1.25rem;
}

.legal__table th,
.legal__table td {
  padding: .6rem .75rem;
  text-align: left;
  border-bottom: 1px solid var(--surface-highest);
  color: var(--on-surface-sub);
}

.legal__table th {
  font-weight: 600;
  color: var(--secondary);
  background: var(--surface-low);
}

.legal__table code {
  font-family: monospace;
  font-size: .82rem;
  background: var(--surface-high);
  padding: .1em .35em;
  border-radius: 3px;
}

/* --------------------------------------------------------------------------
   Confirmation modal (SC 3.3.6)
   -------------------------------------------------------------------------- */

.confirm-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.confirm-modal[hidden] { display: none; }

.confirm-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(14, 24, 64, .55);
  backdrop-filter: blur(2px);
}

.confirm-modal__box {
  position: relative;
  background: var(--surface);
  border-radius: var(--r-lg);
  padding: 2rem;
  max-width: 520px;
  width: 100%;
  box-shadow: 0 24px 64px rgba(var(--sh-navy), .22);
}

.confirm-modal__title {
  font-family: var(--font-head);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--secondary);
  margin-bottom: 1.25rem;
}

.confirm-modal__summary {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: .4rem 1rem;
  margin-bottom: 1.75rem;
  font-size: .875rem;
}

.confirm-modal__summary dt {
  font-weight: 600;
  color: var(--tertiary);
  text-transform: uppercase;
  font-size: .7rem;
  letter-spacing: .07em;
  align-self: start;
  padding-top: .15em;
  white-space: nowrap;
}

.confirm-modal__summary dd {
  color: var(--on-surface);
  word-break: break-word;
}

.confirm-modal__actions {
  display: flex;
  gap: .75rem;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.confirm-modal__cancel {
  background: transparent;
  color: var(--secondary);
  border: 1px solid var(--secondary);
}

.confirm-modal__cancel:hover {
  background: rgba(27, 43, 94, .06);
}
