/* ==========================================================================
   AVS Marketing – AI Visible SEO
   ========================================================================== */

:root {
  --navy: #0b1f4b;
  --navy-deep: #081736;
  --blue: #0b4fd6;
  --blue-dark: #093fae;
  --blue-soft: #e8f0fe;
  --ink: #0f1d3a;
  --text: #46536b;
  --muted: #6b7890;
  --line: #e3e9f2;
  --bg: #ffffff;
  --bg-soft: #f3f6fb;
  --green: #12a15f;

  --font-head: "Manrope", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --container: 1180px;
  --gutter: 24px;
  --header-h: 68px;
  --radius: 12px;
  --shadow-sm: 0 2px 8px rgba(15, 35, 80, .06);
  --shadow-md: 0 10px 30px rgba(15, 35, 80, .10);
  --shadow-lg: 0 24px 60px rgba(15, 35, 80, .14);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, p, ul, dl, dd { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }

h1, h2, h3 {
  font-family: var(--font-head);
  color: var(--ink);
  line-height: 1.15;
  letter-spacing: -.02em;
}

:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 4px; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 8px;
}
.skip-link:focus { top: 12px; }

/* ---------- Shared bits ---------- */
.eyebrow {
  font-family: var(--font-head);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--blue);
}
.eyebrow-light { color: #c9d8ff; }

.accent { color: var(--blue); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  padding: 10px 24px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s, box-shadow .2s;
}
.btn svg { width: 16px; height: 16px; transition: transform .2s; }
.btn:hover svg { transform: translateX(3px); }
.btn-sm { min-height: 38px; padding: 6px 18px; }

.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 6px 16px rgba(11, 79, 214, .25); }
.btn-primary:hover { background: var(--blue-dark); transform: translateY(-1px); }

.btn-outline { border-color: var(--blue); color: var(--blue); background: rgba(255, 255, 255, .6); }
.btn-outline:hover { background: var(--blue); color: #fff; }

.btn-white { background: #fff; color: var(--blue); box-shadow: 0 8px 24px rgba(0, 0, 0, .18); }
.btn-white:hover { transform: translateY(-1px); }

.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--blue);
}
.text-link svg { width: 15px; height: 15px; transition: transform .2s; }
.text-link:hover svg { transform: translateX(4px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .2s, border-color .2s;
}
.site-header.is-scrolled { border-color: var(--line); box-shadow: var(--shadow-sm); }

.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: var(--header-h);
}

