/* ===========================================================================
   Archmetrix — brand system
   Palette (do not introduce colors outside this set):
     Charcoal #2B2B2B · White #FFFFFF · Off-white #F7F7F5
     Light gray #F1F1EF · Pale steel blue #EAF0F5
     Steel blue #2E5D8A (links/icons) · CTA burnt orange #F2793C
   =========================================================================== */

/* Self-hosted Poppins (latin) — no external render-blocking request. */
@font-face {
  font-family: "Poppins"; font-style: normal; font-weight: 300; font-display: swap;
  src: url("/assets/fonts/poppins-300.woff2") format("woff2");
}
@font-face {
  font-family: "Poppins"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("/assets/fonts/poppins-400.woff2") format("woff2");
}
@font-face {
  font-family: "Poppins"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("/assets/fonts/poppins-500.woff2") format("woff2");
}
@font-face {
  font-family: "Poppins"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("/assets/fonts/poppins-600.woff2") format("woff2");
}

:root {
  --charcoal: #2B2B2B;
  --white: #FFFFFF;
  --offwhite: #F7F7F5;
  --gray: #F1F1EF;
  --pale-blue: #EAF0F5;
  --steel: #2E5D8A;
  --steel-dark: #244a6f;
  /* CTA (burnt orange). Darkened from #F2793C so white button text meets
     WCAG AA contrast (>=4.5:1); the bright shade only reached 2.77:1. */
  --cta: #BE5817;
  --cta-dark: #a44b0f;
  --cta-bright: #F2793C; /* original vibrant shade, kept for non-text accents if needed */

  --text: #2B2B2B;
  --text-soft: #5a5a58;
  --border: #e5e5e1;

  --container: 1200px;
  --radius: 8px;
  --shadow: 0 1px 3px rgba(43,43,43,.06), 0 8px 28px rgba(43,43,43,.06);
  --shadow-hover: 0 6px 16px rgba(43,43,43,.10), 0 18px 44px rgba(43,43,43,.10);
  --font: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --header-h: 74px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-weight: 300;
  color: var(--text);
  background: var(--white);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; height: auto; }
a { color: var(--steel); text-decoration: none; }
a:hover { color: var(--steel-dark); }

h1, h2, h3, h4 { font-weight: 500; line-height: 1.2; color: var(--charcoal); margin: 0 0 .5em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 4.5vw, 3.25rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1rem; }
.eyebrow {
  display: inline-block; font-size: .78rem; font-weight: 500;
  letter-spacing: .18em; text-transform: uppercase; color: var(--steel); margin-bottom: 1rem;
}
.lede { font-size: 1.12rem; color: var(--text-soft); max-width: 64ch; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 820px; }
.section { padding: 72px 0; }
.section-alt { background: var(--offwhite); }
.section-head { margin-bottom: 40px; max-width: 70ch; }
.section-head.with-link { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; max-width: none; }
.section-sub { color: var(--text-soft); margin: 0; }

/* focus visibility (a11y) */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--steel); outline-offset: 2px; border-radius: 4px;
}
.skip-link {
  position: absolute; left: -999px; top: 0; background: var(--charcoal); color: #fff;
  padding: 10px 16px; z-index: 200; border-radius: 0 0 6px 0;
}
.skip-link:focus { left: 0; color: #fff; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 12px 26px; border-radius: var(--radius);
  font-family: var(--font); font-weight: 500; font-size: .95rem; letter-spacing: .01em;
  cursor: pointer; border: 2px solid transparent; transition: all .18s ease; text-align: center;
}
.btn-cta { background: var(--cta); color: #fff; border-color: var(--cta); }
.btn-cta:hover { background: var(--cta-dark); border-color: var(--cta-dark); color: #fff; }
.btn-ghost { background: transparent; color: var(--charcoal); border-color: var(--charcoal); }
.btn-ghost:hover { background: var(--charcoal); color: #fff; }
.btn-ghost-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.7); }
.btn-ghost-light:hover { background: #fff; color: var(--charcoal); border-color: #fff; }
.btn-block { width: 100%; }
.link-arrow { color: var(--steel); font-weight: 500; font-size: .92rem; white-space: nowrap; }
.link-arrow:hover { color: var(--steel-dark); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100; background: var(--white);
  border-bottom: 1px solid var(--border);
}
.nav-bar { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 24px; }
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--charcoal); }
.logo img { width: 40px; height: 40px; }
.logo .wordmark { font-weight: 500; font-size: 1.35rem; letter-spacing: .16em; color: var(--charcoal); }

