/* ---------- Design tokens ---------- */
:root {
  --content-max: clamp(960px, 92vw, 1200px);

  /* colors */
  --color-bg: #fff;
  --color-brand: #145887;
  --color-brand-600: #0e446e;
  --color-accent: #f47920;
  --color-text: #123a57;
  --color-muted: #909090;
  --color-border: #ccc;
  --color-hover: #f5f8fb;
  --brand-open-border: rgba(20, 88, 135, 0.35);

  /* sizing */
  /* --container-max: 75rem; */
  --container-max: 100%;
  --radius-sm: 0.375rem; /* 6px */
  --radius-md: 0.625rem; /* 10px */
  --radius-lg: 0.75rem; /* 12px */

  /* spacing scale (4px = .25rem) */
  --space-1: 0.25rem; /* 4px  */
  --space-2: 0.5rem; /* 8px  */
  --space-3: 0.75rem; /* 12px */
  --space-4: 1rem; /* 16px */
  --space-5: 1.25rem; /* 20px */
  --space-6: 1.5rem; /* 24px */
  --space-7: 1.75rem; /* 28px */
  --space-8: 2rem; /* 32px */
  --space-9: 2.75rem; /* 44px */

  /* type */
  --font-body: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Arial,
    sans-serif;
  --font-logo: "Libre Baskerville", serif;
  --font-display: "Roboto Slab", serif;
  --fs-100: 0.875rem; /* 14px */
  --fs-200: 1rem; /* 16px */
  --fs-300: 1.125rem; /* 18px */
  --fs-700: 2.25rem; /* 36px */

  /* effects */
  --shadow-xs: 0 0.125rem 0.5rem rgba(0, 0, 0, 0.06);
  --shadow-sm: 0 0.375rem 1.5rem rgba(16, 42, 67, 0.12);
  --shadow-xl: 0 0.5rem 2rem rgba(16, 42, 67, 0.3);
  --transition-fast: 180ms ease;

  /* Hero */
  /* Tweak freely */
  --hero-blue: #134460; /* brand blue (you can experiment here) */
  --hero-emphasis: #fff800; /* highlight for TRUSTED */
  --hero-text: #ffffff; /* text on blue */
  --hero-min-h: clamp(520px, 86vh, 760px);
  --hero-pad: clamp(20px, 5vw, 64px);
  --hero-radius: 10px;
  --hero-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
  --hero-img: url("/images/hero.webp"); /* ← replace with your WebP path */
  /* Trapezoid shape (top wider than bottom) */
  --hero-top-edge: 100%;
  --hero-bottom-edge: 70%;

  /* About Section */
  --section-pad: clamp(2rem, 6vw, 4.5rem);
  --section-gap: clamp(1.25rem, 4vw, 3rem);
}

/* Respect users’ type preferences; keep 1rem = browser default (usually 16px) */
html {
  box-sizing: border-box;
}
*,
*::before,
*::after {
  box-sizing: inherit;
}

html,
body {
  margin: 0;
  padding: 0;
}
body {
  font-family: var(--font-body);
  font-size: var(--fs-200);
  line-height: 1.5;
  color: var(--color-text);
  background: var(--color-bg);
}

/* White outline button variant for dark backgrounds */
.btn--outline-light {
  background: transparent;
  border: 2px solid #ffffff;
  color: #ffffff;
  font-weight: 600;
  padding: 0.6em 1.5em;
  border-radius: var(--radius-md);
  transition: all 0.25s ease;
}

.btn--outline-light:hover,
.btn--outline-light:focus-visible {
  background: #ffffff;
  color: var(--color-brand);
}

main section:not(.hero) .container {
  max-width: var(--content-max);
  margin-inline: auto;
}

/* Container */
.container {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--space-4);
}

/* Header */
.site-header {
  background: var(--color-bg);
  padding-block: 0.4rem;
  box-shadow: 0 3px 9px rgba(0, 0, 0, 0.2);
  padding-inline: 2rem;
  position: relative;
  z-index: 100;
  --header-h: 72px;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding-inline: 0;
}

/* Brand */
.brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
}
.brand-logo {
  height: 3.6rem; /* 45px -> 2.8125rem */
  width: auto;
  display: block;
  border: 2px solid var(--color-muted); /* 2px */
  border-radius: 10%;
  padding: var(--space-1);
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.2);
}
.brand-text {
  font-family: var(--font-logo);
  -webkit-text-stroke-width: 1px; /* px OK for hairline */
  font-weight: 700;
  font-size: var(--fs-700); /* 36px -> 2.25rem */
  line-height: 1;
  letter-spacing: 1px; /* 2px */
  color: var(--color-brand);
  white-space: nowrap;
}
.brand-prs {
  color: var(--color-brand);
}
.brand-ca {
  color: var(--color-accent);
  margin-left: -0.5625rem;
} /* -9px */

/* Nav (desktop) */
.main-nav > ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: var(--space-9); /* 44px */
}
.main-nav a {
  text-decoration: none;
  text-transform: uppercase;
  font-family: var(--font-body);
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--color-brand);
  padding-block: var(--space-2);
  display: inline-block;
  transition: color var(--transition-fast);
}
.main-nav a:hover,
.main-nav a:focus-visible {
  color: var(--color-brand-600);
}

/* Dropdown (desktop hover) */
.has-dropdown {
  position: relative;
}
.dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 16.25rem; /* 260px */
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  padding-block: 0.5rem; /* 8px */
  opacity: 0;
  visibility: hidden;
  transform: translateY(0.375rem); /* 6px */
  pointer-events: none;
  transition: opacity var(--transition-fast), transform var(--transition-fast),
    visibility 0s linear var(--transition-fast);
  z-index: 10;
}
.main-nav .dropdown {
  display: block;
  padding-block: 0.5rem;
}
.main-nav .dropdown li {
  display: block;
}
.main-nav .dropdown a {
  display: block;
  padding: 0.75rem 1rem; /* 12px 16px */
  white-space: nowrap;
  text-transform: none;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--color-text);
  border-radius: var(--radius-sm);
}
.main-nav .dropdown a:hover,
.main-nav .dropdown a:focus-visible {
  background: var(--color-hover);
}

.has-dropdown:hover > .dropdown,
.has-dropdown:focus-within > .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
  transition: opacity var(--transition-fast), transform var(--transition-fast),
    visibility 0s;
}

@media (max-width: 910px) {
  /* shrink brand a touch to avoid wrap */
  /* show the hamburger; keep the checkbox invisible */
  #nav-toggle {
    position: absolute;
    opacity: 0;
    pointer-events: none;
  }

  .brand-logo {
    height: 3rem;
  }
  .brand-text {
    font-size: 1.9rem;
    letter-spacing: 0.5px;
  }

  /* show hamburger, hide desktop menu layout */
  .hamburger {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    width: 40px;
    height: 32px;
    cursor: pointer;
    margin-left: auto; /* pushes it to the right */
    -webkit-tap-highlight-color: transparent;
  }
  .hamburger span {
    display: block;
    height: 2px;
    width: 24px;
    background: var(--color-brand);
    border-radius: 2px;
    transition: transform 160ms ease, opacity 160ms ease;
  }

  /* place the menu as a full-width dropdown below header */
  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-bg);
    border-top: 1px solid var(--color-border);
    box-shadow: var(--shadow-sm);
    display: none; /* hidden until toggled */
    z-index: 1000;
  }

  /* stack items vertically */
  .main-nav > ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding-block: 0.25rem;
  }
  .main-nav a {
    padding: 0.9rem 1.1rem;
    letter-spacing: 0.04em;
    display: block;
  }

  /* make dropdowns part of the flow (always expanded) */
  .has-dropdown {
    position: static;
  }
  .has-dropdown > a span {
    display: none;
  } /* hide the › on mobile */
  .main-nav .dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    pointer-events: auto;
    border: 0;
    box-shadow: none;
    padding: 0;
  }
  .main-nav .dropdown a {
    padding: 0.65rem 1.75rem; /* slight indent for submenu */
    font-weight: 600;
  }

  /* checkbox → open the menu */
  .nav-toggle {
    position: absolute;
    opacity: 0;
    pointer-events: none;
  }
  .nav-toggle:checked ~ .main-nav {
    display: block;
  }

  /* animate hamburger into an “X” when open */
  .nav-toggle:checked + .hamburger span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }
  .nav-toggle:checked + .hamburger span:nth-child(2) {
    opacity: 0;
  }
  .nav-toggle:checked + .hamburger span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  /* keep the header content from wrapping oddly */
  .header-inner {
    gap: var(--space-3);
  }
}

/* Always hide the checkbox; keep it focusable for a11y */
#nav-toggle {
  position: absolute !important;
  opacity: 0 !important;
  width: 1px;
  height: 1px;
  pointer-events: none;
}

/* Desktop ≥ 911px: no hamburger, normal flex nav */
@media (min-width: 911px) {
  .hamburger {
    display: none !important;
  }
}

/* Accessibility: visible focus rings for keyboard users */
a:focus-visible,
button:focus-visible {
  outline: 0.125rem solid var(--color-accent);
  outline-offset: 0.125rem;
  border-radius: var(--radius-sm);
}

/* Motion reduction */
/* @media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
} */

/* =========================
   HERO – fresh, lightweight
   ========================= */
.hero {
  --hero-img: url("/images/hero.webp");
  --hero-blue: #145887; /* brand blue (adjust if you prefer #0d344f) */
  --hero-text: #fff;
  --hero-pad: clamp(20px, 3.5vw, 56px);

  position: relative;
  isolation: isolate;
  min-height: calc(100vh - var(--header-h, 90px));
  overflow: hidden;
}

/* Background layer (desktop/tablet) */
.hero .hero-media {
  position: absolute;
  inset: 0;
  background: var(--hero-blue) no-repeat center / cover;
  background-image: var(--hero-img);
  background-position: 66% 50%; /* center-right bias to keep faces visible */
  z-index: 0;
  pointer-events: none;
}

