/* NK SOLUTION — desktop 1440 mockups (mirrors Figma tokens) */
:root {
  --navy-950: #071524;
  --navy-900: #0b1f33;
  --navy-800: #122a42;
  --navy-700: #1b3a58;
  --amber-500: #e8a317;
  --amber-400: #f3ba3c;
  --cream-50: #f5f1e8;
  --cream-100: #ebe6da;
  --white: #ffffff;
  --slate-500: #6b7785;
  --slate-700: #3d4a57;
  --line: #e4ddd0;
  --radius-8: 8px;
  --radius-12: 12px;
  --radius-16: 16px;
  --page-width: 1440px;
  --pad-x: 120px;
  --font-display: "Barlow Condensed", sans-serif;
  --font-body: Inter, system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--navy-900);
  background: var(--cream-50);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

.page {
  width: var(--page-width);
  max-width: 100%;
  margin: 0 auto;
  background: var(--cream-50);
  min-height: 100vh;
}

/* —— Utility bar + header —— */
.util-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px var(--pad-x);
  background: var(--navy-950);
  color: var(--white);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.util-bar span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.util-bar svg {
  flex-shrink: 0;
}

.main-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px var(--pad-x);
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-mark {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-8);
  background: var(--navy-950);
  color: var(--amber-500);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-text strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.04em;
  color: var(--navy-900);
}

.logo-text small {
  display: block;
  font-size: 11px;
  color: var(--slate-500);
}

.nav-links {
  display: flex;
  gap: 28px;
  align-items: center;
  align-self: stretch;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--navy-900);
}

.nav-links a.active,
.nav-links a:hover {
  color: var(--amber-500);
}

.nav-dropdown {
  position: relative;
  align-self: stretch;
  display: flex;
  align-items: center;
}

.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 18px);
  left: 0;
  margin-top: 0;
  min-width: 160px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-8);
  padding: 8px 0;
  box-shadow: 0 8px 24px rgba(7, 21, 36, 0.12);
  z-index: 20;
}

.nav-dropdown-menu::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 100%;
  height: 22px;
}

.nav-dropdown:hover .nav-dropdown-menu {
  display: block;
}

.nav-dropdown-menu a {
  display: block;
  padding: 8px 16px;
  font-size: 13px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: var(--radius-8);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: 0.15s ease;
}

.btn-amber {
  background: var(--amber-500);
  color: var(--navy-950);
}

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

.btn-navy {
  background: var(--navy-950);
  color: var(--white);
}

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

.btn-outline-light {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.35);
  color: var(--white);
}

.btn-outline-dark {
  background: transparent;
  border-color: rgba(7, 21, 36, 0.35);
  color: var(--navy-950);
}

.btn-block {
  width: 100%;
}

/* —— Inner intro band —— */
.intro-band {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 40px;
  padding: 56px var(--pad-x) 48px;
  background: var(--navy-950);
  color: var(--white);
}

.intro-band .crumb {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 12px;
}

.intro-band .crumb a {
  color: var(--amber-500);
}

.intro-band .crumb .sep {
  opacity: 0.4;
}

.intro-band h1 {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 48px;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.intro-band p {
  margin: 0;
  max-width: 560px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 16px;
  line-height: 1.6;
}

.intro-band .intro-actions {
  flex-shrink: 0;
}

/* —— Sections —— */
.section {
  padding: 80px var(--pad-x);
}

.section-sm {
  padding: 40px var(--pad-x);
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 40px;
  margin-bottom: 40px;
}

.section-head.stack {
  flex-direction: column;
  align-items: flex-start;
}

.eyebrow {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--amber-500);
  margin-bottom: 10px;
}

h2 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 48px;
  line-height: 1.1;
  color: var(--navy-900);
}

h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 22px;
  line-height: 1.25;
  color: var(--navy-900);
}

.muted {
  color: var(--slate-500);
}

.text-on-dark {
  color: var(--white);
}

.text-on-dark.muted {
  color: rgba(255, 255, 255, 0.72);
}

.bg-page {
  background: var(--cream-50);
}

.bg-white {
  background: var(--white);
}

.bg-navy {
  background: var(--navy-950);
}

.bg-navy-soft {
  background: var(--navy-900);
}

.bg-amber {
  background: var(--amber-500);
}

/* —— Cards / grids —— */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

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

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

.grid-5 {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

.grid-6 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-16);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.card-dark {
  background: var(--navy-800);
  border: none;
  color: var(--white);
}

