/* Interior pages: Services, Packages, About, and the generic page template.
   Requires tokens.css and main.css. */

/* ============ PAGE HERO ============ */
.page-hero {
  position: relative;
  padding: clamp(160px, 22vh, 260px) 0 clamp(60px, 9vh, 110px);
  background: radial-gradient(120% 90% at 80% 10%, var(--bg-2), var(--bg) 62%);
  overflow: hidden;
}
.page-hero .bg {
  position: absolute; inset: 0; z-index: 0;
  background-size: cover; background-position: center;
}
.page-hero .tint { position: absolute; inset: 0; z-index: 1; background: var(--hero-tint); }
.page-hero .wrap { position: relative; z-index: 2; }
.page-hero h1 {
  font-family: var(--serif); font-weight: 300; color: var(--ink);
  font-size: clamp(42px, 6vw, 84px); line-height: 1.02; letter-spacing: -.02em;
  margin: 20px 0 0; max-width: 18ch; text-wrap: balance;
}
.page-hero p.lead {
  margin-top: 24px; max-width: 56ch;
  font-size: clamp(17px, 1.5vw, 21px); line-height: 1.58; color: var(--ink-2);
}
.crumbs {
  display: flex; flex-wrap: wrap; gap: 10px; align-items: center;
  margin-top: 30px; font-size: 13px; letter-spacing: .04em; color: var(--ink-3);
}
.crumbs a:hover { color: var(--accent-text); }
.crumbs span { opacity: .5; }