/* Text panel */
.hero .hero-panel {
  position: relative;
  z-index: 1;
  color: var(--hero-text);
  max-width: 880px; /* cap so it doesn’t sprawl on ultrawide */
  padding: var(--hero-pad);
}

/* Trapezoid shape (desktop/laptop only) */
.hero .hero-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--hero-blue);
  /* left block ~43% of viewport; taper towards right */
  width: min(43vw, 880px);
  clip-path: polygon(0 0, 100% 0, 72% 100%, 0 100%);
  z-index: -1;
  border-radius: 0; /* clean, sharp shape */
  /* height: 100vh; */
}

/* Keep content aligned within the shape */
.hero .hero-content {
  max-width: min(40vw, 760px);
}

/* Typography (reuse your variables; tweak clamps for balance) */
.hero .hero-title {
  margin: 0 0 10px 0;
  font-family: var(--font-display, inherit);
  font-weight: 700;
  line-height: 1.15;
  font-size: clamp(24px, 2.6vw, 72px);
}

.hero .hero-kicker {
  display: block;
  margin-top: 6px;
  font-family: var(--font-display, inherit);
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  font-weight: 400;
  opacity: 0.95;
}

.hero .hero-tagline {
  margin: 18px 0 10px 0;
  font-family: var(--font-display, inherit);
  line-height: 1.4;
  font-size: clamp(22px, 2vw, 54px);
  margin-block: 6vh;
  font-weight: 700;
}

.hero .hero-emph {
  color: #ffd54a; /* brand accent; tweak if you have a token */
  font-weight: 900;
  font-size: 140%;
}

.hero .hero-body {
  margin: 14px 0 18px 0;
  font-size: clamp(15px, 0.95vw, 18px);
  line-height: 1.6;
  max-width: 46ch;
  opacity: 0.95;
  font-weight: 200;
}

.hero .hero-cta {
  display: inline-block;
  padding: 0.75rem 1.1rem;
  font-weight: 800;
  color: #0f172a;
  background: #fff;
  border: 2px solid #fff;
  border-radius: 10px;
  text-decoration: none;
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.2);
}
.hero .hero-cta:hover,
.hero .hero-cta:focus-visible {
  filter: brightness(0.97);
  outline: none;
}

/* Mobile image block (hidden on desktop/tablet) */
.hero .hero-photo {
  display: none;
  background: no-repeat center / cover;
  background-image: var(--hero-img);
}

/* =============== Breakpoints =============== */

/* Laptops (1366–1024): narrow the shape and soften angle */
@media (max-width: 1366px) {
  .hero .hero-panel::before {
    width: min(52vw, 820px);
    /* width: 48vw; */
    clip-path: polygon(0 0, 92% 0, 70% 100%, 0 100%);
  }
  .hero .hero-content {
    max-width: min(36vw, 720px);
  }
}

/* Tablet (≤1024): flatten the trapezoid into a rectangular panel */
@media (max-width: 1024px) {
  .hero {
    min-height: 40vh; /* let content define height; keeps things comfy */
  }
  .hero .hero-panel::before {
    width: auto;
    /* width: min(100vw, 1200px); */
    inset: 0;
    clip-path: none; /* rectangle */
    border-radius: 0;
    clip-path: polygon(0 0, 55% 0, 42% 100%, 0 100%);
  }
  .hero .hero-content {
    max-width: 34ch;
  }
}

/* Mobile (≤768): Solid panel on top (55–60% vh), photo below */
@media (max-width: 768px) {
  .hero {
    display: grid;
    grid-template-rows: 58vh auto; /* panel ~58% height, image below */
  }

  /* Hide desktop bg; we split into panel + photo blocks */
  .hero .hero-media {
    display: none;
  }

  /* Blue rectangular card fills the first row */
  .hero .hero-panel {
    background: var(--hero-blue);
    padding: clamp(18px, 5vw, 28px);
  }
  .hero .hero-panel::before {
    content: none;
  }

  /* Tighter type for mobile */
  .hero .hero-title {
    font-size: clamp(20px, 6vw, 2.4rem);
    font-size: 2.4rem;
  }
  .hero .hero-tagline {
    font-size: clamp(20px, 6vw, 22px);
  }
  .hero .hero-body {
    font-size: clamp(14px, 3.8vw, 16px);
    max-width: none;
  }

  /* The photo block (second row) */
  .hero .hero-photo {
    display: block;
    min-height: 42vh; /* remaining space */
    background-position: 60% 50%;
  }
}

/* Very small phones (≤400px): tiny trims */
@media (max-width: 400px) {
  .hero {
    grid-template-rows: 56vh auto;
  }
  .hero .hero-title {
    font-size: 2.4rem;
  }
  .hero .hero-tagline {
    margin-block: 2rem;
  }
  .hero .hero-cta {
    width: 100%;
    text-align: center;
  }
}

.hero .hero-panel,
.hero .hero-cta {
  transition: transform 180ms ease, opacity 180ms ease, filter 180ms ease;
}
.hero .hero-panel {
  opacity: 0;
  transform: translateY(8px);
}
.hero:where(.hero) .hero-panel {
  opacity: 1;
  transform: none;
}

.about {
  padding-block: var(--section-pad);
  background: var(--color-bg);

  padding-bottom: calc(var(--section-pad) * 0.85);
}

/* 2-row grid:
   Row 1:  Title spanning both columns
   Row 2:  [logo | content]
*/

.about-inner {
  display: grid;
  grid-template-columns: min(280px, 28vw) 1fr;
  grid-template-areas:
    "title title"
    "media content";
  align-items: start;
  column-gap: var(--section-gap);
  row-gap: clamp(0.75rem, 2vw, 1.25rem);
}

/* Title spans across; aligns to content start */
.about-title {
  grid-area: title;
  margin: 0;
  font-family: var(--font-display);
  color: var(--color-brand);
  font-weight: 800;
  letter-spacing: 0.02em;
  font-size: clamp(1.5rem, 1.2vw + 1.1rem, 2.25rem);
  line-height: 1.2;
}

/* Left column: logo */
.about-media {
  grid-area: media;
}
.about-logo {
  width: min(240px, 26vw);
  height: auto;
  display: block;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  box-shadow: var(--shadow-xs);
}

/* Copy */
.section-title {
  font-family: var(--font-display);
  color: var(--color-brand);
  font-weight: 800;
  letter-spacing: 0.02em;
  margin: 0 0 2rem 0;
  font-size: clamp(1.5rem, 1.2vw + 1.1rem, 2.25rem);
}

/* Right column: text */
.about-content {
  grid-area: content;
}
.about-content p {
  margin: 0 0 0.75rem 0;
  max-width: 65ch;
  opacity: 0.95;
}

/* Button (reusable) */
/* Reusable button */
.btn {
  display: inline-block;
  text-decoration: none;
  font-weight: 700;
  border-radius: var(--radius-md);
  padding: 0.65rem 1rem;
  transition: filter var(--transition-fast);
}
.btn--primary {
  color: #fff;
  background: var(--color-brand);
  border: 2px solid var(--color-brand);
}
.btn--primary:hover,
.btn--primary:focus-visible {
  filter: brightness(0.96);
  outline: none;
}

/* Responsive stack */
@media (max-width: 900px) {
  .about-inner {
    grid-template-columns: 1fr;
    grid-template-columns: min(280px, 28vw) 1fr;
    grid-template-areas:
      "title title"
      "media content";
  }
  .about-logo {
    width: min(200px, 40vw);
  }
}

@media (max-width: 720px) {
  .about-inner {
    grid-template-columns: 1fr;
    grid-template-columns: min(280px, 28vw) 1fr;
    grid-template-areas:
      "title title"
      "media content";
  }
  .about-logo {
    width: min(180px, 45vw);
  }
}

@media (max-width: 600px) {
  .about-inner {
    grid-template-columns: 1fr;
    /* grid-template-columns: min(280px, 28vw) 1fr; */
    grid-template-areas:
      "title"
      "media"
      "content";
  }
  .about-logo {
    width: min(180px, 45vw);
  }
}

/* ===== Services (Brief Overview) ===== */
.services {
  position: relative;
  isolation: isolate;
  background: var(--color-brand); /* brand blue per spec */
  color: #fff;
  padding-block: var(--section-pad);
  overflow: hidden;
}

/* gears background layer */
.services .services-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: url("/images/services-v2.webp") center / contain no-repeat;
  opacity: 0.3;
  pointer-events: none;
  /* mix-blend-mode: screen; */
}

/* keep content centered like your other sections */
.services .container {
  max-width: var(--content-max);
  margin-inline: auto;
}

/* title in white */
.section-title--light {
  color: #fff;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.15);
  margin-bottom: clamp(1rem, 2.5vw, 2rem);
}

.services-inner {
  position: relative;
  z-index: 1;
}

/* 2x2 grid like the screenshot */
.services-grid {
  --card-gap: clamp(1rem, 2.6vw, 2rem);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--card-gap);
  gap: 3rem;
  list-style: none;
  margin: 0 0 clamp(1.25rem, 3vw, 2rem) 0;
  padding: 0;
}

/* cards: glassy white on blue with soft shadow */
.service-card {
  background: rgba(255, 255, 255, 0.96);
  color: #0f172a;
  /* border: 1px solid color-mix(in srgb, #000 10%, #fff 90%); */
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 24px rgba(16, 42, 67, 0.18);
  padding: clamp(1rem, 3vw, 1.5rem);
  display: grid;
  grid-template-rows: auto auto 1fr; /* title | icon | copy */
  align-items: start;
  row-gap: clamp(0.5rem, 1.6vw, 0.875rem);
}

/* typography & icon layout to match the mock */
.service-title {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: 0.02em;
  margin: 0;
  text-align: center;
  font-size: clamp(1rem, 0.7vw + 0.95rem, 1.1rem);
  color: #144887;
}

