/* ══════════════════════════════════════════════════════════════════════
   APEX FOUR VENTURES — SITE STRUCTURE & TYPE SYSTEM
   Website page layouts and type roles. Loaded after tokens.css and base.css
   on every public page; colours, sizes and spacing come from tokens.css.
   ══════════════════════════════════════════════════════════════════════ */

body { font-size: var(--fs-body); line-height: var(--lh-body); color: var(--text); }
h1, h2, h3, h4 { color: var(--heading); margin: 0; }
h1 { font-size: var(--fs-h1); line-height: var(--lh-tight); letter-spacing: -0.022em; font-weight: 800 !important; }
h2 { font-size: var(--fs-h2); line-height: var(--lh-head); letter-spacing: -0.015em; }
h3 { font-size: var(--fs-h3); line-height: 1.3; }
h4 { font-size: var(--fs-h4); line-height: 1.3; }
p { margin: 0; }
.lead { font-size: var(--fs-lead); line-height: 1.6; color: var(--text-muted); max-width: var(--measure); }
.muted { color: var(--text-muted); font-size: var(--fs-small); }

/* Sections: one rhythm everywhere */
.section { padding: var(--sp-section) 0 !important; border: 0; }
.section-tight { padding-top: 0 !important; }
.section-head { margin-bottom: var(--sp-head); max-width: 760px; }
.section-head h2 + .lead { margin-top: 8px; }
.section-head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap; margin-bottom: var(--sp-head); }
.section-head-row .section-head { margin-bottom: 0; }

.skip-link { position: absolute; left: 12px; top: -60px; z-index: 3000; background: var(--fb-blue-fill); color: #fff; padding: 10px 14px; border-radius: 6px; font-weight: 700; }
.skip-link:focus { top: 10px; }
:focus-visible { outline: 3px solid var(--fb-blue); outline-offset: 2px; }

/* ── Buttons: primary (filled), secondary (grey), tertiary (text link) ── */
.btn { font-size: 0.9375rem; line-height: 1.2; gap: 8px; }
.btn-lg { padding: 13px 22px; font-size: 1rem; }
.btn .material-symbols-outlined { font-size: 20px; }
.btn-text {
  display: inline-flex; align-items: center; gap: 4px; padding: 10px 2px;
  font-weight: 600; font-size: 0.9375rem; color: var(--fb-blue);
}
.btn-text:hover { text-decoration: underline; }
.btn-text .material-symbols-outlined { font-size: 18px; }

/* ══ HEADER: grouped dropdown navigation ═══════════════════════════════ */
.site-nav { position: relative; }
.nav-links { list-style: none; padding: 0; }
.nav-group { position: relative; }
.nav-trigger {
  background: none; border: 0; cursor: pointer; font: inherit;
  font-size: 0.9375rem !important; color: var(--text); gap: 2px;
}
.nav-caret { font-size: 18px !important; transition: transform .15s ease; color: var(--text-muted); }
.nav-group.open .nav-caret { transform: rotate(180deg); }
.nav-group.open > .nav-trigger, .nav-trigger:hover { background: var(--fb-hover); color: var(--text); }
.nav-menu {
  position: absolute; top: calc(100% + 8px); left: 50%; transform: translateX(-50%);
  min-width: 260px; padding: 8px; z-index: 1200;
  background: var(--bg-surface); border-radius: 10px;
  box-shadow: 0 12px 28px rgba(0,0,0,.18), 0 2px 4px rgba(0,0,0,.08);
  display: none;
}
.nav-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -10px; height: 10px; } /* hover bridge */
.nav-group.open > .nav-menu { display: block; }
@media (hover: hover) and (pointer: fine) {
  .nav-group:hover > .nav-menu { display: block; }
}
.nav-menu-link { display: block; padding: 9px 12px; border-radius: 8px; color: var(--text); }
.nav-menu-link:hover, .nav-menu-link:focus-visible { background: var(--fb-hover); }
.nml-title { display: block; font-weight: 600; font-size: 0.9375rem; line-height: 1.3; }
.nml-desc { display: block; font-size: var(--fs-meta); color: var(--text-muted); line-height: 1.35; margin-top: 2px; }
.nav-menu-wide { min-width: 540px; }
.nav-menu-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 8px; }
.nav-menu-head { font-size: var(--fs-meta); font-weight: 700; color: var(--text-muted); padding: 8px 12px 4px; }
.nav-menu-all { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 6px; padding: 10px; border-top: 1px solid var(--border-light); font-weight: 600; color: var(--fb-blue); font-size: 0.9375rem; }
.nav-menu-all .material-symbols-outlined { font-size: 18px; }
.nav-menu-all:hover { text-decoration: underline; }

.main-header .nav-container { min-height: 64px; }
.brand-tagline { display: none !important; }
/* Five groups fit from 1024px up */
@media (min-width: 1024px) {
  .main-header .nav-links { display: flex !important; }
  .main-header .mobile-menu-toggle { display: none !important; }
}
@media (max-width: 1023px) {
  .main-header .nav-links { display: none !important; }
  .main-header .mobile-menu-toggle { display: inline-flex !important; }
}
/* the header CTA keeps its label down to 1180px, then becomes an icon */
@media (min-width: 1180px) {
  .nav-actions .nav-cta { width: auto !important; height: auto !important; padding: 9px 16px !important; border-radius: 6px !important; }
  .nav-actions .nav-cta > span:not(.material-symbols-outlined) { display: inline !important; }
}

/* ══ MOBILE DRAWER (grouped) ═══════════════════════════════════════════ */
#mobile-drawer { padding: 16px 18px calc(18px + env(safe-area-inset-bottom, 0px)); justify-content: flex-start; gap: 8px; }
.drawer-top { display: flex; align-items: center; justify-content: space-between; padding-bottom: 12px; border-bottom: 1px solid var(--border); }
.drawer-brand { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--heading); }
.drawer-brand img { width: 36px; height: 36px; object-fit: contain; border-radius: 50%; }
.drawer-close { background: var(--fb-btn2); border: 0; border-radius: 50%; width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; color: var(--text); cursor: pointer; }
.drawer-nav { display: flex; flex-direction: column; }
.drawer-group { border-bottom: 1px solid var(--border-light); }
.drawer-group summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between;
  padding: 14px 4px; font-weight: 700; font-size: 1.0625rem; color: var(--heading);
}
.drawer-group summary::-webkit-details-marker { display: none; }
.drawer-group[open] summary .nav-caret { transform: rotate(180deg); }
.drawer-links { padding: 0 0 10px; display: flex; flex-direction: column; }
.drawer-links .nav-menu-link { padding: 9px 8px; }
.drawer-links .nml-desc { display: none; }
.drawer-links .nav-menu-cols { grid-template-columns: 1fr; }
.drawer-links .nav-menu-all { justify-content: flex-start; border-top: 0; padding: 9px 8px; }
.drawer-foot { margin-top: auto; padding-top: 16px; display: grid; gap: 10px; }

/* ══ HERO ══════════════════════════════════════════════════════════════ */
.hero-section.hero-v2 { padding: 52px 0 48px; }
.hero-v2 .hero-grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: 40px; align-items: center; }
.hero-kicker { font-size: var(--fs-small); font-weight: 600; color: var(--fb-blue); margin-bottom: 14px; }
.hero-v2 .hero-title { font-size: var(--fs-h1) !important; line-height: var(--lh-tight); margin-bottom: 16px; max-width: 18ch; }
.hero-lead { font-size: 1.125rem; line-height: 1.6; color: var(--text-muted); max-width: 58ch; margin-bottom: 24px; }
.hero-v2 .hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-bottom: 24px; }
.hero-trust { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 18px; }
.hero-trust li { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-small); color: var(--text-muted); font-weight: 500; }
.hero-trust .material-symbols-outlined { font-size: 18px; color: var(--emerald); }

.hero-panel { background: var(--bg-surface); border-radius: 10px; box-shadow: var(--shadow-sm); padding: 6px; position: relative; z-index: 2; }
.hp-block { padding: 16px 18px; }
.hp-block + .hp-block { border-top: 1px solid var(--border-light); }
.hp-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.hp-head .material-symbols-outlined { width: 36px; height: 36px; border-radius: 50%; background: var(--fb-blue-soft); color: var(--fb-blue); display: inline-flex; align-items: center; justify-content: center; font-size: 20px; }
.hp-title { font-size: 1rem; font-weight: 700; color: var(--heading); }
.hp-sub { font-size: var(--fs-meta); color: var(--text-muted); }
.hp-links { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.hp-links a { display: inline-block; padding: 5px 11px; border-radius: 999px; background: var(--fb-btn2); color: var(--text); font-size: var(--fs-meta); font-weight: 600; }
.hp-links a:hover { background: var(--fb-blue-soft); color: var(--fb-blue); }

/* ══ WHERE WE HELP (problems) ══════════════════════════════════════════ */
.help-band { background: var(--bg-surface); border-top: 1px solid var(--border-light); border-bottom: 1px solid var(--border-light); padding: 28px 0; }
.help-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); }
.help-item { display: flex; gap: 12px; align-items: flex-start; }
.help-item > .material-symbols-outlined { flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--fb-blue-soft); color: var(--fb-blue); display: inline-flex; align-items: center; justify-content: center; font-size: 22px; }
.help-item h3 { font-size: 1rem; margin-bottom: 2px; }
.help-item p { font-size: var(--fs-small); color: var(--text-muted); line-height: 1.5; }
.help-item a { font-size: var(--fs-meta); font-weight: 600; color: var(--fb-blue); display: inline-block; margin-top: 4px; }
.help-item a:hover { text-decoration: underline; }