/* ============ FEATURE GRID (2-up and 4-up) ============ */
.fgrid {
  display: grid; gap: clamp(26px, 3.4vw, 48px);
  margin-top: clamp(44px, 6vw, 72px);
  grid-template-columns: repeat(2, 1fr);
}
.fgrid.four { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1020px) { .fgrid.four { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 760px) { .fgrid, .fgrid.four { grid-template-columns: 1fr; } }

.fitem { border-top: 1px solid var(--line); padding-top: 22px; }
.fitem .ix {
  font-family: var(--serif); font-weight: 300; font-size: 40px;
  color: var(--accent-text); line-height: 1; opacity: .9;
}
.fitem h3 {
  font-family: var(--serif); font-weight: 400; font-size: clamp(22px, 2vw, 28px);
  color: var(--ink); margin: 14px 0 12px; letter-spacing: -.01em;
}
.fitem p { font-size: 15.5px; line-height: 1.62; color: var(--ink-2); }
.fitem ul { margin-top: 12px; display: grid; gap: 7px; }
.fitem li {
  font-size: 14.5px; color: var(--ink-2); padding-left: 18px; position: relative;
}
.fitem li::before {
  content: ""; position: absolute; left: 0; top: .62em;
  width: 6px; height: 6px; border-radius: 50%; background: var(--accent); opacity: .8;
}
.fitem .more {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 16px;
  font-size: 14px; font-weight: 600; color: var(--accent-text);
}
.fitem .more:hover { gap: 12px; }
.fitem .more svg { width: 15px; height: 15px; transition: transform .3s var(--ease); }

/* ============ PACKAGE MATRIX ============ */
.pkg-group { margin-top: clamp(56px, 7vw, 96px); }
.pkg-group:first-of-type { margin-top: clamp(40px, 5vw, 64px); }
.pkg-group > h3 {
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(28px, 3.4vw, 44px); letter-spacing: -.018em; color: var(--ink);
}
.pkg-group > p { margin-top: 16px; max-width: 62ch; color: var(--ink-2); line-height: 1.6; }

/* Same content as the homepage tier table, so it gets the same white card. */
.matrix {
  width: 100%; margin-top: 34px; border-collapse: collapse;
  font-size: 15px;
  background: var(--surface); color: var(--on-surface);
  border: 1px solid var(--line-on-surface); border-radius: 16px; overflow: hidden;
}
.matrix th, .matrix td {
  padding: 16px 14px; text-align: center; border-bottom: 1px solid var(--line-on-surface);
  vertical-align: middle;
}
.matrix th:first-child, .matrix td:first-child {
  text-align: left; color: var(--on-surface); width: 40%;
}
.matrix thead th {
  font-family: var(--serif); font-weight: 400; font-size: 21px; color: var(--on-surface);
  padding-top: 24px; padding-bottom: 6px;
}
.matrix thead th .term {
  display: block; font-family: var(--sans); font-size: 12px; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase; color: var(--on-surface-3); margin-top: 8px;
}
.matrix tbody td { color: var(--on-surface-2); }
.matrix .yes { color: var(--accent-on-surface); font-weight: 700; }
.matrix .no { color: var(--on-surface-3); opacity: .7; }
.matrix tfoot td { padding-top: 24px; border-bottom: none; }
.matrix tfoot .btn-line { width: 100%; justify-content: center; }
.matrix .tier-label { display: none; }

@media (max-width: 760px) {
  .matrix, .matrix thead, .matrix tbody, .matrix tfoot,
  .matrix tr, .matrix th, .matrix td { display: block; }
  .matrix { padding: 6px 18px 18px; }
  .matrix thead { display: none; }
  .matrix tr { border-bottom: 1px solid var(--line-on-surface); padding: 14px 0; }
  .matrix tr:last-child { border-bottom: none; }
  .matrix td { border-bottom: none; padding: 4px 0; text-align: left; }
  .matrix td[data-tier]::before {
    content: attr(data-tier) " ";
    font-size: 12px; font-weight: 600; letter-spacing: .12em;
    text-transform: uppercase; color: var(--on-surface-3); margin-right: 10px;
  }
  .matrix th:first-child, .matrix td:first-child {
    width: auto; font-weight: 600; margin-bottom: 8px; font-size: 16px;
  }
  .matrix tbody td[data-tier] {
    display: flex; align-items: center; gap: 10px; padding: 3px 0;
  }
  .matrix tfoot td { padding: 6px 0; display: block; }
  .matrix tfoot td[data-tier]::before { content: none; }
  .matrix tfoot .btn-line { margin-top: 0; }
  .matrix .tier-label { display: inline; font-weight: 700; letter-spacing: .06em; }
}

/* ============ CHILD PAGE LINKS ============ */
.childnav {
  display: flex; flex-wrap: wrap; gap: 12px;
  margin-top: clamp(40px, 5vw, 64px);
}
.childnav a {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 11px 20px; border: 1px solid var(--line-2); border-radius: 100px;
  font-size: 14.5px; font-weight: 500; color: var(--ink-2);
  transition: .3s var(--ease);
}
.childnav a:hover { border-color: var(--accent); color: var(--accent-text); }
.childnav a[aria-current="page"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }

/* The quote buttons live inside the white matrix card. */
.matrix tfoot .btn-line {
  color: var(--on-surface); border-color: var(--line-on-surface-2);
}
.matrix tfoot .btn-line:hover {
  border-color: var(--accent); color: var(--accent-on-surface);
  background: color-mix(in srgb, var(--accent) 10%, transparent);
}

/* ============ LONG-FORM PAGE CONTENT ============
   The service and client child pages are written in the block editor, so their
   headings arrive unstyled. Match the display typography used elsewhere. */
.entry-content > * + * { margin-top: 1.15em; }

.entry-content h2 {
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(28px, 3.2vw, 40px); line-height: 1.12;
  letter-spacing: -.018em; color: var(--ink);
  margin-top: 1.6em; padding-top: 1.1em; border-top: 1px solid var(--line);
}
.entry-content > h2:first-child { margin-top: 0; padding-top: 0; border-top: none; }

.entry-content h3 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(20px, 1.9vw, 25px); line-height: 1.28;
  letter-spacing: -.01em; color: var(--ink);
  margin-top: 1.5em;
}
.entry-content h2 + h3 { margin-top: .9em; }
.entry-content h3 + p { margin-top: .5em; }

.entry-content p { font-size: 16.5px; line-height: 1.68; color: var(--ink-2); }
.entry-content > p:first-child,
.entry-content > p:first-child + p {
  font-size: clamp(17px, 1.45vw, 20px); line-height: 1.6; color: var(--ink);
}

.entry-content ul { list-style: none; padding-left: 0; display: grid; gap: 10px; }
.entry-content ul li {
  position: relative; padding-left: 26px;
  font-size: 16px; line-height: 1.6; color: var(--ink-2);
}
.entry-content ul li::before {
  content: ""; position: absolute; left: 2px; top: .72em;
  width: 12px; height: 1px; background: var(--accent); opacity: .9;
}

.entry-content blockquote {
  margin-top: 1.8em; padding: 22px 26px;
  border: none; border-left: 2px solid var(--accent);
  background: color-mix(in srgb, var(--accent) 7%, transparent);
  border-radius: 3px 12px 12px 3px;
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(19px, 1.8vw, 23px); line-height: 1.45;
  letter-spacing: -.008em; color: var(--ink);
}
.entry-content blockquote p { font: inherit; color: inherit; }

.entry-content a { color: var(--accent-text); text-decoration: underline; text-underline-offset: 3px; }
.entry-content a:hover { color: var(--ink); }
