/* RESET & BASE  */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0
}

html {
  scroll-behavior: smooth;
  font-size: 17px
}

body {
  font-family: var(--sans);
  background: #fff;
  color: #1c3d6e;
  line-height: 1.6;
  overflow-x: hidden;
}

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

ul {
  list-style: none
}

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

/* TOKENS */
:root {
  --navy: #293e6e;
  --navy2: #253a5c;
  --blue: #2563eb;
  --mid: #64748b;
  --muted: #475569;
  --light: #e2e8f0;
  --border: #cbd5e1;
  --bg: #f8fafc;
  --white: #ffffff;
  --serif: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.1), 0 8px 10px -6px rgba(15, 23, 42, 0.1);
  --shadow2: 0 20px 25px -5px rgba(15, 23, 42, 0.15), 0 8px 10px -6px rgba(15, 23, 42, 0.1);
}

/*  UTILITIES  */
.wrap {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 32px
}

section {
  padding: 96px 0
}

.section-tag {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px
}

.section-tag::before {
  content: '';
  width: 26px;
  height: 2px;
  background: var(--blue);
  border-radius: 2px;
  flex-shrink: 0
}

.section-tag span {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--blue)
}

h2 {
  font-family: var(--serif);
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.15;
  letter-spacing: -.4px;
  margin-bottom: 14px
}

.lead {
  font-size: 17px;
  color: var(--muted);
  font-weight: 500;
  line-height: 1.85;
  max-width: 500px;
  margin-bottom: 0
}

.btn {
  display: inline-block;
  padding: 12px 26px;
  font-size: 14px;
  font-weight: 600;
  font-family: var(--sans);
  border-radius: 3px;
  transition: background .2s, border-color .2s, color .2s;
  cursor: pointer
}

.btn-solid {
  background: var(--navy);
  color: #fff;
  border: 1.5px solid var(--navy)
}

.btn-solid:hover,
.btn-ghost:hover {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}

.btn-ghost {
  background: transparent;
  color: var(--navy);
  border: 1.5px solid var(--border)
}


.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .65s ease, transform .65s ease
}

.reveal.visible {
  opacity: 1;
  transform: none
}

/*  NAV  */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: linear-gradient(135deg, #cbeaf8 0%, #e5f4fc 100%);
  ;
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s;
}

#navbar.scrolled {
  border-color: var(--border);
  box-shadow: var(--shadow)
}

.nav-wrap {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 32px;
  height: 66px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav-logo {
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -.3px;
  white-space: nowrap
}

.nav-logo span {
  color: var(--blue)
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px
}

.nav-links a {
  font-size: 17px;
  font-weight: 500;
  color: var(--navy);
  transition: color .2s;
  white-space: nowrap
}

.nav-links a:hover {
  color: var(--blue)
}

.nav-links a.active {
  color: var(--blue);
  font-weight: 700;
  position: relative;
}

.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--blue);
  border-radius: 2px;
}

.nav-btn {
  background: rgba(21, 50, 90, 0.05);
  border: 1px solid var(--navy);
  padding: 7px 14px;
  border-radius: 3px;
  font-size: 13px;
  font-weight: 600;
  color: var(--navy) !important;
  white-space: nowrap;
  transition: all 0.2s;
  text-decoration: none;
}

.nav-btn:hover {
  background: var(--navy);
  color: #fff !important;
}

.nav-cta {
  background: var(--navy);
  color: #fff;
  padding: 8px 18px;
  border-radius: 3px;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  transition: background .2s
}

.nav-cta:hover {
  background: var(--blue)
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px
}

.hamburger span {
  width: 22px;
  height: 2px;
  background: var(--navy);
  display: block;
  border-radius: 2px;
  transition: all .3s
}

.mobile-menu {
  display: none;
  position: fixed;
  top: 66px;
  left: 0;
  right: 0;
  background: #fff;
  border-bottom: 1px solid var(--border);
  padding: 20px 32px;
  z-index: 199;
  flex-direction: column;
  gap: 16px;
  box-shadow: var(--shadow2)
}

.mobile-menu.open {
  display: flex
}

.mobile-menu a {
  font-size: 15px;
  font-weight: 500;
  color: var(--navy);
  padding: 6px 0;
  border-bottom: 1px solid var(--border)
}

.mobile-menu a.active {
  color: var(--blue);
  font-weight: 700;
}

/*  HERO */
#home {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 66px 0 80px;
  background: var(--white);
  position: relative;
  overflow: hidden;
}

