/* ===================================================================
   A&R Industrial Solutions — Design Tokens & Component Styles
   Palette derived from brand logo: deep navy + steel gray + clean white
   =================================================================== */

:root {
  /* Type scale — fluid clamp() */
  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --text-sm: clamp(0.875rem, 0.8rem + 0.35vw, 1rem);
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --text-lg: clamp(1.125rem, 1rem + 0.75vw, 1.5rem);
  --text-xl: clamp(1.5rem, 1.2rem + 1.25vw, 2.25rem);
  --text-2xl: clamp(2rem, 1.2rem + 2.5vw, 3.25rem);
  --text-3xl: clamp(2.5rem, 1rem + 4vw, 4.5rem);
  --text-hero: clamp(2.75rem, 1rem + 5vw, 5.5rem);

  /* Spacing — 4px system */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* Radius — industrial: mostly sharp, minimal rounding */
  --radius-sm: 0.25rem;
  --radius-md: 0.375rem;
  --radius-lg: 0.5rem;
  --radius-xl: 0.625rem;
  --radius-full: 9999px;

  --transition-interactive: 180ms cubic-bezier(0.16, 1, 0.3, 1);

  --content-narrow: 640px;
  --content-default: 960px;
  --content-wide: 1200px;
  --content-full: 100%;

  /* Fonts */
  --font-display: 'Barlow Semi Condensed', 'Barlow', Arial, sans-serif;
  --font-body: 'Barlow', 'Inter', Arial, sans-serif;

  /* Fixed brand-navy tokens — always deep navy regardless of theme.
     Used for hero/footer/panels that are permanently "branded" surfaces
     (not surfaces that flip with light/dark mode). */
  --brand-navy: #152a52;
  --brand-navy-mid: #0e1d3c;
  --brand-navy-deep: #0a1529;
  --brand-ink-inverse: #f6f7f9;
}

:root,
[data-theme='light'] {
  /* Surfaces — clean whites / light steel gray */
  --color-bg: #f5f6f7;
  --color-surface: #ffffff;
  --color-surface-2: #fbfbfc;
  --color-surface-offset: #eceef0;
  --color-surface-offset-2: #e3e6e9;
  --color-surface-dynamic: #dde0e4;
  --color-divider: #d8dbdf;
  --color-border: #ccd1d6;

  /* Text — deep navy / slate */
  --color-text: #171f30;
  --color-text-muted: #545e6e;
  --color-text-faint: #8992a0;
  --color-text-inverse: #f6f7f9;

  /* Primary accent — deep navy from logo */
  --color-primary: #152a52;
  --color-primary-hover: #0e1d3c;
  --color-primary-active: #0a1529;
  --color-primary-highlight: #d7dde8;

  /* Secondary — steel gray from gear */
  --color-steel: #5b6470;
  --color-steel-hover: #454c56;
  --color-steel-highlight: #e2e4e7;

  /* Warning */
  --color-warning: #96530f;
  --color-warning-hover: #713e0c;
  --color-warning-highlight: #e4d2bd;

  /* Error */
  --color-error: #a12c2c;
  --color-error-hover: #7d1e1e;
  --color-error-highlight: #e3cece;

  /* Success */
  --color-success: #2f6b3a;
  --color-success-hover: #204d28;
  --color-success-highlight: #cfe0d2;

  --shadow-sm: 0 1px 2px oklch(0.2 0.02 250 / 0.07);
  --shadow-md: 0 4px 14px oklch(0.2 0.02 250 / 0.10);
  --shadow-lg: 0 16px 40px oklch(0.2 0.02 250 / 0.16);
}