/* ══ SERVICES ══════════════════════════════════════════════════════════ */
.svc-group + .svc-group { margin-top: 36px; }
.svc-group-head { display: flex; align-items: baseline; gap: 6px 16px; flex-wrap: wrap; margin-bottom: 14px; padding-bottom: 10px; border-bottom: 1px solid var(--border); }
.svc-group-head h2, .svc-group-head h3 { font-size: 1.25rem; }
.svc-group-head p { color: var(--text-muted); font-size: var(--fs-small); }
.svc-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
.svc-card {
  display: flex; flex-direction: column; gap: 10px; padding: var(--card-pad);
  background: var(--bg-surface); border-radius: 8px; box-shadow: var(--shadow-sm);
}
.svc-card:hover { box-shadow: 0 2px 10px rgba(0,0,0,.14); }
.svc-head { display: flex; align-items: center; gap: 10px; }
.svc-icon { width: 40px; height: 40px; border-radius: 50%; background: var(--fb-blue-soft); color: var(--fb-blue); display: inline-flex; align-items: center; justify-content: center; font-size: 22px !important; flex: none; }
.svc-cat { font-size: var(--fs-badge); font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--text-muted); }
.svc-title { font-size: var(--fs-h4); }
.svc-title a { color: var(--heading); }
.svc-title a:hover { color: var(--fb-blue); }
.svc-desc { font-size: var(--fs-small); color: var(--text-muted); line-height: 1.55; }
.svc-caps { list-style: none; padding: 0; margin: 0; display: grid; gap: 5px; }
.svc-caps li { position: relative; padding-left: 20px; font-size: var(--fs-small); color: var(--text); line-height: 1.45; }
.svc-caps li::before { content: ""; position: absolute; left: 3px; top: .5em; width: 7px; height: 7px; border-radius: 50%; background: var(--fb-blue); }
.svc-link { margin-top: auto; padding-top: 4px; display: inline-flex; align-items: center; gap: 4px; font-weight: 600; font-size: var(--fs-small); color: var(--fb-blue); }
.svc-link .material-symbols-outlined { font-size: 18px; }
.svc-link:hover { text-decoration: underline; }
.svc-card-cta { background: var(--fb-blue-soft) !important; box-shadow: none; }
.svc-card-cta .svc-icon { background: var(--bg-surface); }
.svc-cta-actions { margin-top: auto; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
.svc-cta-actions .svc-link { margin-top: 0; padding-top: 0; }
.svc-grid-compact .svc-card { gap: 8px; }

/* ══ PROJECTS ══════════════════════════════════════════════════════════ */
.proj-filters { display: flex; flex-wrap: wrap; gap: 8px; }
.proj-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
.proj-card { display: flex; flex-direction: column; background: var(--bg-surface); border-radius: 8px; box-shadow: var(--shadow-sm); overflow: hidden; }
.proj-card[hidden] { display: none; }
.proj-visual { position: relative; aspect-ratio: 16 / 9; background: #1c2a3a; overflow: hidden; }
.proj-visual img { width: 100%; height: 100%; object-fit: cover; display: block; }
.proj-visual-map {
  display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 4px; color: #dbe7f7;
  background:
    repeating-radial-gradient(circle at 30% 60%, transparent 0 18px, rgba(255,255,255,.07) 18px 19px),
    repeating-radial-gradient(circle at 78% 30%, transparent 0 14px, rgba(255,255,255,.06) 14px 15px),
    linear-gradient(135deg, #17324f, #0f4c81);
}
.proj-visual-map .material-symbols-outlined { font-size: 34px; color: #fff; }
.proj-visual-map span:last-child { font-size: var(--fs-meta); font-variant-numeric: tabular-nums; }
.proj-badges { position: absolute; left: 10px; top: 10px; right: 10px; display: flex; justify-content: space-between; gap: 6px; flex-wrap: wrap; }
.proj-tag, .proj-status { font-size: var(--fs-badge); font-weight: 700; letter-spacing: .03em; padding: 4px 9px; border-radius: 6px; line-height: 1.2; }
.proj-tag { background: var(--fb-blue-fill); color: #fff; }
.proj-status { background: rgba(255,255,255,.94); color: #1c1e21; }
.proj-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.proj-title { font-size: var(--fs-h4); }
.proj-loc { display: flex; align-items: center; gap: 4px; font-size: var(--fs-meta); color: var(--text-muted); }
.proj-loc .material-symbols-outlined { font-size: 16px; }
.proj-scope { font-size: var(--fs-small); color: var(--text-muted); line-height: 1.55; }
.proj-meta { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; margin: 2px 0 0; font-size: var(--fs-meta); }
.proj-meta dt { color: var(--text-muted); font-weight: 600; }
.proj-meta dd { margin: 0; color: var(--text); }
.proj-meta a { color: var(--fb-blue); font-weight: 600; }
.proj-actions { margin-top: auto; padding-top: 6px; display: flex; align-items: center; gap: 6px 14px; flex-wrap: wrap; }
.proj-card-cta { background: var(--fb-blue-soft); box-shadow: none; justify-content: center; }
.proj-card-cta .proj-body { justify-content: center; gap: 10px; padding: 24px; }
.proj-empty { grid-column: 1 / -1; padding: 24px; text-align: center; color: var(--text-muted); background: var(--bg-surface); border-radius: 8px; }

/* map block under the projects */
#interactive-map .map-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px 20px; flex-wrap: wrap; margin-bottom: 16px; }
#interactive-map .map-head h2 { font-size: 1.25rem; }
#interactive-map .map-head p { color: var(--text-muted); font-size: var(--fs-small); }
#interactive-map .map-head-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.map-layout-grid { height: 460px; }
#map-coords-display { font-variant-numeric: tabular-nums; font-family: inherit !important; }

/* ══ COMPANY & TRUST ═══════════════════════════════════════════════════ */
.company-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 28px; align-items: start; }
.about-text > p { color: var(--text); max-width: var(--measure); }
.about-text > p + p { margin-top: 12px; }
.division { margin-top: 22px; padding: var(--card-pad); background: var(--bg); border-radius: 8px; }
.division h3 { margin-bottom: 6px; }
.division > p { color: var(--text-muted); font-size: var(--fs-small); }
.cap-list { list-style: none; padding: 0; margin: 14px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 18px; }
.cap-list li { display: flex; gap: 8px; font-size: var(--fs-small); line-height: 1.45; }
.cap-list .material-symbols-outlined { color: var(--fb-blue); font-size: 20px; flex: none; }
.cap-list strong { display: block; color: var(--heading); }
.cap-list span.t { color: var(--text-muted); }
.division .btn-text { margin-top: 8px; }
.facts-card { background: var(--bg-surface); border-radius: 8px; box-shadow: var(--shadow-sm); padding: var(--card-pad); }
.facts-card h3 { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.facts-card h3 .material-symbols-outlined { color: var(--emerald); }
.facts { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); margin: 0; }
.facts dt, .facts dd { padding: 9px 0; border-top: 1px solid var(--border-light); font-size: var(--fs-small); margin: 0; }
.facts dt { color: var(--text-muted); padding-right: 12px; }
.facts dd { color: var(--heading); font-weight: 600; font-variant-numeric: tabular-nums; }
.facts-note { margin-top: 14px; padding: 12px 14px; border-radius: 8px; background: var(--fb-blue-soft); font-size: var(--fs-small); color: var(--text); }
.facts-note a { color: var(--fb-blue); font-weight: 600; }

/* leadership */
.leader-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); }
.leader-card { background: var(--bg-surface); border-radius: 8px; box-shadow: var(--shadow-sm); overflow: hidden; display: flex; flex-direction: column; }
.leader-photo { aspect-ratio: 1 / 1; background: var(--bg); }
.leader-photo img { width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; }
.leader-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 2px; flex: 1; }
.leader-body h3 { font-size: 1rem; }
.leader-role { font-size: var(--fs-meta); color: var(--fb-blue); font-weight: 700; }
.leader-meta { font-size: var(--fs-meta); color: var(--text-muted); }
.leader-actions { margin-top: auto; padding-top: 10px; display: flex; gap: 8px; }
.leader-actions .btn { flex: 1; }
.leader-actions .btn-icon { flex: none; width: 38px; padding: 0; justify-content: center; }

/* ══ PLAN YOUR PROJECT (estimator, assistant, console) ═════════════════ */
#estimator { scroll-margin-top: 80px; }
.plan-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--gap); margin-top: var(--gap); align-items: start; }
.plan-row .claude-prompt-wrapper, .plan-row .search-console-wrapper { margin: 0 !important; padding: 0 !important; max-width: none; width: auto; }
.plan-row .claude-prompt-card, .plan-row .search-console-card { box-shadow: var(--shadow-sm) !important; }
.plan-card-title { font-size: 1.0625rem; margin-bottom: 4px; }
.plan-card-sub { font-size: var(--fs-meta); color: var(--text-muted); margin-bottom: 12px; }
.plan-row .console-form-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important; }
.plan-row .console-form-grid > .btn { grid-column: 1 / -1; }
.plan-row .console-tabs { overflow-x: auto; scrollbar-width: none; }
.plan-row .console-tabs::-webkit-scrollbar { display: none; }
.plan-row .console-tab-btn { white-space: nowrap; min-width: 0 !important; flex: none; }
.plan-row .claude-chips-row { flex-wrap: wrap; }
.estimate-note { font-size: var(--fs-meta); color: var(--text-muted); margin-top: 10px; }
.estimator-result-card .price-display { font-variant-numeric: tabular-nums; }

