/* ============================================================
   Royal Marine Logistics — styles.css
   Modern, fast SPA stylesheet (navy / gold maritime theme)
   ============================================================ */

/* ---------- Design tokens ---------- */
:root {
  --navy-950: #060d1a;
  --navy-900: #0a1628;
  --navy-800: #0f2036;
  --navy-700: #16304f;
  --navy-600: #1f4268;
  --blue: #2f6fb3;
  --blue-soft: #3d86d6;
  --gold: #e8b64c;
  --gold-soft: #f6d489;

  --ink: #12233b;
  --ink-soft: #33465e;
  --muted: #4b5a6e;
  --surface: #ffffff;
  --surface-alt: #f4f7fb;
  --line: #e3eaf2;

  /* Readable gold accent for light backgrounds (dark goldenrod) */
  --gold-text: #a8660f;

  --text-on-dark: #e8eef5;

  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 18px 45px -20px rgba(10, 22, 40, 0.35);
  --shadow-sm: 0 8px 24px -12px rgba(10, 22, 40, 0.25);

  --container: 1160px;
  --font-body: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-display: "Sora", var(--font-body);
  --header-h: 88px;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

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

/* The hidden attribute must always win over component display rules. */
[hidden] { display: none !important; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--surface);
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font: inherit; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }

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

.container {
  width: min(100% - 2.5rem, var(--container));
  margin-inline: auto;
}

.accent { color: var(--gold-text); }

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--gold);
  color: var(--navy-900);
  padding: 0.6rem 1rem;
  z-index: 200;
  border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.6rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  font-family: var(--font-body);
  border: 1.5px solid transparent;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease),
    background-color 0.2s var(--ease), color 0.2s var(--ease);
  white-space: nowrap;
}
.btn:focus-visible { outline: 3px solid var(--blue-soft); outline-offset: 2px; }

.btn-primary {
  background: linear-gradient(135deg, var(--gold), #d9a235);
  color: var(--navy-900);
  box-shadow: 0 10px 24px -12px rgba(232, 182, 76, 0.7);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 30px -14px rgba(232, 182, 76, 0.85); }

.btn-ghost {
  border-color: var(--navy-700);
  color: var(--navy-700);
  background: transparent;
}
.btn-ghost:hover { background: rgba(15, 32, 54, 0.08); transform: translateY(-2px); }

.btn-block { width: 100%; }
.btn-lg { padding: 1rem 2.2rem; font-size: 1.02rem; }
.btn[disabled] { opacity: 0.72; cursor: not-allowed; transform: none; box-shadow: none; }
.btn .spinner {
  width: 14px; height: 14px;
  border: 2px solid currentColor;
  border-top-color: transparent;
  border-radius: 50%;
  display: inline-block;
  animation: rml-spin 0.7s linear infinite;
  flex-shrink: 0;
}
@keyframes rml-spin { to { transform: rotate(360deg); } }

/* Light-context ghost button (on light backgrounds) */
.section:not(.section-dark) .btn-ghost,
.gateway .btn-ghost {
  border-color: var(--navy-700);
  color: var(--navy-700);
}
.section:not(.section-dark) .btn-ghost:hover { background: rgba(15, 32, 54, 0.08); }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
  color: var(--navy-700);
  transition: color 0.2s var(--ease), gap 0.2s var(--ease);
}
.text-link:hover { color: var(--blue); gap: 0.7rem; }
.text-link.light { color: var(--gold-text); }
.text-link.light:hover { color: var(--navy-700); }

/* ---------- Header / nav ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.86));
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  transition: background 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.site-header.scrolled {
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 8px 28px -14px rgba(15, 32, 54, 0.3);
  border-bottom: 1px solid var(--line);
}
.site-header:not(.scrolled) .nav { border-bottom: 1px solid rgba(15, 32, 54, 0.08); }

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: var(--header-h);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  color: var(--ink);
}
.brand-mark {
  width: 92px; height: 72px;
  flex-shrink: 0;
  /* Recolor the black SVG to a deep navy for strong contrast on light */
  filter: invert(1) sepia(1) saturate(6) hue-rotate(200deg) brightness(0.36) contrast(1.15);
}
.brand-text {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.28rem;
  letter-spacing: 0.04em;
  line-height: 1;
  display: flex;
  flex-direction: column;
  color: var(--ink);
}
.brand-text em { font-style: normal; color: var(--gold-text); }
.brand-text small {
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.34em;
  color: var(--ink-soft);
  margin-top: 0.3rem;
}

