/* ============================================================
   Sigma Sourcing — Modern design system (foundation)
   Light theme. Shared by the modernized pages via _ModernLayout.
   Page-specific styles live in their own files (e.g. home.css).
   ============================================================ */

:root {
  --orange:       #F07328;
  --orange-deep:  #E25F12;
  --orange-light: #FF9C55;
  --orange-dim:   rgba(240,115,40,0.10);
  --orange-border:rgba(240,115,40,0.28);

  --ink:        #11182A;
  --text:       #0B1220;
  --text-sub:   #5B6676;
  --text-muted: #94A0B0;

  --bg:        #FFFFFF;
  --bg-soft:   #F7F8FA;
  --border:    rgba(15,23,42,0.10);
  --border2:   rgba(15,23,42,0.06);

  --maxw: 1320px;
  --pad:  48px;

  --radius: 12px;
  --shadow-card: 0 1px 2px rgba(15,23,42,0.04), 0 10px 30px rgba(15,23,42,0.05);

  --green:    #1B8751;
  --green-bg: #E6FAF0;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

/* layout helper */
.mw { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--pad); }

/* ─── Buttons ─────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 15px; font-weight: 600; line-height: 1;
  padding: 13px 24px; border-radius: 9px; border: 1px solid transparent;
  cursor: pointer; transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-sm { padding: 10px 18px; font-size: 14px; }
.btn .arr { font-size: 1.05em; }

.btn-orange { background: var(--orange); color: #fff; box-shadow: 0 6px 20px rgba(240,115,40,0.30); }
.btn-orange:hover { background: var(--orange-deep); box-shadow: 0 10px 26px rgba(240,115,40,0.38); }

.btn-dark { background: #343434; color: #fff; box-shadow: 0 8px 22px rgba(0,0,0,0.20); }
.btn-dark:hover { background: #282828; }

.btn-ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--text-sub); }

/* ghost button on dark/orange backgrounds */
.btn-ghost-light { background: transparent; color: #fff; border-color: rgba(255,255,255,0.55); }
.btn-ghost-light:hover { background: rgba(255,255,255,0.10); }

.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 14px; color: var(--orange); }
.link-arrow:hover { gap: 9px; }

/* ─── Section primitives ──────────────────────────────── */
.section { padding: 88px 0; }
.eyebrow {
  font-size: 12.5px; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--orange);
}
.section-title { font-size: 38px; font-weight: 800; letter-spacing: -0.025em; line-height: 1.12; color: var(--ink); }
.section-sub { font-size: 17px; line-height: 1.65; color: var(--text-sub); }

/* ─── Top navigation ──────────────────────────────────── */
.site-nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.92);
  backdrop-filter: saturate(160%) blur(8px);
  border-bottom: 1px solid var(--border);
}
.site-nav-inner { display: flex; align-items: center; gap: 0; height: 74px; }

.brand { display: inline-flex; align-items: center; }
.brand-logo { height: 42px; width: auto; }

.nav-links { display: flex; align-items: center; gap: 32px; margin-inline: auto; }
.nav-links a { font-size: 14.5px; font-weight: 500; color: var(--text-sub); }
.nav-links a:hover { color: var(--ink); }
.nav-links a.active { color: var(--ink); font-weight: 600; }

.nav-right { display: flex; align-items: center; gap: 22px; }
.nav-designers { font-size: 13.5px; font-weight: 600; color: var(--orange); }

/* hamburger (mobile only) */
.nav-toggle { display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 42px; height: 42px; padding: 0 9px; flex-shrink: 0;
  background: transparent; border: 1px solid var(--border); border-radius: 10px; cursor: pointer; }
.nav-toggle span { display: block; height: 2px; width: 100%; background: var(--ink); border-radius: 2px; transition: transform .2s, opacity .2s; }
.site-nav.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.site-nav.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.site-nav.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.nav-designers:hover { color: var(--orange-deep); }

/* mobile menu toggle (hidden on desktop) */
.nav-toggle { display: none; }

/* ─── Footer ──────────────────────────────────────────── */
.site-footer { background: var(--bg-soft); border-top: 1px solid var(--border); }
.footer-main {
  display: grid; grid-template-columns: 1.2fr 2.8fr; gap: 56px;
  padding-top: 64px; padding-bottom: 48px;
}
.footer-brand-col .brand { margin-bottom: 18px; }
.footer-brand-col .brand-logo { height: 40px; }
.footer-tagline { font-size: 14px; line-height: 1.6; color: var(--text-sub); max-width: 280px; margin-bottom: 22px; }
.footer-social { display: flex; gap: 12px; }
.footer-social a {
  width: 36px; height: 36px; border-radius: 9px;
  background: #fff; border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center; color: var(--text-sub);
}
.footer-social a:hover { color: var(--orange); border-color: var(--orange-border); }
.footer-social a[aria-label="LinkedIn"]:hover { border-color: rgba(10,102,194,0.45); }
.footer-social svg { width: 17px; height: 17px; }

