/*
Theme Name: Boafo Nsa
Theme URI: https://boafonsa.com
Author: OPES Group
Description: Custom WordPress theme for Boafo Nsa — Ghanaian civil construction and infrastructure.
Version: 2.7.0
License: GNU General Public License v2 or later
Text Domain: boafo-nsa
*/

:root {
  --ink: #242823;
  --ink-soft: #343a33;
  --paper: #f7f5f0;
  --paper-2: #efede6;
  --white: #fffefa;
  --surface: #fffefa;          /* cards, inputs */
  --surface-hover: rgba(255,254,250,.62);
  --on-dark: #fffefa;          /* text on green bands and footer */
  --muted: #74766e;
  --meta: #85857d;
  --meta-2: #77786f;
  --lead: #6d6e66;
  --nav-text: #5f625b;
  --body-soft: #53574e;
  --cap: #68645d;
  --line: #dedbd2;
  --line-hover: #a9a69c;
  --field-line: #d3d0c7;
  --hairline: rgba(36,40,35,.1);
  --hairline-strong: rgba(36,40,35,.27);
  --header-bg: rgba(247,245,240,.96);
  --header-bg-solid: rgba(247,245,240,.985);
  --brass: #a87b4f;
  --brass-dark: #805a38;
  --green: #183b32;
  --green-soft: #244c40;
  --footer: #142e27;
  --link-hover: #183b32;
  --focus: #183b32;
  --focus-ring: rgba(24,59,50,.1);
  --map: #dfdcd3;
  --ok-line: #9bb3a0; --ok-bg: #eef3ec;
  --err-line: #d8a49b; --err-bg: #f8eeeb;
  --wrap: 1320px;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "DM Sans", Arial, sans-serif;
  color-scheme: light;
}

/* Night appearance: set by the header toggle (data-theme="dark") or, when the
   visitor has not chosen, by their device setting (data-theme="auto"). */
:root[data-theme="dark"] {
  --ink: #ebe7dc;
  --ink-soft: #d5d1c5;
  --paper: #121613;
  --paper-2: #181d19;
  --white: #1f2520;
  --surface: #1f2520;
  --surface-hover: rgba(255,255,255,.04);
  --on-dark: #f3efe6;
  --muted: #a4a598;
  --meta: #9a9b8f;
  --meta-2: #96978b;
  --lead: #b3b2a6;
  --nav-text: #bdbcb0;
  --body-soft: #c4c2b6;
  --cap: #a8a397;
  --line: #2e3530;
  --line-hover: #59605a;
  --field-line: #3a423c;
  --hairline: rgba(235,231,220,.1);
  --hairline-strong: rgba(235,231,220,.28);
  --header-bg: rgba(18,22,19,.94);
  --header-bg-solid: rgba(18,22,19,.985);
  --brass: #c4935f;
  --brass-dark: #dcb185;
  --green: #163229;
  --green-soft: #1f4237;
  --footer: #0c1915;
  --link-hover: #dcb185;
  --focus: #c4935f;
  --focus-ring: rgba(196,147,95,.22);
  --map: #252c27;
  --ok-line: #4f7a5c; --ok-bg: #18271e;
  --err-line: #8a4a40; --err-bg: #2a1a17;
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root[data-theme="auto"] {
    --ink: #ebe7dc; --ink-soft: #d5d1c5; --paper: #121613; --paper-2: #181d19; --white: #1f2520; --surface: #1f2520;
    --surface-hover: rgba(255,255,255,.04); --on-dark: #f3efe6; --muted: #a4a598; --meta: #9a9b8f; --meta-2: #96978b;
    --lead: #b3b2a6; --nav-text: #bdbcb0; --body-soft: #c4c2b6; --cap: #a8a397; --line: #2e3530; --line-hover: #59605a;
    --field-line: #3a423c; --hairline: rgba(235,231,220,.1); --hairline-strong: rgba(235,231,220,.28);
    --header-bg: rgba(18,22,19,.94); --header-bg-solid: rgba(18,22,19,.985); --brass: #c4935f; --brass-dark: #dcb185;
    --green: #163229; --green-soft: #1f4237; --footer: #0c1915; --link-hover: #dcb185; --focus: #c4935f;
    --focus-ring: rgba(196,147,95,.22); --map: #252c27; --ok-line: #4f7a5c; --ok-bg: #18271e; --err-line: #8a4a40; --err-bg: #2a1a17;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.72; -webkit-font-smoothing: antialiased; }
body, button, input, textarea, select { font-family: var(--sans); }
a { color: inherit; }
img { max-width: 100%; height: auto; display: block; }
.wrap { width: min(var(--wrap), calc(100% - 64px)); margin: 0 auto; }
h1, h2, h3, h4 { margin: 0; line-height: 1.04; letter-spacing: -.025em; font-weight: 500; }
h1, h2 { font-family: var(--serif); }
h1 { font-size: clamp(3.5rem, 7.8vw, 7.6rem); }
h2 { font-size: clamp(2.7rem, 5.2vw, 5.3rem); }
h3 { font-size: 1.5rem; }
p { margin: 0 0 1.15rem; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.eyebrow, .section-label { font-size: 10px; line-height: 1.4; text-transform: uppercase; letter-spacing: .2em; font-weight: 700; }
.eyebrow { display: flex; align-items: center; gap: 12px; color: var(--brass); margin: 0 0 24px; }
.eyebrow-line { width: 27px; height: 1px; background: currentColor; display: inline-block; flex: 0 0 auto; }
.section { padding: clamp(82px, 10vw, 142px) 0; }
.skip-link { position: fixed; z-index: 1000; left: 20px; top: 12px; transform: translateY(-160%); background: var(--surface); color: var(--ink); padding: 12px 18px; }
.skip-link:focus { transform: translateY(0); }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 4px; }
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .75s ease, transform .75s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .reveal { opacity: 1; transform: none; transition: none; } *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; } }