.nav-links { display: flex; align-items: center; gap: 1.6rem; }
.nav-links a {
  color: var(--ink);
  font-weight: 600;
  font-size: 0.95rem;
  position: relative;
  padding: 0.35rem 0;
  transition: color 0.2s var(--ease);
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--gold-text);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s var(--ease);
}
.nav-links a:hover { color: var(--blue); }
.nav-links a.is-active { color: var(--gold-text); }
.nav-links a.is-active::after { transform: scaleX(1); }

.nav-cta { padding: 0.55rem 1.4rem; font-size: 0.88rem; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  padding: 0.5rem;
}
.nav-toggle span {
  width: 26px;
  height: 2.5px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

.mobile-nav {
  position: fixed;
  inset: var(--header-h) 0 auto 0;
  z-index: 99;
  background: rgba(255, 255, 255, 0.98);
  padding: 1.5rem 1.5rem 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  transform: translateY(-110%);
  transition: transform 0.35s var(--ease);
  box-shadow: var(--shadow);
  border-bottom: 1px solid var(--line);
}
.mobile-nav.open { transform: translateY(0); }
.mobile-nav ul { display: flex; flex-direction: column; gap: 0.4rem; }
.mobile-nav a:not(.btn) {
  display: block;
  color: var(--ink);
  padding: 0.7rem 0.2rem;
  font-weight: 500;
  font-size: 1.15rem;
  border-bottom: 1px solid var(--line);
}

/* ---------- View / routing ---------- */
.main { min-height: 100vh; }

.view[hidden] { display: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background:
    radial-gradient(1100px 560px at 80% -10%, rgba(63, 134, 214, 0.16), transparent 60%),
    radial-gradient(850px 480px at 0% 110%, rgba(232, 182, 76, 0.22), transparent 55%),
    linear-gradient(160deg, #ffffff, #e9f0f8 70%);
  color: var(--ink);
  padding-block: calc(var(--header-h) + 3rem) 4rem;
  overflow: hidden;
}
.hero-img, .page-hero-img, .page-hero .hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  filter: saturate(1.2);
  opacity: 0.9;
}
.hero-overlay, .page-hero-overlay, .page-hero .hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
}
.hero .hero-overlay {
  background:
    linear-gradient(100deg, rgba(255, 255, 255, 0.95) 18%, rgba(255, 255, 255, 0.8) 50%, rgba(255, 255, 255, 0.34) 100%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.8) 0%, rgba(255, 255, 255, 0.5) 30%, rgba(255, 255, 255, 0.28) 76%, rgba(255, 255, 255, 0.9) 100%);
}
.hero .hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  overflow: hidden;
}
.hero .hero-bg svg {
  position: absolute;
  inset: auto 0 0 0;
  width: 100%;
  height: 200px;
  transform: translateY(0);
}

.hero-inner { position: relative; z-index: 3; max-width: 860px; }

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.78rem;
  color: var(--gold-text);
  margin-bottom: 1.4rem;
}
.hero-eyebrow .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 5px rgba(232, 182, 76, 0.25);
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.4rem);
  margin-bottom: 1.4rem;
  text-shadow: 0 1px 3px rgba(255, 255, 255, 0.85);
}
.hero-lead {
  font-size: clamp(1.08rem, 2vw, 1.28rem);
  color: var(--ink);
  font-weight: 500;
  max-width: 640px;
  margin-bottom: 1.6rem;
  text-shadow: 0 1px 3px rgba(255, 255, 255, 0.85);
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.4rem;
  margin-bottom: 2.2rem;
}
.hero-points li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.96rem;
  font-weight: 500;
  color: var(--ink);
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}
.hero-points li::before {
  content: "\2714";
  color: var(--gold-text);
  font-weight: 700;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; }