#home>.wrap {
  flex: 1;
  display: flex;
  align-items: center;
  width: 100%;
  margin-top: 40px;
}

/* WHY TECHNOMECH BANNER  */
.why-banner-container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 32px;
  z-index: 10;
  position: relative;
}

.why-banner {
  width: 100%;
  background: linear-gradient(135deg, #15325a 0%, #1c3d6e 50%, #4a8ce2 100%);
  color: #fff;
  padding: 24px 34px;
  box-shadow: var(--shadow);
  border-radius: 8px;
}

.why-banner-layout {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.why-banner-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.why-banner-left {
  display: flex;
  align-items: center;
  gap: 30px;
}

.why-banner-title {
  font-family: var(--sans);
  font-size: 38px;
  font-weight: 800;
  transform: rotate(-15deg);
  line-height: 1.1;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  white-space: nowrap;
}

.why-banner-title span {
  display: block;
}

.why-banner-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.why-banner-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15.5px;
  font-weight: 600;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.why-banner-list li::before {
  content: '✓';
  color: #fff;
  font-size: 18px;
  font-weight: 900;
}

.why-banner-list li:nth-child(1),
.why-banner-list li:nth-child(2) {
  color: #f9a826;
}

.why-banner-list li:nth-child(3),
.why-banner-list li:nth-child(4) {
  color: #ffffff;
}

.why-banner-list li:nth-child(5),
.why-banner-list li:nth-child(6) {
  color: #4ade80;
}

.why-banner-badge {
  background: linear-gradient(145deg, #d32f2f, #b71c1c);
  color: #f9a826;
  border-radius: 50%;
  width: 110px;
  height: 110px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.3), 0 5px 15px rgba(0, 0, 0, 0.4);
  border: 4px solid #8e0000;
  transform: rotate(-10deg);
  flex-shrink: 0;
}

.why-banner-badge-top {
  font-size: 17px;
  font-weight: 700;
  line-height: 1;
}

.why-banner-badge-bottom {
  font-size: 28px;
  font-weight: 900;
  line-height: 1;
  margin-top: 2px;
}

.why-banner-bottom {
  text-align: center;
  margin-top: 20px;
  width: 100%;
}

.why-banner-desc {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 12px;
  font-style: italic;
}

.why-banner-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
}

@keyframes slideInFromRight {
  from {
    opacity: 0;
    transform: translateX(150px);
  }

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

@keyframes slideInFromLeft {
  from {
    opacity: 0;
    transform: translateX(-150px);
  }

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

.slide-in-right {
  animation: slideInFromRight 0.25s ease-out forwards;
}

.slide-in-left {
  animation: slideInFromLeft 0.25s ease-out forwards;
}

.why-banner-dots {
  display: flex;
  gap: 6px;
  align-items: center;
}

.why-banner-dots span {
  width: 30px;
  height: 20px;
  position: relative;
  cursor: pointer;
}

.why-banner-dots span::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 2px;
  transition: background 0.3s;
}

.why-banner-dots span.active::after {
  background: #fff;
}

.why-banner-btn {
  background: #f9a826;
  color: #000;
  border: none;
  padding: 6px 14px;
  font-weight: 800;
  font-size: 13px;
  cursor: pointer;
  border-radius: 2px;
}

.why-banner-btn:hover {
  background: #e0931d;
}

/* Banner Nav Arrows */
.why-banner-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  cursor: pointer;
  z-index: 20;
  font-size: 24px;
  font-weight: bold;
  transition: all 0.3s ease;
  user-select: none;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.why-banner-nav:hover {
  background: rgba(255, 255, 255, 0.4);
  transform: translateY(-50%) scale(1.1);
}

.why-banner-prev {
  left: 34px;
}

.why-banner-next {
  right: 34px;
}

@media(max-width: 960px) {
  .why-banner-nav {
    width: 32px;
    height: 32px;
    font-size: 20px;
  }

  .why-banner-prev {
    left: 4px;
  }

  .why-banner-next {
    right: 4px;
  }
}

.hero-blob {
  position: absolute;
  top: -200px;
  right: -220px;
  width: 680px;
  height: 680px;
  border-radius: 50%;
  background: radial-gradient(circle, #e5f1fd 0%, transparent 68%);
  pointer-events: none;
}

.hero-line {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--border)
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 540px;
  gap: 56px;
  align-items: stretch
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #edf4fd;
  border: 1px solid var(--border);
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 26px;
}

.hero-pill .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue);
  flex-shrink: 0
}

