/* ============================================================
   NEXORA LOGISTICS — BASE
   Reset, design tokens, typography, layout utilities, buttons,
   scroll-reveal animation primitives.
   ============================================================ */

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

:root {
  /* Surfaces */
  --bg: #ffffff;
  --bg-soft: #f6f8fb;
  --bg-elevated: #eef1f6;
  --card: #ffffff;
  --card-hover: #fbfcfe;
  --card-border: #e3e8f0;
  --line: #e7ebf1;

  /* Text */
  --text: #101a2c;
  --text-soft: #364357;
  --muted: #5c6b80;
  --muted-2: #8794a6;

  /* Brand */
  --navy: #0b2043;
  --navy-2: #14315e;
  --primary: #0b2043;
  --primary-dark: #081733;
  --primary-soft: rgba(11, 32, 67, 0.06);
  --blue: #2f5fd6;
  --blue-soft: rgba(47, 95, 214, 0.08);
  --accent: #e2600f;
  --accent-dark: #c44f09;
  --accent-soft: rgba(226, 96, 15, 0.1);
  --white: #ffffff;

  /* Shape / elevation */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-pill: 100px;
  --shadow-sm: 0 2px 10px rgba(14, 27, 51, 0.05);
  --shadow-md: 0 14px 34px rgba(14, 27, 51, 0.08);
  --shadow-lg: 0 26px 60px rgba(14, 27, 51, 0.12);

  /* Motion */
  --ease: cubic-bezier(0.16, 0.8, 0.24, 1);
  --dur-fast: 0.2s;
  --dur-med: 0.4s;

  /* Layout */
  --container: 1320px;
  --header-h: 78px;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

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

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

.section-alt {
  background: var(--bg-soft);
}

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

img,
svg {
  display: block;
  max-width: 100%;
}

button,
input,
select {
  font-family: inherit;
  color: inherit;
}

button {
  background: none;
  border: none;
  cursor: pointer;
}

ul {
  list-style: none;
}

h1,
h2,
h3,
h4 {
  font-weight: 800;
  letter-spacing: -0.02em;
}

.container {
  width: min(var(--container), calc(100% - 64px));
  margin: auto;
}

.container-wide {
  width: min(1320px, calc(100% - 64px));
  margin: auto;
}

section {
  padding: 100px 0;
}

.section-head {
  max-width: 670px;
  margin-bottom: 50px;
}

.section-head.center {
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-head small {
  color: var(--accent);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  font-size: 12px;
}

.section-head h2 {
  font-size: clamp(32px, 4vw, 48px);
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin: 12px 0 16px;
}

.section-head p {
  color: var(--muted);
  font-size: 16px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 22px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: transform var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease),
    border-color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent);
  color: var(--white);
}

.btn-primary:hover {
  transform: translateY(-2px);
  background: var(--accent-dark);
  box-shadow: 0 12px 26px rgba(226, 96, 15, 0.25);
}

.btn-outline {
  color: var(--navy);
  border-color: rgba(11, 32, 67, 0.18);
  background: transparent;
}

.btn-outline:hover {
  transform: translateY(-2px);
  border-color: var(--navy);
  background: rgba(11, 32, 67, 0.04);
}

.btn-outline-light {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.06);
}

.btn-outline-light:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.12);
}

.btn-block {
  width: 100%;
}

.btn-sm {
  min-height: 38px;
  padding: 0 16px;
  font-size: 13px;
}

/* Scroll reveal */
[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

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

[data-reveal-group] > * {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

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

[data-reveal-group].is-visible > *:nth-child(1) { transition-delay: 0.03s; }
[data-reveal-group].is-visible > *:nth-child(2) { transition-delay: 0.09s; }
[data-reveal-group].is-visible > *:nth-child(3) { transition-delay: 0.15s; }
[data-reveal-group].is-visible > *:nth-child(4) { transition-delay: 0.21s; }
[data-reveal-group].is-visible > *:nth-child(5) { transition-delay: 0.27s; }
[data-reveal-group].is-visible > *:nth-child(6) { transition-delay: 0.33s; }

.is-hidden {
  display: none !important;
}

.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: 16px;
  top: -60px;
  background: var(--navy);
  color: var(--white);
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 13px;
  z-index: 2000;
  transition: top var(--dur-fast) var(--ease);
}

.skip-link:focus {
  top: 12px;
}
