/* ==========================================================================
   DavFab (Dav Fabrication) — Unified Stylesheet
   Mobile-first. Vanilla CSS3 Custom Properties. Zero build tools.
   Visual direction: heavy-industrial contract-manufacturer aesthetic
   (dark charcoal header, full-bleed jobsite photography, safety-amber CTAs).
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design Tokens
   -------------------------------------------------------------------------- */
:root {
  /* Brand colors (per 01_DESIGN_SYSTEM.md) */
  --color-primary: #0B2545;        /* Industrial Navy */
  --color-primary-raised: #12335e; /* Lighter navy for panels/gradients */
  --color-accent: #F59E0B;         /* Safety Amber */
  --color-accent-hover: #D97706;   /* Amber Hover */
  --color-dark: #1E293B;           /* Steel Slate */
  --color-light: #F1F5F9;          /* Light Gray Background */
  --color-white: #FFFFFF;
  --color-border: #E2E8F0;
  --color-ink-muted: #64748B;

  /* Header / chrome — dark charcoal, matched to reference site */
  --color-header-bg: #14181D;
  --color-header-bg-scrolled: #0F1216;
  --color-header-text: #E7EAEE;
  --color-header-border: rgba(255, 255, 255, 0.08);

  /* Typography */
  --font-display: 'Oswald', var(--font-main);
  --font-main: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  /* Layout */
  --max-width: 1240px;
  --gutter: 1.25rem;
  --radius: 6px;
  --radius-sm: 3px;
  --header-h: 64px;

  /* Brand text indent — width of the brand mark (40px) + the .brand gap
     (0.65rem) once the mobile hamburger is hidden at 768px+. Used to align
     hero copy with the "DavFABRICATION" wordmark rather than the outer
     container edge. */
  --brand-text-indent: calc(40px + 0.65rem);

  /* Motion */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --speed-fast: 150ms;
  --speed-med: 300ms;
  --speed-slow: 600ms;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* --------------------------------------------------------------------------
   2. Reset & Base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-main);
  color: var(--color-dark);
  background: var(--color-white);
  line-height: 1.55;
  font-size: 16px;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--color-primary);
  line-height: 1.12;
  margin: 0 0 0.5em;
  letter-spacing: 0.005em;
  text-transform: uppercase;
}

h1 { font-size: clamp(2rem, 6.5vw, 3.75rem); font-weight: 600; }
h2 { font-size: clamp(1.5rem, 4vw, 2.25rem); font-weight: 600; }
h3 { font-size: clamp(1.05rem, 2.5vw, 1.3rem); font-weight: 600; text-transform: none; }

p { margin: 0 0 1em; color: var(--color-dark); }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-accent-hover);
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  margin-bottom: 0.75em;
}

.eyebrow::before {
  content: '';
  width: 1.5em;
  height: 2px;
  background: var(--color-accent);
  display: inline-block;
}

/* Lead quote — used for the About page tagline pull-quote; reuses the
   display font and amber accent already established by .eyebrow rather
   than introducing a new visual language. */
.lead-quote {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.6vw, 1.6rem);
  font-weight: 600;
  color: var(--color-primary);
  text-transform: none;
  line-height: 1.35;
  border-left: 3px solid var(--color-accent);
  padding-left: 1rem;
  margin: 1.25rem 0 1.5rem;
}

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

.skip-link {
  position: absolute;
  left: 0.5rem;
  top: -3rem;
  background: var(--color-accent);
  color: #14181D;
  font-weight: 700;
  padding: 0.6rem 1rem;
  border-radius: var(--radius-sm);
  z-index: 300;
  transition: top var(--speed-fast) var(--ease);
}
.skip-link:focus { top: 0.5rem; }

:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 2px;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: 3.5rem; }
@media (min-width: 768px) { .section { padding-block: 5rem; } }
.section--tight { padding-block: 2.5rem; }
.section--light { background: var(--color-light); }
.section--dark { background: var(--color-primary); color: var(--color-white); }
.section--dark h2, .section--dark h3 { color: var(--color-white); }
.section--dark p { color: #C9D6E8; }

/* --------------------------------------------------------------------------
   3. Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  font-family: var(--font-main);
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.95em 1.7em;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform var(--speed-fast) var(--ease),
              background var(--speed-fast) var(--ease),
              border-color var(--speed-fast) var(--ease);
  white-space: nowrap;
}

.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--color-accent);
  color: #14181D;
  border-color: var(--color-accent);
}
.btn-primary:hover {
  background: var(--color-accent-hover);
  border-color: var(--color-accent-hover);
  color: #14181D;
}

.btn-secondary {
  background: var(--color-primary);
  color: var(--color-white);
  border-color: var(--color-primary);
}
.btn-secondary:hover {
  background: var(--color-primary-raised);
  border-color: var(--color-primary-raised);
}

.btn-outline {
  background: transparent;
  color: var(--color-white);
  border-color: rgba(255,255,255,0.55);
}
.btn-outline:hover {
  border-color: var(--color-white);
  background: rgba(255,255,255,0.08);
}

/* --------------------------------------------------------------------------
   4. Header & Navigation — dark charcoal bar, inline links, high-viz CTA
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-header-bg);
  border-bottom: 1px solid var(--color-header-border);
  transition: background var(--speed-med) var(--ease);
}

.site-header.is-scrolled {
  background: var(--color-header-bg-scrolled);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  min-height: var(--header-h);
  padding-block: 0.6rem;
}

.header-start {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
  flex: 1 1 auto;
  overflow: hidden;
  /* .header-start, .header-cta, and .primary-nav are siblings inside
     .header-inner. .primary-nav is positioned with z-index: 95 (needed so
     the open drawer sits above the page content below the header). Without
     an explicit position + z-index of their own, .header-start/.header-cta
     are non-positioned and — per CSS stacking rules — always paint BELOW
     any positioned, z-indexed sibling regardless of DOM order. That let the
     open drawer visually cover the toggle button and CTA whenever they fell
     within the drawer's left/right bounds. Promoting both above 95 here
     keeps them visible and clickable while the drawer is open. */
  position: relative;
  z-index: 96;
}

.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.nav-toggle-icon,
.nav-toggle-icon::before,
.nav-toggle-icon::after {
  content: '';
  display: block;
  width: 20px;
  height: 2px;
  background: var(--color-header-text);
  position: relative;
  transition: transform var(--speed-med) var(--ease), opacity var(--speed-fast) var(--ease);
}
.nav-toggle-icon::before { position: absolute; top: -6px; }
.nav-toggle-icon::after { position: absolute; top: 6px; }

.nav-toggle[aria-expanded="true"] .nav-toggle-icon { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-icon::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-icon::after { top: 0; transform: rotate(-45deg); }

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  min-width: 0;
}

.brand-mark { width: 32px; height: 32px; flex-shrink: 0; }

@media (min-width: 400px) {
  .brand-mark { width: 40px; height: 40px; }
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  min-width: 0;
  overflow: hidden;
}

.brand-name {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--color-white);
  text-transform: uppercase;
  letter-spacing: 0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

@media (min-width: 400px) {
  .brand-name { font-size: 1.05rem; }
}

@media (min-width: 640px) and (max-width: 1023px) {
  .brand-name { font-size: 1rem; max-width: 160px; }
}

@media (min-width: 1024px) {
  .brand-name { font-size: 1.15rem; }
}

.brand-name em {
  font-style: normal;
  color: var(--color-accent);
}

.brand-tagline {
  display: none;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent);
  white-space: nowrap;
}

.brand-slogan {
  display: none;
  font-size: 0.68rem;
  color: #9AA5B1;
  font-style: italic;
  white-space: nowrap;
}

.header-cta {
  flex-shrink: 0;
  white-space: nowrap;
  font-size: 0.62rem;
  padding: 0.6em 0.65em;
  letter-spacing: 0.01em;
  /* See .header-start comment: keeps the CTA above the open drawer. */
  position: relative;
  z-index: 96;
}

@media (min-width: 1024px) {
  .brand-tagline { display: block; }

  .nav-list { gap: 1.6rem; }
  .nav-list a { font-size: 0.82rem; letter-spacing: 0.04em; }
}

