/* ==========================================================================
   Arthur Ferdinand Limited — main stylesheet
   Design language: clean corporate, image-led hero, generous whitespace,
   monochrome base + one primary brand colour + one sparing accent.
   Layout discipline adapted from the client's stated reference (shell.com.ng):
   inset hero image with scrim, 12-column grid, 16px-radius cards,
   8px-radius pill buttons, white footer with hairline rule.
   Brand colours are sampled from the client's own logo, not copied from Shell.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */
:root {
  /* Brand — sampled from the client's logo file (arthur.png) */
  --c-brand: #0000e6;          /* logo blue, marginally deepened for screen */
  --c-brand-hover: #00009e;
  --c-brand-soft: #eef0ff;
  --c-accent: #d6191b;         /* logo red — used sparingly */
  --c-accent-soft: #fdeeee;

  /* Neutrals */
  --c-paper: #ffffff;
  --c-paper-2: #f4f6f9;
  --c-paper-3: #eaeef3;
  --c-ink: #22303f;            /* body text */
  --c-ink-2: #4a4a4a;          /* secondary text */
  --c-ink-soft: #5a6875;
  --c-line: #e1e6ec;
  --c-navy: #070c33;           /* dark bands */
  --c-navy-2: #101a52;

  /* Type */
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, "Noto Sans", sans-serif;
  --fs-display: clamp(2rem, 1.35rem + 2.6vw, 2.875rem);   /* 32 → 46 */
  --fs-h1: clamp(1.875rem, 1.4rem + 1.9vw, 2.5rem);       /* 30 → 40 */
  --fs-h2: clamp(1.5rem, 1.25rem + 1.1vw, 2rem);          /* 24 → 32 */
  --fs-h3: clamp(1.125rem, 1.05rem + 0.35vw, 1.3125rem);  /* 18 → 21 */
  --fs-lead: 1.1875rem;                                    /* 19 */
  --fs-body: 1rem;                                         /* 16 */
  --fs-sm: 0.875rem;                                       /* 14 */
  --fs-xs: 0.8125rem;                                      /* 13 */
  --lh-tight: 1.15;
  --lh-heading: 1.22;
  --lh-body: 1.65;
  --ls-heading: -0.02em;
  --ls-eyebrow: 0.12em;

  /* Space */
  --space-1: 4px;  --space-2: 8px;  --space-3: 12px; --space-4: 16px;
  --space-5: 24px; --space-6: 32px; --space-7: 48px; --space-8: 64px;
  --space-9: 88px; --space-10: 112px;

  /* Shape */
  --radius-btn: 8px;
  --radius-card: 16px;
  --radius-img: 10px;
  --radius-pill: 999px;

  /* Elevation */
  --shadow-1: 0 1px 2px rgba(11, 22, 44, .06), 0 1px 3px rgba(11, 22, 44, .08);
  --shadow-2: 0 4px 12px rgba(11, 22, 44, .08), 0 12px 28px rgba(11, 22, 44, .07);
  --shadow-3: 0 18px 44px rgba(11, 22, 44, .14);

  --container: 1300px;
  --gutter: 20px;
  --header-h: 68px;
  --focus: 3px solid #0000e6;
  --transition: .22s ease;
}

@media (min-width: 768px) {
  :root { --gutter: 24px; --header-h: 76px; }
}

