/* PPT Strategies website
   Tokens mirror the PPT Strategies design system (tokens.json). Keep them in sync. */

:root {
  /* Color */
  --navy: #003399;
  --gray: #545454;
  --white: #ffffff;
  --sky: #abe5ff;
  --sky-soft: #eef9ff;       /* web-only tint of sky for large page bands */
  --blue: #0093d8;
  --orange: #f7941d;
  --orange-veil: rgba(247, 148, 29, 0.498);
  --heading-blue: #006da1;
  --logo-cyan: #00b0f0;
  --rule: #d6e6f2;           /* web-only hairline */

  /* Type */
  --font-brand: "Aptos Display", Aptos, Calibri, Carlito, "Segoe UI", system-ui, sans-serif;
  --font-body: Aptos, Calibri, Carlito, "Segoe UI", system-ui, -apple-system, Arial, sans-serif;

  /* Spacing (4px base) */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 96px;           /* web-only: hero padding on wide screens */

  /* Radius */
  --radius-none: 0;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-full: 9999px;

  --container: 1160px;
  --gutter: clamp(16px, 4vw, 32px);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--white);
  color: var(--navy);
  font-family: var(--font-body);
  font-size: 1.125rem;       /* 18px */
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  overflow-x: clip; /* decorative rings never cause sideways scroll; keeps sticky header working */
}

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

h1, h2, h3, h4 {
  font-family: var(--font-brand);
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 var(--space-4);
  color: var(--navy);
  text-wrap: balance;
}
h1 { font-size: clamp(2.25rem, 5vw, 3.75rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.75rem, 3.2vw, 2.5rem); letter-spacing: -0.01em; color: var(--heading-blue); }
h3 { font-size: 1.375rem; }
p { margin: 0 0 var(--space-4); }
p, li { text-wrap: pretty; }

a { color: var(--heading-blue); text-decoration: underline; text-underline-offset: 3px; }
a:hover { color: var(--navy); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }

.lede { font-size: 1.3125rem; color: var(--navy); max-width: 62ch; }
.muted { color: var(--gray); }
.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--heading-blue);
  margin-bottom: var(--space-3);
}

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--space-8) 0; }
.section--tint { background: var(--sky-soft); }
.section--navy { background: var(--navy); color: var(--white); }
.section--navy h2, .section--navy h3 { color: var(--white); }
.section--navy a { color: var(--white); }
.section-head { max-width: 760px; margin-bottom: var(--space-7); }

.skip-link {
  position: absolute; left: var(--space-4); top: -100px;
  background: var(--navy); color: var(--white);
  padding: var(--space-2) var(--space-4); border-radius: var(--radius-sm); z-index: 100;
}
.skip-link:focus { top: var(--space-4); color: var(--white); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--rule);
  backdrop-filter: saturate(1.2) blur(6px);
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--space-5); min-height: 76px;
}
.brand { display: block; flex: 0 0 auto; }
.brand img { height: 48px; width: auto; }

.nav-toggle {
  display: none;
  background: none; border: 1px solid var(--rule); border-radius: var(--radius-sm);
  padding: var(--space-2) var(--space-3); color: var(--navy);
  font: inherit; font-size: 1rem; cursor: pointer;
}
.site-nav ul { list-style: none; display: flex; align-items: center; gap: var(--space-2); margin: 0; padding: 0; }
.site-nav a {
  display: block; padding: var(--space-2) var(--space-3);
  color: var(--navy); text-decoration: none; font-weight: 600; font-size: 1.0625rem;
  border-bottom: 3px solid transparent;
}
.site-nav a:hover { color: var(--heading-blue); }
.site-nav a[aria-current="page"] { border-bottom-color: var(--orange); }
.site-nav .btn { margin-left: var(--space-3); border-bottom: 0; padding: var(--space-2) var(--space-5); }
.site-nav a.btn--primary, .site-nav a.btn--primary:hover { color: var(--white); }
.site-nav a.btn--primary[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--orange); }