/* A quiet, architectural navigation */
#siteHeader { position: fixed; inset: 0 0 auto; z-index: 100; background: var(--header-bg); color: var(--ink); border-bottom: 1px solid var(--hairline); backdrop-filter: blur(18px); transition: background .25s ease, box-shadow .25s ease; }
#siteHeader.scrolled { background: var(--header-bg-solid); box-shadow: 0 8px 28px rgba(28,34,29,.07); }
.nav-inner { min-height: 84px; width: min(var(--wrap), calc(100% - 64px)); margin: auto; display: flex; align-items: center; gap: 36px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; margin-right: auto; }
.brand-icon { width: 38px; height: 38px; object-fit: contain; filter: saturate(.58); }
.brand span { display: flex; flex-direction: column; line-height: 1; }
.brand strong { font-family: var(--serif); font-size: 24px; font-weight: 600; letter-spacing: .01em; }
.brand small { font-size: 8px; letter-spacing: .2em; color: var(--meta-2); margin-top: 7px; }
nav ul { display: flex; align-items: center; gap: clamp(18px, 2.5vw, 34px); margin: 0; padding: 0; list-style: none; }
nav a { position: relative; font-size: 12px; text-decoration: none; color: var(--nav-text); transition: color .2s ease; }
nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -7px; height: 1px; background: var(--brass); transition: right .25s ease; }
nav a:hover, nav a.active, nav .current-menu-item > a { color: var(--ink); }
nav a:hover::after, nav .current-menu-item > a::after { right: 0; }
.nav-cta { font-size: 11px; letter-spacing: .03em; text-decoration: none; padding: 12px 17px; border: 1px solid var(--hairline-strong); transition: background .2s, color .2s, border-color .2s; }
.nav-cta:hover { background: var(--green); color: var(--on-dark); border-color: var(--green); }
.menu-btn { display: none; background: none; border: 1px solid var(--hairline-strong); color: var(--ink); border-radius: 0; width: 44px; height: 44px; font-size: 19px; cursor: pointer; }
@media (max-width: 960px) {
  .nav-inner { min-height: 76px; }
  nav { display: none; position: absolute; left: 0; right: 0; top: 76px; padding: 24px 32px 30px; background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: 0 15px 24px rgba(28,34,29,.08); }
  nav.open { display: block; }
  nav ul { flex-direction: column; align-items: flex-start; gap: 17px; }
  nav a { font-size: 14px; }
  nav a::after { display: none; }
  .menu-btn { display: block; }
  .nav-cta { display: none; }
}
@media (max-width: 480px) { .nav-inner { width: calc(100% - 36px); } nav { padding-left: 18px; } .brand-icon { width: 34px; height: 34px; } .brand strong { font-size: 21px; } }

