/* ==========================================================================
   BASE.CSS — the foundation every page loads, and the only stylesheet that is
   shared. Fonts, design tokens, the global reset, the unscoped base components
   (.page/.section/.nav/.hero/.button/.card/.footer/.logo-banner) and the
   language selector, which every site's chrome renders.

   Nothing here may be scoped to a single site. A rule that only one industry
   needs belongs in sites/<industry>.css, which is loaded on its own pages only
   — see site.ts and docs/STRUCTURE.md.
   ========================================================================== */

/* Font imports */
@import url("https://api.fontshare.com/v2/css?f[]=clash-grotesk@500,600,700&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Onest:wght@300;400;500;600;700&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Instrument+Sans:wght@400;500;600&family=Space+Grotesk:wght@400;500;600;700&display=swap");

/* ==========================================================================
   CSS Variables / Design Tokens
   ========================================================================== */

:root {
  /* Canonical brand palette */
  --primary-color: #4978bc;
  --secondary-color: #25b2ed;
  --text-on-primary-color: #ffffff;
  --text-on-secondary-color: #ffffff;
  --deep-black: #000000;
  --midnight-blue: #01092b;
  --base-header: #202832;
  --deep-blue: #1732ba;
  --royal-blue: #004bff;
  --light-grey: #f2f5f9;
  --blue-gradient-end: #5bc4fa;
  --dark-slate: #2f3642;
  --mid-slate: #4b5664;
  --slate: #708094;
  --light-slate: #e7eaef;
  --light-blue: #e1ebff;
  --mint: #1ed3ca;
  --light-gradient-start: #f3f7ff;
  --light-gradient-end: #c1ccff;

  /* Typography */
  --font-display: "Clash Grotesk", "Space Grotesk", "Montserrat", sans-serif;
  --font-body: "Onest", "Instrument Sans", "Montserrat", sans-serif;

  /* Border radius */
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;

  /* Shadows */
  --shadow-soft: 0 25px 60px rgba(9, 20, 36, 0.16);
  --shadow-glow:
    0 0 0 1px rgba(255, 255, 255, 0.06), 0 30px 70px rgba(5, 14, 35, 0.24);

  /* Transitions */
  --transition: 220ms ease;

  /* Default theme colors (can be overridden by sites) */
  --bg: var(--light-grey);
  --bg-alt: var(--light-gradient-start);
  --ink: var(--midnight-blue);
  --ink-soft: rgba(1, 9, 43, 0.72);
  --card: var(--text-on-primary-color);
  --surface: var(--text-on-primary-color);
  --accent: var(--royal-blue);
  --accent-2: var(--mint);
  --accent-3: var(--deep-blue);
  --brand: var(--primary-color);
  --stroke: rgba(1, 9, 43, 0.12);
  --border: rgba(1, 9, 43, 0.12);
  --muted: rgba(1, 9, 43, 0.72);
  --hero-gradient:
    radial-gradient(
    circle at 20% 20%,
    var(--light-gradient-end),
    transparent 55%
  ), radial-gradient(circle at 70% 10%, var(--light-blue), transparent 45%),
    radial-gradient(circle at 80% 70%, var(--mint), transparent 45%);

  /* Spacing scale */
  --s1: 4px;
  --s2: 8px;
  --s3: 12px;
  --s4: 16px;
  --s5: 24px;
  --s6: 32px;
  --s7: 48px;
  --s8: 64px;

  /* Container */
  --container: 1200px;
}

/* ==========================================================================
   Reset
   ========================================================================== */

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

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  min-height: 100vh;
  line-height: 1.6;
  letter-spacing: 0.01em;
}

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

/* ==========================================================================
   Layout Primitives
   ========================================================================== */

.page {
  background: var(--bg);
  min-height: 100vh;
}

.section {
  padding: 80px 6vw;
  background: var(--bg);
}

.section:nth-of-type(even) {
  background: var(--bg-alt);
}

.section__heading {
  max-width: 640px;
  margin-bottom: 40px;
}

.section h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3vw, 3rem);
  margin-bottom: 16px;
}

.section p {
  color: var(--ink-soft);
}

.section--split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
  align-items: center;
}

.section--mobile {
  min-height: 560px;
}

/* ==========================================================================
   Shared Components
   ========================================================================== */

