/* ==========================================================================
   Diginat — Design System
   Palette: cool off-white ground, deep infrastructure navy, African-sun amber,
   circuitry teal. Display face Space Grotesk / body IBM Plex Sans.
   ========================================================================== */

:root {
  /* Color — derived from the Diginat logo (brand blue + brand green) */
  --navy-900: #002647;
  --navy-800: #003461;
  --navy-700: #00427A;
  --navy-600: #005AA8;
  --amber-400: #A5D26A;
  --amber-500: #8BC53E;
  --amber-600: #73A531;
  --teal-400: #3DA5FF;
  --teal-500: #006DCC;
  --teal-700: #005AA8;
  --ground: #F5F7FA;
  --ground-dim: #EBEFF4;
  --surface: #FFFFFF;
  --ink-900: #0E1626;
  --ink-700: #2B3648;
  --ink-500: #5B6A82;
  --ink-300: #8C99AD;
  --line: #DFE5EC;
  --line-dark: #2A3B5C;
  --success: #1E8E5A;
  --error: #C2432B;

  /* Type */
  --font-display: 'Space Grotesk', 'Segoe UI', system-ui, sans-serif;
  --font-body: 'IBM Plex Sans', 'Segoe UI', system-ui, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, monospace;

  /* Scale */
  --step--1: clamp(0.83rem, 0.8rem + 0.1vw, 0.9rem);
  --step-0: clamp(1rem, 0.96rem + 0.2vw, 1.125rem);
  --step-1: clamp(1.25rem, 1.18rem + 0.35vw, 1.5rem);
  --step-2: clamp(1.6rem, 1.45rem + 0.7vw, 2.05rem);
  --step-3: clamp(2.05rem, 1.8rem + 1.2vw, 2.85rem);
  --step-4: clamp(2.6rem, 2.1rem + 2.4vw, 4rem);
  --step-5: clamp(3.2rem, 2.4rem + 3.8vw, 5.4rem);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --container: 1200px;
  --shadow-sm: 0 2px 10px rgba(11, 31, 58, 0.06);
  --shadow-md: 0 12px 32px rgba(11, 31, 58, 0.10);
  --shadow-lg: 0 24px 60px rgba(11, 31, 58, 0.16);
  --ease: cubic-bezier(.2, .8, .2, 1);
  --header-h: 76px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--step-0);
  color: var(--ink-700);
  background: var(--ground);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  color: var(--navy-900);
  line-height: 1.12;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}

h1 {
  font-size: var(--step-5);
  font-weight: 600;
}

h2 {
  font-size: var(--step-3);
  font-weight: 600;
}

h3 {
  font-size: var(--step-2);
  font-weight: 600;
}

h4 {
  font-size: var(--step-1);
  font-weight: 600;
}

p {
  margin: 0 0 1em;
}

a {
  color: var(--teal-700);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

img {
  max-width: 100%;
  display: block;
}

svg[fill="none"] {
  stroke: currentColor;
  width: 1.2em;
  height: 1.2em;
  flex: none;
  vertical-align: -0.15em;
}

svg[fill="currentColor"] {
  width: 1.2em;
  height: 1.2em;
  flex: none;
  vertical-align: -0.15em;
}

ul,
ol {
  padding-left: 1.2em;
}

strong {
  color: var(--navy-900);
}

/* Focus visibility */
:focus-visible {
  outline: 3px solid var(--amber-500);
  outline-offset: 3px;
  border-radius: 4px;
}

button,
a,
input,
select,
textarea {
  font-family: inherit;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2.5rem);
}

.container--narrow {
  max-width: 820px;
}

.section {
  padding-block: clamp(3.5rem, 7vw, 6.5rem);
}

.section--tight {
  padding-block: clamp(2.5rem, 5vw, 4rem);
}

/* On large monitors the 7vw/5vw clamps above keep growing with viewport
   width even though there's no extra content to fill that space — this
   caps vertical rhythm once we're past a standard desktop width so the
   site doesn't feel like it's floating in empty space on big screens. */
@media (min-width: 1440px) {
  .section {
    padding-block: 4.5rem;
  }

  .section--tight {
    padding-block: 3rem;
  }
}

.section--navy {
  background: var(--navy-900);
  color: #D9E2F2;
}

.section--navy h2,
.section--navy h3,
.section--navy h4 {
  color: #fff;
}

.section--navy .eyebrow {
  color: var(--amber-400);
}

.section--navy p {
  color: #B7C4DC;
}

.section--tint {
  background: var(--ground-dim);
}

.section--surface {
  background: var(--surface);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5em;
  font-family: var(--font-mono);
  font-size: var(--step--1);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal-700);
  margin-bottom: 0.9em;
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--amber-500);
  display: inline-block;
}