.card-body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
}

.card-body .learn-more {
  margin-top: auto;
}

.service-card-copy {
  font-size: 14px;
  margin: 10px 0 16px;
  flex: 1 1 auto;
}

.service-list-grid {
  align-items: stretch;
}

.card-media {
  position: relative;
  height: 220px;
  background: var(--navy-800);
  overflow: hidden;
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-media.tall {
  height: 520px;
}

.card-media.service {
  height: 180px;
}

.card-media.product {
  height: 180px;
}

.card-media.gallery {
  height: 260px;
}

.badges {
  position: absolute;
  top: 14px;
  left: 14px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.badge {
  display: inline-flex;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(7, 21, 36, 0.72);
  color: var(--white);
}

.badge-amber {
  background: var(--amber-500);
  color: var(--navy-950);
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  display: inline-flex;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--white);
  border: 1px solid var(--line);
  color: var(--navy-900);
}

.chip.active,
.chip:hover {
  background: var(--navy-950);
  border-color: var(--navy-950);
  color: var(--white);
}

.chip-dark {
  background: var(--navy-800);
  border: 1px solid rgba(232, 163, 23, 0.45);
  color: var(--white);
}

.chip-filter.active {
  background: var(--amber-500);
  border-color: var(--amber-500);
  color: var(--navy-950);
}

/* —— Filters / tabs —— */
.tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 32px;
}

.tab {
  padding: 10px 18px;
  border-radius: var(--radius-8);
  font-size: 14px;
  font-weight: 600;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--navy-900);
}

.tab.active {
  background: var(--navy-950);
  border-color: var(--navy-950);
  color: var(--white);
}

/* —— Process steps —— */
.step-card {
  padding: 24px 22px;
  border-radius: var(--radius-12);
  background: var(--navy-800);
}

.step-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 32px;
  color: var(--amber-500);
  margin-bottom: 12px;
}

.point-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.point-item {
  display: flex;
  gap: 16px;
  padding: 16px 18px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-12);
}

.point-item .n {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  color: var(--amber-500);
}

/* —— Team —— */
.team-card .card-media {
  height: 280px;
}

.team-card .role {
  color: var(--slate-500);
  font-size: 14px;
  margin: 4px 0 10px;
}

/* —— Testimonials —— */
.quote-card {
  padding: 24px;
  border-radius: var(--radius-16);
  background: var(--navy-800);
  color: var(--white);
}

.quote-mark {
  font-family: Inter, sans-serif;
  font-weight: 900;
  font-size: 40px;
  line-height: 1;
  color: var(--amber-500);
  margin-bottom: 12px;
}

.quote-card .byline {
  margin-top: 16px;
}

.quote-card .byline strong {
  display: block;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
}

.quote-card .byline span {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
}

/* —— Amber CTA —— */
.cta-band {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
  padding: 64px var(--pad-x);
  background: var(--amber-500);
  color: var(--navy-950);
}

.cta-band h2 {
  color: var(--navy-950);
  margin-bottom: 10px;
}

.cta-band .eyebrow {
  color: rgba(7, 21, 36, 0.7);
}

.cta-band p {
  margin: 0;
  max-width: 720px;
  opacity: 0.85;
}

.cta-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex-shrink: 0;
}

/* —— Footer —— */
.footer {
  background: var(--navy-950);
  color: var(--white);
}

.footer-main {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding: 56px var(--pad-x) 48px;
}

.footer h3 {
  color: var(--white);
  margin-bottom: 12px;
}

.footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer li,
.footer p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  margin: 0 0 10px;
}

.footer .logo-mark {
  background: var(--navy-800);
}

.footer .logo-text strong {
  color: var(--white);
}

.footer .logo-text small {
  color: rgba(255, 255, 255, 0.55);
}

.subfooter {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px var(--pad-x);
  background: var(--navy-800);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

.subfooter .accent {
  color: var(--amber-500);
}

/* —— Shop layout —— */
.shop-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 32px;
  align-items: start;
}

.sidebar {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-16);
  padding: 24px;
}

.sidebar h4 {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
}

.sidebar ul {
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
}

.sidebar li {
  margin-bottom: 10px;
}

.sidebar li a {
  font-size: 14px;
  color: var(--slate-700);
}

.sidebar li a:hover {
  color: var(--amber-500);
}