[data-theme='dark'] {
  --color-bg: #0c111d;
  --color-surface: #121826;
  --color-surface-2: #161d2d;
  --color-surface-offset: #1a2233;
  --color-surface-offset-2: #202a3d;
  --color-surface-dynamic: #29344a;
  --color-divider: #263049;
  --color-border: #313d58;

  --color-text: #e6e9ef;
  --color-text-muted: #a2acbf;
  --color-text-faint: #6b7690;
  --color-text-inverse: #121826;

  --color-primary: #7893c9;
  --color-primary-hover: #97afdb;
  --color-primary-active: #b0c3e6;
  --color-primary-highlight: #263455;

  --color-steel: #a3acba;
  --color-steel-hover: #c1c8d3;
  --color-steel-highlight: #2b3448;

  --color-warning: #d69a5c;
  --color-warning-hover: #e3b27d;
  --color-warning-highlight: #3d3020;

  --color-error: #d9797a;
  --color-error-hover: #e59b9c;
  --color-error-highlight: #3d2224;

  --color-success: #7fc08d;
  --color-success-hover: #9fd1ab;
  --color-success-highlight: #223a28;

  --shadow-sm: 0 1px 2px oklch(0 0 0 / 0.3);
  --shadow-md: 0 4px 14px oklch(0 0 0 / 0.4);
  --shadow-lg: 0 16px 40px oklch(0 0 0 / 0.55);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --color-bg: #0c111d;
    --color-surface: #121826;
    --color-surface-2: #161d2d;
    --color-surface-offset: #1a2233;
    --color-surface-offset-2: #202a3d;
    --color-surface-dynamic: #29344a;
    --color-divider: #263049;
    --color-border: #313d58;
    --color-text: #e6e9ef;
    --color-text-muted: #a2acbf;
    --color-text-faint: #6b7690;
    --color-text-inverse: #121826;
    --color-primary: #7893c9;
    --color-primary-hover: #97afdb;
    --color-primary-active: #b0c3e6;
    --color-primary-highlight: #263455;
    --color-steel: #a3acba;
    --color-steel-hover: #c1c8d3;
    --color-steel-highlight: #2b3448;
    --color-warning: #d69a5c;
    --color-warning-highlight: #3d3020;
    --color-error: #d9797a;
    --color-error-highlight: #3d2224;
    --color-success: #7fc08d;
    --color-success-highlight: #223a28;
    --shadow-sm: 0 1px 2px oklch(0 0 0 / 0.3);
    --shadow-md: 0 4px 14px oklch(0 0 0 / 0.4);
    --shadow-lg: 0 16px 40px oklch(0 0 0 / 0.55);
  }
}

/* ===================================================================
   Base type
   =================================================================== */

body {
  font-family: var(--font-body);
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.01em;
}

a {
  color: var(--color-primary);
  text-decoration: none;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-steel);
}

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

/* ===================================================================
   Layout helpers
   =================================================================== */

.container {
  width: 100%;
  max-width: var(--content-wide);
  margin-inline: auto;
  padding-inline: var(--space-6);
}

.container--narrow {
  max-width: var(--content-default);
}

section {
  padding-block: clamp(var(--space-16), 8vw, var(--space-24));
}

.section-head {
  max-width: 720px;
  margin-bottom: var(--space-12);
}

.section-head h2 {
  font-size: var(--text-xl);
  margin-top: var(--space-3);
  color: var(--color-text);
}

.section-head p {
  margin-top: var(--space-4);
  color: var(--color-text-muted);
  font-size: var(--text-base);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--color-primary);
  color: var(--color-text-inverse);
  padding: var(--space-3) var(--space-5);
  border-radius: var(--radius-sm);
}
.skip-link:focus {
  left: var(--space-4);
  top: var(--space-4);
}

/* ===================================================================
   Header
   =================================================================== */

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in oklab, var(--color-surface) 92%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-divider);
  transition:
    transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.header--hidden {
  transform: translateY(-100%);
}

.header--scrolled {
  box-shadow: var(--shadow-sm);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding-block: var(--space-3);
}

.brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  min-width: 0;
}

.brand img {
  height: 44px;
  width: 44px;
  object-fit: contain;
  flex-shrink: 0;
}

.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  min-width: 0;
}

.brand__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-sm);
  color: var(--color-primary);
  white-space: nowrap;
}

.brand__tagline {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-steel);
  white-space: nowrap;
}

