/* global.css — LiquidPixels shared styles (all pages) */

/* ═══════════════════════════════════════════════════════
   DESIGN TOKENS
   ═══════════════════════════════════════════════════════ */
:root {
  /* Core palette — deep ink + precise warmth */
  --white: #ffffff;
  --off-white: #fafaf8;
  --warm-50: #f5f4f0;
  --warm-100: #eceae3;
  --warm-200: #dddad0;
  --warm-300: #c8c4b6;
  --warm-400: #a8a396;

  --ink-900: #0e0e0c;
  --ink-800: #1c1c19;
  --ink-700: #2e2e2a;
  --ink-600: #46463f;
  --ink-500: #68685e;
  --ink-400: #8c8c80;

  /* Navy — confident authority */
  --navy: #0c1f3d;
  --navy-mid: #102648;
  --navy-light: #163258;
  --navy-accent: #1e4a80;

  /* Signal colors */
  --blue: #1a56db;
  --blue-mid: #2563eb;
  --blue-soft: rgba(26,86,219,.08);
  --blue-border: rgba(26,86,219,.15);

  --teal: #0e7490;
  --teal-soft: rgba(14,116,144,.08);
  --green: #15803d;
  --green-soft: rgba(21,128,61,.08);
  --amber: #b45309;
  --amber-soft: rgba(180,83,9,.08);
  --violet: #6d28d9;
  --violet-soft: rgba(109,40,217,.08);

  /* Typography */
  --f-serif: 'Instrument Serif', Georgia, serif;
  --f-sans:  'DM Sans', system-ui, sans-serif;
  --f-mono:  'JetBrains Mono', 'Courier New', monospace;

  /* Elevation */
  --shadow-xs: 0 1px 2px rgba(14,14,12,.04);
  --shadow-sm: 0 1px 3px rgba(14,14,12,.05), 0 4px 12px rgba(14,14,12,.04);
  --shadow-md: 0 2px 6px rgba(14,14,12,.04), 0 12px 32px rgba(14,14,12,.06);
  --shadow-lg: 0 4px 12px rgba(14,14,12,.05), 0 20px 56px rgba(14,14,12,.08);

  /* Radii */
  --r-sm: 4px;
  --r-md: 8px;
  --r-lg: 12px;
  --r-xl: 16px;
}

/* ═══════════════════════════════════════════════════════
   RESET & BASE
   ═══════════════════════════════════════════════════════ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  background: var(--off-white);
  color: var(--ink-700);
  font-family: var(--f-sans);
  font-size: 15px;
  line-height: 1.6;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { font-family: var(--f-sans); cursor: pointer; }
img { display: block; max-width: 100%; }

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 52px; }

/* Utility: mono label */
.mono-label {
  font-family: var(--f-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
}

/* Reveal on scroll */
.rv {
  opacity: 0;
  transform: translateY(22px);
  will-change: opacity, transform;
  transition: opacity .7s cubic-bezier(.16,1,.3,1), transform .7s cubic-bezier(.16,1,.3,1);
}
.rv.v { opacity: 1; transform: none; will-change: auto; }
.rv.v.d1 { transition-delay: .08s; }
.rv.v.d2 { transition-delay: .16s; }
.rv.v.d3 { transition-delay: .24s; }
.rv.v.d4 { transition-delay: .32s; }

/* ═══════════════════════════════════════════════════════
   NAV
   ═══════════════════════════════════════════════════════ */
header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: 60px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 52px;
  background: rgba(250,250,248,.92);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--warm-200);
  transition: border-color .3s, box-shadow .3s;
}
header.scrolled { border-color: var(--warm-300); box-shadow: 0 1px 14px rgba(14,14,12,.04); }

.logo {
  display: flex; align-items: center;
}
.logo img {
  height: 45px; width: auto; display: block;
}
.logo-mark { display: none; }

