/* ============================================================
   Shared sub-page styles: dropdown nav, page heroes, forms,
   blog, locations, article (white paper)
   ============================================================ */

/* ---------- Dropdown nav ---------- */
.nav-item { position: relative; display: flex; align-items: center; }
.nav-item > a { display: inline-flex; align-items: center; gap: 6px; opacity: .85; transition: opacity .25s; position: relative; }
.nav-item > a:hover { opacity: 1; }
.nav-item > a .caret { transition: transform .3s var(--ease); }
.nav-item:hover > a .caret, .nav-item:focus-within > a .caret { transform: rotate(180deg); }

.drop {
  position: absolute; top: 100%; left: -18px; padding-top: 16px;
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s;
  z-index: 60;
}
.nav-item:hover .drop, .nav-item:focus-within .drop { opacity: 1; visibility: visible; transform: translateY(0); }
.drop-card {
  background: #fff; color: var(--ink);
  border: 1px solid var(--line); border-radius: 16px;
  box-shadow: 0 30px 60px -24px rgba(11,19,32,.28);
  padding: 10px; min-width: 260px;
  display: grid; gap: 2px;
}
.drop-card a {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 14px; border-radius: 10px;
  font-size: 14.5px; font-weight: 600; color: var(--ink);
  transition: background .2s var(--ease), color .2s var(--ease);
  white-space: nowrap;
}
.drop-card a:hover { background: var(--accent-soft); color: var(--accent); }
.drop-card a span.sub { display: block; font-size: 12.5px; font-weight: 500; color: var(--ink-3); white-space: nowrap; }
.drop-card a:hover span.sub { color: var(--accent-mid); }
.drop-card .drop-divider { height: 1px; background: var(--line); margin: 6px 8px; }
.drop-label {
  font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-3); padding: 10px 14px 4px;
}

/* ---------- Page hero (sub-pages) ---------- */
.page-hero {
  background: var(--accent); color: #fff;
  padding: 180px 0 88px; position: relative; overflow: hidden;
}
.page-hero::before {
  content: ""; position: absolute; right: -160px; top: -220px;
  width: 640px; height: 640px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.10), transparent 65%);
  pointer-events: none;
}
.page-hero::after {
  content: ""; position: absolute; left: -200px; bottom: -340px;
  width: 560px; height: 560px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.06), transparent 65%);
  pointer-events: none;
}
.page-hero .eyebrow { color: rgba(255,255,255,.7); }
.page-hero h1 {
  font-size: clamp(40px, 5vw, 72px); line-height: 1.04;
  letter-spacing: -0.03em; font-weight: 800;
  margin: 18px 0 20px; max-width: 18ch; text-wrap: balance;
}
.page-hero .lede { color: rgba(255,255,255,.78); font-size: 19px; }

/* ---------- Service detail rows ---------- */
.svc-row {
  display: grid; grid-template-columns: 1fr 1.4fr; gap: clamp(36px, 6vw, 110px);
  padding: 72px 0; border-top: 1px solid var(--line);
}
.svc-row:first-of-type { border-top: none; }
.svc-row-head { position: sticky; top: 110px; align-self: start; }
.svc-row-head .svc-icon { margin-bottom: 22px; }
.svc-row-head .num { font-size: 13px; font-weight: 700; letter-spacing: .12em; color: var(--ink-3); display: block; margin-bottom: 14px; }
.svc-row-head h2 { font-size: clamp(26px, 2.6vw, 38px); margin: 0 0 12px; }
.svc-row-body .lede { font-size: 17px; margin-bottom: 26px; }
.svc-row-body .checklist li { font-size: 15.5px; }
.svc-row-body .checklist { margin-bottom: 0; }

/* ---------- Location cards ---------- */
.loc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.loc-card {
  border-radius: var(--radius); overflow: hidden; position: relative;
  border: 1px solid var(--line); background: #fff;
  transition: transform .45s var(--ease), box-shadow .45s var(--ease);
}
.loc-card:hover { transform: translateY(-6px); box-shadow: 0 30px 60px -30px rgba(11,19,32,.25); }
.loc-photo { aspect-ratio: 4 / 3; overflow: hidden; }
.loc-photo img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); transition: transform 1.2s var(--ease); }
.loc-card:hover .loc-photo img { transform: scale(1.12); }
.loc-body { padding: 26px 28px 30px; }
.loc-body h3 { font-size: 22px; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 4px; }
.loc-body .loc-region { font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-mid); margin-bottom: 14px; }
.loc-body p { font-size: 14.5px; color: var(--ink-2); text-wrap: pretty; }
.loc-body .loc-mail { display: inline-flex; gap: 8px; align-items: center; margin-top: 18px; font-size: 14px; font-weight: 700; color: var(--accent); }
.loc-body .loc-mail:hover { text-decoration: underline; }

/* ---------- Values ---------- */
.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.value {
  border-top: 2px solid var(--accent); padding: 26px 4px 0;
}
.value h3 { font-size: 19px; font-weight: 700; letter-spacing: -0.015em; margin-bottom: 8px; }
.value p { font-size: 15px; color: var(--ink-2); text-wrap: pretty; }