@media (min-width: 640px) and (max-width: 1023px) {
  .header-cta {
    font-size: 0.68rem;
    padding: 0.65em 0.9em;
    letter-spacing: 0.02em;
  }
}

@media (min-width: 1024px) {
  .header-cta {
    font-size: 0.75rem;
    padding: 0.75em 1.1em;
    letter-spacing: 0.04em;
  }
}

.primary-nav {
  position: fixed;
  inset: 0 0 0 22%;
  background: var(--color-header-bg-scrolled);
  padding: 5.5rem var(--gutter) 2rem;
  transform: translateX(100%);
  transition: transform var(--speed-med) var(--ease);
  overflow-y: auto;
  z-index: 95;
}

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

.nav-list {
  list-style: none;
  margin: 0 0 2rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.nav-list a {
  display: flex;
  align-items: center;
  gap: 0.4em;
  text-decoration: none;
  color: var(--color-header-text);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.3rem;
  text-transform: uppercase;
  padding: 0.65rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.nav-list a .chevron { color: var(--color-accent); }

.nav-list a:hover,
.nav-list a[aria-current="page"] { color: var(--color-accent); }

.nav-cta-mobile { display: block; text-align: center; }

.nav-scrim {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--speed-med) var(--ease);
  z-index: 90;
}
.nav-scrim.is-open { opacity: 1; pointer-events: auto; }

@media (min-width: 768px) {
  .nav-toggle, .nav-scrim { display: none; }

  .brand-slogan { display: block; }

  .primary-nav {
    position: static;
    inset: auto;
    transform: none;
    background: transparent;
    padding: 0;
    overflow: visible;
  }

  .nav-list {
    flex-direction: row;
    align-items: center;
    gap: 1rem;
    margin: 0;
    flex-wrap: nowrap;
  }

  .nav-list a {
    color: var(--color-header-text);
    font-family: var(--font-main);
    font-weight: 700;
    font-size: 0.76rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    padding: 0.4rem 0;
    border-bottom: 2px solid transparent;
    white-space: nowrap;
  }

  .nav-list a:hover,
  .nav-list a[aria-current="page"] {
    color: var(--color-white);
    border-bottom-color: var(--color-accent);
  }

  .nav-cta-mobile { display: none; }
}

/* --------------------------------------------------------------------------
   5. Hero — full-bleed jobsite photography with dark overlay
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  color: var(--color-white);
  min-height: 78vh;
  display: flex;
  align-items: center;
  background-image:
    linear-gradient(100deg, rgba(10, 12, 15, 0.92) 5%, rgba(10, 12, 15, 0.72) 42%, rgba(10, 12, 15, 0.42) 75%),
    url('../images/hero-welding.jpg');
  background-size: cover;
  background-position: center;
  padding-block: 3.5rem;
}

.hero-inner {
  position: relative;
  max-width: 640px;
  text-align: left;
}

.hero-inner .eyebrow { color: var(--color-accent); }
.hero-inner .eyebrow::before { background: var(--color-accent); }

/* Hero H1 — shared with .page-hero-inner h1 (interior pages) so every page's
   hero title uses the same size, weight, and left alignment. Reduced 50%
   from the base h1 scale (was clamp(2rem, 6.5vw, 3.75rem)). */
.hero-inner h1,
.page-hero-inner h1 {
  color: var(--color-white);
  margin-bottom: 0.55em;
  text-align: left;
  font-size: clamp(1rem, 3.25vw, 1.875rem);
}

/* Hero sub-headline — increased 40% from the base 1.08rem paragraph size */
.hero-inner p {
  color: #E4E8EC;
  font-size: 1.512rem;
  max-width: 54ch;
  margin-bottom: 1.75rem;
  text-align: left;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  text-align: left;
}

/* Hero CTA buttons — increased 40% from the base .btn font-size (0.85rem) */
.hero-ctas .btn {
  font-size: 1.19rem;
}

@media (min-width: 768px) {
  .hero { min-height: 84vh; padding-block: 5rem; }

  /* Align hero copy with the "DavFABRICATION" wordmark in the header: at
     this breakpoint the mobile hamburger is gone, so the brand mark sits
     flush with the container edge and its text starts one mark-width +
     gap to the right. Match that offset here so hero text and brand text
     share the same left edge. */
  .hero-inner { padding-left: var(--brand-text-indent); }
}

@media (min-width: 1024px) {
  .hero-inner { max-width: 720px; }
}

/* --------------------------------------------------------------------------
   5a. Hero Scroll Reveal — sub-headline + CTAs fade/slide in on scroll
   -------------------------------------------------------------------------- */
.hero-reveal {
  transition: opacity var(--speed-slow) var(--ease),
              transform var(--speed-slow) var(--ease);
}

/* Hidden-by-default state only applies once JS has confirmed it can run
   (html.js, set by the inline script in <head>) and the viewport hasn't
   asked for reduced motion. No-JS visitors and reduced-motion visitors see
   the sub-headline and CTAs immediately, per progressive enhancement. */
html.js .hero-reveal {
  opacity: 0;
  transform: translateY(24px);
}

html.js .hero-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .hero-reveal {
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

/* --------------------------------------------------------------------------
   5b. Interior Page Hero (no photography — used on services/industries/about)
   -------------------------------------------------------------------------- */
.page-hero {
  position: relative;
  color: var(--color-white);
  background: linear-gradient(155deg, var(--color-header-bg) 0%, var(--color-primary) 100%);
  overflow: hidden;
  padding-block: 3rem;
}

/* Photo-backed variant — same dark-overlay treatment as the homepage
   .hero, reused so interior pages can carry real photography behind the
   title without introducing a second visual language. */
.page-hero--photo {
  background-image:
    linear-gradient(100deg, rgba(10, 12, 15, 0.92) 10%, rgba(10, 12, 15, 0.78) 60%, rgba(10, 12, 15, 0.55) 100%),
    var(--page-hero-photo);
  background-size: cover;
  background-position: center;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(245,158,11,0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(245,158,11,0.07) 1px, transparent 1px);
  background-size: 38px 38px;
  mask-image: radial-gradient(ellipse at top left, black 15%, transparent 75%);
}

.page-hero-inner {
  position: relative;
  max-width: 720px;
  text-align: left;
}

.page-hero-inner .eyebrow { color: var(--color-accent); }
.page-hero-inner .eyebrow::before { background: var(--color-accent); }

/* h1 size/weight/alignment is defined once, shared with .hero-inner h1
   above, so the hero title matches on every page. */

.page-hero-inner p {
  color: #C9D3DE;
  font-size: 1.05rem;
  max-width: 58ch;
  margin-bottom: 0;
  text-align: left;
}

@media (min-width: 768px) {
  .page-hero { padding-block: 4.5rem; }

  /* Same brand-aligned left rule as .hero-inner: once the hamburger is gone
     at 768px+, offset the interior hero copy to match where the
     "DavFABRICATION" wordmark text starts in the header. */
  .page-hero-inner { padding-left: var(--brand-text-indent); }
}

/* --------------------------------------------------------------------------
   6. Capabilities Strip (below hero — echoes reference site's chip list)
   -------------------------------------------------------------------------- */
.capabilities-strip {
  background: var(--color-primary);
  color: var(--color-white);
  padding-block: 1.5rem;
}

.capabilities-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1rem;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.capabilities-list li {
  display: flex;
  align-items: center;
  gap: 0.5em;
}

.capabilities-list li::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--color-accent);
  border-radius: 1px;
  flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   6a. Trust Stats — animated proof-point counters (js/trust-proof.js)
   Used on interior pages (industries.html) inside a `.section--dark` block.
   Markup renders the final value by default so the numbers are correct with
   JavaScript disabled; trust-proof.js resets to 0 and counts up only once
   the block scrolls into view, and only if motion is not reduced.
   -------------------------------------------------------------------------- */
.trust-stats {
  display: grid;
  gap: 2rem 1.5rem;
  grid-template-columns: repeat(2, 1fr);
  margin-top: 2.5rem;
  text-align: left;
}

.trust-stat dt {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #93A6C4;
  margin-bottom: 0.4rem;
}

.trust-stat dd {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 5vw, 2.75rem);
  color: var(--color-white);
}