.nav-links { display: flex; align-items: center; gap: 2px; list-style: none; }
.nav-links > li { position: relative; }

/* Trigger + plain links share the same style */
.nav-links > li > a,
.nav-trigger {
  font-size: 13px; font-weight: 400; color: var(--ink-500);
  padding: 6px 12px; border-radius: var(--r-sm);
  transition: color .15s, background .15s;
  display: flex; align-items: center; gap: 5px;
  cursor: pointer; background: none; border: none;
  font-family: var(--f-sans); white-space: nowrap;
  letter-spacing: -.005em;
}
.nav-links > li > a:hover,
.nav-trigger:hover,
.nav-links > li:hover .nav-trigger { color: var(--ink-900); background: var(--warm-100); }

.nav-trigger-arrow {
  width: 9px; height: 9px; flex-shrink: 0; color: var(--ink-400);
  transition: transform .2s;
}
.nav-links > li:hover .nav-trigger-arrow { transform: rotate(180deg); }

/* Invisible bridge so mouse can travel from trigger to dropdown */
.nav-links > li::after {
  content: ''; position: absolute;
  top: 100%; left: 0; right: 0; height: 10px;
}

/* Dropdown panel */
.nav-dropdown {
  position: absolute; top: calc(100% + 8px); left: 50%;
  transform: translateX(-50%) translateY(-4px);
  min-width: 210px;
  background: var(--white);
  border: 1px solid var(--warm-200);
  border-radius: 10px;
  box-shadow: 0 12px 40px rgba(14,14,12,.10), 0 2px 6px rgba(14,14,12,.05);
  padding: 4px;
  opacity: 0; pointer-events: none;
  transition: opacity .15s ease, transform .15s ease;
  z-index: 200;
}
.nav-links > li:hover .nav-dropdown {
  opacity: 1; pointer-events: all;
  transform: translateX(-50%) translateY(0);
}

/* Dropdown rows — icon + text side by side */
.nav-dropdown a {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px; border-radius: 7px;
  text-decoration: none;
  transition: background .12s;
}
.nav-dropdown a:hover { background: var(--warm-50); }

.nav-dd-icon {
  width: 30px; height: 30px; border-radius: 7px; flex-shrink: 0;
  background: var(--warm-100);
  display: flex; align-items: center; justify-content: center;
  color: var(--ink-500);
}
.nav-dd-icon svg { width: 14px; height: 14px; }
.nav-dd-text { display: flex; flex-direction: column; gap: 1px; }
.nav-dropdown-label {
  font-size: 13px; font-weight: 500; color: var(--ink-900);
  line-height: 1.2;
}
.nav-dropdown-sub {
  font-size: 11px; font-weight: 300; color: var(--ink-400);
  line-height: 1.3;
}
.nav-dropdown-divider {
  height: 1px; background: var(--warm-100); margin: 3px 4px;
}

