/* Pontis Ops site. Brand tokens from Pontis (Brand). Generous spacing throughout. */
:root {
  --harbor-navy: #0E2A47;
  --pontis-blue: #1F5FAD;
  --span-blue: #4A88C7;
  --river-sky: #A9CBEA;
  --mist: #EAF2FA;
  --paper: #F8FAFC;
  --ink: #14202E;
  --slate: #5A6B7E;
  --keystone-brass: #B8893A;
  --line: #DCE7F3;

  --font-display: "Newsreader", Georgia, "Times New Roman", serif;
  --font-body: "Sora", system-ui, -apple-system, "Segoe UI", sans-serif;

  --container: 1100px;
  --gutter: 32px;
  --section-y: 120px;
  --radius: 16px;
  --header-h: 108px;
  --header-h-collapsed: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h-collapsed) + 24px); }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--pontis-blue); }
a:hover { color: var(--harbor-navy); }
:focus-visible { outline: 3px solid var(--span-blue); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--harbor-navy);
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0;
}
h1 { font-size: clamp(2.6rem, 5.2vw, 4.25rem); }
h2 { font-size: clamp(2rem, 3.4vw, 2.85rem); }
h3 { font-size: 1.5rem; line-height: 1.25; }
p { margin: 0; }

.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: calc(800px + var(--gutter) * 2); }
.center { text-align: center; }

.skip-link { position: absolute; left: -9999px; top: 0; }
.skip-link:focus { left: 16px; top: 16px; z-index: 100; background: #fff; padding: 8px 14px; border-radius: 8px; }

.eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--pontis-blue); /* AA on light backgrounds; brass is for keystone, bullets and rules only */
  margin-bottom: 20px;
}
.eyebrow-light { color: var(--river-sky); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-body); font-weight: 600; font-size: 1rem;
  padding: 16px 28px; border-radius: 999px; text-decoration: none;
  border: 2px solid transparent;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--pontis-blue); color: #fff; }
.btn-primary:hover { background: var(--harbor-navy); color: #fff; }
.btn-ghost { background: transparent; color: var(--harbor-navy); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--pontis-blue); color: var(--pontis-blue); }
.btn-sm { padding: 10px 20px; font-size: 0.92rem; }
.btn-lg { padding: 20px 36px; font-size: 1.08rem; }

/* Collapsing header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(248, 250, 252, 0.92);
  backdrop-filter: saturate(160%) blur(10px);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .25s ease, border-color .25s ease, background-color .25s ease;
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 32px;
  height: var(--header-h);
  transition: height .25s ease;
}
.brand { display: inline-flex; align-items: center; }
.brand-logo { height: 68px; margin-left: -12px; width: auto; transition: height .25s ease; }
.site-nav { display: flex; align-items: center; gap: 36px; }
.site-nav a:not(.btn) {
  color: var(--harbor-navy); text-decoration: none; font-size: 0.95rem; font-weight: 500;
}
.site-nav a:not(.btn):hover { color: var(--pontis-blue); }

.site-header.is-collapsed {
  background: rgba(255, 255, 255, 0.96);
  border-bottom-color: var(--line);
  box-shadow: 0 6px 24px rgba(14, 42, 71, 0.08);
}
.site-header.is-collapsed .header-inner { height: var(--header-h-collapsed); }
.site-header.is-collapsed .brand-logo { height: 48px; }

/* Hero: treatment 2, Paper background with a large cropped pale arch */
.hero {
  position: relative; overflow: hidden;
  background: var(--paper);
  padding: 128px 0 152px;
}
.hero-arch {
  position: absolute; z-index: 0; pointer-events: none;
  right: -18%; top: 56px;
  width: min(62vw, 860px);
}
.hero-arch svg { width: 100%; height: auto; }
.hero-inner { position: relative; z-index: 1; }
.hero-copy { max-width: 600px; }
.hero h1 { margin-bottom: 28px; }
.lede { font-size: 1.2rem; color: var(--slate); max-width: 560px; margin-bottom: 44px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px 20px; }