.trust-stat dd .stat-counter { color: var(--color-accent); }

@media (min-width: 640px) {
  .trust-stats { grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
}

/* --------------------------------------------------------------------------
   7. Mission Section
   -------------------------------------------------------------------------- */
.mission-grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

.mission-copy p { max-width: 60ch; }

.mission-values {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.9rem;
}

.mission-values li {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  font-weight: 700;
  color: var(--color-primary);
}

.mission-values svg {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  margin-top: 0.15rem;
  color: var(--color-accent);
}

.mission-panel { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--color-border); }
.mission-panel svg { width: 100%; height: 100%; }
.mission-panel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  aspect-ratio: 4 / 3;
}

@media (min-width: 1024px) { .mission-grid { grid-template-columns: 1fr 1fr; } }

/* --------------------------------------------------------------------------
   8. USP / Feature Cards
   -------------------------------------------------------------------------- */
.card-grid { display: grid; gap: 1.5rem; margin-top: 2.5rem; }

.card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-top: 3px solid var(--color-accent);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: transform var(--speed-med) var(--ease), box-shadow var(--speed-med) var(--ease);
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 26px rgba(11, 37, 69, 0.1);
}

.card-icon {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-sm);
  background: var(--color-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.1rem;
  color: var(--color-accent-hover);
}