.hero-tagline {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2.4vw, 1.7rem);
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.hero-tagline strong { color: var(--gold-text); }

/* ---------- Shared section styles ---------- */
.section { padding-block: 5rem; }
.section-dark {
  background: linear-gradient(160deg, var(--surface-alt), #eaf1f8 75%);
  color: var(--ink);
  border-block: 1px solid var(--line);
}
.section-alt { background: var(--surface-alt); }

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 1rem;
}
.section-tag::before { content: ""; width: 26px; height: 2px; background: var(--gold); }
.section-dark .section-tag { color: var(--blue); }

.section-head { max-width: 720px; margin-bottom: 3rem; }
.section-head h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); margin-bottom: 1rem; }
.section-head .lead { color: var(--muted); font-size: 1.08rem; }
.section-dark .section-head .lead { color: var(--muted); }

.lead { font-size: 1.1rem; color: var(--muted); }
.section-dark p:not(.section-tag, .pill-item), .vm-card p { color: var(--muted); }

.center { text-align: center; }
.center .lead { margin-inline: auto; margin-top: 0.6rem; max-width: 720px; }

/* ---------- Reveal animation ---------- */
/* Reveal is scoped behind the `.js` class added in the head so that
   content stays visible to crawlers and no-JS visitors. */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  transition-delay: var(--reveal-delay, 0s);
  will-change: opacity, transform;
}
.js [data-reveal].is-visible { opacity: 1; transform: none; }

/* ---------- Snapshot ---------- */
.snapshot { margin-top: -4.5rem; position: relative; z-index: 5; }
.snapshot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.2rem;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  padding: 1.6rem;
}
.snapshot-item { padding: 0.4rem 0.4rem 0.4rem 1.4rem; border-left: 3px solid var(--gold); }
.snapshot-num {
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--blue-soft);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
}
.snapshot-item h3 { font-size: 1.15rem; margin: 0.35rem 0 0.35rem; }
.snapshot-item p { font-size: 0.9rem; color: var(--muted); margin-bottom: 0.6rem; }

/* ---------- Teaser ---------- */
.teaser-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 4rem;
  align-items: start;
}
.teaser-copy h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); margin-bottom: 1.1rem; }
.teaser-copy .lead { margin-bottom: 1rem; }
.teaser-copy .btn { margin-top: 1.4rem; }

.teaser-commit {
  border-radius: var(--radius);
  background: var(--surface-alt);
  border: 1px solid var(--line);
  padding: 0.4rem 1.6rem;
}
.teaser-commit li {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.85rem 0 0.85rem 2.2rem;
  border-bottom: 1px dashed var(--line);
  font-weight: 500;
}
.teaser-commit li:last-child { border-bottom: 0; }
.teaser-commit li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 22px; height: 22px;
  border-radius: 50%;
  background: rgba(232, 182, 76, 0.18);
  border: 1.5px solid var(--gold);
}
.teaser-commit li::after {
  content: "\2713";
  position: absolute;
  left: 6px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gold);
  font-weight: 700;
  font-size: 0.72rem;
}

/* ---------- Mini grid / pills ---------- */
.mini-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: 2.5rem;
}
.pill-item {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.75rem 1.3rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  font-weight: 600;
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}
.pill-icon { color: var(--gold); font-weight: 800; }

/* ---------- Tag cloud ---------- */
.tag-cloud { display: flex; flex-wrap: wrap; gap: 0.7rem; }
.tag-cloud span {
  padding: 0.65rem 1.2rem;
  border-radius: 999px;
  background: var(--surface-alt);
  border: 1px solid var(--line);
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--navy-700);
  transition: background 0.2s var(--ease), transform 0.2s var(--ease);
}
.tag-cloud span:hover { background: var(--gold); border-color: var(--gold); transform: translateY(-2px); }

/* ---------- Gateway ---------- */
.gateway { background: var(--surface-alt); border-block: 1px solid var(--line); }
.gateway-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}
.gw-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem 1.6rem;
  box-shadow: var(--shadow-sm);
}
.gw-item strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--navy-800);
  margin-bottom: 0.25rem;
}
.gw-item span { color: var(--muted); font-size: 0.9rem; }
.gateway-call { margin-top: 4rem; }