.section-head {
  max-width: 680px;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.section-head--center {
  margin-inline: auto;
  text-align: center;
}

.lede {
  font-size: var(--step-1);
  color: var(--ink-500);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55em;
  padding: 0.85em 1.5em;
  border-radius: 999px;
  font-weight: 600;
  font-size: var(--step--1);
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), background .18s var(--ease), color .18s var(--ease), border-color .18s var(--ease);
  text-decoration: none;
  white-space: nowrap;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background: var(--amber-500);
  color: var(--navy-900);
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background: var(--amber-400);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background: transparent;
  color: var(--surface);
  border-color: rgba(255, 255, 255, 0.5);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: #fff;
}

.btn-outline {
  background: transparent;
  color: var(--navy-900);
  border-color: var(--line);
}

.btn-outline:hover {
  border-color: var(--navy-900);
  background: var(--ground-dim);
}

.btn-teal {
  background: var(--teal-500);
  color: #04231F;
}

.btn-teal:hover {
  background: var(--teal-400);
}

.btn-ghost {
  background: transparent;
  color: var(--teal-700);
  padding: 0.6em 0.2em;
}

.btn-ghost:hover {
  background: none;
  text-decoration: underline;
  transform: none;
}

.btn-block {
  width: 100%;
}

.btn-sm {
  padding: 0.6em 1.1em;
  font-size: var(--step--1);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  align-items: center;
}

/* ============ HEADER ============ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(245, 247, 250, 0.86);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--navy-900);
}

.brand:hover {
  text-decoration: none;
}

.brand-mark {
  width: 34px;
  height: 34px;
  flex: none;
}

.brand-name {
  letter-spacing: -0.01em;
}

.brand-name b {
  color: var(--teal-700);
  font-weight: 700;
}

/* Diginat wordmark logo — real text, not a raster image, so it stays crisp at any size */
.logo-word {
  font-family: 'Fredoka', var(--font-display), sans-serif;
  font-weight: 700;
  font-size: 1.7rem;
  line-height: 1;
  letter-spacing: -0.01em;
  display: inline-flex;
  white-space: nowrap;
}

.logo-word .lw-digi {
  color: var(--teal-700);
}

.logo-word .lw-nat {
  color: var(--amber-500);
}

.logo-word .lw-dot {
  color: var(--amber-500);
}

.logo-word--light .lw-digi {
  color: #FFFFFF;
}

.logo-word--light .lw-nat {
  color: var(--amber-500);
}

.logo-word--light .lw-dot {
  color: var(--amber-500);
}

.logo-word--sm {
  font-size: 1.4rem;
}

.logo-img {
  height: 34px;
  width: auto;
  display: block;
}

.mobile-nav .logo-img,
.footer-brand .logo-img {
  height: 32px;
}

.nav-primary {
  display: flex;
  align-items: center;
  gap: 1.9rem;
}

.nav-primary a {
  color: var(--ink-700);
  font-weight: 500;
  font-size: 0.97rem;
}

.nav-primary a:hover {
  color: var(--navy-900);
  text-decoration: none;
}

.has-dropdown {
  position: relative;
}

.dropdown-trigger {
  display: flex;
  align-items: center;
  gap: 0.3em;
  background: none;
  border: none;
  color: var(--ink-700);
  font-weight: 500;
  font-size: 0.97rem;
  cursor: pointer;
  padding: 0.4em 0;
}

.dropdown-trigger:hover {
  color: var(--navy-900);
}

.dropdown-trigger svg {
  width: 12px;
  height: 12px;
  transition: transform .18s var(--ease);
}

.has-dropdown:hover .dropdown-trigger svg,
.has-dropdown:focus-within .dropdown-trigger svg {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 0.5rem;
  min-width: 280px;
  opacity: 0;
  visibility: hidden;
  transition: opacity .16s var(--ease), transform .16s var(--ease), visibility .16s;
}

.has-dropdown:hover .dropdown-menu,
.has-dropdown:focus-within .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.dropdown-menu a {
  display: block;
  padding: 0.65rem 0.8rem;
  border-radius: var(--radius-sm);
  color: var(--ink-700);
  font-size: 0.93rem;
}

.dropdown-menu a:hover {
  background: var(--ground-dim);
  color: var(--navy-900);
  text-decoration: none;
}

.dropdown-menu a strong {
  display: block;
  color: inherit;
  font-size: 0.93rem;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.header-actions .btn {
  padding: 0.65em 1.2em;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 10px;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.nav-toggle svg {
  width: 20px;
  height: 20px;
}

@media (max-width: 980px) {
  .nav-primary {
    display: none;
  }

  .header-actions .btn-outline {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }
}

/* Mobile nav panel */
.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: var(--navy-900);
  color: #fff;
  transform: translateX(100%);
  transition: transform .28s var(--ease);
  overflow-y: auto;
}

.mobile-nav.is-open {
  transform: translateX(0);
}

.mobile-nav-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem clamp(1.25rem, 4vw, 2.5rem);
}