.card h3 { margin-bottom: 0.5rem; color: var(--color-primary); }
.card p { color: var(--color-ink-muted); margin-bottom: 0; font-size: 0.95rem; }

@media (min-width: 768px) { .card-grid { grid-template-columns: repeat(3, 1fr); } }

/* Capability tag chips — used inside service cards to list specific processes */
.tag-list {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0.9rem 0 0;
  border-top: 1px dashed var(--color-border);
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.tag {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-primary);
  background: var(--color-light);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 0.3rem 0.55rem;
  white-space: nowrap;
}

/* --------------------------------------------------------------------------
   9. RFQ Teaser (Routing-Label Banner)
   -------------------------------------------------------------------------- */
.rfq-teaser { background: var(--color-accent); color: #14181D; }

.rfq-teaser-inner {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: flex-start;
  justify-content: space-between;
  padding-block: 2.75rem;
}

.rfq-teaser h2 { color: #14181D; margin-bottom: 0.4rem; }
.rfq-teaser p { color: rgba(20,24,29,0.78); max-width: 52ch; margin-bottom: 0; }

.rfq-tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1.5px dashed rgba(20,24,29,0.4);
  border-radius: var(--radius-sm);
  padding: 0.35rem 0.7rem;
  display: inline-block;
  margin-bottom: 1rem;
}

@media (min-width: 768px) {
  .rfq-teaser-inner { flex-direction: row; align-items: center; }
}

/* --------------------------------------------------------------------------
   10. Footer
   -------------------------------------------------------------------------- */
.site-footer { background: #14181D; color: #B8C0CA; padding-block: 3rem 2rem; }

.footer-grid { display: grid; gap: 2.25rem; }

.footer-brand .brand-name { color: var(--color-white); }
.footer-brand p { color: #8A93A0; max-width: 38ch; font-size: 0.9rem; }

.footer-heading {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 0.9rem;
}

.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.55rem; }
.footer-links a { text-decoration: none; color: #B8C0CA; font-size: 0.92rem; }
.footer-links a:hover { color: var(--color-accent); }

.footer-bottom {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
  color: #7A8494;
  font-family: var(--font-mono);
}

@media (min-width: 768px) {
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
}

/* --------------------------------------------------------------------------
   11. Contact Methods (direct email / factory / WhatsApp / Skype cards)
   -------------------------------------------------------------------------- */
.contact-method-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  text-decoration: none;
  color: inherit;
}

.contact-method-card .card-icon { margin-bottom: 0; flex-shrink: 0; }

.contact-method-card h3 {
  margin-bottom: 0.2rem;
  font-size: 1rem;
}

.contact-method-card p {
  margin-bottom: 0;
  font-size: 0.9rem;
  color: var(--color-ink-muted);
  word-break: break-word;
}

.contact-method-card .method-value {
  display: block;
  font-weight: 700;
  color: var(--color-primary);
}

.contact-method-card:hover .method-value { color: var(--color-accent-hover); }

/* --------------------------------------------------------------------------
   12. RFQ Form
   -------------------------------------------------------------------------- */
.rfq-form-panel {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.75rem;
}

@media (min-width: 768px) {
  .rfq-form-panel { padding: 2.75rem; }
}

.form-grid {
  display: grid;
  gap: 1.25rem;
  margin-top: 1.75rem;
}

.form-row {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .form-row--2up { grid-template-columns: 1fr 1fr; }
}

.form-field { display: flex; flex-direction: column; gap: 0.4rem; }

.form-field label {
  font-family: var(--font-main);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--color-primary);
}

.form-field .required-mark { color: var(--color-accent-hover); }

.form-field .field-hint {
  font-size: 0.78rem;
  color: var(--color-ink-muted);
  margin-top: -0.15rem;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  font-family: var(--font-main);
  font-size: 0.95rem;
  color: var(--color-dark);
  background: var(--color-white);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 0.75em 0.85em;
  transition: border-color var(--speed-fast) var(--ease),
              box-shadow var(--speed-fast) var(--ease);
}

.form-textarea { resize: vertical; min-height: 9rem; }

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(11, 37, 69, 0.12);
}