/* ---------- Vision / mission ---------- */
.vm-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.4rem;
}
.vm-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
}
.vm-card .section-tag { margin-bottom: 0.9rem; }
.vm-card h3 { font-size: 1.35rem; margin-bottom: 0.9rem; color: var(--ink); }
.vm-card p { margin-bottom: 1.4rem; }

/* ---------- Page hero (sub pages) ---------- */
.page-hero {
  position: relative;
  overflow: hidden;
  padding: calc(var(--header-h) + 4.5rem) 0 3.5rem;
  background:
    radial-gradient(900px 400px at 90% -10%, rgba(63, 134, 214, 0.16), transparent 55%),
    radial-gradient(700px 400px at 0% 120%, rgba(232, 182, 76, 0.22), transparent 55%),
    linear-gradient(160deg, #ffffff, #e9f0f8 75%);
  color: var(--ink);
}
.page-hero .hero-overlay {
  background:
    linear-gradient(100deg, rgba(255, 255, 255, 0.96) 22%, rgba(255, 255, 255, 0.82) 50%, rgba(255, 255, 255, 0.4) 100%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.82) 0%, rgba(255, 255, 255, 0.28) 60%, rgba(255, 255, 255, 0.18) 100%);
}
.page-hero .container { position: relative; z-index: 2; }
.page-hero h1 {
  font-size: clamp(1.9rem, 4.2vw, 3rem);
  max-width: 820px;
  margin-bottom: 1.2rem;
  text-shadow: 0 1px 3px rgba(255, 255, 255, 0.85);
}
.page-hero .lead { color: var(--ink-soft); max-width: 720px; text-shadow: 0 1px 3px rgba(255, 255, 255, 0.8); }
.page-hero .section-tag { color: var(--gold-text); }

/* ---------- About page ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 4rem;
  align-items: start;
}
.about-copy h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 1.1rem; }
.about-copy p { margin-bottom: 1rem; }
.about-copy .btn { margin-top: 0.8rem; }

.about-commit {
  background: var(--surface-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2.2rem;
}
.about-commit h3 { font-size: 1.4rem; margin-bottom: 0.8rem; }
.about-commit > p { color: var(--muted); margin-bottom: 1rem; }

.check-list li {
  display: flex;
  gap: 0.7rem;
  padding: 0.55rem 0;
  border-bottom: 1px dashed var(--line);
}
.check-list li:last-child { border-bottom: 0; }
.check-list li::before {
  content: "\2713";
  flex-shrink: 0;
  width: 22px; height: 22px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(232, 182, 76, 0.18);
  color: var(--gold);
  font-weight: 700;
  font-size: 0.75rem;
}

/* Values */
.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.2rem;
  margin-top: 1.5rem;
}
.value-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease);
}
.value-card:hover { transform: translateY(-4px); border-color: var(--gold-text); }
.value-num {
  display: inline-grid;
  place-items: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--gold-text);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 800;
  margin-bottom: 1rem;
}
.value-card h3 { color: var(--ink); font-size: 1.1rem; margin-bottom: 0.5rem; }
.value-card p { font-size: 0.92rem; color: var(--muted); }

/* ---------- Services ---------- */
.services-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 1.5rem;
}
.service {
  background: var(--surface-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.service:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.service-head { display: flex; align-items: center; gap: 0.9rem; margin-bottom: 1rem; }
.service-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--gold);
  background: var(--navy-900);
  padding: 0.45rem 0.75rem;
  border-radius: var(--radius-sm);
}
.service h2 { font-size: 1.3rem; }
.service > p { color: var(--muted); font-size: 0.95rem; margin-bottom: 1.2rem; }
.service-items {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem 1rem;
}
.service-items li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.4rem 0;
  border-bottom: 1px dashed var(--line);
}
.service-items li::before {
  content: "";
  width: 7px; height: 7px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--gold);
}
.service-items li:last-child, .service-items li:nth-last-child(2) { border-bottom: 0; }