.mobile-nav-close {
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 10px;
  width: 44px;
  height: 44px;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-nav-list {
  list-style: none;
  padding: 0 clamp(1.25rem, 4vw, 2.5rem) 2rem;
  margin: 0;
}

.mobile-nav-list>li {
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.mobile-nav-list a,
.mobile-nav-list summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.05rem 0;
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 500;
  cursor: pointer;
  list-style: none;
}

.mobile-nav-list summary svg {
  width: 16px;
  height: 16px;
  flex: none;
  transition: transform .2s var(--ease);
}

.mobile-nav-list details[open] summary svg {
  transform: rotate(180deg);
}

.mobile-nav-list summary::-webkit-details-marker {
  display: none;
}

.mobile-nav-list .sub {
  padding-bottom: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.mobile-nav-list .sub a {
  color: #B7C4DC;
  font-size: 1.02rem;
  font-weight: 400;
  padding: 0;
}

.mobile-nav-actions {
  padding: 0 clamp(1.25rem, 4vw, 2.5rem) 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

body.nav-locked {
  overflow: hidden;
}

/* ============ HERO / NETWORK SIGNATURE ============ */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--navy-900);
  color: #fff;
  padding-block: clamp(1.4rem, 3vw, 2.4rem);
  min-height: calc(100svh - var(--header-h));
  display: flex;
  align-items: center;
  box-sizing: border-box;
}

/* Full-viewport-height hero looks great on laptop screens, but on a big
   monitor it stretches into a mostly-empty wall above the fold. Cap it
   to a sane max height once the viewport is taller than that. */
@media (min-width: 1200px) {
  .hero {
    min-height: min(calc(100svh - var(--header-h)), 700px);
  }
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 18% 20%, rgba(139, 197, 62, 0.16), transparent 45%),
    radial-gradient(circle at 85% 75%, rgba(0, 109, 204, 0.18), transparent 50%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: center;
}

.hero-copy h1 {
  color: #fff;
  font-size: var(--step-3);
}

.hero-copy .lede {
  color: #C3CEE3;
  max-width: 46ch;
  font-size: var(--step-0);
}

.hero-copy .eyebrow {
  color: var(--amber-400);
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(1.2rem, 2.5vw, 2rem);
  margin-top: 1.6rem;
  padding-top: 1.3rem;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.hero-stats div b {
  display: block;
  font-family: var(--font-display);
  font-size: var(--step-1);
  color: var(--amber-400);
}

.hero-stats div span {
  font-size: 0.85rem;
  color: #9FB0CC;
}

.hero-visual {
  position: relative;
  aspect-ratio: 1/1;
  width: 100%;
  max-width: min(560px, calc(100svh - var(--header-h) - 5rem), 92%);
  margin-inline: auto;
}

.hero-visual svg {
  width: 100%;
  height: 100%;
}

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

  .hero-visual {
    max-width: 420px;
    margin-inline: auto;
    order: -1;
  }
}

@media (max-width: 600px) {
  .hero-visual {
    display: none;
  }
}

/* ============ HERO TECH VISUAL (animated systems dashboard) ============ */
.hero-visual-panel {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 28px;
  background: radial-gradient(circle at 30% 20%, rgba(61, 165, 255, 0.10), transparent 55%),
    radial-gradient(circle at 75% 80%, rgba(139, 197, 62, 0.10), transparent 55%),
    linear-gradient(160deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.01));
  border: 1px solid rgba(255, 255, 255, 0.14);
  overflow: hidden;
}

.hero-visual-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.tech-orbit {
  transform-box: fill-box;
  transform-origin: 50% 50%;
  animation: tech-spin 34s linear infinite;
}

@keyframes tech-spin {
  to {
    transform: rotate(360deg);
  }
}

.tech-flow {
  fill: none;
  stroke: rgba(255, 255, 255, 0.5);
  stroke-width: 1.6;
  stroke-dasharray: 3 9;
  animation: tech-flow-move 2.6s linear infinite;
}

@keyframes tech-flow-move {
  to {
    stroke-dashoffset: -120;
  }
}

.tech-hub-pulse {
  animation: tech-hub-pulse 2.8s ease-in-out infinite;
  transform-box: fill-box;
  transform-origin: 50% 50%;
}

@keyframes tech-hub-pulse {

  0%,
  100% {
    transform: scale(0.9);
    opacity: 0.7;
  }

  50% {
    transform: scale(1.15);
    opacity: 1;
  }
}

.tech-node {
  animation: tech-node-float 5s ease-in-out infinite;
  transform-box: fill-box;
  transform-origin: 50% 50%;
}

.tech-node:nth-child(6) {
  animation-delay: .3s;
}

.tech-node:nth-child(7) {
  animation-delay: .9s;
}

.tech-node:nth-child(8) {
  animation-delay: 1.5s;
}

@keyframes tech-node-float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-5px);
  }
}

.tech-twinkle {
  animation: tech-twinkle 2.2s ease-in-out infinite;
}

@keyframes tech-twinkle {

  0%,
  100% {
    opacity: 0.15;
  }

  50% {
    opacity: 1;
  }
}