.form-input[aria-invalid="true"],
.form-select[aria-invalid="true"],
.form-textarea[aria-invalid="true"] {
  border-color: #DC2626;
  background: #FEF2F2;
}

.form-input[aria-invalid="true"]:focus,
.form-select[aria-invalid="true"]:focus,
.form-textarea[aria-invalid="true"]:focus {
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.15);
}

.form-error-msg {
  display: none;
  align-items: center;
  gap: 0.4em;
  font-size: 0.8rem;
  font-weight: 600;
  color: #DC2626;
}

.form-error-msg::before {
  content: '!';
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: #DC2626;
  color: var(--color-white);
  font-size: 0.68rem;
  flex-shrink: 0;
}

.form-field.has-error .form-error-msg { display: flex; }

/* --------------------------------------------------------------------------
   12a. File Dropzone
   -------------------------------------------------------------------------- */
.dropzone {
  position: relative;
  border: 2px dashed var(--color-border);
  border-radius: var(--radius);
  background: var(--color-light);
  padding: 2rem 1.25rem;
  text-align: center;
  transition: border-color var(--speed-fast) var(--ease),
              background var(--speed-fast) var(--ease);
}

.dropzone.is-dragover {
  border-color: var(--color-accent);
  background: #FFFBEB;
}

.dropzone-icon {
  width: 40px;
  height: 40px;
  margin: 0 auto 0.75rem;
  color: var(--color-accent-hover);
}

.dropzone p { margin-bottom: 0.35rem; font-size: 0.92rem; }
.dropzone .dropzone-hint { font-size: 0.78rem; color: var(--color-ink-muted); margin-bottom: 0; }

.dropzone-browse {
  font-weight: 700;
  color: var(--color-primary);
  text-decoration: underline;
  text-underline-offset: 2px;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font-size: inherit;
  font-family: inherit;
}

.dropzone input[type="file"] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.file-list {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.5rem;
  text-align: left;
}

.file-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 0.55rem 0.7rem;
  font-size: 0.85rem;
}

.file-item .file-icon { flex-shrink: 0; width: 18px; height: 18px; color: var(--color-accent-hover); }
.file-item .file-name { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; color: var(--color-primary); }
.file-item .file-size { flex-shrink: 0; font-family: var(--font-mono); font-size: 0.72rem; color: var(--color-ink-muted); }

