/*
Theme Name: CNBS NextGen
Theme URI: https://www.cnbs.ca
Author: CNBS INC.
Author URI: https://www.cnbs.ca
Description: Corporate technology theme for CANADIAN NEXTGEN BUSINESS SYSTEMS INC. Dark premium hero with an interactive service stack, a core-service explorer, specialist advisory services, sector tiles, Canada-wide coverage graphic, leadership team, performance statistics, contact form and full footer. Leadership, statistics, contact details, hero text, colours and menus are editable from the WordPress Customizer and Menus screens.
Version: 5.1.42
Requires at least: 6.2
Tested up to: 7.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: cnbs-nextgen
*/

/* ---------- Tokens ---------- */
:root {
  --ink: #0f141b;
  --ink-2: #1a222d;
  --ink-3: #252f3c;
  --red: #d71920;
  --red-deep: #b3121a;
  --red-tint: #fdeceb;
  --paper: #f3f5f8;
  --dark: #000;
  --white: #ffffff;
  --slate: #475467;
  --mute: #98a2b3;
  --line: #e0e4ea;
  --on-ink: #e6e9ee;
  --on-ink-2: #a9b2c0;
  --danger: #b42318;
  --ok: #067647;

  --font-head: "Plus Jakarta Sans", "Segoe UI", system-ui, sans-serif;
  --font-body: "DM Sans", "Segoe UI", system-ui, sans-serif;

  --step--1: clamp(0.84rem, 0.82rem + 0.1vw, 0.9rem);
  --step-0: clamp(1rem, 0.97rem + 0.15vw, 1.0625rem);
  --step-1: clamp(1.15rem, 1.08rem + 0.4vw, 1.4rem);
  --step-2: clamp(1.5rem, 1.3rem + 1vw, 2.1rem);
  --step-3: clamp(1.9rem, 1.5rem + 1.9vw, 3rem);
  --step-4: clamp(2.4rem, 1.7rem + 3.4vw, 4.4rem);

  --wrap: 1200px;
  --gutter: clamp(1.1rem, 4vw, 2.5rem);
  --radius: 10px;
  --shadow: 0 1px 2px rgba(15, 20, 27, 0.06), 0 12px 32px -12px rgba(15, 20, 27, 0.18);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 6rem; }