/* ══ INSIGHTS ══════════════════════════════════════════════════════════ */
.library-grid { gap: var(--gap) !important; }
.library-card { padding: var(--card-pad) !important; display: flex; flex-direction: column; gap: 8px; }
.library-card .library-title { font-size: var(--fs-h4); margin: 0; }
.library-card .library-desc { font-size: var(--fs-small); color: var(--text-muted); margin: 0; }
.library-card .library-type { font-size: var(--fs-badge); font-weight: 700; letter-spacing: .04em; }
.library-card .btn-text { margin-top: auto; align-self: flex-start; }

/* ══ CONTACT ═══════════════════════════════════════════════════════════ */
.contact-v2 { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 28px; align-items: start; }
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.steps li { display: flex; gap: 12px; align-items: flex-start; }
.step-n { flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--fb-blue-fill); color: #fff; font-weight: 700; font-size: .875rem; display: inline-flex; align-items: center; justify-content: center; }
.steps h3 { font-size: 1rem; margin-bottom: 2px; }
.steps p { font-size: var(--fs-small); color: var(--text-muted); line-height: 1.5; }
.contact-list { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 10px; }
.contact-list li { display: flex; gap: 10px; align-items: flex-start; font-size: var(--fs-small); }
.contact-list .material-symbols-outlined { color: var(--fb-blue); font-size: 20px; flex: none; margin-top: 1px; }
.contact-list .k { display: block; font-size: var(--fs-meta); color: var(--text-muted); }
.contact-list a { color: var(--fb-blue); font-weight: 600; overflow-wrap: anywhere; }
.contact-side h3.side-title { font-size: 1.0625rem; margin: 0 0 12px; }
.contact-details { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--border); }
.booking-form-card { padding: 24px !important; }
.booking-form-card h3 { font-size: 1.125rem; margin-bottom: 4px; }
.form-hint { font-size: var(--fs-meta); color: var(--text-muted); margin-bottom: 18px; }
.form-label { font-size: .875rem; font-weight: 600; }
.form-status { margin-top: 12px; font-size: var(--fs-small); padding: 10px 12px; border-radius: 6px; }
.form-status.ok { background: var(--emerald-soft); color: var(--emerald); }
.form-status.err { background: #fde8e8; color: #b42318; }
[data-theme="dark"] .form-status.err { background: rgba(240, 82, 82, .15); color: #f87171; }

/* ══ FOOTER ════════════════════════════════════════════════════════════ */
.site-footer { padding: 44px 0 24px !important; }
.footer-grid { display: grid; grid-template-columns: 1.35fr 1fr 1fr .8fr 1.25fr; gap: 28px; }
.footer-logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.05rem; color: var(--heading) !important; }
.footer-logo img { width: 40px; height: 40px; object-fit: contain; border-radius: 50%; }
.footer-brand p { margin-top: 10px; font-size: var(--fs-small); color: var(--text-muted); line-height: 1.55; max-width: 38ch; }
.footer-social { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.footer-social a { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: var(--fb-btn2); color: var(--text) !important; font-size: var(--fs-meta); font-weight: 600; }
.footer-social a:hover { text-decoration: none !important; background: var(--fb-btn2-h); }
.footer-social .material-symbols-outlined { font-size: 16px; }
.site-footer .footer-col-title { font-size: var(--fs-meta) !important; letter-spacing: .02em !important; text-transform: none !important; margin-bottom: 12px; color: var(--heading) !important; font-weight: 700 !important; }
.site-footer .footer-links { gap: 8px; font-size: var(--fs-small); padding: 0; margin: 0; }
.footer-contact { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; font-size: var(--fs-small); }
.footer-contact li { display: flex; gap: 8px; align-items: flex-start; color: var(--text-muted); }
.footer-contact .material-symbols-outlined { font-size: 18px; color: var(--fb-blue); flex: none; margin-top: 1px; }
.footer-contact a { overflow-wrap: anywhere; }
.site-footer .footer-bottom { margin-top: 32px; padding-top: 18px; border-top: 1px solid var(--border); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 20px; font-size: var(--fs-meta); color: var(--text-muted); }
.footer-legal { display: flex; flex-wrap: wrap; gap: 6px 18px; }

/* ══ SUB-PAGES (services, privacy) ═════════════════════════════════════ */
.crumbs { padding: 14px 0 0; font-size: var(--fs-meta); }
.crumbs ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 4px; color: var(--text-muted); }
.crumbs li + li::before { content: "›"; margin-right: 4px; color: var(--text-dim); }
.crumbs a { color: var(--fb-blue); }
.crumbs a:hover { text-decoration: underline; }
.page-hero { padding: 24px 0 var(--sp-section); }
.page-hero-slim { padding-bottom: 24px; }
.page-hero h1 { margin-bottom: 12px; max-width: 22ch; }
.page-hero-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: 32px; align-items: start; }
.page-kicker { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--fb-blue); font-size: var(--fs-small); margin-bottom: 12px; }
.page-kicker .material-symbols-outlined { width: 34px; height: 34px; border-radius: 50%; background: var(--fb-blue-soft); display: inline-flex; align-items: center; justify-content: center; font-size: 20px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.glance-card { background: var(--bg-surface); border-radius: 8px; box-shadow: var(--shadow-sm); padding: var(--card-pad); }
.glance-title { font-size: 1rem; margin-bottom: 8px; }
.glance-card dl { margin: 0; }
.glance-card dt { font-size: var(--fs-meta); color: var(--text-muted); font-weight: 600; margin-top: 12px; }
.glance-card dd { margin: 6px 0 0; font-size: var(--fs-small); font-weight: 600; color: var(--heading); }
.chip-list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.chip-list li { padding: 4px 10px; border-radius: 999px; background: var(--fb-blue-soft); color: var(--fb-blue); font-size: var(--fs-meta); font-weight: 600; }
.chip-list-muted li { background: var(--fb-btn2); color: var(--text); }
.section-block { padding: var(--sp-section) 0; background: var(--bg-surface); }
.section-block-alt { background: var(--bg); }
.section-block h2 { margin-bottom: 16px; }
.two-col { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 40px; }
.included-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 16px 24px; }
.included-list li { padding-left: 14px; border-left: 3px solid var(--fb-blue); }
.included-list h3 { font-size: 1rem; margin-bottom: 2px; }
.included-list p { font-size: var(--fs-small); color: var(--text-muted); line-height: 1.55; }
.cta-band { padding: 40px 0; background: var(--fb-blue-fill); color: #fff; }
.cta-band-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px 32px; flex-wrap: wrap; }
.cta-band h2 { color: #fff !important; font-size: 1.5rem; }
.cta-band p { color: rgba(255,255,255,.88); margin-top: 6px; }
.cta-band .cta-row { margin-top: 0; }
.cta-band .btn-primary { background: #fff !important; color: #1464d4 !important; border-color: #fff !important; }
.cta-band .btn-primary:hover { background: #f0f2f5 !important; }
.cta-band .btn-outline { background: transparent !important; color: #fff !important; border-color: rgba(255,255,255,.85) !important; }
.cta-band .btn-outline:hover { background: rgba(0,0,0,.14) !important; }
.prose { max-width: 760px; }
.prose h2 { font-size: 1.25rem; margin: 28px 0 8px; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: var(--text); line-height: 1.65; }
.prose ul { padding-left: 20px; margin: 8px 0; display: grid; gap: 6px; }
.prose a { color: var(--fb-blue); font-weight: 600; }
.prose .muted { margin-top: 28px; }
.subpage { background: var(--bg); }

/* ══ RESPONSIVE ════════════════════════════════════════════════════════ */
@media (max-width: 1100px) {
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .leader-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
  .hero-v2 .hero-grid, .company-grid, .contact-v2, .page-hero-grid, .two-col, .plan-row { grid-template-columns: minmax(0, 1fr) !important; }
  .help-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .svc-grid, .proj-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-v2 .hero-title { max-width: none; }
  .map-layout-grid { height: auto; }
}
@media (max-width: 640px) {
  .hero-section.hero-v2 { padding: 32px 0 32px; }
  .hero-lead { font-size: 1.0625rem; }
  .hero-v2 .hero-actions .btn { width: 100%; }
  .hero-v2 .hero-actions .btn-text { width: auto; }
  .help-grid, .svc-grid, .proj-grid, .included-list, .cap-list { grid-template-columns: minmax(0, 1fr); }
  .help-band { padding: 22px 0; }
  .leader-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .leader-body { padding: 12px; }
  .leader-actions { flex-direction: column; }
  .leader-actions .btn-icon { width: auto; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 22px; }
  .footer-grid > div:last-child { grid-column: 1 / -1; }
  .plan-row .console-form-grid { grid-template-columns: minmax(0, 1fr) !important; }
  .facts { grid-template-columns: minmax(0, 1fr); }
  .facts dd { border-top: 0; padding-top: 0; }
  .cta-band .btn { width: 100%; }
  .page-hero h1 { max-width: none; }
  .nav-menu-wide { min-width: 0; }
}
@media (max-width: 380px) {
  .leader-grid { grid-template-columns: minmax(0, 1fr); }
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  #hero-geospatial-canvas { display: none; }
}
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
button.btn-text { background: none; border: 0; cursor: pointer; font-family: inherit; }
.map-layout-grid { height: 500px; }
.map-info-panel { overflow-y: auto; }
@media (max-width: 960px) { .map-layout-grid { height: auto; } }
@media (max-width: 640px) {
  .nav-actions .nav-cta { display: none !important; }      /* the hero and menu carry the CTA on phones */
  .hero-panel { display: none; }                             /* the services section follows directly */
  .svc-card { gap: 8px; }
  .svc-caps li { font-size: 0.875rem; }
}
.form-status a { color: inherit; text-decoration: underline; font-weight: 600; }
.site-footer .footer-contact li { min-width: 0; } .site-footer .footer-contact li > a { min-width: 0; overflow-wrap: anywhere !important; word-break: break-word; }

/* ══ MULTI-PAGE: home overview, trust row, current nav ══════════════════ */
.nav-group.current > .nav-trigger { color: var(--fb-blue) !important; }
.nav-group.current > .nav-trigger::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: -11px; height: 3px; border-radius: 3px 3px 0 0; background: var(--fb-blue); }
.nav-group > .nav-trigger { position: relative; }
.proj-count { margin: 0; }
.ov-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap); }
.ov-card { padding: var(--card-pad); border-radius: 12px; display: flex; flex-direction: column; gap: 16px; }
.ov-head { display: flex; gap: 14px; align-items: flex-start; }
.ov-icon { width: 46px; height: 46px; border-radius: 12px; background: var(--fb-blue-fill); color: #fff !important; display: inline-flex; align-items: center; justify-content: center; font-size: 24px !important; flex: none; }
.ov-head h3 { font-size: 1.125rem; margin-bottom: 4px; }
.ov-head p { color: var(--text-muted); font-size: var(--fs-small); }
.ov-links { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.ov-links a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; background: var(--bg); color: var(--text); font-weight: 600; font-size: var(--fs-small); min-height: 46px; transition: background .2s ease, transform .2s ease, color .2s ease; }
.ov-links a .material-symbols-outlined { color: var(--fb-blue); font-size: 20px; flex: none; }
.ov-links a:hover { background: var(--fb-blue-soft); color: var(--fb-blue); transform: translateX(2px); }
.trust-section { padding-top: var(--sp-section) !important; }
.trust-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); }
.trust-item { display: flex; gap: 12px; align-items: flex-start; padding: 18px; border-radius: 12px; }
.trust-item > .material-symbols-outlined { flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--fb-blue-soft); color: var(--fb-blue); display: inline-flex; align-items: center; justify-content: center; font-size: 22px; }
.trust-item h3 { font-size: 1rem; margin-bottom: 2px; }
.trust-item p { color: var(--text-muted); font-size: var(--fs-small); line-height: 1.5; }
.trust-item a { display: inline-block; margin-top: 6px; font-size: var(--fs-meta); font-weight: 600; color: var(--fb-blue); }
.trust-item a:hover { text-decoration: underline; }
.page-hero-slim + .section { padding-top: 8px !important; }
.page-hero-slim + .section.section-alt { padding-top: var(--sp-section) !important; }
@media (max-width: 960px) { .trust-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .ov-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 640px) { .trust-grid, .ov-links { grid-template-columns: minmax(0, 1fr); } .nav-group.current > .nav-trigger::after { display: none; } }

