/* =========================================================================
   New World Consulting Ltd — Stylesheet
   Brand: Deep Navy #02224F (primary), Corporate Blue #0275C4, Ocean #02599D,
   Bright Blue #0A90DB (accent), Slate #555D67, White, Light Blue-Gray #C1D0E0
   Type: Space Grotesk (display), Inter (body), JetBrains Mono (mono)
   Design: solid colours only, navy-dominant, generous whitespace.
   ========================================================================= */

:root {
  --nw-navy: #02224F;
  --nw-blue: #0275C4;
  --nw-blue-dark: #02599D;
  --nw-blue-bright: #0A90DB;
  --nw-slate: #555D67;
  --nw-light-blue: #C1D0E0;
  --nw-white: #FFFFFF;

  --bg: #FFFFFF;
  --bg-tint: #F4F7FB;
  --bg-tint-2: #EAF1F8;
  --ink: #0B1B30;
  --ink-soft: #555D67;
  --line: #E1E8F0;
  --line-strong: #C1D0E0;

  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 16px;

  --shadow-sm: 0 1px 2px rgba(2, 34, 79, 0.06), 0 1px 3px rgba(2, 34, 79, 0.04);
  --shadow: 0 6px 18px rgba(2, 34, 79, 0.08);
  --shadow-lg: 0 18px 50px rgba(2, 34, 79, 0.14);

  --container: 1180px;
  --gutter: clamp(20px, 4vw, 40px);

  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;

  --header-h: 74px;
}

/* ----------------------------- Reset / base ----------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: clamp(16px, 1.05vw, 17px);
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--nw-blue); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.12; color: var(--nw-navy); margin: 0 0 0.5em; font-weight: 600; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; cursor: pointer; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 1000;
  background: var(--nw-navy); color: #fff; padding: 10px 16px; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

:focus-visible { outline: 3px solid var(--nw-blue-bright); outline-offset: 2px; border-radius: 4px; }

/* ----------------------------- Typography helpers ----------------------------- */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--nw-blue);
  font-weight: 500;
  margin: 0 0 14px;
}
.eyebrow--light { color: var(--nw-blue-bright); }
.accent { color: var(--nw-blue-bright); }
.muted { color: var(--ink-soft); }

.section { padding: clamp(56px, 8vw, 104px) 0; }
.section--flush { padding-top: clamp(8px, 2vw, 24px); }
.section--tint { background: var(--bg-tint); }