/* --------------------------------------------------------------------------
   2. Reset / base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--c-ink);
  background: var(--c-paper);
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
figure { margin: 0; }
a { color: var(--c-brand); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--c-brand-hover); text-decoration: underline; text-underline-offset: 3px; }
:focus-visible { outline: var(--focus); outline-offset: 3px; border-radius: 2px; }
hr { border: 0; border-top: 1px solid var(--c-line); margin: var(--space-7) 0; }
::selection { background: var(--c-brand); color: #fff; }

/* --------------------------------------------------------------------------
   3. Typography
   -------------------------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
  margin: 0 0 var(--space-3);
  font-weight: 800;
  line-height: var(--lh-heading);
  letter-spacing: var(--ls-heading);
  color: var(--c-ink);
  text-wrap: balance;
}
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
h4 { font-size: 1.0625rem; }
p { margin: 0 0 var(--space-4); }
p:last-child { margin-bottom: 0; }
strong, b { font-weight: 700; }
ul, ol { margin: 0 0 var(--space-4); padding-left: 1.15em; }
li { margin-bottom: var(--space-2); }
blockquote {
  margin: var(--space-5) 0; padding: var(--space-4) var(--space-5);
  border-left: 4px solid var(--c-brand); background: var(--c-paper-2);
  font-size: var(--fs-lead);
}
code, pre { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .9em; }
pre { background: var(--c-navy); color: #e8ecf5; padding: var(--space-5); border-radius: var(--radius-img); overflow-x: auto; }

.eyebrow {
  display: inline-block; margin: 0 0 var(--space-3);
  font-size: var(--fs-xs); font-weight: 800; letter-spacing: var(--ls-eyebrow);
  text-transform: uppercase; color: var(--c-accent);
}
.lead { font-size: var(--fs-lead); color: var(--c-ink-2); max-width: 62ch; }
.muted { color: var(--c-ink-soft); }
.small { font-size: var(--fs-sm); }
.measure { max-width: 68ch; }
.measure-tight { max-width: 54ch; }

/* --------------------------------------------------------------------------
   4. Layout
   -------------------------------------------------------------------------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.container-narrow { max-width: 860px; }

.section { padding-block: var(--space-8); }
.section-lg { padding-block: var(--space-9); }
@media (min-width: 1024px) { .section { padding-block: var(--space-9); } .section-lg { padding-block: var(--space-10); } }
.section--tint { background: var(--c-paper-2); }
.section--navy { background: var(--c-navy); color: #fff; }
.section--navy h1, .section--navy h2, .section--navy h3 { color: #fff; }
.section--navy .lead, .section--navy .muted { color: rgba(255, 255, 255, .78); }
.section-head { max-width: 62ch; margin-bottom: var(--space-6); }
.section-head--center { margin-inline: auto; text-align: center; }

.grid { display: grid; gap: var(--space-4); }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: 1fr; }
@media (min-width: 640px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-5); }
}
@media (min-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .grid { gap: var(--space-6); }
}
.grid--tight { gap: var(--space-3); }

.split { display: grid; gap: var(--space-5); align-items: center; }
@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; gap: var(--space-8); }
  .split--wide-left { grid-template-columns: 1.15fr 1fr; }
  .split--wide-right { grid-template-columns: 1fr 1.15fr; }
  .split--top { align-items: start; }
}
.stack > * + * { margin-top: var(--space-4); }
.stack-lg > * + * { margin-top: var(--space-6); }
.cluster { display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: center; }
.cluster--between { justify-content: space-between; }
.text-center { text-align: center; }

/* Responsive media wrapper — prevents layout shift */
.media { position: relative; overflow: hidden; border-radius: var(--radius-img); background: var(--c-paper-3); }
.media img { width: 100%; height: 100%; object-fit: cover; }
.media--16x9 { aspect-ratio: 16 / 9; }
.media--4x3 { aspect-ratio: 4 / 3; }
.media--3x2 { aspect-ratio: 3 / 2; }
.media--1x1 { aspect-ratio: 1 / 1; }

/* --------------------------------------------------------------------------
   5. Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  min-height: 48px; padding: 0 var(--space-5);
  font-size: var(--fs-sm); font-weight: 700; line-height: 1;
  text-align: center; text-decoration: none; cursor: pointer;
  border: 1px solid transparent; border-radius: var(--radius-btn);
  transition: background-color var(--transition), color var(--transition),
              border-color var(--transition), transform var(--transition);
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn--primary { background: var(--c-brand); color: #fff; border-color: var(--c-brand); }
.btn--primary:hover { background: var(--c-brand-hover); border-color: var(--c-brand-hover); color: #fff; }
.btn--secondary { background: transparent; color: var(--c-ink); border-color: var(--c-line); }
.btn--secondary:hover { background: var(--c-paper-3); color: var(--c-ink); }
.btn--ghost-light { background: rgba(4, 8, 40, .28); color: #fff; border-color: rgba(255, 255, 255, .8); }
.btn--ghost-light:hover { background: rgba(255, 255, 255, .12); color: #fff; border-color: #fff; }
.btn--light { background: #fff; color: var(--c-ink); border-color: #fff; }
.btn--light:hover { background: var(--c-paper-3); color: var(--c-ink); }
.btn--block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--space-3); }
@media (max-width: 479px) { .btn-row .btn { width: 100%; } }

.link-arrow { font-weight: 700; font-size: var(--fs-sm); display: inline-flex; align-items: center; gap: 6px; }
.link-arrow::after { content: "→"; transition: transform var(--transition); }
.link-arrow:hover::after { transform: translateX(3px); }
.link-arrow:hover { text-decoration: none; }

/* --------------------------------------------------------------------------
   6. Skip link
   -------------------------------------------------------------------------- */
.skip-link {
  position: absolute; left: var(--space-4); top: -80px; z-index: 100;
  background: var(--c-brand); color: #fff; padding: var(--space-3) var(--space-5);
  border-radius: var(--radius-btn); font-weight: 700; transition: top var(--transition);
}
.skip-link:focus { top: var(--space-2); color: #fff; text-decoration: none; }

/* --------------------------------------------------------------------------
   7. Header
   -------------------------------------------------------------------------- */
.utility { background: var(--c-paper-2); border-bottom: 1px solid var(--c-line); font-size: var(--fs-xs); }
.utility__inner { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-5); align-items: center; justify-content: space-between; min-height: 40px; padding-block: 6px; }
.utility__list { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-5); list-style: none; margin: 0; padding: 0; }
.utility__list li { margin: 0; display: inline-flex; align-items: center; gap: 6px; }
.utility a { color: var(--c-ink-2); }
.utility a:hover { color: var(--c-brand); }
.utility__icon { width: 14px; height: 14px; flex: none; color: var(--c-accent); }