/* Navigation */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 6vw;
  gap: 24px;
  height: 64px;
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: 16px;
}

.logo {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: var(--accent);
  color: var(--text-on-primary-color);
  font-family: var(--font-display);
  font-weight: 700;
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-soft);
}

.logo:has(.logo__image) {
  background: transparent;
  box-shadow: none;
}

.logo__image {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.logo--small {
  width: 40px;
  height: 40px;
  border-radius: 8px;
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-family: var(--font-display);
}

.brand-title {
  font-weight: 600;
  letter-spacing: 0.02em;
}

.brand-subtitle {
  font-size: 0.82rem;
  color: var(--ink-soft);
}

.nav__links {
  display: flex;
  gap: 18px;
  align-items: center;
  flex-wrap: wrap;
}

.nav__link {
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: var(--ink-soft);
  transition: color var(--transition);
}

.nav__link:hover {
  color: var(--ink);
}

.nav__link--cta {
  border-radius: 999px;
  background: var(--accent);
  color: var(--text-on-primary-color);
  font-weight: 600;
}

/* Hero */
.hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 50px;
  padding: 80px 6vw 40px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--hero-gradient);
  opacity: 0.4;
  z-index: 0;
  pointer-events: none;
}

.hero__content,
.hero__visual,
.hero__media {
  position: relative;
  z-index: 1;
}

.eyebrow {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.74rem;
  color: var(--accent-2);
  margin-bottom: 18px;
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 4vw, 4.1rem);
  line-height: 1.05;
  margin-bottom: 20px;
}

.hero__lead {
  font-size: 1.05rem;
  color: var(--ink-soft);
  margin-bottom: 28px;
  max-width: 560px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 28px;
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero__visual {
  display: grid;
  place-items: center;
  position: relative;
}

/* Buttons */
.button {
  padding: 12px 22px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: transform var(--transition), box-shadow var(--transition);
}

.button--primary {
  background: var(--brand);
  color: var(--text-on-primary-color);
  box-shadow: var(--shadow-soft);
}

.button--ghost {
  border: 1px solid var(--stroke);
  color: var(--ink);
  background: transparent;
}

.button:hover {
  transform: translateY(-2px);
}

/* Cards */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.card {
  padding: 22px;
  border-radius: var(--radius-md);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
}

.card__icon {
  font-family: var(--font-display);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: 12px;
}

.card h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin-bottom: 10px;
}

/* Meta cards */
.meta-card {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  background: color-mix(in srgb, var(--card) 80%, transparent);
  font-family: var(--font-display);
  font-size: 0.88rem;
}

.meta-card svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

/* Image placeholders */
.image-placeholder {
  width: min(520px, 100%);
  height: 580px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--stroke);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.15), transparent),
    color-mix(in srgb, var(--card) 80%, transparent);
  display: grid;
  place-items: center;
  text-align: center;
  font-family: var(--font-display);
  color: var(--ink-soft);
  box-shadow: var(--shadow-glow);
}

.image-placeholder--small {
  width: 220px;
  height: 170px;
  border-radius: var(--radius-md);
}

/* Footer */
.footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 48px;
  padding: 64px 6vw 48px;
  border-top: 1px solid var(--stroke);
  background: var(--bg-alt);
}

.footer__left {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 320px;
}

.footer__logo {
  height: 36px;
  width: auto;
  object-fit: contain;
}

/* The way back up to the coride landing page, carried by every industry page's
   footer. A hairline pill in the .meta-card idiom: visible enough to be found,
   quiet enough to sit under the wordmark without competing with it. */