.service-icon {
  justify-self: center;
  width: clamp(56px, 7vw, 72px);
  height: auto;
  display: block;
  filter: drop-shadow(0 2px 0 rgba(0, 0, 0, 0.1));
  /* ✅ brand color tint (for black icons) */
  filter: invert(24%) sepia(78%) saturate(628%) hue-rotate(178deg)
    brightness(92%) contrast(90%);
}

.service-copy {
  margin: 0;
  font-size: var(--fs-100);
  line-height: 1.45;
  opacity: 0.95;
}

/* CTA */
.services-cta {
  text-align: center;
  margin-top: clamp(1rem, 3vw, 1.75rem);
  margin-top: 3rem;
}

/* Responsive: stack to single column on small screens */
@media (max-width: 820px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== Industries (Figma-style) ===== */
.industries {
  padding-block: var(--section-pad);
  background: var(--color-bg);

  /* border-top: 1px dotted var(--color-border); */
  margin-top: var(--space-6);
  padding-top: calc(var(--section-pad) * 0.85);
}

.industry-grid {
  /* --card-gap: clamp(4rem, 2.8vw, 1.75rem); */
  --card-gap: 3rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--card-gap);
  margin: 0;
  padding: 0;
  list-style: none;
}

.industry-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xl);
  padding: clamp(1rem, 3vw, 1.5rem);
  display: grid;
  grid-template-rows: auto auto 1fr; /* title | icon | copy */
  align-items: start;
  row-gap: clamp(2rem, 1.8vw, 0.875rem);
  min-height: 260px; /* ensures consistent card height like Figma */
}

/* Filled variant (blue panel) */
.industry-card.is--filled {
  background: var(--color-brand);
  color: #fff;
  border-color: transparent;
}

/* Title centered */
.industry-title {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.02em;
  margin: 0;
  text-align: center;
  font-size: clamp(1rem, 0.7vw + 0.95rem, 1.25rem);
  color: inherit; /* white on filled, brand/text on default */
}
.industry-card:not(.is--filled) .industry-title {
  color: var(--color-brand);
}

/* Icon centered */
.industry-icon {
  justify-self: center;
  width: clamp(56px, 7vw, 72px);
  height: auto;
  display: block;
}
/* If your icons are black-only SVGs and you want them white on filled cards: */
.industry-card.is--filled .industry-icon {
  filter: brightness(0) invert(1);
}

/* Copy left-aligned, sits at bottom naturally because of 1fr row */
.industry-copy {
  margin: 0;
  font-size: var(--fs-100);
  line-height: 1.45;
  opacity: 0.95;
  align-self: end; /* hugs bottom edge for that Figma look */
}

/* CTA */
.industry-cta-wrap {
  text-align: center;
  margin-top: clamp(1.25rem, 3vw, 2rem);
  margin-top: 3rem;
}

/* Responsive grid: 3 → 2 → 1 */
@media (max-width: 1024px) {
  .industry-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 640px) {
  .industry-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== Why PRSCA refined ===== */
.why {
  padding-block: var(--section-pad);
  background: var(--color-brand);
  border-top: 1px solid var(--color-border);
  padding-top: calc(var(--section-pad) * 0.85);
}

.why .section-title {
  color: #fff;
}

/* Grid layout */
.why-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1rem, 3vw, 2rem);
  list-style: none;
  margin: 0;
  padding: 0;
}

@media (max-width: 720px) {
  .why-grid {
    grid-template-columns: 1fr;
  }
}

/* Card */
.why-card {
  display: flex;
  align-items: center; /* ✅ vertical centering */
  gap: clamp(1rem, 2.5vw, 1.5rem);
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xs);
  padding: clamp(1rem, 2.6vw, 1.35rem);
  transition: transform var(--transition-fast),
    box-shadow var(--transition-fast);
}

.why-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(16, 42, 67, 0.15);
}

/* Icon */
.why-icon {
  width: clamp(44px, 6vw, 56px);
  height: auto;
  display: block;
  flex-shrink: 0;
  /* ✅ brand color tint (for black icons) */
  filter: invert(24%) sepia(78%) saturate(628%) hue-rotate(178deg)
    brightness(92%) contrast(90%);
}

/* Text block */
.why-text {
  display: grid;
  gap: 0.4rem;
}

.why-head {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--color-brand);
  font-size: clamp(1rem, 0.8vw + 0.95rem, 1.25rem);
}

.why-card p {
  margin: 0;
  font-size: var(--fs-100);
  line-height: 1.5;
  opacity: 0.95;
}

/* ===== Reach (Simple Bar) ===== */
.reach {
  padding-block: var(--section-pad);
  background: var(--color-bg);
  border-top: 1px solid var(--color-border);
  padding-top: calc(var(--section-pad) * 0.85);
}

.reach .section-title {
  margin: 0 0 0.25rem 0;
}

.reach-lead {
  margin: 0 0 var(--space-5) 0;
  opacity: 0.95;
}

/* Bar layout: fields on the left, big CTA on the right */
.reach-form--bar {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  column-gap: clamp(1rem, 3vw, 2rem);
}

/* Three inline fields */
.reach-fields {
  display: grid;
  grid-template-columns: minmax(200px, 1fr) minmax(200px, 1fr) minmax(
      280px,
      2fr
    );
  gap: clamp(0.75rem, 2vw, 1rem);
}

/* Inputs */
.reach-form input[type="text"],
.reach-form input[type="email"] {
  height: 48px;
  border: 1px solid rgba(0, 0, 0, 0.18);
  border-radius: var(--radius-md);
  padding: 0 0.85rem;
  font: inherit;
  background: #fff;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.06);
  transition: border-color var(--transition-fast),
    box-shadow var(--transition-fast);
}
.reach-form input::placeholder {
  color: #9aa4af;
}
.reach-form input:focus-visible {
  outline: none;
  border-color: var(--color-brand, #145887);
  box-shadow: 0 0 0 3px rgba(20, 88, 135, 0.18);
}

/* CTA (right side) — big, uppercase, with a soft drop */
.reach-btn {
  justify-self: end;
  height: 52px;
  padding: 0 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.15);
  border-radius: var(--radius-md);
  white-space: nowrap;
}

/* A11y helper */
.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* ===== Responsive ===== */
@media (max-width: 1100px) {
  .reach-form--bar {
    grid-template-columns: 1fr; /* stack CTA under fields */
    row-gap: var(--space-4);
  }
  .reach-btn {
    justify-self: start; /* align with fields */
  }
}

@media (max-width: 720px) {
  .reach-fields {
    grid-template-columns: 1fr 1fr; /* 2-up */
  }
  .reach-fields input:nth-child(3) {
    grid-column: 1 / -1; /* email spans full row */
  }
}

@media (max-width: 480px) {
  .reach-fields {
    grid-template-columns: 1fr;
  } /* fully stacked */
  .reach-btn {
    width: 100%;
  } /* full-width CTA */
}

/* ===== Footer ===== */
.site-footer {
  background: #0d344f;
  color: #d7e6f2;
  padding-block: clamp(2rem, 4vw, 3rem);
}
.footer-columns {
  max-width: var(--content-max);
  margin-inline: auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.5rem, 4vw, 3rem);
}
.footer-title {
  margin: 0 0 1rem 0;
  font-family: var(--font-display);
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 800;
  font-size: clamp(1rem, 0.6vw + 0.9rem, 1.125rem);
}
.footer-nav {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-nav li {
  border-bottom: 1px solid rgba(255, 255, 255, 0.22);
}
.footer-nav li:last-child {
  border-bottom: 0;
}
.footer-nav a {
  display: block;
  text-decoration: none;
  color: #d7e6f2;
  padding: 0.6rem 0;
  transition: color var(--transition-fast);
}
.footer-nav a::before {
  content: "> ";
  color: #9ec2d8;
  margin-right: 0.15rem;
}
.footer-nav a:hover,
.footer-nav a:focus-visible {
  color: #ffffff;
}

.footer-address,
.footer-contact {
  margin: 0 0 0.75rem 0;
  line-height: 1.6;
}
.footer-contact a {
  color: #d7e6f2;
  text-decoration: none;
}
.footer-contact a:hover,
.footer-contact a:focus-visible {
  color: #ffffff;
}
.footer-contact .indent {
  padding-left: 3.5rem;
  display: inline-block;
}

/* Copyright bar + LinkedIn */
.copyright {
  background: #071d2b;
  color: #c9d7e3;
  font-size: 0.9rem;
}
.copyright-inner {
  max-width: var(--content-max);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: center; /* centered on mobile */
  gap: 1rem;
  padding-block: 0.9rem;
}
.footer-social .social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #c9d7e3;
  text-decoration: none;
}
.footer-social .social-link:hover,
.footer-social .social-link:focus-visible {
  color: #ffffff;
}
.footer-social .social-text {
  display: none;
} /* icon-only by default */

/* Desktop: space text and LinkedIn to edges */
@media (min-width: 720px) {
  .copyright-inner {
    justify-content: space-between;
  }
  .footer-social .social-text {
    display: inline;
  } /* show "LinkedIn" on desktop */
}

/* Stack columns on smaller screens */
@media (max-width: 900px) {
  .footer-columns {
    grid-template-columns: 1fr;
  }
}

/* Mobile toggles are still hidden (wire them up when you add responsive nav) */
/* .nav-toggle,
.hamburger {
  display: none;
} */

/* Industries-We-Server */

/* ===== Page Hero (generic) ===== */
.page-hero {
  position: relative;
  color: #fff;
  overflow: hidden;
  min-height: clamp(380px, 48vh, 560px);
}
.page-hero .container {
  position: relative;
  z-index: 1;
}

/* ===== Industries hero (image + ribbons) ===== */
/* ===== Page hero base ===== */
.page-hero {
  position: relative;
  color: #fff;
  overflow: hidden;
  min-height: clamp(420px, 52vh, 640px);
}
.page-hero .container {
  position: relative;
  z-index: 1;
}