.site-header { position: sticky; top: 0; z-index: 60; background: #fff; border-bottom: 1px solid var(--c-line); }
.site-header.is-stuck { box-shadow: 0 6px 20px rgba(11, 22, 44, .08); }
.site-header__inner { display: flex; align-items: center; gap: var(--space-4); min-height: var(--header-h); }

.brand { display: inline-flex; align-items: center; flex: none; }
/* The supplied logo file is only 294x92 px, so it is displayed close to native
   size to keep the wordmark as sharp as the file allows. Replace it with an SVG
   via Appearance > Customise > Site Identity for a fully crisp retina result. */
.brand img { width: 216px; height: auto; }
@media (min-width: 1024px) { .brand img { width: 258px; } }

.nav { margin-left: auto; }
.nav__list { display: flex; align-items: center; gap: var(--space-1); list-style: none; margin: 0; padding: 0; }
.nav__list li { margin: 0; }
.nav__list a {
  display: block; padding: 0 var(--space-3); min-height: 44px; line-height: 44px;
  font-size: var(--fs-sm); font-weight: 600; color: var(--c-ink); border-radius: var(--radius-btn);
  position: relative;
}
.nav__list a:hover { color: var(--c-brand); text-decoration: none; background: var(--c-brand-soft); }
.nav__list .current-menu-item > a,
.nav__list .current_page_item > a,
.nav__list .current-menu-parent > a { color: var(--c-brand); }
.nav__list .current-menu-item > a::after {
  content: ""; position: absolute; left: var(--space-3); right: var(--space-3); bottom: 4px;
  height: 3px; background: var(--c-accent); border-radius: 2px;
}
/* Dropdowns */
.nav__list .sub-menu {
  position: absolute; min-width: 232px; margin: 0; padding: var(--space-2); list-style: none;
  background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius-img);
  box-shadow: var(--shadow-2); opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity var(--transition), transform var(--transition), visibility var(--transition);
}
.nav__list li { position: relative; }
.nav__list li:hover > .sub-menu,
.nav__list li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.nav__list .sub-menu a { line-height: 1.3; padding: var(--space-3); min-height: 0; }

.header-cta { margin-left: var(--space-3); }
.nav-toggle {
  margin-left: auto; display: inline-flex; align-items: center; gap: var(--space-2);
  min-height: 44px; padding: 0 var(--space-4);
  background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius-btn);
  font: inherit; font-size: var(--fs-sm); font-weight: 700; color: var(--c-ink); cursor: pointer;
}
.nav-toggle:hover { background: var(--c-paper-2); }
.nav-toggle__bars { width: 18px; height: 12px; position: relative; flex: none; }
.nav-toggle__bars span { position: absolute; left: 0; right: 0; height: 2px; background: currentColor; border-radius: 2px; transition: transform var(--transition), opacity var(--transition); }
.nav-toggle__bars span:nth-child(1) { top: 0; }
.nav-toggle__bars span:nth-child(2) { top: 5px; }
.nav-toggle__bars span:nth-child(3) { top: 10px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

@media (max-width: 1023px) {
  .header-cta { display: none; }
  .nav {
    position: fixed; inset: calc(var(--header-h) + 40px) 0 auto 0; margin: 0;
    max-height: calc(100vh - var(--header-h) - 40px); overflow-y: auto;
    background: #fff; border-top: 1px solid var(--c-line);
    padding: var(--space-3) var(--gutter) var(--space-6);
    box-shadow: var(--shadow-2);
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity var(--transition), transform var(--transition), visibility var(--transition);
  }
  .nav.is-open { opacity: 1; visibility: visible; transform: translateY(0); }
  .nav__list { display: block; }
  .nav__list a { line-height: 1.35; min-height: 0; padding: var(--space-4) var(--space-3); border-bottom: 1px solid var(--c-line); border-radius: 0; }
  .nav__list .current-menu-item > a::after { display: none; }
  .nav__list .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; border-radius: 0; padding: 0 0 0 var(--space-4); }
  .nav__list .sub-menu a { border-bottom: 0; padding: var(--space-3); color: var(--c-ink-2); font-weight: 500; }
  .nav-foot { margin-top: var(--space-5); display: grid; gap: var(--space-3); }
}
@media (min-width: 1024px) {
  .nav-toggle { display: none; }
  .nav-foot { display: none; }
}

/* --------------------------------------------------------------------------
   8. Hero
   -------------------------------------------------------------------------- */