.hero-pill span {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--mid);
  letter-spacing: .08em
}

h1 {
  font-family: var(--serif);
  font-size: clamp(40px, 5.5vw, 68px);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -1.5px;
  color: var(--navy);
  margin-bottom: 20px
}

h1 em {
  font-style: normal;
  color: var(--blue)
}

.hero-desc {
  font-size: 17px;
  color: var(--navy2);
  line-height: 1.85;
  max-width: 450px;
  font-weight: 500;
  margin-bottom: 34px
}

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

.hero-stats {
  display: flex;
  gap: 44px;
  margin-top: 52px;
  padding-top: 36px;
  border-top: 1px solid var(--border)
}

.stat .num {
  font-family: var(--serif);
  font-size: 32px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1
}

.stat .lbl {
  font-size: 12px;
  color: var(--muted);
  margin-top: 5px
}

/* Hero card */
.hero-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 32px;
  box-shadow: var(--shadow2);
  position: relative;
}

.hc-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--blue);
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 22px
}

.hc-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 11px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px
}

.hc-row:last-of-type {
  border-bottom: none
}

.hc-k {
  color: var(--muted)
}

.hc-v {
  font-weight: 600;
  color: var(--navy);
  font-family: var(--serif);
  font-size: 15px
}

.hc-bar {
  margin-top: 20px
}

.hc-bar-top {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 6px
}

.hc-track {
  height: 3px;
  background: var(--bg);
  border-radius: 2px
}

.hc-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--blue), var(--navy));
  border-radius: 2px;
  width: 0;
  transition: width 1.4s cubic-bezier(.22, 1, .36, 1)
}

.hc-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: #edfaf4;
  border: 1px solid #b6e8cc;
  border-radius: 20px;
  padding: 5px 12px;
  margin-top: 18px
}

.hc-badge .pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #28a85e;
  animation: pulse 1.6s ease infinite
}

.hc-badge span {
  font-size: 12px;
  color: #28a85e;
  font-weight: 600;
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1
  }

  50% {
    opacity: .35
  }
}

/* ABOUT  */
#about {
  background: var(--bg)
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: start;
  margin-top: 48px
}

.about-body p {
  color: var(--muted);
  font-weight: 400;
  line-height: 1.9;
  font-size: 17px;
  margin-bottom: 16px
}

.about-body p:first-child {
  font-size: 18px;
  color: #3a5a80;
  font-weight: 500
}

.about-pillars {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px
}

.pillar {
  background: var(--white);
  border: 1px solid var(--border);
  padding: 22px 20px;
  border-radius: 5px;
  border-top: 2px solid var(--blue);
  transition: box-shadow .2s
}

.pillar:hover {
  box-shadow: var(--shadow)
}

.pillar h4 {
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 6px
}

.pillar p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
  font-weight: 500
}

/* PRODUCTS*/
#products {
  background: var(--white)
}

.prod-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 44px
}

.prod-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  background: transparent;
  border-radius: 6px;
  overflow: hidden
}

.prod-card {
  background: var(--white);
  padding: 36px 26px;
  transition: background .2s;
  position: relative
}

.prod-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s
}

.prod-card:hover {
  background: var(--bg)
}

.prod-card:hover::before {
  transform: scaleX(1)
}

.prod-icon {
  width: 46px;
  height: 46px;
  background: #edf4fd;
  border: 1px solid var(--border);
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: var(--blue);
  margin-bottom: 18px
}

.prod-card h3 {
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 10px;
  line-height: 1.3
}

.prod-card p {
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.75;
  font-weight: 400;
  margin-bottom: 16px
}

.prod-specs {
  display: flex;
  flex-direction: column;
  gap: 6px
}

.spec-item {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 17px;
  color: var(--muted)
}

.spec-item::before {
  content: '';
  width: 4px;
  height: 4px;
  background: var(--blue);
  border-radius: 1px;
  flex-shrink: 0
}

/*  SERVICES  */
#services {
  background: var(--bg)
}

.srv-layout {
  display: grid;
  grid-template-columns: 210px 1fr;
  gap: 20px;
  margin-top: 48px
}

.srv-tabs {
  display: flex;
  flex-direction: column;
  gap: 3px
}

.srv-tab {
  padding: 13px 16px;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  cursor: pointer;
  border-radius: 4px;
  border-left: 3px solid transparent;
  transition: all .2s;
  font-family: var(--sans);
  background: transparent
}