.hero-chip {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 0.5em;
  background: rgba(255, 255, 255, 0.95);
  color: var(--navy-900);
  padding: 0.55em 0.9em;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 600;
  box-shadow: var(--shadow-md);
  white-space: nowrap;
  animation: hero-chip-float 4.5s ease-in-out infinite;
  backdrop-filter: blur(6px);
}

.hero-chip strong {
  color: var(--teal-700);
}

.hero-chip--tl {
  top: 6%;
  left: 6%;
}

.hero-chip--br {
  bottom: 7%;
  right: 5%;
}

@keyframes hero-chip-float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-7px);
  }
}

.hero-chip-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #3ddc73;
  flex: none;
  animation: hero-dot-ping 1.8s ease-out infinite;
}

@keyframes hero-dot-ping {
  0% {
    box-shadow: 0 0 0 0 rgba(61, 220, 115, 0.55);
  }

  70% {
    box-shadow: 0 0 0 8px rgba(61, 220, 115, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(61, 220, 115, 0);
  }
}

@media (max-width:1100px) {
  .hero-chip {
    font-size: 0.68rem;
    padding: 0.5em 0.75em;
  }
}

@media (prefers-reduced-motion: reduce) {

  .tech-orbit,
  .tech-flow,
  .tech-hub-pulse,
  .tech-node,
  .tech-twinkle,
  .hero-chip,
  .hero-chip-dot {
    animation: none;
  }
}

/* connector divider used between sections to echo the network motif */
.connector {
  position: relative;
  height: 34px;
}

.connector svg {
  width: 100%;
  height: 100%;
  display: block;
}

.connector path {
  stroke: var(--line);
  stroke-width: 1.5;
  stroke-dasharray: 1 8;
  stroke-linecap: round;
  fill: none;
}

/* ============ CARDS / GRIDS ============ */
.grid {
  display: grid;
  gap: 1.6rem;
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 980px) {
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {

  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.8rem;
  transition: box-shadow .2s var(--ease), transform .2s var(--ease), border-color .2s var(--ease);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
  border-color: transparent;
}

.card-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--ground-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.2rem;
  flex: none;
}

.card-icon svg {
  width: 26px;
  height: 26px;
  stroke: var(--navy-900);
}

.card h3,
.card h4 {
  margin-bottom: 0.4em;
}

.card p {
  color: var(--ink-500);
  margin-bottom: 1rem;
}

.card-link {
  margin-top: auto;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  color: var(--teal-700);
  transition: color .2s var(--ease), gap .2s var(--ease);
}

.card-link:hover {
  color: var(--navy-900);
  text-decoration: none;
  gap: 0.7em;
}

.card-link svg {
  width: 28px;
  height: 28px;
  padding: 7px;
  box-sizing: border-box;
  flex: none;
  border-radius: 50%;
  background: var(--ground-dim);
  color: var(--navy-900);
  transition: transform .25s var(--ease), background .25s var(--ease), color .25s var(--ease);
}

.card-link:hover svg {
  transform: translateX(3px);
  background: var(--navy-900);
  color: #fff;
}

.card--service .card-link:hover svg {
  background: var(--teal-500);
}

.card--software .card-link:hover svg {
  background: var(--amber-500);
  color: var(--navy-900);
}

.card--service {
  border-top: 3px solid var(--teal-500);
}

.card--software {
  border-top: 3px solid var(--amber-500);
}

.pill {
  display: inline-block;
  padding: 0.3em 0.85em;
  border-radius: 999px;
  background: var(--ground-dim);
  color: var(--ink-500);
  font-size: 0.8rem;
  font-weight: 600;
  margin: 0 0.4em 0.4em 0;
}

.pill.teal {
  background: rgba(0, 109, 204, 0.12);
  color: var(--teal-700);
}

.pill.amber {
  background: rgba(139, 197, 62, 0.15);
  color: #47661F;
}

/* Why choose / feature rows */
.feature-row {
  display: flex;
  gap: 1.1rem;
  align-items: flex-start;
}

.feature-row .dot {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--navy-900);
  color: var(--amber-400);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}

.feature-row .dot svg {
  width: 20px;
  height: 20px;
}

.feature-row h4 {
  margin-bottom: 0.25em;
}

.feature-row p {
  color: var(--ink-500);
  margin: 0;
}

/* Process steps (legitimate sequence) */
.process {
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

@media (max-width:900px) {
  .process {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

.step {
  position: relative;
  padding-top: 2.6rem;
}

.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  top: 0;
  left: 0;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  background: var(--navy-900);
  color: var(--amber-400);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 600;
}

.step h4 {
  margin-bottom: 0.35em;
}

.step p {
  color: var(--ink-500);
  font-size: 0.95rem;
}

/* Testimonial / stat strip */
.stat-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

@media (max-width:760px) {
  .stat-strip {
    grid-template-columns: repeat(2, 1fr);
  }
}

.stat {
  text-align: center;
}

.stat b {
  display: block;
  font-family: var(--font-display);
  font-size: var(--step-3);
  color: var(--navy-900);
}

.stat span {
  color: var(--ink-500);
  font-size: 0.9rem;
}

/* Partner card */
.partner-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 2rem;
}

.partner-logo {
  height: 44px;
  display: flex;
  align-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--navy-900);
  margin-bottom: 1rem;
}