.nav {
  display: flex;
  align-items: center;
  gap: var(--space-8);
}

.nav__links {
  display: flex;
  gap: var(--space-6);
  list-style: none;
}

.nav__links a {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text-muted);
  padding: var(--space-2) 0;
  border-bottom: 2px solid transparent;
}

.nav__links a:hover,
.nav__links a:focus-visible {
  color: var(--color-primary);
  border-bottom-color: var(--color-primary);
}

.header__actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  color: var(--color-text-muted);
  border: 1px solid var(--color-border);
}

.theme-toggle:hover {
  color: var(--color-primary);
  border-color: var(--color-primary);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  color: var(--color-text);
}

.mobile-nav {
  display: none;
}

/* ===================================================================
   Buttons
   =================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0.01em;
  padding: var(--space-4) var(--space-6);
  border-radius: var(--radius-md);
  min-height: 44px;
  white-space: nowrap;
  border: 1px solid transparent;
}

.btn--primary {
  background: var(--color-primary);
  color: var(--color-text-inverse);
}

.btn--primary:hover {
  background: var(--color-primary-hover);
  box-shadow: var(--shadow-md);
}

.btn--secondary {
  background: transparent;
  color: var(--color-text);
  border-color: var(--color-border);
}

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

.btn--block {
  width: 100%;
}

/* ===================================================================
   Hero
   =================================================================== */

.hero {
  position: relative;
  padding-block: clamp(var(--space-20), 12vw, var(--space-32)) clamp(var(--space-16), 8vw, var(--space-24));
  background: linear-gradient(160deg, var(--brand-navy) 0%, var(--brand-navy-mid) 62%, var(--brand-navy-deep) 100%);
  color: var(--brand-ink-inverse);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(135deg, oklch(1 0 0 / 0.035) 0 2px, transparent 2px 26px);
  pointer-events: none;
}

.hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: oklch(1 0 0 / 0.78);
}

.hero__eyebrow::before {
  content: '';
  width: 22px;
  height: 2px;
  background: oklch(1 0 0 / 0.6);
  display: inline-block;
}

.hero h1 {
  font-size: var(--text-hero);
  margin-top: var(--space-4);
  color: #fff;
}

.hero h1 em {
  font-style: normal;
  color: var(--color-text-inverse);
  opacity: 0.82;
}

.hero p.lede {
  margin-top: var(--space-6);
  font-size: var(--text-lg);
  max-width: 46ch;
  color: oklch(1 0 0 / 0.86);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  margin-top: var(--space-10);
}

.hero .btn--secondary {
  color: #fff;
  border-color: oklch(1 0 0 / 0.4);
}

.hero .btn--secondary:hover {
  border-color: #fff;
  color: #fff;
  background: oklch(1 0 0 / 0.08);
}

/* ===================================================================
   Trust strip
   =================================================================== */

.trust-strip {
  padding-block: var(--space-8);
  background: var(--color-surface-offset);
  border-bottom: 1px solid var(--color-divider);
}

.trust-strip__row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-8);
}

.trust-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.trust-item svg {
  width: 26px;
  height: 26px;
  color: var(--color-primary);
  flex-shrink: 0;
}

.trust-item span {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text);
  line-height: 1.3;
}

/* ===================================================================
   About section
   =================================================================== */

.about {
  background: var(--color-bg);
}

.about__grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: var(--space-20);
  align-items: start;
}

.about__media {
  position: sticky;
  top: calc(var(--space-20) + 64px);
}

.about__media-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-10);
  box-shadow: var(--shadow-sm);
}

.about__media-card img {
  width: 100%;
  max-width: 220px;
  margin-inline: auto;
}

.about__body .eyebrow {
  margin-bottom: var(--space-3);
}

.about__body h2 {
  font-size: var(--text-xl);
  margin-bottom: var(--space-6);
}

.about__body > p {
  color: var(--color-text-muted);
  margin-bottom: var(--space-5);
}

.mission-vision {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-6);
  margin-top: var(--space-10);
}

.mv-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
}

.mv-card h3 {
  font-size: var(--text-base);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: var(--space-3);
}