.featured-item {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 14px;
}

.featured-item img {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: var(--radius-8);
}

.featured-item span {
  font-size: 13px;
  font-weight: 500;
}

.product-card .card-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.product-card .cat {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--amber-500);
}

/* —— Detail pages —— */
.detail-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.detail-gallery img.main {
  width: 100%;
  height: 420px;
  object-fit: cover;
  border-radius: var(--radius-16);
  background: var(--navy-800);
}

.thumbs {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}

.thumbs img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: var(--radius-8);
  border: 2px solid transparent;
  cursor: pointer;
}

.thumbs img.active {
  border-color: var(--amber-500);
}

.detail-meta .cat {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--amber-500);
  margin-bottom: 10px;
}

.detail-meta h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 40px;
  line-height: 1.1;
  margin: 0 0 16px;
}

.include-list {
  list-style: none;
  margin: 24px 0;
  padding: 0;
}

.include-list li {
  position: relative;
  padding: 10px 0 10px 28px;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
}

.include-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 16px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--amber-500);
}

.note-box {
  margin-top: 20px;
  padding: 16px 18px;
  background: var(--cream-100);
  border-radius: var(--radius-12);
  border-left: 3px solid var(--amber-500);
  font-size: 14px;
  color: var(--slate-700);
}

/* —— Contact —— */
.contact-layout {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 32px;
  align-items: start;
}

.form-card,
.info-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-16);
  padding: 32px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group.full {
  grid-column: 1 / -1;
}

.form-group label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--slate-500);
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-8);
  background: var(--cream-50);
  color: var(--navy-900);
}

.form-group textarea {
  min-height: 140px;
  resize: vertical;
}

.info-card h3 {
  margin-bottom: 16px;
}

.info-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.info-row:last-child {
  border-bottom: none;
}

.info-row .label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--amber-500);
}

.map-block {
  margin-top: 32px;
  border-radius: var(--radius-16);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--navy-800);
  height: 360px;
  position: relative;
}

.map-block .map-label {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--white);
  text-align: center;
  padding: 40px;
  background:
    linear-gradient(135deg, rgba(7, 21, 36, 0.85), rgba(27, 58, 88, 0.75)),
    url("../assets/projects/building-electrical-1.jpg") center/cover;
}

.map-block .map-label h3 {
  color: var(--white);
  margin-bottom: 8px;
}

/* —— Gallery overlay —— */
.gallery-item {
  position: relative;
  border-radius: var(--radius-16);
  overflow: hidden;
  height: 260px;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-item .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent 40%, rgba(7, 21, 36, 0.85));
  display: flex;
  align-items: flex-end;
  padding: 18px;
  color: var(--white);
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
}

/* —— Service icon wrap —— */
.icon-wrap {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(7, 21, 36, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 16px;
  left: 16px;
}

.learn-more {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--amber-500);
}

/* —— Index hub —— */
.hub {
  padding: 80px var(--pad-x);
}

.hub-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.hub-card {
  padding: 28px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-16);
  transition: 0.15s ease;
}

.hub-card:hover {
  border-color: var(--amber-500);
  transform: translateY(-2px);
}

.hub-card h3 {
  margin-bottom: 8px;
}

.hub-card p {
  margin: 0 0 16px;
  color: var(--slate-500);
  font-size: 14px;
}

.notice {
  margin: 24px var(--pad-x) 0;
  padding: 14px 18px;
  background: #fff8e6;
  border: 1px solid var(--amber-400);
  border-radius: var(--radius-8);
  font-size: 13px;
  color: var(--slate-700);
}

/* —— Homepage hero —— */
.ai-body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--navy-900);
  background: var(--cream-50);
  -webkit-font-smoothing: antialiased;
}

.ai-body #wrapper,
.ai-body #content {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  background: var(--cream-50);
}

.ai-shell {
  width: 100%;
  background: var(--cream-50);
  min-height: 100vh;
}

.hero {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 56px;
  padding: 72px var(--pad-x);
  background: var(--navy-950);
  color: var(--white);
}

.hero-copy {
  width: min(560px, 100%);
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
}

.hero-eyebrow .bar {
  width: 28px;
  height: 3px;
  background: var(--amber-500);
}

.hero h1 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(42px, 5vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--white);
}

