/* ==========================================================================
   OutForce — Design System
   Palette: Ink navy / Paper / Amber / Coral
   Type: Fraunces (display) · Public Sans (body) · IBM Plex Mono (labels)
   ========================================================================== */

:root {
  --ink: #152647;
  --ink-deep: #0E1A33;
  --paper: #F7F8FA;
  --white: #FFFFFF;
  --amber: #F4A340;
  --amber-deep: #E08A1E;
  --coral: #EC6A5E;
  --slate: #51607A;
  --line: #E2E6EE;
  --line-dark: rgba(255, 255, 255, 0.14);

  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Public Sans", -apple-system, Segoe UI, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;

  --radius: 14px;
  --radius-pill: 999px;
  --container: 1160px;
  --shadow: 0 18px 40px -20px rgba(21, 38, 71, 0.25);
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--slate);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; }
a:focus-visible, button:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 3px;
  border-radius: 4px;
}

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

h1, h2, h3 { font-family: var(--font-display); color: var(--ink); font-weight: 600; line-height: 1.12; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.4rem, 5.4vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
h3 { font-size: 1.25rem; line-height: 1.3; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--coral);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}
.eyebrow::before {
  content: "";
  width: 22px; height: 9px;
  border-radius: var(--radius-pill);
  background: var(--amber);
}

.accent-i { font-style: italic; color: var(--amber-deep); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 14px 26px;
  border-radius: var(--radius-pill);
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-amber { background: var(--amber); color: var(--ink-deep); }
.btn-amber:hover { background: var(--amber-deep); }
.btn-ghost { border-color: var(--line); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--ink); }
.btn-ghost-light { border-color: var(--line-dark); color: var(--white); background: transparent; }
.btn-ghost-light:hover { border-color: var(--white); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(247, 248, 250, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 14px 24px;
}
.logo { display: inline-flex; align-items: center; text-decoration: none; flex: none; }
.logo img { height: 34px; width: auto; display: block; }

.main-nav { margin-left: auto; }
.main-nav ul { display: flex; gap: 6px; list-style: none; align-items: center; }
.main-nav a {
  display: inline-block;
  white-space: nowrap;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink);
  padding: 8px 14px;
  border-radius: var(--radius-pill);
}
.main-nav a { transition: background-color 0.15s ease, color 0.15s ease; }
.main-nav a:hover, .main-nav a[aria-current="page"] { background: var(--ink); color: var(--white); }

.has-sub { position: relative; }
.has-sub > a::after { content: " ▾"; font-size: 0.7em; }
.main-nav .sub-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 230px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 8px;
  display: none;
  z-index: 70;
}
/* Invisible bridge so the pointer can cross the 8px gap without closing the menu */
.sub-menu::before {
  content: "";
  position: absolute;
  top: -8px;
  left: 0;
  right: 0;
  height: 8px;
}
.sub-menu li { list-style: none; }
.sub-menu a { display: block; border-radius: 8px; }
@media (hover: hover) {
  .has-sub:hover .sub-menu { display: block; }
}
.has-sub:focus-within .sub-menu,
.has-sub.open .sub-menu { display: block; }

/* Clock chip — signature element */
.clock-chip {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  padding: 8px 16px;
  white-space: nowrap;
}
.clock-chip .tz { display: flex; align-items: center; gap: 6px; }
.clock-chip .tz b { font-weight: 600; color: var(--slate); }
.clock-chip .sep { color: var(--amber-deep); }

.nav-toggle {
  display: none;
  margin-left: auto;
  background: none;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 9px 12px;
  font-size: 1.1rem;
  color: var(--ink);
  cursor: pointer;
}

/* ---------- Hero ---------- */
.hero { padding: 88px 0 72px; position: relative; overflow: hidden; }