.srv-tab:hover {
  background: rgba(255, 255, 255, .7);
  color: var(--navy)
}

.srv-tab.active {
  background: var(--white);
  color: var(--navy);
  border-left-color: var(--blue);
  font-weight: 600;
  box-shadow: var(--shadow)
}

.srv-panel {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 36px 40px;
  box-shadow: var(--shadow)
}

.srv-detail {
  display: none
}

.srv-detail.active {
  display: block
}

.srv-detail h3 {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 14px
}

.srv-detail p {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.9;
  font-weight: 500;
  margin-bottom: 20px
}

.srv-feats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 24px
}

.srv-feat {
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 15px 17px;
  border-radius: 4px
}

.srv-feat strong {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 4px
}

.srv-feat span {
  font-size: 12.5px;
  color: var(--muted)
}

/* CASE STUDIES  */
#case-studies {
  background: var(--white)
}

.cs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 44px
}

.cs-card {
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
  background: var(--white);
  transition: box-shadow .25s, transform .25s
}

.cs-card:hover {
  box-shadow: var(--shadow2);
  transform: translateY(-3px)
}

.cs-thumb {
  height: 140px;
  background: linear-gradient(135deg, #eaf3fd 0%, #d5e8f8 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  color: var(--blue);
  opacity: .35;
  position: relative;
  overflow: hidden;
}

.cs-thumb-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(28, 61, 110, .06);
  padding: 6px 14px;
  font-size: 11px;
  color: var(--muted);
  font-weight: 500;
  text-align: center;
  opacity: 1;
  font-size: 11px;
  letter-spacing: .04em
}

.cs-body {
  padding: 18px 20px 22px
}

.cs-client {
  font-size: 11px;
  font-weight: 600;
  color: var(--blue);
  letter-spacing: .09em;
  text-transform: uppercase;
  margin-bottom: 7px
}

.cs-card h3 {
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.35;
  margin-bottom: 6px
}

.cs-type {
  font-size: 12px;
  color: var(--light)
}

.cs-note {
  font-size: 11.5px;
  color: var(--muted);
  margin-top: 8px;
  line-height: 1.6;
  font-weight: 300
}

/* Modal */
.overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(18, 42, 82, .55);
  backdrop-filter: blur(5px);
  align-items: center;
  justify-content: center;
  padding: 20px
}

.overlay.open {
  display: flex
}

.modal {
  background: var(--white);
  border-radius: 10px;
  max-width: 600px;
  width: 100%;
  box-shadow: 0 28px 80px rgba(18, 42, 82, .22);
  overflow: hidden;
  position: relative;
  max-height: 90vh;
  overflow-y: auto
}

.modal-photos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--border)
}

.modal-photo {
  height: 150px;
  background: linear-gradient(135deg, #eaf3fd, #d0e5f7);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 44px;
  color: var(--blue);
  opacity: .28
}

.modal-photo-label {
  font-size: 10px;
  color: var(--muted);
  text-align: center;
  padding: 5px;
  background: rgba(255, 255, 255, .7);
  opacity: 1
}

.modal-body {
  padding: 28px 32px
}

.modal-client-tag {
  font-size: 11px;
  font-weight: 600;
  color: var(--blue);
  letter-spacing: .09em;
  text-transform: uppercase;
  margin-bottom: 8px
}

.modal-body h2 {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 6px;
  letter-spacing: -.3px
}

.modal-type {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 18px
}

.modal-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 20px
}

.meta-box {
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 12px 14px;
  border-radius: 4px
}

.meta-box label {
  font-size: 10px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .07em;
  display: block;
  margin-bottom: 4px
}

.meta-box span {
  font-size: 14px;
  color: var(--navy);
  font-weight: 600
}

.modal-body p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.85;
  font-weight: 300
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 10;
  background: rgba(255, 255, 255, .9);
  border: 1px solid var(--border);
  color: var(--muted);
  width: 32px;
  height: 32px;
  border-radius: 4px;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .2s
}

.modal-close:hover {
  border-color: var(--blue);
  color: var(--blue)
}

/* CLIENTS  */
#clients {
  background: var(--bg)
}

.clients-note {
  font-size: 14px;
  color: var(--muted);
  font-weight: 400;
  margin-top: 10px;
  margin-bottom: 40px
}

.client-logos {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px
}

.client-logo {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 5px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: border-color .2s, box-shadow .2s;
  text-align: center
}

.client-logo img {
  width: 90px;
  height: 90px;
  object-fit: contain;
}