.hero-sub {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 16px;
  line-height: 1.6;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-media {
  display: flex;
  gap: 12px;
  align-items: center;
}

.hero-main {
  position: relative;
  width: 340px;
  height: 480px;
  border-radius: var(--radius-12);
  overflow: hidden;
  background: var(--navy-700);
}

.hero-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hero-tile {
  position: relative;
  width: 208px;
  height: 152px;
  border-radius: var(--radius-12);
  overflow: hidden;
  background: var(--navy-800);
}

.hero-main img,
.hero-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-label {
  position: absolute;
  left: 14px;
  bottom: 14px;
  padding: 6px 10px;
  border-radius: var(--radius-8);
  background: rgba(7, 21, 36, 0.72);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--white);
}

.chip-dark {
  background: var(--navy-800);
  border: 1px solid rgba(232, 163, 23, 0.45);
  color: var(--white);
}

/* Trust */
.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  padding: 40px var(--pad-x);
  background: var(--cream-50);
}

.trust-card {
  padding: 24px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-12);
}

.trust-card .n {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 40px;
  line-height: 1;
  color: var(--amber-500);
  margin-bottom: 8px;
}

.trust-card .t {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--navy-900);
  margin-bottom: 8px;
}

.trust-card p {
  margin: 0;
  font-size: 14px;
  color: var(--slate-500);
}

/* Services home */
.services-home .service-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

.services-home .card-media.service {
  height: 168px;
}

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

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--navy-900);
  position: relative;
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }

.site-header.is-open .nav-links {
  display: flex;
}

/* Responsive */
@media (max-width: 1200px) {
  :root { --pad-x: 48px; }
  .services-home .service-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .grid-6 {
    grid-template-columns: repeat(2, 1fr);
  }
  .hero-main { width: 280px; height: 400px; }
  .hero-tile { width: 180px; height: 128px; }
  .footer-main {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 900px) {
  .util-bar { display: none; }
  .main-nav { padding: 14px 20px; gap: 12px; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    padding: 12px 20px 20px;
    z-index: 30;
  }
  .nav-links li { border-bottom: 1px solid var(--line); }
  .nav-links a { display: block; padding: 12px 0; }
  .nav-dropdown-menu {
    position: static;
    display: block;
    border: none;
    box-shadow: none;
    padding: 0 0 8px 12px;
    margin: 0;
  }
  .nav-toggle { display: inline-flex; }
  .main-nav { position: relative; flex-wrap: wrap; }
  .main-nav .btn-amber.nav-cta { order: 2; margin-left: auto; }
  .hero {
    flex-direction: column;
    align-items: stretch;
    padding: 48px 20px;
    gap: 32px;
  }
  .hero-media { justify-content: center; }
  .trust-grid,
  .grid-3,
  .grid-4,
  .grid-6,
  .grid-2,
  .services-home .service-grid,
  .cta-band,
  .footer-main,
  .section,
  .section-sm {
    grid-template-columns: 1fr;
  }
  .trust-grid,
  .section,
  .section-sm,
  .cta-band,
  .footer-main,
  .subfooter {
    padding-left: 20px;
    padding-right: 20px;
  }
  .cta-band {
    flex-direction: column;
    align-items: flex-start;
  }
  .grid-2 .card-media.tall { height: 320px; }
  .intro-band {
    flex-direction: column;
    align-items: flex-start;
    padding: 40px 20px;
  }
  h2 { font-size: 36px; }
}

@media (max-width: 640px) {
  .hero-media {
    flex-direction: column;
  }
  .hero-main,
  .hero-tile {
    width: 100%;
  }
  .hero-main { height: 320px; }
  .hero-tile { height: 140px; }
  .main-nav .btn-amber.nav-cta {
    display: none;
  }
}

/* —— Clients / Partners logo grids —— */
.page-strip {
  padding: 72px var(--pad-x) 48px;
  background:
    linear-gradient(135deg, rgba(11, 31, 51, 0.94), rgba(7, 21, 36, 0.88)),
    radial-gradient(circle at 80% 20%, rgba(243, 186, 60, 0.18), transparent 40%);
  color: var(--white);
}

.page-strip-inner {
  max-width: 720px;
}

.page-strip h1 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 56px;
  line-height: 1.05;
  color: var(--white);
}

.page-strip .muted {
  color: rgba(255, 255, 255, 0.72);
  margin: 14px 0 0;
  max-width: 48ch;
}