/* ---------- Why us page ---------- */
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.4rem;
}
.why-card {
  background: var(--surface-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2.2rem;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.why-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.why-card-span { grid-column: 1 / -1; text-align: center; }
.why-icon {
  display: inline-grid;
  place-items: center;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--navy-900);
  color: var(--gold);
  font-weight: 800;
  margin-bottom: 1.1rem;
}
.why-card h2 { font-size: 1.35rem; margin-bottom: 0.7rem; }
.why-card p { color: var(--muted); }

/* ---------- Industries page ---------- */
.industries-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1.1rem;
}
.industry {
  background: var(--surface-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem 1.6rem 1.6rem 1.2rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--navy-800);
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease);
}
.industry:hover { transform: translateY(-4px); border-color: var(--gold); }
.industry span {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.75rem;
  color: var(--gold);
  letter-spacing: 0.1em;
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 4rem;
  align-items: start;
}
.contact-info h2 { font-size: 1.6rem; margin-bottom: 0.8rem; }
.contact-info > p { color: var(--muted); margin-bottom: 2rem; }

.contact-list { display: flex; flex-direction: column; gap: 1rem; }
.contact-list li {
  display: flex;
  gap: 1.2rem;
  padding: 0.9rem 1.1rem;
  background: var(--surface-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}
.ci-label {
  flex-shrink: 0;
  min-width: 84px;
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--blue);
  padding-top: 0.15rem;
}
.ci-value { font-weight: 500; word-break: break-word; }
.ci-value { color: var(--ink); }
a.ci-value:hover { color: var(--blue); }

.contact-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 2rem; }

/* ---------- Quote form ---------- */
.contact-form-wrap {
  position: relative;
  padding: clamp(0.9rem, 2vw, 1.6rem);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 6px);
  background:
    radial-gradient(560px 240px at 0% 0%, rgba(63, 134, 214, 0.10), transparent 60%),
    linear-gradient(180deg, #f2f6fb, var(--surface-alt) 72%);
  box-shadow: var(--shadow-sm);
}
.quote-card {
  position: relative;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2.4rem;
}
.quote-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--blue-soft) 0%, var(--blue) 40%, var(--gold) 100%);
}
.quote-card h2 { font-size: 1.6rem; margin-bottom: 0.6rem; padding-top: 0.25rem; }
.quote-card > p { color: var(--muted); margin-bottom: 1.8rem; }

.quote-form { display: flex; flex-direction: column; gap: 1.1rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.quote-form label {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--navy-800);
}
.quote-form input,
.quote-form select,
.quote-form textarea {
  padding: 0.8rem 1rem;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface-alt);
  font-weight: 400;
  font-size: 0.95rem;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s;
  width: 100%;
}
.quote-form input:focus,
.quote-form select:focus,
.quote-form textarea:focus {
  outline: none;
  border-color: var(--blue);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(63, 134, 214, 0.15);
}
.quote-form textarea { resize: vertical; min-height: 96px; }
.quote-form .btn { margin-top: 0.4rem; }
.quote-form label .req {
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  padding: 0.28em 0.7em;
  border-radius: 999px;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  line-height: 1;
  color: #9a3434;
  background: rgba(214, 69, 69, 0.09);
  border: 1px solid rgba(214, 69, 69, 0.3);
  vertical-align: middle;
}
.quote-form label .req::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #d64545;
}
.form-legend {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: -0.2rem;
}

/* Required chip shown inside the field */
.input-wrap { position: relative; display: block; }
.quote-form .input-wrap input { padding-right: 5.6rem; }
.req-chip {
  position: absolute;
  top: 50%;
  right: 0.75rem;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  padding: 0.28em 0.7em;
  border-radius: 999px;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  line-height: 1;
  color: #9a3434;
  background: rgba(214, 69, 69, 0.09);
  border: 1px solid rgba(214, 69, 69, 0.3);
  pointer-events: none;
}
.req-chip::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #d64545;
}
.form-note { font-size: 0.8rem; color: var(--muted); text-align: center; }
.form-noscript {
  border: 1px dashed var(--line);
  background: var(--surface-alt);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
}
.form-noscript a { color: var(--blue); text-decoration: underline; }

