﻿@import url("https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700&family=Manrope:wght@500;600;700;800&display=swap");

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--color-ink);
  background: var(--color-white);
  text-rendering: optimizeLegibility;
}

.text-muted { color: var(--color-muted-strong); }
.text-on-dark-muted { color: var(--color-text-on-dark-muted); }

/* Global section surfaces (used across Home / Services / Products) */
.section {
  padding-block: var(--space-section);
  padding-inline: var(--container-pad);
}

.section--paper {
  background: var(--color-paper);
  color: var(--color-ink);
}

.section--paper2 {
  background: var(--color-paper-muted);
  color: var(--color-ink);
}

.section--yellow {
  background: var(--color-yellow);
  color: var(--color-ink);
}

.section--dark {
  background: #0a1236;
  color: var(--color-white);
}

.section--black {
  background: #080b18;
  color: var(--color-white);
}

.section--dark .product-lead,
.section--black .product-lead,
.section--dark .service-lead,
.section--black .service-lead {
  color: var(--color-text-on-dark-muted);
}

.section--paper .product-lead,
.section--paper2 .product-lead,
.section--paper .service-lead,
.section--paper2 .service-lead {
  color: var(--color-muted-strong);
}

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

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

:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

.container {
  width: min(var(--container-max), calc(100% - var(--container-pad) * 2));
  margin-inline: auto;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  margin: 0 0 var(--space-4);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(0.8125rem, 1.15vw, 0.9375rem);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-yellow);
  line-height: 1.25;
}

.kicker::before {
  content: "";
  flex: 0 0 clamp(2rem, 4vw, 2.75rem);
  height: 2px;
  background: currentColor;
  opacity: 0.9;
}

.kicker--dark {
  color: var(--color-yellow);
}

/* Yellow band: labels and accents switch to navy for contrast */
.section--yellow .kicker,
.section--yellow .kicker--dark {
  color: var(--color-navy);
}

.section--yellow .kicker::before {
  background: var(--color-navy);
  opacity: 1;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0 1.125rem;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 0.875rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform var(--motion-fast), box-shadow var(--motion-fast);
}

.btn--primary {
  background: var(--color-yellow);
  color: var(--color-ink);
}

.btn--secondary {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.25);
  color: var(--color-white);
}

.btn--ghost {
  background: transparent;
  border-color: var(--color-line);
  color: var(--color-navy);
}

/* Dark surfaces: ghost/secondary must stay light */
.page-home .home-hero .btn--ghost,
.page-home .assembly-phase .btn--ghost,
.page-home .assembly-foot a,
.page-home .section--dark .btn--ghost,
.page-home .section--black .btn--ghost,
.page-home .ecos-copy .btn--ghost,
.page-home .digilab-copy .btn--ghost,
.page-home .recard-product:not(.review) .btn--ghost,
.page-home .final-cta .btn--ghost {
  border-color: rgba(255, 255, 255, 0.32);
  color: #fff;
}

/* Light cards: secondary = navy outline */
.path-card .btn--secondary,
.section--paper .btn--secondary,
.section--paper2 .btn--secondary,
.checkpoint-section .btn--secondary {
  border-color: rgba(16, 20, 42, 0.22);
  color: var(--color-navy);
}

/* Yellow band: primary becomes navy for contrast */
.section--yellow .btn--primary {
  background: var(--color-navy);
  color: #fff;
}

.btn:hover { transform: translateY(-1px); }

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 10000;
  padding: 0.75rem 1rem;
  background: #0b1645;
  color: #fff;
  text-decoration: none;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}