.client-logo:hover {
  border-color: var(--mid);
  box-shadow: var(--shadow)
}


.client-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--navy)
}

.client-sector {
  font-size: 11px;
  color: var(--muted);
  letter-spacing: .05em
}

.client-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--blue);
  opacity: .5
}

/* OFFICES  */
#offices {
  background: var(--white)
}

.offices-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
  margin-top: 44px
}

.office-card {
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 16px 20px;
  transition: box-shadow .2s
}

.office-card:hover {
  background: rgb(192, 225, 236)
}

.office-card.hq {
  background: var(--navy);
  border-color: var(--navy);
  border-top: 3px solid var(--blue)
}

.office-label {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--blue);
  margin-bottom: 10px
}

.office-card h4 {
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 6px
}

.office-card.hq h4 {
  color: #fff
}

.office-card address {
  font-style: normal;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.85;
  font-weight: 500
}

.office-card.hq address {
  color: #9ab8d8
}

.office-card.hq address a {
  color: var(--blue)
}

.office-card address a {
  color: var(--navy);
  font-weight: 500
}

/* CONTACT  */
#contact {
  background: var(--navy);
  padding: 96px 0
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: start
}

.contact-info .section-tag::before {
  background: var(--blue)
}

.contact-info .section-tag span {
  color: var(--blue)
}

.contact-info h2 {
  color: #fff
}

.contact-desc {
  font-size: 17px;
  color: #e3e8ec;
  line-height: 1.9;
  font-weight: 300;
  margin-bottom: 32px;
  max-width: 400px
}

.cinfo-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 20px
}

.cinfo-icon {
  width: 38px;
  height: 38px;
  background: rgba(186, 208, 221);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  flex-shrink: 0
}

.cinfo-label {
  font-size: 14px;
  color: #f2f2f3;
  text-transform: uppercase;
  letter-spacing: .07em;
  margin-bottom: 3px
}

.cinfo-val {
  font-size: 14.5px;
  color: #c4d8f0
}

.cinfo-val a {
  color: #c4d8f0
}

.cform {
  background: var(--white);
  border-radius: 8px;
  padding: 36px
}

.cform-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px
}

.cform input,
.cform textarea,
.cform select {
  width: 100%;
  border: 1px solid var(--border);
  padding: 11px 14px;
  font-size: 14px;
  font-family: var(--sans);
  color: var(--navy);
  background: var(--bg);
  border-radius: 4px;
  outline: none;
  transition: border-color .2s;
  display: block;
}

.cform input:focus,
.cform textarea:focus,
.cform select:focus {
  border-color: var(--blue)
}

.cform select {
  color: var(--muted);
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M0 0l6 8 6-8z' fill='%236b87a8'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 10px;
  background-color: var(--bg)
}

.cform textarea {
  resize: vertical;
  min-height: 100px
}

.cform .field {
  margin-bottom: 12px
}

.cform-submit {
  width: 100%;
  background: var(--navy);
  color: #fff;
  border: none;
  padding: 13px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  border-radius: 4px;
  cursor: pointer;
  transition: background .2s;
  margin-top: 4px
}

.cform-submit:hover {
  background: var(--blue)
}

/* FOOTER  */
footer {
  background: var(--navy2);
  padding: 56px 0 28px
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 52px;
  margin-bottom: 48px
}

.footer-brand .logo {
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px
}

.footer-brand .logo span {
  color: var(--blue)
}

.footer-brand p {
  font-size: 15px;
  color: #b1c9e4;
  line-height: 1.8;
  font-weight: 400;
  max-width: 240px
}

.footer-col h5 {
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .09em;
  color: #fff;
  margin-bottom: 16px
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 9px
}

.footer-col ul li a {
  font-size: 15px;
  color: #a9c7e9;
  transition: color .2s
}

.footer-col ul li a:hover {
  color: var(--blue)
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid rgba(110, 166, 238, .1)
}

.footer-copy {
  font-size: 12px;
  color: #94bae6
}

.footer-esd {
  font-size: 11px;
  font-weight: 700;
  color: #94bae6;
  letter-spacing: .1em
}

.product-detail-section {
  padding: 96px 0 80px;
}

@media (max-width: 960px) {
  .product-detail-section {
    padding: 66px 0 40px;
  }
}

/* PRODUCT SUBPAGES LAYOUT */
.product-grid-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 28px;
  align-items: start;
}