.footer__hub {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid var(--stroke);
  border-radius: 999px;
  background: color-mix(in srgb, var(--card) 70%, transparent);
  color: var(--ink-soft);
  font-family: var(--font-display);
  font-size: 13px;
  line-height: 1;
  text-decoration: none;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.footer__hub:hover {
  color: var(--brand);
  border-color: color-mix(in srgb, var(--brand) 40%, var(--stroke));
  background: var(--card);
}

.footer__hub svg {
  width: 15px;
  height: 15px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.2s ease;
}

.footer__hub:hover svg {
  transform: translateX(-2px);
}

.footer__social {
  display: flex;
  gap: 12px;
}

.footer__social a {
  color: var(--ink-soft);
  transition: color 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer__social a:hover {
  color: var(--brand);
}

.footer__tagline {
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.5;
  margin: 0;
}

.footer__copyright {
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.6;
  margin: 0;
}

.footer__legal {
  display: flex;
  gap: 16px;
  font-size: 13px;
}

.footer__legal a {
  color: var(--ink-soft);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer__legal a:hover {
  color: var(--brand);
}

.footer__right {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer__right h4 {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  font-family: var(--font-display);
}

.footer__nav {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer__nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s ease;
  font-family: var(--font-display);
}

.footer__nav a:hover {
  color: var(--brand);
}

@media (max-width: 768px) {
  .footer {
    flex-direction: column;
    gap: 40px;
  }

  .footer__left,
  .footer__right {
    max-width: 100%;
  }
}

/* ==========================================================================
   Logo Banner
   ========================================================================== */

.logo-banner {
  padding: var(--s8) var(--s5);
  background: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(8px);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.logo-banner__container {
  max-width: var(--container);
  margin: 0 auto;
}

.logo-banner__title {
  font-family: var(--font-display);
  font-size: clamp(14px, 3vw, 18px);
  font-weight: 600;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: var(--s5);
  text-align: center;
}

.logo-banner__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: var(--s6);
  align-items: center;
  justify-items: center;
}

.logo-banner__item {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--s4);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0);
  border: 1px solid rgba(255, 255, 255, 0);
  transition: all var(--transition);
  cursor: pointer;
  opacity: 0.75;
  transform: translateY(0);
  min-height: 100px;
}

.logo-banner__item:hover {
  opacity: 1;
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.8);
  border-color: rgba(255, 255, 255, 0.9);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
}

.logo-banner__image {
  max-width: 100%;
  max-height: 60px;
  object-fit: contain;
  filter: grayscale(100%);
  transition: filter var(--transition);
}

.logo-banner__item:hover .logo-banner__image {
  filter: grayscale(0%);
}

/* Sliding Logo Banner Variant */
.logo-banner--slide {
  padding: var(--s8) var(--s5);
}

.logo-banner__slider {
  overflow: hidden;
  position: relative;
  mask-image: linear-gradient(
    to right,
    transparent,
    black 10%,
    black 90%,
    transparent
  );
}

.logo-banner__track {
  display: flex;
  gap: var(--s6);
  width: max-content;
  animation: slideLogos 25s linear infinite;
}

@keyframes slideLogos {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(calc(-50% - var(--s6) / 2));
  }
}

.logo-banner--slide .logo-banner__item {
  flex-shrink: 0;
  width: 140px;
  /* padding: var(--s4); */
  border-radius: var(--radius-md);
  /* background: rgba(255, 255, 255, 0.5); */
  /* border: 1px solid var(--border); */
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100px;
  transition: all var(--transition);
  cursor: pointer;
  opacity: 0.85;
}

.logo-banner--slide .logo-banner__item:hover {
  opacity: 1;
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
}

.logo-banner--slide .logo-banner__image {
  max-width: 100%;
  max-height: 70px;
  object-fit: contain;
  filter: grayscale(100%);
  transition: filter var(--transition);
}

.logo-banner--slide .logo-banner__item:hover .logo-banner__image {
  filter: grayscale(0%);
}

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

@media (max-width: 900px) {
  .nav {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero {
    padding-top: 60px;
  }
}

@media (max-width: 640px) {
  .nav__links {
    gap: 10px;
  }

  .nav__link--cta {
    width: 100%;
    text-align: center;
  }

  .hero {
    padding: 60px 6vw 20px;
  }

  .hero__meta {
    gap: 8px;
  }
}

/* ── Language Selector ──────────────────────────────────────── */
.lang-selector {
  display: inline-flex;
  align-items: center;
}
.lang-selector__select {
  min-height: 42px;
  min-width: 74px;
  padding: 0 30px 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(1, 9, 43, 0.18);
  background: var(--text-on-primary-color);
  color: var(--midnight-blue);
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.lang-selector__select:hover {
  border-color: rgba(1, 9, 43, 0.34);
  box-shadow: 0 10px 24px rgba(1, 9, 43, 0.1);
}

.lang-selector__select:focus-visible {
  outline: 2px solid rgba(1, 9, 43, 0.28);
  outline-offset: 2px;
}