.partner-logo img {
  max-height: 100%;
  max-width: 180px;
  width: auto;
  object-fit: contain;
}

.partner-card .pill {
  margin-bottom: 1rem;
}

/* Partner logo marquee (homepage) */
.partner-marquee {
  overflow: hidden;
  position: relative;
  padding-block: 0.5rem;
  -webkit-mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
}

.partner-marquee-track {
  display: flex;
  align-items: center;
  gap: clamp(3.5rem, 9vw, 7rem);
  width: max-content;
  animation: partner-scroll 20s linear infinite;
}

.partner-marquee:hover .partner-marquee-track {
  animation-play-state: paused;
}

.partner-marquee-item {
  display: flex;
  align-items: center;
  flex: none;
  height: 46px;
}

.partner-marquee-item img {
  height: 100%;
  width: auto;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.6;
  transition: filter .2s var(--ease), opacity .2s var(--ease);
}

.partner-marquee-item img:hover {
  filter: grayscale(0%);
  opacity: 1;
}

@keyframes partner-scroll {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .partner-marquee-track {
    animation: none;
    overflow-x: auto;
  }
}

/* CTA banner */
.cta-banner {
  background: linear-gradient(120deg, var(--navy-900), var(--navy-700));
  border-radius: var(--radius-lg);
  color: #fff;
  padding: clamp(2.2rem, 5vw, 3.5rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  position: relative;
  overflow: hidden;
}

.cta-banner::after {
  content: "";
  position: absolute;
  right: -40px;
  top: -40px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: rgba(139, 197, 62, 0.16);
}

.cta-banner h2,
.cta-banner h3 {
  color: #fff;
  margin-bottom: 0.3em;
}

.cta-banner .eyebrow {
  color: var(--amber-400);
}

.cta-banner p {
  color: #B7C4DC;
  margin: 0;
  max-width: 44ch;
}

.cta-banner-copy {
  position: relative;
  z-index: 1;
}

.cta-banner .btn-row {
  position: relative;
  z-index: 1;
}

/* ============ FORMS ============ */
.form-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.6rem, 3vw, 2.6rem);
  box-shadow: var(--shadow-sm);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem 1.4rem;
}

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

.field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1.1rem;
}

.field.full {
  grid-column: 1/-1;
}

.field label {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--navy-900);
}

.field .hint {
  font-size: 0.8rem;
  color: var(--ink-300);
}

.field input,
.field select,
.field textarea {
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0.8em 0.9em;
  font-size: 0.97rem;
  background: var(--surface);
  color: var(--ink-900);
  width: 100%;
  transition: border-color .15s var(--ease), box-shadow .15s var(--ease);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--teal-500);
  box-shadow: 0 0 0 4px rgba(0, 109, 204, 0.14);
  outline: none;
}

.field textarea {
  resize: vertical;
  min-height: 110px;
}

.field.has-error input,
.field.has-error select,
.field.has-error textarea {
  border-color: var(--error);
}

.field-error {
  color: var(--error);
  font-size: 0.82rem;
  display: none;
}

.field.has-error .field-error {
  display: block;
}

.checkbox-field {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
}

.checkbox-field.has-error label {
  color: var(--error);
}

.checkbox-field.has-error input {
  outline: 2px solid var(--error);
  outline-offset: 2px;
}

.checkbox-field input {
  width: auto;
  margin-top: 0.3rem;
}

.checkbox-field label {
  font-weight: 400;
  color: var(--ink-500);
  font-size: 0.88rem;
}

.form-note {
  font-size: 0.82rem;
  color: var(--ink-300);
  margin-top: 0.6rem;
}

.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-status {
  display: none;
  padding: 0.9rem 1.1rem;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  margin-bottom: 1.2rem;
  align-items: center;
  gap: 0.6rem;
}

.form-status.is-visible {
  display: flex;
}

.form-status.success {
  background: rgba(30, 142, 90, 0.1);
  color: var(--success);
}

.form-status.error {
  background: rgba(194, 67, 43, 0.1);
  color: var(--error);
}

/* ============ FAQ ============ */
.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 0;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--navy-900);
  font-size: 1.05rem;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary .plus {
  flex: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1.5px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .2s var(--ease);
}

.faq-item[open] summary .plus {
  transform: rotate(45deg);
}

.faq-item p {
  padding-bottom: 1.25rem;
  color: var(--ink-500);
  margin: 0;
}

/* ============ TABLE OF SERVICES/BREADCRUMB ============ */
.breadcrumb {
  font-size: 0.85rem;
  color: var(--ink-300);
  margin-bottom: 1.4rem;
}