.logo-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.logo-grid-dense {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.logo-cell {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 112px;
  padding: 20px 24px;
  background: var(--cream-50);
  border: 1px solid var(--line);
  border-radius: var(--radius-12);
  text-decoration: none;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.bg-page .logo-cell {
  background: var(--white);
}

.logo-cell img {
  max-height: 56px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  filter: grayscale(1);
  opacity: 0.78;
  transition: filter 0.25s ease, opacity 0.25s ease, transform 0.25s ease;
}

.logo-cell:hover {
  transform: translateY(-3px);
  border-color: rgba(232, 163, 23, 0.55);
  box-shadow: 0 12px 28px rgba(11, 31, 51, 0.08);
}

.logo-cell:hover img {
  filter: grayscale(0);
  opacity: 1;
  transform: scale(1.03);
}

.logo-cell-named {
  flex-direction: column;
  gap: 12px;
  min-height: 140px;
  text-align: center;
}

.logo-cell-named span {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--slate-700);
}

/* —— Client cards (overlapping circular logo) —— */
.client-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 48px 28px;
  padding-top: 48px;
}

.client-card-grid-dense {
  gap: 56px 24px;
}

.client-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  text-decoration: none;
  color: var(--white);
  min-height: 200px;
  padding: 72px 28px 36px;
  border-radius: 0 0 28px 28px;
  overflow: visible;
  isolation: isolate;
  background-color: var(--navy-900);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.client-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
  background-color: inherit;
  background-image:
    linear-gradient(180deg, rgba(7, 21, 36, 0.55) 0%, rgba(7, 21, 36, 0.82) 100%),
    var(--client-cover, none);
  background-size: cover, cover;
  background-position: center, center;
  pointer-events: none;
}

.client-card--n0 {
  background-color: var(--navy-900);
}

.client-card--n1 {
  background-color: var(--navy-800);
}

.client-card--n2 {
  background-color: var(--navy-700);
}

.client-card--has-cover::before {
  background-image:
    linear-gradient(180deg, rgba(7, 21, 36, 0.62) 0%, rgba(7, 21, 36, 0.88) 100%),
    var(--client-cover, none);
}

.client-card-avatar {
  position: absolute;
  top: 0;
  left: 50%;
  z-index: 1;
  width: 104px;
  height: 104px;
  margin: 0;
  padding: 6px;
  border-radius: 50%;
  background: var(--white);
  transform: translate(-50%, -50%);
  box-shadow: 0 8px 20px rgba(7, 21, 36, 0.18);
}

.client-card-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: contain;
  object-position: center;
  background: var(--cream-50);
}

.client-card-name {
  position: relative;
  z-index: 1;
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 26px;
  line-height: 1.15;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--white);
}

.client-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px rgba(7, 21, 36, 0.18);
}

.client-card:hover .client-card-avatar {
  box-shadow: 0 0 0 3px var(--amber-400), 0 8px 20px rgba(7, 21, 36, 0.18);
}

.pager {
  margin-top: 40px;
  display: flex;
  justify-content: center;
}

/* —— Partners marquee + logo grid —— */
.partners-section {
  overflow: hidden;
}

.partner-marquee {
  overflow: hidden;
  width: 100%;
  margin-top: 8px;
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}

.partner-marquee-track {
  display: flex;
  align-items: center;
  width: max-content;
  gap: 64px;
  padding: 12px 0;
  animation: partner-marquee 40s linear infinite;
}

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

@keyframes partner-marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.partner-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  min-width: 140px;
  text-decoration: none;
  color: inherit;
}

.partner-logo img {
  display: block;
  max-height: 52px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
  filter: grayscale(1);
  opacity: 0.72;
  transition: filter 0.25s ease, opacity 0.25s ease, transform 0.25s ease;
}

.partner-logo:hover img {
  filter: grayscale(0);
  opacity: 1;
  transform: scale(1.04);
}

.partner-logo-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px 24px;
}

.partner-logo-named {
  gap: 14px;
  min-width: 0;
  padding: 28px 20px;
  background: var(--cream-50);
  border: 1px solid var(--line);
  border-radius: var(--radius-12);
  transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.partner-logo-named:hover {
  transform: translateY(-3px);
  border-color: rgba(232, 163, 23, 0.45);
  box-shadow: 0 12px 28px rgba(11, 31, 51, 0.08);
}

.partner-logo-named span {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--slate-700);
  text-align: center;
}

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

  .partner-marquee-track {
    animation: none;
    padding-inline: 4px;
  }
}