/* ---------- Blog ---------- */
.post-featured {
  display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(32px, 5vw, 72px);
  align-items: center; background: var(--bg-soft);
  border: 1px solid var(--line); border-radius: calc(var(--radius) + 6px);
  overflow: hidden; margin-bottom: 56px;
  transition: box-shadow .45s var(--ease);
}
.post-featured:hover { box-shadow: 0 36px 70px -36px rgba(11,19,32,.28); }
.post-featured .pf-media { aspect-ratio: 16 / 11; overflow: hidden; align-self: stretch; }
.post-featured .pf-media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.03); transition: transform 1.2s var(--ease); }
.post-featured:hover .pf-media img { transform: scale(1.1); }
.post-featured .pf-body { padding: 40px 48px 40px 0; }
.post-featured .pf-body h2 { font-size: clamp(26px, 2.8vw, 40px); margin: 14px 0 14px; }
.post-featured .pf-body p { color: var(--ink-2); font-size: 16px; margin-bottom: 24px; }

.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.post-card {
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  background: #fff; display: flex; flex-direction: column;
  transition: transform .45s var(--ease), box-shadow .45s var(--ease);
}
.post-card:hover { transform: translateY(-6px); box-shadow: 0 30px 60px -30px rgba(11,19,32,.22); }
.post-card .pc-media { aspect-ratio: 16 / 10; overflow: hidden; }
.post-card .pc-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.post-card:hover .pc-media img { transform: scale(1.08); }
.post-card .pc-body { padding: 24px 26px 28px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.post-meta { display: flex; gap: 14px; font-size: 12.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.post-meta .cat { color: var(--accent-mid); }
.post-card h3 { font-size: 18.5px; font-weight: 700; letter-spacing: -0.015em; line-height: 1.3; }
.post-card p { font-size: 14.5px; color: var(--ink-2); text-wrap: pretty; }
.post-card .pc-read { margin-top: auto; padding-top: 12px; font-size: 14px; font-weight: 700; color: var(--accent); display: inline-flex; align-items: center; gap: 8px; }

/* ---------- Forms ---------- */
.form-card {
  background: #fff; border: 1px solid var(--line); border-radius: calc(var(--radius) + 4px);
  padding: clamp(28px, 3.5vw, 44px);
  box-shadow: 0 40px 80px -48px rgba(11,19,32,.3);
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-grid .field-full { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field label { font-size: 13.5px; font-weight: 700; letter-spacing: .01em; }
.field label .req { color: #C2410C; }
.field input, .field select, .field textarea {
  font-family: var(--font); font-size: 15px; color: var(--ink);
  padding: 13px 16px; border-radius: 12px;
  border: 1.5px solid var(--line); background: var(--bg-soft);
  transition: border-color .25s var(--ease), background .25s var(--ease), box-shadow .25s var(--ease);
  width: 100%;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--accent); background: #fff;
  box-shadow: 0 0 0 4px color-mix(in oklab, var(--accent), transparent 88%);
}
.field .hint { font-size: 12.5px; color: var(--ink-3); }
.form-msg { display: none; margin-top: 18px; padding: 14px 18px; border-radius: 12px; font-size: 14.5px; font-weight: 600; }
.form-msg.show { display: block; }
.form-msg.ok { background: #ECFDF5; color: #065F46; border: 1px solid #A7F3D0; }
.form-msg.err { background: #FEF2F2; color: #991B1B; border: 1px solid #FECACA; }
.form-card .btn { margin-top: 22px; width: 100%; justify-content: center; }

/* ---------- Contact split ---------- */
.contact-split { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.contact-info .eyebrow { color: var(--accent-mid); }
.contact-info h1 { font-size: clamp(36px, 4vw, 56px); line-height: 1.05; letter-spacing: -0.03em; font-weight: 800; margin: 18px 0 18px; text-wrap: balance; }
.contact-info .lede { margin-bottom: 36px; }
.contact-rows { display: grid; gap: 0; border-top: 1px solid var(--line); }
.contact-row { display: flex; gap: 16px; align-items: flex-start; padding: 20px 0; border-bottom: 1px solid var(--line); }
.contact-row .svc-icon { width: 44px; height: 44px; border-radius: 12px; margin: 0; flex: none; }
.contact-row b { display: block; font-size: 15.5px; letter-spacing: -0.01em; }
.contact-row span { font-size: 14px; color: var(--ink-2); }
.contact-row a { color: var(--accent); font-weight: 700; }
.contact-row a:hover { text-decoration: underline; }

/* ---------- White paper landing ---------- */
.wp-hero { background: var(--accent); color: #fff; position: relative; overflow: hidden; padding: 180px 0 110px; }
.wp-hero::before {
  content: ""; position: absolute; right: -180px; top: -200px;
  width: 620px; height: 620px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.12), transparent 65%);
}
.wp-split { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: center; position: relative; z-index: 2; }
.wp-hero .eyebrow { color: rgba(255,255,255,.7); }
.wp-hero h1 { font-size: clamp(36px, 4.6vw, 64px); line-height: 1.05; letter-spacing: -0.03em; font-weight: 800; margin: 18px 0 18px; text-wrap: balance; }
.wp-hero .lede { color: rgba(255,255,255,.78); margin-bottom: 30px; }
.wp-points { list-style: none; display: grid; gap: 13px; }
.wp-points li { display: flex; gap: 13px; align-items: flex-start; font-size: 15.5px; color: rgba(255,255,255,.88); font-weight: 500; }
.wp-points li svg { flex: none; margin-top: 3px; color: #fff; opacity: .85; }
.wp-form-wrap { position: relative; }
.wp-cover {
  position: absolute; top: -34px; right: -18px; z-index: 1;
  width: 132px; aspect-ratio: 3 / 4; border-radius: 8px;
  background: linear-gradient(160deg, #fff, #e8edf4);
  box-shadow: 0 30px 60px -20px rgba(0,0,0,.45);
  padding: 16px 14px; transform: rotate(5deg);
  display: flex; flex-direction: column; justify-content: space-between;
}
.wp-cover .wpc-mark { width: 26px; height: 26px; border-radius: 7px; background: var(--accent); color: #fff; font-size: 10px; font-weight: 800; display: grid; place-items: center; }
.wp-cover .wpc-title { font-size: 12.5px; font-weight: 800; letter-spacing: -0.01em; color: var(--ink); line-height: 1.25; }
.wp-cover .wpc-foot { font-size: 9px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.wp-form-wrap .form-card { position: relative; z-index: 2; }
.wp-form-wrap .form-head { margin-bottom: 22px; }
.wp-form-wrap .form-head h2 { font-size: 24px; margin: 0 0 6px; }
.wp-form-wrap .form-head p { font-size: 14.5px; color: var(--ink-2); }

/* ---------- Article (white paper reader) ---------- */
.article-hero { background: var(--accent); color: #fff; padding: 170px 0 80px; position: relative; overflow: hidden; }
.article-hero::before {
  content: ""; position: absolute; right: -160px; top: -220px;
  width: 600px; height: 600px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.1), transparent 65%);
}
.article-hero .eyebrow { color: rgba(255,255,255,.7); }
.article-hero h1 { font-size: clamp(34px, 4.4vw, 60px); line-height: 1.06; letter-spacing: -0.03em; font-weight: 800; margin: 18px 0 16px; max-width: 22ch; text-wrap: balance; }
.article-meta { display: flex; gap: 22px; font-size: 13.5px; font-weight: 600; color: rgba(255,255,255,.66); flex-wrap: wrap; }

.article { padding: 80px 0 40px; }
.article-body { width: min(760px, 92vw); margin: 0 auto; font-size: 17px; line-height: 1.75; color: var(--ink-2); }
.article-body h2 { font-size: 30px; margin: 56px 0 18px; color: var(--ink); }
.article-body h3 { font-size: 21px; font-weight: 700; letter-spacing: -0.015em; margin: 36px 0 12px; color: var(--ink); }
.article-body p { margin-bottom: 18px; text-wrap: pretty; }
.article-body ul, .article-body ol { margin: 0 0 20px 22px; display: grid; gap: 8px; }
.article-body strong { color: var(--ink); }
.article-body .pull {
  border-left: 3px solid var(--accent); padding: 6px 0 6px 26px;
  font-size: 21px; line-height: 1.5; font-weight: 600; color: var(--ink);
  margin: 36px 0; letter-spacing: -0.01em;
}
.article-body .callout {
  background: var(--accent-soft); border-radius: 14px; padding: 24px 28px;
  margin: 30px 0; font-size: 15.5px;
}
.article-body .callout b { color: var(--accent); }
.article-body table { width: 100%; border-collapse: collapse; margin: 26px 0; font-size: 14.5px; }
.article-body th { text-align: left; font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); padding: 10px 14px; border-bottom: 2px solid var(--line); }
.article-body td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.article-body td:first-child { font-weight: 700; color: var(--ink); white-space: nowrap; }

/* ---------- Stats band (results page) ---------- */
.stat-band { background: var(--bg-soft); border-block: 1px solid var(--line); padding: 64px 0; }
.stat-band-inner { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stat-band .hstat { border-left: 1px solid var(--line); }
.stat-band .hstat:first-child { border-left: none; }
.stat-band .hstat b { color: var(--accent); }
.stat-band .hstat span { color: var(--ink-2); }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .svc-row { grid-template-columns: 1fr; gap: 24px; padding: 56px 0; }
  .svc-row-head { position: static; }
  .loc-grid, .values-grid, .post-grid { grid-template-columns: 1fr; }
  .post-featured { grid-template-columns: 1fr; }
  .post-featured .pf-body { padding: 8px 32px 36px; }
  .contact-split, .wp-split { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .wp-cover { display: none; }
  .stat-band-inner { grid-template-columns: 1fr 1fr; }
  .stat-band .hstat:nth-child(3) { border-left: none; padding-left: 0; }
  .page-hero { padding: 140px 0 64px; }
}