/* Background image */
.industries-hero__media {
  position: absolute;
  inset: 0;
  background: center / cover no-repeat;
  background-image: var(
    --industries-hero-img,
    url("/images/hero-industries.webp")
  );
  z-index: 0;
}

/* Frame: push panel to lower third */
.industries-hero__frame {
  display: grid;
  align-content: end;
  min-height: inherit;
  padding-block: clamp(1rem, 6vh, 2.5rem);
}

/* OUTER ORANGE PANEL (wraps title + inner bar) */
.industries-hero__panel {
  width: min(96%, var(--content-max));
  background: rgba(244, 121, 32, 0.7); /* --color-accent w/ alpha */
  /* border-radius: var(--radius-md); */
  /* box-shadow: var(--shadow-xl); */
  padding: clamp(0.8rem, 1.8vw, 1.25rem) clamp(1rem, 2.6vw, 1.75rem);
}

/* Title inside orange panel */
.industries-hero__title {
  margin: 0 0 clamp(0.6rem, 1.6vw, 1rem) 0;
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.1;
  font-size: clamp(2rem, 4.6vw, 3.5rem);
}

/* INNER DARK BAR (lead only) */
.industries-hero__lead {
  margin: 0;
  /* max-width: 78ch; */
  line-height: 1.55;
  font-size: clamp(1rem, 1vw, 1.25rem);
  background: rgba(20, 88, 135, 0.7); /* deep blue-grey w/ alpha */
  /* border-radius: var(--radius-md); */
  box-shadow: var(--shadow-xl);
  padding: clamp(0.7rem, 1.4vw, 1rem) clamp(0.8rem, 2vw, 1.25rem);
  font-weight: 300;
}

/* Small screens: keep both ribbons readable */
@media (max-width: 640px) {
  .industries-hero__panel {
    width: 98%;
  }
  .industries-hero__lead {
    max-width: 100%;
  }
}

/* ===== Page: Industries (cards) ===== */
.page-industries .ip-section {
  padding-block: var(--section-pad);
  background: var(--color-bg);
}

.page-industries .ip-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 2.6vw, 2rem);
  list-style: none;
  margin: 0;
  padding: 0;
}

.page-industries .ip-card {
  position: relative;
  perspective: 1200px;
  cursor: pointer;
  outline: none;
  min-height: 260px;
  border-radius: var(--radius-md);
}

.page-industries .ip-card__inner {
  position: relative;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 560ms ease;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xl);
}

.page-industries .ip-card__face {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  border-radius: inherit;
  display: grid;
  place-items: center;
  text-align: center;
  padding: clamp(1rem, 2.4vw, 1.5rem);
}

/* Front */
.page-industries .ip-card__face--front {
  background: var(--color-brand);
  color: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
}
.page-industries .ip-card__icon {
  width: clamp(56px, 7vw, 72px);
  height: auto;
  filter: brightness(0) invert(1);
  margin-bottom: clamp(0.6rem, 1.2vw, 0.9rem);
}
.page-industries .ip-card__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.02em;
  font-size: clamp(1rem, 0.7vw + 0.95rem, 1.25rem);
}

/* Back */
.page-industries .ip-card__face--back {
  background: #fff;
  color: var(--color-text);
  border: 1px solid var(--color-border);
  transform: rotateY(180deg);
  align-content: start;
  justify-items: start;
  text-align: left;
  padding: clamp(1rem, 2.2vw, 1.4rem);
}
.page-industries .ip-card__backtitle {
  margin: 0 0 0.5rem 0;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--color-brand);
  font-size: clamp(1rem, 0.8vw + 0.95rem, 1.25rem);
}
.page-industries .ip-card__text {
  margin: 0;
  font-size: var(--fs-100);
  line-height: 1.5;
}

/* Touch cue (mobile/tablet only) */
.page-industries .ip-touch {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 20px;
  opacity: 0.4;
}
@media (hover: hover) and (pointer: fine) {
  .page-industries .ip-touch {
    display: none;
  }
}

/* Interactions */
.page-industries .ip-card:hover .ip-card__inner {
  transform: rotateY(180deg);
}
.page-industries .ip-card.is-flipped .ip-card__inner {
  transform: rotateY(180deg);
}
.page-industries .ip-card:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
  border-radius: var(--radius-md);
}

/* .page-industries .ip-card__inner {
  transition: none;
}
.page-industries .ip-card__face--back {
  transform: none;
}
.page-industries .ip-card:hover .ip-card__inner,
.page-industries .ip-card.is-flipped .ip-card__inner {
  transform: none;
}
.page-industries .ip-card__face--front {
  display: none;
} */

/* Responsive columns (optional) */
@media (max-width: 1024px) {
  .page-industries .ip-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 640px) {
  .page-industries .ip-grid {
    grid-template-columns: 1fr;
  }
}

.page-industries .ip-touch {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 22px;
  height: 22px;
  opacity: 0.9;
  filter: brightness(0) invert(1);
}
@media (hover: hover) and (pointer: fine) {
  .page-industries .ip-touch {
    display: none;
  }
}

/* Respect reduced motion (no parallax tricks here, but future-proof) */

/* .industries-hero__media {
  filter: none;
} */

/* =========================================================
   ABOUT PAGE (scoped)
   ========================================================= */