/* ---------- Hero backdrops: blueprint grid + soft brand glows ---------- */
.page-hero { position: relative; overflow: hidden; }
.hero::before, .page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56'%3E%3Cpath d='M28 23v10M23 28h10' fill='none' stroke='%23152647' stroke-opacity='.18'/%3E%3C/svg%3E");
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(860px 480px at 78% -10%, #000 30%, transparent 75%);
  mask-image: radial-gradient(860px 480px at 78% -10%, #000 30%, transparent 75%);
}
.hero::after, .page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(640px 320px at 82% -8%, rgba(244, 163, 64, 0.13), transparent 65%),
    radial-gradient(420px 260px at 4% 112%, rgba(236, 106, 94, 0.07), transparent 70%);
}
.hero .container, .page-hero .container { position: relative; z-index: 1; }
.hero-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 56px; align-items: center; }
.hero p.lede { font-size: 1.15rem; margin: 22px 0 32px; max-width: 56ch; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-panel {
  background: var(--ink);
  color: var(--white);
  border-radius: 22px;
  padding: 34px;
  box-shadow: var(--shadow);
}
.hero-panel h3 { color: var(--white); font-size: 1.05rem; margin-bottom: 18px; font-family: var(--font-mono); font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; }
.bridge-clocks { display: grid; gap: 18px; }
.bridge-clocks .row { display: flex; justify-content: space-between; align-items: baseline; border-bottom: 1px solid var(--line-dark); padding-bottom: 14px; }
.bridge-clocks .row:last-child { border-bottom: 0; padding-bottom: 0; }
.bridge-clocks .city { font-weight: 700; }
.bridge-clocks .city small { display: block; font-weight: 400; color: rgba(255,255,255,0.65); font-size: 0.8rem; }
.bridge-clocks .time { font-family: var(--font-mono); font-size: 1.7rem; color: var(--amber); }
.hero-panel .note { margin-top: 20px; font-size: 0.9rem; color: rgba(255,255,255,0.7); }

/* ---------- Sections ---------- */
.section { padding: 84px 0; }
.section-dark { background: var(--ink); }
.section-dark h2, .section-dark h3 { color: var(--white); }
.section-dark p { color: rgba(255, 255, 255, 0.78); }
.section-head { max-width: 720px; margin-bottom: 48px; }
.section-head p { margin-top: 14px; }

/* Stats */
.stat-band { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stat { border-top: 3px solid var(--amber); padding-top: 18px; }
.stat .num { font-family: var(--font-display); font-size: 2.4rem; font-weight: 600; color: var(--ink); }
.section-dark .stat .num { color: var(--white); }
.stat .lbl { font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; }

/* Cards */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 22px; }
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
a.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card .pill-ico {
  width: 38px; height: 16px;
  border-radius: var(--radius-pill);
  background: var(--amber);
  position: relative;
}
.card .pill-ico::after {
  content: "";
  position: absolute;
  left: 0; top: 22px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--coral);
}
.card .pill-ico { margin-bottom: 18px; }
.card .more { margin-top: auto; font-weight: 700; color: var(--amber-deep); font-size: 0.92rem; }

/* Checklist */
.check-list { list-style: none; display: grid; gap: 14px; }
.check-list li { padding-left: 34px; position: relative; }
.check-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 7px;
  width: 20px; height: 9px;
  border-radius: var(--radius-pill);
  background: var(--amber);
}
.check-list li strong { color: var(--ink); }
.section-dark .check-list li strong { color: var(--white); }

/* Process steps — numbered because it is a real sequence */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: step; }
.step {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px;
  counter-increment: step;
}
.step::before {
  content: "0" counter(step);
  font-family: var(--font-mono);
  color: var(--coral);
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  display: block;
  margin-bottom: 14px;
}
.step h3 { margin-bottom: 10px; }
/* Step cards keep their white background inside dark sections */
.section-dark .step h3 { color: var(--ink); }
.section-dark .step p { color: var(--slate); }

/* Split layout */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.media-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
}
.media-card img { display: block; width: 100%; height: auto; }

/* Testimonials */
.quote-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.quote-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.quote-card blockquote { font-size: 1rem; color: var(--ink); font-style: italic; }
.quote-card cite { font-style: normal; margin-top: auto; }
.quote-card cite b { display: block; color: var(--ink); }
.quote-card cite span { font-size: 0.85rem; }

/* FAQ accordion */
.faq-list { display: grid; gap: 14px; max-width: 860px; }
.faq-item { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.faq-item summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  font-weight: 700;
  color: var(--ink);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-family: var(--font-mono); color: var(--amber-deep); font-size: 1.3rem; }