.footer-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.footer-col h4 {
  font-size: 12px; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase;
  color: var(--orange); margin-bottom: 16px;
}
.footer-col a { display: block; font-size: 13.5px; color: var(--text-sub); padding: 5px 0; }
.footer-col a:hover { color: var(--ink); }

.footer-bottom {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding-top: 22px; padding-bottom: 32px; border-top: 1px solid var(--border);
  font-size: 12.5px; color: var(--text-muted);
}
.footer-legal { display: flex; gap: 22px; }
.footer-legal a:hover { color: var(--ink); }

/* ─── Light responsive (full polish lands in Phase 6) ──── */
@media (max-width: 900px) {
  :root { --pad: 22px; }
  .section { padding: 60px 0; }
  .section-title { font-size: 30px; }
  .nav-designers { display: none; }
  .nav-toggle { display: inline-flex; }
  .site-nav-inner { gap: 14px; }
  .nav-links {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--border);
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.08);
    padding: 6px 0;
  }
  .site-nav.nav-open .nav-links { display: flex; }
  .nav-links a { padding: 13px var(--pad); font-size: 15.5px; border-bottom: 1px solid var(--border); }
  .nav-links a:last-child { border-bottom: none; }
  .footer-main { grid-template-columns: 1fr; gap: 36px; }
  .footer-cols { grid-template-columns: repeat(2, 1fr); }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* ─── Video modal (shared; triggered by [data-video]) ─── */
.video-modal { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; padding: 24px; }
.video-modal[hidden] { display: none; }
.video-modal-backdrop { position: absolute; inset: 0; background: rgba(15, 23, 42, 0.74); backdrop-filter: blur(3px); cursor: pointer; }
.video-modal-box { position: relative; z-index: 1; width: min(960px, 100%); border-radius: 14px; box-shadow: 0 30px 90px rgba(0, 0, 0, 0.5); }
.video-modal-player { display: block; width: 100%; height: auto; max-height: 82vh; background: #000; border-radius: 14px; }
.video-modal-close { position: absolute; top: -16px; right: -16px; width: 40px; height: 40px; border-radius: 50%; border: none; background: #fff; color: var(--ink); font-size: 24px; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35); transition: transform .15s; }
.video-modal-close:hover { transform: scale(1.06); }
@media (max-width: 620px) { .video-modal { padding: 14px; } .video-modal-close { top: 6px; right: 6px; } }

/* ─── Scroll reveal (site-wide) ───
   Elements tagged `.reveal` fade + rise into view as they enter the viewport.
   Motion only runs when the user has not requested reduced motion, and the
   hidden start-state applies only once JS marks <html> with `reveal-ready`, so
   with JS disabled (or reduced motion) all content stays fully visible.
   Only opacity/transform animate (GPU-composited: no layout/paint per frame).
   `--reveal-i` staggers children of a [data-reveal-group] container. */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    transition: opacity .6s ease, transform .6s cubic-bezier(.2, .6, .2, 1);
    transition-delay: calc(var(--reveal-i, 0) * 80ms);
  }
  .reveal-ready .reveal:not(.is-visible) {
    opacity: 0;
    transform: translateY(20px);
  }
}

/* ─── Faint grid texture (subtle dark grid on light hero areas) ───
   Apply class to a section; its direct children sit above the grid. */
.tex-grid { position: relative; }
.tex-grid > * { position: relative; z-index: 1; }
.tex-grid::after {
  content: ''; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(15, 23, 42, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 23, 42, 0.045) 1px, transparent 1px);
  background-size: 58px 58px;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 45%, transparent 96%);
          mask-image: linear-gradient(180deg, #000 0%, #000 45%, transparent 96%);
}

/* ─── Count-up number band (site-wide; JS animates [data-count-to]) ─── */
.num-band { padding: 66px 0; background: var(--bg-soft); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.num-band .num-head { text-align: center; margin-bottom: 40px; }
.num-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 40px 56px; max-width: 1000px; margin: 0 auto; }
.num-item { flex: 0 1 210px; text-align: center; }
.num-val { font-size: 42px; font-weight: 800; letter-spacing: -0.02em; line-height: 1; color: var(--orange); font-variant-numeric: tabular-nums; }
.num-lbl { font-size: 14px; color: var(--text-muted); line-height: 1.45; margin-top: 10px; }
@media (max-width: 700px) { .num-band { padding: 48px 0; } .num-val { font-size: 34px; } .num-grid { gap: 30px 36px; } }