.section-head { max-width: 720px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-title { font-size: clamp(1.6rem, 3.4vw, 2.6rem); }
.section-lede { font-size: 1.05rem; color: var(--ink-soft); max-width: 60ch; }
.section-tail { margin-top: 28px; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600; color: var(--nw-blue); font-family: var(--font-display);
  letter-spacing: 0.01em;
}
.link-arrow span { transition: transform .25s ease; }
.link-arrow:hover { text-decoration: none; }
.link-arrow:hover span { transform: translateX(5px); }

/* ----------------------------- Buttons ----------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-display); font-weight: 600; font-size: 0.98rem;
  padding: 13px 24px; border-radius: 999px; border: 1.5px solid transparent;
  transition: transform .15s ease, background .2s ease, color .2s ease, border-color .2s ease, box-shadow .2s ease;
  text-decoration: none; line-height: 1; white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary { background: var(--nw-blue); color: #fff; box-shadow: 0 8px 20px rgba(2, 117, 196, 0.28); }
.btn--primary:hover { background: var(--nw-blue-dark); }

.btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,0.55); }
.btn--ghost:hover { background: rgba(255,255,255,0.1); border-color: #fff; }

.btn--solid { background: var(--nw-navy); color: #fff; }
.btn--solid:hover { background: #01183a; }

.btn--whatsapp { background: #25D366; color: #053b1e; }
.btn--whatsapp:hover { background: #20bd5a; }

.btn--block { width: 100%; }

/* ----------------------------- Header / Nav ----------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: saturate(180%) blur(10px);
  transition: box-shadow .25s ease, background .25s ease;
}
.site-header.is-scrolled { box-shadow: var(--shadow-sm); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }

.brand { display: inline-flex; align-items: center; flex-shrink: 0; height: 100%; text-decoration: none; }
.brand:hover { text-decoration: none; }
.brand-logo {
  height: 100%;
  width: auto;
  max-height: 62px;
  display: block;
  object-fit: contain;
}

.primary-nav { display: flex; align-items: center; }
.nav-menu { display: flex; align-items: center; gap: 4px; }
.nav-menu a {
  display: inline-block; padding: 9px 14px; border-radius: 8px;
  color: var(--ink-soft); font-weight: 500; font-size: 0.95rem; text-decoration: none;
  transition: color .18s ease, background .18s ease;
}
.nav-menu a:hover { color: var(--nw-navy); background: var(--bg-tint); text-decoration: none; }
.nav-menu a.is-active { color: var(--nw-navy); font-weight: 600; }
.nav-cta { margin-left: 10px; }
.nav-cta a {
  background: var(--nw-navy); color: #fff; padding: 10px 18px; border-radius: 999px;
  font-weight: 600; font-family: var(--font-display);
}
.nav-cta a:hover { background: #01183a; color: #fff; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; padding: 8px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--nw-navy); border-radius: 2px; transition: transform .25s ease, opacity .2s ease; }
.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); }

/* ----------------------------- Hero ----------------------------- */
.hero {
  position: relative; color: #fff; background-color: var(--nw-navy);
  background-size: cover; background-position: center;
  padding: clamp(64px, 11vw, 130px) 0 clamp(40px, 7vw, 80px);
  overflow: hidden;
}
.hero__overlay { position: absolute; inset: 0; background: rgba(2, 34, 79, 0.82); z-index: 0; }
.hero__grid {
  position: absolute; inset: 0; opacity: 0.45; pointer-events: none; z-index: 1;
  background-image:
    linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(ellipse 80% 70% at 70% 30%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 70% 30%, #000 30%, transparent 75%);
}
.hero__inner { position: relative; max-width: 880px; z-index: 2; }
.hero__stats { position: relative; z-index: 2; }
.hero__title {
  color: #fff; font-size: clamp(2.4rem, 6vw, 4.4rem); font-weight: 700;
  letter-spacing: -0.02em; margin: 6px 0 22px;
}
.hero__lede { color: rgba(255,255,255,0.82); font-size: clamp(1.02rem, 1.6vw, 1.22rem); max-width: 62ch; margin-bottom: 30px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

.stats-strip {
  position: relative; margin-top: clamp(40px, 6vw, 64px);
  display: grid; grid-template-columns: repeat(3, 1fr);
  background: #fff; color: var(--ink); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); overflow: hidden;
}
.stats-strip li { padding: clamp(20px, 3vw, 30px) clamp(18px, 3vw, 34px); border-right: 1px solid var(--line); }
.stats-strip li:last-child { border-right: 0; }
.stats-strip__value { display: block; font-family: var(--font-display); font-weight: 700; color: var(--nw-navy); font-size: clamp(1.3rem, 2.6vw, 1.9rem); }
.stats-strip__label { display: block; margin-top: 6px; font-size: 0.85rem; color: var(--ink-soft); letter-spacing: 0.02em; }

/* ----------------------------- Page hero (inner pages) ----------------------------- */
.page-hero {
  background-color: var(--nw-navy); background-size: cover; background-position: center;
  color: #fff;
  padding: clamp(54px, 9vw, 104px) 0 clamp(40px, 6vw, 72px);
  position: relative; overflow: hidden;
}
.page-hero__overlay { position: absolute; inset: 0; background: rgba(2, 34, 79, 0.84); z-index: 0; }
.page-hero .container { position: relative; z-index: 2; }
.page-hero::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 6px; background: var(--nw-blue-bright); z-index: 3;
}
.page-hero__title { color: #fff; font-size: clamp(1.9rem, 4.6vw, 3.2rem); max-width: 18ch; margin-bottom: 16px; }
.page-hero__lede { color: rgba(255,255,255,0.82); max-width: 64ch; font-size: clamp(1rem, 1.5vw, 1.15rem); }

/* ----------------------------- Cards / grids ----------------------------- */
.three-col { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.who-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.two-col { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: clamp(24px, 3vw, 34px); box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--line-strong); }
.card__icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 52px; height: 52px; border-radius: 12px; background: var(--bg-tint-2); color: var(--nw-blue);
  margin-bottom: 18px;
}
.card h3 { font-size: 1.2rem; margin-bottom: 8px; }
.card p { margin: 0; color: var(--ink-soft); }

.panel {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: clamp(26px, 3.5vw, 40px); box-shadow: var(--shadow-sm);
}
.panel__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 12px; }
.panel__head h3 { font-size: 1.4rem; margin: 0; }
.panel__count { font-family: var(--font-mono); font-size: 0.78rem; color: var(--nw-blue); background: var(--bg-tint-2); padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.panel__summary { color: var(--ink-soft); margin-bottom: 20px; }
.panel__list { display: grid; gap: 10px; margin-bottom: 22px; }
.panel__list li { position: relative; padding-left: 22px; color: var(--ink); font-size: 0.97rem; }
.panel__list li::before { content: ""; position: absolute; left: 0; top: 0.6em; width: 8px; height: 8px; border-radius: 2px; background: var(--nw-blue); }
.panel__list li.muted { color: var(--ink-soft); }
.panel__list li.muted::before { background: var(--line-strong); }

.panel--accent { background: var(--nw-navy); border-color: var(--nw-navy); }
.panel--accent .eyebrow { color: var(--nw-blue-bright); }
.panel--accent .panel__big { color: #fff; }
.panel__big { font-family: var(--font-display); font-size: clamp(1.25rem, 2.4vw, 1.7rem); line-height: 1.3; font-weight: 600; margin: 0; }

.two-col--vision { align-items: stretch; }

/* ----------------------------- Steps (home) ----------------------------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.step {
  position: relative; padding: clamp(22px, 3vw, 30px); background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm);
}
.step__num { font-family: var(--font-mono); font-size: 0.85rem; color: var(--nw-blue); letter-spacing: 0.1em; }
.step__title { font-size: 1.3rem; margin: 10px 0 8px; }
.step__desc { color: var(--ink-soft); margin: 0; font-size: 0.95rem; }

/* ----------------------------- Tabs ----------------------------- */
.tabs { display: inline-flex; gap: 6px; background: var(--bg-tint); padding: 6px; border-radius: 999px; margin-bottom: 36px; border: 1px solid var(--line); flex-wrap: wrap; }
.tabs__btn {
  border: 0; background: transparent; color: var(--ink-soft);
  padding: 11px 22px; border-radius: 999px; font-family: var(--font-display); font-weight: 600; font-size: 0.96rem;
  transition: background .2s ease, color .2s ease, box-shadow .2s ease;
}

/* Tabs: both categories on one line on mobile */
@media (max-width: 860px) {
  .tabs { display: flex; flex-wrap: nowrap; width: 100%; gap: 4px; padding: 5px; margin-inline: -16px; width: calc(100% + 32px); }
  .tabs__btn { flex: 1 1 0; min-width: 0; padding: 9px 8px; font-size: 0.76rem; text-align: center; white-space: normal; line-height: 1.25; }
}
.tabs__btn:hover { color: var(--nw-navy); }
.tabs__btn.is-active { background: var(--nw-navy); color: #fff; box-shadow: var(--shadow-sm); }

.tab-panel { display: none; animation: fade .35s ease; }
.tab-panel.is-active { display: block; }
.tab-panel__intro { margin-bottom: 32px; max-width: 70ch; }
.tab-panel__intro .section-title { font-size: clamp(1.4rem, 2.8vw, 2rem); }
.tab-panel__intro .section-lede { margin: 0; }

.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.service-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.service-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--nw-blue-bright); }
.service-card__index { font-family: var(--font-mono); font-size: 0.78rem; color: var(--nw-blue); letter-spacing: 0.08em; }
.service-card__name { font-size: 1.08rem; margin: 8px 0 8px; }
.service-card__desc { margin: 0; color: var(--ink-soft); font-size: 0.93rem; line-height: 1.6; }

/* ----------------------------- Approach ----------------------------- */
.approach-list { display: grid; gap: 0; counter-reset: phase; }
.phase {
  display: grid; grid-template-columns: 220px 1fr; gap: clamp(24px, 5vw, 64px);
  padding: clamp(32px, 5vw, 56px) 0; border-top: 1px solid var(--line);
}
.phase:last-child { border-bottom: 1px solid var(--line); }
.phase__head { position: sticky; top: calc(var(--header-h) + 16px); align-self: start; }
.phase__num { font-family: var(--font-mono); font-size: 2.6rem; color: var(--nw-blue); font-weight: 500; display: block; line-height: 1; }
.phase__title { font-size: clamp(1.5rem, 3vw, 2.1rem); margin: 12px 0 0; }
.phase__lead { font-size: 1.08rem; color: var(--ink); max-width: 62ch; margin-bottom: 22px; }
.phase__points { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px 24px; }
.phase__points li { position: relative; padding-left: 26px; color: var(--ink-soft); font-size: 0.95rem; }
.phase__points li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 14px; height: 2px; background: var(--nw-blue); }

.principles .three-col { margin-top: 36px; }

/* ----------------------------- About facts ----------------------------- */
.company-facts { display: grid; grid-template-columns: 1fr 1.4fr; gap: clamp(30px, 6vw, 80px); align-items: start; }
.facts { display: grid; gap: 0; border-top: 1px solid var(--line); }
.facts__row { display: grid; grid-template-columns: 160px 1fr; gap: 20px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.facts__row dt { font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--nw-slate); align-self: center; }
.facts__row dd { margin: 0; color: var(--ink); font-weight: 500; }

/* ----------------------------- Contact ----------------------------- */
.contact-layout { display: grid; grid-template-columns: 1.5fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: start; }

.contact-form { display: grid; gap: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 7px; }
.field label { font-size: 0.85rem; font-weight: 600; color: var(--nw-navy); letter-spacing: 0.01em; }
.req { color: var(--nw-blue); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; color: var(--ink);
  padding: 12px 14px; border: 1.5px solid var(--line-strong); border-radius: var(--radius);
  background: #fff; transition: border-color .18s ease, box-shadow .18s ease;
}
.field input::placeholder, .field textarea::placeholder { color: #9aa4b2; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--nw-blue); box-shadow: 0 0 0 3px rgba(2, 117, 196, 0.16);
}
.field textarea { resize: vertical; min-height: 130px; }
.form-note { font-size: 0.8rem; color: var(--ink-soft); margin: 0; }

.contact-details { display: grid; gap: 20px; }
.detail-card { background: var(--bg-tint); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px; }
.detail-card h3 { font-size: 1.15rem; margin-bottom: 16px; }
.detail-list { display: grid; gap: 14px; }
.detail-list li { display: grid; gap: 2px; }
.detail-list__label { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--nw-slate); }
.detail-list a { color: var(--nw-blue); font-weight: 500; }
.detail-card--accent { background: var(--nw-navy); border-color: var(--nw-navy); color: #fff; }
.detail-card--accent h3 { color: #fff; }
.detail-card--accent p { color: rgba(255,255,255,0.8); margin-bottom: 18px; }
.detail-trust { font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.04em; color: var(--nw-slate); padding-top: 4px; }

.alert {
  display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-radius: var(--radius);
  margin-bottom: 22px; font-weight: 500;
}
.alert--success { background: #E8F6EE; color: #0f6b3f; border: 1px solid #BFE6CF; }
.alert--success svg { color: #18a058; flex: 0 0 auto; }

/* ----------------------------- CTA band ----------------------------- */
.cta-band { position: relative; background-color: var(--nw-blue); background-size: cover; background-position: center; color: #fff; padding: clamp(44px, 7vw, 76px) 0; overflow: hidden; }
.cta-band__overlay { position: absolute; inset: 0; background: rgba(2, 117, 196, 0.88); z-index: 0; }
.cta-band .container { position: relative; z-index: 1; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; }
.cta-title { color: #fff; font-size: clamp(1.5rem, 3vw, 2.1rem); margin: 0 0 8px; max-width: 22ch; }
.cta-text { color: rgba(255,255,255,0.9); margin: 0; max-width: 50ch; }
.cta-band .btn--solid { background: #fff; color: var(--nw-navy); }
.cta-band .btn--solid:hover { background: var(--bg-tint-2); }

/* ----------------------------- Footer ----------------------------- */
.site-footer { background: var(--nw-navy); color: rgba(255,255,255,0.78); padding-top: clamp(48px, 7vw, 76px); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.4fr; gap: 36px; padding-bottom: 44px; }
.footer-brand { display: flex; flex-direction: column; gap: 12px; }
.footer-brand .brand-logo-footer { max-height: 64px; }
.footer-tag { font-size: 0.9rem; color: var(--nw-blue-bright); margin: 0; }
.footer-col h4 { color: #fff; font-size: 0.85rem; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 16px; font-family: var(--font-mono); font-weight: 500; }
.footer-col ul { display: grid; gap: 10px; }
.footer-col a { color: rgba(255,255,255,0.78); font-size: 0.94rem; }
.footer-col a:hover { color: #fff; }
.footer-contact address { font-style: normal; display: grid; gap: 12px; }
.footer-contact p { margin: 0; }
.footer-contact a { color: #fff; }

.footer-trust { border-top: 1px solid rgba(255,255,255,0.14); padding: 20px 0; }
.footer-trust-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.trust-line { font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.04em; color: var(--nw-light-blue); margin: 0; }
.copy { font-size: 0.82rem; color: rgba(255,255,255,0.6); margin: 0; }

/* ----------------------------- WhatsApp FAB ----------------------------- */
.whatsapp-fab {
  position: fixed; right: clamp(16px, 3vw, 28px); bottom: clamp(16px, 3vw, 28px);
  width: 58px; height: 58px; border-radius: 50%; background: #25D366;
  color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 26px rgba(18, 140, 80, 0.45); z-index: 90;
  text-decoration: none; transition: transform .2s ease, box-shadow .2s ease;
}
.whatsapp-fab .wa-icon { width: 30px; height: 30px; flex: 0 0 auto; }
.whatsapp-fab:hover { transform: scale(1.07); text-decoration: none; box-shadow: 0 14px 32px rgba(18, 140, 80, 0.55); }
.whatsapp-fab__pulse {
  position: absolute; inset: 0; border-radius: 50%; border: 2px solid #25D366;
  animation: wa-pulse 2.4s ease-out infinite; pointer-events: none;
}
@keyframes wa-pulse {
  0% { transform: scale(1); opacity: 0.7; }
  100% { transform: scale(1.7); opacity: 0; }
}

/* ----------------------------- Media components ----------------------------- */
/* Image-topped cards (Who We Are) */
.card--media { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.card__media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--bg-tint-2); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .55s ease; }
.card--media:hover .card__media img { transform: scale(1.06); }
.card--media .card__body { padding: clamp(20px, 2.6vw, 28px); }
.card--media .card__body .card__icon { margin-bottom: 14px; }
.card--media h3 { font-size: 1.15rem; margin-bottom: 8px; }

/* Image-topped step cards (How We Work) */
.step--media { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.step__media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--bg-tint-2); }
.step__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .55s ease; }
.step--media:hover .step__media img { transform: scale(1.06); }
.step__body { padding: clamp(20px, 2.6vw, 26px); }

/* Image-topped panels (Services preview) */
.panel--media { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.panel__media { aspect-ratio: 16 / 9; overflow: hidden; background: var(--bg-tint-2); }
.panel__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .55s ease; }
.panel--media:hover .panel__media img { transform: scale(1.05); }
.panel--media .panel__body { padding: clamp(24px, 3vw, 32px); display: flex; flex-direction: column; flex: 1; }
.panel--media .panel__body .link-arrow { margin-top: auto; }

/* Category banner (Services tabs) */
.cat-banner { position: relative; border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 32px; aspect-ratio: 21 / 8; min-height: 180px; }
.cat-banner img { width: 100%; height: 100%; object-fit: cover; }
.cat-banner__overlay { position: absolute; inset: 0; background: rgba(2, 34, 79, 0.62); }
.cat-banner__text { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; gap: 8px; padding: clamp(20px, 4vw, 36px); }
.cat-banner__text h2 { color: #fff; font-size: clamp(1.3rem, 2.6vw, 1.9rem); margin: 0; }
.cat-banner__text p { color: rgba(255,255,255,0.88); margin: 0; max-width: 64ch; font-size: 0.98rem; }

/* Phase media (Approach) */
.phase__media { width: 100%; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; margin-bottom: 22px; background: var(--bg-tint-2); }
.phase__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .55s ease; }
.phase:hover .phase__media img { transform: scale(1.04); }

/* Feature banner (full-bleed image + quote) */
.feature-banner { position: relative; background-color: var(--nw-navy); background-size: cover; background-position: center; color: #fff; padding: clamp(48px, 8vw, 96px) 0; overflow: hidden; }
.feature-banner__overlay { position: absolute; inset: 0; background: rgba(2, 34, 79, 0.74); z-index: 0; }
.feature-banner__inner { position: relative; z-index: 1; max-width: 760px; }
.feature-banner__quote { font-family: var(--font-display); font-size: clamp(1.3rem, 3vw, 2rem); line-height: 1.35; color: #fff; margin: 0; font-weight: 500; letter-spacing: -0.01em; }
.feature-banner__quote .accent { color: var(--nw-blue-bright); }
.feature-banner__cite { display: block; margin-top: 18px; font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--nw-light-blue); }

/* Vision panel image (About) */
.panel--media.panel--accent .panel__media { aspect-ratio: 16 / 9; }
.panel--media.panel--accent .panel__body { background: var(--nw-navy); }
.panel--media.panel--accent .panel__body .eyebrow { color: var(--nw-blue-bright); }
.panel--media.panel--accent .panel__body .panel__big { color: #fff; }

/* ----------------------------- Reveal animation ----------------------------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ----------------------------- Responsive ----------------------------- */
@media (max-width: 980px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .company-facts { grid-template-columns: 1fr; gap: 24px; }
  .phase { grid-template-columns: 1fr; gap: 14px; }
  .phase__head { position: static; }
  .phase__num { font-size: 2rem; }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .nav-menu {
    position: fixed; top: var(--header-h); right: 0; height: calc(100vh - var(--header-h));
    width: min(320px, 84vw); flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; padding: 16px var(--gutter) 32px; box-shadow: var(--shadow-lg);
    border-left: 1px solid var(--line); transform: translateX(110%); transition: transform .3s ease;
    overflow-y: auto;
  }
  .nav-menu.is-open { transform: translateX(0); }
  .nav-menu a { padding: 14px 12px; border-radius: 10px; font-size: 1rem; border-bottom: 1px solid var(--line); }
  .nav-menu a.is-active { background: var(--bg-tint); }
  .nav-cta { margin: 14px 0 0; }
  .nav-cta a { display: block; text-align: center; }
  .nav-menu a:hover { background: var(--bg-tint); }

  .three-col { grid-template-columns: 1fr; }
  .who-grid { grid-template-columns: repeat(2, 1fr); gap: 6px; margin-inline: -16px; width: calc(100% + 32px); }
  .who-grid .card { padding: 14px; border-radius: 8px; }
  .who-grid .card h3 { font-size: 0.95rem; margin-bottom: 5px; }
  .who-grid .card p { font-size: 0.82rem; line-height: 1.5; }
  .who-grid .card__media { aspect-ratio: 4 / 3; }
  .who-grid .card--media .card__body { padding: 10px; }
  .who-grid .card--media .card__body .card__icon { width: 32px; height: 32px; margin-bottom: 8px; border-radius: 8px; }
  .who-grid .card--media .card__body .card__icon svg { width: 18px; height: 18px; }
  .who-grid .card--media h3 { font-size: 0.92rem; margin-bottom: 4px; }
  .who-grid .card--media .card__body p { font-size: 0.8rem; line-height: 1.45; margin: 0; }
  .two-col { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .stats-strip { grid-template-columns: 1fr; }
  .stats-strip li { border-right: 0; border-bottom: 1px solid var(--line); }
  .stats-strip li:last-child { border-bottom: 0; }
  .contact-layout { grid-template-columns: 1fr; }
  .phase__points { grid-template-columns: 1fr; }
  .cat-banner { aspect-ratio: 16 / 9; }
}

@media (max-width: 560px) {
  .form-row { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); gap: 6px; margin-inline: -16px; width: calc(100% + 32px); }
  .step--media { border-radius: 8px; }
  .step--media .step__media { aspect-ratio: 4 / 3; }
  .step--media .step__body { padding: 10px; }
  .step--media .step__num { font-size: 0.72rem; }
  .step--media .step__title { font-size: 0.92rem; margin: 4px 0 4px; }
  .step--media .step__desc { font-size: 0.8rem; line-height: 1.45; }
  .service-grid { grid-template-columns: repeat(2, 1fr); gap: 6px; margin-inline: -16px; width: calc(100% + 32px); }
  .service-card { padding: 12px; border-radius: 8px; }
  .service-card__index { font-size: 0.68rem; }
  .service-card__name { font-size: 0.88rem; margin: 4px 0 5px; line-height: 1.25; }
  .service-card__desc { font-size: 0.78rem; line-height: 1.45; }
  .who-grid { gap: 6px; margin-inline: -16px; width: calc(100% + 32px); }
  .who-grid .card { padding: 12px; border-radius: 8px; }
  .who-grid .card h3 { font-size: 0.92rem; margin-bottom: 4px; }
  .who-grid .card p { font-size: 0.8rem; line-height: 1.45; margin: 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .cta-inner { flex-direction: column; align-items: flex-start; }
  .facts__row { grid-template-columns: 1fr; gap: 4px; }
  .facts__row dt { font-size: 0.72rem; }
  .hero__actions .btn, .cta-inner .btn { width: 100%; }
  .brand-logo { max-height: 52px; }
  .footer-brand .brand-logo-footer { max-height: 48px; }
}

/* Hero buttons: keep both on one line on all mobile sizes */
@media (max-width: 560px) {
  .hero__actions { flex-wrap: nowrap; gap: 10px; }
  .hero__actions .btn {
    width: auto;
    flex: 1 1 0;
    min-width: 0;
    padding: 12px 14px;
    font-size: 0.82rem;
    line-height: 1.2;
    white-space: normal;
    text-align: center;
  }
}