@media (max-width: 860px) {
  .brand img { height: 40px; }
  .nav-toggle { display: inline-flex; align-items: center; gap: var(--space-2); }
  .site-nav { position: absolute; left: 0; right: 0; top: 100%; background: var(--white); border-bottom: 1px solid var(--rule); display: none; }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: var(--space-2) var(--gutter) var(--space-5); }
  .site-nav a { padding: var(--space-3) 0; border-bottom: 1px solid var(--rule); }
  .site-nav a[aria-current="page"] { border-bottom-color: var(--rule); box-shadow: inset 4px 0 0 var(--orange); padding-left: var(--space-3); }
  .site-nav .btn { margin: var(--space-4) 0 0; text-align: center; padding: var(--space-3) var(--space-5); }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: var(--space-3) var(--space-5);
  border-radius: var(--radius-sm);
  font-weight: 700; font-size: 1.0625rem; line-height: 1.3;
  text-decoration: none; border: 2px solid transparent;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.btn--primary { background: var(--navy); color: var(--white); }
.btn--primary:hover { background: var(--heading-blue); color: var(--white); }
.btn--light { background: var(--white); color: var(--navy); }
.btn--light:hover { background: var(--sky); color: var(--navy); }
.btn--ghost { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn--ghost:hover { background: var(--navy); color: var(--white); }
.btn--ghost-light { border-color: var(--white); color: var(--white); background: transparent; }
.btn--ghost-light:hover { background: var(--white); color: var(--navy); }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--space-3); }

/* ---------- Band (the title-slide band) ----------
   blue ground, white text at 24px+ only (3.4:1). Small text goes on navy instead. */
.band {
  position: relative;
  overflow: hidden;
  background: var(--blue); color: var(--white);
  padding: var(--space-9) 0 var(--space-8);
  border-radius: var(--radius-none);
}
.band h1, .band h2 { color: var(--white); }
.band .band-sub { font-size: clamp(1.5rem, 2.4vw, 1.75rem); line-height: 1.35; max-width: 34ch; margin-bottom: var(--space-6); }
.band .container { position: relative; z-index: 1; }
/* three logo-echo circles on the band's top edge */
.band::before {
  content: ""; position: absolute; top: var(--space-6); left: max(var(--gutter), calc((100% - var(--container)) / 2 + var(--gutter)));
  width: 140px; height: 44px; z-index: 1;
  background:
    radial-gradient(circle at 22px 22px, var(--white) 18px, var(--logo-cyan) 18px 20px, transparent 21px),
    radial-gradient(circle at 70px 22px, var(--white) 18px, var(--logo-cyan) 18px 20px, transparent 21px),
    radial-gradient(circle at 118px 22px, var(--white) 18px, var(--logo-cyan) 18px 20px, transparent 21px);
}
.band-rings {
  position: absolute; right: -90px; bottom: -120px;
  width: clamp(280px, 38vw, 520px); opacity: 1; pointer-events: none;
}
.band--compact { padding: calc(var(--space-8) + var(--space-6)) 0 var(--space-7); }
.band--compact h1 { margin-bottom: var(--space-3); }

/* ---------- Pillars (People. Process. Technology.) ---------- */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-5); }
.pillar { text-align: left; }
.pillar-badge {
  width: 64px; height: 64px; border-radius: var(--radius-full);
  background: var(--white); border: 3px solid var(--blue);
  display: grid; place-items: center;
  font-family: var(--font-brand); font-weight: 700; font-size: 1.75rem; color: var(--navy);
  margin-bottom: var(--space-4);
}
@media (max-width: 760px) { .pillars { grid-template-columns: 1fr; } }