/* Sections */
.section { padding: var(--section-y) 0; }
.section-problem { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-problem h2 { margin-bottom: 44px; }
.problem-list { list-style: none; margin: 0 0 48px; padding: 0; display: grid; gap: 20px; }
.problem-list li {
  position: relative; padding-left: 36px; font-size: 1.12rem; color: var(--ink);
}
.problem-list li::before {
  content: ""; position: absolute; left: 0; top: 0.62em;
  width: 14px; height: 14px; border-radius: 3px; background: var(--keystone-brass);
  transform: translateY(-50%) rotate(45deg) scale(0.7);
}
.callout {
  font-family: var(--font-display); font-size: 1.5rem; line-height: 1.4; color: var(--harbor-navy);
  border-left: 3px solid var(--pontis-blue); padding: 6px 0 6px 28px;
}

.section-what { background: var(--mist); }
.section-head { max-width: 760px; margin-bottom: 64px; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 44px 36px 48px;
  box-shadow: 0 1px 2px rgba(14, 42, 71, 0.04);
}
/* Visible glyph is about 57% of its circle (40 / 70); each icon's viewBox is cropped to its drawn bounds */
.card-icon {
  width: 70px; height: 70px; border-radius: 50%;
  background: var(--mist); color: var(--pontis-blue);
  display: grid; place-items: center; margin-bottom: 32px;
}
.card-icon svg { width: 40px; height: 40px; }
.card h3 { margin-bottom: 16px; }
.card p { color: var(--slate); }

.section-fit { background: var(--harbor-navy); color: #fff; }
.section-fit h2 { color: #fff; margin-bottom: 28px; }
.fit-body { color: var(--river-sky); font-size: 1.15rem; max-width: 640px; margin-bottom: 44px; }
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 14px 16px; }
.chips li {
  border: 1px solid rgba(169, 203, 234, 0.4); color: #fff; border-radius: 999px;
  padding: 10px 20px; font-size: 0.92rem;
}

.section-epicor { background: #fff; border-bottom: 1px solid var(--line); }
.section-epicor h2 { margin-bottom: 36px; }
.epicor-body { color: var(--slate); font-size: 1.12rem; max-width: 680px; margin-bottom: 24px; }
.epicor-body a { color: var(--pontis-blue); }
.epicor-note { font-size: 0.85rem; color: var(--slate); max-width: 680px; margin-top: 44px; padding-top: 24px; border-top: 1px solid var(--line); }

.section-cta { background: var(--paper); }
.section-cta h2 { margin-bottom: 24px; }
.cta-body { color: var(--slate); font-size: 1.15rem; max-width: 600px; margin: 0 auto 44px; }

/* Footer */
.site-footer { background: var(--harbor-navy); color: var(--river-sky); padding: 56px 0; border-top: 1px solid rgba(169, 203, 234, 0.15); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.footer-brand img { height: 56px; margin-left: -10px; width: auto; }
.footer-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; font-size: 0.92rem; }
.footer-meta a { color: #fff; text-decoration: none; }
.footer-meta a:hover { text-decoration: underline; color: #fff; }
.dot { color: rgba(169, 203, 234, 0.6); }

/* 404 */
.notfound { min-height: 70vh; display: flex; align-items: center; }
.notfound-mark { width: 96px; height: 96px; margin: 0 auto 36px; }
.notfound h1 { font-size: clamp(2.2rem, 4vw, 3rem); margin-bottom: 20px; }

/* Responsive */
@media (max-width: 960px) {
  .cards { grid-template-columns: 1fr; gap: 24px; max-width: 620px; }
  .site-nav a:not(.btn) { display: none; }
  .hero-arch { right: -30%; width: 90vw; top: auto; bottom: -60px; opacity: 0.85; }
}
@media (max-width: 640px) {
  :root { --gutter: 24px; --section-y: 80px; --header-h: 84px; --header-h-collapsed: 64px; }
  body { font-size: 16px; }
  .brand-logo { height: 54px; margin-left: -10px; }
  .site-header.is-collapsed .brand-logo { height: 42px; }
  .site-nav .btn-sm { padding: 9px 16px; font-size: 0.88rem; }
  .hero { padding: 72px 0 260px; }
  .hero-arch { right: -18%; left: auto; width: 120vw; bottom: -110px; }
  .lede { font-size: 1.08rem; margin-bottom: 36px; }
  .hero-actions .btn { width: 100%; }
  .card { padding: 36px 28px 40px; }
  .callout { font-size: 1.3rem; padding-left: 22px; }
  .btn-lg { padding: 18px 24px; font-size: 1rem; width: 100%; word-break: break-all; }
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 24px; }
  .footer-meta { flex-direction: column; align-items: flex-start; gap: 8px; }
  .footer-meta .dot { display: none; }
  /* Mobile breathing room: arch sits whole below the CTAs, never behind them */
  .hero { display: flex; flex-direction: column; padding: 64px 0 72px; }
  .hero-inner { order: 1; }
  .hero-arch { position: relative; order: 2; top: auto; right: auto; bottom: auto; left: auto; width: min(62vw, 250px); margin: 72px auto 0; opacity: 0.85; }
  .hero-actions { gap: 16px; }
  .site-nav .btn-sm { white-space: nowrap; }
  .problem-list { gap: 24px; }
  .chips { gap: 12px; }
}
@media (max-width: 380px) {
  .brand-logo { height: 46px; }
  .site-nav .btn-sm { padding: 8px 14px; font-size: 0.84rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