@media (max-width: 1100px) {
  .logo-grid,
  .logo-grid-dense {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .client-card-grid-dense {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .partner-marquee-track {
    gap: 48px;
  }
}

@media (max-width: 768px) {
  .page-strip {
    padding: 56px 20px 36px;
  }
  .page-strip h1 {
    font-size: 40px;
  }
  .logo-grid,
  .logo-grid-dense {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .client-card-grid,
  .client-card-grid-dense {
    grid-template-columns: 1fr;
    gap: 56px;
    max-width: 360px;
    margin-inline: auto;
  }

  .client-card-name {
    font-size: 22px;
  }

  .partner-logo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

  .partner-marquee-track {
    gap: 36px;
    animation-duration: 28s;
  }

  .partner-logo {
    min-width: 110px;
  }

  .partner-logo img {
    max-height: 40px;
    max-width: 120px;
  }
}

/* —— Auth / Login —— */
.auth-body {
  margin: 0;
  min-height: 100vh;
  background: var(--cream-50);
}

.auth-page {
  display: grid;
  grid-template-columns: 1fr;
  min-height: 100vh;
}

.auth-brand {
  position: relative;
  display: flex;
  align-items: flex-end;
  padding: 40px 32px;
  background: var(--navy-950);
  color: var(--cream-50);
  overflow: hidden;
  min-height: 220px;
}

.auth-brand::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--auth-bg);
  background-size: cover;
  background-position: center;
  opacity: 0.22;
}

.auth-brand::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(7, 21, 36, 0.55) 0%,
    rgba(7, 21, 36, 0.92) 70%,
    var(--navy-950) 100%
  );
}

.auth-brand-inner {
  position: relative;
  z-index: 1;
  max-width: 420px;
  animation: auth-fade-up 0.55s ease both;
}

.auth-eyebrow {
  margin: 0 0 16px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--amber-500);
}

.auth-logo {
  margin-bottom: 20px;
}

.auth-brand .logo-mark {
  background: var(--navy-800);
  color: var(--amber-500);
}

.auth-brand .logo-text strong {
  color: var(--cream-50);
}

.auth-brand .logo-text small {
  color: rgba(245, 241, 232, 0.65);
}

.auth-systems {
  margin: 0;
  font-size: 13px;
  letter-spacing: 0.04em;
  color: rgba(245, 241, 232, 0.55);
}

.auth-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
  background: var(--cream-50);
}

.auth-panel-inner {
  width: 100%;
  max-width: 420px;
  animation: auth-fade-up 0.55s ease 0.08s both;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.auth-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 40px;
  line-height: 1.1;
  letter-spacing: 0.02em;
  color: var(--navy-900);
}

.auth-lead {
  margin: -4px 0 4px;
  font-size: 15px;
  color: var(--slate-500);
}

.auth-errors {
  margin-top: 0;
}

.auth-errors ul {
  margin: 0;
  padding-left: 18px;
}

.auth-password {
  display: flex;
  align-items: stretch;
  border: 1px solid var(--line);
  border-radius: var(--radius-8);
  background: var(--cream-50);
  overflow: hidden;
}

.auth-password input {
  flex: 1;
  border: 0;
  background: transparent;
  border-radius: 0;
  min-width: 0;
}

.auth-password input:focus {
  outline: none;
}

.auth-password:focus-within {
  border-color: var(--navy-700);
  box-shadow: 0 0 0 3px rgba(27, 58, 88, 0.12);
}

.auth-password-toggle {
  flex-shrink: 0;
  border: 0;
  border-left: 1px solid var(--line);
  background: transparent;
  padding: 0 14px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--slate-500);
  cursor: pointer;
}

.auth-password-toggle:hover {
  color: var(--navy-900);
  background: var(--cream-100);
}

.auth-admin-note {
  margin-top: 20px;
}

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

@media (min-width: 900px) {
  .auth-page {
    grid-template-columns: 1fr 1fr;
  }

  .auth-brand {
    min-height: 100vh;
    align-items: center;
    padding: 64px 72px;
  }

  .auth-brand::after {
    background: linear-gradient(
      105deg,
      rgba(7, 21, 36, 0.5) 0%,
      rgba(7, 21, 36, 0.88) 55%,
      var(--navy-950) 100%
    );
  }

  .auth-panel {
    padding: 64px 48px;
  }

  .auth-title {
    font-size: 48px;
  }
}