.hero { padding-block: var(--space-6) var(--space-7); background: #fff; }
@media (min-width: 1024px) { .hero { padding-block: var(--space-7) var(--space-9); } }
.hero__figure { position: relative; border-radius: var(--radius-card); overflow: hidden; background: var(--c-navy); }
.hero__figure img { width: 100%; height: clamp(340px, 46vw, 560px); object-fit: cover; }
.hero__scrim {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(4, 8, 40, .84) 0%, rgba(4, 8, 40, .68) 48%, rgba(4, 8, 40, .38) 100%);
}
.hero__body {
  position: absolute; inset: 0; display: flex; align-items: center;
  padding: var(--space-5) var(--space-5);
}
@media (min-width: 768px) { .hero__body { padding: var(--space-8); } }
@media (min-width: 1024px) { .hero__body { padding: var(--space-9) var(--space-8); } }
.hero__inner { max-width: 640px; }
.hero h1 { color: #fff; font-size: var(--fs-display); margin-bottom: var(--space-4); letter-spacing: -0.025em; }
.hero__text { color: rgba(255, 255, 255, .86); font-size: var(--fs-lead); margin-bottom: var(--space-6); max-width: 54ch; }
.hero .eyebrow { color: #fff; }
.hero .eyebrow::before { content: ""; display: inline-block; width: 26px; height: 3px; background: var(--c-accent); vertical-align: middle; margin-right: 10px; }
@media (max-width: 767px) {
  /* Reference pattern: photograph on top, dark heading below it on white.
     The scrim must not extend over the copy, so it is switched off here. */
  .hero { padding-block: var(--space-4) var(--space-6); }
  .hero__figure { border-radius: var(--radius-img); }
  .hero__figure img { height: 210px; }
  .hero__scrim { display: none; }
  .hero__body { position: static; inset: auto; padding: var(--space-5) 0 0; }
  .hero h1 { color: var(--c-ink); }
  .hero__text { color: var(--c-ink-2); }
  .hero .eyebrow { color: var(--c-accent); }
}

/* Page banner (inner pages) — shorter image band, heading below, like the reference */
.page-banner { position: relative; }
.page-banner__figure { border-radius: 0; overflow: hidden; }
.page-banner__figure img { width: 100%; height: clamp(160px, 22vw, 280px); object-fit: cover; }
.page-banner__figure::after { content: ""; position: absolute; inset: 0; background: rgba(4, 8, 40, .35); }
.page-banner + .page-head { padding-top: var(--space-6); }
.breadcrumb { font-size: var(--fs-xs); color: var(--c-ink-soft); padding-block: var(--space-4) 0; }
.breadcrumb a { color: var(--c-ink-soft); }
.breadcrumb span[aria-current="page"] { color: var(--c-ink); font-weight: 600; }

/* --------------------------------------------------------------------------
   9. Stat strip (definition-list pattern from the reference)
   -------------------------------------------------------------------------- */
.stats { display: grid; gap: var(--space-5); grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 900px) { .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-6); } }
.stat { border-top: 3px solid var(--c-accent); padding-top: var(--space-4); }
.stat__value { display: block; font-size: clamp(1.75rem, 1.2rem + 2vw, 2.5rem); font-weight: 800; line-height: 1; letter-spacing: var(--ls-heading); color: var(--c-brand); }
.stat__label { display: block; margin-top: var(--space-2); font-size: var(--fs-sm); color: var(--c-ink-2); }
.section--navy .stat__value { color: #fff; }
.section--navy .stat__label { color: rgba(255, 255, 255, .78); }

/* --------------------------------------------------------------------------
   10. Cards
   -------------------------------------------------------------------------- */
.card {
  display: flex; flex-direction: column; background: #fff;
  border: 1px solid var(--c-line); border-radius: var(--radius-card);
  overflow: hidden; height: 100%;
  transition: box-shadow var(--transition), transform var(--transition), border-color var(--transition);
}
.card__media { display: block; background: var(--c-paper-3); position: relative; }
.card__media img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.card__body { padding: var(--space-5); display: flex; flex-direction: column; gap: var(--space-3); flex: 1; }
.card__title { margin: 0; font-size: var(--fs-h3); }
.card__title a { color: inherit; }
.card__title a:hover { color: var(--c-brand); text-decoration: none; }
.card__text { margin: 0; font-size: var(--fs-sm); color: var(--c-ink-2); }
.card__foot { margin-top: auto; padding-top: var(--space-2); }

.card--link { color: inherit; }
.card--link:hover { text-decoration: none; box-shadow: var(--shadow-2); transform: translateY(-3px); border-color: var(--c-paper-3); }

/* Service / feature card */
.feature { display: flex; flex-direction: column; gap: var(--space-3); padding: var(--space-5); background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius-card); height: 100%; }
.feature__icon { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 12px; background: var(--c-brand-soft); color: var(--c-brand); flex: none; }
.feature__icon svg { width: 24px; height: 24px; }
.feature__title { margin: 0; font-size: var(--fs-h3); }
.feature__text { margin: 0; font-size: var(--fs-sm); color: var(--c-ink-2); }
.feature__list { margin: 0; padding-left: 1.1em; font-size: var(--fs-sm); color: var(--c-ink-2); }
.feature__list li { margin-bottom: 4px; }

/* Project card */
/* The title absorbs the spare height so the client / date / status rows and the
   footer link line up across a row of cards, whatever the title length. */
.project-card .card__title { margin-bottom: auto; }
.project-card .meta { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-4); font-size: var(--fs-xs); color: var(--c-ink-soft); margin: 0; }
.project-card .meta span { display: inline-flex; align-items: center; gap: 6px; }
.project-card .meta svg { width: 14px; height: 14px; color: var(--c-accent); }