.field-error {
  display: none;
  align-items: center;
  gap: 0.4em;
  font-size: 0.78rem;
  font-weight: 600;
  color: #a03939;
  margin-top: -0.2rem;
}
.field-error::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #d64545;
  flex-shrink: 0;
}

.form-error input,
.form-error textarea,
.form-error select {
  border-color: #d64545;
  background: #fffafa;
  box-shadow: 0 0 0 4px rgba(214, 69, 69, 0.1);
}
.form-error input:focus,
.form-error textarea:focus,
.form-error select:focus {
  box-shadow: 0 0 0 4px rgba(214, 69, 69, 0.16);
}
.form-error .field-error { display: flex; }

.form-status {
  padding: 0.75em 1em;
  border-radius: var(--radius-sm);
  background: #eaf2fb;
  border: 1px solid #bcd6ee;
  color: var(--navy-800);
  font-size: 0.9rem;
}
.form-status.is-error {
  background: #fbebec;
  border-color: #e5b4b6;
  color: #a03939;
}

/* Honeypot field: hidden from humans and from visual checkers, but
   invisible only to naive bots that autofill every input. */
.hp-field {
  position: absolute;
  left: -9999px;
  top: -9999px;
  height: 0;
  overflow: hidden;
}

.form-success {
  text-align: center;
  padding: 2.5rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.7rem;
}
.form-success .btn { margin-top: 0.8rem; }
.success-icon {
  width: 64px; height: 64px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 1.6rem;
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--blue-soft));
  box-shadow: 0 12px 26px -12px rgba(63, 134, 214, 0.7);
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--surface-alt);
  color: var(--muted);
  border-top: 1px solid var(--line);
  padding-block: 4rem 1.6rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.9fr 1fr;
  gap: 3rem;
  padding-bottom: 2.8rem;
  border-bottom: 1px solid var(--line);
}
.brand-footer { color: var(--ink); margin-bottom: 1.1rem; }
.footer-brand p { font-size: 0.92rem; max-width: 300px; color: var(--muted); }
.footer-col h3 {
  color: var(--ink);
  font-size: 1rem;
  margin-bottom: 1rem;
  letter-spacing: 0.05em;
}
.footer-col ul { display: flex; flex-direction: column; gap: 0.6rem; }
.footer-col a, .footer-col li { font-size: 0.92rem; }
.footer-col a { color: var(--ink-soft); transition: color 0.2s var(--ease), padding-left 0.2s var(--ease); }
.footer-col a:hover { color: var(--gold-text); padding-left: 4px; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding-top: 1.6rem;
  font-size: 0.85rem;
  color: var(--muted);
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js [data-reveal] { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .teaser-grid, .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .snapshot { margin-top: -3rem; }
}

@media (max-width: 780px) {
  :root { --header-h: 76px; }
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: flex; }
  .form-row { grid-template-columns: 1fr; }
  .hero { padding-block: calc(var(--header-h) + 2.5rem) 3.5rem; text-align: left; }
  .hero-img, .page-hero .hero-img { opacity: 0.7; }
  .hero .hero-overlay, .page-hero .hero-overlay {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.68) 40%, rgba(255, 255, 255, 0.46) 100%);
  }
  .hero-actions { }
  .hero-tagline { position: static; transform: none; margin-top: 3rem; text-align: center; }
  .service-items { grid-template-columns: 1fr; }
  .service-items li:nth-last-child(2) { border-bottom: 1px dashed var(--line); }
  .section { padding-block: 3.5rem; }
  .page-hero { padding-block: calc(var(--header-h) + 3.5rem) 2.8rem; }
  .why-card-span { grid-column: auto; text-align: left; }
  .quote-card { padding: 1.8rem; }
}

@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; gap: 1.6rem; }
  .snapshot-grid { grid-template-columns: 1fr; }
  .hero-points { flex-direction: column; align-items: flex-start; }
  .contact-actions, .hero-actions { flex-direction: column; }
  .contact-actions .btn, .hero-actions .btn { width: 100%; }
  .footer-bottom { flex-direction: column; }
}