.faq-item[open] summary::after { content: "–"; }
.faq-item .faq-body { padding: 0 24px 22px; }
.faq-item .faq-body ul { margin: 10px 0 0 20px; display: grid; gap: 6px; }

/* Page hero (interior pages) */
.page-hero { padding: 72px 0 56px; border-bottom: 1px solid var(--line); }
.page-hero p { max-width: 64ch; margin-top: 18px; font-size: 1.1rem; }

/* Case study */
.cs-meta { display: flex; gap: 26px; flex-wrap: wrap; font-family: var(--font-mono); font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; margin-top: 22px; }
.cs-meta span b { color: var(--ink); display: block; font-size: 0.95rem; letter-spacing: 0; text-transform: none; font-family: var(--font-body); }
.prose { max-width: 760px; display: grid; gap: 18px; }
.prose h2 { margin-top: 26px; }
.prose ul { margin-left: 22px; display: grid; gap: 8px; }

/* CTA band */
.cta-band {
  background: linear-gradient(120deg, var(--ink) 0%, var(--ink-deep) 100%);
  border-radius: 22px;
  padding: 56px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.cta-band h2 { color: var(--white); max-width: 22ch; }
.cta-band p { color: rgba(255,255,255,0.75); margin-top: 10px; max-width: 48ch; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink-deep); color: rgba(255,255,255,0.78); margin-top: 84px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding: 64px 0 48px; }
.site-footer h4 { color: var(--white); font-size: 0.95rem; margin-bottom: 16px; font-family: var(--font-mono); font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; }
.site-footer ul { list-style: none; display: grid; gap: 10px; }
.site-footer a { color: rgba(255,255,255,0.78); text-decoration: none; }
.site-footer a:hover { color: var(--amber); }
.footer-brand .logo img { height: 30px; }
.footer-brand p { margin-top: 14px; font-size: 0.95rem; max-width: 34ch; }
.footer-contact li { font-size: 0.95rem; }
.footer-contact b { color: var(--white); }
.footer-bottom {
  border-top: 1px solid var(--line-dark);
  padding: 22px 0;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  font-size: 0.88rem;
}
.footer-bottom ul { display: flex; gap: 20px; list-style: none; }

/* ---------- Responsive ---------- */
/* Header gets crowded before the content grids do: drop the clock chip
   first, then collapse the nav to the hamburger menu */
@media (max-width: 1280px) {
  .clock-chip { display: none; }
}

@media (max-width: 1080px) {
  .nav-toggle { display: block; }
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    padding: 12px 24px 24px;
    margin-left: 0;
  }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; align-items: stretch; }
  .main-nav .sub-menu { position: static; display: block; box-shadow: none; border: 0; padding-left: 16px; }
  .has-sub > a::after { content: ""; }
  .header-cta { display: none; }
}

@media (max-width: 980px) {
  .hero-grid, .split { grid-template-columns: 1fr; gap: 36px; }
  .stat-band { grid-template-columns: repeat(2, 1fr); }
  .steps, .quote-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .footer-grid { grid-template-columns: 1fr; }
  .cta-band { padding: 40px 28px; }
}

/* ---------- Motion ---------- */
/* Scroll reveal: main.js adds .reveal, then .in when the element scrolls
   into view. Skipped entirely under prefers-reduced-motion. */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* Dropdown menus ease in each time they appear */
@keyframes menu-in {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: none; }
}
.main-nav .sub-menu { animation: menu-in 0.18s ease; }

/* Gentle lift on cards that don't already have one */
.step, .quote-card, article.card {
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.step:hover, .quote-card:hover, article.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

/* Card link arrows nudge forward on hover */
.card .more { transition: transform 0.18s ease; }
a.card:hover .more { transform: translateX(5px); }

/* The header clock separator pulses like a heartbeat */
@keyframes chip-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}
.clock-chip .sep { animation: chip-pulse 2.4s ease-in-out infinite; }

/* Probot illustration floats */
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-9px); }
}
.media-card img { animation: floaty 6s ease-in-out infinite; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .main-nav .sub-menu,
  .clock-chip .sep,
  .media-card img { animation: none; }
}