/* ══ GLASS CARDS — subtle (5–10%) depth on every card ═══════════════════ */

.svc-card, .proj-card, .leader-card, .facts-card, .library-card, .glance-card, .hero-panel, .ov-card, .trust-item,
.booking-form-card, .estimator-card, .estimator-result-card, .claude-prompt-card, .search-console-card, .map-stage-wrapper {
  background: var(--glass-bg) !important;
  -webkit-backdrop-filter: blur(12px) saturate(140%); backdrop-filter: blur(12px) saturate(140%);
  border: 1px solid var(--glass-border) !important;
  box-shadow: var(--glass-shadow) !important;
  border-radius: 12px !important;
}
.svc-card-cta, .proj-card-cta { background: var(--fb-blue-soft) !important; }
.svc-card, .proj-card, .leader-card, .library-card, .ov-card, .trust-item { transition: transform .25s ease, box-shadow .25s ease; }
@media (hover: hover) {
  .svc-card:hover, .proj-card:hover, .leader-card:hover, .library-card:hover, .ov-card:hover, .trust-item:hover { transform: translateY(-2px); box-shadow: var(--glass-shadow-hover) !important; }
}
.proj-card { overflow: hidden; }

/* ══ SUBTLE LIVE MOTION ═════════════════════════════════════════════════ */
/* Cards ease in once as they scroll into view (site.js adds .reveal / .is-in) */
.reveal { opacity: 0; transform: translateY(10px); transition: opacity .5s ease, transform .5s ease; transition-delay: var(--rd, 0s); }
.reveal.is-in { opacity: 1; transform: none; }
/* Primary call to action: a slow light sweep */
.hero-actions .btn-primary, .cta-band .btn-primary, .nav-cta { position: relative; overflow: hidden; }
.hero-actions .btn-primary::after, .nav-cta::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  transform: skewX(-20deg); animation: sheen 6s ease-in-out 1.5s infinite; pointer-events: none;
}
@keyframes sheen { 0%, 70% { left: -60%; } 100% { left: 130%; } }
/* "Live" status dots */
.proj-status { display: inline-flex; align-items: center; gap: 6px; }
.proj-status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #31a24c; box-shadow: 0 0 0 0 rgba(49, 162, 76, .5); }
.proj-card[data-category] .proj-status::before { animation: livePulse 2.4s ease-out infinite; }
@keyframes livePulse { 0% { box-shadow: 0 0 0 0 rgba(49, 162, 76, .45); } 70% { box-shadow: 0 0 0 7px rgba(49, 162, 76, 0); } 100% { box-shadow: 0 0 0 0 rgba(49, 162, 76, 0); } }
.hero-trust .material-symbols-outlined { animation: softPop .6s ease both; animation-delay: calc(var(--i, 0) * .12s + .3s); }
@keyframes softPop { from { opacity: 0; transform: scale(.6); } to { opacity: 1; transform: none; } }
.ov-icon { animation: floaty 5s ease-in-out infinite; }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-actions .btn-primary::after, .nav-cta::after, .proj-status::before, .ov-icon, .hero-trust .material-symbols-outlined { animation: none !important; }
}

/* ══ ALIGNMENT: one line, one baseline ══════════════════════════════════ */
.btn { display: inline-flex; align-items: center; justify-content: center; vertical-align: middle; }
.btn-sm { min-height: 34px; }
.form-row { align-items: end; }
.form-row > .form-group { display: flex; flex-direction: column; justify-content: flex-end; }
.proj-actions, .cta-row, .hero-actions, .svc-cta-actions, .leader-actions, .map-head-actions { align-items: center; }
.proj-actions .btn, .leader-actions .btn { min-height: 36px; }
.contact-list li, .footer-contact li, .cap-list li, .help-item, .trust-item { align-items: flex-start; }
.contact-list li > div, .footer-contact li > span, .footer-contact li > a { padding-top: 1px; }
.svc-head, .hp-head, .proj-loc, .page-kicker { align-items: center; }
.ov-links { grid-auto-rows: 1fr; }
@media (min-width: 1101px) { .footer-grid { grid-template-columns: 1.2fr 1fr 1fr .75fr 1.45fr; } }
.site-footer .footer-contact li > a { overflow-wrap: normal !important; word-break: normal; }
@media (max-width: 380px) { .site-footer .footer-contact li > a { overflow-wrap: anywhere !important; } }
.hp-links { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 150px), 1fr)); gap: 6px; }
.hp-links a { display: flex; align-items: center; min-height: 32px; height: 100%; }