body { margin: 0; font-family: var(--font-body); font-size: var(--step-0); line-height: 1.65; color: var(--ink); background: var(--white); -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; height: auto; }
a { color: var(--red-deep); text-underline-offset: 0.18em; }
a:hover { color: var(--ink); }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.12; margin: 0 0 0.6em; letter-spacing: -0.025em; font-weight: 700; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; border-radius: 3px; }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: 0.7rem 1rem; z-index: 100; }
.skip-link:focus { left: 0; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.band { padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.band--paper { background: var(--paper); }
.band--ink { background: radial-gradient(50rem 24rem at 100% 0%, rgba(215, 25, 32, 0.16), transparent 65%), var(--dark); color: var(--on-ink); }
.band--ink h2, .band--ink h3 { color: #fff; }
.band__head { max-width: 48rem; margin-bottom: clamp(2rem, 4vw, 3.2rem); }
.band__head h2 { font-size: var(--step-3); }
.band__head p { color: var(--slate); font-size: var(--step-1); line-height: 1.5; margin: 0; }
.band--ink .band__head p { color: var(--on-ink-2); }
.subhead { font-size: var(--step-2); margin: clamp(3rem, 6vw, 4.5rem) 0 1.2rem; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 0.9rem 1.6rem; border-radius: 8px; font: 700 var(--step-0)/1 var(--font-body); text-decoration: none; cursor: pointer; border: 2px solid transparent; transition: background-color 0.2s, color 0.2s, border-color 0.2s, transform 0.2s; }
.btn--primary { background: var(--red); color: #fff; }
.btn--primary:hover { background: #fff; color: var(--ink); }
.btn--ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn--ghost:hover { background: var(--ink); color: #fff; }
.btn--ghost-light { border-color: rgba(255, 255, 255, 0.45); color: #fff; background: transparent; }
.btn--ghost-light:hover { background: #fff; color: var(--ink); border-color: #fff; }
.band .btn--primary:hover, .site-header .btn--primary:hover { background: var(--ink); color: #fff; }
.band--ink .btn--primary:hover { background: #fff; color: var(--ink); }

/* ---------- Top bar and header ---------- */
.topbar { background: var(--dark); color: var(--on-ink-2); font-size: var(--step--1); }
.topbar__row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.2rem 1.5rem; padding-block: 0.55rem; }
.topbar a { color: #fff; text-decoration: none; }
.topbar a:hover { text-decoration: underline; }
.topbar__links { display: flex; flex-wrap: wrap; gap: 0.2rem 1.6rem; }

/* Transparent glass header: see-through, blurs what scrolls beneath, and switches to light text over dark sections (js/main.js adds .is-dark) */
.site-header { background-color: rgba(255, 255, 255, 0.42); -webkit-backdrop-filter: blur(22px) saturate(180%); backdrop-filter: blur(22px) saturate(180%); border-bottom: 1px solid rgba(255, 255, 255, 0.5); box-shadow: 0 8px 32px rgba(10, 14, 19, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.8); position: sticky; top: 0; z-index: 50; transition: background-color 0.3s, border-color 0.3s; }
.site-header.is-dark { background-color: rgba(10, 14, 19, 0.38); border-bottom-color: rgba(255, 255, 255, 0.16); box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.14); }
.site-header .brand__text, .site-header .brand__text small, .site-header .primary-nav > ul > li > a:not(.btn), .site-header .nav-toggle { transition: color 0.3s, border-color 0.3s; }
.site-header.is-dark .brand__text, .site-header.is-dark .primary-nav > ul > li > a:not(.btn), .site-header.is-dark .nav-toggle { color: #fff; }
.site-header.is-dark .brand__text small { color: rgba(255, 255, 255, 0.72); }
.site-header.is-dark .nav-toggle { border-color: rgba(255, 255, 255, 0.7); }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) { .site-header { background-color: rgba(255, 255, 255, 0.97); } .site-header.is-dark { background-color: rgba(10, 14, 19, 0.96); } }
.site-header__row { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 6.2rem; }
.brand { display: inline-flex; align-items: center; gap: 1rem; text-decoration: none; color: var(--ink); }
.brand img { width: 4.6rem; height: 4.6rem; object-fit: contain; flex: none; }
.brand__text { font-family: var(--font-head); font-weight: 800; font-size: 1.85rem; letter-spacing: 0.01em; line-height: 1; -webkit-text-stroke: 0.6px currentColor; }
.brand__text small { display: block; white-space: nowrap; font-family: var(--font-body); font-weight: 700; font-size: 0.66rem; letter-spacing: 0.1em; color: var(--slate); margin-top: 0.5rem; -webkit-text-stroke: 0; }
.nav-toggle { display: none; background: none; border: 2px solid var(--ink); border-radius: 8px; padding: 0.5rem 0.8rem; font: 700 0.95rem var(--font-body); color: var(--ink); cursor: pointer; }
.primary-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: clamp(1rem, 1.8vw, 1.8rem); white-space: nowrap; }
.primary-nav a { text-decoration: none; color: var(--ink); font-weight: 600; font-size: 0.97rem; padding: 0.4rem 0; border-bottom: 2px solid transparent; }
.primary-nav a:hover { border-color: var(--red); }
.primary-nav a.btn { padding: 0.75rem 1.3rem; color: #fff; border: 2px solid transparent; }
.primary-nav a.btn:hover { border-color: transparent; color: #fff; }

/* ---------- Hero (dark, premium) ---------- */
.hero { position: relative; color: #fff; overflow: hidden; padding: clamp(3rem, 7vw, 6rem) 0 clamp(3rem, 6vw, 5rem); background: var(--dark); }
.hero::before { content: ""; position: absolute; inset: 0; pointer-events: none; background-image: linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px); background-size: 56px 56px;  }
.hero__grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 4rem); align-items: center; }
.hero h1 { font-size: clamp(2.2rem, 1.5rem + 2.5vw, 3.3rem); font-weight: 700; line-height: 1.05; letter-spacing: -0.035em; max-width: 15em; margin-bottom: 0.55em; color: #fff; text-wrap: balance; }
.hero h1::before { content: ""; display: block; width: 3.4rem; height: 5px; border-radius: 3px; background: var(--red); margin-bottom: 1.5rem; box-shadow: 0 0 24px rgba(215, 25, 32, 0.7); }
.hero__lede { font-size: clamp(1.05rem, 1rem + 0.25vw, 1.2rem); color: #c6cdd8; max-width: 34em; line-height: 1.55; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 2rem; }
.hero__facts { list-style: none; padding: 0; margin: 2.4rem 0 0; display: flex; flex-wrap: wrap; gap: 0.5rem 1.8rem; color: #aeb7c4; font-size: var(--step--1); }
.hero__facts li { padding-left: 1.2rem; position: relative; }
.hero__facts li::before { content: ""; position: absolute; left: 0; top: 0.5em; width: 0.5rem; height: 0.5rem; background: var(--red); border-radius: 1px; transform: rotate(45deg); }

/* Hero photo: sits to the right of the globe, shaded into the black page */
.hero__photo { position: absolute; z-index: 0; top: 0; right: 0; bottom: 0; width: 44%; margin: 0; overflow: hidden; background: #000; pointer-events: none; }
.hero__photo img { display: block; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: 12% 50%; }
.hero__photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, #000 0%, rgba(0, 0, 0, 0.9) 12%, rgba(0, 0, 0, 0.58) 38%, rgba(0, 0, 0, 0.3) 100%), linear-gradient(180deg, #000 0%, rgba(0, 0, 0, 0) 18%, rgba(0, 0, 0, 0) 80%, #000 100%); }
.hero::before { z-index: 1; }

@media (max-width: 1100px) {
  .hero__photo img { object-position: 62% 45%; }
  .hero__photo::after { background: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, 0.35) 38%, rgba(0, 0, 0, 0.18) 70%, #000 100%), linear-gradient(90deg, #000 0%, rgba(0, 0, 0, 0) 14%, rgba(0, 0, 0, 0) 86%, #000 100%); }
  .hero__photo { position: relative; width: auto; height: clamp(13rem, 46vw, 24rem); margin: clamp(2rem, 5vw, 3rem) 0 calc(-1 * clamp(3rem, 6vw, 5rem)); }
}

/* ---------- Service stack ---------- */
.stack { display: grid; gap: 1.1rem; }
.globe { position: relative; width: 100%; max-width: 30rem; margin-inline: auto; aspect-ratio: 1; }
.globe__canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; cursor: grab; }
.globe.is-dragging .globe__canvas { cursor: grabbing; }
.globe__chips { position: absolute; inset: 0 7%; pointer-events: none; }
.globe__chip { position: absolute; transform: translate(-50%, -50%); pointer-events: auto; display: grid; justify-items: center; gap: 0.3rem; padding: 0; background: none; border: 0; color: #fff; font: inherit; cursor: pointer; }
.globe__icon { display: grid; place-items: center; width: 3rem; height: 3rem; border-radius: 50%; background: rgba(10, 12, 16, 0.92); border: 1px solid rgba(255, 255, 255, 0.35); transition: background 0.2s, border-color 0.2s, transform 0.2s; }
.globe__name { font-size: 0.8rem; font-weight: 700; color: rgba(255, 255, 255, 0.82); text-shadow: 0 1px 8px #000; }
.globe__chip:hover .globe__icon, .globe__chip:focus-visible .globe__icon { border-color: #fff; transform: scale(1.06); }
.globe__chip:focus-visible { outline: 2px solid #fff; outline-offset: 4px; border-radius: 8px; }
.globe__chip.is-active .globe__icon { background: var(--red); border-color: #fff; box-shadow: 0 0 0 6px rgba(215, 25, 32, 0.25); }
.globe__chip.is-active .globe__name { color: #fff; }
.globe__reset { position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); background: rgba(255, 255, 255, 0.06); color: rgba(255, 255, 255, 0.8); border: 1px solid rgba(255, 255, 255, 0.22); border-radius: 99px; padding: 0.25rem 0.8rem; font: inherit; font-size: 0.75rem; font-weight: 600; cursor: pointer; }
.globe__reset:hover { background: #fff; color: #000; }
@media (max-width: 480px) { .globe__icon { width: 2.6rem; height: 2.6rem; } .globe__name { font-size: 0.72rem; } }
.stack__svg { width: 100%; max-width: 480px; margin-inline: auto; display: block; overflow: visible; }
.orbit { fill: none; stroke: rgba(255, 255, 255, 0.14); stroke-width: 1; stroke-dasharray: 2 7; transform-origin: 280px 250px; }
.orbit--1 { animation: spin 90s linear infinite; }
.orbit--2 { animation: spin 140s linear infinite reverse; }
.orbit--3 { animation: spin 200s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.link { stroke: rgba(255, 255, 255, 0.22); stroke-width: 1.2; stroke-dasharray: 4 6; transition: stroke 0.3s; }
.hub { filter: drop-shadow(0 0 28px rgba(215, 25, 32, 0.5)); }
.arc { fill: none; stroke: rgba(255, 255, 255, 0.2); stroke-width: 5; stroke-linecap: round; transition: stroke 0.35s; }
.arc.is-active { stroke: var(--red); filter: drop-shadow(0 0 8px rgba(215, 25, 32, 0.9)); }
.hub-icon { opacity: 0; transition: opacity 0.35s; }
.hub-icon.is-active { opacity: 1; }
.hub-glyph { fill: none; stroke: #ffffff; stroke-width: 1.1; stroke-linecap: round; stroke-linejoin: round; }
.hub-name { font: 700 14px var(--font-head); fill: #ffffff; letter-spacing: 0.02em; }
.hub-label { font: 800 15px var(--font-head); fill: #ffffff; letter-spacing: 0.06em; }
.layer { cursor: pointer; outline: none; }
.node { fill: url(#node-fill); stroke: rgba(255, 255, 255, 0.28); stroke-width: 1.5; transition: fill 0.3s, stroke 0.3s; }
.node-halo { fill: none; stroke: rgba(215, 25, 32, 0); stroke-width: 2; transition: stroke 0.3s; }
.node-icon { fill: none; stroke: #ffffff; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.node-label { font: 700 16px var(--font-head); fill: #c6cdd8; transition: fill 0.3s; }
.layer:hover .node, .layer:focus-visible .node { stroke: #ffffff; }
.layer.is-active .node { fill: var(--red); stroke: #ffffff; }
.layer.is-active .node-halo { stroke: rgba(215, 25, 32, 0.6); animation: halo 2.4s ease-out infinite; transform-box: fill-box; transform-origin: center; }
.layer.is-active .node-label { fill: #ffffff; }
@keyframes halo { from { transform: scale(0.85); opacity: 1; } to { transform: scale(1.35); opacity: 0; } }
.stack.has-active .link { stroke: rgba(255, 255, 255, 0.16); }
.link.is-active { stroke: var(--red) !important; stroke-width: 2; stroke-dasharray: 6 6; animation: flow 1.1s linear infinite; }
@keyframes flow { to { stroke-dashoffset: -24; } }
.stack__panel { display: grid; color: var(--on-ink); padding: 1.1rem 1.5rem; background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.14); border-radius: 12px; }
.stack__panel h2 { color: #fff; font-size: var(--step-1); margin-bottom: 0.3rem; }
.stack__panel > [data-panel] { grid-area: 1 / 1; }
.stack__panel > [data-panel][hidden] { display: block; visibility: hidden; }
.stack__panel p { margin: 0 0 0.8rem; color: var(--on-ink-2); font-size: var(--step--1); }
.stack__panel ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.4rem; }
.stack__panel li a { background: rgba(255, 255, 255, 0.06); display: inline-block; padding: 0.22rem 0.65rem; border: 1px solid rgba(255, 255, 255, 0.22); border-radius: 99px; color: #fff; text-decoration: none; font-size: 0.8rem; font-weight: 600; }
.stack__panel li a:hover, .stack__panel li a:focus-visible { background: #fff; border-color: #fff; color: var(--ink); }

/* ---------- Facts bar ---------- */
.facts { background: var(--white); border-bottom: 1px solid var(--line); }
.facts__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.fact { position: relative; display: flex; flex-direction: column; align-items: stretch; justify-content: flex-start; width: 100%; text-align: left; font: inherit; color: inherit; background: none; border: 0; border-left: 1px solid var(--line); padding: 1.8rem 2.4rem 1.8rem 1.4rem; cursor: pointer; transition: background-color 0.2s; }
.fact:first-child { border-left: 0; padding-left: 0.6rem; }
.fact:hover { background: var(--paper); }
.fact strong { display: block; font: 800 clamp(1.4rem, 1.1rem + 0.9vw, 1.7rem)/1.15 var(--font-head); white-space: nowrap; color: var(--ink); letter-spacing: -0.03em; }
.fact span { display: block; margin-top: 0.5rem; color: var(--slate); font-size: 0.95rem; }
.fact::after { content: ""; position: absolute; left: 1.4rem; right: 1.4rem; bottom: 0; height: 3px; background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform 0.3s; }
.fact:first-child::after { left: 0.6rem; }
.fact[aria-expanded="true"]::after, .fact:hover::after { transform: scaleX(1); }
.fact__chev { position: absolute; right: 1rem; top: 2.1rem; width: 0.6rem; height: 0.6rem; border-right: 2px solid var(--red); border-bottom: 2px solid var(--red); transform: rotate(45deg); transition: transform 0.25s; }
.fact[aria-expanded="true"] .fact__chev { transform: rotate(-135deg); top: 2.4rem; }
.fact-detail { display: flex; align-items: center; gap: 1.2rem; flex-wrap: wrap; padding: 1.3rem 1.4rem; margin-bottom: 1.2rem; background: var(--paper); border-left: 4px solid var(--red); border-radius: 0 var(--radius) var(--radius) 0; animation: panelin 0.3s ease both; }
.fact-detail[hidden] { display: none; }
.fact-detail img { flex: none; }
.fact-detail p { margin: 0; flex: 1 1 22rem; color: var(--ink); max-width: 52rem; }
.fact-detail .btn { padding: 0.75rem 1.2rem; }

/* ---------- Core service explorer ---------- */
.core-band .band__head p { color: var(--on-ink-2); }
.explorer { display: grid; grid-template-columns: minmax(16rem, 0.36fr) minmax(0, 1fr); border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 14px; background: linear-gradient(160deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02)); overflow: hidden; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.7); }
.explorer__tabs { display: flex; flex-direction: column; border-right: 1px solid rgba(255, 255, 255, 0.1); background: rgba(0, 0, 0, 0.22); }
.tab { position: relative; display: flex; align-items: center; gap: 0.9rem; text-align: left; padding: 1rem 1.2rem 1rem 1.4rem; background: none; border: 0; border-bottom: 1px solid rgba(255, 255, 255, 0.07); color: var(--on-ink-2); font: 600 0.98rem/1.25 var(--font-body); cursor: pointer; transition: background-color 0.2s, color 0.2s; }
.tab:last-child { border-bottom: 0; }
.tab::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--red); transform: scaleY(0); transition: transform 0.25s; }
.tab:hover { background: rgba(255, 255, 255, 0.05); color: #fff; }
.tab[aria-selected="true"] { background: rgba(255, 255, 255, 0.09); color: #fff; }
.tab[aria-selected="true"]::before { transform: scaleY(1); }
.tab__icon { flex: none; width: 2.3rem; height: 2.3rem; display: grid; place-items: center; border-radius: 8px; border: 1px solid rgba(255, 255, 255, 0.18); }
.tab[aria-selected="true"] .tab__icon { background: var(--red); border-color: var(--red); }
.tab__icon svg { width: 1.2rem; height: 1.2rem; fill: none; stroke: #fff; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.explorer__panels { padding: clamp(1.5rem, 3.5vw, 2.8rem); min-width: 0; }
.panel { display: none; }
.panel:focus-visible { outline-offset: 6px; }
.explorer:not(.is-ready) .panel:first-child, .panel.is-active { display: block; }
.explorer.is-ready .panel:first-child:not(.is-active) { display: none; }
.panel { animation: panelin 0.35s ease both; }
@keyframes panelin { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.panel__icon { width: 3.6rem; height: 3.6rem; display: grid; place-items: center; border-radius: 12px; background: linear-gradient(145deg, var(--red), var(--red-deep)); margin-bottom: 1.2rem; box-shadow: 0 12px 28px -8px rgba(215, 25, 32, 0.6); }
.panel__icon svg { width: 1.9rem; height: 1.9rem; fill: none; stroke: #fff; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.panel h3 { font-size: var(--step-2); margin-bottom: 0.25em; color: #fff; }
.panel__tag { color: var(--on-ink-2); font-size: var(--step-0); max-width: 40em; margin-bottom: 1.6rem; }
.capabilities { list-style: none; margin: 0 0 1.6rem; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.7rem; }
.capabilities li { position: relative; padding: 0.85rem 1rem 0.85rem 2.7rem; background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 8px; font-size: 0.96rem; color: var(--on-ink); }
.capabilities li::before { content: ""; position: absolute; left: 1rem; top: 1rem; width: 1.05rem; height: 1.05rem; border-radius: 50%; background: var(--red) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.3 2.3 4.7-4.9' fill='none' stroke='%23fff' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat; }
.outcome { margin-bottom: 1.8rem; padding: 1rem 1.2rem; border-left: 3px solid var(--red); background: rgba(215, 25, 32, 0.1); border-radius: 0 8px 8px 0; }
.outcome strong { display: block; font: 700 0.9rem var(--font-head); color: #fff; margin-bottom: 0.25rem; }
.outcome p { margin: 0; color: var(--on-ink); }

/* ---------- Specialist services ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.6rem; }
.filter { font: 600 var(--step--1) var(--font-body); padding: 0.6rem 1.1rem; border-radius: 99px; border: 1.5px solid var(--line); background: var(--white); color: var(--ink); cursor: pointer; transition: border-color 0.2s, background-color 0.2s; }
.filter:hover { border-color: var(--ink); }
.filter[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.services { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 1.25rem; }
.service { background: var(--white); border: 1px solid var(--line); border-top: 4px solid var(--ink); border-radius: var(--radius); padding: 1.5rem 1.5rem 1.3rem; display: flex; flex-direction: column; transition: border-top-color 0.2s, box-shadow 0.25s; }
.service:hover { border-top-color: var(--red); box-shadow: var(--shadow); }
.service[hidden] { display: none; }
.service__name { font-size: var(--step-1); margin-bottom: 0.15em; }
.service__name span { color: var(--slate); font-weight: 500; }
.service__tier { display: inline-block; align-self: flex-start; font: 700 0.76rem var(--font-body); padding: 0.2rem 0.65rem; border-radius: 99px; background: var(--paper); border: 1px solid var(--line); margin-bottom: 0.9rem; }
.service__tier--platinum { background: #e9ecf1; border-color: #b9c0cb; }
.service__tier--advanced { background: var(--red-tint); border-color: #f0b6b3; color: var(--red-deep); }
.service__tagline { font-weight: 700; margin-bottom: 0.5rem; }
.service__what { color: var(--slate); font-size: 0.97rem; }
.service dl { margin: auto 0 0; padding-top: 0.9rem; border-top: 1px solid var(--line); font-size: 0.92rem; }
.service dt { font-weight: 700; }
.service dd { margin: 0; color: var(--slate); }
.service__price { margin: 0.8rem 0 0; font-family: var(--font-head); font-weight: 700; }
.service__more { margin-top: 1.1rem; align-self: flex-start; padding: 0.75rem 1.2rem; font-size: var(--step--1); line-height: 1.25; text-align: center; }

/* ---------- Industries ---------- */
.sectors { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.sectors li { display: flex; align-items: center; gap: 1rem; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.2rem; transition: box-shadow 0.25s, border-color 0.25s, transform 0.25s; }
.sectors li:hover { box-shadow: var(--shadow); border-color: #c9ced7; transform: translateY(-2px); }
.sector__icon { flex: none; width: 3rem; height: 3rem; display: grid; place-items: center; border-radius: 10px; background: var(--ink); }
.sector__icon svg { width: 1.5rem; height: 1.5rem; fill: none; stroke: #fff; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.sectors li:hover .sector__icon { background: var(--red); }
.sector__name { font: 700 0.98rem/1.25 var(--font-head); }

/* ---------- Process ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.6rem; counter-reset: step; }
.steps li { position: relative; padding-top: 3.6rem; counter-increment: step; }
.steps li::before { content: counter(step); position: absolute; top: 0; left: 0; width: 2.7rem; height: 2.7rem; display: grid; place-items: center; border-radius: 50%; background: var(--red); color: #fff; font: 800 1.15rem var(--font-head); box-shadow: 0 0 0 6px rgba(215, 25, 32, 0.18); }
.steps li::after { content: ""; position: absolute; top: 1.35rem; left: 3.6rem; right: -1rem; height: 2px; background: rgba(255, 255, 255, 0.2); }
.steps li:last-child::after { display: none; }
.steps h3 { font-size: var(--step-1); margin-bottom: 0.3em; }
.steps p { color: var(--on-ink-2); font-size: 0.97rem; margin: 0; }

/* ---------- About, coverage, leadership ---------- */
.about { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.about h2 { font-size: var(--step-3); }
.about__text { color: var(--slate); font-size: var(--step-1); line-height: 1.55; }
.creds { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.creds li { padding: 1.1rem 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 9.5rem 1fr; gap: 1rem; }
.creds strong { font-family: var(--font-head); font-weight: 700; }
.creds span { color: var(--slate); }
/* ---------- Team ---------- */
.band__head--center { margin-inline: auto; text-align: center; }
.team { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 260px)); justify-content: center; gap: clamp(2rem, 4vw, 3.2rem) clamp(1.2rem, 3vw, 2.4rem); }
.member { margin: 0; text-align: center; }
.member img { width: min(100%, 220px); aspect-ratio: 1; height: auto; object-fit: cover; border-radius: 50%; border: 5px solid var(--white); box-shadow: 0 0 0 2px var(--red), var(--shadow); margin-bottom: 1.2rem; }
.member strong { display: block; font: 800 1.15rem var(--font-head); }
.member span { display: block; margin-top: 0.25rem; color: var(--red-deep); font-weight: 700; font-size: 0.95rem; }

/* ---------- Statistics band ---------- */
.stats .band__head p { color: var(--on-ink-2); }
.stats__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid rgba(255, 255, 255, 0.14); }
.stat { padding: 2rem 1.4rem 0.4rem; border-left: 1px solid rgba(255, 255, 255, 0.12); text-align: center; }
.stat:first-child { border-left: 0; }
.stat__num { display: block; font: 800 var(--step-4)/1 var(--font-head); letter-spacing: -0.03em; color: #fff; font-variant-numeric: tabular-nums; }
.stat__label { display: block; margin-top: 0.7rem; font: 700 1.05rem var(--font-head); color: #fff; }
.stat p { margin: 0.4rem 0 0; color: var(--on-ink-2); font-size: 0.93rem; }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(2rem, 5vw, 4rem); }
.contact h2 { font-size: var(--step-3); }
.contact > div > p { color: var(--on-ink-2); font-size: var(--step-1); }
.contact dl { margin: 1.8rem 0 0; display: grid; gap: 1.1rem; }
.contact dt { font-weight: 700; color: #fff; }
.contact dd { margin: 0.1rem 0 0; color: var(--on-ink-2); line-height: 1.55; }
.contact dd a { color: #fff; }
.form { background: var(--white); color: var(--ink); border-radius: var(--radius); padding: clamp(1.3rem, 3vw, 2.1rem); display: grid; gap: 1rem; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.5); }
.form label { display: grid; gap: 0.35rem; font-weight: 700; font-size: 0.95rem; }
.form input, .form select, .form textarea { font: inherit; font-weight: 400; padding: 0.8rem 0.9rem; border: 1.5px solid #b9c0cb; border-radius: 8px; background: #fff; color: var(--ink); width: 100%; }
.form textarea { min-height: 8.5rem; resize: vertical; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form .hp { position: absolute; left: -9999px; }
.notice { padding: 0.9rem 1rem; border-radius: 8px; font-weight: 700; margin: 0; }
.notice--ok { background: #e3f6ec; color: var(--ok); }
.notice--err { background: #fde8e6; color: var(--danger); }

/* ---------- Footer ---------- */
.site-footer { background: var(--dark); color: var(--on-ink-2); padding-top: clamp(2.5rem, 5vw, 4rem); font-size: 0.95rem; border-top: 4px solid var(--red); }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 2rem; padding-bottom: 2.5rem; }
.footer-brand img { width: 6.5rem; height: 6.5rem; margin-bottom: 1rem; }
.footer-brand p { max-width: 24rem; }
.site-footer h3 { color: #fff; font-size: 1rem; margin-bottom: 0.9rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.site-footer address { font-style: normal; line-height: 1.7; }
.footer-base { border-top: 1px solid rgba(255, 255, 255, 0.12); padding-block: 1.2rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.6rem 2rem; font-size: 0.88rem; }
.footer-base p { margin: 0; }
.site-footer .social { display: flex; flex-direction: row; gap: 0.6rem; margin-top: 1.2rem; }
.social a { width: 2.5rem; height: 2.5rem; display: grid; place-items: center; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.28); transition: background-color 0.2s, border-color 0.2s; }
.social a:hover { background: var(--red); border-color: var(--red); text-decoration: none; }
.social svg { width: 1.15rem; height: 1.15rem; fill: none; stroke: #fff; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Inner pages ---------- */
.page-head { background: linear-gradient(160deg, #0a0e13, #1a2330); color: #fff; padding-block: clamp(2.5rem, 6vw, 4rem); border-bottom: 4px solid var(--red); }
.page-head h1 { font-size: var(--step-3); margin: 0; }
.content { max-width: 46rem; padding-block: clamp(2rem, 5vw, 4rem); }
.content :where(h2, h3) { margin-top: 1.6em; }
.post-list article { padding-block: 1.4rem; border-bottom: 1px solid var(--line); }
.post-list h2 { font-size: var(--step-1); margin-bottom: 0.2em; }
.post-list a { text-decoration: none; color: var(--ink); }
.post-list a:hover { color: var(--red-deep); }
.meta { color: var(--slate); font-size: var(--step--1); }

/* ---------- Responsive ---------- */
@media (max-width: 1040px) {
  .sectors, .team, .stats__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat:nth-child(3) { border-left: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .facts__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fact:nth-child(3) { border-left: 0; padding-left: 0; }
}
@media (max-width: 900px) {
  .explorer { grid-template-columns: 1fr; }
  .explorer__tabs { flex-direction: row; overflow-x: auto; border-right: 0; border-bottom: 1px solid rgba(255, 255, 255, 0.1); scroll-snap-type: x proximity; }
  .tab { flex: none; border-bottom: 0; border-right: 1px solid rgba(255, 255, 255, 0.07); scroll-snap-align: start; }
  .tab::before { top: auto; left: 0; right: 0; bottom: 0; width: auto; height: 4px; transform: scaleX(0); }
  .tab[aria-selected="true"]::before { transform: scaleX(1); }
}
@media (max-width: 960px) {
  .hero__grid, .about, .contact { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps li::after { display: none; }
}
@media (max-width: 1100px) {
  .site-header.is-dark .primary-nav { background: #0a0e13; border-bottom-color: rgba(255, 255, 255, 0.16); }
  .site-header.is-dark .primary-nav .sub-menu a { color: #fff; }
  .nav-toggle { display: inline-block; }
  .primary-nav { position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--line); padding: 1rem var(--gutter) 1.4rem; display: none; }
  .primary-nav.is-open { display: block; }
  .primary-nav ul { flex-direction: column; align-items: flex-start; gap: 0.9rem; }
}
@media (max-width: 800px) {
  .topbar__row { flex-direction: column; }
}
@media (max-width: 600px) {
  .steps, .form__row, .footer-grid, .facts__grid, .capabilities { grid-template-columns: 1fr; }
  .sectors { grid-template-columns: 1fr; }
  .team { gap: 1.8rem 1rem; }
  .stat { padding-inline: 0.6rem; }
  .brand img { width: 3.8rem; height: 3.8rem; }
  .brand__text { font-size: 1.5rem; }
  .brand__text small { display: none; }
  .site-header__row { min-height: 5rem; }
  .fact { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); }
  .fact:first-child { border-top: 0; }
  .creds li { grid-template-columns: 1fr; gap: 0.2rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}


/* ---------- Canadian theme: maple leaf accents ---------- */
.leaf-watermark { position: absolute; right: -8%; top: 50%; width: clamp(18rem, 36vw, 34rem); height: auto; transform: translateY(-50%) rotate(-8deg); opacity: 0.06; pointer-events: none; user-select: none; filter: saturate(1.2); }
.leaf-watermark--sm { top: 50%; right: auto; left: -4%; width: clamp(14rem, 24vw, 24rem); opacity: 0.05; }
.stats { position: relative; overflow: hidden; }
.stats > .wrap { position: relative; }
.leaf-inline { display: inline-block; width: 0.85em; height: auto; margin-right: 0.35em; vertical-align: -0.08em; }
.topbar__loc { display: inline-flex; align-items: center; gap: 0.5rem; }
.topbar__loc img { display: block; }
.footer-base .proud { display: inline-flex; align-items: center; gap: 0.5rem; }

/* ---------- Specialist section (dark) ---------- */
.band--specialist { background: radial-gradient(40rem 22rem at 0% 100%, rgba(215, 25, 32, 0.14), transparent 65%), var(--dark); border-top: 1px solid rgba(255, 255, 255, 0.08); }
.band--specialist .band__head p { color: var(--on-ink-2); }
.band--specialist .filter { background: transparent; border-color: rgba(255, 255, 255, 0.25); color: var(--on-ink); }
.band--specialist .filter:hover { border-color: #fff; color: #fff; }
.band--specialist .filter[aria-pressed="true"] { background: var(--red); border-color: var(--red); color: #fff; }
.band--specialist .service { background: linear-gradient(160deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02)); border-color: rgba(255, 255, 255, 0.12); border-top-color: var(--red); color: var(--on-ink); }
.band--specialist .service:hover { border-top-color: #fff; box-shadow: 0 24px 50px -24px rgba(0, 0, 0, 0.8); }
.band--specialist .service__name { color: #fff; }
.band--specialist .service__name span { color: var(--on-ink-2); }
.band--specialist .service__tier { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.22); color: #fff; }
.band--specialist .service__tier--advanced { background: rgba(215, 25, 32, 0.25); border-color: rgba(215, 25, 32, 0.6); color: #ffd9d7; }
.band--specialist .service__tagline { color: #fff; }
.band--specialist .service__what, .band--specialist .service dd { color: var(--on-ink-2); }
.band--specialist .service dt { color: #fff; }
.band--specialist .service dl { border-top-color: rgba(255, 255, 255, 0.14); }
.band--specialist .service__price { color: #fff; }

/* ---------- History timeline ---------- */
.history__title { font-size: var(--step-2); margin-bottom: 1.4rem; }
.history { list-style: none; margin: 0; padding: 0 0 0 0.2rem; position: relative; }
.history::before { content: ""; position: absolute; left: 4.35rem; top: 0.6rem; bottom: 0.6rem; width: 2px; background: linear-gradient(var(--red), var(--line) 85%); }
.history li { position: relative; display: grid; grid-template-columns: 3.6rem 1fr; gap: 1.6rem; padding-bottom: 1.5rem; }
.history li:last-child { padding-bottom: 0; }
.history li::before { content: ""; position: absolute; left: 3.9rem; top: 0.38rem; width: 0.9rem; height: 0.9rem; border-radius: 50%; background: var(--white); border: 3px solid var(--red); box-shadow: 0 0 0 4px var(--white); }
.history li:last-child::before { background: var(--red); }
.history__year { font: 800 1.15rem var(--font-head); color: var(--ink); letter-spacing: -0.01em; }
.history strong { display: block; font: 700 1.02rem var(--font-head); }
.history p { margin: 0.15rem 0 0; color: var(--slate); font-size: 0.96rem; }
@media (max-width: 1040px) { .fact { padding-right: 1.6rem; } .fact:nth-child(3) { border-left: 0; padding-left: 0.6rem; } .fact:nth-child(3)::after { left: 0.6rem; } }
@media (max-width: 600px) {
  .fact, .fact:first-child, .fact:nth-child(3) { border-left: 0; border-top: 1px solid var(--line); padding-left: 0.4rem; }
  .fact:first-child { border-top: 0; }
  .fact::after, .fact:first-child::after, .fact:nth-child(3)::after { left: 0.4rem; }
  .topbar__loc { align-items: flex-start; }
}

/* ---------- Canada coverage map (clean, frameless) ---------- */
.coverage { margin: 0 auto; max-width: 1040px; }
.coverage svg { display: block; width: 100%; height: auto; overflow: visible; }
.coverage .land { fill: url(#land-fill); stroke: none; filter: url(#land-shadow); }
.coverage .route { stroke: #ffffff; stroke-opacity: 0.38; stroke-width: 1; stroke-dasharray: 2 5; stroke-linecap: round; }
.coverage .city-dot { fill: #ffffff; stroke: none; }
.coverage .hub-dot { fill: #ffffff; stroke: var(--ink); stroke-width: 3; }
.coverage .pulse { fill: none; stroke: #ffffff; stroke-width: 1.5; transform-box: fill-box; transform-origin: center; animation: pulse 2.6s ease-out infinite; }
@keyframes pulse { from { transform: scale(1); opacity: 0.9; } to { transform: scale(3.6); opacity: 0; } }
.coverage text { paint-order: stroke; stroke: var(--paper); stroke-linejoin: round; }
.coverage text.node { font: 600 12.5px var(--font-body); fill: var(--ink); stroke-width: 2.5px; letter-spacing: 0.01em; }
.coverage text.hub { font: 800 15px var(--font-head); fill: var(--ink); stroke-width: 3.5px; }
.coverage text.node--in { fill: #ffffff; stroke: #8f0f15; stroke-opacity: 0.55; stroke-width: 3px; }
.coverage figcaption { display: flex; flex-wrap: wrap; gap: 0.5rem 1.8rem; justify-content: center; padding: 1.4rem 0.5rem 0; color: var(--slate); font-size: 0.92rem; }
.legend { display: inline-flex; align-items: center; gap: 0.5rem; }
.legend i { width: 0.7rem; height: 0.7rem; border-radius: 50%; display: inline-block; }
.legend__hub { background: #fff; border: 3px solid var(--ink); width: 0.85rem; height: 0.85rem; }
.legend__city { width: 1rem; height: 1rem; background: radial-gradient(circle, #ffffff 0 30%, var(--red) 34%); }

/* ---------- FAQ ---------- */
.faq { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.faq__intro h2 { font-size: var(--step-3); }
.faq__intro p { color: var(--slate); font-size: var(--step-1); }
.faq__list { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 1.2rem 2.5rem 1.2rem 0; font: 700 1.08rem/1.35 var(--font-head); position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 0.4rem; top: 1.45rem; width: 0.6rem; height: 0.6rem; border-right: 2px solid var(--red); border-bottom: 2px solid var(--red); transform: rotate(45deg); transition: transform 0.25s; }
.faq details[open] summary::after { transform: rotate(-135deg); top: 1.7rem; }
.faq details p { margin: 0 0 1.3rem; color: var(--slate); max-width: 40rem; }
.primary-nav a.is-current:not(.btn) { border-color: var(--red); }
@media (max-width: 960px) { .faq { grid-template-columns: 1fr; } }

@media (max-width: 900px) {
}

/* ---------- WordPress core classes ---------- */
.screen-reader-text { border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; width: 1px; word-wrap: normal; }
.screen-reader-text:focus { background: var(--white); clip: auto; clip-path: none; color: var(--ink); display: block; height: auto; width: auto; left: 0.5rem; top: 0.5rem; padding: 0.8rem 1.2rem; z-index: 100000; }
.alignleft { float: left; margin: 0.3em 1.5em 1em 0; }
.alignright { float: right; margin: 0.3em 0 1em 1.5em; }
.aligncenter { display: block; margin-inline: auto; text-align: center; }
.wp-caption, .wp-block-image figcaption, figcaption { font-size: var(--step--1); color: var(--slate); }
.wp-caption { max-width: 100%; }
.sticky, .bypostauthor { display: block; }
.gallery { display: grid; gap: 0.75rem; grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); }

/* ---------- Page and post content (block editor output) ---------- */
.content--wide { max-width: var(--wrap); }
.content img, .content video, .content iframe, .content embed { max-width: 100%; height: auto; }
.content__image { margin: 0 0 1.6rem; }
.content__image img { border-radius: var(--radius); width: 100%; }
.entry > * + * { margin-top: 1.1em; }
.entry :where(ul, ol) { padding-left: 1.4em; }
.entry blockquote, .entry .wp-block-quote { margin: 1.6em 0; padding: 0.4em 0 0.4em 1.2em; border-left: 4px solid var(--red); color: var(--slate); font-size: var(--step-1); }
.entry table { width: 100%; border-collapse: collapse; font-size: var(--step--1); }
.entry th, .entry td { text-align: left; padding: 0.6rem 0.8rem; border-bottom: 1px solid var(--line); }
.entry th { background: var(--paper); }
.entry pre, .entry code { background: var(--paper); border-radius: 6px; font-size: 0.9em; }
.entry pre { padding: 1rem; overflow-x: auto; }
.entry code { padding: 0.1em 0.35em; }
.entry hr, .entry .wp-block-separator { border: 0; border-top: 1px solid var(--line); margin-block: 2em; }
.entry .wp-block-button__link { background: var(--red); color: #fff; border-radius: 8px; padding: 0.9rem 1.6rem; font-weight: 700; text-decoration: none; }
.entry .wp-block-button__link:hover { background: var(--ink); color: #fff; }
.entry .is-style-outline .wp-block-button__link { background: transparent; color: var(--ink); border: 2px solid var(--ink); }
.entry .wp-block-columns { gap: 2rem; }
.content--wide .alignwide { max-width: none; }
.page-links, .tags, .edit-link, .meta { font-size: var(--step--1); color: var(--slate); }
.post-navigation .nav-links { display: flex; justify-content: space-between; gap: 1rem; margin-top: 2.4rem; padding-top: 1.2rem; border-top: 1px solid var(--line); }
.post-navigation a, .pagination a, .pagination span { font-weight: 600; text-decoration: none; }
.pagination, .posts-navigation { margin-top: 2rem; }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.pagination .page-numbers { padding: 0.45rem 0.9rem; border: 1px solid var(--line); border-radius: 8px; }
.pagination .current { background: var(--ink); color: #fff; border-color: var(--ink); }
.search-form { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-block: 1.2rem; }
.search-field { flex: 1 1 14rem; padding: 0.8rem 1rem; border: 1px solid var(--line); border-radius: 8px; font: inherit; }
.comments { padding-top: 0; }
.comment-list { list-style: none; padding: 0; }
.comment-list .comment-body { padding: 1rem 0; border-bottom: 1px solid var(--line); }
.comment-list .children { list-style: none; padding-left: 1.4rem; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea { width: 100%; padding: 0.7rem 0.9rem; border: 1px solid var(--line); border-radius: 8px; font: inherit; }
.comment-form .submit { background: var(--red); color: #fff; border: 0; border-radius: 8px; padding: 0.85rem 1.5rem; font: 700 var(--step-0) var(--font-body); cursor: pointer; }
.blank-main { min-height: 100vh; }

/* ---------- Navigation: sub-menus (pages can be nested in Appearance > Menus) ---------- */
.primary-nav li { position: relative; }
.primary-nav .menu-item-has-children > a::after { content: ""; display: inline-block; width: 0.42em; height: 0.42em; margin-left: 0.45em; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-0.18em) rotate(45deg); }
.primary-nav .sub-menu { display: none; position: absolute; left: 0; top: 100%; min-width: 15rem; flex-direction: column; align-items: stretch; gap: 0; padding: 0.5rem; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 14px 34px rgba(15, 20, 27, 0.16); z-index: 60; white-space: normal; }
.primary-nav li:hover > .sub-menu, .primary-nav li:focus-within > .sub-menu { display: flex; }
.primary-nav .sub-menu a { display: block; padding: 0.6rem 0.8rem; border: 0; border-radius: 6px; }
.primary-nav .sub-menu a:hover { background: var(--paper); }
.primary-nav .sub-menu .sub-menu { left: 100%; top: 0; }
.primary-nav .current-menu-item > a, .primary-nav .current-menu-ancestor > a { border-color: var(--red); }
@media (max-width: 1100px) {
  .primary-nav .sub-menu { display: flex; position: static; box-shadow: none; border: 0; padding: 0.2rem 0 0 1rem; min-width: 0; background: transparent; }
  .primary-nav .menu-item-has-children > a::after { display: none; }
  .primary-nav .sub-menu a { padding: 0.35rem 0; }
}
.footer-grid ul { list-style: none; }

.footer-base .legal a{color:inherit;text-decoration:underline;text-underline-offset:3px}
.form-note{margin:.9rem 0 0;font-size:.85rem;opacity:.75}
.form-note a{color:inherit;text-decoration:underline;text-underline-offset:3px}

.site-footer address + h3 { margin-top: 1.4rem; }