.page-about {
  --about-brand: var(--color-brand, #145887);
  --about-accent: var(--color-accent, #f07b19);
  --about-border: var(--color-border, #d8e0e6);
  --about-text: var(--color-text, #1f2a33);
  --about-bg: var(--color-bg, #ffffff);
  --about-radius: 6px;
  --about-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
  --about-pad: clamp(1.25rem, 3vw, 2rem);
  color: var(--about-text);
  background: var(--about-bg);
}

/* 1) HERO STRIP */
.about-hero {
  background: var(--about-brand);
  color: #fff;
  padding-block: clamp(2.25rem, 6vw, 3.5rem);
}
.about-hero__title {
  margin: 0;
  font-family: var(--font-display, "Roboto Slab", ui-serif, Georgia, serif);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  font-size: clamp(1.75rem, 3vw + 1rem, 2.6rem);
  text-align: center;
}

/* 2) LEDE SECTION (image left, copy right) */
.about-lede {
  padding-block: var(--about-pad);
}
.about-lede__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1rem, 4vw, 2rem);
  align-items: start;
}
.about-lede__media {
  margin: 0;
}
.about-lede__img {
  display: block;
  width: min(100%, 520px);
  height: auto;
  /* border: 6px solid var(--about-brand);
  border-radius: 4px; */
  box-shadow: var(--about-shadow);
}
.about-lede__copy p {
  margin: 0 0 0.9rem 0;
  line-height: 1.6;
  opacity: 0.95;
}
@media (min-width: 980px) {
  .about-lede__grid {
    grid-template-columns: 520px 1fr; /* image | text */
  }
}

/* ===== About: wrapped lede ===== */
.page-about {
  --about-brand: var(--color-brand, #145887);
}

.about-lede--wrap {
  padding-block: clamp(1.25rem, 3vw, 2rem);
}

/* Make the container expand around floated media (clearfix) */
.about-lede--wrap .container::after {
  content: "";
  display: block;
  clear: both;
}

/* Floated media so text wraps on the right like the mockup */
.about-wrap__media {
  float: left;
  width: clamp(260px, 40vw, 560px); /* responsive image width */
  margin: 0 clamp(1.25rem, 3vw, 2rem) clamp(0.75rem, 2vw, 1.25rem) 0;
}

.about-wrap__img {
  display: block;
  width: 100%;
  height: auto;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.1), 0 2px 6px rgba(0, 0, 0, 0.18);
  background: #fff;
}

/* Nicer wrap to match the rounded border (supported in modern browsers) */
@supports (shape-outside: inset(0 round 6px)) {
  .about-wrap__media {
    shape-outside: inset(0 round 6px);
    shape-margin: 12px;
  }
}

/* Paragraph rhythm / readability */
.about-lede--wrap p {
  line-height: 1.65;
  margin: 0 0 1rem 0;
  opacity: 0.97;
}

/* Stack on small screens */
@media (max-width: 820px) {
  .about-wrap__media {
    float: none;
    width: min(100%, 560px);
    margin: 0 auto clamp(1rem, 3vw, 1.5rem);
  }
}

/* 3) SECTION HEADINGS */
.about-heading {
  font-family: var(--font-display, "Roboto Slab", ui-serif, Georgia, serif);
  color: var(--about-brand);
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin: 0 0 0.75rem 0;
  font-size: clamp(1.25rem, 1.2vw + 1rem, 1.75rem);
}
.about-heading--section {
  margin-top: clamp(1.25rem, 3vw, 1.75rem);
}

/* 4) SINGLE-PARAGRAPH CARDS (Mission / Vision) */
.about-block {
  padding-block: calc(var(--about-pad) * 0.9);
}
.about-card {
  background: #fff;
  border: 1px solid var(--about-border);
  border-radius: var(--about-radius);
  box-shadow: var(--about-shadow);
  padding: clamp(2rem, 2vw, 1.1rem);
  position: relative;
}

.about-obj__card p {
  margin: 0;
  line-height: 1.6;
  color: var(--color-text, #1f2a33);
}

.about-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 20px;
  border-radius: var(--about-radius) 0 0 var(--about-radius);
  background: var(--about-accent);
}

/* 5) OBJECTIVES LIST (icon + soft card) */
.about-objectives {
  padding-block: var(--about-pad, clamp(1.25rem, 3vw, 2rem));
  margin-bottom: 4rem;
}
.about-objlist {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: clamp(1rem, 3vw, 1.25rem);
}
.about-obj {
  display: block;
  /* display: grid; */
  /* grid-template-columns: 64px 1fr; */
  /* gap: clamp(0.75rem, 2vw, 1rem);
  align-items: start; */
}
.about-obj__icon {
  width: 45px;
  height: 45px;
  justify-self: center;
  display: block;
  /* tint to brand blue for monochrome SVGs */
  filter: invert(24%) sepia(68%) saturate(600%) hue-rotate(184deg)
    brightness(90%);
}
.about-obj__icon img {
  width: 45px;
  height: 45px;
  display: block;
  /* tint to brand (works well with monochrome SVGs) */
  filter: invert(24%) sepia(68%) saturate(600%) hue-rotate(184deg)
    brightness(90%);
}
.about-obj__card {
  /* background: #fff;
  border: 1px solid var(--about-border);
  border-radius: var(--about-radius);
  box-shadow: var(--about-shadow);
  padding: clamp(1.4rem, 2.2vw, 1.1rem);
  position: relative;
  line-height: 1.6; */
  position: relative;
  background: #fff;
  border: 1px solid var(--color-border, #d8e0e6);
  border-radius: 8px;
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.08);
  padding: 2rem 1rem 2rem 3rem; /* inner pad */
  display: grid;
  grid-template-columns: 56px 1fr; /* icon | text */
  align-items: center;
  column-gap: 20px;
}
.about-obj__card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 15px;
  background: var(--about-accent);
  border-radius: var(--about-radius) 0 0 var(--about-radius);
}

.about-obj__bar {
  position: absolute;
  inset: 0 auto 0 0;
  width: 12px;
  background: var(--color-accent, #f07b19);
  border-radius: 8px 0 0 8px;
}

/* A11y helper for hidden heading */
.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* responsive: tighten a bit */
@media (max-width: 600px) {
  .about-obj__card {
    grid-template-columns: 48px 1fr;
    padding: 14px 16px 14px 16px;
  }
  .about-obj__icon {
    width: 32px;
    height: 32px;
  }
}

/* ===== Team Page ===== */
.page-team .container {
  max-width: var(--content-max);
}

/* HERO (re-uses page-hero pattern) */
.team-hero__media {
  position: absolute;
  inset: 0;
  background: center/cover no-repeat;
  background-image: var(--team-hero-img, url("/images/team-hero.webp"));
  z-index: 0;
}
.team-hero__frame {
  display: grid;
  align-content: end;
  min-height: inherit;
  padding-block: clamp(1rem, 6vh, 2.5rem);
}
.team-hero__panel {
  width: min(96%, var(--content-max));
  background: rgba(20, 88, 135, 0.8); /* brand ribbon */
  padding: clamp(0.8rem, 1.8vw, 1.25rem) clamp(1rem, 2.6vw, 1.75rem);
  box-shadow: var(--shadow-xl);
}
.team-hero__title {
  margin: 0 0 0.5rem 0;
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.1;
  font-size: clamp(2rem, 4.6vw, 3.5rem);
}
.team-hero__lead {
  margin: 0;
  font-weight: 300;
  line-height: 1.55;
  font-size: clamp(1rem, 1vw, 1.2rem);
  background: rgba(0, 0, 0, 0.18);
  padding: 0.6rem 0.8rem;
  border-radius: var(--radius-sm);
}

/* SECTION */
.team {
  padding-block: var(--section-pad);
  background: var(--color-bg);
}
.team-subtitle {
  margin: 0 0 1.25rem 0;
  font-family: var(--font-display);
  color: var(--color-brand);
  font-weight: 800;
  letter-spacing: 0.02em;
  font-size: clamp(1.125rem, 0.9vw + 1rem, 1.5rem);
}

/* One person = 2-column row (card | long bio) */
.team-item {
  display: grid;
  grid-template-columns: minmax(260px, 320px) 1fr;
  gap: clamp(1rem, 3vw, 2rem);
  padding-block: clamp(1.25rem, 3vw, 2rem);
  border-top: 1px solid var(--color-border);
}
.team-item:first-of-type {
  border-top: 0;
}

/* Left: compact profile card */
.profile-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xs);
  padding: clamp(1rem, 3vw, 1.25rem);
  align-self: start;
}
.profile-photo-wrap {
  display: grid;
  place-items: center;
  margin-bottom: 0.8rem;
}
.profile-photo {
  width: clamp(120px, 16vw, 160px);
  aspect-ratio: 1/1;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: 0 0 0 6px #e7f0f7, 0 4px 14px rgba(16, 42, 67, 0.18); /* soft halo */
}
.profile-meta {
  text-align: center;
}
.profile-name {
  margin: 0.5rem 0 0.15rem 0;
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--color-brand);
  font-size: clamp(1.05rem, 0.6vw + 1rem, 1.25rem);
}
.profile-cred {
  margin: 0 0 0.25rem 0;
  font-size: var(--fs-100);
  opacity: 0.9;
}
.profile-role {
  display: inline-block;
  margin: 0.15rem 0 0.15rem 0;
  padding: 0.25rem 0.5rem;
  border: 1px solid var(--color-brand);
  background-color: var(--color-brand);
  color: white;
  font-weight: 700;
  letter-spacing: 0.02em;
  border-radius: 999px;
  font-size: 0.8rem;
}
.profile-org {
  margin: 0;
  font-size: 0.9rem;
  opacity: 0.9;
}

/* Right: long bio */
.team-bio p {
  margin: 0 0 0.75rem 0;
  max-width: 70ch;
}
.team-bio .backtop {
  margin-top: 0.75rem;
}
.team-bio .backtop a {
  font-weight: 700;
  text-decoration: none;
  color: var(--color-brand);
}
.team-bio .backtop a:hover {
  color: var(--color-brand-600);
}

/* Responsive stack */
@media (max-width: 900px) {
  .team-item {
    grid-template-columns: 1fr;
    padding-block: 1.25rem;
  }
  .profile-card {
    order: 0;
  }
  .team-bio {
    order: 1;
  }
}

/* Small helpers (optional) */
.page-team .page-hero {
  min-height: clamp(420px, 52vh, 640px);
}

/* ===== Audit & Assurance hero ===== */
.audit-hero {
  --audit-hero-img: url("/images/hero-audit.webp"); /* 2400 x 1000 */
  --audit-hero-blue: #145887; /* brand blue */
  --audit-hero-accent: rgba(244, 121, 32, 0.72); /* orange band */
  --audit-hero-dark: rgba(13, 52, 79, 0.85); /* deep blue bar */
  position: relative;
  color: #fff;
  overflow: hidden;
  min-height: clamp(420px, 52vh, 640px);
}

/* background photo */
.audit-hero__media {
  position: absolute;
  inset: 0;
  background: center / cover no-repeat;
  background-image: var(--audit-hero-img);
  /* keep right-side graphics visible; tweak if needed */
  background-position: 62% 50%;
  z-index: 0;
}

/* push content towards lower third like Industries */
.audit-hero__frame {
  display: grid;
  align-content: end;
  min-height: inherit;
  padding-block: clamp(1rem, 6vh, 2.5rem);
  position: relative;
  z-index: 1;
}

/* outer orange band */
.audit-hero__panel {
  width: min(96%, var(--content-max));
  background: rgba(20, 88, 135, 0.6);
  padding: clamp(0.9rem, 2vw, 1.25rem) clamp(1rem, 2.6vw, 1.75rem);
  position: absolute;
  bottom: 1rem;
}

/* title */
.audit-hero__title {
  margin: 0 0 clamp(0.6rem, 1.6vw, 1rem) 0;
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.08;
  font-size: clamp(2rem, 4.6vw, 3.5rem);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  text-shadow: black 4px 4px 8px;
}

/* inner dark band = lede */
.audit-hero__lead {
  margin: 0;
  line-height: 1.55;
  font-size: clamp(1rem, 1.05vw, 1.25rem);
  background: var(--audit-hero-dark);
  box-shadow: var(--shadow-xl);
  padding: clamp(0.7rem, 1.2vw, 1rem);
  max-width: 78ch;
}

/* optional CTA */
.audit-hero__cta {
  margin-top: clamp(0.75rem, 1.4vw, 1rem);
}

/* tablet tweaks */
@media (max-width: 1024px) {
  .audit-hero__lead {
    max-width: 64ch;
  }
}

/* mobile: keep same structure; the image remains behind for consistency */
@media (max-width: 720px) {
  .audit-hero {
    min-height: clamp(420px, 62vh, 640px);
  }
  .audit-hero__panel {
    padding: clamp(0.8rem, 3.5vw, 1.25rem);
  }
  .audit-hero__lead {
    font-size: clamp(0.95rem, 3.8vw, 1.1rem);
  }
}

/* ===== Audit page: 2-col layout with sticky TOC ===== */
.audit-layout {
  --toc-w: 250px;
  --toc-top: calc(var(--header-h, 72px) + 16px);
  max-width: var(--content-max, 1120px);
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(220px, var(--toc-w)) 1fr;
  gap: clamp(4rem, 6vw, 8rem);
  align-items: start;
  padding-block: var(--section-pad);
}

/* Sidebar container */
.toc {
  position: relative;
}

/* Sticky behavior on desktop */
@media (min-width: 900px) {
  .toc {
    position: sticky;
    top: var(--toc-top);
  }
}

/* “On this page” header (click to toggle on mobile) */
.toc-toggle {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  border: 0;
  padding: 0;
  font: inherit;
  color: var(--color-text);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.1rem, 1vw + 1rem, 1.4rem);
  margin: 0 0 0.75rem 0;
  cursor: pointer;
}
.toc-toggle:focus-visible {
  outline: 0.125rem solid var(--color-accent);
  outline-offset: 2px;
}

/* Links stack with left accent rail */
.toc-list {
  display: grid;
  gap: 0.5rem;
  padding-left: 0.75rem;
  border-left: 4px solid #e6e6e6;
  font-family: var(--font-display);
}

