/* =========================================================
   NINSON GENERAL TRADING LTD — Design Tokens & Base Styles
   ========================================================= */

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

:root {
  /* --- Brand palette, sampled from the Ninson logo & marketing set --- */
  --lime: #8cae33; /* logo wing, start of gradient */
  --leaf: #5c8a3c; /* mid-gradient green */
  --teal: #3e5f6e; /* logo wing, end of gradient */
  --navy: #0b2038; /* deep navy — footers, overlays */
  --navy-2: #123058; /* secondary navy for gradients */
  --navy-ink: #33305f; /* wordmark navy (used sparingly) */
  --blue-accent: #1b3b6f; /* secondary accent, UPS/tech icons */

  --bg: #f7f9fa; /* page background */
  --bg-alt: #eef2ed; /* soft green-tinted section band */
  --surface: #ffffff;
  --ink: #12202c; /* body copy */
  --muted: #5b6b78; /* secondary copy */
  --line: #e2e8e4; /* hairline borders */

  --grad-brand: linear-gradient(
    115deg,
    var(--lime) 0%,
    var(--leaf) 45%,
    var(--teal) 100%
  );
  --grad-navy: linear-gradient(160deg, var(--navy-2) 0%, var(--navy) 70%);

  --font-display: "Bebas Neue", "Oswald", sans-serif;
  --font-body:
    "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --container: 1200px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;

  --shadow-sm: 0 2px 10px rgba(11, 32, 56, 0.06);
  --shadow-md: 0 12px 32px rgba(11, 32, 56, 0.1);
  --shadow-lg: 0 24px 60px rgba(11, 32, 56, 0.16);

  --ease: cubic-bezier(0.16, 0.84, 0.44, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
@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 {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

html,
body {
  overflow-x: clip;
}

img {
  max-width: 100%;
  display: block;
}
a {
  color: inherit;
  text-decoration: none;
}
ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
button {
  font-family: inherit;
  cursor: pointer;
}
input,
textarea,
select {
  font-family: inherit;
  font-size: 1rem;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  letter-spacing: 0.02em;
  font-weight: 400;
  line-height: 1.05;
  color: var(--navy);
  margin: 0 0 0.4em;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--leaf);
  margin-bottom: 0.9em;
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  background: var(--grad-brand);
  display: inline-block;
  border-radius: 2px;
}

.section {
  padding: 96px 0;
}
.section--tight {
  padding: 64px 0;
}
@media (max-width: 780px) {
  .section {
    padding: 64px 0;
  }
  .section--tight {
    padding: 44px 0;
  }
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
}

.section-head {
  max-width: 640px;
  margin-bottom: 48px;
}
.section-head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
.section-head p {
  color: var(--muted);
  font-size: 1.05rem;
}

/* Focus visibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid var(--leaf);
  outline-offset: 2px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  padding: 15px 30px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  border: 2px solid transparent;
  transition:
    transform 0.25s var(--ease),
    box-shadow 0.25s var(--ease),
    background 0.25s var(--ease),
    color 0.25s var(--ease),
    border-color 0.25s var(--ease);
  white-space: nowrap;
}
.btn--primary {
  background: linear-gradient(135deg, #7b9f36 0%, #6d9639 48%, #5f8a3d 100%);
  background-color: #6d9639;
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn--ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.55);
  color: #fff;
}
.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: #fff;
}

.btn--outline {
  background: transparent;
  border-color: var(--navy);
  color: var(--navy);
}
.btn--outline:hover {
  background: var(--navy);
  color: #fff;
}

.btn--sm {
  padding: 10px 20px;
  font-size: 0.85rem;
}

.btn--icon-only {
  width: 48px;
  min-width: 48px;
  height: 48px;
  padding: 0;
}
.btn--icon-only svg {
  width: 22px;
  height: 22px;
}

/* Reveal-on-scroll utility (JS toggles .is-visible) */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.7s var(--ease),
    transform 0.7s var(--ease);
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* Hexagon accent motif — the recurring brand device across Ninson materials */
.hex-accent {
  position: absolute;
  pointer-events: none;
  opacity: 0.16;
  z-index: 0;
}

/* Skip link */
.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
  background: var(--navy);
  color: #fff;
  padding: 12px 20px;
  border-radius: 0 0 8px 0;
  z-index: 999;
}
.skip-link:focus {
  left: 0;
  top: 0;
}

/* Shared media slot utility */
.media-fill {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