.btn-nav {
  font-size: 13px; font-weight: 500;
  padding: 8px 18px; border-radius: var(--r-sm);
  background: var(--navy); color: #fff; border: none;
  transition: background .2s, transform .1s, opacity .3s;
  letter-spacing: -.01em;--amber:#f59e0b;}
.btn-nav:hover { background: var(--navy-mid);--amber:#f59e0b;}
.btn-nav:active { transform: scale(.98); }
.nav-cta-btn { opacity: 0; pointer-events: none; }
.nav-cta-btn.visible { opacity: 1; pointer-events: auto; }

.menu-btn { display: none; background: none; border: none; width: 28px; height: 28px; position: relative; }
.menu-btn span { display: block; width: 16px; height: 1.5px; background: var(--ink-700); position: absolute; left: 6px; transition: transform .2s, opacity .2s; }
.menu-btn span:nth-child(1){top:10px} .menu-btn span:nth-child(2){top:14px} .menu-btn span:nth-child(3){top:18px}

/* ── Mobile nav drawer ── */
.nav-drawer {
  display: none;
  position: fixed; top: 60px; left: 0; right: 0; bottom: 0;
  background: rgba(250,250,248,.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 998;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 24px 20px 40px;
  flex-direction: column;
}
.nav-drawer.open { display: flex; }
.nav-drawer-section { margin-bottom: 8px; }
.nav-drawer-trigger {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; padding: 13px 0;
  font-family: var(--f-sans); font-size: 15px; font-weight: 500; color: var(--ink-900);
  background: none; border: none; border-bottom: 1px solid var(--warm-200);
  cursor: pointer; text-align: left;
}
.nav-drawer-trigger svg { width: 14px; height: 14px; stroke: var(--ink-400); transition: transform .2s; flex-shrink: 0; }
.nav-drawer-trigger.open svg { transform: rotate(180deg); }
.nav-drawer-subnav {
  display: none;
  flex-direction: column;
  padding: 8px 0 4px 12px;
  border-left: 2px solid var(--warm-200);
  margin: 6px 0 4px;
}
.nav-drawer-subnav.open { display: flex; }
.nav-drawer-subnav a {
  font-family: var(--f-sans); font-size: 13.5px; font-weight: 400;
  color: var(--ink-600); padding: 9px 4px;
  border-bottom: 1px solid var(--warm-100);
  text-decoration: none;
}
.nav-drawer-subnav a:last-child { border-bottom: none; }
.nav-drawer-link {
  display: block; padding: 13px 0;
  font-family: var(--f-sans); font-size: 15px; font-weight: 500; color: var(--ink-900);
  border-bottom: 1px solid var(--warm-200); text-decoration: none;
}
.nav-drawer-cta {
  margin-top: 24px;
  display: flex; flex-direction: column; gap: 10px;
}
.nav-drawer-cta .btn-primary, .nav-drawer-cta .btn-secondary {
  width: 100%; text-align: center; justify-content: center;
}

/* ═══════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════ */
footer {
  background: var(--white);
  border-top: 1px solid var(--warm-200);
  padding: 52px 0 28px;
}

/* 25Y anniversary badge */
.badge-25y { display: block; margin-top: 18px; }
.badge-25y img { display: block; width: 60px; height: 60px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr repeat(4,1fr); gap: 28px; margin-bottom: 36px; }
.footer-brand p { font-size: 13px; font-weight: 300; color: var(--ink-400); line-height: 1.6; max-width: 220px; margin-top: 10px; }
.footer-col h5 { font-family: var(--f-mono); font-size: 9px; font-weight: 500; letter-spacing: .13em; text-transform: uppercase; color: var(--ink-400); margin-bottom: 12px; }
.footer-col a { display: block; font-size: 13px; font-weight: 300; color: var(--ink-500); padding: 3px 0; transition: color .18s; }
.footer-col a:hover { color: var(--ink-900); }
.footer-bottom { border-top: 1px solid var(--warm-100); padding-top: 18px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; }
.footer-bottom p { font-size: 11.5px; color: var(--ink-400); font-weight: 300; }
.footer-misc { display: flex; gap: 20px; }
.footer-misc a { font-size: 11.5px; font-weight: 300; color: var(--ink-400); transition: color .18s; }
.footer-misc a:hover { color: var(--ink-700); }

/* ═══════════════════════════════════════════════════════


/* ═══════════════════════════════════════════════════════
   HIGH CONTRAST — shared across all pages
   ═══════════════════════════════════════════════════════ */
/* HIGH CONTRAST TOGGLE — removed, to be reimplemented */

body.hc {
  --white: #ffffff;
  --off-white: #f0efe9;
  --warm-50: #eceae2;
  --warm-100: #d8d5cb;
  --warm-200: #b8b4a6;
  --ink-900: #000000;
  --ink-800: #0a0a08;
  --ink-700: #1a1a16;
  --ink-600: #2c2c26;
  --ink-500: #3e3e38;
  --ink-400: #585850;
  /* --navy intentionally NOT overridden — buttons/tabs use it and must stay readable */
}

/* ═══════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .panel-cols, .eco-header { grid-template-columns: 1fr; gap: 40px; }
  .eco-row { grid-template-columns: 1fr; }
  .eco-row-text { padding: 32px 36px; }
  .eco-visual { min-height: 180px; border-left: none; border-top: 1px solid rgba(255,255,255,.07); }
  .arch-grid { grid-template-columns: 1fr 1fr; }
  .ps-top { grid-template-columns: 1fr; }
  .ps-track { grid-template-columns: 200px 1fr; }
  .footer-grid { grid-template-columns: repeat(2,1fr); }

  /* Depth: 3-col → 2-col at tablet */
  .depth-grid { grid-template-columns: 1fr 1fr; }
  .depth-section { padding: 80px 0; }

  /* TCO: stays 2-col but tighter */
  .tco-section { padding: 80px 0; }
  .tco-grid { gap: 16px; }
  .tco-card-body { padding: 28px 28px 40px; }

  /* Statement: column earlier on narrower screens */
  .statement { gap: 48px; padding: 72px 52px; }
  .stmt-orbit { width: min(440px, 44vw); height: min(440px, 44vw); }
}



/* rules merged into primary

@media (max-width: 768px) {
  header { padding-left: 20px; padding-right: 20px; }
  .nav-links { display: none; }
  .menu-btn { display: block; }
  .wrap { padding: 0 20px; }

  /* Cap rail: horizontal scroll */
  .stats-bar { overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .stats-bar::-webkit-scrollbar { display: none; }
  .cap-rail { flex-wrap: nowrap; width: max-content; min-width: 100%; }
  .cap-item { flex: 0 0 80px; padding: 18px 8px; border-right: 1px solid rgba(255,255,255,.1); border-bottom: none; }
  .cap-item:last-child { border-right: none; }
  .cap-label { font-size: 8px; white-space: normal; text-align: center; }

  /* Arch grid */
  .arch-grid { grid-template-columns: 1fr; }

  /* Services layout */
  .services-layout { grid-template-columns: 1fr; height: auto; border-radius: 12px; max-height: none; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr 1fr; }

  /* Section header */
  .section-header { margin-bottom: 32px; }

  /* PS section internals */
  .ps-top { grid-template-columns: 1fr; }
  .ps-top-div { display: block; height: 1px; background: rgba(255,255,255,.08); }
  .ps-track { grid-template-columns: 1fr; }
  .ps-track-label { border-right: none; border-bottom: 1px solid var(--warm-200); padding: 20px 24px; }
  .ps-services { flex-wrap: wrap; }
  .ps-svc { flex: 1 1 calc(50% - 1px); border-bottom: 1px solid var(--warm-100); }
  .ps-svc:nth-child(even) { border-right: none; }
  .ps-svc:nth-last-child(-n+2) { border-bottom: none; }
  .ps-svc:last-child { border-bottom: none; }
  .ps-statement { min-height: 220px; }
  .ps-cred { border-left: none; border-top: 1px solid rgba(255,255,255,.07); flex-direction: row; align-items: baseline; gap: 12px; }
}

@media (max-width: 480px) {
  .wrap { padding: 0 16px; }
  .cap-item { flex: 0 0 72px; padding: 16px 6px; }
  .cap-label { font-size: 7.5px; }
  .footer-grid { grid-template-columns: 1fr; }
  .arch-grid { grid-template-columns: 1fr; }
  .ps-svc { flex: 1 1 100%; border-right: none; }
  .ps-svc:nth-last-child(-n+2) { border-bottom: 1px solid var(--warm-100); }
  .ps-svc:last-child { border-bottom: none; }
  .ps-track-label { padding: 20px 16px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .logo-track { animation: none !important; }
  .rv { opacity: 1 !important; transform: none !important; }
}