/* Each link shows an accent bar when active (blue/orange as per spec) */
.toc-link {
  position: relative;
  display: block;
  text-decoration: none;
  color: inherit;
  font-weight: 700;
  line-height: 1.5;
  padding-block: 0.54rem;
}
.toc-link::before {
  content: "";
  position: absolute;
  left: -1rem; /* aligns on the rail */
  top: 0.2em;
  bottom: 0.2em;
  width: 3px;
  background: transparent;
  border-radius: 2px;
  transition: background var(--transition-fast);
}
.toc-link:hover,
.toc-link:focus-visible {
  color: var(--color-brand);
}
.toc-link.is-active {
  color: var(--color-brand);
}
.toc-link.is-active::before {
  background: var(--color-accent);
}

/* Content column width and rhythm */
.audit-content h2 {
  font-family: var(--font-display);
  color: var(--color-brand);
  font-weight: 800;
  margin: 0 0 0.5rem 0;
  scroll-margin-top: calc(var(--header-h, 72px) + 16px); /* anchor offset */
}
.audit-content > * + h2 {
  margin-top: 5rem;
}

/* .audit-content p {
  max-width: 70ch;
} */

/* Mobile: TOC collapses under a button, sits above content */
@media (max-width: 899px) {
  .audit-layout {
    grid-template-columns: 1fr;
    padding-inline: clamp(0.25rem, 2vw, 1rem);
  }
  .audit-content {
    padding-inline: clamp(0.25rem, 2vw, 1rem);
  }

  .toc-list {
    display: none;
    margin-bottom: 1rem;
  }
  .toc[aria-expanded="true"] .toc-list {
    display: grid;
  }
  .toc .chev {
    transition: transform 180ms ease;
  }
  .toc[aria-expanded="true"] .chev {
    transform: rotate(180deg);
  }
}

/* ===== Audit > Accounting Related Advisory ===== */
.audit-section--accounting .lede {
  margin: 0 0 var(--space-4, 1.25rem);
  font-size: clamp(0.98rem, 0.25vw + 0.95rem, 1.05rem);
  line-height: 1.6;
  color: var(--color-text-muted, #444);
}

.audit-section--accounting .audit-media {
  /* 3:1 image that spans the content column */
  margin: clamp(1rem, 1.2vw, 1.25rem) 0 clamp(1.25rem, 1.6vw, 1.75rem);
  border-radius: var(--radius-md, 10px);
  overflow: clip; /* keeps the blue frame corners clean */
  box-shadow: var(--shadow-xs, 0 1px 3px rgba(0, 0, 0, 0.08));
}

/* Blue frame exactly like the mock */
.audit-section--accounting .audit-media img {
  width: 100%;
  aspect-ratio: 3 / 1;
  object-fit: cover;
  display: block;
  border-radius: var(--radius-md, 10px);
}

/* Content rhythm */
.audit-section--accounting .audit-copy {
  display: grid;
  gap: clamp(0.75rem, 0.8vw, 1rem);
  /* max-width: 72ch; */
}

.audit-section--accounting .eyebrow {
  margin: 0;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--color-text, #1a1a1a);
}

/* Elegant list */
.audit-section--accounting .feature-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: clamp(0.5rem, 0.7vw, 0.8rem);
  line-height: 1.7;
}
.audit-section--accounting .feature-list li {
  position: relative;
  padding-left: 1.5rem;
  color: var(--color-text, #222);
}

.feature-list {
  margin-top: 2rem !important;
}

.audit-section--accounting .feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--color-brand, #145887);
  box-shadow: 0 0 0 2px #fff; /* white ring for elegance */
}