.file-item-remove {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: none;
  background: var(--color-light);
  color: var(--color-ink-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  line-height: 1;
}
.file-item-remove:hover { background: #FEF2F2; color: #DC2626; }

.file-total-size {
  margin-top: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--color-ink-muted);
}
.file-total-size.is-over-limit { color: #DC2626; font-weight: 700; }

/* --------------------------------------------------------------------------
   12b. Form Alerts (warning / error banners)
   -------------------------------------------------------------------------- */
.form-alert {
  display: none;
  gap: 0.75rem;
  align-items: flex-start;
  border-radius: var(--radius-sm);
  padding: 0.9rem 1.1rem;
  font-size: 0.88rem;
  line-height: 1.5;
  margin-top: 1.25rem;
}

.form-alert.is-visible { display: flex; }

.form-alert-icon { flex-shrink: 0; width: 20px; height: 20px; margin-top: 0.1rem; }

.form-alert--warning {
  background: #FFFBEB;
  border: 1px solid #FDE68A;
  color: #92400E;
}
.form-alert--warning .form-alert-icon { color: #D97706; }

.form-alert--error {
  background: #FEF2F2;
  border: 1px solid #FECACA;
  color: #991B1B;
}
.form-alert--error .form-alert-icon { color: #DC2626; }

/* --------------------------------------------------------------------------
   12c. reCAPTCHA container & submit
   -------------------------------------------------------------------------- */
.recaptcha-container { margin-top: 0.5rem; }

.form-actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: flex-start;
  margin-top: 0.5rem;
}

.btn-submit {
  position: relative;
  min-width: 220px;
}

.btn-submit .btn-spinner {
  display: none;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(20, 24, 29, 0.35);
  border-top-color: #14181D;
  border-radius: 50%;
  animation: btn-spin 0.7s linear infinite;
}

.btn-submit[aria-busy="true"] .btn-spinner { display: inline-block; }
.btn-submit[aria-busy="true"] .btn-label::after { content: '\2026'; }
.btn-submit:disabled { opacity: 0.75; cursor: not-allowed; transform: none; }

@keyframes btn-spin {
  to { transform: rotate(360deg); }
}

.form-privacy-note {
  font-size: 0.78rem;
  color: var(--color-ink-muted);
  margin: 0;
}

/* --------------------------------------------------------------------------
   12d. Success Confirmation (inline aria-live announcement; the primary
   visual feedback is the modal in section 12g)
   -------------------------------------------------------------------------- */
.rfq-success {
  display: none;
  text-align: center;
  padding: 2.5rem 1.5rem;
}

.rfq-success.is-visible { display: block; }

.rfq-success-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 1.25rem;
  color: var(--color-white);
  background: var(--color-accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.rfq-success-icon svg { width: 28px; height: 28px; }

.rfq-success h3 { margin-bottom: 0.6rem; }
.rfq-success p { max-width: 46ch; margin: 0 auto; color: var(--color-ink-muted); }

/* --------------------------------------------------------------------------
   12e. RFQ Stepper (4-step wizard progress indicator)
   -------------------------------------------------------------------------- */
.rfq-stepper {
  list-style: none;
  display: flex;
  margin: 1.75rem 0 0;
  padding: 0;
  counter-reset: rfq-step;
}

.rfq-stepper li {
  flex: 1 1 0;
  position: relative;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-ink-muted);
}

.rfq-stepper li::before {
  counter-increment: rfq-step;
  content: counter(rfq-step);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  margin: 0 auto 0.4rem;
  border-radius: 50%;
  background: var(--color-white);
  border: 2px solid var(--color-border);
  color: var(--color-ink-muted);
  font-weight: 700;
  position: relative;
  z-index: 1;
}

.rfq-stepper li::after {
  content: '';
  position: absolute;
  top: 14px;
  left: -50%;
  width: 100%;
  height: 2px;
  background: var(--color-border);
  z-index: 0;
}

.rfq-stepper li:first-child::after { display: none; }

.rfq-stepper li.is-complete::before {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-white);
  content: '\2713';
}

.rfq-stepper li.is-complete::after { background: var(--color-primary); }

.rfq-stepper li.is-current { color: var(--color-primary); font-weight: 700; }

.rfq-stepper li.is-current::before {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: #14181D;
}

.rfq-step-label { display: none; }

@media (min-width: 640px) {
  .rfq-step-label { display: block; }
}

/* --------------------------------------------------------------------------
   12f. RFQ Step panels & Back/Next navigation
   -------------------------------------------------------------------------- */
.rfq-step-heading {
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
}

.rfq-step-subhead {
  font-size: 0.88rem;
  color: var(--color-ink-muted);
  margin-bottom: 1.5rem;
}

.rfq-step-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-top: 0.5rem;
}

.rfq-step-nav .btn-back {
  background: transparent;
  border: 2px solid var(--color-border);
  color: var(--color-primary);
}
.rfq-step-nav .btn-back:hover { border-color: var(--color-primary); }

/* --------------------------------------------------------------------------
   12g. Review & Submit summary
   -------------------------------------------------------------------------- */
.rfq-review-list {
  display: grid;
  gap: 0.9rem;
  margin: 0 0 1.75rem;
  padding: 1.25rem;
  background: var(--color-light);
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
}

@media (min-width: 640px) {
  .rfq-review-list { grid-template-columns: 1fr 1fr; }
}

.rfq-review-item dt {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-ink-muted);
  margin-bottom: 0.2rem;
}