.mv-card p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.values-list {
  margin-top: var(--space-10);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-5);
}

.value-item {
  display: flex;
  gap: var(--space-3);
  align-items: flex-start;
}

.value-item svg {
  width: 20px;
  height: 20px;
  color: var(--color-primary);
  flex-shrink: 0;
  margin-top: 2px;
}

.value-item span {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text);
}

/* ===================================================================
   Services
   =================================================================== */

.services {
  background: var(--color-surface-offset);
  border-top: 1px solid var(--color-divider);
  border-bottom: 1px solid var(--color-divider);
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}

.service-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.service-card--wide {
  grid-column: span 2;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-6);
  align-items: start;
}

.service-card__index {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--color-steel-highlight);
  -webkit-text-stroke: 1px var(--color-steel);
  color: transparent;
}

.service-card--wide .service-card__index {
  font-size: var(--text-2xl);
  line-height: 1;
}

.service-card h3 {
  font-size: var(--text-lg);
  color: var(--color-text);
}

.service-card p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

/* ===================================================================
   Compliance documents
   =================================================================== */

.documents {
  background: var(--color-bg);
}

.documents .section-head {
  margin-bottom: var(--space-8);
}

.doc-list {
  display: grid;
  gap: var(--space-4);
  max-width: 640px;
}

.doc-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: var(--space-5);
  align-items: center;
  padding: var(--space-6);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.doc-card:hover,
.doc-card:focus-visible {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.doc-card__icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--color-surface-offset);
  color: var(--color-primary);
  flex-shrink: 0;
}

.doc-card__icon svg {
  width: 22px;
  height: 22px;
}

.doc-card__text {
  display: block;
  min-width: 0;
}

.doc-card__title {
  display: block;
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--color-text);
  line-height: 1.3;
}

.doc-card__meta {
  display: block;
  margin-top: var(--space-2);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--color-text-faint);
}

.doc-card__action {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: var(--color-primary);
  color: var(--color-text-inverse);
  flex-shrink: 0;
}

.doc-card__action svg {
  width: 18px;
  height: 18px;
}

.doc-note {
  margin-top: var(--space-6);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  max-width: 640px;
}

.doc-note a {
  color: var(--color-primary);
  font-weight: 600;
}

@media (max-width: 560px) {
  .doc-card {
    grid-template-columns: auto 1fr;
    row-gap: var(--space-4);
  }

  .doc-card__action {
    grid-column: 2;
    justify-self: start;
  }
}

/* ===================================================================
   Contact
   =================================================================== */

.contact {
  background: var(--color-surface-offset);
  border-top: 1px solid var(--color-divider);
}

.contact__grid {
  display: grid;
  grid-template-columns: 1fr;
  max-width: 460px;
  margin-inline: auto;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-5);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-bottom: var(--space-5);
}

.form-group label {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.form-group input,
.form-group textarea {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-3) var(--space-4);
  background: var(--color-surface-2);
  color: var(--color-text);
  font-size: var(--text-base);
  min-height: 44px;
}

.form-group textarea {
  min-height: 140px;
  resize: vertical;
}

.form-group input:focus-visible,
.form-group textarea:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 1px;
  border-color: var(--color-primary);
}

.form-note {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  margin-top: var(--space-4);
}

/* Optional-field marker in a label */
.form-optional {
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
  color: var(--color-text-faint);
}

/* Helper text under a field */
.form-hint {
  font-size: var(--text-xs);
  line-height: 1.45;
  color: var(--color-text-faint);
  margin: 0;
}

/* File input: style the control and its browser-drawn button */
.form-group input.file-input {
  padding: var(--space-2);
  cursor: pointer;
  font-size: var(--text-sm);
}