/* Optional hover accent (subtle interaction) */
.audit-section--accounting .feature-list li:hover::before {
  background: var(--color-accent, #f7a31a);
  transition: background 0.25s ease;
}

/* Slight indented spacing for better visual flow on narrow screens */
@media (max-width: 600px) {
  .audit-section--accounting .feature-list li {
    padding-left: 1.25rem;
  }
  .audit-section--accounting .feature-list li::before {
    width: 0.5rem;
    height: 0.5rem;
  }
}

/* Outcome callout */
.audit-section--accounting .audit-outcome {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: max-content 1fr;
  gap: 0.5rem 0.75rem;
  align-items: start;
  margin-top: 2rem;

  background: var(--color-bg-subtle, #f7f9fb);
  border: 1px solid var(--color-border, #e4e7eb);
  border-left: 4px solid var(--color-accent, #f7a31a);
  border-radius: var(--radius-sm, 8px);
  padding: clamp(0.8rem, 1vw, 1rem) clamp(0.9rem, 1.2vw, 1.25rem);
}

.audit-section--accounting .outcome-label {
  color: var(--color-brand, #145887);
  font-weight: 700;
}

/* Mobile niceties */
@media (max-width: 599px) {
  .audit-section--accounting .audit-media img {
    border-width: 2px;
  }
  .audit-section--accounting .audit-outcome {
    grid-auto-flow: row;
    grid-auto-columns: unset;
  }
}
/* ===== Internal Audit ===== */
.audit-section--internal .audit-media--banner img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 1; /* matches your 3:1 asset */
  object-fit: cover;
  border-radius: var(--radius-md, 12px);
  border: 1px solid var(--color-border, #e6e8eb);
  box-shadow: var(--shadow-xs, 0 1px 2px rgba(0, 0, 0, 0.06));
  filter: saturate(0.75) contrast(0.98); /* subtle, mockup-like calm */
}

.audit-section--internal .audit-media--banner {
  margin-inline: auto;
}

/* Elegant bullets (scoped to Internal Audit) */
.audit-section--internal .feature-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--space-2, 0.625rem);
  line-height: 1.7;
}
.audit-section--internal .feature-list li {
  position: relative;
  padding-left: 1.5rem;
}
.audit-section--internal .feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.66em;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--color-brand, #145887);
  box-shadow: 0 0 0 2px #fff;
}

/* Rhythm/spacing guards for tidy paragraphs */
/* .audit-section--internal .audit-copy > :is(p, ul, ol, h3) {
  margin-block: var(--space-4, 2rem);
} */

.audit-copy h3 {
  margin-top: 3rem;
  font-family: var(--font-display);
  margin-top: 3rem !important;
}

.audit-section--internal .audit-copy > *:first-child {
  margin-top: 0;
}
.audit-section--internal .audit-copy > *:last-child {
  margin-bottom: 0;
}

@media (max-width: 600px) {
  .audit-section--internal .feature-list li {
    padding-left: 1.25rem;
  }
  .audit-section--internal .feature-list li::before {
    width: 0.5rem;
    height: 0.5rem;
  }
}

/* ===== Breadcrumb (muted line above) ===== */
.audit-breadcrumb {
  margin-bottom: var(--space-3, 1rem);
  font-size: 0.9375rem;
  color: var(--color-muted, #667085);
  display: block;
  padding-top: var(--space-3, 1rem);
  border-top: 1px solid var(--color-border, #e6e8eb);
  margin-top: var(--space-8);
}
.audit-breadcrumb a {
  color: inherit;
  text-decoration: none;
}
.audit-breadcrumb a:hover {
  text-decoration: underline;
}
.audit-breadcrumb .crumb-sep {
  margin: 0 0.375rem;
}

/* ===== Transaction Audit Accordion ===== */
.accordion {
  display: grid;
  gap: var(--space-3, 1rem);
  margin-top: var(--space-3, 1rem);
}

.acc-item {
  border: 1px solid var(--color-border, #e6e8eb);
  border-radius: var(--radius-md, 12px);
  background: #fff;
  box-shadow: var(--shadow-xs, 0 1px 2px rgba(0, 0, 0, 0.06));
  overflow: clip;
}

.acc-head {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 0.5rem;
  padding: var(--space-4, 1rem) var(--space-5, 1.25rem);
  cursor: pointer;
  color: var(--color-text, #1f2937);
  font-family: var(--font-display);
  font-weight: 600;
}
.acc-title {
  font-weight: 600;
}
.acc-icon {
  display: inline-grid;
  place-items: center;
  transition: transform 0.2s ease;
}

/* rotate chevron on open */
.acc-item[open] .acc-icon {
  transform: rotate(180deg);
}

/* active border tint */
.acc-item[open] {
  border-color: var(--brand-open-border);
}

/* ===== Accordion open-state background highlight ===== */
.acc-item[open] .acc-head {
  background-color: var(--surface-50, #f3f3f8);
}

/* content */
.acc-content {
  padding: 0 var(--space-5, 1.25rem) var(--space-5, 1.25rem);
  animation: acc-fade 0.2s ease;
}
@keyframes acc-fade {
  from {
    opacity: 0.6;
    transform: translateY(-2px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* make feature-list bullets elegant inside panels (reuse) */
.acc-content .feature-list {
  margin-top: 0.25rem;
}

.acc-content .feature-list li {
  padding-block: 0.5rem;
}

/* minor title (Scope of Review) small style */
.minor-title {
  margin-top: var(--space-4, 1.25rem);
  font-size: 1rem;
  font-weight: 700;
}

/* Callout (shared) */
.callout {
  padding: var(--space-5, 1.25rem);
  border: 1px solid var(--color-border, #e6e8eb);
  border-left: 4px solid var(--color-accent, #145887);
  border-radius: var(--radius-md, 12px);
  background: var(--surface-50, #f9fbfd);
  box-shadow: var(--shadow-xs, 0 1px 2px rgba(0, 0, 0, 0.06));
  margin-block: var(--space-6, 1.2rem);
  margin-top: 2rem;
}
.callout-title {
  font-size: 1rem;
  font-weight: 700;
}

/* Transaction section spacing */
.audit-block--transaction .callout {
  margin-top: 2rem;
}

h2#ifc-fr {
  margin-top: 4rem;
}

/* ===== IND AS: section ===== */
.audit-section--indas figure {
  margin-inline: 0;
}

.audit-section--indas .audit-media--banner img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xs);
}

/* ===== IND AS: Accordion (namespaced) ===== */
.accordion--indas {
  margin-block: var(--space-6);
}
.acc-indas {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-panel, #fff);
  box-shadow: var(--shadow-xxs);
  margin-block-end: var(--space-3);
  overflow: hidden;
}

.acc-indas[open] {
  border-color: var(--brand-500, #145887);
  box-shadow: 0 0 0 1px color-mix(in oklab, var(--brand-500) 30%, transparent);
}

.acc-indas__head {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-4);
  font-weight: 600;
  cursor: pointer;
  background: color-mix(in oklab, var(--brand-500) 6%, #fff);
}

.acc-indas__head::-webkit-details-marker {
  display: none;
}

.acc-indas__icon {
  display: inline-grid;
  place-items: center;
  transition: transform 0.2s ease;
}

.acc-indas[open] .acc-indas__icon {
  transform: rotate(180deg);
}

.acc-indas__content {
  padding: var(--space-3) var(--space-4) var(--space-4);
  border-top: 1px solid var(--color-border);
}

.accordion--indas .feature-list {
  margin-block: var(--space-2);
}

/* Mobile tweaks */
@media (max-width: 720px) {
  .acc-indas__head {
    padding: var(--space-3);
  }
  .acc-indas__content {
    padding: var(--space-3);
  }
}

/* ===== Taxation: 2-col layout with sticky TOC (scoped) ===== */
.svc-layout {
  --toc-w: 250px;
  --toc-top: calc(var(--header-h, 72px) + 16px);
  --gap: clamp(16px, 2.4vw, 28px);
  --radius: var(--radius-md, 12px);
  --shadow: var(--shadow-xs, 0 1px 2px rgba(0, 0, 0, 0.06));
  --border: var(--color-border, #e6e8eb);
  --muted: var(--color-text-muted, #5b6672);
  --accent: var(--brand-500, #145887);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--gap);
  align-items: start;
}
@media (min-width: 1024px) {
  .svc-layout {
    grid-template-columns: var(--toc-w) minmax(0, 1fr);
  }
}

.svc-toc {
  position: sticky;
  top: var(--toc-top);
  align-self: start;
  max-height: calc(100vh - var(--toc-top));
  overflow: auto;
  padding: 12px 8px;
  border-left: 2px solid var(--border);
}
.svc-toc__title {
  font-weight: 600;
  margin: 0 0 6px 0;
  color: var(--muted);
  font-size: 0.95rem;
}
.svc-toc__list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.svc-toc__link {
  display: block;
  padding: 6px 8px;
  border-left: 3px solid transparent;
  text-decoration: none;
  color: inherit;
  border-radius: 4px;
}
.svc-toc__link.is-active {
  border-left-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 10%, transparent);
}

.svc-content {
  min-width: 0;
}

.tax-hero {
  position: relative;
  overflow: clip;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.tax-hero__media img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 12 / 5;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
.tax-hero__frame {
  position: relative;
  margin-top: 12px;
}
.tax-hero__title {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  line-height: 1.2;
  margin: 0 0 6px 0;
}
.tax-hero__lede {
  color: var(--muted);
  font-size: clamp(1rem, 1.3vw, 1.125rem);
  margin: 0;
}

.svc-section {
  margin: clamp(32px, 4vw, 48px) 0;
}
.svc-media--banner img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 3 / 1;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  margin-bottom: clamp(12px, 2vw, 18px);
}
.svc-section > h2 {
  font-size: clamp(1.4rem, 2.2vw, 1.8rem);
  margin: 0 0 8px 0;
}
.svc-lede {
  font-size: clamp(1.05rem, 1.5vw, 1.15rem);
  color: var(--muted);
  margin: 0 0 10px 0;
}

.svc-feature-list {
  --bullet: "•";
  list-style: none;
  padding-left: 0;
  margin: 8px 0 14px;
}
.svc-feature-list li {
  position: relative;
  padding-left: 1.25em;
  margin: 6px 0;
}
.svc-feature-list li::before {
  content: var(--bullet);
  position: absolute;
  left: 0;
  top: 0;
  line-height: 1.2;
  color: var(--accent);
  font-weight: 700;
}

.svc-callout {
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--accent) 6%, #fff);
  padding: clamp(12px, 2vw, 18px);
  margin-top: clamp(12px, 2vw, 16px);
}
.svc-callout__title {
  margin: 0 0 6px 0;
  font-size: 1.05rem;
}
.svc-callout p {
  margin: 6px 0;
}
.svc-callout .svc-feature-list {
  margin-top: 8px;
}

/* ============================
   Taxation Page — Hero Section
   Mirrors the Audit hero styles, new namespace
   ============================ */

.tax-hero {
  --tax-hero-img: url("/images/hero-taxation.webp"); /* 2400 x 1000 */
  --tax-hero-blue: #145887; /* brand blue */
  --tax-hero-accent: rgba(244, 121, 32, 0.6); /* orange band */
  --tax-hero-dark: rgba(20, 88, 135, 0.8); /* deep blue bar */
  position: relative;
  color: #fff;
  overflow: hidden;
  min-height: clamp(420px, 52vh, 640px);
}

/* background photo */
.tax-hero__media {
  position: absolute;
  inset: 0;
  background: center / cover no-repeat;
  background-image: var(--tax-hero-img);
  /* keep right-side graphics visible; tweak if needed */
  background-position: 62% 50%;
  z-index: 0;
}

/* push content towards lower third like Industries */
.tax-hero__frame {
  display: grid;
  align-content: end;
  min-height: inherit;
  padding-block: clamp(1rem, 6vh, 2.5rem);
  position: relative;
  z-index: 1;
}

/* outer orange band */
.tax-hero__panel {
  width: min(96%, var(--content-max));
  background: var(--tax-hero-accent);
  padding: clamp(0.9rem, 2vw, 1.25rem) clamp(1rem, 2.6vw, 1.75rem);
  position: absolute;
  bottom: 1rem;
}

/* title */
.tax-hero__title {
  margin: 0 0 clamp(0.6rem, 1.6vw, 1rem) 0;
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.08;
  font-size: clamp(2rem, 4.6vw, 3.5rem);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  text-shadow: black 4px 4px 8px;
}

/* inner dark band = lede */
.tax-hero__lead {
  margin: 0;
  line-height: 1.55;
  font-size: clamp(1rem, 1.05vw, 1.25rem);
  background: var(--tax-hero-dark);
  box-shadow: var(--shadow-xl);
  padding: clamp(0.7rem, 1.2vw, 1rem);
  max-width: 78ch;
}

.tax-section h3 {
  font-family: var(--font-display) !important;
  color: var(--color-brand);
  margin-top: 2rem;
}

.callout h3 {
  margin-top: 0;
}

.feature-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--space-2, 0.625rem);
  line-height: 1.7;
}

.feature-list li {
  position: relative;
  padding-left: 1.5rem;
}

.feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.66em;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--color-brand, #145887);
  box-shadow: 0 0 0 2px #fff;
}

/* Responsive niceties */
@media (max-width: 680px) {
  .tax-hero__panel::before {
    inset: -10px;
  }
  .tax-hero__panel {
    padding: 16px 18px;
  }
}

/* ============================
   Other Professional Services Page
   ============================ */

.other-hero {
  --tax-hero-img: url("/images/hero-other-services.webp"); /* 2400 x 1000 */
  --tax-hero-blue: #145887; /* brand blue */
  --tax-hero-accent: rgba(244, 121, 32, 0.6); /* orange band */
  --tax-hero-dark: rgba(20, 88, 135, 0.8); /* deep blue bar */
  position: relative;
  color: #fff;
  overflow: hidden;
  min-height: clamp(420px, 52vh, 640px);
}

.feature-list--nested-1 {
  list-style: none;
}

.feature-list--nested-1 li::before {
  left: 0em;
  top: 0.66em;
  width: 0.35rem;
  height: 0.35rem;
  border-radius: 50%;

  background: var(--color-brand, #145887);
  box-shadow: 0 0 0 2px #fff;
}

/* ===== Careers Hero ===== */
.careers-hero {
  position: relative;
  isolation: isolate;
  min-height: clamp(420px, 70vh, 680px);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  text-align: left;
}

/* background image */
.careers-hero__media {
  position: absolute;
  inset: 0;
  background: url("../images/hero-careers.webp") no-repeat center / cover;
  z-index: 0;
  filter: brightness(0.75);
}

/* frame container */
.careers-hero__frame {
  position: relative;
  z-index: 1;
  width: 100%;
}

/* orange + blue layered panel */
.careers-hero__panel {
  background: var(--color-brand);
  border-left: 12px solid var(--color-accent);
  color: #fff;
  padding: clamp(2rem, 4vw, 3.5rem);
  max-width: 720px;
  box-shadow: var(--shadow-sm);
}

.careers-hero__title {
  margin: 0 0 0.75rem 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2rem, 2.8vw, 3rem);
  letter-spacing: 0.02em;
  color: #fff;
}

.careers-hero__lead {
  margin: 0;
  font-size: clamp(1rem, 1.2vw, 1.25rem);
  line-height: 1.6;
  opacity: 0.95;
  max-width: 60ch;
}

/* responsive */
@media (max-width: 768px) {
  .careers-hero {
    text-align: center;
    padding-block: 4rem;
  }
  .careers-hero__panel {
    border-left: none;
    border-top: 6px solid var(--color-accent);
    margin-inline: auto;
  }
}
/* ===== Careers: What We Look For ===== */
.careers-values {
  padding-block: var(--section-pad);
  background: var(--color-bg);
  padding-top: calc(var(--section-pad) * 0.85);
}

.values-grid {
  --gap: clamp(1rem, 3vw, 2rem);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)); /* desktop: 3x2 */
  gap: var(--gap);
  list-style: none;
  margin: 0;
  padding: 0;
}

.value-card {
  /* base = white card */
  background: #fff;
  color: var(--color-text);
  border: 2px solid rgba(20, 88, 135, 0.35);
  border-radius: 16px;
  box-shadow: var(--shadow-xs);
  padding: clamp(1rem, 3vw, 1.5rem);
  display: grid;
  grid-template-rows: auto auto 1fr; /* title | icon | copy */
  align-items: start;
  row-gap: clamp(0.5rem, 1.4vw, 0.75rem);
  min-height: 260px;
  align-items: center;
}

.value-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: 0.02em;
  text-align: center;
  color: var(--color-brand);
  font-size: clamp(1rem, 0.8vw + 0.95rem, 1.25rem);
}

.value-icon {
  justify-self: center;
  width: clamp(56px, 7vw, 72px);
  height: auto;
  display: block;
}

.value-copy {
  margin: 0;
  font-size: var(--fs-100);
  line-height: 1.45;
}

/* ===== Color patterns by layout ===== */

/* Desktop (3 columns): white–blue–white / blue–white–blue  */
@media (min-width: 1025px) {
  .values-grid > li:nth-child(even) .value-card {
    background: var(--color-brand);
    color: #fff;
    border-color: transparent;
  }
  .values-grid > li:nth-child(even) .value-title {
    color: #fff;
  }
  .values-grid > li:nth-child(even) .value-icon {
    filter: brightness(0) invert(1);
  }
}

/* Tablet (2 columns): 
   row1: white–blue
   row2: blue–white
   row3: white–blue
*/
@media (max-width: 1024px) and (min-width: 641px) {
  .values-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* defaults */
  .values-grid > li:nth-child(odd) .value-card {
    background: #fff;
    color: var(--color-text);
    border-color: var(--brand-open-border);
  }
  .values-grid > li:nth-child(even) .value-card {
    background: var(--color-brand);
    color: #fff;
    border-color: transparent;
  }
  .values-grid > li:nth-child(even) .value-title {
    color: #fff;
  }
  .values-grid > li:nth-child(even) .value-icon {
    filter: brightness(0) invert(1);
  }

  /* overrides to flip every second row */
  .values-grid > li:nth-child(4n + 3) .value-card {
    background: var(--color-brand);
    color: #fff;
    border-color: transparent;
  }
  .values-grid > li:nth-child(4n + 3) .value-title {
    color: #fff;
  }
  .values-grid > li:nth-child(4n + 3) .value-icon {
    filter: brightness(0) invert(1);
  }

  .values-grid > li:nth-child(4n + 4) .value-card {
    background: #fff;
    color: var(--color-text);
    border-color: var(--brand-open-border);
  }
  .values-grid > li:nth-child(4n + 4) .value-title {
    color: var(--color-brand);
  }
  .values-grid > li:nth-child(4n + 4) .value-icon {
    filter: none;
  }
}

/* Mobile (1 column): alternate down the stack */
@media (max-width: 640px) {
  .values-grid {
    grid-template-columns: 1fr;
  }
  .values-grid > li:nth-child(even) .value-card {
    background: var(--color-brand);
    color: #fff;
    border-color: transparent;
  }
  .values-grid > li:nth-child(even) .value-title {
    color: #fff;
  }
  .values-grid > li:nth-child(even) .value-icon {
    filter: brightness(0) invert(1);
  }
}

/* ===== Careers: Career Paths ===== */
.careers-paths {
  padding-block: var(--section-pad);
  background: var(--color-bg);
  padding-top: calc(var(--section-pad) * 0.85);
}

.paths-grid {
  --gap: clamp(1rem, 3vw, 2rem);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--gap);
}

.path-card {
  background: #fff;
  border: 2px solid var(--brand-open-border);
  border-radius: 16px;
  box-shadow: var(--shadow-xs);
  overflow: hidden; /* rounds the blue header corners */
}

/* Blue title band */
.path-head {
  background: var(--color-brand);
  color: #fff;
  padding: clamp(0.9rem, 2.1vw, 1.15rem) clamp(1rem, 2.6vw, 1.5rem);
}
.path-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: 0.02em;
  font-size: clamp(1.1rem, 1vw + 1rem, 1.6rem);
}

/* Body copy */
.path-body {
  padding: clamp(1rem, 2.6vw, 1.5rem);
}
.path-body p {
  margin: 0 0 0.9rem 0;
  opacity: 0.95;
}

/* Elegant list */
.list-lead {
  margin-bottom: 0.25rem;
  font-weight: 700;
  color: var(--color-brand);
}
.elegant-list {
  --indent: 1.25rem;
  margin: 0.25rem 0 0 0;
  padding: 0 0 0 var(--indent);
  list-style: none; /* custom bullets */
  display: grid;
  gap: 0.4rem;
}
.elegant-list li {
  position: relative;
  line-height: 1.5;
}
.elegant-list li::before {
  content: "";
  position: absolute;
  left: calc(-1 * var(--indent));
  top: 0.55em;
  width: 0.48rem;
  height: 0.48rem;
  border: 2px solid var(--color-brand);
  border-radius: 50%;
  background: #fff; /* hollow dot */
  box-shadow: 0 0 0 2px #fff inset; /* keeps clean on blue edges if any */
}

/* Track record nudge */
.track-record {
  border-top: 1px dashed var(--brand-open-border);
  padding-top: 0.75rem;
  margin-top: 0.5rem;
}

/* Responsive stack */
@media (max-width: 910px) {
  .paths-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== Careers: Life at PRSCA ===== */
.careers-life {
  padding-block: var(--section-pad);
  background: var(--color-bg);
  padding-top: calc(var(--section-pad) * 0.85);
}

.life-grid {
  --gap: clamp(1rem, 3vw, 2rem);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--gap);
}

/* Image card */
.life-item {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  background: #f5f7fb;
  border: 1px solid rgba(20, 88, 135, 0.25);
  box-shadow: var(--shadow-xs);
  aspect-ratio: 3 / 2; /* reserves space for 450x300 */
}

.life-item img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform var(--transition-fast),
    box-shadow var(--transition-fast), filter var(--transition-fast);
}

/* Subtle hover “magic” */
.life-item:hover img {
  transform: scale(1.03);
  box-shadow: 0 14px 30px rgba(16, 42, 67, 0.25);
  filter: saturate(1.05);
}

/* Responsive: 3 → 2 → 1 columns */
@media (max-width: 1024px) {
  .life-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .life-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== Careers: Apply Online ===== */
.careers-apply {
  padding-block: var(--section-pad);
  background: var(--color-bg);
  padding-top: calc(var(--section-pad) * 0.85);
}

.careers-apply__separator {
  width: 100%;
  height: 1px;
  background: rgba(20, 88, 135, 0.25);
  margin-bottom: 2rem;
}

/* Intro */
.careers-apply__intro {
  max-width: 65ch;
  opacity: 0.95;
  margin-bottom: 2rem;
}

/* Form layout */
.apply-form {
  display: grid;
  gap: clamp(1rem, 2.5vw, 1.5rem);
  grid-template-columns: repeat(2, 1fr);
  border: 1px solid rgba(20, 88, 135, 0.25);
  padding: clamp(1.5rem, 3vw, 2rem);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xs);
  background: #fff;
}

/* Full-width fields */
.apply-notes {
  grid-column: 1 / -1;
}

/* Labels & inputs */
.apply-field label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--color-brand);
}

.apply-field input,
.apply-field select,
.apply-field textarea {
  width: 100%;
  height: 48px;
  padding: 0.6rem 0.75rem;
  border: 1px solid rgba(0, 0, 0, 0.18);
  border-radius: var(--radius-md);
  font: inherit;
  background: #fff;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
}

.apply-field textarea {
  height: auto;
  resize: vertical;
}

/* Submit button */
.apply-btn {
  grid-column: 1 / -1;
  margin-top: 0.5rem;
  padding: 0.75rem 2rem;
}

/* Email alternative */
.apply-alt {
  text-align: center;
  margin-top: 1.75rem;
  opacity: 0.95;
}

.apply-alt strong {
  color: var(--color-brand);
}

/* Responsive */
@media (max-width: 720px) {
  .apply-form {
    grid-template-columns: 1fr;
  }
}

/* Animations */
.hero .hero-panel {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 420ms ease, transform 420ms ease;
}

.hero.is-loaded .hero-panel {
  opacity: 1;
  transform: translateY(0);
}

/* service cards */

.service-card {
  /* existing properties stay as-is */
  transition: transform var(--transition-fast),
    box-shadow var(--transition-fast);
  transition: transform 160ms ease-out, box-shadow 160ms ease-out;
}

.service-card:hover,
.service-card:focus-within {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px rgba(16, 42, 67, 0.2);
}

.industry-card {
  /* keep existing styles */
  transition: transform var(--transition-fast),
    box-shadow var(--transition-fast), border-color var(--transition-fast);
}

.industry-card:hover,
.industry-card:focus-within {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px rgba(16, 42, 67, 0.22);
  border-color: rgba(20, 88, 135, 0.4);
}

.why-card {
  /* existing styles */
  transition: transform var(--transition-fast),
    box-shadow var(--transition-fast);
}

.btn {
  /* existing styles */
  transition: filter var(--transition-fast), transform var(--transition-fast),
    box-shadow var(--transition-fast);
}

.btn--primary:hover,
.btn--primary:focus-visible {
  filter: brightness(0.96);
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(16, 42, 67, 0.18);
}

.hero .hero-cta {
  /* existing styles */
  transition: filter var(--transition-fast), transform var(--transition-fast),
    box-shadow var(--transition-fast);
}

.hero .hero-cta:hover,
.hero .hero-cta:focus-visible {
  filter: brightness(0.97);
  transform: translateY(-1px);
  box-shadow: 0 5px 12px rgba(0, 0, 0, 0.28);
  outline: none;
}

/* ===== Scroll reveal utility ===== */
.reveal {
  opacity: 0;
  transform: translateY(18px);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
  animation: fade-up-soft 480ms ease-out both;
}

@keyframes fade-up-soft {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