.primary-nav { display: flex; align-items: center; gap: 28px; }
.nav-links { list-style: none; display: flex; align-items: center; gap: 26px; margin: 0; padding: 0; }
.nav-links > li > a { color: var(--charcoal); font-size: .95rem; font-weight: 400; padding: 8px 0; display: inline-flex; align-items: center; gap: 5px; }
.nav-links > li > a:hover { color: var(--steel); }
.has-dropdown { position: relative; }
.has-dropdown > a::after {
  content: ""; width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-2px); display: inline-block; opacity: .6;
}
.dropdown {
  position: absolute; top: calc(100% + 10px); left: 50%; transform: translateX(-50%) translateY(6px);
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow);
  list-style: none; margin: 0; padding: 8px; min-width: 230px;
  opacity: 0; visibility: hidden; transition: all .16s ease; z-index: 20;
}
.has-dropdown:hover .dropdown, .has-dropdown:focus-within .dropdown {
  opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0);
}
.dropdown li a { display: block; padding: 9px 12px; border-radius: 6px; color: var(--text); font-size: .92rem; }
.dropdown li a:hover { background: var(--pale-blue); color: var(--steel-dark); }

.nav-actions { display: flex; align-items: center; gap: 18px; }
.nav-phone { display: inline-flex; align-items: center; gap: 7px; color: var(--charcoal); font-weight: 500; font-size: .92rem; }
.nav-phone svg { color: var(--steel); }
.nav-phone:hover { color: var(--steel); }