.logo { display: inline-flex; align-items: center; gap: 10px; flex-shrink: 0; }
.logo-mark { width: 36px; height: 32px; }
.logo-text { display: flex; flex-direction: column; line-height: 1; }
.logo-name {
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--navy);
}
.logo-name b { font-size: 24px; font-weight: 800; letter-spacing: 0; margin-right: 4px; vertical-align: -2px; }
.logo-tag {
  margin-top: 3px;
  padding-left: 62px;
  font-size: 8px;
  font-weight: 600;
  letter-spacing: .34em;
  text-transform: uppercase;
  color: var(--navy);
}
.logo-light .logo-name, .logo-light .logo-tag { color: #fff; }


.header-actions { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: var(--blue);
  transition: background-color .2s;
}
.icon-btn:hover { background: var(--blue-soft); }
.icon-btn svg { width: 20px; height: 20px; }

.nav-toggle, .nav-cta { display: none; }
.nav-toggle { color: var(--navy); }
.nav-toggle .ico-close { display: none; }
.nav-toggle[aria-expanded="true"] .ico-open { display: none; }
.nav-toggle[aria-expanded="true"] .ico-close { display: block; }

.search-panel { border-top: 1px solid var(--line); background: #fff; }
.search-form { display: flex; align-items: center; gap: 12px; padding-block: 14px; }
.search-form > svg { width: 20px; height: 20px; color: var(--muted); flex-shrink: 0; }
.search-form input {
  flex: 1;
  min-width: 0;
  height: 40px;
  border: 0;
  outline: 0;
  font: inherit;
  color: var(--ink);
  background: transparent;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background:
    radial-gradient(60% 80% at 78% 40%, #e3ecfb 0%, rgba(227, 236, 251, 0) 70%),
    linear-gradient(180deg, #f2f5fa 0%, #f6f8fc 100%);
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  align-items: center;
  gap: 48px;
  padding-block: 64px 72px;
}
.hero h1 {
  margin-top: 16px;
  font-size: clamp(32px, 3.7vw, 44px);
  font-weight: 700;
  max-width: 13em;
}
.lead { margin-top: 22px; max-width: 30em; font-size: 16px; color: #33415c; }
.hero .btn-row { margin-top: 30px; }

.hero-visual {
  position: relative;
  width: 100%;
  max-width: 540px;
  height: 400px;
  margin-left: auto;
}
.rings {
  position: absolute;
  left: 56%;
  top: 50%;
  width: 430px;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 1px solid rgba(11, 79, 214, .10);
  background: radial-gradient(circle, rgba(255, 255, 255, .9) 0%, rgba(255, 255, 255, 0) 68%);
}
.rings::before, .rings::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(11, 79, 214, .10);
}
.rings::before { inset: 14%; }
.rings::after { inset: -14%; border-color: rgba(11, 79, 214, .06); }

.biz-card {
  position: absolute;
  left: 56%;
  top: 50%;
  width: 244px;
  transform: translate(-50%, -46%);
  padding: 20px 20px 16px;
  background: #fff;
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  z-index: 1;
}
.biz-title { font-family: var(--font-head); font-size: 14px; font-weight: 700; color: var(--ink); }
.biz-search {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 12px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
  font-size: 11.5px;
  color: var(--muted);
}
.biz-search svg { width: 15px; height: 15px; color: var(--blue); flex-shrink: 0; }
.biz-list { margin-top: 12px; display: grid; gap: 5px; }
.biz-list li { display: flex; align-items: center; gap: 10px; font-size: 12.5px; color: #4a5872; }
.biz-list svg { width: 14px; height: 14px; color: var(--green); flex-shrink: 0; }

.chips { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.chip {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 16px;
  background: #fff;
  border-radius: 12px;
  box-shadow: var(--shadow-md);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
  animation: float 6s ease-in-out infinite;
}
.chip svg { width: 24px; height: 24px; flex-shrink: 0; }

.chip-google     { left: 10%; top: 8%; }
.chip-aio        { left: 40%; top: 1%;  animation-delay: -1.5s; }
.chip-chatgpt    { right: 8%; top: 7%;  animation-delay: -3s; }
.chip-gemini     { left: 2%;  top: 38%; animation-delay: -2s; }
.chip-maps       { right: 0;  top: 38%; animation-delay: -4s; }
.chip-perplexity { left: 0;   top: 66%; animation-delay: -1s; }
.chip-bing       { right: 0;  top: 66%; animation-delay: -5s; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}

/* ---------- Search landscape ---------- */
.landscape {
  background: linear-gradient(180deg, #f6f8fc 0%, #eef3fa 100%);
  border-top: 1px solid #fff;
}
.landscape-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: 56px;
  padding-block: 36px 40px;
}
.kicker { font-size: 15px; font-weight: 500; color: var(--blue); }
.landscape h2 { margin-top: 10px; font-size: clamp(26px, 3vw, 34px); font-weight: 700; }
.landscape-copy > p:not(.kicker) { margin-top: 16px; max-width: 34em; font-size: 15px; }
.landscape .text-link { margin-top: 16px; }

.surfaces { display: grid; grid-template-columns: repeat(5, 1fr); }
.surfaces li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 8px 6px;
  text-align: center;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.35;
  color: var(--ink);
}
.surfaces li + li { border-left: 1px solid #d5deec; }
.surfaces a { display: contents; }
.surfaces a:hover { color: var(--blue); }
.surfaces li:hover .surface-ico { box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--blue); }
.surface-ico { transition: box-shadow .2s; }
.surface-ico {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #e1eafa;
  color: var(--blue);
}
.surface-ico svg { width: 22px; height: 22px; }

/* ---------- Services ---------- */
.services { padding-block: 44px 32px; }
.section-head { max-width: 640px; margin: -6px auto 0; text-align: center; }
.section-head h2 { font-size: clamp(26px, 3.2vw, 36px); font-weight: 700; }
.section-head p { margin-top: 16px; font-size: 15px; }

.service-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
  margin-top: 32px;
}
.service-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 22px 18px 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: #cfdcf3; }
.service-ico {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #e1eafa;
  color: var(--blue);
}
.service-ico svg { width: 24px; height: 24px; }
.service-ico.is-violet { background: #e6e6fb; color: #3a36c9; }
.service-ico.is-green { background: #dcf3e8; color: var(--green); }
.service-card h3 { margin-top: 20px; font-size: 16px; font-weight: 700; letter-spacing: -.01em; }
.service-card p { margin-top: 10px; margin-bottom: 18px; font-size: 13.5px; line-height: 1.6; color: var(--muted); }
.service-card .text-link { margin-top: auto; font-size: 13px; }
.service-card h3 a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.service-card h3 a:hover, .service-card:hover h3 a { color: var(--blue); }
.service-card:hover .text-link svg { transform: translateX(4px); }

/* ---------- Why AVS ---------- */
.why {
  position: relative;
  background: linear-gradient(135deg, #0d2452 0%, var(--navy-deep) 100%);
  color: #d5def0;
  overflow: hidden;
}
.why-media {
  position: absolute;
  inset: 0 0 0 54%;
  background:
    radial-gradient(80% 90% at 20% 30%, #f4f7fc 0%, rgba(244, 247, 252, 0) 70%),
    linear-gradient(135deg, #dfe7f3 0%, #b4c4de 60%, #8ea3c6 100%);
}
.dash {
  position: absolute;
  left: 8%;
  top: 50%;
  width: min(340px, 58%);
  transform: translateY(-50%) rotate(-3deg);
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 30px 60px rgba(8, 23, 54, .35);
  overflow: hidden;
}
.dash-bar { display: flex; gap: 5px; padding: 9px 12px; background: #eef2f8; }
.dash-bar i { width: 7px; height: 7px; border-radius: 50%; background: #c3cee0; }
.dash-body { padding: 14px; }
.dash-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.dash-kpis div { padding: 8px; background: var(--bg-soft); border-radius: 8px; }
.dash-kpis small { display: block; font-size: 9px; color: var(--muted); line-height: 1.3; }
.dash-kpis b { font-family: var(--font-head); font-size: 14px; color: var(--navy); }
.dash-chart { display: flex; align-items: flex-end; gap: 6px; height: 90px; margin-top: 14px; }
.dash-chart span {
  flex: 1;
  height: var(--h);
  border-radius: 3px 3px 0 0;
  background: linear-gradient(180deg, #4f8dff 0%, #0b4fd6 100%);
}
.dash-chart span:nth-child(odd) { opacity: .55; }
.dash-line { width: 100%; height: 40px; margin-top: 10px; }

.why-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 480px) 1fr;
  align-items: center;
  gap: 40px;
  padding-block: 40px 44px;
}
.why h2 { margin-top: 12px; font-size: clamp(24px, 2.6vw, 30px); font-weight: 700; color: #fff; }
.why h2 span { display: block; }
.why-copy > p:not(.eyebrow) { margin-top: 14px; font-size: 15px; max-width: 30em; }

.why-features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 30px; }
.why-features li { display: flex; align-items: flex-start; gap: 10px; }
.feat-ico {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(79, 141, 255, .22);
  color: #9fc0ff;
}
.feat-ico svg { width: 18px; height: 18px; }
.why-features h3 { font-family: var(--font-body); font-size: 13px; font-weight: 600; line-height: 1.35; letter-spacing: 0; color: #fff; }
.why-features p { margin-top: 4px; font-size: 11.5px; line-height: 1.45; color: #a9b8d6; }

.stats {
  justify-self: end;
  display: grid;
  gap: 16px;
  width: 172px;
  padding: 26px 24px;
  background: #fff;
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
}
.stats div { display: flex; flex-direction: column; }
.stats dd { font-family: var(--font-head); font-size: 30px; font-weight: 800; line-height: 1.1; color: var(--blue-dark); }
.stats dt { margin-top: 4px; font-size: 12px; color: var(--muted); }

/* ---------- Trusted by ---------- */
.trusted { padding-block: 22px 28px; }
.trusted-title {
  text-align: center;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--blue-dark);
}
.logo-row {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  align-items: center;
  justify-items: center;
  gap: 20px 16px;
  margin-top: 22px;
}
.wm {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-head);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -.03em;
  color: #5d6675;
  opacity: .85;
  transition: opacity .2s, color .2s;
}
.wm:hover { opacity: 1; color: var(--ink); }
.wm-shopify { font-style: italic; }
.wm-microsoft { font-weight: 600; font-size: 19px; }
.wm-monday small { font-size: 11px; font-weight: 600; margin-left: -6px; align-self: flex-end; padding-bottom: 5px; }
.wm-stripe { font-size: 26px; }
.ms-grid { display: grid; grid-template-columns: repeat(2, 8px); gap: 2px; }
.ms-grid i { width: 8px; height: 8px; background: currentColor; }

/* ---------- CTA ---------- */
.cta {
  background:
    radial-gradient(70% 140% at 85% 50%, rgba(79, 141, 255, .35) 0%, rgba(79, 141, 255, 0) 70%),
    linear-gradient(100deg, #0a2f86 0%, #0b47c4 100%);
  color: #dbe6ff;
}
.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px 56px;
  max-width: 1040px;
  padding-block: 30px 32px;
}
.cta h2 { margin-top: 6px; font-size: clamp(24px, 3vw, 30px); font-weight: 700; color: #fff; }
.cta-copy > p:not(.eyebrow) { margin-top: 8px; max-width: 28em; font-size: 15px; }
.cta .eyebrow { font-size: 10.5px; }
.cta-actions { display: flex; flex-direction: column; align-items: center; gap: 12px; flex: 0 0 40%; }
.cta-actions .btn { min-width: 220px; }
.cta-link { font-size: 12.5px; color: #dbe6ff; text-decoration: underline; text-underline-offset: 3px; }
.cta-link:hover { color: #fff; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-deep); color: #a9b8d6; font-size: 13.5px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px 32px;
  padding-block: 48px 36px;
}
.site-footer .logo-mark { width: 30px; height: 27px; }
.site-footer .logo-name { font-size: 13px; }
.site-footer .logo-name b { font-size: 20px; }
.site-footer .logo-tag { padding-left: 52px; font-size: 7px; }
.footer-brand p { margin-top: 18px; max-width: 30ch; line-height: 1.6; }
.footer-contacts { display: grid; justify-items: start; gap: 8px; margin-top: 18px; }
.footer-contact { display: inline-flex; align-items: center; gap: 8px; color: #dfe6f5; }
.footer-contact svg, .footer-address svg { flex-shrink: 0; width: 16px; height: 16px; }
.footer-address { display: flex; align-items: flex-start; gap: 8px; max-width: 34ch; line-height: 1.5; color: #dfe6f5; }
.footer-address svg { margin-top: 3px; }
.footer-col h2 {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #fff;
}
.footer-col ul { display: grid; gap: 9px; margin-top: 16px; }
.footer-col a, .footer-contact { transition: color .2s; }
.footer-col a { color: #c5d0e6; }
.footer-col a:hover, .footer-contact:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }

.socials { display: flex; gap: 6px; }
.socials a {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: #fff;
  transition: background-color .2s;
}
.socials a:hover { background: rgba(255, 255, 255, .12); }
.socials svg { width: 18px; height: 18px; }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 24px;
  padding-block: 14px 20px;
  border-top: 1px solid rgba(255, 255, 255, .08);
  font-size: 12px;
}


.search-results { display: grid; gap: 2px; padding-bottom: 14px; }
.search-results:empty { display: none; }
.search-results a { display: block; padding: 10px 12px; border-radius: 8px; }
.search-results a:hover, .search-results a:focus-visible { background: var(--bg-soft); }
.search-results b { display: block; font-size: 14.5px; font-weight: 600; color: var(--ink); }
.search-results span { display: block; font-size: 13px; color: var(--muted); }
.search-results .no-results { padding: 10px 12px; font-size: 14px; color: var(--muted); }

.text-link-light { margin-top: 26px; color: #9fc0ff; }
.text-link-light:hover { color: #fff; }

/* ==========================================================================
   Interior pages
   ========================================================================== */
.page-hero {
  background:
    radial-gradient(55% 90% at 85% 30%, #e3ecfb 0%, rgba(227, 236, 251, 0) 70%),
    linear-gradient(180deg, #f2f5fa 0%, #f6f8fc 100%);
  padding-block: 28px 64px;
  border-bottom: 1px solid var(--line);
}
.breadcrumb ol { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 0; font-size: 13px; }
.breadcrumb li { display: inline-flex; align-items: center; color: var(--muted); }
.breadcrumb li + li::before { content: "/"; margin-inline: 10px; color: #b6c1d3; }
.breadcrumb a { color: var(--text); }
.breadcrumb a:hover { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.breadcrumb [aria-current] { color: var(--ink); font-weight: 500; }

.page-hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  align-items: center;
  gap: 56px;
  margin-top: 36px;
}
.page-hero-inner.is-single { grid-template-columns: minmax(0, 760px); }
.page-hero-inner.is-centered { display: block; text-align: center; padding-block: 40px; }
.page-hero-inner.is-centered .lead { margin-inline: auto; }
.page-hero-inner.is-centered .btn-row { justify-content: center; }
.page-hero h1 { margin-top: 14px; font-size: clamp(30px, 4vw, 46px); font-weight: 700; }
.page-hero .lead { max-width: 36em; }
.page-hero .btn-row { margin-top: 28px; }

.hero-aside {
  padding: 26px 26px 22px;
  background: #fff;
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
}
.hero-aside-head { display: flex; align-items: center; gap: 12px; padding-bottom: 16px; margin-bottom: 16px; border-bottom: 1px solid var(--line); }
.hero-aside-head p { font-family: var(--font-head); font-size: 16px; font-weight: 700; color: var(--ink); }
.hero-aside-ico {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--blue-soft);
  color: var(--blue);
}
.hero-aside-ico svg { width: 21px; height: 21px; }

.tick-list { display: grid; gap: 11px; }
.tick-list li { display: flex; align-items: flex-start; gap: 10px; font-size: 14.5px; line-height: 1.5; color: #33415c; }
.tick-list svg { width: 16px; height: 16px; margin-top: 3px; flex-shrink: 0; color: var(--green); }
.tick-list.is-compact { gap: 6px; margin-top: 14px; }
.tick-list.is-compact li { font-size: 14px; }

/* Sections */
.section { padding-block: 80px; }
.section.is-soft { background: var(--bg-soft); }
.section.is-white { background: #fff; }
.section + .section.is-white, .section.is-white + .section.is-white { border-top: 1px solid var(--line); }

.sec-head { max-width: 680px; margin-bottom: 44px; }
.sec-head.is-center { margin-inline: auto; text-align: center; }
.sec-head h2 { margin-top: 10px; font-size: clamp(26px, 3vw, 36px); font-weight: 700; }
.sec-head > p:not(.eyebrow) { margin-top: 14px; font-size: 16px; }

/* Split */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  align-items: start;
  gap: 64px;
}
.split h2 { margin-top: 10px; font-size: clamp(26px, 3vw, 34px); font-weight: 700; }
.split-copy > p:not(.eyebrow) { margin-top: 18px; font-size: 16px; }
.split-aside {
  padding: 28px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-left: 4px solid var(--blue);
  border-radius: 12px;
}
.section.is-soft .split-aside { background: #fff; }
.split-aside h3 { margin-bottom: 18px; font-size: 18px; font-weight: 700; }

/* Card grid */
.card-grid { display: grid; gap: 20px; }
.card-grid.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card-grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card-grid.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 26px 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.section.is-white .card { background: #fff; }
.card.is-link:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: #cfdcf3; }
.card h3 { margin-top: 18px; font-size: 18px; font-weight: 700; letter-spacing: -.01em; }
.card h3 a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.card.is-link:hover h3 a { color: var(--blue); }
.card p { margin-top: 10px; font-size: 14.5px; line-height: 1.6; color: var(--muted); }
.card .text-link { margin-top: auto; padding-top: 18px; font-size: 13.5px; }
.card.is-link:hover .text-link svg { transform: translateX(4px); }
.card-ico {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #e1eafa;
  color: var(--blue);
}
.card-ico svg { width: 23px; height: 23px; }
.card-ico.is-violet { background: #e6e6fb; color: #3a36c9; }
.card-ico.is-green { background: #dcf3e8; color: var(--green); }

/* Checklist */
.checklist { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 24px; }
.checklist li {
  display: flex;
  gap: 16px;
  padding: 22px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.checklist h3 { font-size: 16.5px; font-weight: 700; }
.checklist p { margin-top: 6px; font-size: 14.5px; line-height: 1.6; color: var(--muted); }
.check-ico {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #dcf3e8;
  color: var(--green);
}
.check-ico svg { width: 15px; height: 15px; }
.check-ico.is-lg { width: 56px; height: 56px; }
.check-ico.is-lg svg { width: 26px; height: 26px; }

/* Steps */
.steps { display: grid; gap: 20px; padding: 0; list-style: none; counter-reset: none; }
.steps.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.steps.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.steps li {
  position: relative;
  padding: 28px 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.steps li::before {
  content: "";
  position: absolute;
  top: 0;
  left: 24px;
  right: 24px;
  height: 3px;
  border-radius: 0 0 3px 3px;
  background: linear-gradient(90deg, var(--blue), #4f8dff);
}
.step-num { font-family: var(--font-head); font-size: 30px; font-weight: 800; line-height: 1; color: #c9d8f5; }
.steps h3 { margin-top: 14px; font-size: 17px; font-weight: 700; }
.steps p { margin-top: 8px; font-size: 14.5px; line-height: 1.6; color: var(--muted); }

/* FAQ */
.faq-wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.7fr); gap: 56px; align-items: start; }
.faq-wrap .sec-head { margin-bottom: 0; position: sticky; top: calc(var(--header-h) + 24px); }
.faq { display: grid; gap: 12px; }
.faq details {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  transition: border-color .2s, box-shadow .2s;
}
.faq details[open] { border-color: #cfdcf3; box-shadow: var(--shadow-sm); }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 22px;
  font-family: var(--font-head);
  font-size: 16.5px;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { width: 20px; height: 20px; flex-shrink: 0; color: var(--blue); transition: transform .25s; }
.faq details[open] summary svg { transform: rotate(45deg); }
.faq details p { padding: 0 22px 22px; font-size: 15px; line-height: 1.7; }

/* Navy band */
.section.is-navy { background: linear-gradient(135deg, #0d2452 0%, var(--navy-deep) 100%); }
.navy-band { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 56px; align-items: center; color: #c5d0e6; }
.navy-band h2 { margin-top: 12px; font-size: clamp(26px, 3vw, 34px); font-weight: 700; color: #fff; }
.navy-band > div > p:not(.eyebrow) { margin-top: 16px; font-size: 16px; }
.navy-points { display: grid; gap: 14px; }
.navy-points li {
  display: flex;
  gap: 16px;
  padding: 20px 22px;
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 12px;
}
.navy-points h3 { font-family: var(--font-body); font-size: 16px; font-weight: 600; letter-spacing: 0; color: #fff; }
.navy-points p { margin-top: 4px; font-size: 14px; color: #a9b8d6; }
.navy-points .feat-ico { width: 42px; height: 42px; }
.navy-points .feat-ico svg { width: 20px; height: 20px; }

/* Prose */
.prose { max-width: 760px; margin-inline: auto; }
.prose h2 { font-size: clamp(24px, 2.8vw, 32px); font-weight: 700; margin-bottom: 18px; }
.prose p + p { margin-top: 16px; }

/* Topics (insight guides) */
.topics { display: grid; gap: 18px; max-width: 920px; margin-inline: auto; }
.topic {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 20px;
  padding: 28px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
}
.topic-num {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: var(--blue-soft);
  font-family: var(--font-head);
  font-size: 20px;
  font-weight: 800;
  color: var(--blue);
}
.topic h3 { font-size: 20px; font-weight: 700; }
.topic p { margin-top: 8px; font-size: 15.5px; }
.topic .text-link { margin-top: 16px; }

/* Small status label */
.case-badge { padding: 3px 10px; border-radius: 999px; background: #fff4e0; font-size: 11.5px; font-weight: 600; color: #8a5a00; }

/* Forms */
.form-layout { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 40px; align-items: start; }
.form-card {
  padding: 36px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow-md);
  scroll-margin-top: calc(var(--header-h) + 20px);
}
.form-card h2 { font-size: clamp(22px, 2.4vw, 28px); font-weight: 700; }
.form-sub { margin-top: 8px; font-size: 15px; }
.form-card form { margin-top: 26px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field label { display: block; margin-bottom: 7px; font-size: 14px; font-weight: 600; color: var(--ink); }
.field label span[aria-hidden] { color: #c62828; }
.field input, .field textarea, .field select {
  width: 100%;
  padding: 12px 14px;
  font: inherit;
  font-size: 15px;
  color: var(--ink);
  background: #fff;
  border: 1.5px solid #d3dbe8;
  border-radius: 10px;
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 120px; }
.field select { text-overflow: ellipsis; appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 20px) 52%, calc(100% - 15px) 52%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 40px; }
.field input:focus, .field textarea:focus, .field select:focus { outline: 0; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(11, 79, 214, .12); }
.field.has-error input, .field.has-error textarea { border-color: #c62828; }
.field-error { margin-top: 6px; font-size: 13px; color: #c62828; }
.form-alert { margin-top: 18px; padding: 12px 16px; border-radius: 10px; background: #fdecea; font-size: 14px; color: #8e1c1c; }
.form-note { font-size: 12.5px; color: var(--muted); text-align: center; }
.btn-block { width: 100%; min-height: 52px; font-size: 15px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-success { text-align: center; padding: 24px 0; }
.form-success .check-ico { margin: 0 auto 18px; }
.form-success p { margin: 10px auto 24px; max-width: 36em; }

.form-aside { padding: 30px; background: var(--navy); border-radius: 16px; color: #c5d0e6; }
.form-aside h3 { font-size: 20px; font-weight: 700; color: #fff; margin-bottom: 20px; }
.form-aside .tick-list li { color: #dbe4f5; }
.mini-steps { display: grid; gap: 20px; padding: 0; list-style: none; counter-reset: step; }
.mini-steps li { position: relative; padding-left: 48px; counter-increment: step; }
.mini-steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(79, 141, 255, .22);
  font-weight: 700;
  color: #9fc0ff;
}
.mini-steps h4 { margin: 0; font-family: var(--font-head); font-size: 16px; color: #fff; }
.mini-steps p { margin-top: 4px; font-size: 14px; line-height: 1.55; }
.contact-list { display: grid; gap: 18px; }
.contact-list li { display: flex; align-items: center; gap: 14px; }
.contact-list .card-ico { width: 42px; height: 42px; background: rgba(79, 141, 255, .22); color: #9fc0ff; }
.contact-list .card-ico svg { width: 19px; height: 19px; }
.contact-list small { display: block; font-size: 12px; color: #a9b8d6; }
.contact-list a, .contact-list span { color: #fff; font-weight: 500; overflow-wrap: anywhere; }
.contact-list a:hover { text-decoration: underline; }

@media (max-width: 1024px) {
  .card-grid.cols-4, .steps.cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split, .navy-band, .faq-wrap, .form-layout { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .faq-wrap .sec-head { position: static; }
  .page-hero-inner { grid-template-columns: 1fr; gap: 36px; }
  .hero-aside { max-width: 560px; }
}

@media (max-width: 860px) {
  .card-grid.cols-3, .steps.cols-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .checklist { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .section { padding-block: 56px; }
  .sec-head { margin-bottom: 32px; }
  .page-hero { padding-block: 20px 48px; }
  .page-hero-inner { margin-top: 24px; }
  .card-grid.cols-2, .card-grid.cols-3, .card-grid.cols-4, .steps.cols-3, .steps.cols-4 { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: minmax(0, 1fr); }
  /* Under 16px, iPhones zoom the whole page when a field is tapped */
  .field input, .field textarea, .field select { font-size: 16px; }
  .form-card { padding: 24px 20px; }
  .form-aside, .split-aside { padding: 24px 20px; }
  .topic { grid-template-columns: 1fr; gap: 14px; padding: 22px 20px; }
  .topic-num { width: 44px; height: 44px; font-size: 17px; }
  .hero-aside { padding: 22px 20px; }
}

/* ==========================================================================
   AI Search Optimization page (includes/templates/ai-search-optimization.php)
   ========================================================================== */
.aio-hero {
  background:
    radial-gradient(50% 80% at 75% 45%, #dbe7fb 0%, rgba(219, 231, 251, 0) 70%),
    linear-gradient(180deg, #f2f5fa 0%, #f5f8fc 100%);
  padding-block: 22px 56px;
  overflow: hidden;
}
.aio-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: 40px;
  margin-top: 18px;
}
.aio-hero h1 { margin-top: 12px; font-size: clamp(30px, 3.5vw, 43px); font-weight: 700; max-width: 14em; }
.aio-hero .lead { margin-top: 18px; max-width: 32em; font-size: 15.5px; }
.aio-hero .btn-row { margin-top: 28px; }

.aio-visual { position: relative; width: 100%; max-width: 580px; height: 340px; margin-left: auto; }
.aio-glow {
  position: absolute;
  inset: 8% 28% -6% -6%;
  border-radius: 40%;
  background:
    radial-gradient(60% 60% at 35% 70%, rgba(8, 35, 110, .75) 0%, rgba(11, 79, 214, .45) 35%, rgba(79, 141, 255, .18) 60%, rgba(79, 141, 255, 0) 75%);
  filter: blur(6px);
}
.aio-glow::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: repeating-linear-gradient(100deg, rgba(255, 255, 255, .07) 0 2px, transparent 2px 14px);
  mask-image: radial-gradient(55% 45% at 35% 75%, #000 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(55% 45% at 35% 75%, #000 0%, transparent 75%);
}

.aio-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 16px;
  background: #fff;
  border-radius: 12px;
  box-shadow: var(--shadow-md);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
}
.aio-chip svg { width: 24px; height: 24px; flex-shrink: 0; }
.aio-chip-google { position: absolute; left: 0; top: 0; z-index: 2; padding: 9px 14px; font-size: 12.5px; }
.aio-chip-google svg { width: 20px; height: 20px; }

.aio-card {
  position: absolute;
  left: 2%;
  top: 15%;
  width: 54%;
  padding: 16px 18px;
  background: #fff;
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  z-index: 1;
}
.aio-card-head { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; color: var(--ink); }
.aio-card-head svg { width: 16px; height: 16px; }
.aio-card-text { margin: 12px 0 10px; font-size: 12px; line-height: 1.5; color: #33415c; }
.aio-line { display: block; width: var(--w); height: 6px; margin-top: 7px; border-radius: 4px; background: #e6ebf3; }
.aio-biz { display: flex; align-items: center; gap: 10px; margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--line); }
.aio-biz-logo {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--navy);
  font-size: 9px;
  font-weight: 700;
  color: #fff;
}
.aio-biz b { display: block; font-size: 11.5px; font-weight: 600; color: var(--ink); }
.aio-stars { font-size: 10.5px; color: var(--muted); }
.aio-stars i { font-style: normal; color: #f5a623; letter-spacing: 1px; }
.aio-biz-link { margin-left: auto; color: #9aa7bd; }
.aio-biz-link svg { width: 15px; height: 15px; }

.aio-stack { position: absolute; right: 0; top: 7%; display: grid; justify-items: end; gap: 12px; z-index: 2; }
.aio-stack .aio-chip { padding: 13px 18px; animation: float 6s ease-in-out infinite; }
.aio-s1 { margin-right: 34px; }
.aio-s2 { margin-right: 0; animation-delay: -1.5s !important; }
.aio-s3 { margin-right: 14px; animation-delay: -3s !important; }
.aio-s4 { margin-right: 2px; animation-delay: -4.5s !important; }

.aio-pill {
  position: absolute;
  left: 30%;
  bottom: 2%;
  padding: 9px 14px;
  background: #fff;
  border-radius: 8px;
  box-shadow: var(--shadow-md);
  font-size: 11.5px;
  font-weight: 500;
  color: var(--ink);
  z-index: 2;
}

/* Shared bits */
.aio-ico {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: linear-gradient(180deg, #eef4ff 0%, #dce8fd 100%);
  color: var(--blue);
}
.aio-ico svg { width: 23px; height: 23px; }
.aio-head { max-width: 660px; }
.aio-head h2 { margin-top: 8px; font-size: clamp(25px, 2.8vw, 32px); font-weight: 700; }
.aio-head > p:not(.eyebrow) { margin-top: 10px; font-size: 15px; }
.aio-why .eyebrow, .aio-services .eyebrow, .aio-results .eyebrow, .aio-faq .eyebrow { font-size: 11px; }

/* Why */
.aio-why { padding-block: 22px 56px; background: #fff; }
.aio-why-grid { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr); gap: 48px; align-items: start; }
.aio-why h2 { margin-top: 8px; font-size: clamp(25px, 2.8vw, 32px); font-weight: 700; }
.aio-why-copy > p:not(.eyebrow) { margin-top: 14px; max-width: 40em; font-size: 15px; }
.aio-features { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 30px; }
.aio-features li { padding-inline: 18px; }
.aio-features li:first-child { padding-left: 0; }
.aio-features li + li { border-left: 1px solid var(--line); }
.aio-features h3 { margin-top: 16px; font-size: 14.5px; font-weight: 700; letter-spacing: -.005em; }
.aio-features p { margin-top: 8px; font-size: 13px; line-height: 1.6; color: var(--muted); }

.aio-approach {
  margin-top: 18px;
  padding: 26px;
  background: linear-gradient(180deg, #f5f8fe 0%, #eef3fc 100%);
  border: 1px solid #dbe5f5;
  border-radius: 12px;
}
.aio-approach h2 { font-size: 22px; line-height: 1.25; }
.aio-approach > p:not(.eyebrow) { margin-top: 14px; font-size: 14px; }
.aio-approach ul { display: grid; gap: 12px; margin-top: 22px; }
.aio-approach li { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--ink); }
.aio-tick {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
}
.aio-tick svg { width: 11px; height: 11px; }

/* Services */
.aio-services { padding-block: 24px 56px; background: #fff; border-top: 1px solid var(--line); scroll-margin-top: var(--header-h); }
.aio-services .aio-head { padding-top: 20px; }
.aio-service-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin-top: 26px; }
.aio-service {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 22px 22px 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.aio-service:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: #cfdcf3; }
.aio-service h3 { margin-top: 18px; font-size: 16.5px; font-weight: 700; line-height: 1.3; }
.aio-service h3 a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.aio-service:hover h3 a { color: var(--blue); }
.aio-service p { margin: 10px 0 18px; font-size: 13.5px; line-height: 1.6; color: var(--muted); }
.aio-service .text-link { margin-top: auto; font-size: 13px; }
.aio-service:hover .text-link svg { transform: translateX(4px); }

/* Process */
.aio-process { padding-block: 40px; background: linear-gradient(120deg, #0e2b5e 0%, #0b2350 60%, #0a1f47 100%); color: #c5d0e6; }
.aio-process-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 48px; align-items: center; }
.aio-process h2 { margin-top: 10px; font-size: clamp(22px, 2.4vw, 27px); font-weight: 700; color: #fff; }
.aio-process-copy > p:not(.eyebrow) { margin-top: 14px; font-size: 14.5px; }
.aio-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; padding: 0; list-style: none; }
.aio-steps li { position: relative; padding-inline: 20px; }
.aio-steps li + li { border-left: 1px solid rgba(255, 255, 255, .12); }
.aio-steps li + li::before {
  content: "→";
  position: absolute;
  left: -14px;
  top: 8px;
  font-size: 15px;
  color: #6f93d6;
}
.aio-step-ico {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #dfe9fd;
  color: var(--blue);
  box-shadow: 0 0 0 4px rgba(79, 141, 255, .25);
}
.aio-step-ico svg { width: 19px; height: 19px; }
.aio-step-num { display: block; margin-top: 14px; font-size: 12px; font-weight: 600; color: #9fb4dc; }
.aio-steps h3 { margin-top: 2px; font-family: var(--font-body); font-size: 14.5px; font-weight: 600; letter-spacing: 0; color: #fff; }
.aio-steps p { margin-top: 8px; font-size: 13px; line-height: 1.55; color: #b8c6e3; }

/* Results */
.aio-results { padding-block: 26px; background: linear-gradient(180deg, #f6f9fd 0%, #f1f5fb 100%); }
.aio-results-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1.35fr) minmax(0, 1fr); gap: 32px; align-items: center; }
.aio-results h2 { margin-top: 6px; font-size: clamp(21px, 2.1vw, 24px); font-weight: 700; line-height: 1.2; }
.aio-results-copy > p:not(.eyebrow) { margin: 10px 0 18px; font-size: 13.5px; }
.aio-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.aio-stats div { display: flex; flex-direction: column; padding-inline: 16px; }
.aio-stats div + div { border-left: 1px solid #d5deec; }
.aio-stats dd { font-family: var(--font-head); font-size: clamp(26px, 2.6vw, 32px); font-weight: 800; line-height: 1.1; color: var(--blue-dark); }
.aio-stats dt { margin-top: 10px; font-size: 12.5px; font-weight: 600; color: var(--ink); }
.aio-stats small { display: block; margin-top: 2px; font-size: 11.5px; font-weight: 400; color: var(--muted); }
.aio-quote {
  position: relative;
  margin: 0;
  padding: 20px 20px 18px 54px;
  background: #fff;
  border: 1px solid #dbe5f5;
  border-radius: 12px;
}
.aio-quote .case-badge { position: absolute; top: -11px; right: 14px; }
.aio-quote-mark { position: absolute; left: 16px; top: 6px; font-family: Georgia, serif; font-size: 52px; line-height: 1; color: #a9c2f2; }
.aio-quote blockquote { margin: 0; font-size: 13px; line-height: 1.6; color: var(--ink); }
.aio-quote figcaption { margin-top: 10px; font-size: 11.5px; color: var(--muted); }

/* FAQ */
.aio-faq { padding-block: 20px 52px; background: #fff; }
.aio-faq-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 40px; margin-top: 18px; align-items: start; }
.aio-faq .faq { gap: 10px; }
.aio-faq .faq details { border-radius: 6px; }
.aio-faq .faq summary { padding: 11px 16px; font-family: var(--font-body); font-size: 14px; font-weight: 500; }
.aio-faq .faq summary svg { width: 16px; height: 16px; color: var(--ink); }
.aio-faq .faq details p { padding: 0 16px 16px; font-size: 14px; }

/* CTA with mountains */
.aio-cta { position: relative; overflow: hidden; }
.aio-mountains { position: absolute; right: 0; bottom: 0; width: 55%; height: 100%; pointer-events: none; }
.aio-cta .cta-inner { position: relative; }

/* Shared service template additions (includes/templates/service.php) */
.aio-chip > svg { color: var(--blue); }
.svc-card-ico {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 7px;
  background: var(--blue-soft);
  color: var(--blue);
}
.aio-card-head .svc-card-ico svg { width: 15px; height: 15px; }
.aio-card-head { font-size: 13px; }
.svc-card-list { display: grid; gap: 8px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.svc-card-list li { display: flex; align-items: flex-start; gap: 8px; font-size: 12px; line-height: 1.45; color: #33415c; }
.svc-card-list svg { width: 13px; height: 13px; margin-top: 2px; flex-shrink: 0; color: var(--green); }

.aio-service-grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.aio-service.is-static:hover { transform: none; box-shadow: none; border-color: var(--line); }
.aio-service.is-static p { margin-bottom: 0; }

.svc-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.svc-metrics li { display: flex; flex-direction: column; padding-inline: 16px; }
.svc-metrics li + li { border-left: 1px solid #d5deec; }
.svc-metric-ico {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(180deg, #2f7bff 0%, var(--blue-dark) 100%);
  color: #fff;
  box-shadow: 0 8px 18px rgba(11, 79, 214, .25);
}
.svc-metric-ico svg { width: 21px; height: 21px; }
.svc-metrics b { margin-top: 14px; font-family: var(--font-head); font-size: 16px; font-weight: 700; color: var(--blue-dark); }
.svc-metrics small { margin-top: 4px; font-size: 12px; line-height: 1.45; color: var(--muted); }

.svc-related { padding: 18px 18px 12px; background: #fff; border: 1px solid #dbe5f5; border-radius: 12px; }
.svc-related-title { font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--blue); }
.svc-related ul { margin-top: 8px; }
.svc-related li + li { border-top: 1px solid var(--line); }
.svc-related a { display: flex; align-items: center; gap: 10px; padding: 9px 0; font-size: 13.5px; font-weight: 600; color: var(--ink); }
.svc-related a:hover { color: var(--blue); }
.svc-related-ico { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--blue-soft); color: var(--blue); flex-shrink: 0; }
.svc-related-ico svg { width: 14px; height: 14px; }
.svc-related-arrow { width: 14px; height: 14px; margin-left: auto; color: var(--blue); transition: transform .2s; }
.svc-related a:hover .svc-related-arrow { transform: translateX(3px); }

@media (max-width: 1024px) {
  .aio-service-grid.cols-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .svc-related { max-width: 560px; }
}
@media (max-width: 600px) {
  .aio-service-grid.cols-3, .svc-metrics { grid-template-columns: 1fr; }
  .svc-metrics { gap: 18px; }
  .svc-metrics li { padding-inline: 0; border-left: 0 !important; flex-direction: row; flex-wrap: wrap; align-items: center; column-gap: 14px; }
  .svc-metrics b { margin-top: 0; }
  .svc-metrics small { flex-basis: 100%; padding-left: 58px; margin-top: -14px; }
}

@media (max-width: 1024px) {
  .aio-hero-grid, .aio-why-grid, .aio-process-grid, .aio-results-grid { grid-template-columns: 1fr; }
  .aio-visual { margin-inline: auto; }
  .aio-features { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 0; }
  .aio-features li:nth-child(odd) { padding-left: 0; border-left: 0; }
  .aio-service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .aio-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 0; }
  .aio-steps li:nth-child(odd) { padding-left: 0; border-left: 0; }
  .aio-steps li:nth-child(odd)::before { display: none; }
  .aio-approach { margin-top: 0; }
  .aio-quote { max-width: 560px; }
}

@media (max-width: 600px) {
  .aio-hero { padding-bottom: 44px; }
  .aio-visual { height: auto; display: flex; flex-direction: column; align-items: center; gap: 14px; }
  .aio-glow { inset: 0 -10% 30% -10%; }
  .aio-chip-google, .aio-card, .aio-stack, .aio-pill { position: relative; left: auto; right: auto; top: auto; bottom: auto; }
  .aio-chip-google { align-self: flex-start; }
  .aio-card { width: 100%; }
  .aio-stack { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
  .aio-stack .aio-chip { margin: 0; padding: 10px 13px; font-size: 12.5px; animation: none; }
  .aio-stack .aio-chip svg { width: 20px; height: 20px; }
  .aio-features, .aio-service-grid, .aio-steps, .aio-faq-grid { grid-template-columns: 1fr; }
  .aio-features li, .aio-steps li { padding-inline: 0; border-left: 0 !important; }
  .aio-steps li::before { display: none; }
  .aio-stats div { padding-inline: 10px; }
  .aio-stats div:first-child { padding-left: 0; }
  .aio-stats dd { font-size: 24px; }
  .aio-mountains { width: 100%; opacity: .6; }
}

/* ---------- Scroll reveal (only when JS is on) ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ==========================================================================
   Responsive
   ========================================================================== */


@media (max-width: 1140px) {
  .service-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .header-inner { gap: 16px; }
}


@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; padding-block: 48px 56px; }
  .hero-copy { text-align: center; }
  .hero h1, .lead { margin-inline: auto; }
  .hero .btn-row { justify-content: center; }
  .hero-visual { margin-inline: auto; }
  .rings, .biz-card { left: 50%; }

  .landscape-grid { grid-template-columns: 1fr; gap: 32px; padding-block: 44px; }

  .why-media { position: relative; inset: auto; height: 390px; order: 2; }
  .why { display: flex; flex-direction: column; }
  .why-grid { grid-template-columns: 1fr; gap: 32px; padding-block: 48px 0; }
  .dash { left: 50%; top: 55%; transform: translate(-50%, -50%) rotate(-3deg); width: min(340px, 80%); }

  .stats {
    justify-self: stretch;
    grid-template-columns: repeat(3, 1fr);
    width: auto;
    margin-bottom: -44px;
    padding: 20px;
    text-align: center;
    position: relative;
    z-index: 1;
  }
  .stats div { align-items: center; }

  .logo-row { grid-template-columns: repeat(3, 1fr); }

  .cta-inner { flex-direction: column; text-align: center; padding-block: 44px; }
  .cta-copy > p:not(.eyebrow) { margin-inline: auto; }
  .cta-actions { flex: none; }

  .footer-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 720px) {
  .header-cta { display: none; }

  .services { padding-block: 48px 40px; }
  .services > .container > .eyebrow { text-align: center; }
  .section-head { margin-top: 12px; }
  .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .surfaces { display: flex; flex-wrap: wrap; justify-content: center; row-gap: 20px; }
  .surfaces li { flex: 0 0 33.333%; }
  .surfaces li + li { border-left: 0; }

  .why-features { grid-template-columns: 1fr; gap: 16px; }
  .why-features h3 { font-size: 14px; }
  .why-features p { font-size: 13px; }

  .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px 20px; }
  .footer-col ul { gap: 0; margin-top: 8px; }
  .footer-col a { display: block; padding-block: 9px; }
  .footer-contacts { gap: 0; margin-top: 8px; }
  .footer-contact, .footer-address { padding-block: 10px; }
  .footer-bottom { flex-direction: column-reverse; text-align: center; }
}

/* Small phones: hero chips flow as a wrapped row instead of orbiting */
@media (max-width: 600px) {
  :root { --gutter: 18px; --header-h: 62px; }

  .logo { padding-block: 6px; }
  .logo-mark { width: 30px; height: 27px; }
  .logo-name { font-size: 13px; }
  .logo-name b { font-size: 20px; }
  .logo-tag { padding-left: 52px; font-size: 7px; }

  .hero-grid { padding-block: 40px 48px; }
  .hero-visual { height: auto; max-width: 360px; }
  .rings { top: 150px; width: 340px; }
  .biz-card { position: relative; left: auto; top: auto; transform: none; width: min(264px, 100%); margin-inline: auto; }

  .chips { position: static; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 24px; }
  .chip { position: static; padding: 9px 12px; font-size: 12.5px; animation: none; box-shadow: var(--shadow-sm); border: 1px solid var(--line); }
  .chip svg { width: 20px; height: 20px; }

  .btn-row .btn { flex: 1 1 100%; }

  .stats dd { font-size: 24px; }
  .stats dt { font-size: 12px; }
  .trusted-title, .svc-related-title { font-size: 12px; }
  .case-badge { font-size: 12px; }

  .logo-row { grid-template-columns: repeat(2, 1fr); }
  .wm { font-size: 20px; }
}

@media (max-width: 440px) {
  .service-grid { grid-template-columns: 1fr; }
  .search-form .btn { display: none; }
  .stats { padding: 16px 10px; }
  .btn { padding-inline: 18px; white-space: normal; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ==========================================================================
   Primary navigation (includes/nav.php)
   Desktop ≥1181px: mega menu + dropdowns. Below: off-canvas nested accordion.
   ========================================================================== */
.header-inner { position: relative; }
.chev { width: 13px; height: 13px; transition: transform .2s; }
.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  transition: color .2s;
}
.nav-link:hover, .nav-list > li.is-current > .nav-link { color: var(--blue); }

.dd-ico {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--blue-soft);
  color: var(--blue);
  transition: background-color .2s, color .2s;
}
.dd-ico svg { width: 17px; height: 17px; }

.dd-link { display: flex; align-items: flex-start; gap: 12px; padding: 10px 12px; border-radius: 10px; transition: background-color .2s; }
.dd-link b { display: block; font-size: 14px; font-weight: 600; color: var(--ink); }
.dd-link small { display: block; margin-top: 2px; font-size: 12px; line-height: 1.4; color: var(--muted); }
.dd-link:hover, .dd-link[aria-current] { background: var(--bg-soft); }
.dd-link:hover b, .dd-link[aria-current] b { color: var(--blue); }
.dd-link:hover .dd-ico { background: var(--blue); color: #fff; }

.dd-all { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--blue); }
.dd-all svg { width: 14px; height: 14px; transition: transform .2s; }
.dd-all:hover svg { transform: translateX(3px); }

.mega-title { display: flex; align-items: center; gap: 10px; font-family: var(--font-head); font-size: 15px; font-weight: 700; color: var(--ink); }
a.mega-title:hover, a.mega-title[aria-current] { color: var(--blue); }
.mega-list a { display: block; color: var(--text); transition: color .2s, transform .2s; }
.mega-list a:hover, .mega-list a[aria-current] { color: var(--blue); }
.mega-list a[aria-current] { font-weight: 600; }
.sub-toggle { display: none; }

/* ---------- Desktop ---------- */
@media (min-width: 1181px) {
  .main-nav { margin-inline: auto; align-self: stretch; }
  .nav-list { display: flex; align-items: stretch; height: 100%; gap: 2px; }
  .nav-list > li { position: relative; display: flex; align-items: center; }
  .nav-link { padding: 8px 10px; }
  .nav-list > li.is-current::after {
    content: "";
    position: absolute;
    left: 10px;
    right: 10px;
    bottom: 0;
    height: 3px;
    border-radius: 3px 3px 0 0;
    background: var(--blue);
  }

  .dropdown {
    position: absolute;
    top: 100%;
    left: -8px;
    z-index: 50;
    width: 360px;
    padding: 10px;
    background: #fff;
    border: 1px solid var(--line);
    border-top: 3px solid var(--blue);
    border-radius: 0 0 14px 14px;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity .18s, transform .18s, visibility .18s;
  }
  .dropdown .dd-all { margin: 6px 12px 4px; }

  .has-dropdown.is-open > .dropdown,
  .has-dropdown:focus-within > .dropdown { opacity: 1; visibility: visible; transform: none; }
  .has-dropdown.is-open .chev { transform: rotate(180deg); }

  /* Mega menu spans the header container */
  .has-mega { position: static !important; }
  .mega {
    left: var(--gutter);
    right: var(--gutter);
    width: auto;
    padding: 28px 30px 20px;
  }
  .mega-cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)) minmax(0, 1.15fr); gap: 28px; }
  .mega-head { padding-bottom: 12px; margin-bottom: 12px; border-bottom: 1px solid var(--line); }
  .mega-list { display: grid; gap: 9px; }
  .mega-list a { font-size: 14px; }
  .mega-list a:hover { transform: translateX(3px); }
  .mega-col-audits { padding-left: 28px; border-left: 1px solid var(--line); }
  .mega-promo { margin-top: 18px; padding: 16px; border-radius: 12px; background: linear-gradient(135deg, #0d2452 0%, var(--navy-deep) 100%); }
  .mega-promo p { font-size: 12.5px; line-height: 1.5; color: #c5d0e6; }
  .mega-promo b { display: block; margin-bottom: 4px; font-size: 13.5px; color: #fff; }
  .mega-promo a { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; font-size: 13px; font-weight: 600; color: #9fc0ff; }
  .mega-promo a:hover { color: #fff; }
  .mega-promo svg { width: 13px; height: 13px; }
  .mega-all { margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--line); display: flex; }
}

@media (min-width: 1181px) and (hover: hover) {
  .has-dropdown:hover > .dropdown { opacity: 1; visibility: visible; transform: none; }
  .has-dropdown:hover .chev { transform: rotate(180deg); }
}

@media (min-width: 1181px) and (max-width: 1260px) {
  .nav-link { padding-inline: 7px; font-size: 13.5px; }
  .header-inner { gap: 14px; }
  .header-actions { gap: 8px; }
  .header-cta { padding-inline: 18px; }
}

/* ---------- Tablet & mobile: off-canvas nested accordion ---------- */
@media (max-width: 1180px) {
  .nav-toggle { display: inline-grid; }
  .header-actions { margin-left: auto; gap: 6px; }

  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    max-height: calc(100vh - var(--header-h));
    max-height: calc(100dvh - var(--header-h));
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 8px var(--gutter) 24px;
    background: #fff;
    border-top: 1px solid var(--line);
    box-shadow: var(--shadow-md);
  }
  .main-nav.is-open { display: block; }

  .nav-list > li { border-bottom: 1px solid var(--line); }
  .nav-link { width: 100%; justify-content: space-between; padding: 15px 4px; font-size: 16px; font-weight: 600; }
  .chev { width: 16px; height: 16px; }
  .has-dropdown.is-open > .nav-link .chev { transform: rotate(180deg); }

  .dropdown { display: none; padding: 0 0 14px; }
  .has-dropdown.is-open > .dropdown { display: block; }
  .dd-link { padding: 9px 8px; }
  .dd-link small { display: none; }
  .dd-link { align-items: center; }
  .dd-all { margin: 6px 8px 0; }

  /* Mega → nested accordion (child menus) */
  .mega-col { border-top: 1px solid var(--line); }
  .mega-col:first-child { border-top: 0; }
  .mega-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
  .mega-title { flex: 1; padding: 10px 8px; font-size: 15px; }
  .sub-toggle {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    color: var(--ink);
  }
  .sub-toggle:hover { background: var(--bg-soft); }
  .sub-toggle svg { width: 16px; height: 16px; transition: transform .2s; }
  .mega-col.is-open .sub-toggle { color: var(--blue); }
  .mega-col.is-open .sub-toggle svg { transform: rotate(180deg); }
  .mega-list { display: none; margin: 0 0 10px 50px; padding-left: 14px; border-left: 2px solid var(--blue-soft); }
  .mega-col.is-open .mega-list { display: block; }
  .mega-list a { padding: 8px 4px; font-size: 15px; }
  .mega-promo { display: none; }
  .mega-all { margin: 8px 8px 0; }

  .nav-cta { display: flex; margin-top: 20px; }
}

/* ==========================================================================
   Team & Testimonials
   ========================================================================== */
.team-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.member {
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  transition: transform .25s, box-shadow .25s;
}
.member:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.member-photo { position: relative; display: grid; place-items: center; aspect-ratio: 4 / 3; }
.member-photo img { width: 100%; height: 100%; object-fit: cover; }
.member-photo.tone-0 { background: linear-gradient(135deg, #2f7bff 0%, #0a3fb8 100%); }
.member-photo.tone-1 { background: linear-gradient(135deg, #5b5bd6 0%, #2b2a8f 100%); }
.member-photo.tone-2 { background: linear-gradient(135deg, #0d2452 0%, #1f4fa8 100%); }
.member-photo.tone-3 { background: linear-gradient(135deg, #12a15f 0%, #0b6b40 100%); }
.member-initials {
  display: grid;
  place-items: center;
  width: 104px;
  height: 104px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .16);
  box-shadow: 0 0 0 8px rgba(255, 255, 255, .08);
  font-family: var(--font-head);
  font-size: 36px;
  font-weight: 800;
  letter-spacing: .02em;
  color: #fff;
}
.member-badge { position: absolute; top: 12px; right: 12px; }
.member-body { position: relative; padding: 22px 24px 24px; }
.member h3 { font-size: 19px; font-weight: 700; }
.member-role { margin-top: 3px; font-size: 13.5px; font-weight: 600; color: var(--blue); }
.member-bio { margin-top: 12px; font-size: 14.5px; line-height: 1.6; color: var(--muted); }
.member-skills { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.member-skills li { padding: 4px 10px; border-radius: 999px; background: var(--bg-soft); font-size: 12px; font-weight: 500; color: var(--text); }
.member-link {
  position: absolute;
  top: 20px;
  right: 20px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--blue-soft);
  color: var(--blue);
}
.member-link:hover { background: var(--blue); color: #fff; }
.member-link svg { width: 16px; height: 16px; }

.callout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px 40px;
  padding: 36px 40px;
  background: linear-gradient(135deg, #f5f8fe 0%, #e8f0fe 100%);
  border: 1px solid #d3e0f7;
  border-radius: 16px;
}
.callout h2 { font-size: clamp(22px, 2.4vw, 28px); font-weight: 700; }
.callout p { margin-top: 8px; max-width: 42em; font-size: 15px; }

/* Testimonials */
.t-featured {
  position: relative;
  margin: 0 0 36px;
  padding: 40px 44px 32px 96px;
  background: linear-gradient(135deg, #0d2452 0%, var(--navy-deep) 100%);
  border-radius: 18px;
  color: #c5d0e6;
}
.t-featured .case-badge { position: absolute; top: 16px; right: 18px; }
.t-mark { position: absolute; left: 32px; top: 18px; font-family: Georgia, serif; font-size: 96px; line-height: 1; color: #4f8dff; }
.t-featured blockquote { margin: 0; font-family: var(--font-head); font-size: clamp(18px, 2vw, 23px); font-weight: 600; line-height: 1.45; color: #fff; }
.t-featured figcaption { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 14px; margin-top: 24px; font-size: 14px; }
.t-featured figcaption b { display: block; color: #fff; }
.t-featured .t-avatar { background: rgba(79, 141, 255, .22); color: #9fc0ff; }
.t-featured .t-tag { margin-left: auto; background: rgba(255, 255, 255, .1); color: #dbe6ff; }
.t-featured .t-tag:hover { background: #fff; color: var(--blue); }

.t-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.t-filter {
  padding: 8px 16px;
  border: 1px solid #d3dbe8;
  border-radius: 999px;
  background: #fff;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text);
  transition: background-color .2s, color .2s, border-color .2s;
}
.t-filter:hover { border-color: var(--blue); color: var(--blue); }
.t-filter.is-active { background: var(--blue); border-color: var(--blue); color: #fff; }

.t-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: start; }
.t-card {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
}
.t-card[hidden] { display: none; }
.t-card-top { display: flex; align-items: flex-start; justify-content: space-between; }
.t-stars { font-family: Georgia, serif; font-size: 48px; line-height: .8; color: #a9c2f2; }
.t-card blockquote { margin: 8px 0 0; font-size: 15px; line-height: 1.65; color: var(--ink); }
.t-card figcaption { display: flex; align-items: center; gap: 12px; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.t-card figcaption b { display: block; font-size: 14px; color: var(--ink); }
.t-avatar {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--blue-soft);
  color: var(--blue);
}
.t-avatar svg { width: 19px; height: 19px; }
.t-tag {
  align-self: flex-start;
  margin-top: 14px;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--blue-soft);
  font-size: 12px;
  font-weight: 600;
  color: var(--blue);
  transition: background-color .2s, color .2s;
}
.t-tag:hover { background: var(--blue); color: #fff; }

@media (max-width: 1024px) {
  .team-grid, .t-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .callout { flex-direction: column; align-items: flex-start; padding: 28px 24px; }
  .t-featured { padding: 64px 22px 24px; }
  .t-mark { left: 20px; top: 4px; font-size: 80px; }
  .t-featured .t-tag { margin-left: 0; }
}
@media (max-width: 600px) {
  .team-grid, .t-grid { grid-template-columns: 1fr; }
}

/* Owner profiles (About page) */
.owners { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.owner {
  display: grid;
  grid-template-columns: 148px minmax(0, 1fr);
  gap: 26px;
  align-items: start;
  padding: 30px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow-sm);
}
.owner-photo {
  display: grid;
  place-items: center;
  width: 148px;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 50%;
  box-shadow: 0 0 0 6px #fff, 0 0 0 7px var(--line), var(--shadow-md);
  font-family: var(--font-head);
  font-size: 44px;
  font-weight: 800;
  color: #fff;
}
.owner-photo.tone-0 { background: linear-gradient(135deg, #2f7bff 0%, #0a3fb8 100%); }
.owner-photo.tone-1 { background: linear-gradient(135deg, #0d2452 0%, #1f4fa8 100%); }
.owner-photo img { width: 100%; height: 100%; object-fit: cover; }
.owner-role { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--blue); }
.owner h3 { margin-top: 6px; font-size: 24px; font-weight: 700; }
.owner-bio { margin-top: 12px; font-size: 15px; line-height: 1.7; }
.owner-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.owner-links a {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--blue-soft);
  color: var(--blue);
  transition: background-color .2s, color .2s;
}
.owner-links a.is-wide { display: inline-flex; align-items: center; gap: 8px; width: auto; padding-inline: 14px; border-radius: 999px; font-size: 14px; font-weight: 600; white-space: nowrap; }
.owner-links a:hover { background: var(--blue); color: #fff; }
.owner-links svg { width: 17px; height: 17px; }

@media (max-width: 1024px) {
  .owners { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .owner { grid-template-columns: 1fr; justify-items: center; text-align: center; padding: 26px 20px; }
  .owner-photo { width: 120px; font-size: 36px; }
  .owner .member-skills, .owner-links { justify-content: center; }
  .owner-links a { width: 42px; height: 42px; }
}

/* ==========================================================================
   Our Work (includes/templates/our-work.php)
   ========================================================================== */
.w-hero {
  background:
    linear-gradient(90deg, rgba(6, 30, 84, .97) 0%, rgba(8, 44, 118, .9) 32%, rgba(8, 44, 118, .35) 62%, rgba(8, 30, 80, .12) 100%),
    var(--hero) center / cover no-repeat;
  color: #dbe6ff;
}
.w-hero-grid { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding-block: 34px 28px; }
.w-hero-copy { max-width: 520px; }
.w-hero h1 { margin-top: 12px; font-size: clamp(28px, 3.2vw, 38px); font-weight: 700; color: #fff; }
.w-hero .lead { margin-top: 14px; font-size: 15.5px; color: #e4ecff; }

.w-pills { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.w-pills a {
  display: inline-block;
  padding: 7px 16px;
  border-radius: 999px;
  background: var(--blue-dark);
  font-size: 12.5px;
  font-weight: 600;
  color: #fff;
  transition: background-color .2s;
}
.w-pills a:hover { background: var(--blue); }
.w-pills.is-hero a { background: rgba(11, 79, 214, .75); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .55); }
.w-pills.is-hero a:hover { background: var(--blue); }

.w-logo-card { flex-shrink: 0; padding: 20px 30px 16px; background: #fff; border-radius: 12px; box-shadow: var(--shadow-lg); }
.w-logo-row { display: flex; align-items: center; gap: 14px; }
.w-logo-mark { width: 92px; height: 54px; }
.w-logo-row p { padding-left: 14px; border-left: 1px solid var(--line); font-family: var(--font-head); font-size: 17px; font-weight: 800; line-height: 1.2; letter-spacing: .02em; text-transform: uppercase; color: #15181f; }
.w-logo-tag { margin-top: 12px; text-align: center; font-size: 12px; letter-spacing: .08em; white-space: pre; color: #3a4252; }

.w-featured {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr) 280px;
  gap: 22px;
  margin-top: 14px;
  padding: 12px;
  background: linear-gradient(180deg, #f6f9fe 0%, #f0f5fc 100%);
  border: 1px solid #dfe8f5;
  border-radius: 10px;
}
.w-featured-photo { width: 100%; height: 100%; min-height: 190px; object-fit: cover; border-radius: 8px; }
.w-featured-main { padding-block: 6px; }
.w-featured .eyebrow { font-size: 11px; }
.w-featured h2 { margin-top: 4px; font-size: clamp(22px, 2.3vw, 26px); font-weight: 700; }
.w-meta { margin-top: 8px; font-size: 13.5px; font-weight: 500; color: var(--ink); }
.w-meta span { margin-inline: 6px; color: var(--muted); }
.w-intro { margin-top: 10px; font-size: 13.5px; line-height: 1.65; }
.w-glance { padding: 6px 8px 6px 20px; border-left: 1px solid #d9e3f2; }
.w-glance h3 { font-family: var(--font-body); font-size: 13.5px; font-weight: 700; letter-spacing: 0; }
.w-glance dl { display: grid; gap: 9px; margin-top: 10px; }
.w-glance dl > div { display: grid; grid-template-columns: 26px 1fr; column-gap: 8px; }
.w-glance-ico { grid-row: span 2; align-self: center; color: var(--blue); }
.w-glance-ico svg { width: 19px; height: 19px; }
.w-glance dt { font-size: 12px; font-weight: 600; line-height: 1.3; color: var(--ink); }
.w-glance dd { font-size: 12px; line-height: 1.35; color: var(--muted); }
.w-glance h4 { margin: 12px 0 0; font-size: 12.5px; font-weight: 700; color: var(--ink); }
.w-delivered { display: flex; flex-wrap: wrap; gap: 3px 14px; margin-top: 5px; font-size: 12px; }
.w-delivered li { position: relative; padding-left: 9px; }
.w-delivered li::before { content: ""; position: absolute; left: 0; top: 7px; width: 4px; height: 4px; border-radius: 50%; background: var(--blue); }
.w-delivered a { color: var(--text); }
.w-delivered a:hover { color: var(--blue); text-decoration: underline; }

.w-notice { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-top: 12px; font-size: 12.5px; color: var(--muted); }

.w-step { margin-top: 28px; scroll-margin-top: calc(var(--header-h) + 12px); }
.w-step-head { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 14px; align-items: start; }
.w-num {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--blue-dark);
  font-size: 12.5px;
  font-weight: 700;
  color: #fff;
}
.w-step-head h2 { font-size: clamp(18px, 2vw, 21px); font-weight: 700; line-height: 1.4; }
.w-step-sub { font-size: 13.5px; font-weight: 500; color: #33415c; }
.w-step-text { margin-top: 12px; max-width: 37em; font-size: 13.5px; line-height: 1.6; }

.w-panels { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 14px; }
.w-panel {
  display: flex;
  flex-direction: column;
  padding: 12px;
  background: linear-gradient(180deg, #f6f9fe 0%, #f1f5fc 100%);
  border: 1px solid #dfe8f5;
  border-radius: 8px;
  scroll-margin-top: calc(var(--header-h) + 12px);
}
.w-panel-head { padding: 0 2px 10px; }
.w-panel-head h3 { font-family: var(--font-body); font-size: 13.5px; font-weight: 700; letter-spacing: 0; }
.w-panel-head h3 span { display: inline-block; min-width: 18px; }
.w-panel-head p { margin-top: 4px; padding-left: 18px; font-size: 12px; line-height: 1.45; color: var(--muted); }
.w-screen { flex: 1; padding: 12px; background: #fff; border: 1px solid #e6edf6; border-radius: 8px; font-size: 12px; }

.g-logo { font-family: Arial, Helvetica, sans-serif; font-size: 14px; font-weight: 700; letter-spacing: -.02em; }
.g-logo i { font-style: normal; }
.g-logo i:nth-child(1), .g-logo i:nth-child(4) { color: #4285f4; }
.g-logo i:nth-child(2), .g-logo i:nth-child(6) { color: #ea4335; }
.g-logo i:nth-child(3) { color: #fbbc05; }
.g-logo i:nth-child(5) { color: #34a853; }
.w-screen-title { display: flex; align-items: center; gap: 5px; font-size: 12.5px; color: #4a5872; }

.w-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin-top: 10px; }
.w-tile { padding: 8px; border: 1px solid var(--line); border-radius: 6px; color: var(--ink); }
.w-tile small { display: block; font-size: 10px; line-height: 1.25; }
.w-tile b { display: block; margin-top: 4px; font-size: 19px; font-weight: 500; line-height: 1.1; }
.w-tile em { font-size: 10.5px; font-style: normal; font-weight: 600; }
.w-tile.is-blue { background: #2f7bee; border-color: #2f7bee; color: #fff; }
.w-tile.is-violet { background: #6a3fd1; border-color: #6a3fd1; color: #fff; }

.w-chart { margin-top: 12px; }
.w-chart svg { display: block; width: 100%; height: 100px; }
.w-chart line { stroke: #eef2f8; stroke-width: 1; vector-effect: non-scaling-stroke; }
.w-chart polyline { fill: none; stroke-width: 1.6; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.s-clicks, .s-views { stroke: #2f7bee; }
.s-impressions { stroke: #1f9d8f; }
.s-position { stroke: #8a4fe0; }
.w-legend + .w-chart .s-clicks { stroke: #8a4fe0; }
.w-chart-x { display: flex; justify-content: space-between; margin-top: 6px; font-size: 10px; color: var(--muted); }

.w-searchbar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
  font-size: 11.5px;
  color: var(--ink);
}
.w-searchbar span:not(.g-logo) { flex: 1; min-width: 0; }
.w-searchbar > svg { width: 14px; height: 14px; flex-shrink: 0; color: var(--blue); }
.w-searchbar.is-plain > svg { color: #ea4335; }
.w-tabs { display: flex; gap: 14px; margin-top: 10px; padding-bottom: 6px; border-bottom: 1px solid var(--line); font-size: 11px; color: var(--muted); overflow: hidden; }
.w-tabs .is-on { font-weight: 600; color: #1a56db; }
.w-result { margin-top: 12px; }
.w-site { display: flex; align-items: center; gap: 8px; font-size: 10.5px; color: var(--muted); }
.w-site b { display: block; font-size: 11px; font-weight: 500; color: var(--ink); }
.w-favicon { flex-shrink: 0; width: 28px; height: 18px; }
.w-result h4 { margin: 8px 0 0; font-family: var(--font-body); font-size: 14.5px; font-weight: 500; line-height: 1.3; color: #1a3fb0; }
.w-result p { margin-top: 6px; font-size: 12px; line-height: 1.5; }
.w-result small { display: block; margin-top: 8px; font-size: 11px; color: var(--muted); }

.w-ai { margin-top: 10px; padding: 12px; border: 1px solid var(--line); border-radius: 8px; }
.w-ai-head { display: flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 600; color: #1a56db; }
.w-ai-head svg { width: 14px; height: 14px; }
.w-ai > p:not(.w-ai-head) { margin: 8px 0 10px; font-size: 12px; line-height: 1.55; color: var(--ink); }
.w-observed { margin-top: 10px; font-size: 11px; line-height: 1.5; color: var(--muted); }
.w-observed b { font-weight: 600; color: var(--text); }

.w-gbp-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.w-gbp-stats > div { display: flex; flex-direction: column; padding-inline: 8px; }
.w-gbp-stats > div:first-child { padding-left: 2px; }
.w-gbp-stats > div + div { border-left: 1px solid var(--line); }
.w-gbp-stats dd { font-size: 20px; font-weight: 600; line-height: 1.2; color: var(--ink); }
.w-gbp-stats dt { margin-top: 4px; font-size: 11px; line-height: 1.3; color: var(--text); }
.w-gbp-stats em { margin-top: 4px; font-size: 11px; font-style: normal; font-weight: 600; color: var(--green); }
.w-legend { display: flex; gap: 16px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 11px; }
.w-legend span { display: inline-flex; align-items: center; gap: 6px; }
.w-legend span::before { content: ""; width: 8px; height: 8px; border-radius: 50%; }
.w-legend .is-views::before { background: #2f7bee; }
.w-legend .is-clicks::before { background: #8a4fe0; }

.w-gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px; height: 58px; overflow: hidden; border-radius: 6px; }
.w-gallery span { background-size: 260% auto; }
.w-biz-name { margin: 10px 0 0; font-family: var(--font-body); font-size: 14px; font-weight: 600; color: var(--ink); }
.w-biz-rating { margin-top: 2px; font-size: 11.5px; color: var(--text); }
.w-stars { color: #f5a623; letter-spacing: 1px; }
.w-biz-cat { font-size: 11.5px; color: var(--text); }
.w-biz-cat span { font-weight: 600; color: var(--green); }
.w-actions { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin-block: 12px; padding-block: 10px; border-block: 1px solid var(--line); text-align: center; font-size: 11px; color: #1a56db; }
.w-actions span { display: grid; place-items: center; width: 30px; height: 30px; margin: 0 auto 4px; border-radius: 50%; background: var(--blue-soft); }
.w-actions svg { width: 15px; height: 15px; }
.w-biz-line { display: flex; align-items: flex-start; gap: 8px; margin-top: 6px; font-size: 11.5px; color: var(--text); }
.w-biz-line svg { width: 14px; height: 14px; margin-top: 1px; flex-shrink: 0; color: var(--blue); }
.w-biz-line b { font-weight: 600; color: var(--green); }

.w-map { display: block; width: 100%; height: 112px; margin-top: 10px; border-radius: 6px; }
.w-listing { display: flex; gap: 10px; margin-top: 10px; padding: 10px; border: 1px solid var(--line); border-radius: 8px; }
.w-listing h4 { margin: 0; font-family: var(--font-body); font-size: 12.5px; font-weight: 600; color: var(--ink); }
.w-listing .w-favicon { margin-top: 2px; }

.w-impact { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 14px; }
.w-impact li { display: flex; gap: 12px; padding: 14px; background: linear-gradient(180deg, #f6f9fe 0%, #f1f5fc 100%); border: 1px solid #dfe8f5; border-radius: 8px; }
.w-impact-ico { flex-shrink: 0; color: var(--blue); }
.w-impact-ico svg { width: 32px; height: 32px; }
.w-impact h3 { font-family: var(--font-body); font-size: 13.5px; font-weight: 700; letter-spacing: 0; }
.w-impact p { margin-top: 5px; font-size: 12px; line-height: 1.5; color: var(--muted); }

.w-closing { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: center; margin-bottom: 36px; }
.w-approach { margin-top: 6px; font-size: 13.5px; line-height: 1.65; }
.w-cta {
  position: relative;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 18px 24px;
  overflow: hidden;
  background: linear-gradient(120deg, #0b2a62 0%, #0a3fa8 100%);
  border-radius: 12px;
  color: #dbe6ff;
}
.w-cta h2 { font-size: 18px; font-weight: 700; color: #fff; }
.w-cta p { margin-block: 6px 12px; max-width: 30em; font-size: 12.5px; line-height: 1.5; }
.w-cta > div { position: relative; }
.w-cta-ico { display: grid; place-items: center; flex-shrink: 0; width: 46px; height: 46px; border-radius: 50%; background: #fff; color: var(--blue); }
.w-cta-ico svg { width: 26px; height: 26px; }
.w-cta-line { position: absolute; right: 16px; bottom: 10px; width: 120px; height: 70px; }

@media (max-width: 1100px) {
  .w-featured { grid-template-columns: 200px minmax(0, 1fr); }
  .w-glance { grid-column: 1 / -1; padding: 14px 8px 4px; border-left: 0; border-top: 1px solid #d9e3f2; }
  .w-glance dl { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
  .w-panels { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .w-impact { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .w-closing { grid-template-columns: 1fr; }
  .w-hero { background: linear-gradient(180deg, rgba(6, 30, 84, .95) 0%, rgba(8, 44, 118, .8) 100%), var(--hero) center / cover no-repeat; }
  .w-hero-grid { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 680px) {
  .w-featured { grid-template-columns: 1fr; }
  .w-featured-photo { height: 200px; }
  .w-glance dl { grid-template-columns: 1fr; }
  .w-panels, .w-impact { grid-template-columns: minmax(0, 1fr); }
  .w-step-text, .w-approach { max-width: none; }
  .w-logo-card { width: 100%; padding: 16px; }
  .w-logo-row { justify-content: center; }
  .w-cta-line { display: none; }
  .w-step { margin-top: 36px; }
  .w-tabs { flex-wrap: wrap; gap: 4px 14px; }
}
@media (max-width: 350px) {
  .w-gbp-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 12px; }
  .w-gbp-stats > div:nth-child(odd) { padding-left: 2px; border-left: 0; }
}

/* ==========================================================================
   Blog (includes/blog.php, templates/blog.php, templates/blog-post.php)
   ========================================================================== */
.b-section { padding-block: 44px 72px; }
.b-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 30px; }
.b-filters a {
  padding: 8px 16px;
  border: 1px solid #d3dbe8;
  border-radius: 999px;
  background: #fff;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text);
  transition: background-color .2s, color .2s, border-color .2s;
}
.b-filters a:hover { border-color: var(--blue); color: var(--blue); }
.b-filters a.is-active { background: var(--blue); border-color: var(--blue); color: #fff; }

.b-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.b-card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.b-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: #cfdcf3; }
.b-card-media { aspect-ratio: 16 / 9; overflow: hidden; background: linear-gradient(135deg, #e8f0fe 0%, #d6e3fb 100%); }
.b-card-media img { width: 100%; height: 100%; object-fit: cover; }
.b-card-blank { display: grid; place-items: center; height: 100%; color: var(--blue); }
.b-card-blank svg { width: 44px; height: 44px; opacity: .55; }
.b-card-body { display: flex; flex: 1; flex-direction: column; padding: 20px 22px 22px; }
.b-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-size: 12.5px; color: var(--muted); }
.b-cat { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--blue); }
.b-card h3 { margin-top: 10px; font-size: 18px; font-weight: 700; line-height: 1.3; letter-spacing: -.01em; }
.b-card h3 a::after { content: ""; position: absolute; inset: 0; }
.b-card:hover h3 a { color: var(--blue); }
.b-excerpt { margin: 10px 0 16px; font-size: 14.5px; line-height: 1.6; color: var(--muted); }
.b-card .text-link { margin-top: auto; font-size: 13.5px; }
.b-card:hover .text-link svg { transform: translateX(4px); }

.b-card.is-large { flex-direction: row; margin-bottom: 26px; }
.b-card.is-large .b-card-media { flex: 0 0 54%; aspect-ratio: auto; min-height: 320px; }
.b-card.is-large .b-card-body { justify-content: center; padding: 34px 38px; }
.b-card.is-large h3 { font-size: clamp(22px, 2.4vw, 28px); }
.b-card.is-large .b-excerpt { font-size: 15.5px; }
.b-card.is-large .text-link { margin-top: 0; }

.b-empty { padding: 56px 24px; background: var(--bg-soft); border-radius: 14px; text-align: center; }
.b-empty h2 { font-size: 22px; font-weight: 700; }
.b-empty p { margin-block: 8px 20px; }
.b-pager { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px; margin-top: 36px; font-size: 14px; }
.b-more { margin-top: 28px; text-align: center; }

/* Single post */
.b-preview { padding: 9px 16px; background: #fff4e0; text-align: center; font-size: 13.5px; font-weight: 600; color: #8a5a00; }
.b-post-hero { padding-block: 26px 40px; }
.b-post-hero h1 { max-width: 24em; }
.b-post-hero .b-cat-link { display: inline-block; margin-top: 26px; }
.b-post-hero .b-cat-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.b-post-hero h1 { margin-top: 10px; font-size: clamp(28px, 3.8vw, 42px); font-weight: 700; }
.b-byline { margin-top: 14px; font-size: 14px; color: var(--muted); }
.b-byline b { font-weight: 600; color: var(--ink); }

.b-post-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 56px;
  align-items: start;
  padding-block: 40px 72px;
}
.b-post-image { width: 100%; margin-bottom: 30px; border-radius: 14px; }

.b-content { font-size: 17px; line-height: 1.8; color: #33415c; overflow-wrap: anywhere; }
.b-content > * + * { margin-top: 20px; }
.b-content h2, .b-content h3, .b-content h4 { font-weight: 700; }
.b-content h2 { margin-top: 38px; font-size: clamp(23px, 2.6vw, 28px); }
.b-content h3 { margin-top: 30px; font-size: 21px; }
.b-content h4 { margin-top: 26px; font-size: 18px; }
.b-content a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.b-content ul, .b-content ol { padding-left: 24px; list-style: revert; }
.b-content li + li { margin-top: 6px; }
.b-content blockquote { margin-inline: 0; padding: 14px 22px; border-left: 4px solid var(--blue); border-radius: 0 10px 10px 0; background: var(--bg-soft); font-size: 18px; color: var(--ink); }
.b-content img { height: auto; border-radius: 10px; }
.b-content hr { border: 0; border-top: 1px solid var(--line); }
.b-content pre { overflow-x: auto; padding: 16px; border-radius: 10px; background: var(--navy-deep); font-size: 14px; color: #dbe6ff; }
.b-content code { font-size: .92em; }

.b-post-aside { position: sticky; top: calc(var(--header-h) + 20px); display: grid; gap: 18px; }
.b-aside-card { padding: 22px; background: var(--bg-soft); border-radius: 14px; }
.b-aside-card h2 { font-size: 16px; font-weight: 700; }
.b-aside-card ul { display: grid; gap: 2px; margin-top: 10px; }
.b-aside-card a { display: flex; align-items: center; gap: 10px; padding: 7px 0; font-size: 14.5px; font-weight: 500; color: var(--ink); }
.b-aside-card a:hover { color: var(--blue); }
.b-aside-card svg { width: 17px; height: 17px; color: var(--blue); }
.b-aside-cta { padding: 24px 22px; background: linear-gradient(135deg, #0d2452 0%, var(--navy-deep) 100%); border-radius: 14px; color: #c5d0e6; }
.b-aside-cta h2 { font-size: 18px; font-weight: 700; color: #fff; }
.b-aside-cta p { margin-block: 8px 16px; font-size: 14px; line-height: 1.55; }

@media (max-width: 1024px) {
  .b-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .b-post-layout { grid-template-columns: 1fr; gap: 40px; }
  .b-post-aside { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .b-card.is-large { flex-direction: column; }
  .b-card.is-large .b-card-media { flex: none; aspect-ratio: 16 / 9; min-height: 0; }
  .b-card.is-large .b-card-body { padding: 20px 22px 22px; }
}
@media (max-width: 600px) {
  .b-grid, .b-post-aside { grid-template-columns: 1fr; }
  .b-content { font-size: 16px; }
  .b-post-layout { padding-block: 28px 56px; }
}

/* Our Work list (includes/templates/our-work.php) */
.breadcrumb.is-light li, .breadcrumb.is-light a, .breadcrumb.is-light [aria-current] { color: #dbe6ff; }
.breadcrumb.is-light a:hover { color: #fff; }
.breadcrumb.is-light li + li::before { color: #7f97c9; }
.w-hero .breadcrumb { padding-top: 16px; margin-bottom: -14px; }

.wl-hero {
  padding-block: 26px 52px;
  background:
    radial-gradient(60% 120% at 85% 20%, rgba(79, 141, 255, .35) 0%, rgba(79, 141, 255, 0) 70%),
    linear-gradient(110deg, #061e54 0%, #0a3fa8 100%);
  color: #dbe6ff;
}
.wl-hero .eyebrow { margin-top: 30px; }
.wl-hero h1 { margin-top: 12px; max-width: 16em; font-size: clamp(30px, 4vw, 44px); font-weight: 700; color: #fff; }
.wl-hero .lead { max-width: 36em; margin-top: 16px; color: #e4ecff; }

.wl-section { padding-block: 52px 72px; }
.wl-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 24px; }
.wl-card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  transition: box-shadow .25s, border-color .25s;
}
.wl-card:hover { box-shadow: var(--shadow-md); border-color: #cfdcf3; }
.wl-media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--bg-soft); }
.wl-media > img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.wl-card:hover .wl-media > img { transform: scale(1.04); }
.wl-logo { position: absolute; left: 14px; bottom: 14px; padding: 6px 10px; background: #fff; border-radius: 8px; box-shadow: var(--shadow-sm); }
.wl-logo img { width: 62px; height: 36px; object-fit: contain; }
.wl-body { display: flex; flex: 1; flex-direction: column; padding: 22px 24px 24px; }
.wl-card h2 { font-size: 20px; font-weight: 700; }
.wl-card h2 a::after { content: ""; position: absolute; inset: 0; }
.wl-card:hover h2 a { color: var(--blue); }
.wl-meta { margin-top: 6px; font-size: 13.5px; font-weight: 500; color: var(--ink); }
.wl-meta span { margin-inline: 5px; color: var(--muted); }
.wl-summary { margin-top: 10px; font-size: 14.5px; line-height: 1.6; color: var(--text); }
.wl-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-block: 14px 18px; }
.wl-tags li { padding: 4px 10px; border-radius: 999px; background: var(--blue-soft); font-size: 12px; font-weight: 600; color: var(--blue-dark); }
.wl-link { display: inline-flex; align-items: center; gap: 8px; margin-top: auto; font-size: 14px; font-weight: 600; color: var(--blue); }
.wl-link svg { width: 15px; height: 15px; transition: transform .2s; }
.wl-card:hover .wl-link svg { transform: translateX(4px); }

.wl-card.is-large { flex-direction: row; }
.wl-card.is-large .wl-media { flex: 0 0 50%; aspect-ratio: auto; min-height: 340px; }
.wl-card.is-large .wl-body { justify-content: center; padding: 34px 38px; }
.wl-card.is-large .eyebrow { font-size: 11px; }
.wl-card.is-large h2 { margin-top: 6px; font-size: clamp(24px, 2.6vw, 30px); }
.wl-card.is-large .wl-summary { font-size: 15.5px; }
.wl-card.is-large .wl-link { margin-top: 0; }

.wl-card.is-next { justify-content: center; padding: 30px 26px; background: linear-gradient(180deg, #f6f9fe 0%, #eef3fc 100%); border-style: dashed; border-color: #b9cbea; }
.wl-card.is-next .wl-link { margin-top: 16px; }
.wl-next-ico { display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 16px; border-radius: 50%; background: #fff; color: var(--blue); }
.wl-next-ico svg { width: 24px; height: 24px; }

/* Only the "Your project" card left: run it as a full-width strip */
.wl-grid:has(> .wl-card:only-child) { grid-template-columns: 1fr; }

.w-logo-mark, .w-favicon { object-fit: contain; }

@media (max-width: 1024px) {
  .wl-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .wl-card.is-large { flex-direction: column; }
  .wl-card.is-large .wl-media { flex: none; aspect-ratio: 16 / 10; min-height: 0; }
  .wl-card.is-large .wl-body { padding: 22px 24px 24px; }
  .wl-section { padding-block: 36px 52px; }
}
@media (max-width: 600px) {
  .wl-grid { grid-template-columns: 1fr; }
}

.w-back { margin-bottom: 36px; }
.w-back svg { transform: rotate(180deg); }
.w-back a:hover svg { transform: rotate(180deg) translateX(4px); }
.w-closing { margin-bottom: 24px; }

.w-hero { background-color: #082c76; }
.w-featured.is-no-photo { grid-template-columns: minmax(0, 1fr) 280px; }
@media (max-width: 1100px) { .w-featured.is-no-photo { grid-template-columns: 1fr; } }