.product-sidebar {
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  position: sticky;
  top: 86px;
  z-index: 10;
}

.product-content {
  border-top: 1px solid var(--border);
  border-left: 1px solid var(--border);
  border-radius: 10px 0 0 0;
  overflow: hidden;
}

@media (max-width: 960px) {
  .product-grid-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .product-sidebar {
    position: static;
    display: block;
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
  }

  /* Ensure the "Products" header is visible on mobile */
  .product-sidebar>div:first-child {
    display: block !important;
  }

  .product-sidebar a {
    display: block !important;
    width: auto !important;
    border-bottom: 1px solid var(--border) !important;
    white-space: normal !important;
  }

  .product-content {
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
  }
}

/* DESKTOP OFFICES EXPLICIT LAYOUT  */
@media(min-width: 961px) {
  .offices-grid {
    grid-template-columns: 1fr 1fr 1fr 1fr 1fr !important;
  }

  .offices-grid>*:nth-child(1) {
    grid-column: 1;
    grid-row: 1 / 3;
  }

  .offices-grid>*:nth-child(2) {
    grid-column: 2;
    grid-row: 1;
  }

  .offices-grid>*:nth-child(3) {
    grid-column: 2;
    grid-row: 2;
  }

  .offices-grid>*:nth-child(4) {
    grid-column: 3;
    grid-row: 1;
  }

  .offices-grid>*:nth-child(5) {
    grid-column: 4;
    grid-row: 1;
  }

  .offices-grid>*:nth-child(6) {
    grid-column: 5;
    grid-row: 1;
  }
}

/* RESPONSIVE */
@media(max-width:960px) {
  #home {
    min-height: auto;
    padding-bottom: 48px;
  }

  .hero-inner {
    grid-template-columns: 1fr 1fr;
    gap: 32px
  }

  .hero-card {
    display: none
  }

  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 48px
  }

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

  .srv-layout {
    grid-template-columns: 1fr
  }

  .srv-tabs {
    flex-direction: row;
    flex-wrap: wrap
  }

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

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

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

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px
  }

  .nav-links,
  .nav-cta {
    display: none
  }

  .hamburger {
    display: flex
  }

  .why-banner-top {
    flex-direction: column;
    gap: 20px;
  }

  .why-banner-left {
    flex-direction: column;
    text-align: center;
  }

  .why-banner-title {
    transform: rotate(0);
    font-size: 32px;
  }
}

@media(max-width:600px) {
  .wrap {
    padding: 0 20px
  }

  section {
    padding: 72px 0
  }

  .prod-grid,
  .cs-grid,
  .offices-grid {
    grid-template-columns: 1fr
  }

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

  .footer-grid {
    grid-template-columns: 1fr
  }

  .cform-row {
    grid-template-columns: 1fr
  }

  .hero-stats {
    gap: 16px
  }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 32px
  }

  .modal-photos {
    grid-template-columns: 1fr
  }

  .modal-meta {
    grid-template-columns: 1fr 1fr
  }
}

/* LIGHTBOX */
.lightbox-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.lightbox-overlay.open {
  opacity: 1;
  visibility: visible;
}

.lightbox-modal {
  width: 90%;
  max-width: 1000px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.lightbox-main {
  width: 100%;
  height: auto;
  max-height: 60vh;
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
  background: #000;
  border-radius: 4px;
  overflow: hidden;
}

.lightbox-main img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.lightbox-controls {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
}

.lightbox-controls button {
  background: #0b31db;
  color: #fff;
  border: 1px solid #0b31db;
  padding: 10px 24px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  border-radius: 2px;
  transition: all 0.2s;
}

.lightbox-close {
  position: absolute;
  top: -40px;
  right: 0;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 32px;
  cursor: pointer;
  line-height: 1;
}

.lightbox-thumbnails {
  display: flex;
  gap: 10px;
  justify-content: center;
  width: 100%;
  overflow-x: auto;
  padding: 10px 0;
}

.lightbox-thumbnails img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 4px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.2s;
}

.lightbox-thumbnails img:hover {
  opacity: 0.8;
}

.lightbox-thumbnails img.active {
  border-color: var(--blue);
  box-shadow: 0 0 10px rgba(74, 140, 226, 0.5);
}

@media(max-width: 600px) {
  .lightbox-main {
    max-height: 40vh;
  }

  .lightbox-controls button {
    padding: 8px 16px;
    font-size: 13px;
  }

  .lightbox-thumbnails img {
    width: 50px;
    height: 50px;
  }
}