/* ── Project and article pages (content managed in the portal) ── */
.pd-wrap { display: grid; gap: var(--gap); }
.pd-hero-img { margin: 0; border-radius: 12px; overflow: hidden; box-shadow: var(--glass-shadow); }
.pd-hero-img img { display: block; width: 100%; height: auto; max-height: 560px; object-fit: cover; }
.pd-hero-img figcaption, .prose figcaption { font-size: var(--fs-meta, .8125rem); color: var(--text-muted); padding: 8px 2px 0; }
.pd-thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 160px), 1fr)); gap: 10px; }
.pd-thumbs a { display: block; border-radius: 8px; overflow: hidden; aspect-ratio: 4 / 3; }
.pd-thumbs img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .25s ease; }
.pd-thumbs a:hover img { transform: scale(1.03); }
.pd-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: calc(var(--gap) * 2); align-items: start; }
.pd-body { max-width: none; }
.pd-facts h2 { font-size: 1.05rem; margin: 0 0 10px; }
.pd-facts .parcel-meta-table { width: 100%; }
.pd-actions, .panel-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.panel-actions { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--border-light); }
.panel-actions .btn { flex: 1 1 auto; justify-content: center; }
@media (max-width: 900px) { .pd-grid { grid-template-columns: 1fr; } }
.prose figure { margin: 20px 0; }
.prose figure img { width: 100%; height: auto; border-radius: 10px; display: block; }
.prose h3 { font-size: 1.05rem; margin: 22px 0 6px; }
.prose ol { padding-left: 22px; margin: 8px 0; display: grid; gap: 6px; }
.prose blockquote { margin: 16px 0; padding: 4px 0 4px 16px; border-left: 3px solid var(--fb-blue); color: var(--text-muted); }
.article-meta { font-size: var(--fs-small); color: var(--text-muted); margin: 10px 0 0; }
.article-cover { margin: 0 0 24px !important; }
.article-ask { margin-top: 32px; padding: var(--card-pad); border-radius: 12px; background: var(--fb-blue-soft); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.article-ask p { margin: 0; flex: 1 1 280px; }
.page-kicker a { color: inherit; text-decoration: none; }
.page-kicker a:hover { text-decoration: underline; text-underline-offset: 2px; }
/* Insights: topics and related services */
.ins-topics { margin-bottom: var(--sp-head); }
.ins-topics .filter-btn { text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.ins-count { font-size: var(--fs-meta); font-weight: 600; color: var(--text-muted); }
.filter-btn.active .ins-count { color: inherit; opacity: .85; }
.article-services { margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--border); }
.prose .article-services h2 { font-size: var(--fs-h4); margin: 0 0 10px; }
.article-services ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.article-services li { margin: 0; }
.prose .article-services a { display: inline-flex; align-items: center; gap: 4px; min-height: 40px; padding: 8px 14px; border-radius: var(--r-pill); background: var(--fb-btn2); color: var(--heading); font-weight: 600; font-size: var(--fs-small); text-decoration: none; }
.prose .article-services a:hover { background: var(--fb-btn2-h); }
.article-services .material-symbols-outlined { font-size: 18px; color: var(--fb-blue); }
.library-card.has-cover { padding-top: 0 !important; }
.library-cover { display: block; margin: 0 calc(var(--card-pad) * -1) 6px; aspect-ratio: 16 / 9; overflow: hidden; }
.library-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.library-title a { color: inherit; text-decoration: none; }
.library-title a:hover { color: var(--fb-blue); }
.draft-banner { background: #fff4e5; color: #7a4a00; font-size: var(--fs-small); font-weight: 600; padding: 10px 0; }
[data-theme="dark"] .draft-banner { background: rgba(255, 170, 0, .15); color: #f5b041; }

/* Spam trap on the enquiry form: invisible to people, filled in by bots */
.hp-field { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
/* Map panel now lists every project fact: give it room and keep the actions visible */
@media (min-width: 961px) { .map-layout-grid { height: 580px; } }
#mapInfoPanel .parcel-meta-table td { padding-top: 6px; padding-bottom: 6px; }
.panel-actions { flex-wrap: nowrap; }
.panel-actions .btn { flex: 1 1 0; min-width: 0; padding-left: 8px; padding-right: 8px; white-space: nowrap; }

/* Insights sign-up */
.sub-box { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 20px; align-items: center; padding: var(--card-pad); border-radius: 12px; background: var(--fb-blue-soft); }
.sub-box h2 { font-size: var(--fs-h3, 1.25rem); margin: 0 0 4px; }
.sub-box p { margin: 0; color: var(--text-muted); }
.sub-form { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; position: relative; }
.sub-form input[type=email] { flex: 1 1 220px; min-width: 0; padding: 11px 14px; border: 1px solid var(--border, #ccd0d5); border-radius: 8px; font: inherit; background: var(--bg-surface); color: var(--text); }
.sub-status { flex-basis: 100%; font-size: var(--fs-small); margin: 0; min-height: 1.2em; }
.sub-status.ok { color: var(--emerald); font-weight: 600; }
.sub-status.err { color: #c62828; font-weight: 600; }
@media (max-width: 760px) { .sub-box { grid-template-columns: 1fr; } }

/* Testimonials (published only with the client's recorded consent) */
.quote-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: var(--gap); }
.quote-card { margin: 0; padding: var(--card-pad); border-radius: 12px; background: var(--glass-bg, var(--bg-surface)); box-shadow: var(--glass-shadow, var(--shadow-sm)); display: flex; flex-direction: column; gap: 12px; }
.quote-card blockquote { margin: 0; font-size: 1rem; line-height: 1.6; color: var(--text); }
.quote-card blockquote::before { content: "“"; font-size: 2.2rem; line-height: 0; vertical-align: -0.6rem; margin-right: 2px; color: var(--fb-blue); }
.quote-card figcaption { font-size: var(--fs-small); color: var(--text-muted); }
.quote-card figcaption strong { color: var(--heading); display: block; }

/* Project page when the description is short: facts sit beside the text, not in a tall column */
.pd-grid.pd-compact { grid-template-columns: 1fr; }
.pd-compact .pd-facts .parcel-meta-table { column-count: 1; }
@media (min-width: 900px) { .pd-compact .pd-facts { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 24px; align-items: start; }
  .pd-compact .pd-facts h2 { grid-column: 1 / -1; } .pd-compact .pd-actions { margin-top: 0; flex-direction: column; } }

/* Accessibility: readable label colour in fact tables; links inside grey text are underlined */
.parcel-meta-table td:first-child { color: var(--text-muted) !important; }
.muted a, .prose a, .facts-note a, .article-meta a { text-decoration: underline; text-underline-offset: 2px; }

/* WhatsApp button: smaller and quieter */
.floating-whatsapp { width: 44px; height: 44px; right: 20px; bottom: 20px; box-shadow: 0 4px 12px rgba(18, 140, 126, 0.3); }
.floating-whatsapp .material-symbols-outlined { font-size: 22px; }
.floating-whatsapp:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(18, 140, 126, 0.38); }
@media (max-width: 640px) {
  .floating-whatsapp { width: 40px; height: 40px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); }
  .floating-whatsapp .material-symbols-outlined { font-size: 20px; }
}

/* Testimonials: picture, name, details, then their words */
.quote-card { gap: 14px; }
.quote-who { display: flex; align-items: center; gap: 14px; font-size: var(--fs-small); color: var(--text-muted); }
.quote-who > span { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.quote-who strong { color: var(--heading); font-size: 1rem; display: block; }
.quote-photo { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; flex: none; box-shadow: 0 0 0 3px var(--bg-surface), 0 0 0 4px var(--border-light, #e4e6eb); }
.quote-initials { display: inline-flex; align-items: center; justify-content: center; background: var(--fb-blue-soft); color: var(--fb-blue); font-weight: 800; font-size: 1.25rem; }
.quote-svc a { color: var(--fb-blue); font-weight: 600; text-decoration: none; }
.quote-svc a:hover { text-decoration: underline; }
.quote-card blockquote { margin: 0; }
.quote-grid-page { grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }

/* ── Cookie choice (shown only when Meta or Google tags are set up) ── */
.consent-bar { position: fixed; z-index: 1200; left: 16px; bottom: 16px; max-width: 440px; padding: 16px 18px; border-radius: 12px; background: var(--bg-surface); color: var(--text);
  border: 1px solid var(--border); box-shadow: 0 8px 28px rgba(0, 0, 0, 0.18); display: flex; flex-direction: column; gap: 12px; }
.consent-bar p { margin: 0; font-size: var(--fs-small); line-height: 1.5; }
.consent-bar a { color: var(--fb-blue); }
.consent-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.consent-actions .btn { flex: 1 1 auto; min-height: 44px; }
@media (max-width: 640px) {
  .consent-bar { left: 12px; right: 12px; bottom: 12px; max-width: none; }
  body:has(.consent-bar) .floating-whatsapp { display: none; }   /* back once the visitor has chosen */
}

/* ── Questions & answers ── */
.faq-list { display: flex; flex-direction: column; gap: 8px; max-width: 820px; }
.faq-item { border: 1px solid var(--border); border-radius: 10px; background: var(--bg-surface); }
.faq-item summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; font-weight: 700; color: var(--heading); min-height: 48px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .material-symbols-outlined { flex: none; transition: transform .2s ease; color: var(--text-muted); }
.faq-item[open] summary .material-symbols-outlined { transform: rotate(180deg); }
.faq-item summary:focus-visible { outline: 3px solid var(--fb-blue); outline-offset: 2px; border-radius: 10px; }
.faq-a { padding: 0 16px 14px; }
.faq-a > :first-child { margin-top: 0; }
.faq-a > :last-child { margin-bottom: 0; }
.faq-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.faq-nav a { padding: 8px 14px; border-radius: 999px; background: var(--bg-alt); color: var(--heading); font-weight: 600; font-size: var(--fs-small); text-decoration: none; }
.faq-nav a:hover { background: var(--fb-blue-soft); }
/* Topics open and close, so a long list of questions stays short */
.faq-tools { margin: 0 0 16px; }
.faq-tools input[type=search] { width: 100%; max-width: 560px; min-height: 48px; }
.faq-none { margin: 10px 0 0; color: var(--text-muted); }
.faq-count { font-weight: 600; font-size: 0.8rem; color: var(--text-muted); }
.faq-nav a .faq-count { margin-left: 4px; }
.faq-groups { display: grid; gap: 12px; }
.faq-group { scroll-margin-top: 90px; border: 1px solid var(--border); border-radius: 12px; background: var(--bg-surface); }
.faq-group > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 8px 12px; flex-wrap: wrap; padding: 16px 18px; min-height: 56px; }
.faq-group > summary::-webkit-details-marker { display: none; }
.faq-group > summary h2 { margin: 0; font-size: var(--fs-h4); flex: 1 1 auto; min-width: 0; }
.faq-group > summary .material-symbols-outlined { flex: none; color: var(--text-muted); transition: transform .2s ease; }
.faq-group[open] > summary .material-symbols-outlined { transform: rotate(180deg); }
.faq-group > summary:focus-visible { outline: 3px solid var(--fb-blue); outline-offset: 2px; border-radius: 12px; }
.faq-group > .muted, .faq-group > .faq-list { margin: 0 18px 16px; }
.faq-group > .muted { margin-top: -4px; }
.faq-group[hidden] { display: none; }
@media (prefers-reduced-motion: reduce) { .faq-item summary .material-symbols-outlined, .faq-group > summary .material-symbols-outlined { transition: none; } }

/* ── Ad landing pages (/go/…) ── */
.landing .lp-top { position: sticky; top: 0; z-index: 50; background: var(--bg-surface); border-bottom: 1px solid var(--border); }
.lp-top-in { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 60px; }
.lp-brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; color: var(--heading); text-decoration: none; }
.lp-top-acts { display: flex; gap: 8px; }
.lp-top-acts .btn { min-height: 40px; }
.lp-hero { padding: 40px 0 48px; background: var(--bg-alt); }
.lp-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 40px; align-items: start; }
.lp-copy h1 { font-size: clamp(1.9rem, 1.3rem + 2.2vw, 2.8rem); line-height: 1.15; margin: 0 0 14px; }
.lp-intro p { margin: 0 0 10px; }
.lp-points { list-style: none; padding: 0; margin: 18px 0; display: flex; flex-direction: column; gap: 10px; }
.lp-points li { display: flex; gap: 10px; align-items: flex-start; font-size: 1.0625rem; }
.lp-points .material-symbols-outlined { color: var(--fb-blue); flex: none; margin-top: 1px; }
.lp-photo img { width: 100%; height: auto; border-radius: 12px; margin: 8px 0 16px; display: block; }
.lp-trust { display: flex; gap: 8px; align-items: flex-start; font-size: var(--fs-small); color: var(--text-muted); margin: 8px 0 0; }
.lp-trust .material-symbols-outlined { color: var(--fb-blue); font-size: 20px; flex: none; }
.lp-form-card { background: var(--bg-surface); border-radius: 14px; padding: 24px; box-shadow: 0 6px 24px rgba(0, 0, 0, 0.08); border: 1px solid var(--border); position: sticky; top: 76px; scroll-margin-top: 76px; }
.lp-form-card h2 { margin: 0 0 4px; }
.lp-form-card > .muted { margin: 0 0 16px; font-size: var(--fs-small); }
.lp-form-card .form-row { grid-template-columns: 1fr; }
.lp-foot { padding: 24px 0 90px; border-top: 1px solid var(--border); font-size: var(--fs-small); color: var(--text-muted); }
.lp-foot p { margin: 4px 0; }
.lp-foot .footer-legal a { margin-right: 14px; }
.landing .form-alert { padding: 10px 14px; border-radius: 8px; background: #fff4e5; color: #6b4200; border: 1px solid #f5c37a; font-size: var(--fs-small); }
@media (max-width: 900px) {
  .lp-grid { grid-template-columns: 1fr; gap: 24px; }
  .lp-form-card { position: static; }
  .lp-hero { padding-top: 24px; }
}
@media (max-width: 420px) { .lp-top-acts .btn span:not(.material-symbols-outlined) { display: none; } .lp-brand span { font-size: 0.95rem; } }

/* ── Fee estimator: per-service questions and result ── */
.est-block { margin-top: 14px; }
.est-block[hidden], #estimatorForm [hidden] { display: none !important; }
.est-hint { margin: 6px 0 0; font-size: var(--fs-small); color: var(--text-muted); }
.est-checks { border: 0; padding: 0; margin: 12px 0 0; display: flex; flex-wrap: wrap; gap: 8px 18px; }
.est-checks legend { margin-bottom: 6px; padding: 0; }
.est-checks label { display: inline-flex; align-items: center; gap: 8px; min-height: 32px; font-size: 0.9375rem; color: var(--text); cursor: pointer; }
.est-checks input { width: 18px; height: 18px; accent-color: var(--fb-blue); }
.est-included { margin-top: 10px; font-size: var(--fs-small); }
.est-included ul { margin: 4px 0 10px; padding-left: 18px; }
.est-included li { margin: 2px 0; }
.est-inc-title { margin: 8px 0 0; font-weight: 700; }
.est-open li { color: var(--text-muted); }
.estimate-breakdown-list li { gap: 14px; align-items: baseline; }
.estimate-breakdown-list li strong { text-align: right; max-width: 62%; }

/* ── Leadership: photo opens the full profile ── */
a.leader-photo { display: block; }
a.leader-photo:focus-visible { outline: 3px solid var(--fb-blue); outline-offset: -3px; }
.leader-body h3 a { color: inherit; text-decoration: none; }
.leader-body h3 a:hover { color: var(--fb-blue); text-decoration: underline; }
.leader-profile { display: grid; grid-template-columns: minmax(0, 320px) minmax(0, 1fr); }
.leader-profile .lp-photo { background: var(--bg); }
.leader-profile .lp-photo img { width: 100%; height: 100%; min-height: 100%; object-fit: cover; object-position: top center; display: block; }
.lp-info { padding: 32px 36px 28px; display: flex; flex-direction: column; gap: 10px; }
.lp-info .eyebrow { margin: 0; }
.lp-info h2 { font-size: 1.6rem; margin: 0; color: var(--heading); padding-right: 36px; }
.lp-role { margin: 0; color: var(--fb-blue); font-weight: 700; }
.lp-facts { margin: 6px 0 0; display: grid; gap: 8px; border-top: 1px solid var(--border); padding-top: 12px; }
.lp-facts div { display: grid; grid-template-columns: 100px minmax(0, 1fr); gap: 12px; }
.lp-facts a { font-size: 0.875rem; }
.lp-facts dt { font-size: var(--fs-small); font-weight: 700; color: var(--text-muted); }
.lp-facts dd { margin: 0; color: var(--text); overflow-wrap: anywhere; }
.lp-facts a { color: var(--fb-blue); }
.lp-bio { margin: 6px 0 0; line-height: 1.7; color: var(--text); border-top: 1px solid var(--border); padding-top: 12px; }
.lp-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 6px; }
@media (max-width: 720px) {
  .leader-profile { grid-template-columns: 1fr; }
  .leader-profile .lp-photo img { height: auto; aspect-ratio: 1 / 1; max-height: 360px; }
  .lp-info { padding: 20px 18px 22px; }
  .lp-facts div { grid-template-columns: 1fr; gap: 0; }
}

/* Leader page */
.leader-profile-page { background: var(--bg-surface); border-radius: 12px; box-shadow: var(--shadow-sm); overflow: hidden; grid-template-columns: minmax(0, 380px) minmax(0, 1fr); }
.leader-profile-page .lp-info { padding: 36px 40px 32px; }
.leader-profile-page h1 { font-size: clamp(1.8rem, 1.3rem + 1.8vw, 2.5rem); margin: 0; line-height: 1.15; }
.leader-profile-page .page-kicker { margin: 0; }
.leader-profile-page .lp-bio { font-size: 1.0625rem; max-width: 68ch; }
.lp-others { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
.lp-other { display: flex; gap: 14px; align-items: center; padding: 12px; border-radius: 10px; background: var(--bg-surface); box-shadow: var(--shadow-sm); text-decoration: none; color: var(--text); }
.lp-other img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; object-position: top center; display: block; }
.lp-other span { display: flex; flex-direction: column; font-size: var(--fs-small); color: var(--text-muted); }
.lp-other strong { color: var(--heading); font-size: 1rem; }
.lp-other:hover strong { color: var(--fb-blue); }
.lp-other:focus-visible { outline: 3px solid var(--fb-blue); outline-offset: 2px; }
@media (max-width: 900px) { .lp-others { grid-template-columns: 1fr; } }
@media (max-width: 720px) { .leader-profile-page { grid-template-columns: 1fr; } .leader-profile-page .lp-info { padding: 22px 18px 24px; } }

/* Project page: small box under "Start a similar project" */
.pd-side { display: flex; flex-direction: column; gap: 14px; }
.pd-insert { border-top: 1px solid var(--border); padding-top: 12px; font-size: var(--fs-small); color: var(--text); }
.pd-insert-title { margin: 0 0 6px; font-weight: 700; color: var(--heading); }
.pd-mini-steps { margin: 0 0 10px; padding-left: 20px; color: var(--text-muted); }
.pd-mini-steps li { margin: 3px 0; }
.pd-insert-links { margin: 0; display: flex; flex-wrap: wrap; gap: 6px 14px; }
.pd-insert-links a { display: inline-flex; align-items: center; gap: 5px; color: var(--fb-blue); font-weight: 600; text-decoration: none; min-height: 32px; }
.pd-insert-links a:hover { text-decoration: underline; }
.pd-insert-links .material-symbols-outlined { font-size: 18px; }
@media (min-width: 900px) { .pd-compact .pd-side { width: 300px; } .pd-compact .pd-side .pd-actions .btn { width: 100%; } }
@media (min-width: 721px) { .leader-profile-page .lp-facts div { grid-template-columns: 130px minmax(0, 1fr); } }

/* ════ Positioning & conversion sections (one card surface for all of them) ════ */
.why-card, .ind-tile, .ind-card, .sol-card, .cred-card, .hw-steps li, .journey a, .cs-part, .lp-other, .tech-col {
  background: var(--glass-bg); border: 1px solid var(--glass-border); box-shadow: var(--glass-shadow); border-radius: var(--r-lg);
}

/* Project journey: Land → … → Handover */
.journey { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 10px; counter-reset: none; position: relative; }
.journey li { position: relative; display: flex; }
.journey li:not(:last-child)::after { content: ""; position: absolute; top: 26px; right: -10px; width: 10px; height: 2px; background: var(--fb-blue); opacity: .45; }
.journey a { display: flex; flex-direction: column; gap: 4px; padding: 14px 12px 16px; width: 100%; color: var(--text); text-decoration: none; transition: transform .2s ease, border-color .2s ease; }
.journey a:hover { border-color: var(--fb-blue); transform: translateY(-2px); }
.journey a:focus-visible { outline: 3px solid var(--fb-blue); outline-offset: 2px; }
.jr-n { font-size: var(--fs-meta); font-weight: 700; color: var(--fb-blue); font-variant-numeric: tabular-nums; }
.jr-name { font-size: 1.125rem; font-weight: 800; color: var(--heading); letter-spacing: -0.01em; }
.jr-desc { font-size: var(--fs-meta); color: var(--text-muted); line-height: 1.45; }
@media (max-width: 1100px) { .journey { grid-template-columns: repeat(4, minmax(0, 1fr)); } .journey li:nth-child(4)::after { display: none; } }
@media (max-width: 560px) { .journey { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; } .journey li::after { display: none; } .journey a { padding: 12px; } }

/* Industries */
.ind-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.ind-tile { display: flex; align-items: center; gap: 12px; padding: 14px 16px; color: var(--heading); font-weight: 700; text-decoration: none; min-height: 60px; transition: border-color .2s ease, transform .2s ease; }
.ind-tile .material-symbols-outlined { width: 38px; height: 38px; flex: none; border-radius: var(--r-md); background: var(--fb-blue-soft); color: var(--fb-blue); display: inline-flex; align-items: center; justify-content: center; font-size: 22px; }
.ind-tile:hover { border-color: var(--fb-blue); transform: translateY(-2px); }
.ind-tile:focus-visible { outline: 3px solid var(--fb-blue); outline-offset: 2px; }
@media (max-width: 900px) { .ind-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.ind-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap); }
.ind-card { padding: var(--card-pad); display: flex; flex-direction: column; gap: 10px; scroll-margin-top: 90px; }
.ind-card-head { display: flex; align-items: center; gap: 12px; }
.ind-card-head h2 { font-size: 1.25rem; margin: 0; }
.ind-icon { width: 44px; height: 44px; flex: none; border-radius: var(--r-lg); background: var(--fb-blue-soft); color: var(--fb-blue); display: inline-flex; align-items: center; justify-content: center; font-size: 24px; }
.ind-card p { margin: 0; color: var(--text); line-height: 1.6; }
.ind-sub { font-size: var(--fs-meta); margin: 4px 0 0; color: var(--text-muted); font-weight: 700; }
.ind-services { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.ind-services a { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: var(--r-pill); background: var(--bg-alt); color: var(--heading); font-size: var(--fs-meta); font-weight: 600; text-decoration: none; min-height: 32px; }
.ind-services a:hover { background: var(--fb-blue-soft); color: var(--fb-blue); }
.ind-services .material-symbols-outlined { font-size: 16px; }
.ind-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: auto; padding-top: 4px; }
@media (max-width: 900px) { .ind-list { grid-template-columns: 1fr; } }

/* Why Apex Four */
.why-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
.why-card { padding: var(--card-pad); display: flex; flex-direction: column; gap: 8px; }
.why-card > .material-symbols-outlined { width: 42px; height: 42px; border-radius: var(--r-lg); background: var(--fb-blue-soft); color: var(--fb-blue); display: inline-flex; align-items: center; justify-content: center; font-size: 24px; }
.why-card h3 { font-size: 1.0625rem; margin: 4px 0 0; }
.why-card p { margin: 0; font-size: var(--fs-small); color: var(--text-muted); line-height: 1.55; }
.why-card a { margin-top: auto; padding-top: 4px; font-weight: 600; font-size: var(--fs-small); color: var(--fb-blue); }
@media (max-width: 900px) { .why-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .why-grid { grid-template-columns: 1fr; } }
/* Home: technology & capabilities (capture → analyse → deliver) */
.tech-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
.tech-col { padding: var(--card-pad); }
.tech-col h3 { display: flex; align-items: center; gap: 10px; font-size: 1.0625rem; margin: 0; }
.tech-col h3 .material-symbols-outlined { width: 36px; height: 36px; border-radius: var(--r-md); background: var(--fb-blue-soft); color: var(--fb-blue); display: inline-flex; align-items: center; justify-content: center; font-size: 20px; }
.tech-col p { margin: 8px 0 12px; font-size: var(--fs-small); color: var(--text-muted); line-height: 1.55; }
.tech-col ul { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--border); }
.tech-col li { border-bottom: 1px solid var(--border); }
.tech-col li:last-child { border-bottom: 0; }
.tech-col li a { display: flex; align-items: center; min-height: 40px; padding: 8px 0; font-size: var(--fs-small); font-weight: 600; color: var(--heading); }
.tech-col li a:hover { color: var(--fb-blue); }
.tech-equip { margin: 16px 0 0; font-size: var(--fs-small); color: var(--text-muted); max-width: 90ch; }
.tech-equip strong { color: var(--heading); }
@media (max-width: 900px) { .tech-grid { grid-template-columns: minmax(0, 1fr); } .tech-col ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 16px; } .tech-col li:nth-last-child(2):nth-child(odd) { border-bottom: 0; } }
@media (max-width: 480px) { .tech-col ul { grid-template-columns: minmax(0, 1fr); } .tech-col li:nth-last-child(2):nth-child(odd) { border-bottom: 1px solid var(--border); } .tech-col p { margin-bottom: 8px; } }

/* How we work */
.hw-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
.hw-steps li { padding: 18px var(--card-pad) 20px; display: flex; flex-direction: column; gap: 6px; }
.hw-n { font-size: 1.5rem; font-weight: 800; color: var(--fb-blue); line-height: 1; font-variant-numeric: tabular-nums; }
.hw-steps h3 { font-size: 1.0625rem; margin: 4px 0 0; }
.hw-steps p { margin: 0; font-size: var(--fs-small); color: var(--text-muted); line-height: 1.55; }
@media (max-width: 900px) { .hw-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .hw-steps { grid-template-columns: 1fr; gap: 10px; } .hw-steps li { flex-direction: row; flex-wrap: wrap; align-items: baseline; column-gap: 12px; } .hw-steps p { flex-basis: 100%; } }

/* Solutions */
.sol-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap); }
.sol-card { padding: var(--card-pad); display: flex; flex-direction: column; gap: 10px; scroll-margin-top: 90px; }
.sol-head { display: flex; align-items: center; gap: 10px; }
.sol-head .material-symbols-outlined { color: var(--fb-blue); font-size: 26px; }
.sol-head h3 { margin: 0; font-size: 1.15rem; }
.sol-card > p { margin: 0; color: var(--text-muted); font-size: var(--fs-small); }
.sol-path { list-style: none; margin: 4px 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.sol-path li { display: inline-flex; align-items: center; gap: 6px; }
.sol-path li:not(:last-child)::after { content: "→"; color: var(--text-muted); }
.sol-path a { padding: 6px 10px; border-radius: 8px; background: var(--fb-blue-soft); color: var(--fb-blue); font-weight: 600; font-size: var(--fs-meta); text-decoration: none; }
.sol-path a:hover { text-decoration: underline; }
.sol-card .btn { align-self: flex-start; margin-top: auto; }
@media (max-width: 800px) { .sol-grid { grid-template-columns: 1fr; } }

/* Service pages: applications, industries, site visit */
.section-tight-block { padding-top: 8px !important; }
.apps-list { list-style: none; margin: 12px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 10px 20px; }
.apps-list li { display: flex; gap: 10px; align-items: flex-start; }
.apps-list .material-symbols-outlined { color: var(--fb-blue); font-size: 20px; flex: none; margin-top: 1px; }
.svc-industries { margin: 14px 0 0; font-size: var(--fs-meta); color: var(--text-muted); display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; }
.svc-industries span { font-weight: 700; }
.svc-industries a { color: var(--fb-blue); font-weight: 600; }
.nav-menu-foot { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.form-check { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; font-weight: 600; color: var(--text); cursor: pointer; min-height: 32px; }
.form-check input { width: 18px; height: 18px; accent-color: var(--fb-blue); }

/* Credentials */
.cred-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 12px; }
.cred-card { display: flex; gap: 12px; padding: 16px; align-items: flex-start; }
.cred-card > .material-symbols-outlined { color: var(--fb-blue); font-size: 26px; flex: none; }
.cred-card div { display: flex; flex-direction: column; gap: 2px; font-size: var(--fs-small); color: var(--text-muted); }
.cred-card strong { color: var(--heading); font-size: 1rem; }
.cred-card strong a { color: inherit; }
.cred-cat { font-size: var(--fs-meta); font-weight: 700; color: var(--fb-blue); }
.cred-ref .mono { color: var(--text); }

/* Project case study */
.cs-parts { display: grid; gap: 14px; margin-top: 18px; }
.cs-part { padding: 18px var(--card-pad); }
.cs-part h2 { font-size: 1.125rem; margin: 0 0 8px; display: flex; align-items: center; gap: 8px; }
.cs-part h2 .material-symbols-outlined { color: var(--fb-blue); font-size: 22px; }
.cs-part .prose > :last-child { margin-bottom: 0; }

/* Leader page lists */
.lp-lists { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 12px 24px; border-top: 1px solid var(--border); padding-top: 12px; }
.lp-lists h2 { font-size: 1rem; margin: 0 0 4px; }
.lp-lists ul { margin: 0; padding-left: 18px; }

/* Phones: keep hierarchy compact instead of one long stack */
@media (max-width: 560px) {
  .ind-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .ind-tile { flex-direction: column; align-items: flex-start; gap: 8px; padding: 12px; font-size: 0.875rem; line-height: 1.3; min-height: 0; }
  .ind-tile .material-symbols-outlined { width: 32px; height: 32px; font-size: 19px; }
  .why-grid { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 10px; padding: 2px 2px 10px; scrollbar-width: thin; }
  .why-card { flex: 0 0 82%; scroll-snap-align: start; }
  .cred-grid { grid-template-columns: 1fr; }
}
.ind-grid li { display: flex; } .ind-tile { width: 100%; }

/* Touch targets: buttons are at least 44px tall on phones (38px for small ones) */
@media (max-width: 640px) { .btn { min-height: 44px; } .btn-sm { min-height: 38px; } }

/* Where we work */
.ww-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.ww-prov { padding: 12px 14px; border-radius: var(--r-lg); background: var(--glass-bg); border: 1px solid var(--glass-border); display: flex; flex-direction: column; gap: 2px; }
.ww-prov strong { color: var(--heading); font-size: 0.95rem; }
.ww-prov span { font-size: var(--fs-meta); color: var(--text-muted); }
.ww-prov.has span { color: var(--fb-blue); font-weight: 600; }
.ww-prov.hq { border-color: var(--fb-blue); box-shadow: inset 0 0 0 1px var(--fb-blue); }
@media (max-width: 1000px) { .ww-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 560px) { .ww-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; } }