.form-group input.file-input::file-selector-button {
  margin-right: var(--space-3);
  padding: var(--space-2) var(--space-4);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  color: var(--color-text);
  font-family: inherit;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.form-group input.file-input::file-selector-button:hover {
  background: var(--color-surface-offset);
  border-color: var(--color-primary);
}

/* Selected-file readout */
.file-summary {
  font-size: var(--text-xs);
  line-height: 1.5;
  color: var(--color-text-muted);
  margin: 0;
  padding: var(--space-2) var(--space-3);
  background: var(--color-surface-offset);
  border-left: 2px solid var(--color-primary);
  border-radius: var(--radius-sm, 4px);
  overflow-wrap: anywhere;
}

.file-summary--error {
  color: #b42318;
  border-left-color: #b42318;
  background: oklch(0.95 0.04 25);
}

[data-theme='dark'] .file-summary--error {
  color: #ff9d94;
  background: oklch(0.3 0.06 25);
}

/* Submit button while the native POST is in flight */
.btn.is-busy {
  opacity: 0.72;
  pointer-events: none;
}

.contact-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  display: flex;
  flex-direction: column;
}

.contact-card .btn {
  margin-top: var(--space-6);
}

.contact-card h3 {
  font-size: var(--text-base);
  color: var(--color-text);
  margin-bottom: var(--space-5);
}

.contact-row {
  display: flex;
  gap: var(--space-4);
  align-items: flex-start;
  padding-block: var(--space-3);
}

.contact-row + .contact-row {
  border-top: 1px solid var(--color-divider);
}

.contact-row svg {
  width: 20px;
  height: 20px;
  color: var(--color-primary);
  flex-shrink: 0;
  margin-top: 2px;
}

.contact-row a,
.contact-row span {
  font-size: var(--text-sm);
  color: var(--color-text);
  font-weight: 500;
}

.contact-row a:hover {
  color: var(--color-primary);
}

.contact-row div span.label {
  display: block;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-text-faint);
  margin-bottom: 2px;
}

/* form success/error state */
.form-status {
  display: none;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-5);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  font-weight: 600;
  margin-bottom: var(--space-5);
}

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

.form-status--success {
  background: var(--color-success-highlight);
  color: var(--color-success);
}

.form-status--error {
  background: var(--color-error-highlight);
  color: var(--color-error);
}

/* ===================================================================
   Footer
   =================================================================== */

.footer {
  background: var(--brand-navy-deep);
  color: oklch(1 0 0 / 0.82);
  padding-block: var(--space-16) var(--space-8);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: var(--space-12);
  padding-bottom: var(--space-10);
  border-bottom: 1px solid oklch(1 0 0 / 0.14);
}

.footer__brand {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
}

.footer__brand img {
  height: 52px;
  width: 52px;
  object-fit: contain;
  background: #fff;
  border-radius: var(--radius-md);
  padding: 4px;
  flex-shrink: 0;
}

.footer__brand-text .name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-base);
  color: #fff;
}

.footer__brand-text .tagline {
  font-size: var(--text-xs);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: oklch(1 0 0 / 0.6);
  margin-top: var(--space-1);
}

.footer h4 {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: oklch(1 0 0 / 0.55);
  margin-bottom: var(--space-4);
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer__links a {
  font-size: var(--text-sm);
  color: oklch(1 0 0 / 0.82);
}

.footer__links a:hover {
  color: #fff;
}

.footer address {
  font-size: var(--text-sm);
  font-style: normal;
  line-height: 1.7;
  color: oklch(1 0 0 / 0.82);
}

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-4);
  padding-top: var(--space-6);
  font-size: var(--text-xs);
  color: oklch(1 0 0 / 0.55);
  flex-wrap: wrap;
}

/* ===================================================================
   Scroll reveal
   =================================================================== */

[data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ===================================================================
   Responsive
   =================================================================== */

@media (max-width: 960px) {
  .about__grid,
  .contact__grid {
    grid-template-columns: 1fr;
    gap: var(--space-10);
  }

  .about__media {
    position: static;
  }

  .trust-strip__row {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-6);
  }

  .services__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .service-card--wide {
    grid-column: span 2;
  }

  .footer__grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer__brand {
    grid-column: span 2;
  }
}