.rfq-review-item dd {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--color-primary);
  word-break: break-word;
}

.rfq-review-item.rfq-review-full { grid-column: 1 / -1; }

/* --------------------------------------------------------------------------
   12h. Feedback Modal (success / error)
   -------------------------------------------------------------------------- */
.rfq-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(11, 37, 69, 0.6);
  z-index: 200;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}

.rfq-modal-overlay.is-visible { display: flex; }

.rfq-modal {
  position: relative;
  background: var(--color-white);
  border-radius: var(--radius);
  max-width: 460px;
  width: 100%;
  padding: 2.25rem 1.75rem 1.75rem;
  text-align: center;
  box-shadow: 0 24px 60px rgba(11, 37, 69, 0.35);
}

.rfq-modal-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: var(--color-light);
  color: var(--color-ink-muted);
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
}
.rfq-modal-close:hover { background: var(--color-border); color: var(--color-primary); }

.rfq-modal-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 1.1rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
}

.rfq-modal-icon svg { width: 28px; height: 28px; }

.rfq-modal--success .rfq-modal-icon { background: var(--color-accent); }
.rfq-modal--error .rfq-modal-icon { background: #DC2626; }

.rfq-modal h3 { margin-bottom: 0.6rem; }
.rfq-modal p { max-width: 40ch; margin: 0 auto 0.5rem; color: var(--color-ink-muted); }
.rfq-modal p:last-of-type { margin-bottom: 0; }
.rfq-modal a { color: var(--color-primary); font-weight: 700; }

.rfq-modal .btn { margin-top: 1.25rem; }

/* --------------------------------------------------------------------------
   13. Progressive-Enhancement Visibility Toggles
   Placed last deliberately: for elements also matched by an earlier,
   equal-specificity component rule (e.g. .rfq-review-list's own
   `display: grid`), source order decides the winner — being last in the
   cascade is what makes these toggles reliably override the base component
   styles rather than the other way around.
   -------------------------------------------------------------------------- */
.js-only { display: none; }
html.js .rfq-stepper.js-only { display: flex; }
html.js button.js-only { display: inline-flex; }
html.js dl.js-only { display: grid; }

/* Only hide non-active wizard steps once JS confirms it's driving the
   experience; with JS disabled every .rfq-step stays in normal (visible)
   flow, giving one long form with a single Submit button at the end. */
html.js .rfq-step:not(.is-active) { display: none; }

/* --------------------------------------------------------------------------
   14. Proof Gallery — pairs a capability/sector claim with a real photo.
   Used for "Capabilities in Practice" (services.html) and "Sectors in
   Practice" (industries.html) bands.
   -------------------------------------------------------------------------- */
.proof-grid {
  display: grid;
  gap: 1.5rem;
  margin-top: 2.5rem;
}

@media (min-width: 768px) {
  .proof-grid { grid-template-columns: repeat(3, 1fr); }
}

.proof-card {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--color-border);
  background: var(--color-white);
}

.proof-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

.proof-card figcaption {
  padding: 1rem 1.1rem 1.25rem;
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--color-primary);
}

.proof-card figcaption span {
  display: block;
  margin-top: 0.3rem;
  font-weight: 400;
  font-size: 0.85rem;
  color: var(--color-ink-muted);
}

/* --------------------------------------------------------------------------
   15. Process Band — "How We Work" production-route diagram section
   -------------------------------------------------------------------------- */
.process-band {
  margin-top: 2.5rem;
  padding: 1.5rem;
  background: var(--color-light);
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
}

.process-band img,
.process-band svg {
  width: 100%;
  height: auto;
  display: block;
}