/* ── Capability statement (/company-profile/) — on screen and printed to PDF ── */
.cs-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px 24px; flex-wrap: wrap; padding-bottom: 18px; border-bottom: 3px solid var(--fb-blue); }
.cs-head h1 { font-size: clamp(1.7rem, 1.2rem + 1.6vw, 2.4rem); margin: 0 0 6px; }
.cs-head .page-kicker { margin: 0 0 6px; }
.cs-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.cs-print-note { font-size: var(--fs-meta); color: var(--text-muted); margin: 8px 0 0; }
.cs-body { display: grid; gap: 26px; margin-top: 22px; }
.cs-sec h2 { font-size: 1.25rem; display: flex; align-items: baseline; gap: 12px; margin: 0 0 10px; padding-bottom: 6px; border-bottom: 1px solid var(--border); }
.cs-num { color: var(--fb-blue); font-variant-numeric: tabular-nums; font-size: 0.95rem; font-weight: 800; }
.cs-sec p { margin: 0 0 10px; line-height: 1.65; max-width: 80ch; }
.cs-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 28px; }
.cs-cols h3 { font-size: 1rem; margin: 0 0 6px; color: var(--fb-blue); }
.cs-list { margin: 0; padding-left: 18px; display: grid; gap: 4px; font-size: var(--fs-small); line-height: 1.5; }
.cs-list a { color: var(--heading); }
.cs-two { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; }
.cs-facts { border-collapse: collapse; font-size: var(--fs-small); margin-top: 6px; }
.cs-facts th { text-align: left; font-weight: 700; color: var(--text-muted); padding: 4px 18px 4px 0; vertical-align: top; white-space: nowrap; }
.cs-facts td { padding: 4px 0; }
.cs-table { width: 100%; border-collapse: collapse; font-size: var(--fs-small); }
.cs-table th { text-align: left; background: var(--bg-alt); padding: 8px 10px; font-size: var(--fs-meta); }
.cs-table td { padding: 8px 10px; border-bottom: 1px solid var(--border); vertical-align: top; }
.cs-people { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 24px; }
.cs-people li { display: flex; gap: 12px; align-items: flex-start; }
.cs-people img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; object-position: top center; flex: none; }
.cs-people div { display: flex; flex-direction: column; font-size: var(--fs-small); color: var(--text-muted); }
.cs-people strong a { color: var(--heading); }
/* Selected projects: each row opens the project */
.cs-projects tbody tr { cursor: pointer; transition: background .15s ease; }
.cs-projects tbody tr:hover { background: var(--fb-blue-soft); }
.cs-proj-link { color: var(--fb-blue) !important; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.cs-more { display: inline-flex; align-items: center; gap: 2px; margin-left: 6px; color: var(--fb-blue); font-weight: 600; font-size: var(--fs-meta); white-space: nowrap; }
.cs-more .material-symbols-outlined { font-size: 15px; }
.cs-print-url { display: none; }
@media (max-width: 760px) {
  .cs-cols, .cs-two, .cs-people { grid-template-columns: 1fr; }
  .cs-table thead { display: none; } .cs-table tr { display: block; border-bottom: 1px solid var(--border); padding: 6px 0; } .cs-table td { display: block; border: 0; padding: 2px 0; }
}
@media print {
  @page { size: A4; margin: 14mm 14mm 16mm; }
  .main-header, .site-footer, .main-footer, .crumbs, .floating-whatsapp, .consent-bar, .cta-band, .no-print, #mobileDrawer, .mobile-drawer, .skip-link, #toast-container { display: none !important; }
  html, body, main, .section, .cap-page { background: #fff !important; }
  body { color: #111 !important; font-size: 10.5pt; }
  .cap-page { padding: 0 !important; }
  .cap-page .container { max-width: none !important; padding: 0 !important; }
  .cs-head { border-bottom-color: #1464d4; }
  .cs-body { gap: 14px; }
  .cs-sec h2 { break-after: avoid-page; }
  .cs-sec h2 { font-size: 13pt; }
  .cs-table, .cs-facts, .cs-people li, .cs-list li { break-inside: avoid; }
  a { color: inherit !important; text-decoration: none !important; }
  .cs-print-url { display: block; font-size: 8pt; color: #555; }   /* the printed PDF shows each project's web address */
  .cs-table th { background: #eef3fb !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* Project assistant conversation (Start a project page) */
.as-thread { display: flex; flex-direction: column; gap: 10px; margin: 0 0 12px; max-height: 520px; overflow-y: auto; }
.as-thread:empty { display: none; }
.as-msg { max-width: min(94%, 620px); padding: 10px 14px; border-radius: 14px; font-size: 0.92rem; line-height: 1.55; overflow-wrap: anywhere; }
.as-msg p { margin: 0 0 8px; } .as-msg p:last-child { margin-bottom: 0; }
.as-msg.user { align-self: flex-end; background: var(--fb-blue); color: var(--fb-on-blue); border-bottom-right-radius: 4px; }
.as-msg.bot { align-self: flex-start; background: var(--bg); color: var(--text); border: 1px solid var(--border); border-bottom-left-radius: 4px; }
.as-group { margin: 10px 0 0; } .as-label { font-size: 0.78rem; font-weight: 700; color: var(--text-muted); margin-bottom: 4px; }
.as-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 10px; padding: 6px 0; border-top: 1px solid var(--border); }
.as-row a { font-weight: 600; } .as-muted { color: var(--text-muted); font-size: 0.82rem; }
.as-qs { margin: 0; padding-left: 18px; } .as-qs li { margin: 2px 0; }
.as-start { margin-top: 12px; } .as-wait { color: var(--text-muted); }
.as-note { margin: 12px 0 0; font-size: 0.8rem; color: var(--text-muted); }
#asForm .hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
#asForm { position: relative; }

/* Nothing runs past its box on the website either: buttons wrap inside the page, long words break */
main { overflow-wrap: break-word; }
main .btn { max-width: 100%; white-space: normal; text-align: center; }
main img, main video, main iframe { max-width: 100%; }
/* FAQ topics: questions are rows separated by lines across the whole card (no box around each question) */
.faq-group > .faq-list { max-width: none; margin: 0; gap: 0; border-top: 1px solid var(--border); }
.faq-group > .muted { margin: -4px 18px 12px; }
.faq-group .faq-item { border: 0; border-radius: 0; background: transparent; border-bottom: 1px solid var(--border); }
.faq-group .faq-item:last-child { border-bottom: 0; }
.faq-group .faq-item summary { padding: 14px 18px; }
.faq-group .faq-item summary:focus-visible { outline-offset: -3px; border-radius: 4px; }
.faq-group .faq-item .faq-a { padding: 0 18px 16px; }
.faq-group .faq-item[open] { background: var(--bg-alt, transparent); }
.faq-group { overflow: hidden; }
