/* =========================================================================
   Global design system
   Values from the prototype public/css/site.css. Do not invent replacements.
   ========================================================================= */

:root {
  --paper:      #f4f7fa;
  --paper-2:    #e8eff6;
  --card:       #ffffff;

  --ink:        #16202e;
  --ink-2:      #1b2735;
  --muted:      #55637a;
  --muted-2:    #7e8ba0;

  --line:       #d9e3ee;
  --line-2:     #e8eff6;

  --blue:       #1d5fa0;
  --blue-deep:  #17497c;
  --blue-soft:  #e7f0f9;
  --amber:      #b4642f;
  --clay:       #b4642f;

  --focus:      #1d5fa0;

  --display: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "Karla", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;

  --gap: clamp(20px, 5vw, 60px);
  --section: clamp(64px, 8vw, 132px);
  --maxw: 1220px;
  /* Header/footer shell. 1220px cannot fit 8 nav items + phone + Book. */
  --chrome-max: 1440px;
  /* Main bar 96px + trust strip (~32px). */
  --header-h: 128px;
  --r: 4px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button { font: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }

:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
::selection { background: var(--blue); color: #fff; }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--blue); color: #fff; padding: 12px 18px; border-radius: var(--r);
  font-size: 13px; letter-spacing: .04em; text-decoration: none;
  transition: top .18s var(--ease);
}
.skip:focus { top: 12px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------------------------------------------------------- typography -- */
.display {
  font-family: var(--display);
  font-weight: 300;
  font-variation-settings: "opsz" 40;
  line-height: 1.12;
  letter-spacing: -.012em;
  color: var(--ink-2);
}
.d-hero { font-size: clamp(38px, 6.2vw, 76px); font-variation-settings: "opsz" 72; line-height: 1.06; }
.d-1    { font-size: clamp(30px, 4vw, 52px); }
.d-2    { font-size: clamp(25px, 2.8vw, 38px); line-height: 1.16; }
.d-3    { font-size: clamp(20px, 1.9vw, 26px); line-height: 1.22; }

.caps {
  font-family: var(--sans);
  font-size: 12px; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase; line-height: 1.5;
}

.eyebrow { display: block; color: var(--blue); margin-bottom: 20px; }

.lede {
  font-size: clamp(18px, 1.5vw, 21px);
  line-height: 1.6; color: var(--muted); max-width: 62ch;
}

.body-text { color: var(--muted); font-size: 17px; line-height: 1.78; }
.body-text p + p { margin-top: 1.1em; }
.body-text strong { color: var(--ink); font-weight: 600; }
.body-text a { color: var(--blue-deep); text-underline-offset: 3px; }
.body-text ul { margin: 16px 0 0 20px; display: grid; gap: 9px; }
.body-text ul li { padding-left: 4px; }
.body-text ul li::marker { color: var(--blue); }

.muted { color: var(--muted); }

/* -------------------------------------------------------------- layout -- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gap); }
.wrap-narrow { max-width: 780px; margin: 0 auto; padding-inline: var(--gap); }
.section { padding-block: var(--section); }
.section-sm { padding-block: clamp(44px, 5.5vw, 84px); }
.bg-card { background: var(--card); }
.bg-warm { background: var(--paper-2); }
.bg-sage { background: var(--blue-soft); }
.edge { border-block: 1px solid var(--line); }

.grid { display: grid; gap: clamp(20px, 2.6vw, 40px); }
.g-1 { grid-template-columns: minmax(0, 1fr); }
.g-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.split {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(30px, 4.5vw, 76px); align-items: center;
}
.split > .wp-block-cil-callout,
.split > .wp-block-cil-callback-card,
.split > .wp-block-cil-rich-html,
.split > .wp-block-cil-figure,
.split > .wp-block-group {
  min-width: 0;
}
.section-head { max-width: 700px; margin-bottom: clamp(32px, 4vw, 62px); }
.section-head .lede { margin-top: 18px; }

/* ------------------------------------------------------------- buttons -- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 52px; padding: 14px 26px;
  border: 1px solid var(--blue); border-radius: var(--r);
  background: var(--blue); color: #fff;
  font-size: 15px; font-weight: 600; letter-spacing: .01em;
  text-decoration: none; cursor: pointer;
  transition: background .22s var(--ease), border-color .22s var(--ease), color .22s var(--ease);
}
.btn:hover { background: var(--blue-deep); border-color: var(--blue-deep); }

.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: var(--card); color: var(--blue-deep); border-color: var(--blue); }

.btn-light { background: rgba(255,255,255,.1); color: #fff; border-color: rgba(255,255,255,.45); }
.btn-light:hover { background: #fff; color: var(--blue-deep); border-color: #fff; }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 15px; font-weight: 600; color: var(--blue-deep);
  text-decoration: none;
  transition: gap .25s var(--ease);
}
.link-arrow::after { content: "→"; }
.link-arrow:hover { gap: 13px; text-decoration: underline; text-underline-offset: 4px; }

/* ---------------------------------------------------------- page head -- */
.page-head { padding-block: clamp(46px, 5.5vw, 92px) clamp(30px, 3.5vw, 56px); }
.page-head h1 { overflow-wrap: anywhere; }
.page-head .lede { margin-top: 24px; }
/* Breadcrumb trails are not shown on page tops (see template-parts/page-head.php). */
.breadcrumb { display: none !important; }

/* --------------------------------------------------------- group cards -- */
.card-group {
  display: flex; flex-direction: column;
  background: var(--card); border: 1px solid var(--line); border-radius: 6px;
  padding: clamp(24px, 2.4vw, 36px);
  text-decoration: none; color: inherit;
  height: 100%;
  box-sizing: border-box;
  box-shadow: 0 20px 44px -34px rgba(22, 32, 46, .34);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.card-group:hover {
  transform: translateY(-3px);
  border-color: var(--blue);
  box-shadow: 0 26px 54px -32px rgba(22, 32, 46, .38);
}
.card-group .age { color: var(--blue); margin-bottom: 12px; }
.card-group h2, .card-group h3 { margin-bottom: 10px; }
.card-group .price { font-family: var(--display); font-size: 24px; font-weight: 400; color: var(--ink-2); margin-bottom: 14px; }
.card-group p { font-size: 15.5px; line-height: 1.68; color: var(--muted); overflow-wrap: anywhere; }
.card-group .go { margin-top: auto; padding-top: 24px; display: inline-flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 600; color: var(--blue-deep); }
.card-group .go::after { content: "→"; transition: transform .25s var(--ease); }
.card-group:hover .go::after { transform: translateX(5px); }

.card {
  background: var(--card); border: 1px solid var(--line); border-radius: 6px;
  padding: clamp(24px, 2.4vw, 36px);
}

/* -------------------------------------------------------- reveal (CSS) -- */
[data-reveal] { opacity: 0; transform: translateY(16px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
[data-reveal].is-in { opacity: 1; transform: none; }
.no-js [data-reveal], .reveal-off [data-reveal] { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1 !important; transform: none !important; transition: none; }
}

/* Prototype breakpoints applied to layout primitives only.
   Header/footer rules live in their own stylesheets. */
@media (max-width: 1180px) {
  .g-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .g-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split { grid-template-columns: minmax(0, 1fr); gap: 34px; }
  .split.reverse > *:first-child { order: 2; }
}

@media (max-width: 680px) {
  .g-2, .g-3, .g-4 { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 420px) { .btn-row .btn { width: 100%; } }

@media print {
  .header, .action-bar, .to-top, .mobile-nav { display: none !important; }
  body { padding-bottom: 0; background: #fff; }
}