/* Badges */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; border-radius: var(--radius-pill);
  font-size: 12px; font-weight: 700; letter-spacing: .02em;
}
.badge--ongoing { background: #fff6e5; color: #8a5a00; }
.badge--completed { background: #e9f7ef; color: #14663a; }
.badge--done { background: var(--c-brand-soft); color: var(--c-brand); }
.badge-dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex: none; }

/* --------------------------------------------------------------------------
   11. Clients strip
   -------------------------------------------------------------------------- */
.clients__list { display: flex; flex-wrap: wrap; gap: var(--space-3); list-style: none; margin: 0; padding: 0; }
.clients__list li {
  margin: 0; padding: var(--space-3) var(--space-4);
  background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius-btn);
  font-size: var(--fs-sm); font-weight: 600; color: var(--c-ink);
}
.section--tint .clients__list li { background: #fff; }

/* --------------------------------------------------------------------------
   12. Projects table / list
   -------------------------------------------------------------------------- */
.filters { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-bottom: var(--space-5); }
.filter-btn {
  min-height: 40px; padding: 0 var(--space-4); background: #fff; cursor: pointer;
  border: 1px solid var(--c-line); border-radius: var(--radius-pill);
  font: inherit; font-size: var(--fs-sm); font-weight: 600; color: var(--c-ink-2);
  transition: background-color var(--transition), color var(--transition), border-color var(--transition);
}
.filter-btn:hover { background: var(--c-paper-2); color: var(--c-ink); }
.filter-btn[aria-pressed="true"] { background: var(--c-brand); border-color: var(--c-brand); color: #fff; }

.table-wrap { overflow-x: auto; border: 1px solid var(--c-line); border-radius: var(--radius-card); background: #fff; }
table.projects { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); min-width: 720px; }
table.projects caption { text-align: left; padding: var(--space-4) var(--space-5); font-size: var(--fs-sm); color: var(--c-ink-soft); }
table.projects th, table.projects td { padding: var(--space-4) var(--space-5); text-align: left; vertical-align: top; border-bottom: 1px solid var(--c-line); }
table.projects thead th {
  font-size: var(--fs-xs); font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
  color: var(--c-ink); background: var(--c-paper-3); white-space: nowrap;
  position: sticky; top: 0; z-index: 1;
}
table.projects tbody tr:nth-child(even) { background: #fbfcfe; }
table.projects tbody tr:last-child td { border-bottom: 0; }
table.projects tbody tr:hover { background: var(--c-brand-soft); }
table.projects td:first-child { font-weight: 600; color: var(--c-ink); min-width: 320px; }
table.projects td:nth-child(4), table.projects td:nth-child(5) { white-space: nowrap; }
.table-note { margin-top: var(--space-4); font-size: var(--fs-xs); color: var(--c-ink-soft); }

/* --------------------------------------------------------------------------
   13. CTA band
   -------------------------------------------------------------------------- */
.cta-band { background: var(--c-navy); border-radius: var(--radius-card); padding: var(--space-7) var(--space-5); color: #fff; }
@media (min-width: 900px) { .cta-band { padding: var(--space-8); } }
.cta-band h2 { color: #fff; margin-bottom: var(--space-3); }
.cta-band p { color: rgba(255, 255, 255, .8); max-width: 60ch; margin-bottom: var(--space-5); }
.cta-band__inner { display: grid; gap: var(--space-6); align-items: center; }
@media (min-width: 900px) { .cta-band__inner { grid-template-columns: 1.4fr auto; } }

/* --------------------------------------------------------------------------
   14. Footer
   -------------------------------------------------------------------------- */
.site-footer { border-top: 1px solid var(--c-line); background: #fff; padding-block: var(--space-8) var(--space-5); margin-top: var(--space-8); }
.footer__grid { display: grid; gap: var(--space-6); }
@media (min-width: 640px) { .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .footer__grid { grid-template-columns: 1.5fr repeat(3, 1fr); gap: var(--space-7); } }
.footer__brand img { width: 200px; margin-bottom: var(--space-4); }
.footer__brand p { font-size: var(--fs-sm); color: var(--c-ink-2); max-width: 38ch; }
.footer h2, .footer h3 { font-size: var(--fs-body); margin-bottom: var(--space-4); font-weight: 700; letter-spacing: 0; }
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { margin-bottom: var(--space-3); font-size: var(--fs-sm); }
.footer a { color: var(--c-ink-2); }
.footer a:hover { color: var(--c-brand); }
.footer__legal { margin-top: var(--space-7); padding-top: var(--space-5); border-top: 1px solid var(--c-line); display: flex; flex-wrap: wrap; gap: var(--space-3) var(--space-5); justify-content: space-between; font-size: var(--fs-xs); color: var(--c-ink-soft); }
.footer__legal ul { display: flex; flex-wrap: wrap; gap: var(--space-5); }
.footer__legal li { margin: 0; }

/* --------------------------------------------------------------------------
   15. Forms
   -------------------------------------------------------------------------- */
.form { display: grid; gap: var(--space-4); }
.form__row { display: grid; gap: var(--space-4); }
@media (min-width: 640px) { .form__row--2 { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 6px; }
.field label { font-size: var(--fs-sm); font-weight: 700; }
.field .req { color: var(--c-accent); }
.field input, .field textarea, .field select {
  width: 100%; padding: 12px var(--space-4); font: inherit; font-size: var(--fs-body); color: var(--c-ink);
  background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius-btn);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--c-brand); box-shadow: 0 0 0 3px var(--c-brand-soft);
}
.field textarea { min-height: 160px; resize: vertical; }
.field .hint { font-size: var(--fs-xs); color: var(--c-ink-soft); }
.hp { position: absolute !important; left: -9999px !important; }

.notice { padding: var(--space-4) var(--space-5); border-radius: var(--radius-btn); font-size: var(--fs-sm); border: 1px solid transparent; }
.notice--ok { background: #e9f7ef; border-color: #b7e2c9; color: #14663a; }
.notice--err { background: var(--c-accent-soft); border-color: #f3c9ca; color: #8e1113; }

/* Contact detail list */
.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-5); }
.contact-list li { margin: 0; display: grid; grid-template-columns: 44px 1fr; gap: var(--space-4); align-items: start; }
.contact-list__icon { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; background: var(--c-brand-soft); color: var(--c-brand); }
.contact-list__icon svg { width: 22px; height: 22px; }
.contact-list__label { display: block; font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .06em; color: var(--c-ink-soft); margin-bottom: 2px; }
.contact-list__value { font-weight: 600; }

/* --------------------------------------------------------------------------
   16. Prose / entry content
   -------------------------------------------------------------------------- */
.prose { max-width: 72ch; }
.prose > * + * { margin-top: var(--space-4); }
.prose h2 { margin-top: var(--space-7); font-size: var(--fs-h2); }
.prose h3 { margin-top: var(--space-6); }
.prose ul, .prose ol { padding-left: 1.25em; }
.prose img { border-radius: var(--radius-img); }
.prose figure { margin: var(--space-6) 0; }
.prose figcaption { margin-top: var(--space-2); font-size: var(--fs-xs); color: var(--c-ink-soft); }

.entry-header { margin-bottom: var(--space-6); }
.entry-meta { font-size: var(--fs-sm); color: var(--c-ink-soft); }
.pagination { display: flex; flex-wrap: wrap; gap: var(--space-2); justify-content: center; margin-top: var(--space-7); }
.pagination .page-numbers { min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; padding: 0 var(--space-3); border: 1px solid var(--c-line); border-radius: var(--radius-btn); font-size: var(--fs-sm); font-weight: 600; }
.pagination .page-numbers.current { background: var(--c-brand); border-color: var(--c-brand); color: #fff; }

/* --------------------------------------------------------------------------
   17. WordPress core alignment / block support
   -------------------------------------------------------------------------- */
.alignleft { float: left; margin: 0 var(--space-5) var(--space-4) 0; }
.alignright { float: right; margin: 0 0 var(--space-4) var(--space-5); }
.aligncenter { margin-left: auto; margin-right: auto; }
.alignwide { width: min(100vw - 2 * var(--gutter), var(--container)); margin-inline: auto; }
.alignfull { width: 100vw; max-width: 100vw; margin-left: calc(50% - 50vw); }
.wp-caption { max-width: 100%; }
.wp-caption-text, .gallery-caption { font-size: var(--fs-xs); color: var(--c-ink-soft); margin-top: var(--space-2); }
.sticky .card__title::before { content: "★ "; color: var(--c-accent); }
.screen-reader-text {
  border: 0; clip-path: inset(50%); height: 1px; width: 1px; margin: -1px; overflow: hidden;
  padding: 0; position: absolute !important; word-wrap: normal !important;
}
.screen-reader-text:focus {
  background: #fff; clip-path: none; color: var(--c-brand); display: block; font-size: var(--fs-sm);
  font-weight: 700; height: auto; left: var(--space-4); line-height: normal; padding: var(--space-3) var(--space-4);
  text-decoration: none; top: var(--space-2); width: auto; z-index: 100000; box-shadow: var(--shadow-2);
}
.widget { margin-bottom: var(--space-6); }
.widget-title { font-size: var(--fs-body); font-weight: 700; margin-bottom: var(--space-3); }

/* --------------------------------------------------------------------------
   18. Utilities & misc
   -------------------------------------------------------------------------- */
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.mt-5 { margin-top: var(--space-5); } .mt-6 { margin-top: var(--space-6); }
.mt-7 { margin-top: var(--space-7); } .mt-8 { margin-top: var(--space-8); }
.pt-0 { padding-top: 0; } .pb-0 { padding-bottom: 0; }
.hide { display: none !important; }
.is-hidden { display: none !important; }
.aspect-hero { aspect-ratio: 16 / 9; }

/* Focus-visible fallback for browsers without :focus-visible */
@supports not selector(:focus-visible) {
  a:focus, button:focus, input:focus, textarea:focus, select:focus { outline: var(--focus); }
}

/* Motion-safe reveal (progressively enhanced by site.js) */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .5s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; }
}

@media print {
  .site-header, .utility, .site-footer, .cta-band, .nav-toggle, .skip-link { display: none !important; }
  body { font-size: 11pt; color: #000; }
  a { color: #000; text-decoration: underline; }
  .section { padding-block: 12pt; }
}

/* --------------------------------------------------------------------------
   19. Page head, FAQ, comments, sidebar
   -------------------------------------------------------------------------- */
.page-head { padding-block: var(--space-6) var(--space-5); }
@media (min-width: 1024px) { .page-head { padding-block: var(--space-8) var(--space-6); } }
.page-head .section-head { margin-bottom: 0; }

.mt-9 { margin-top: var(--space-9); }

/* Utility bar: keep it to a single line on phones by hiding the address and
   email entries (the phone number stays, and both are in the footer). */
@media (max-width: 767px) {
  .utility__list li.hide-sm { display: none; }
  .hide-sm { display: none; }
}
.utility__inner { justify-content: flex-start; }

/* FAQ */
.faq { display: grid; gap: 0; border-top: 1px solid var(--c-line); }
.faq__item { border-bottom: 1px solid var(--c-line); }
.faq__item summary {
  cursor: pointer; list-style: none; padding: var(--space-5) 40px var(--space-5) 0;
  position: relative; font-weight: 700; font-size: var(--fs-body);
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  font-size: 1.5rem; font-weight: 400; line-height: 1; color: var(--c-brand);
  transition: transform var(--transition);
}
.faq__item[open] summary::after { content: "–"; }
.faq__item summary:hover { color: var(--c-brand); }
.faq__answer { padding: 0 var(--space-6) var(--space-5) 0; color: var(--c-ink-2); }
.faq__answer p:last-child { margin-bottom: 0; }

/* Comments */
.comments__list { list-style: none; margin: 0 0 var(--space-6); padding: 0; }
.comments__list .comment { padding: var(--space-5) 0; border-bottom: 1px solid var(--c-line); }
.comments__list .children { list-style: none; margin: var(--space-4) 0 0 var(--space-6); padding: 0; }
.comment-meta { font-size: var(--fs-xs); color: var(--c-ink-soft); margin-bottom: var(--space-3); }
.comment-author img { border-radius: 50%; display: inline-block; vertical-align: middle; margin-right: var(--space-2); }
.comment-form p { margin-bottom: var(--space-4); }
.comment-form label { display: block; font-size: var(--fs-sm); font-weight: 700; margin-bottom: 6px; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea {
  width: 100%; padding: 12px var(--space-4); font: inherit; font-size: var(--fs-body);
  border: 1px solid var(--c-line); border-radius: var(--radius-btn); background: #fff;
}
.comment-form input:focus, .comment-form textarea:focus { outline: none; border-color: var(--c-brand); box-shadow: 0 0 0 3px var(--c-brand-soft); }
.comment-form .comment-form-cookies-consent { display: flex; gap: var(--space-3); align-items: flex-start; font-size: var(--fs-sm); }
.comment-form .comment-form-cookies-consent label { font-weight: 400; margin: 0; }

/* Sidebar */
.sidebar { padding-top: var(--space-5); border-top: 1px solid var(--c-line); }
.sidebar .widget ul { list-style: none; padding: 0; }

/* Icon inside badges should not be announced and should sit on the text baseline */
.badge svg { width: 14px; height: 14px; }

/* ========================================================================== 
   20. Version 1.1 — responsive slider, image-led services and conversion UX
   ========================================================================== */

.section--compact { padding-block: var(--space-5); }
@media (min-width: 900px) { .section--compact { padding-block: var(--space-6); } }
.stats-section { border-bottom: 1px solid var(--c-line); }

/* Three-slide homepage banner */
.hero { padding-block: var(--space-4) var(--space-6); }
@media (min-width: 900px) { .hero { padding-block: var(--space-6) var(--space-8); } }
.hero-slider {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-card);
  background: var(--c-navy);
  box-shadow: var(--shadow-2);
}
.hero-slider__track { display: grid; }
.hero-slide {
  grid-area: 1 / 1;
  position: relative;
  min-height: clamp(500px, 48vw, 610px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .55s ease, visibility .55s ease;
}
.hero-slide.is-active { opacity: 1; visibility: visible; pointer-events: auto; z-index: 2; }
.hero-slide__media { position: absolute; inset: 0; background: var(--c-navy); }
.hero-slide__media img,
.hero-slide__img { width: 100%; height: 100%; object-fit: cover; }
.hero-slide__scrim {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(3, 7, 34, .91) 0%, rgba(3, 7, 34, .78) 45%, rgba(3, 7, 34, .32) 100%);
}
.hero-slide__body {
  position: relative; z-index: 2;
  min-height: inherit;
  display: flex; align-items: center;
  padding: var(--space-8);
}
.hero-slide__inner { width: min(650px, 64%); }
.hero-slide h1,
.hero-slide__title {
  color: #fff;
  font-size: var(--fs-display);
  line-height: 1.08;
  letter-spacing: -.032em;
  margin-bottom: var(--space-4);
  text-wrap: balance;
}
.hero-slide .eyebrow { color: #fff; }
.hero-slide .eyebrow::before { content: ""; display: inline-block; width: 26px; height: 3px; background: var(--c-accent); vertical-align: middle; margin-right: 10px; }
.hero-slide .hero__text { color: rgba(255,255,255,.9); font-size: 1.075rem; line-height: 1.6; max-width: 58ch; margin-bottom: var(--space-5); }
.hero-slider__controls {
  position: absolute; z-index: 5; left: var(--space-6); bottom: var(--space-5);
  display: inline-flex; align-items: center; gap: var(--space-3);
}
.hero-slider__arrow {
  width: 42px; height: 42px; border-radius: 50%; border: 1px solid rgba(255,255,255,.45);
  background: rgba(3,7,34,.42); color: #fff; font-size: 1.2rem; cursor: pointer;
  display: grid; place-items: center; backdrop-filter: blur(5px);
}
.hero-slider__arrow:hover { background: #fff; color: var(--c-brand); }
.hero-slider__dots { display: flex; align-items: center; gap: 8px; }
.hero-slider__dot {
  width: 9px; height: 9px; border: 0; border-radius: 50%; padding: 0; cursor: pointer;
  background: rgba(255,255,255,.52); transition: width .2s ease, border-radius .2s ease, background .2s ease;
}
.hero-slider__dot.is-active { width: 30px; border-radius: 999px; background: #fff; }
.hero-slider__progress { position: absolute; z-index: 5; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(255,255,255,.2); }
.hero-slider__progress span { display: block; width: 0; height: 100%; background: var(--c-accent); }
.hero-slider.is-playing .hero-slider__progress span { animation: aflSliderProgress var(--afl-slider-duration, 6500ms) linear forwards; }
@keyframes aflSliderProgress { from { width: 0; } to { width: 100%; } }

@media (max-width: 767px) {
  body { padding-bottom: 66px; }
  .hero { padding-block: var(--space-3) var(--space-5); }
  .hero-slider { border-radius: 12px; }
  .hero-slide { min-height: 540px; }
  .hero-slide__scrim {
    display: block;
    background: linear-gradient(180deg, rgba(3,7,34,.25) 0%, rgba(3,7,34,.64) 32%, rgba(3,7,34,.94) 76%, rgba(3,7,34,.98) 100%);
  }
  .hero-slide__media img { object-position: center center; }
  .hero-slide__body { align-items: flex-end; padding: 28px 22px 86px; }
  .hero-slide__inner { width: 100%; max-width: none; }
  .hero-slide h1,
  .hero-slide__title { color: #fff; font-size: clamp(1.95rem, 8.4vw, 2.45rem); line-height: 1.08; margin-bottom: 14px; }
  .hero-slide .hero__text { color: rgba(255,255,255,.92); font-size: 1rem; line-height: 1.52; margin-bottom: 20px; max-width: 100%; }
  .hero-slide .eyebrow { color: #fff; font-size: .72rem; margin-bottom: 10px; }
  .hero-slider__controls { left: 22px; bottom: 22px; gap: 10px; }
  .hero-slider__arrow { width: 38px; height: 38px; }
  .page-head .lead, .section-head .lead { font-size: 1.05rem; line-height: 1.55; }
  h1, h2, h3 { overflow-wrap: normal; word-break: normal; }
}

/* Image-led service cards */
.service-grid { align-items: stretch; }
.service-card {
  display: flex; flex-direction: column; overflow: hidden; height: 100%;
  background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius-card);
  box-shadow: var(--shadow-1); transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  scroll-margin-top: calc(var(--header-h) + 24px);
}
.service-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); border-color: #d5dbe4; }
.service-card__media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--c-paper-3); }
.service-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.service-card:hover .service-card__media img { transform: scale(1.025); }
.service-card__body { padding: var(--space-5); display: flex; flex-direction: column; gap: var(--space-3); flex: 1; }
.service-card__heading { display: grid; grid-template-columns: 46px 1fr; gap: var(--space-3); align-items: center; }
.service-card__heading .feature__title { line-height: 1.25; }
.service-card__foot { margin-top: auto; padding-top: var(--space-2); }
.section--tint .service-card { background: #fff; }

/* About page */
.about-intro .prose { max-width: 66ch; }
.about-values .feature { border-top: 3px solid var(--c-accent); }
.about-home-media img { width: 100%; height: 100%; object-fit: cover; }

/* Contact conversion panel + map */
.contact-card { box-shadow: var(--shadow-1); }
.contact-actions { display: flex; flex-wrap: wrap; gap: var(--space-3); }
.map-frame { overflow: hidden; border: 1px solid var(--c-line); border-radius: var(--radius-card); box-shadow: var(--shadow-1); background: var(--c-paper-2); }
.map-frame iframe { display: block; width: 100%; min-height: 420px; border: 0; }
@media (max-width: 767px) {
  .map-frame iframe { min-height: 320px; }
  .contact-actions .btn { width: 100%; }
}

/* Mobile conversion bar */
.mobile-quick-actions { display: none; }
@media (max-width: 767px) {
  .mobile-quick-actions {
    position: fixed; z-index: 80; left: 0; right: 0; bottom: 0;
    display: grid; grid-template-columns: 1fr 1fr; gap: 1px;
    padding: 8px max(10px, env(safe-area-inset-right)) calc(8px + env(safe-area-inset-bottom)) max(10px, env(safe-area-inset-left));
    background: rgba(255,255,255,.97); border-top: 1px solid var(--c-line); box-shadow: 0 -8px 24px rgba(11,22,44,.1);
  }
  .mobile-quick-actions a {
    min-height: 46px; display: inline-flex; align-items: center; justify-content: center;
    padding: 0 12px; border-radius: 8px; font-size: .875rem; font-weight: 800; text-decoration: none;
  }
  .mobile-quick-actions__whatsapp { background: #1f7a48; color: #fff; }
  .mobile-quick-actions__quote { background: var(--c-brand); color: #fff; }
  .mobile-quick-actions a:hover { color: #fff; text-decoration: none; filter: brightness(.95); }
}

/* Core pages deliberately do not inherit legacy widget sidebars. */
.no-sidebar .prose { max-width: 78ch; }

@media (prefers-reduced-motion: reduce) {
  .hero-slide, .service-card, .service-card__media img { transition: none !important; }
  .hero-slider__progress { display: none; }
}