/* ---------- Cards ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: var(--space-5); }
.cards--2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 760px) { .cards--2 { grid-template-columns: 1fr; } }
.card {
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: var(--radius-md);
  padding: var(--space-5);
  display: flex; flex-direction: column;
}
.card h3 { margin-bottom: var(--space-3); }
.card p:last-child { margin-bottom: 0; }
.card .card-link { margin-top: auto; padding-top: var(--space-3); font-weight: 700; }
.card--feature { border-top: 4px solid var(--blue); }

/* ---------- Callout (sky) ---------- */
.callout {
  background: var(--sky); color: var(--navy);
  border-radius: var(--radius-md);
  padding: var(--space-5) var(--space-6);
}
.callout h2, .callout h3 { color: var(--navy); }

/* ---------- Split layout ---------- */
.split { display: grid; grid-template-columns: 1.1fr 1fr; gap: var(--space-7); align-items: center; }
.split--top { align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: var(--space-6); } }
.figure img { width: 100%; border-radius: var(--radius-none); }

/* ---------- Bio (photo + text) ---------- */
.bio { display: grid; grid-template-columns: 260px 1fr; gap: var(--space-7); align-items: start; }
.bio__photo img { width: 100%; height: auto; border-radius: var(--radius-full); box-shadow: 0 0 0 6px var(--orange); }
@media (max-width: 760px) { .bio { grid-template-columns: 1fr; gap: var(--space-5); } .bio__photo { max-width: 200px; } }

/* ---------- Lists ---------- */
.checklist { list-style: none; padding: 0; margin: 0 0 var(--space-4); }
.checklist li { position: relative; padding-left: 28px; margin-bottom: var(--space-2); }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 0.5em;
  width: 12px; height: 12px; border-radius: var(--radius-full);
  background: var(--white); border: 3px solid var(--blue);
}

/* ---------- Service detail blocks ---------- */
.service { padding: var(--space-7) 0; border-top: 1px solid var(--rule); scroll-margin-top: 96px; }
.service:first-of-type { border-top: 0; }
.service-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-7); }
@media (max-width: 860px) { .service-grid { grid-template-columns: 1fr; gap: var(--space-4); } }

/* ---------- Steps ---------- */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: var(--space-5); counter-reset: step; }
.steps li { counter-increment: step; }
.steps li::before {
  content: counter(step);
  display: grid; place-items: center;
  width: 40px; height: 40px; border-radius: var(--radius-full);
  background: var(--navy); color: var(--white); font-weight: 700;
  margin-bottom: var(--space-3);
}
.steps h3 { font-size: 1.1875rem; margin-bottom: var(--space-2); }

/* ---------- CTA strip ---------- */
.cta-strip { background: var(--navy); color: var(--white); padding: var(--space-8) 0; position: relative; overflow: hidden; }
.cta-strip h2 { color: var(--white); margin-bottom: var(--space-3); }
.cta-strip p { color: var(--white); max-width: 60ch; }
.cta-strip .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-5); position: relative; z-index: 1; }
.cta-strip .band-rings { right: -140px; bottom: -200px; width: 420px; opacity: .55; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: var(--white); padding: var(--space-7) 0 var(--space-5); border-top: 4px solid var(--orange); }
.site-footer a { color: var(--white); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: var(--space-6); }
.footer-grid img { height: 44px; width: auto; margin-bottom: var(--space-4); }
.footer-grid h2 { font-size: 1rem; font-family: var(--font-body); letter-spacing: .08em; text-transform: uppercase; color: var(--sky); margin-bottom: var(--space-3); }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: var(--space-2); }
.footer-tagline { color: var(--sky); font-weight: 700; }
.footer-legal { margin-top: var(--space-6); padding-top: var(--space-4); border-top: 1px solid rgba(255,255,255,.2); font-size: .9375rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-3); }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Utilities ---------- */
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.mb-6 { margin-bottom: var(--space-6); }
.center { text-align: center; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Readable line length for running text placed directly in a container */
.container > p, .container > div > p:not(.lede) { max-width: 72ch; }
/* A .service already inside a padded .section needs no extra padding or rule */
.section > .container > .service { padding: 0; border-top: 0; }
@media (max-width: 760px) {
  .band-rings { width: 220px; right: -120px; bottom: -140px; }
}