/* Measured, confident actions */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 13px; text-decoration: none; font-size: 12px; font-weight: 600; letter-spacing: .035em; transition: background .2s ease, color .2s ease, border-color .2s ease, transform .2s ease; }
.btn:hover { transform: translateY(-2px); }
.btn-solid { background: var(--brass); color: #fffefa; padding: 15px 21px; border: 1px solid var(--brass); }
.btn-solid:hover { background: var(--brass-dark); border-color: var(--brass-dark); }
.btn-ghost { color: #f5f2eb; border-bottom: 1px solid rgba(255,255,255,.42); padding: 10px 0; }
.btn-ghost:hover { border-color: #d9bc9c; color: #d9bc9c; }
.text-link { display: inline-flex; align-items: center; gap: 9px; font-size: 12px; color: var(--brass-dark); font-weight: 650; text-decoration: none; letter-spacing: .025em; }
.text-link:hover { color: var(--link-hover); }

/* Typographic hero with a subtle survey-line motif */
.hero-home { min-height: min(900px, 100svh); background: var(--green); color: var(--on-dark); position: relative; display: flex; align-items: center; overflow: hidden; padding: 158px 0 108px; }
.hero-home::before { content: ""; position: absolute; width: min(69vw, 900px); aspect-ratio: 1; right: -19%; top: 3%; border: 1px solid rgba(229,220,197,.1); border-radius: 50%; box-shadow: 0 0 0 48px rgba(255,255,255,.018), 0 0 0 112px rgba(255,255,255,.018), 0 0 0 180px rgba(255,255,255,.014); }
.hero-home::after { content: ""; position: absolute; inset: 0; opacity: .1; pointer-events: none; background-image: linear-gradient(110deg, transparent 49.9%, rgba(255,255,255,.12) 50%, transparent 50.1%); background-size: 120px 100%; mask-image: linear-gradient(90deg, transparent, #000 68%); }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(95deg, rgba(18,48,40,.74) 0%, rgba(24,59,50,.45) 56%, rgba(24,59,50,.08) 100%); }
.hero-grid { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 820px) 225px; gap: clamp(40px, 8vw, 132px); align-items: end; }
.hero-copy h1 { max-width: 900px; font-size: clamp(4rem, 8.1vw, 8rem); line-height: .91; letter-spacing: -.045em; font-weight: 400; }
.hero-copy h1 em { color: #d7b48d; font-style: italic; }
.hero-lead { max-width: 580px; color: rgba(250,248,241,.75); font-size: 16px; line-height: 1.75; margin: 31px 0 34px; }
.hero-actions { display: flex; align-items: center; gap: 28px; }
.hero-note { border-left: 1px solid rgba(255,255,255,.3); padding: 0 0 2px 20px; color: rgba(250,248,241,.64); }
.hero-note-label { font-size: 9px; letter-spacing: .2em; color: #d7b48d; }
.hero-note p { color: #f5f2eb; font-family: var(--serif); font-size: 23px; line-height: 1.18; margin: 14px 0 22px; }
.hero-note-rule { height: 1px; background: rgba(255,255,255,.2); margin-bottom: 12px; }
.hero-note-small { font-size: 9px; letter-spacing: .16em; text-transform: uppercase; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } .hero-note { display: none; } .hero-home { min-height: 720px; } }
@media (max-width: 600px) { .hero-home { min-height: 670px; padding: 132px 0 78px; } .hero-copy h1 { font-size: clamp(3.55rem, 16vw, 5.2rem); } .hero-lead { font-size: 15px; margin: 26px 0; } .hero-actions { gap: 20px; flex-wrap: wrap; } .hero-home::before { width: 125vw; right: -69%; top: 25%; } }

/* A warm paper interlude */
.intro-strip { background: var(--paper-2); color: var(--ink); padding: 43px 0; border-bottom: 1px solid var(--line); }
.intro-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 70px; align-items: start; }
.intro-grid p:last-child { max-width: 700px; font-family: var(--serif); font-size: 22px; line-height: 1.38; margin: 0; color: var(--body-soft); }
.section-label { color: var(--brass-dark); margin-bottom: 12px; }
@media (max-width: 700px) { .intro-grid { grid-template-columns: 1fr; gap: 12px; } .intro-grid p:last-child { font-size: 20px; } }

/* Section headings */
.section-heading { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(240px, .75fr); gap: 64px; align-items: end; margin-bottom: 54px; }
.section-heading h2 { max-width: 760px; }
.section-heading > p, .section-heading > div:last-child > p { color: var(--muted); font-size: 14px; max-width: 490px; line-height: 1.75; }
.section-heading .text-link { margin-top: 15px; }
@media (max-width: 760px) { .section-heading { grid-template-columns: 1fr; gap: 18px; margin-bottom: 38px; } }

/* Services: quiet ruled columns, no unnecessary card chrome */
.service-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.service-card { padding: 32px clamp(22px, 3vw, 42px) 38px; border-right: 1px solid var(--line); min-height: 354px; transition: background .25s ease; }
.service-card:hover { background: var(--surface-hover); }
.service-card:first-child { padding-left: 0; }
.service-card:last-child { border-right: 0; padding-right: 0; }
.service-card-featured { background: transparent; }
.card-number { display: block; font-family: var(--serif); font-size: 18px; color: var(--brass); margin-bottom: 65px; }
.service-card h3 { font-family: var(--serif); font-size: 32px; font-weight: 500; margin-bottom: 14px; }
.service-card p { color: var(--muted); max-width: 430px; font-size: 13px; line-height: 1.75; }
.tag-row { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 25px; }
.tag-row span { font-size: 8px; text-transform: uppercase; letter-spacing: .12em; border: 1px solid var(--line); padding: 6px 8px; color: var(--meta-2); }
.section-actions { width: min(var(--wrap), calc(100% - 64px)); margin: 30px auto 0; text-align: right; }
@media (max-width: 900px) { .service-grid { grid-template-columns: 1fr; } .service-card, .service-card:first-child, .service-card:last-child { min-height: 0; padding: 28px 0 32px; border-right: 0; border-bottom: 1px solid var(--line); } .service-card:last-child { border-bottom: 0; } .card-number { margin-bottom: 25px; } }

/* A disciplined delivery sequence */
.dark-band { background: var(--green); color: var(--on-dark); padding: clamp(82px, 10vw, 130px) 0; }
.dark-band .eyebrow { color: #d7b48d; }
.dark-band-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(50px, 9vw, 135px); }
.dark-band h2 { max-width: 520px; }
.steps-mini { border-top: 1px solid rgba(255,255,255,.22); }
.steps-mini > div { display: grid; grid-template-columns: 42px 1fr; column-gap: 19px; padding: 23px 0; border-bottom: 1px solid rgba(255,255,255,.2); }
.steps-mini strong { color: #d7b48d; font-family: var(--serif); font-size: 18px; font-weight: 500; }
.steps-mini span { font-family: var(--serif); font-size: 22px; }
.steps-mini p { grid-column: 2; color: rgba(250,248,241,.65); font-size: 13px; margin: 5px 0 0; max-width: 500px; }
@media (max-width: 800px) { .dark-band-grid { grid-template-columns: 1fr; gap: 42px; } }

/* Portfolio */
.projects-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px; }
.project-card { background: var(--surface); border: 1px solid var(--line); overflow: hidden; transition: transform .3s ease, box-shadow .3s ease; }
.project-card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(31,38,32,.08); }
.project-card img { width: 100%; aspect-ratio: 1.58; object-fit: cover; }
.project-card-body { padding: 25px 28px 28px; }
.project-card h3 { font-family: var(--serif); font-size: 29px; }
.project-card p { font-size: 13px; color: var(--muted); }
@media (max-width: 700px) { .projects-grid { grid-template-columns: 1fr; } }

/* Live market desk */
.opportunity-section { background: var(--paper-2); }
.live-feed { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.live-item { background: var(--paper); padding: 27px 30px 31px; min-height: 236px; }
.live-item-meta { display: flex; flex-wrap: wrap; gap: 10px; font-size: 9px; text-transform: uppercase; letter-spacing: .14em; color: var(--meta); margin-bottom: 18px; }
.live-kind { color: var(--brass-dark); font-weight: 700; }
.live-item h3 { font-family: var(--serif); font-size: 27px; font-weight: 500; letter-spacing: -.01em; }
.live-item h3 a { text-decoration: none; }
.live-item h3 a:hover { color: var(--brass-dark); }
.live-item p { font-size: 13px; color: var(--muted); margin: 12px 0; }
.live-link { font-size: 10px; color: var(--brass-dark); font-weight: 700; text-decoration: none; letter-spacing: .05em; }
.feed-status { font-size: 10px; color: var(--meta-2); margin-top: 13px; display: flex; align-items: center; gap: 8px; }
.pulse { width: 6px; height: 6px; border-radius: 50%; background: #67876f; display: inline-block; }
.live-empty { border: 1px dashed var(--line); padding: 30px; display: flex; flex-direction: column; gap: 4px; }
.live-empty span { color: var(--muted); }
@media (max-width: 700px) { .live-feed { grid-template-columns: minmax(0, 1fr); } .live-item { padding: 24px; min-width: 0; overflow-wrap: anywhere; } }

/* Inner page openings */
.page-banner { padding: clamp(145px, 17vw, 224px) 0 clamp(68px, 8vw, 106px); background: var(--paper-2); border-bottom: 1px solid var(--line); }
.page-banner .wrap { max-width: var(--wrap); }
.page-banner h1 { max-width: 1020px; font-size: clamp(3.5rem, 7.3vw, 7.2rem); }
.page-banner .lead { max-width: 680px; font-family: var(--serif); font-size: 23px; line-height: 1.4; color: var(--lead); margin-top: 23px; }
.page-banner-dark { background: var(--green); color: var(--on-dark); }
.page-banner-dark .lead { color: rgba(255,255,255,.69); }
.page-banner-dark .eyebrow { color: #d7b48d; }

/* Capability and process lists */
.service-list-large, .process-list-human { border-top: 1px solid var(--line); }
.service-list-large article, .process-list-human article { display: grid; grid-template-columns: 72px 1fr; gap: 38px; padding: 42px 0; border-bottom: 1px solid var(--line); }
.service-list-large article > span, .process-list-human article > span { color: var(--brass-dark); font-family: var(--serif); font-size: 20px; padding-top: 6px; }
.service-list-large h2, .process-list-human h2 { font-size: clamp(2.25rem, 4vw, 3.25rem); margin-bottom: 15px; }
.service-list-large p, .process-list-human p { max-width: 800px; color: var(--muted); font-size: 14px; }
.small-copy { font-size: 11px !important; color: var(--meta) !important; }
.expect-grid, .habit-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: rgba(255,255,255,.18); margin-top: 45px; }
.expect-grid > div { padding: 28px; background: var(--green); }
.expect-grid strong { color: #d7b48d; font-family: var(--serif); font-size: 18px; font-weight: 500; }
.expect-grid h3 { font-family: var(--serif); font-size: 25px; margin: 35px 0 10px; }
.expect-grid p { color: rgba(255,255,255,.68); font-size: 12px; }
.light-alt { background: var(--paper-2); }
.habit-grid { background: var(--line); }
.habit-grid > div { background: var(--paper-2); padding: 30px; }
.habit-grid h3 { font-family: var(--serif); font-size: 25px; margin-bottom: 12px; }
.habit-grid p { color: var(--muted); font-size: 13px; }
@media (max-width: 700px) { .service-list-large article, .process-list-human article { grid-template-columns: 38px 1fr; gap: 12px; padding: 31px 0; } .expect-grid, .habit-grid { grid-template-columns: 1fr; } }

/* Market directory */
.live-desk-section { padding-top: 70px; }
.desk-header { display: grid; grid-template-columns: 1fr 360px; gap: 60px; align-items: end; margin-bottom: 35px; }
.desk-header h2 { font-size: 42px; }
.desk-note { color: var(--muted); font-size: 13px; }
.source-section { background: var(--paper-2); }
.source-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); }
.source-card { position: relative; background: var(--paper); padding: 28px; text-decoration: none; min-height: 235px; transition: background .2s; }
.source-card:hover { background: var(--surface); }
.source-card > span:first-child { font-size: 9px; letter-spacing: .16em; color: var(--brass-dark); font-weight: 700; }
.source-card strong { display: block; font-family: var(--serif); font-size: 24px; font-weight: 500; margin-top: 40px; }
.source-card p { font-size: 12px; color: var(--muted); margin-top: 10px; }
.source-arrow { position: absolute; bottom: 25px; right: 28px; color: var(--brass-dark); }
.editorial-section { background: var(--surface); }
@media (max-width: 900px) { .source-grid { grid-template-columns: repeat(2, 1fr); } .desk-header { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .source-grid { grid-template-columns: 1fr; } }

/* Contact invitation and footer */
.cta-panel { background: var(--green); color: var(--on-dark); padding: clamp(70px, 9vw, 112px) 0; }
.cta-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 85px; align-items: end; }
.cta-panel .eyebrow { color: #d7b48d; }
.cta-panel p:not(.eyebrow) { color: rgba(255,255,255,.71); max-width: 520px; font-size: 14px; }
.cta-panel .btn-solid { margin-top: 10px; }
@media (max-width: 700px) { .cta-grid { grid-template-columns: 1fr; gap: 25px; } }
footer { background: var(--footer); color: var(--on-dark); padding: 72px 0 25px; }
.footer-top { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 46px; padding-bottom: 58px; border-bottom: 1px solid rgba(255,255,255,.16); }
.footer-brand > a { font-family: var(--serif); font-size: 28px; font-weight: 500; text-decoration: none; }
.footer-brand p { color: rgba(255,255,255,.57); max-width: 320px; margin-top: 14px; font-size: 13px; }
footer h4 { font-family: var(--sans); font-size: 9px; text-transform: uppercase; letter-spacing: .19em; color: #d7b48d; margin-bottom: 18px; }
footer ul { list-style: none; padding: 0; margin: 0; }
footer li { margin-bottom: 9px; font-size: 12px; color: rgba(255,255,255,.66); }
footer a { text-decoration: none; }
footer a:hover { color: #e1c39f; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; padding-top: 20px; color: rgba(255,255,255,.43); font-size: 10px; }
.footer-bottom a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.footer-bottom a:hover { color: #fff; }
@media (max-width: 800px) { .footer-top { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 500px) { .footer-top { grid-template-columns: 1fr; gap: 28px; } .footer-bottom { flex-direction: column; } }

/* Editorial and legacy helpers */
.news-teaser-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.news-card { display: block; background: var(--surface); border: 1px solid var(--line); padding: 25px; text-decoration: none; }
.news-card h3 { font-family: var(--serif); font-size: 25px; margin-bottom: 12px; }
.news-card p { font-size: 13px; color: var(--muted); }
.empty-note { padding: 28px; border: 1px dashed var(--line); color: var(--muted); }
.pagination { margin-top: 35px; }
.pagination a, .pagination span { display: inline-block; margin-right: 8px; padding: 8px 12px; border: 1px solid var(--line); text-decoration: none; font-size: 12px; }
.pagination .current { background: var(--green); color: var(--on-dark); }
.back-link { display: inline-block; margin-bottom: 30px; color: var(--brass-dark); text-decoration: none; font-size: 11px; }
.single-wrap { max-width: 850px; margin: 0 auto; }
.entry-content { font-size: 17px; line-height: 1.8; }
.entry-content p { margin-bottom: 22px; }
.entry-content h2, .entry-content h3 { font-family: var(--serif); margin: 1.7em 0 .6em; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 76px; }
.contact-card { background: var(--surface); border: 1px solid var(--line); padding: 30px; }
.contact-info-list { list-style: none; margin: 0; padding: 0; }
.contact-info-list li { padding: 16px 0; border-bottom: 1px solid var(--line); }
.contact-info-list li:last-child { border-bottom: 0; }
.contact-info-list .label { font-size: 9px; text-transform: uppercase; letter-spacing: .15em; color: var(--meta); }
.contact-info-list .value { margin-top: 5px; font-size: 14px; }
.form-field { margin-bottom: 20px; }
.form-field label { display: block; font-size: 11px; font-weight: 650; margin-bottom: 7px; }
.form-field input, .form-field textarea, .form-field select { width: 100%; border: 1px solid var(--field-line); background: var(--surface); padding: 13px 14px; border-radius: 0; font-size: 14px; color: var(--ink); transition: border .2s, box-shadow .2s; }
.form-field input:focus, .form-field textarea:focus, .form-field select:focus { outline: none; border-color: var(--focus); box-shadow: 0 0 0 2px var(--focus-ring); }
.form-field textarea { min-height: 150px; resize: vertical; }
.form-note { font-size: 10px; color: var(--meta); margin-top: 12px; }
.form-notice { padding: 15px; margin-bottom: 20px; border: 1px solid var(--line); font-size: 13px; }
.form-notice.success { border-color: var(--ok-line); background: var(--ok-bg); }
.form-notice.error { border-color: var(--err-line); background: var(--err-bg); }
.map-plate { height: 220px; margin-top: 20px; background: var(--map); position: relative; display: flex; align-items: flex-end; padding: 18px; }
.map-plate .cap { font-size: 10px; color: var(--cap); }
@media (max-width: 750px) { .contact-grid { grid-template-columns: 1fr; gap: 45px; } .news-teaser-grid { grid-template-columns: 1fr; } }

/* Compatibility with previous theme modules */
.ruler { display: none; }
.capabilities { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.cap-card { padding: 30px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.cap-card h3 { font-family: var(--serif); margin: 20px 0 12px; }
.cap-card p { color: var(--muted); font-size: 13px; }
.cap-num { font-family: var(--serif); font-size: 16px; color: var(--brass-dark); }
.cap-tag { font-size: 9px; color: var(--meta); }
.process-list { border-top: 1px solid var(--line); }
.proc-row { display: grid; grid-template-columns: 55px 240px 1fr; gap: 20px; padding: 30px 0; border-bottom: 1px solid var(--line); }
.proc-row h3 { font-family: var(--serif); font-size: 27px; }
.proc-desc { color: var(--muted); margin: 0; }
.cta-band { background: var(--green) !important; color: var(--on-dark) !important; padding: 70px 0 !important; }
.cta-band p { color: rgba(255,255,255,.71); }
.cta-band .btn { color: var(--on-dark); }
.proj-card { display: block; text-decoration: none; background: var(--surface); border: 1px solid var(--line); padding: 30px; min-height: 250px; transition: border-color .2s, transform .2s; }
.proj-card:hover { border-color: var(--line-hover); transform: translateY(-3px); }
.proj-top { display: flex; justify-content: space-between; gap: 15px; color: var(--meta); font-size: 9px; text-transform: uppercase; letter-spacing: .14em; margin-bottom: 58px; }
.project-card.proj-card h3 { font-family: var(--serif); font-size: 32px; }
.proj-meta { margin-top: 16px; color: var(--brass-dark); font-size: 10px; }
.news-teaser-tags { display: flex; gap: 10px; color: var(--meta); font-size: 9px; text-transform: uppercase; letter-spacing: .12em; margin-bottom: 20px; }
.news-teaser-more { margin-top: 20px; color: var(--brass-dark); font-size: 10px; font-weight: 700; }
.cta-band .wrap { max-width: var(--wrap); }
.cta-band h2 { max-width: 850px; margin: 10px 0 18px; }
.cta-band .hero-sub { max-width: 650px; color: rgba(255,255,255,.71); }
.cta-band .hero-actions { display: flex; gap: 20px; margin-top: 25px; }
.cta-band .btn:not(.btn-solid) { color: var(--on-dark); }
.sector-grid, .insight-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.sector-card, .insight-card { background: var(--paper); padding: 34px; min-height: 300px; }
.sector-card span, .insight-card span { font-family: var(--serif); font-size: 15px; color: var(--brass-dark); }
.sector-card h2, .insight-card h2 { font-size: 30px; line-height: 1.05; margin: 18px 0 14px; }
.sector-card p, .insight-card p { color: var(--muted); font-size: 13px; line-height: 1.7; }
.sector-card ul { list-style: none; padding: 0; margin: 22px 0 0; border-top: 1px solid var(--line); }
.sector-card li { padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 12px; }
.sector-card li::before { content: "—"; margin-right: 9px; color: var(--brass-dark); }
.market-source-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin-top: 30px; background: var(--line); border: 1px solid var(--line); }
.market-source { background: var(--paper); padding: 22px; }
.market-source strong { display: block; margin-bottom: 7px; font-family: var(--serif); font-size: 20px; font-weight: 500; }
.market-source p { font-size: 12px; color: var(--muted); line-height: 1.55; }
.market-source a { font-size: 10px; font-weight: 700; color: var(--brass-dark); text-decoration: none; }
.live-item { position: relative; }
.live-deadline { display: inline-block; margin-left: 8px; color: var(--brass-dark); font-weight: 700; }
@media (max-width: 900px) { .sector-grid, .insight-grid { grid-template-columns: repeat(2, 1fr); } .market-source-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .sector-grid, .insight-grid, .market-source-grid { grid-template-columns: 1fr; } .sector-card, .insight-card { padding: 25px; } .capabilities { grid-template-columns: 1fr; } .proc-row { grid-template-columns: 40px 1fr; } .proc-desc { grid-column: 2; } .proc-row h3 { font-size: 23px; } }

/* Current project gallery */
.current-projects-section { background: var(--paper-2); }
.current-gallery { overflow: hidden; margin-top: 32px; }
.current-gallery-track { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin; padding-bottom: 11px; }
.gallery-slide { flex: 0 0 min(520px, 78vw); scroll-snap-align: start; position: relative; overflow: hidden; background: #142e27; min-height: 330px; }
.gallery-slide a { display: block; height: 100%; color: inherit; text-decoration: none; }
.gallery-slide img { display: block; width: 100%; height: 330px; object-fit: cover; transition: transform .6s ease; }
.gallery-slide:hover img { transform: scale(1.035); }
.gallery-caption { position: absolute; left: 0; right: 0; bottom: 0; padding: 58px 24px 22px; background: linear-gradient(transparent, rgba(11,27,23,.88)); color: #fff; display: flex; flex-direction: column; gap: 5px; }
.gallery-caption strong { font-family: var(--serif); font-size: 24px; font-weight: 500; }
.gallery-caption small { font-size: 12px; opacity: .85; }
.gallery-caption em { font-size: 10px; font-style: normal; opacity: .66; margin-top: 4px; }
.gallery-new { position: absolute; top: 16px; left: 16px; z-index: 2; background: var(--brass); color: #fff; font-size: 9px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; padding: 6px 10px; }
.gallery-note { font-size: 10px; color: var(--meta-2); margin-top: 12px; }

/* Equipment bulletin */
.equipment-bulletin { margin-top: 72px; padding-top: 48px; border-top: 1px solid var(--line); }
.equipment-heading { margin-bottom: 28px; }
.equipment-empty { padding: 20px 0; color: var(--muted); font-size: 13px; border-top: 1px solid var(--line); }
.equipment-list { border-top: 1px solid var(--line); }
.equipment-item { display: grid; grid-template-columns: 170px minmax(240px, 1fr) minmax(240px, 1.2fr) 150px; gap: 25px; padding: 26px 0; border-bottom: 1px solid var(--line); align-items: start; }
.equipment-meta { display: flex; flex-direction: column; gap: 7px; font-size: 9px; text-transform: uppercase; letter-spacing: .11em; color: var(--meta-2); }
.equipment-meta span:first-child { color: var(--brass-dark); font-weight: 700; }
.equipment-item h3 { font-family: var(--serif); font-size: 23px; line-height: 1.15; margin: 0; }
.equipment-item p { font-size: 12px; line-height: 1.65; color: var(--muted); margin: 0; }
.equipment-why { border-left: 1px solid var(--brass); padding-left: 15px; font-size: 12px; line-height: 1.6; color: var(--muted); }
.equipment-why strong { display: block; color: var(--ink); font-size: 9px; text-transform: uppercase; letter-spacing: .12em; margin-bottom: 5px; }
.equipment-item > a { font-size: 10px; font-weight: 700; color: var(--brass-dark); text-decoration: none; }
.equipment-item > a:hover { text-decoration: underline; }
.equipment-disclaimer { font-size: 10px; color: var(--meta); max-width: 800px; margin-top: 18px; }
@media (max-width: 1000px) { .equipment-item { grid-template-columns: 145px 1fr; } .equipment-item p, .equipment-why, .equipment-item > a { grid-column: 2; } }
@media (max-width: 620px) { .equipment-item { display: block; } .equipment-item h3 { margin: 10px 0 12px; } .equipment-item p { margin-bottom: 15px; } .equipment-why { margin: 15px 0; } .equipment-item > a { display: inline-block; } }

@media (max-width: 640px) { .wrap, .section-actions { width: calc(100% - 36px); } .section { padding: 78px 0; } .page-banner { padding-top: 132px; } .page-banner h1 { font-size: clamp(3.25rem, 15vw, 5rem); } .page-banner .lead { font-size: 20px; } }

/* Day / night toggle */
.theme-toggle { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; background: none; border: 1px solid var(--hairline-strong); color: var(--ink); cursor: pointer; transition: border-color .2s, color .2s, background .2s; flex: 0 0 auto; }
.theme-toggle:hover { border-color: var(--brass); color: var(--brass-dark); }
.theme-toggle svg { width: 18px; height: 18px; display: block; }
.theme-toggle .icon-moon { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: block; }
@media (prefers-color-scheme: dark) {
  :root[data-theme="auto"] .theme-toggle .icon-sun { display: none; }
  :root[data-theme="auto"] .theme-toggle .icon-moon { display: block; }
}
@media (min-width: 961px) { .nav-cta + .theme-toggle { margin-left: -22px; } }
@media (max-width: 960px) { .nav-inner { gap: 12px; } }
/* Keep photos and the logo comfortable in night mode */
:root[data-theme="dark"] .brand-icon { filter: saturate(.58) brightness(1.15); }
:root[data-theme="dark"] img:not(.brand-icon) { filter: brightness(.92); }
@media (prefers-color-scheme: dark) {
  :root[data-theme="auto"] .brand-icon { filter: saturate(.58) brightness(1.15); }
  :root[data-theme="auto"] img:not(.brand-icon) { filter: brightness(.92); }
}

/* Free site tools (Insights) */
.tool-card { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: 56px; align-items: start; background: var(--surface); border: 1px solid var(--line); padding: 40px; }
.tool-preview { display: block; border: 1px solid var(--line); box-shadow: 0 18px 40px -24px rgba(20,30,25,.35); transition: transform .25s ease, box-shadow .25s ease; }
.tool-preview:hover { transform: translateY(-3px); box-shadow: 0 24px 48px -24px rgba(20,30,25,.45); }
.tool-preview img { display: block; width: 100%; height: auto; }
.tool-meta { font-size: 10px; text-transform: uppercase; letter-spacing: .16em; color: var(--brass); font-weight: 600; margin-bottom: 14px; }
.tool-body h3 { font-family: var(--serif); font-size: 34px; font-weight: 500; line-height: 1.1; letter-spacing: -.01em; margin-bottom: 16px; }
.tool-body > p { color: var(--muted); font-size: 14px; line-height: 1.75; max-width: 620px; }
.tool-list { list-style: none; padding: 0; margin: 26px 0 30px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 28px; }
.tool-list li { position: relative; padding-left: 20px; font-size: 13px; line-height: 1.5; }
.tool-list li::before { content: ""; position: absolute; left: 0; top: .72em; width: 10px; height: 1px; background: var(--brass); }
.tool-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 26px; padding-top: 24px; border-top: 1px solid var(--line); }
.tool-note { font-size: 12px; color: var(--muted); }
.tool-note a { color: inherit; }
@media (max-width: 860px) { .tool-card { grid-template-columns: 1fr; gap: 32px; padding: 24px; } .tool-preview { max-width: 320px; } .tool-list { grid-template-columns: 1fr; } .tool-body h3 { font-size: 28px; } }
.tool-stack { display: grid; gap: 28px; }

/* tool cards on Insights: second action */
.tool-actions .btn-line { display: inline-flex; background: transparent; color: var(--green); border: 1px solid var(--green); padding: 15px 21px; }
.tool-actions .btn-line:hover { background: var(--green); color: #fffefa; }

.tool-actions .btn-line:hover { border-color: var(--green); }
:root[data-theme="dark"] .tool-actions .btn-line { color: #d9bc9c; border-color: #d9bc9c; }
.tool-actions { flex-wrap: wrap; }