.breadcrumb a {
  color: var(--ink-500);
}

/* Empty state (portfolio placeholder) */
.empty-state {
  text-align: center;
  padding: clamp(3rem, 6vw, 5rem) 1rem;
  border: 1.5px dashed var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.empty-state svg {
  width: 52px;
  height: 52px;
  margin-inline: auto 1.2rem;
  stroke: var(--teal-500);
}

/* ============ FOOTER ============ */
.site-footer {
  background: var(--navy-900);
  color: #B7C4DC;
  padding-block: clamp(3rem, 6vw, 4.5rem) 1.6rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.8fr 1fr;
  gap: 2.4rem;
}

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

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

.footer-brand .brand {
  color: #fff;
}

.footer-brand p {
  color: #8FA0BE;
  margin-top: 1rem;
  max-width: 32ch;
  font-size: 0.92rem;
}

.footer-col h4 {
  color: #fff;
  font-size: 0.92rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 1.1rem;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.footer-col a {
  color: #B7C4DC;
  font-size: 0.93rem;
}

.footer-col a:hover {
  color: #fff;
}

.footer-col li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.footer-col li svg,
.footer-col a svg {
  width: 17px;
  height: 17px;
  flex: none;
}

.footer-social {
  display: flex;
  gap: 0.7rem;
  margin-top: 1.2rem;
}

.footer-social a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-social a:hover {
  background: rgba(255, 255, 255, 0.1);
}

.footer-social svg {
  width: 17px;
  height: 17px;
  stroke: #fff;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  margin-top: 2.6rem;
  padding-top: 1.6rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.85rem;
  color: #7C8CAA;
}

.footer-bottom a {
  color: #9FB0CC;
}

.footer-legal {
  display: flex;
  gap: 1.4rem;
  flex-wrap: wrap;
}

/* ============ FLOATING WHATSAPP ============ */
.whatsapp-wrap {
  position: fixed;
  right: clamp(1rem, 3vw, 1.8rem);
  bottom: clamp(1rem, 3vw, 1.8rem);
  z-index: 150;
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.whatsapp-label {
  display: flex;
  align-items: center;
  gap: 0.5em;
  background: var(--surface);
  color: var(--navy-900);
  padding: 0.7em 1.1em;
  border-radius: 999px;
  box-shadow: var(--shadow-lg);
  font-size: 0.86rem;
  font-weight: 500;
  white-space: nowrap;
  border: 1px solid var(--line);
  animation: wave-in .4s var(--ease) .3s both;
}

.whatsapp-label:hover {
  text-decoration: none;
  box-shadow: var(--shadow-md);
}

.whatsapp-label strong {
  color: var(--teal-700);
  font-weight: 700;
}

.whatsapp-label-wave {
  font-size: 1.15rem;
  display: inline-block;
  animation: wave 2.4s ease-in-out .8s infinite;
  transform-origin: 70% 70%;
}

@keyframes wave-in {
  from {
    opacity: 0;
    transform: translateX(8px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes wave {

  0%,
  60%,
  100% {
    transform: rotate(0deg);
  }

  10% {
    transform: rotate(14deg);
  }

  20% {
    transform: rotate(-8deg);
  }

  30% {
    transform: rotate(14deg);
  }

  40% {
    transform: rotate(-4deg);
  }

  50% {
    transform: rotate(10deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .whatsapp-label {
    animation: none;
  }

  .whatsapp-label-wave {
    animation: none;
  }
}

.whatsapp-float {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  transition: transform .18s var(--ease);
}

.whatsapp-float:hover {
  transform: scale(1.08);
}

.whatsapp-float svg {
  width: 28px;
  height: 28px;
}

@media (max-width:700px) {
  .whatsapp-label span:not(.whatsapp-label-wave) {
    display: none;
  }

  .whatsapp-label {
    padding: 0.65em;
  }
}

@media (max-width:560px) {
  .whatsapp-float {
    width: 52px;
    height: 52px;
  }

  .whatsapp-wrap {
    bottom: 1rem;
    right: 1rem;
    gap: 0.5rem;
  }
}

/* ============ MISC PAGE PATTERNS ============ */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

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

.media-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: linear-gradient(135deg, var(--navy-800), var(--teal-700));
  aspect-ratio: 4/3;
  position: relative;
}

.media-frame svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.mf-pulse {
  animation: mf-pulse 2.8s ease-in-out infinite;
  transform-box: fill-box;
  transform-origin: 50% 50%;
}

@keyframes mf-pulse {

  0%,
  100% {
    transform: scale(0.96);
  }

  50% {
    transform: scale(1.05);
  }
}

@media (prefers-reduced-motion: reduce) {
  .mf-pulse {
    animation: none;
  }
}

.page-hero {
  background: var(--navy-900);
  color: #fff;
  padding-block: clamp(2.2rem, 4vw, 3.2rem);
  position: relative;
  overflow: hidden;
}

.page-hero .eyebrow {
  color: var(--amber-400);
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 90% 10%, rgba(139, 197, 62, 0.14), transparent 45%);
}

.page-hero .container {
  position: relative;
  z-index: 1;
}

.page-hero h1 {
  color: #fff;
  margin-bottom: 0.4em;
  font-size: var(--step-3);
}

.page-hero .lede {
  color: #C3CEE3;
  max-width: 60ch;
  font-size: var(--step-0);
}

.list-check {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.list-check li {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  color: var(--ink-700);
}

.list-check svg {
  flex: none;
  width: 20px;
  height: 20px;
  stroke: var(--teal-500);
  margin-top: 0.15em;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  text-align: left;
  padding: 0.9rem 1rem;
  border-bottom: 1px solid var(--line);
  font-size: 0.94rem;
}

th {
  color: var(--navy-900);
  font-family: var(--font-display);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--navy-900);
  color: #fff;
  padding: 1em 1.4em;
  z-index: 1000;
  border-radius: 0 0 10px 0;
}

.skip-link:focus {
  left: 0;
}

.related-services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}

@media (max-width:760px) {
  .related-services {
    grid-template-columns: 1fr;
  }
}

.related-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 1.3rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  font-weight: 600;
  color: var(--navy-900);
}

.related-card:hover {
  border-color: var(--teal-500);
  text-decoration: none;
}

.related-card svg {
  width: 18px;
  height: 18px;
}

.error-page {
  min-height: 60vh;
  display: flex;
  align-items: center;
}

.error-code {
  font-family: var(--font-display);
  font-size: clamp(4rem, 14vw, 8rem);
  color: var(--line);
  font-weight: 700;
  line-height: 1;
}

@media (max-width:980px) {
  .footer-col {
    display: none;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
}
/* ==========================================================================
   Modernisation pass: scroll-reveal, header/CTA polish, micro-interactions
   ========================================================================== */

/* ---------- Scroll progress bar ---------- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  z-index: 300;
  pointer-events: none;
  background: transparent;
}

.scroll-progress span {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--teal-400), var(--amber-500));
  transition: width .12s linear;
}

/* ---------- Header compact-on-scroll state ---------- */
.site-header {
  transition: box-shadow .25s var(--ease), background .25s var(--ease);
}

.site-header.is-scrolled {
  box-shadow: 0 2px 18px rgba(11, 31, 58, 0.10);
  background: rgba(245, 247, 250, 0.95);
}

.logo-img {
  transition: height .25s var(--ease);
}

.site-header.is-scrolled .logo-img {
  height: 28px;
}

/* ---------- Scroll-reveal ---------- */
/* Uses the independent `translate` property (not `transform`) for the
   entrance offset, so it never collides with hover effects on the same
   elements (.card, .partner-card, .related-card, etc. all animate
   `transform` on hover) — both apply together with no specificity fights. */
.reveal-item {
  opacity: 0;
  translate: 0 64px;
  scale: 0.94;
  filter: blur(6px);
  transition: opacity .85s var(--ease), translate .85s var(--ease), scale .85s var(--ease), filter .85s var(--ease);
}

.reveal-item.is-visible {
  opacity: 1;
  translate: 0 0;
  scale: 1;
  filter: blur(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal-item {
    opacity: 1;
    translate: 0 0;
    scale: 1;
    filter: blur(0);
  }
}

/* ---------- Hero / page-hero entrance (plays once on load, not scroll-tied) ---------- */
.hero-copy>*,
.page-hero .container>* {
  animation: fade-up-in .8s var(--ease) both;
}

.hero-copy>*:nth-child(1),
.page-hero .container>*:nth-child(1) {
  animation-delay: .05s;
}

.hero-copy>*:nth-child(2),
.page-hero .container>*:nth-child(2) {
  animation-delay: .16s;
}

.hero-copy>*:nth-child(3),
.page-hero .container>*:nth-child(3) {
  animation-delay: .27s;
}

.hero-copy>*:nth-child(4),
.page-hero .container>*:nth-child(4) {
  animation-delay: .38s;
}

.hero-visual {
  animation: fade-scale-in 1s var(--ease) .15s both;
  perspective: 1200px;
}

.hero-visual-panel {
  transition: transform .35s var(--ease);
  transform-style: preserve-3d;
  will-change: transform;
}

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

  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes fade-scale-in {
  from {
    opacity: 0;
    transform: scale(.94);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {

  .hero-copy>*,
  .page-hero .container>*,
  .hero-visual {
    animation: none;
  }
}

/* ---------- Button polish: ripple + shine ---------- */
.btn {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.btn-ripple {
  position: absolute;
  border-radius: 50%;
  background: currentColor;
  opacity: .28;
  transform: scale(0);
  pointer-events: none;
  animation: btn-ripple-out .6s var(--ease) forwards;
}

@keyframes btn-ripple-out {
  to {
    transform: scale(2.6);
    opacity: 0;
  }
}

.btn-primary,
.btn-secondary {
  position: relative;
}

.btn-primary::after,
.btn-secondary::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, 0.35) 48%, transparent 66%);
  transform: translateX(-120%);
  pointer-events: none;
}

.btn-primary:hover::after,
.btn-secondary:hover::after {
  transform: translateX(120%);
  transition: transform .7s var(--ease);
}

.btn.is-loading {
  color: transparent !important;
  pointer-events: none;
}

.btn.is-loading::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 18px;
  height: 18px;
  margin: -9px 0 0 -9px;
  border-radius: 50%;
  border: 2.5px solid currentColor;
  border-top-color: transparent;
  color: inherit;
  opacity: .55;
  animation: btn-spin .7s linear infinite;
}

.btn-primary.is-loading::before,
.btn-secondary.is-loading::before {
  color: var(--navy-900);
}

.btn-secondary.is-loading::before {
  color: #fff;
}

@keyframes btn-spin {
  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {

  .btn-primary::after,
  .btn-secondary::after {
    display: none;
  }
}

/* ---------- Card + link hover polish ---------- */
.card-icon {
  transition: transform .3s var(--ease), background .3s var(--ease);
}

.card-icon svg {
  transition: stroke .3s var(--ease);
}

.card:hover .card-icon {
  transform: scale(1.08) rotate(-4deg);
  background: var(--navy-900);
}

.card:hover .card-icon svg {
  stroke: #fff;
}

.related-card {
  transition: transform .2s var(--ease), border-color .2s var(--ease), box-shadow .2s var(--ease);
}

.related-card:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow-sm);
}

.related-card svg {
  transition: transform .2s var(--ease);
}

.related-card:hover svg {
  transform: translateX(3px);
}

.faq-item summary {
  transition: color .2s var(--ease);
}

.faq-item summary:hover {
  color: var(--teal-700);
}

.partner-card {
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s var(--ease);
}

.partner-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}

/* ---------- Dropdown menu: fade + scale instead of flat slide ---------- */
.dropdown-menu {
  transform: translateX(-50%) translateY(6px) scale(.97);
  transform-origin: top center;
}

.has-dropdown:hover .dropdown-menu,
.has-dropdown:focus-within .dropdown-menu {
  transform: translateX(-50%) translateY(0) scale(1);
}

.dropdown-menu a {
  transition: background .15s var(--ease), color .15s var(--ease), transform .15s var(--ease);
}

.dropdown-menu a:hover {
  transform: translateX(2px);
}

/* ---------- Mobile nav: staggered reveal + button micro-interactions ---------- */
.nav-toggle,
.mobile-nav-close {
  transition: background .2s var(--ease), transform .15s var(--ease), border-color .2s var(--ease);
}

.nav-toggle:hover,
.mobile-nav-close:hover {
  background: var(--ground-dim);
  border-color: var(--navy-900);
}

.mobile-nav-close:hover {
  background: rgba(255, 255, 255, 0.12);
}

.nav-toggle:active,
.mobile-nav-close:active {
  transform: scale(.9);
}

.mobile-nav-list>li {
  opacity: 0;
  transform: translateX(18px);
  transition: opacity .35s var(--ease), transform .35s var(--ease);
}

.mobile-nav.is-open .mobile-nav-list>li {
  opacity: 1;
  transform: none;
}

.mobile-nav.is-open .mobile-nav-list>li:nth-child(1) {
  transition-delay: .08s;
}

.mobile-nav.is-open .mobile-nav-list>li:nth-child(2) {
  transition-delay: .14s;
}

.mobile-nav.is-open .mobile-nav-list>li:nth-child(3) {
  transition-delay: .20s;
}

.mobile-nav-actions {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .4s var(--ease) .26s, transform .4s var(--ease) .26s;
}

.mobile-nav.is-open .mobile-nav-actions {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {

  .mobile-nav-list>li,
  .mobile-nav-actions {
    transition: none;
    opacity: 1;
    transform: none;
  }
}

/* ---------- Back to top ---------- */
.back-to-top {
  position: fixed;
  right: clamp(1rem, 3vw, 1.8rem);
  bottom: clamp(6rem, 13vw, 7.4rem);
  z-index: 150;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--navy-900);
  color: #fff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s, background .2s var(--ease);
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--teal-700);
}

.back-to-top svg {
  width: 20px;
  height: 20px;
}

@media (max-width:560px) {
  .back-to-top {
    width: 42px;
    height: 42px;
    bottom: clamp(5.5rem, 22vw, 6.6rem);
  }
}

/* ---------- Misc: field + link focus polish ---------- */
.field input,
.field select,
.field textarea {
  transition: border-color .15s var(--ease), box-shadow .15s var(--ease), background .15s var(--ease);
}

.checkbox-field input {
  transition: outline-color .15s var(--ease);
}

a.related-card,
a.card-link,
a.dropdown-menu,
.btn {
  -webkit-tap-highlight-color: transparent;
}