@media (max-width: 720px) {
  .nav__links {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .header__actions .btn {
    display: none;
  }

  .brand__name {
    font-size: var(--text-xs);
  }

  .mobile-nav {
    display: none;
    flex-direction: column;
    padding: var(--space-4) var(--space-6) var(--space-6);
    border-top: 1px solid var(--color-divider);
    background: var(--color-surface);
  }

  .mobile-nav.is-open {
    display: flex;
  }

  .mobile-nav a {
    padding: var(--space-3) 0;
    font-size: var(--text-base);
    font-weight: 600;
    color: var(--color-text);
    border-bottom: 1px solid var(--color-divider);
  }

  .mobile-nav a:last-child {
    border-bottom: none;
  }

  .mobile-nav__cta {
    margin-top: var(--space-4);
    border-bottom: none !important;
    justify-content: center;
  }

  .hero {
    padding-block: var(--space-16) var(--space-12);
  }

  .hero__actions .btn {
    width: 100%;
  }

  .trust-strip__row {
    grid-template-columns: 1fr;
    gap: var(--space-5);
  }

  .services__grid {
    grid-template-columns: 1fr;
  }

  .service-card--wide {
    grid-column: span 1;
    grid-template-columns: 1fr;
  }

  .mission-vision {
    grid-template-columns: 1fr;
  }

  .values-list {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .footer__grid {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }

  .footer__brand {
    grid-column: span 1;
  }

  .footer__bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 480px) {
  .brand__tagline {
    display: none;
  }
}

/* ===================================================================
   RFQ Modal
   =================================================================== */

.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-6);
}

.modal[hidden] {
  display: none;
}

.modal__overlay {
  position: absolute;
  inset: 0;
  background: oklch(0.1 0 0 / 0.55);
  animation: modal-fade 0.18s ease-out;
}

.modal__dialog {
  position: relative;
  width: min(560px, 100%);
  max-height: 88vh;
  overflow-y: auto;
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg, 0 20px 60px oklch(0 0 0 / 0.3));
  padding: var(--space-10);
  animation: modal-rise 0.22s ease-out;
}

.modal__close {
  position: absolute;
  top: var(--space-5);
  right: var(--space-5);
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  color: var(--color-text-muted);
  background: transparent;
  border: 1px solid transparent;
}

.modal__close:hover {
  background: var(--color-surface-offset);
  color: var(--color-text);
}

.modal__dialog h2 {
  font-size: var(--text-2xl);
  color: var(--color-text);
  padding-right: var(--space-10);
}

.modal__intro {
  color: var(--color-text-muted);
  margin-top: var(--space-2);
  margin-bottom: var(--space-6);
}

body.modal-open {
  overflow: hidden;
}

@keyframes modal-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes modal-rise {
  from { opacity: 0; transform: translateY(12px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  .modal__overlay,
  .modal__dialog {
    animation: none;
  }
}

@media (max-width: 480px) {
  .modal__dialog {
    padding: var(--space-6);
  }
}

/* ===================================================================
   Thank-you page (thanks.html — FormSubmit redirect target)
   =================================================================== */

.thanks {
  padding-block: clamp(var(--space-20), 14vw, var(--space-32));
  background: var(--color-surface-offset);
}

.thanks__inner {
  max-width: 62ch;
  text-align: center;
}

.thanks__mark {
  width: 56px;
  height: 56px;
  color: var(--color-primary);
  margin-bottom: var(--space-6);
}

.thanks__eyebrow {
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin: 0 0 var(--space-3);
}

.thanks h1 {
  font-size: clamp(1.9rem, 5vw, 2.75rem);
  margin: 0 0 var(--space-6);
}

.thanks__lede {
  font-size: var(--text-lg);
  line-height: 1.6;
  color: var(--color-text-muted);
  margin: 0 auto var(--space-6);
}

.thanks__note {
  font-size: var(--text-sm);
  color: var(--color-text-faint);
  margin: 0 auto var(--space-10);
}

.thanks__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  justify-content: center;
}

@media (max-width: 560px) {
  .thanks__actions .btn {
    width: 100%;
  }
}