.nav-toggle { display: none; background: none; border: 0; width: 46px; height: 46px; padding: 10px; cursor: pointer; }
.nav-toggle span { display: block; height: 2px; background: var(--charcoal); border-radius: 2px; transition: .2s; }
.nav-toggle span + span { margin-top: 5px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Placeholders ---------- */
.ph {
  position: relative; width: 100%; background:
    repeating-linear-gradient(45deg, var(--gray), var(--gray) 12px, #ecece8 12px, #ecece8 24px);
  border: 1px dashed #cfcfc9; border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center; overflow: hidden; color: #8a8a86;
}
.ph span {
  font-size: .72rem; letter-spacing: .04em; text-transform: uppercase; color: #7d7d78;
  background: rgba(255,255,255,.82); padding: 5px 10px; border-radius: 4px; text-align: center; max-width: 88%;
}
.ph-hero { min-height: 460px; height: 100%; border-radius: 0; border: none; }

/* ---------- Hero (home) ---------- */
.hero { position: relative; color: #fff; background: var(--charcoal); overflow: hidden; }
.hero-slides { position: absolute; inset: 0; z-index: 1; background: var(--charcoal); }
.hero-slide { position: absolute; inset: 0; opacity: 0; z-index: 1; transition: opacity 1s ease; }
.hero-slide.is-active { opacity: 1; z-index: 2; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; }
.hero::after { content:""; position: absolute; inset: 0; z-index: 2; background: linear-gradient(90deg, rgba(23,23,23,.92) 0%, rgba(23,23,23,.74) 52%, rgba(23,23,23,.52) 100%); }
.hero-inner { position: relative; z-index: 3; padding: 92px 24px 96px; max-width: var(--container); }
.hero-inner h1 { color: #fff; max-width: 18ch; }
.hero-inner .eyebrow { color: #9db8d4; }
.hero-inner .lede { color: #d7dbe0; max-width: 56ch; }
.hero-actions, .cta-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }

/* ---------- Page hero (interior pages) ---------- */
.page-hero { background: var(--pale-blue); padding: 56px 0 60px; border-bottom: 1px solid var(--border); }
.page-hero h1 { max-width: 20ch; }
.page-hero .lede { max-width: 70ch; }

/* Image-banner variant (pillar pages) */
.page-hero--image { position: relative; background: var(--charcoal); border-bottom: none; overflow: hidden; padding: 76px 0 80px; }
.page-hero-media { position: absolute; inset: 0; z-index: 1; }
.page-hero-media img { width: 100%; height: 100%; object-fit: cover; }
.page-hero--image::after { content: ""; position: absolute; inset: 0; z-index: 2; background: linear-gradient(90deg, rgba(23,23,23,.92) 0%, rgba(23,23,23,.78) 55%, rgba(23,23,23,.55) 100%); }
.page-hero--image .container { position: relative; z-index: 3; }
.page-hero--image h1 { color: #fff; }
.page-hero--image .eyebrow { color: #9db8d4; }
.page-hero--image .lede { color: #d7dbe0; }
.error-hero { background: var(--charcoal); }
.error-hero h1, .error-hero .lede { color: #fff; }
.error-hero .eyebrow { color: var(--cta); }
.error-hero .btn-ghost { color: #fff; border-color: #fff; }
.error-hero .btn-ghost:hover { background: #fff; color: var(--charcoal); }

/* ---------- Breadcrumb ---------- */
.breadcrumb { background: var(--offwhite); font-size: .84rem; padding: 12px 0; border-bottom: 1px solid var(--border); }
.breadcrumb a { color: var(--text-soft); }
.breadcrumb a:hover { color: var(--steel); }
.breadcrumb .sep { margin: 0 8px; color: #b7b7b2; }
.breadcrumb [aria-current="page"] { color: var(--charcoal); font-weight: 500; }

/* ---------- Icons (inline SVG, currentColor) ---------- */
.icon { width: 100%; height: 100%; display: block; }

/* ---------- Trust bar (5 line icons on dark) ---------- */
.trust-bar { background: var(--charcoal); color: #fff; padding: 30px 0; }
.trust-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; text-align: center; }
.trust-item { display: flex; flex-direction: column; align-items: center; gap: 12px; color: #fff; }
.trust-item .icon { width: 46px; height: 46px; color: #cfd8e2; }
.trust-item span { font-size: .86rem; font-weight: 400; color: #e4e8ec; letter-spacing: .01em; }

/* ---------- Card media (webp + jpg via <picture>) ---------- */
.card-media, .tile-media { display: block; }
.card-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.tile-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }

/* ---------- Service grid (home) ---------- */
.service-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.service-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: .18s; }
.service-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-3px); }
.service-card .ph-tile, .service-card .card-media { border-radius: 0; border: none; border-bottom: 1px solid var(--border); }
.service-card-body { padding: 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.service-card-body h3 { margin: 0; }
.service-card-body p { color: var(--text-soft); font-size: .92rem; margin: 0; flex: 1; }
.service-card-body .link-arrow { margin-top: 6px; }

/* ---------- Portfolio grid ---------- */
.portfolio-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.portfolio-tile { display: block; border-radius: var(--radius); overflow: hidden; }
.portfolio-tile .ph { transition: .2s; }
.portfolio-tile:hover .ph { filter: brightness(.96); }

/* ---------- Steps ---------- */
.steps-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.step-icon { position: relative; width: 72px; height: 72px; border-radius: 50%; background: var(--pale-blue); display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.step-icon .icon { width: 40px; height: 40px; color: var(--steel); }
.step-num { position: absolute; top: -6px; right: -6px; width: 26px; height: 26px; border-radius: 50%; background: var(--cta); color: #fff; font-size: .8rem; font-weight: 600; display: flex; align-items: center; justify-content: center; }
.step h3 { margin-bottom: 6px; }
.step p { color: var(--text-soft); font-size: .92rem; margin: 0; }

/* ---------- Differentiators ---------- */
.diff-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.diff { background: #fff; border: 1px solid var(--border); border-left: 3px solid var(--steel); border-radius: var(--radius); padding: 24px; }
.diff h3 { margin-bottom: 6px; }
.diff p { color: var(--text-soft); margin: 0; font-size: .95rem; }

/* ---------- Industries ---------- */
.industry-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.industry-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: .18s; }
.industry-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-3px); }
.industry-card .card-media { border-bottom: 1px solid var(--border); }
.industry-card-body { padding: 22px; }
.industry-card h3 { margin-bottom: 6px; color: var(--charcoal); }
.industry-card p { color: var(--text-soft); font-size: .9rem; margin: 0; }

/* ---------- Testimonials ---------- */
.testimonial-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.testimonial { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; margin: 0; }
.testimonial blockquote { margin: 0 0 18px; font-size: 1rem; color: var(--charcoal); font-weight: 300; }
.testimonial figcaption { display: flex; flex-direction: column; }
.t-name { display: block; font-weight: 500; color: var(--charcoal); }
.t-role { display: block; margin-top: 3px; font-size: .85rem; color: var(--text-soft); }

/* ---------- Sub-service grid (pillar) ---------- */
.sub-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.sub-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: .18s; }
.sub-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-3px); border-color: #d7dde4; }
.sub-card .card-media { border-bottom: 1px solid var(--border); }
.sub-card-body { padding: 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.sub-card h3 { margin: 0; }
.sub-card p { color: var(--text-soft); font-size: .92rem; margin: 0; flex: 1; }

/* ---------- Two-col (what's included + gallery) ---------- */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li { position: relative; padding: 0 0 14px 34px; color: var(--text); }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: 3px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--steel); }
.check-list li::after {
  content: ""; position: absolute; left: 6px; top: 8px; width: 5px; height: 9px;
  border-right: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(45deg); }
.gallery-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.check-list--cols { columns: 2; column-gap: 48px; max-width: 900px; }
.check-list--cols li { break-inside: avoid; }

/* ---------- Example gallery (pillar pages) ---------- */
.example-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.example-gallery .gallery-tile { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); }
.example-gallery--single { max-width: 760px; margin: 0 auto; grid-template-columns: 1fr; }

/* ---------- Numbered step badge (pillar + sub-service process) ---------- */
.step-badge { width: 42px; height: 42px; border-radius: 50%; background: var(--pale-blue); color: var(--steel); font-weight: 600; font-size: 1.05rem; display: flex; align-items: center; justify-content: center; margin-bottom: 14px; }

/* ---------- Split hero (sub-service + industry pages) ---------- */
.hero-split { display: grid; grid-template-columns: 1.15fr 1fr; gap: 48px; align-items: center; }
.hero-split-text h1 { max-width: 15ch; }
.hero-split-text .lede { max-width: 46ch; }
.eyebrow-link { color: var(--steel); }
.eyebrow-link:hover { color: var(--steel-dark); }
.hero-figure { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--border); }
.hero-figure img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.hero-figure--pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; border: none; box-shadow: none; overflow: visible; }
.hero-figure--pair figure { margin: 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--border); position: relative; }
.hero-figure--pair img { aspect-ratio: 4 / 3; }
.hero-figure--pair figcaption { position: absolute; top: 8px; left: 8px; background: rgba(43,43,43,.82); color: #fff; font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; padding: 3px 9px; border-radius: 20px; }

/* ---------- Prose (intro copy) ---------- */
.prose p { font-size: 1.08rem; color: var(--text); line-height: 1.75; margin: 0 0 1.1rem; }
.prose p:last-child { margin-bottom: 0; }

/* ---------- Benefit / pain / help cards ---------- */
.benefit-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.benefit-card, .pain-card, .help-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.benefit-card { border-top: 3px solid var(--steel); }
.benefit-card h3 { margin-bottom: 8px; }
.benefit-card p, .pain-card p, .help-card p { color: var(--text-soft); font-size: .93rem; margin: 0; }
.pain-card { border-left: 3px solid var(--cta); }
.help-card { border-left: 3px solid var(--steel); }
.help-card p a { font-weight: 500; }

/* ---------- "Who it's for" band ---------- */
.who-band { background: var(--pale-blue); border: 1px solid #d3e0ec; border-radius: var(--radius); padding: 32px 36px; }
.who-band h2 { font-size: 1.4rem; margin-bottom: 10px; }
.who-band p { color: var(--text); margin: 0; font-size: 1.02rem; }
.who-band a { font-weight: 500; }

/* ---------- Portfolio (filterable + lightbox) ---------- */
.filter-bar { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }
.filter-btn { background: #fff; border: 1px solid var(--border); border-radius: 22px; padding: 9px 18px; font-family: var(--font); font-size: .88rem; font-weight: 500; color: var(--text-soft); cursor: pointer; transition: .15s; min-height: 42px; }
.filter-btn:hover { border-color: var(--steel); color: var(--steel); }
.filter-btn.is-active { background: var(--charcoal); border-color: var(--charcoal); color: #fff; }
.portfolio-masonry { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.portfolio-item { margin: 0; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); }
.portfolio-item[hidden] { display: none; }
.portfolio-open { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.portfolio-open .tile-media img { transition: transform .25s ease; }
.portfolio-open:hover .tile-media img { transform: scale(1.04); }
.lightbox { position: fixed; inset: 0; z-index: 300; background: rgba(20,20,20,.92); display: flex; align-items: center; justify-content: center; padding: 32px; }
.lightbox[hidden] { display: none; }
.lightbox-img { max-width: 92vw; max-height: 88vh; border-radius: 6px; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.lightbox-close { position: absolute; top: 18px; right: 26px; background: none; border: 0; color: #fff; font-size: 2.4rem; line-height: 1; cursor: pointer; }

/* ---------- Proof strip (why choose us) ---------- */
.proof-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.proof-tile { margin: 0; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); position: relative; }
.proof-tile figcaption { position: absolute; bottom: 0; left: 0; right: 0; background: linear-gradient(transparent, rgba(43,43,43,.85)); color: #fff; font-size: .82rem; font-weight: 500; letter-spacing: .02em; padding: 24px 14px 12px; }

/* ---------- Blog empty state + newsletter ---------- */
.empty-state { text-align: center; background: var(--offwhite); border: 1px solid var(--border); border-radius: var(--radius); padding: 48px 28px; }
.empty-state h2 { margin-bottom: 8px; }
.empty-state p { color: var(--text-soft); margin: 0 auto; max-width: 52ch; }
.newsletter { margin-top: 28px; text-align: center; }
.newsletter h3 { margin-bottom: 6px; }
.newsletter p { color: var(--text-soft); }
.newsletter-form { display: flex; gap: 10px; max-width: 440px; margin: 16px auto 0; }
.newsletter-form input { flex: 1; min-height: 48px; padding: 12px 14px; border: 1px solid #d4d4cf; border-radius: 6px; font-family: var(--font); font-size: .95rem; }
.newsletter-form input:focus { border-color: var(--steel); }

/* ---------- Book a consultation ---------- */
.book-layout { display: grid; grid-template-columns: 1.6fr 1fr; gap: 44px; align-items: start; }
.calendly-embed { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: #fff; }
.calendly-embed iframe { display: block; width: 100%; border: 0; min-height: 640px; }
.book-aside { background: var(--offwhite); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; }
.book-aside h2 { font-size: 1.3rem; }
.book-aside .btn { margin-top: 8px; }

/* ---------- Case studies ---------- */
.cs-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.cs-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: .18s; }
.cs-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-3px); }
.cs-card .card-media { border-bottom: 1px solid var(--border); }
.cs-card-body { padding: 24px; display: flex; flex-direction: column; gap: 8px; }
.cs-meta { font-size: .78rem; font-weight: 500; letter-spacing: .05em; text-transform: uppercase; color: var(--steel); }
.cs-card-body h3 { margin: 0; }
.cs-card-body p { color: var(--text-soft); font-size: .95rem; margin: 0; }
.cs-card-body .link-arrow { margin-top: 4px; }
.cs-hero-img { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); max-width: 960px; margin: 0 auto; }
.cs-hero-img img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.cs-block { margin-bottom: 26px; }
.cs-block h2 { font-size: 1.3rem; margin-bottom: 8px; }
.cs-block p { color: var(--text); line-height: 1.75; margin: 0; }
.cs-services { margin-top: 8px; }
.cs-services h3 { font-size: .9rem; letter-spacing: .06em; text-transform: uppercase; color: var(--text-soft); margin-bottom: 12px; }
.cs-industry-link { margin-top: 20px; font-weight: 500; }

/* ---------- Meet the Team ---------- */
.team-title { font-weight: 500; color: var(--steel); margin: -4px 0 12px; letter-spacing: .01em; }
.team-photo { width: 100%; max-width: 340px; aspect-ratio: 1 / 1; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--border); justify-self: center; }
.team-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.team-photo--placeholder { display: flex; align-items: center; justify-content: center; background: var(--pale-blue); }
.team-photo--placeholder span { font-size: 6rem; font-weight: 600; color: var(--steel); letter-spacing: .04em; }
.cred-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.cred-tag { background: var(--pale-blue); color: var(--steel-dark); border: 1px solid #d3e0ec; border-radius: 20px; padding: 7px 15px; font-size: .85rem; font-weight: 500; }

/* ---------- Legal documents ---------- */
.legal-doc h2 { font-size: 1.25rem; margin: 28px 0 8px; }
.legal-doc h2:first-of-type { margin-top: 20px; }
.legal-doc p { color: var(--text); line-height: 1.75; margin: 0 0 12px; }
.legal-doc em { color: var(--text-soft); }
.legal-draft { background: var(--gray); border: 1px solid var(--border); border-left: 4px solid var(--cta); border-radius: 8px; padding: 16px 18px; margin-bottom: 22px; font-size: .92rem; color: var(--text); }
.legal-draft strong { color: var(--cta-dark); }

/* ---------- FAQ accordion ---------- */
.faq-list { border-top: 1px solid var(--border); }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-q {
  width: 100%; text-align: left; background: none; border: 0; cursor: pointer;
  font-family: var(--font); font-size: 1.05rem; font-weight: 500; color: var(--charcoal);
  padding: 20px 44px 20px 0; position: relative; display: flex; justify-content: space-between; gap: 16px;
}
.faq-icon { position: absolute; right: 4px; top: 50%; width: 16px; height: 16px; transform: translateY(-50%); flex: none; }
.faq-icon::before, .faq-icon::after { content: ""; position: absolute; background: var(--steel); border-radius: 2px; transition: .2s; }
.faq-icon::before { left: 0; top: 7px; width: 16px; height: 2px; }
.faq-icon::after { left: 7px; top: 0; width: 2px; height: 16px; }
.faq-q[aria-expanded="true"] .faq-icon::after { transform: scaleY(0); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .25s ease; }
.faq-a p { color: var(--text-soft); padding: 0 44px 22px 0; margin: 0; }

/* ---------- Related ---------- */
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.related-card { background: var(--offwhite); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; gap: 8px; transition: .18s; }
.related-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-3px); }
.related-card p { color: var(--text-soft); font-size: .9rem; margin: 0; flex: 1; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--charcoal); color: #fff; padding: 64px 0; text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #c7cdd3; max-width: 52ch; margin: 0 auto; }
.cta-band .cta-actions { justify-content: center; }

/* ---------- Get a Quote ---------- */
.quote-layout { display: grid; grid-template-columns: 1.5fr 1fr; gap: 44px; align-items: start; }
.quote-form { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow); }
.field { margin-bottom: 20px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field label { display: block; font-size: .9rem; font-weight: 500; color: var(--charcoal); margin-bottom: 7px; }
.req { color: var(--cta); }
.field input, .field select, .field textarea {
  width: 100%; font-family: var(--font); font-size: .95rem; font-weight: 300; color: var(--text);
  padding: 12px 14px; min-height: 48px; border: 1px solid #d4d4cf; border-radius: 6px; background: #fff;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--steel); }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: #c0392b; }
.field .error { display: block; color: #c0392b; font-size: .8rem; margin-top: 5px; min-height: 1em; }
.field .hint { display: block; color: var(--text-soft); font-size: .8rem; margin-top: 5px; }
.form-note { margin-top: 14px; font-size: .9rem; }
.form-note.ok { color: #2e7d46; }

.quote-contact { background: var(--offwhite); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; }
.quote-contact h2 { font-size: 1.35rem; }
.quote-visual { border-radius: 6px; overflow: hidden; margin-bottom: 22px; border: 1px solid var(--border); }
.quote-visual-media img { display: block; width: 100%; aspect-ratio: 6 / 7; object-fit: cover; }
.contact-line { margin: 0 0 16px; color: var(--text); font-size: .95rem; }
.contact-line strong { color: var(--charcoal); font-weight: 500; }
.contact-line a { font-size: 1.05rem; font-weight: 500; }
.map-embed { border-radius: 6px; overflow: hidden; margin: 8px 0 18px; border: 1px solid var(--border); }
.reassure { list-style: none; padding: 0; margin: 0; }
.reassure li { position: relative; padding: 0 0 10px 26px; font-size: .9rem; color: var(--text-soft); }
.reassure li::before { content: ""; position: absolute; left: 0; top: 7px; width: 8px; height: 8px; border-radius: 50%; background: var(--cta); }

/* ---------- Pending note ---------- */
.pending-note { background: var(--pale-blue); border: 1px solid #d3e0ec; border-radius: var(--radius); padding: 28px; text-align: center; }
.pending-note .tag { display: inline-block; background: var(--steel); color: #fff; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; padding: 4px 12px; border-radius: 20px; margin-bottom: 12px; }
.pending-note p { margin: 0; color: var(--text-soft); }

/* ---------- Footer ---------- */
.site-footer { background: var(--charcoal); color: #cfd2d6; padding: 60px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr 1fr; gap: 32px; }
.footer-brand img { margin-bottom: 14px; }
.footer-brand p { color: #a9adb2; font-size: .9rem; margin-bottom: 16px; }
.footer-brand address { font-style: normal; font-size: .88rem; line-height: 1.7; margin-bottom: 16px; }
.footer-brand address a { color: #cfd2d6; }
.footer-brand address a:hover, .footer-phone:hover { color: #fff; }
.footer-col h3 { color: #fff; font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 16px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 9px; }
.footer-col a { color: #b6bac0; font-size: .9rem; }
.footer-col a:hover { color: #fff; }
.socials { display: flex; gap: 10px; }
.social { width: 36px; height: 36px; border-radius: 50%; border: 1px solid #4a4a4a; display: inline-flex; align-items: center; justify-content: center; color: #cfd2d6; font-size: .85rem; font-weight: 500; }
.social:hover { background: var(--steel); border-color: var(--steel); color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 40px; padding-top: 22px; border-top: 1px solid #3d3d3d; font-size: .82rem; color: #9a9ea3; flex-wrap: wrap; }
.legal-links a { color: #9a9ea3; margin-left: 18px; }
.legal-links a:first-child { margin-left: 0; }
.legal-links a:hover { color: #fff; }

/* ===========================================================================
   Responsive
   =========================================================================== */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .service-grid, .portfolio-grid, .steps-grid, .industry-grid { grid-template-columns: repeat(2, 1fr); }
  .sub-grid, .related-grid, .testimonial-grid, .example-gallery, .benefit-grid { grid-template-columns: repeat(2, 1fr); }
  .portfolio-masonry, .proof-strip { grid-template-columns: repeat(2, 1fr); }
  .book-layout { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .primary-nav {
    position: fixed; inset: var(--header-h) 0 auto 0; background: #fff; flex-direction: column;
    align-items: stretch; gap: 0; padding: 12px 20px 26px; border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow); max-height: calc(100vh - var(--header-h)); overflow-y: auto;
    transform: translateY(-8px); opacity: 0; visibility: hidden; transition: .18s;
  }
  .primary-nav.open { transform: translateY(0); opacity: 1; visibility: visible; }
  .nav-links { flex-direction: column; align-items: stretch; gap: 0; width: 100%; }
  .nav-links > li { border-bottom: 1px solid var(--border); }
  .nav-links > li > a { padding: 14px 4px; justify-content: space-between; font-size: 1rem; }
  .dropdown {
    position: static; transform: none; opacity: 1; visibility: visible; box-shadow: none; border: none;
    min-width: 0; padding: 0 0 8px 12px; display: none;
  }
  /* Neutralize the desktop hover-centering transform on touch (it otherwise
     shoves an open dropdown off-screen when the tapped item keeps :hover). */
  .has-dropdown:hover .dropdown, .has-dropdown:focus-within .dropdown {
    transform: none; opacity: 1; visibility: visible; display: none;
  }
  .has-dropdown.open .dropdown,
  .has-dropdown.open:hover .dropdown { display: block; }
  .has-dropdown > a::after { transition: transform .2s; }
  .has-dropdown.open > a::after { transform: rotate(-135deg) translateY(-2px); }
  .nav-actions { flex-direction: column; align-items: stretch; gap: 12px; margin-top: 16px; }
  .nav-phone { justify-content: center; padding: 10px; }
  .nav-actions .btn { width: 100%; }
  .hero-split { grid-template-columns: 1fr; gap: 30px; }
  .hero-split-text h1 { max-width: none; }
}

@media (max-width: 640px) {
  .section { padding: 52px 0; }
  .trust-grid { grid-template-columns: repeat(3, 1fr); gap: 22px 12px; }
  .service-grid, .portfolio-grid, .steps-grid, .industry-grid,
  .sub-grid, .related-grid, .testimonial-grid, .diff-grid, .example-gallery, .benefit-grid,
  .portfolio-masonry, .proof-strip, .cs-grid { grid-template-columns: 1fr; }
  .check-list--cols { columns: 1; }
  .who-band { padding: 24px; }
  .newsletter-form { flex-direction: column; }
  .filter-bar { gap: 8px; }
  .two-col, .quote-layout { grid-template-columns: 1fr; gap: 28px; }
  .gallery-2 { grid-template-columns: 1fr 1fr; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .section-head.with-link { flex-direction: column; align-items: flex-start; gap: 10px; }
  .hero-inner { padding: 64px 24px 68px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 400px) {
  .logo .wordmark { font-size: 1.15rem; letter-spacing: .12em; }
  .footer-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}
