/* ArchMEP – Main Styles */

:root {
  --primary: #0F172A;
  --accent: #00AEEF;
  --accent-dim: rgba(0, 174, 239, 0.12);
  --secondary: #1E40AF;
  --mep-mechanical: #00AEEF;
  --mep-electrical: #F59E0B;
  --mep-plumbing: #10B981;
  --mep-fire: #EF4444;
  --mep-structural: #8B5CF6;
  --blueprint-line: rgba(0, 174, 239, 0.18);
  --blueprint-bg: #0a101f;
  --bg: #F4F6F9;
  --white: #FFFFFF;
  --text: #4B5563;
  --heading: #111827;
  --border: #E5E7EB;
  --border-dark: #D1D5DB;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 8px 30px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 24px 60px rgba(15, 23, 42, 0.1);
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --transition: 0.25s ease;
  --container: 1200px;
  --header-height: 76px;
  --font: 'Poppins', sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;
  --font-display: 'Syne', sans-serif;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: hidden;
}

body {
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

button, input, select, textarea, .btn {
  font-family: var(--font);
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition);
}

ul, ol {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--heading);
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

h4, h5, h6 {
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.5rem, 5vw, 4.5rem); }
h2 { font-size: clamp(2rem, 3.5vw, 3rem); }
h3 { font-size: clamp(1.5rem, 2.5vw, 2rem); }
h4 { font-size: 1.25rem; }

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 72px 0;
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 64px;
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: var(--accent-dim);
  border: 1px solid rgba(0, 174, 239, 0.25);
  border-radius: var(--radius-sm);
  margin-bottom: 20px;
}

.section-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 1px;
  flex-shrink: 0;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.625rem, 2.8vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.section-header--left {
  text-align: left;
  margin-left: 0;
  margin-right: 0;
  max-width: none;
}

.section-desc {
  font-size: 1.0625rem;
  color: var(--text);
  line-height: 1.65;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

.btn-primary:hover {
  background: #1E293B;
  border-color: #1E293B;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.18);
}

.btn-secondary {
  background: transparent;
  color: var(--primary);
  border-color: var(--border);
}

.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

.btn-white {
  background: var(--white);
  color: var(--primary);
  border-color: var(--white);
}

.btn-white:hover {
  background: transparent;
  color: var(--white);
  transform: translateY(-2px);
}

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

.btn-outline-white:hover {
  background: var(--white);
  color: var(--primary);
  border-color: var(--white);
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-height);
  transition: background var(--transition), box-shadow var(--transition), backdrop-filter var(--transition);
}

.header.is-scrolled {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow-md);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
}

.logo {
  display: inline-flex;
  align-items: center;
  line-height: 1;
}

.logo-img {
  display: block;
  height: 44px;
  width: auto;
  object-fit: contain;
}

.footer .logo {
  color: var(--white);
  font-family: var(--font);
  font-size: 1.625rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-bottom: 20px;
}

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav-desktop a {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text);
  position: relative;
}

.nav-desktop a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width var(--transition);
}

.nav-desktop a:hover,
.nav-desktop a.active {
  color: var(--primary);
}

.nav-desktop a:hover::after,
.nav-desktop a.active::after {
  width: 100%;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.header-cta {
  padding: 10px 22px;
  font-size: 0.875rem;
}

.header-cta .cta-short {
  display: none;
}

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--primary);
  transition: all var(--transition);
  border-radius: 2px;
}

.hamburger.is-active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.is-active span:nth-child(2) {
  opacity: 0;
}

.hamburger.is-active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Nav */
.mobile-nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.5);
  z-index: 1001;
}

.mobile-nav {
  position: fixed;
  top: 0;
  right: 0;
  width: min(360px, 85vw);
  height: 100vh;
  background: var(--white);
  z-index: 1002;
  padding: 100px 32px 32px;
  box-shadow: -8px 0 40px rgba(15, 23, 42, 0.15);
}

.mobile-nav a {
  display: block;
  padding: 16px 0;
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--primary);
  border-bottom: 1px solid var(--border);
}

.mobile-nav a:hover {
  color: var(--accent);
}

.mobile-nav .btn {
  display: inline-flex;
  width: 100%;
  margin-top: 24px;
  padding: 14px 28px;
  border-bottom: none;
  text-align: center;
}

/* Hero – full-bleed photo, company-first */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(var(--header-height) + 72px) 0 80px;
  overflow: hidden;
  background: #1a2332;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-media img,
.hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  transition: opacity 1.2s ease;
}

.hero-slide.is-active {
  opacity: 1;
  z-index: 1;
}

.hero-shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.55) 0%, rgba(15, 23, 42, 0.72) 50%, rgba(15, 23, 42, 0.82) 100%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
}

.hero-content {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.hero-brand {
  margin: 0 0 18px;
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--white);
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: var(--white);
  margin: 0 0 20px;
}

.hero-desc {
  font-size: 1.0625rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.82);
  margin: 0 auto 32px;
  line-height: 1.7;
  max-width: 560px;
}

.hero .btn-group {
  justify-content: center;
  gap: 12px;
}

.capability-strip {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 28px 0;
}

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

.capability-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  color: inherit;
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}

.capability-card:hover {
  border-color: rgba(0, 174, 239, 0.35);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.capability-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
}

.capability-card span {
  display: block;
  padding: 14px 16px;
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--heading);
  line-height: 1.35;
}

.capability-list {
  display: none;
}

.btn-hero-solid {
  background: var(--accent) !important;
  color: var(--white) !important;
  border-color: var(--accent) !important;
}

.btn-hero-solid:hover {
  background: #0099d4 !important;
  border-color: #0099d4 !important;
  color: var(--white) !important;
  transform: translateY(-1px);
}

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

.btn-hero-outline:hover {
  background: var(--white);
  color: var(--primary);
  border-color: var(--white);
}

.hero .btn-primary:not(.btn-hero-solid) {
  background: var(--white);
  color: var(--primary);
  border-color: var(--white);
}

.hero .btn-primary:not(.btn-hero-solid):hover {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}

/* Header over dark hero (homepage) */
.header-on-hero:not(.is-scrolled) .nav-desktop a {
  color: rgba(255, 255, 255, 0.85);
}

.header-on-hero:not(.is-scrolled) .nav-desktop a:hover,
.header-on-hero:not(.is-scrolled) .nav-desktop a.active {
  color: var(--white);
}

.header-on-hero:not(.is-scrolled) .nav-desktop a::after {
  background: var(--white);
}

.header-on-hero:not(.is-scrolled) .logo-img {
  filter: brightness(0) invert(1);
}

.header-on-hero:not(.is-scrolled) .hamburger span {
  background: var(--white);
}

.header-on-hero:not(.is-scrolled) .header-cta {
  background: var(--white);
  color: var(--primary);
  border-color: var(--white);
}

.header-on-hero:not(.is-scrolled) .header-cta:hover {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}

/* Stats */
.stats {
  background: var(--primary);
  padding: 72px 0;
  position: relative;
  border-top: 3px solid var(--accent);
}

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

.stat-item {
  text-align: center;
  color: var(--white);
  position: relative;
  padding: 16px 24px;
}

.stat-item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 48px;
  background: rgba(255, 255, 255, 0.12);
}

.stat-number {
  font-size: clamp(2.25rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 8px;
}

.stat-number span {
  font-size: 0.6em;
}

.stat-label {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.75);
  font-weight: 500;
}

/* Services Grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.service-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 28px 24px 24px;
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  box-shadow: var(--shadow-sm);
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
  overflow: hidden;
}

.service-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.service-card:hover::after {
  transform: scaleX(1);
}

.service-icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 174, 239, 0.08);
  border: 1px solid rgba(0, 174, 239, 0.15);
  border-radius: var(--radius-sm);
  margin-bottom: 22px;
  color: var(--accent);
}

.service-icon svg {
  width: 28px;
  height: 28px;
}

.service-card h3 {
  font-family: var(--font-display);
  font-size: 1.375rem;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}

.service-card p {
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--text);
  flex: 1;
  margin-bottom: 20px;
}

.service-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--accent);
}

.service-link:hover {
  gap: 10px;
}

/* Homepage enhancements */
.page-home #services {
  background: var(--white);
}

.page-home .why-image {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.page-home .why-image::before {
  content: '';
  position: absolute;
  inset: 0;
  border: 2px solid rgba(0, 174, 239, 0.2);
  border-radius: inherit;
  z-index: 1;
  pointer-events: none;
}

.page-home .project-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.page-home .project-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.page-home .testimonials {
  position: relative;
}

.page-home .cta-banner {
  border: 1px solid rgba(0, 174, 239, 0.2);
  box-shadow: 0 24px 60px rgba(0, 174, 239, 0.08);
}

.page-home .cta-banner .btn-white {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
}

.page-home .cta-banner .btn-white:hover {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}

/* Homepage compact spacing (hero unchanged) */
.page-home .stats {
  padding: 44px 0;
}

.page-home .stat-item {
  padding: 12px 16px;
}

.page-home .stat-number {
  font-size: clamp(1.875rem, 3.5vw, 2.5rem);
  margin-bottom: 6px;
}

.page-home .stat-label {
  font-size: 0.875rem;
}

.page-home .section {
  padding: 52px 0;
}

.page-home .section-header {
  max-width: 640px;
  margin-bottom: 32px;
}

.page-home .section-header--left {
  text-align: left;
  margin-bottom: 24px;
  max-width: none;
}

.page-home .section-badge {
  margin-bottom: 12px;
}

.page-home .section-desc {
  font-size: 1.0625rem;
}

.page-home .services-grid {
  gap: 24px;
}

.page-home .service-card {
  padding: 28px 24px 24px;
}

.page-home .service-icon {
  width: 44px;
  height: 44px;
  margin-bottom: 14px;
}

.page-home .service-icon svg {
  width: 24px;
  height: 24px;
}

.page-home .why-grid {
  gap: 48px;
  align-items: stretch;
}

.page-home .why-visual {
  display: flex;
  align-items: stretch;
}

.page-home .why-image {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.page-home .why-image img {
  flex: 1;
  width: 100%;
  min-height: 280px;
  object-fit: cover;
}

.page-home .why-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
}

.page-home .why-features--quad {
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.page-home .why-features--quad .why-feature {
  align-items: flex-start;
  min-height: 100%;
}

.page-home .why-content .section-header--left {
  margin-bottom: 20px;
}

.page-home .why-content .section-desc {
  margin-bottom: 0;
}

.page-home .why-feature {
  padding: 20px;
}

.page-home .industries-grid {
  gap: 16px;
}

.page-home .industry-overlay {
  padding: 18px;
}

.page-home .industry-overlay h3 {
  font-size: 1.125rem;
}

.page-home .projects-grid {
  gap: 18px;
}

.page-home .project-card-body {
  padding: 18px;
}

.page-home .project-card-tag {
  margin-bottom: 8px;
}

.page-home .home-section-cta {
  margin-top: 28px;
}

.page-home .software-grid {
  gap: 28px;
}

.page-home .testimonial-quote {
  font-size: 1.125rem;
  line-height: 1.65;
  margin-bottom: 20px;
}

.page-home .testimonial-nav {
  margin-top: 24px;
}

.page-home .cta-banner {
  padding: 44px 32px;
}

.page-home .cta-banner h2 {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  margin-bottom: 10px;
}

.page-home .cta-banner p {
  font-size: 1rem;
  margin-bottom: 22px;
}

.page-home .footer {
  padding-top: 52px;
}

.page-home .footer-grid {
  gap: 32px;
  padding-bottom: 40px;
}

.page-home .footer-desc {
  margin-bottom: 16px;
  font-size: 0.875rem;
}

.page-home .footer h4 {
  margin-bottom: 16px;
  font-size: 0.9375rem;
}

.page-home .footer-links li {
  margin-bottom: 8px;
}

.page-home .footer-contact li {
  margin-bottom: 10px;
  font-size: 0.875rem;
}

.page-home .footer-bottom {
  padding: 20px 0;
}

/* Homepage UI polish */
.page-home .services-grid--home {
  grid-template-columns: repeat(2, 1fr);
}

.page-home .software-section {
  background: var(--white);
}

.page-home .stats {
  border-top: none;
  background: var(--primary);
  box-shadow: var(--shadow-md);
}

.page-home .stat-item:not(:last-child)::after {
  background: rgba(255, 255, 255, 0.15);
  height: 40px;
}

.page-home .industry-card {
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}

.page-home .industry-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.page-home .testimonials {
  background: var(--primary);
}

.footer-brand {
  display: inline-flex;
  margin-bottom: 16px;
}

.footer-logo-img {
  height: 48px;
  width: auto;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.95;
}

.footer-domain {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
}

.footer-domain:hover {
  text-decoration: underline;
}

@media (max-width: 768px) {
  .page-home .services-grid--home {
    grid-template-columns: 1fr;
  }

  .page-home .software-grid--cards {
    grid-template-columns: 1fr;
    max-width: 320px;
  }
}

/* Why Choose Us */
.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.why-visual {
  position: relative;
}

.why-image {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.why-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.why-feature {
  display: flex;
  gap: 14px;
  padding: 20px;
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
  align-items: flex-start;
}

.why-feature:hover {
  border-color: rgba(0, 174, 239, 0.35);
  box-shadow: var(--shadow-md);
}

.why-feature h4 {
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: -0.01em;
  margin-bottom: 6px;
}

.why-feature p {
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--text);
  margin: 0;
}

.why-feature-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-dim);
  border: 1px solid rgba(0, 174, 239, 0.2);
  border-radius: var(--radius-sm);
  color: var(--accent);
}

.why-feature-icon svg {
  width: 22px;
  height: 22px;
}

/* Industries */
.industries-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.industry-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
  cursor: pointer;
}

.industry-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.industry-card:hover img {
  transform: scale(1.08);
}

.industry-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.85) 0%, transparent 60%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 28px;
  color: var(--white);
}

.industry-overlay h3 {
  color: var(--white);
  font-size: 1.375rem;
  margin-bottom: 4px;
}

.industry-overlay p {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.75);
  margin: 0;
}

/* Projects */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.project-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
}

.project-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--border-dark);
}

.project-card-image {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
}

.project-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.project-card:hover .project-card-image img {
  transform: scale(1.05);
}

.project-card-body {
  padding: 24px;
  border-top: 2px solid var(--accent);
}

.project-card-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 10px;
  background: var(--accent-dim);
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
  border: 1px solid rgba(0, 174, 239, 0.25);
}

.project-card-tag::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 1px;
  flex-shrink: 0;
}

.project-card h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.project-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 0.875rem;
  color: var(--text);
}

.project-meta span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.projects-grid--featured {
  max-width: 420px;
  margin: 0 auto;
  grid-template-columns: 1fr;
}

.projects-note {
  max-width: 520px;
  margin: 24px auto 0;
  text-align: center;
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--text);
}

.projects-empty {
  margin-top: 32px;
  padding: 40px 32px;
  text-align: center;
  background: var(--white);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.projects-empty h3 {
  font-size: 1.375rem;
  margin-bottom: 12px;
}

.projects-empty p {
  max-width: 480px;
  margin: 0 auto 24px;
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--text);
}

/* Software */
.software-section {
  background: var(--white);
}

.software-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 48px;
}

.software-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  opacity: 0.7;
  transition: opacity var(--transition);
  filter: grayscale(30%);
}

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

.software-item img,
.software-item svg {
  height: 48px;
  width: auto;
}

.software-item span {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text);
}

.software-grid--cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 900px;
  margin: 0 auto;
}

.software-grid--cards .software-item {
  padding: 28px 20px;
  background: var(--white);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  opacity: 1;
  filter: none;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.software-grid--cards .software-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: rgba(0, 174, 239, 0.35);
}

.software-grid--cards .software-item span {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
}

.software-grid--cards .software-item img {
  height: 44px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
  filter: none;
}

.software-grid--cards:has(.software-item:nth-child(2):last-child) {
  grid-template-columns: repeat(2, 1fr);
  max-width: 560px;
}

/* Testimonials */
.testimonials {
  background: var(--primary);
  color: var(--white);
  overflow: hidden;
}

.testimonials .section-badge {
  background: rgba(0, 174, 239, 0.15);
}

.testimonials .section-title {
  color: var(--white);
}

.testimonials .section-desc {
  color: rgba(255, 255, 255, 0.7);
}

.testimonial-slider {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  overflow: hidden;
}

.testimonial-track {
  display: flex;
}

.testimonial-slide {
  min-width: 100%;
  padding: 0 20px;
  text-align: center;
}

.testimonial-quote {
  font-size: 1.375rem;
  font-style: italic;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 32px;
}

.testimonial-author {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.testimonial-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.12);
  border: 2px solid rgba(255, 255, 255, 0.25);
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.02em;
}

.testimonial-name {
  font-weight: 700;
  color: var(--white);
  font-size: 1rem;
}

.testimonial-role {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.6);
}

.testimonial-nav {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 40px;
}

.testimonial-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  padding: 0;
}

.testimonial-dot.active {
  background: var(--accent);
  width: 28px;
  border-radius: 5px;
}

/* CTA Banner */
.cta-banner {
  background: var(--primary);
  border-radius: var(--radius-lg);
  padding: 72px 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(0, 174, 239, 0.15);
}

.cta-banner::before {
  display: none;
}

.cta-banner h2 {
  color: var(--white);
  margin-bottom: 16px;
  position: relative;
}

.cta-banner p {
  color: rgba(255, 255, 255, 0.75);
  font-size: 1.125rem;
  margin-bottom: 32px;
  position: relative;
}

.cta-banner .btn-group {
  justify-content: center;
  position: relative;
}

/* Page Hero */
.page-hero {
  padding: calc(var(--header-height) + 56px) 0 52px;
  background: linear-gradient(160deg, #0a101f 0%, #0f172a 45%, #1a2744 100%);
  text-align: center;
  position: relative;
  overflow: hidden;
}

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

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 174, 239, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 174, 239, 0.06) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, black 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, black 20%, transparent 75%);
}

.page-hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 174, 239, 0.4), transparent);
}

.page-hero h1 {
  font-family: var(--font-display);
  color: var(--white);
  margin-bottom: 14px;
  position: relative;
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.02em;
}

.page-hero p {
  color: rgba(255, 255, 255, 0.72);
  font-size: clamp(1rem, 2vw, 1.125rem);
  max-width: 560px;
  margin: 0 auto;
  position: relative;
  line-height: 1.7;
}

.breadcrumb {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 24px;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  position: relative;
}

.breadcrumb a {
  color: rgba(255, 255, 255, 0.6);
}

.breadcrumb a:hover {
  color: var(--accent);
}

.breadcrumb span {
  color: rgba(255, 255, 255, 0.4);
}

.breadcrumb .current {
  color: var(--accent);
}

/* About Page */
.about-overview {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.about-overview h2 {
  font-family: var(--font-display);
  font-size: clamp(1.625rem, 2.8vw, 2.25rem);
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

.about-overview p {
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--text);
  margin-bottom: 16px;
}

.about-overview p:last-child {
  margin-bottom: 0;
}

.about-services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.about-service-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 24px;
  background: var(--white);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: border-color var(--transition), box-shadow var(--transition);
  color: inherit;
}

.about-service-card:hover {
  border-color: rgba(0, 174, 239, 0.35);
  box-shadow: var(--shadow-md);
}

.about-service-card h3 {
  font-family: var(--font-display);
  font-size: 1.0625rem;
  letter-spacing: -0.01em;
  line-height: 1.35;
  margin: 0;
}

.about-service-code {
  display: none;
}

.story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.story-image {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.mission-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.mission-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px;
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  box-shadow: var(--shadow-sm);
}

.mission-card h3 {
  font-family: var(--font-display);
  font-size: 1.375rem;
  margin-bottom: 12px;
}

.mission-card p {
  font-size: 0.9375rem;
  line-height: 1.65;
}

.mission-card .service-icon {
  margin-bottom: 20px;
}

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

.value-card {
  text-align: center;
  padding: 28px 22px;
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
}

.value-card h4 {
  font-family: var(--font-display);
  font-size: 1.0625rem;
  margin-bottom: 8px;
}

.value-card p {
  font-size: 0.875rem;
  line-height: 1.55;
}

.value-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.value-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 174, 239, 0.1);
  border-radius: 50%;
  color: var(--accent);
}

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

.team-grid--single {
  grid-template-columns: 1fr;
  max-width: 320px;
  margin: 0 auto;
}

.team-card {
  text-align: center;
}

.team-photo {
  width: 100%;
  aspect-ratio: 1;
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 18px;
  background: var(--bg);
  border: 1px solid var(--border);
}

.team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-card h4 {
  margin-bottom: 4px;
}

.team-role {
  font-size: 0.875rem;
  color: var(--text);
  font-weight: 500;
}

.global-map {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 60px;
  border: 1px solid var(--border);
  text-align: center;
}

.global-countries {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-top: 32px;
}

.country-tag {
  padding: 8px 18px;
  background: var(--white);
  border-radius: var(--radius-sm);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--primary);
  border: 1px solid var(--border);
}

/* Services Page */
.service-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  padding: 80px 0;
  border-bottom: 1px solid var(--border);
}

.service-detail:nth-child(even) {
  direction: rtl;
}

.service-detail:nth-child(even) > * {
  direction: ltr;
}

.service-detail-content h2 {
  margin-bottom: 16px;
}

.service-detail-content > p {
  margin-bottom: 28px;
}

.feature-list {
  display: grid;
  gap: 10px;
  margin-bottom: 24px;
}

.feature-list li {
  position: relative;
  padding-left: 18px;
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--text);
}

.feature-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  transform: translateY(-50%);
}

.service-detail-image {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.service-detail-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4/3;
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 32px;
}

.process-step {
  text-align: center;
  padding: 24px 16px;
}

.step-number {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: var(--white);
  font-weight: 800;
  border-radius: 50%;
  margin: 0 auto 16px;
  font-size: 1.125rem;
}

/* Industries Page */
.industry-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  padding: 48px 0;
}

.industry-detail + .industry-detail {
  border-top: 1px solid var(--border);
  margin-top: 16px;
  padding-top: 64px;
}

.industry-detail-content {
  padding: 36px;
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.industry-detail-content .section-badge {
  margin-bottom: 12px;
}

.industry-detail-content h2,
.industry-detail-content h3 {
  margin-bottom: 16px;
}

.industry-detail-content p {
  margin-bottom: 20px;
  color: var(--text);
  line-height: 1.7;
}

.industry-detail-content .feature-list {
  margin-bottom: 28px;
}

.industry-detail:nth-of-type(even) {
  direction: rtl;
}

.industry-detail:nth-of-type(even) > * {
  direction: ltr;
}

.industry-detail-image {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
}

.industry-detail-image img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
}

.page-home .industry-detail--home,
.page-industries .industry-detail--home {
  padding: 32px 0;
  align-items: center;
}

.page-home .industry-detail--home + .industry-detail--home,
.page-industries .industry-detail--home + .industry-detail--home {
  border-top: 1px solid var(--border);
  margin-top: 8px;
  padding-top: 48px;
}

.page-home .industry-detail--home .industry-detail-content h3,
.page-industries .industry-detail--home .industry-detail-content h3 {
  font-size: 1.75rem;
}

.page-industries .industries-sectors {
  padding-top: 52px;
  padding-bottom: 52px;
}

.page-industries .industries-sectors .section-header {
  max-width: 640px;
  margin-bottom: 32px;
}

.page-industries .industry-detail--home:first-of-type {
  padding-top: 0;
}

/* Industries duo row — two cards side by side */
.industries-duo-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  align-items: stretch;
}

.industry-sector-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: box-shadow var(--transition), border-color var(--transition);
}

.industry-sector-card:hover {
  border-color: rgba(0, 174, 239, 0.35);
  box-shadow: var(--shadow-md);
}

.industry-sector-card-image {
  overflow: hidden;
  border-bottom: 2px solid var(--accent);
}

.industry-sector-card-image img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.industry-sector-card:hover .industry-sector-card-image img {
  transform: scale(1.04);
}

.industry-sector-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 28px;
}

.industry-sector-card-body .section-badge {
  margin-bottom: 10px;
}

.industry-sector-card-body h3 {
  font-size: 1.5rem;
  margin-bottom: 12px;
}

.industry-sector-card-body p {
  font-size: 0.9375rem;
  color: var(--text);
  line-height: 1.65;
  margin-bottom: 16px;
}

.industry-sector-card-body .feature-list {
  margin-bottom: 24px;
  flex: 1;
}

.industry-sector-card-body .feature-list li {
  font-size: 0.875rem;
}

.industry-sector-card-body .btn {
  align-self: flex-start;
  margin-top: auto;
}

.page-home .industry-sector-card-body,
.page-industries .industry-sector-card-body {
  padding: 24px;
}

.page-home .industry-sector-card-body h3,
.page-industries .industry-sector-card-body h3 {
  font-size: 1.375rem;
}

/* Services catalog — text-only cards */
.services-catalog-section {
  padding-top: 52px;
  padding-bottom: 52px;
}

.services-catalog {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.service-spec-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 32px 28px;
  box-shadow: var(--shadow-sm);
  border-left: 3px solid var(--accent);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.service-spec-card:hover {
  border-color: rgba(0, 174, 239, 0.35);
  box-shadow: var(--shadow-md);
}

.service-spec-code,
.service-spec {
  display: none;
}

.service-spec-code::before,
.service-spec::before {
  display: none;
}

.service-spec-title {
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--heading);
  line-height: 1.3;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.service-spec-desc {
  font-family: var(--font);
  font-size: 0.9375rem;
  font-weight: 400;
  color: var(--text);
  line-height: 1.65;
  margin-bottom: 16px;
}

.service-spec-list {
  display: grid;
  gap: 10px;
  margin: 0 0 0;
  padding: 0;
  list-style: none;
}

.service-spec-list li {
  position: relative;
  padding-left: 18px;
  font-family: var(--font);
  font-size: 0.875rem;
  color: var(--text);
  line-height: 1.55;
}

.service-spec-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  transform: translateY(-50%);
}

/* Projects Page */
.projects-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 48px;
}

.filter-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-btn {
  padding: 8px 20px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
  transition: all var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
}

.search-box {
  position: relative;
}

.search-box input {
  padding: 10px 16px 10px 42px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.9375rem;
  width: 280px;
  background: var(--white);
  transition: border-color var(--transition);
}

.search-box input:focus {
  outline: none;
  border-color: var(--accent);
}

.search-box svg {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: var(--text);
}

.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 48px;
}

.page-btn {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--white);
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
  transition: all var(--transition);
}

.page-btn:hover,
.page-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
}

.page-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* Project Details */
.project-hero {
  position: relative;
  height: 60vh;
  min-height: 400px;
  overflow: hidden;
}

.project-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.9) 0%, rgba(15, 23, 42, 0.3) 100%);
  display: flex;
  align-items: flex-end;
  padding-bottom: 60px;
}

.project-hero-content h1 {
  color: var(--white);
  margin-bottom: 12px;
}

.project-hero-meta {
  display: flex;
  gap: 24px;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.9375rem;
}

.project-content-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 48px;
  padding: 80px 0;
}

.project-sidebar {
  position: sticky;
  top: calc(var(--header-height) + 24px);
  align-self: start;
}

.sidebar-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 28px;
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  box-shadow: var(--shadow-sm);
  margin-bottom: 24px;
}

.sidebar-card h4 {
  font-family: var(--font-display);
  font-size: 1.125rem;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.sidebar-item {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  font-size: 0.9375rem;
  border-bottom: 1px solid var(--border);
}

.sidebar-item:last-child {
  border-bottom: none;
}

.sidebar-item span:first-child {
  color: var(--text);
}

.sidebar-item span:last-child {
  font-weight: 600;
  color: var(--primary);
}

.content-block {
  margin-bottom: 40px;
  padding: 32px;
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  box-shadow: var(--shadow-sm);
}

.content-block h2 {
  font-family: var(--font-display);
  font-size: 1.375rem;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.content-block p {
  font-size: 0.9375rem;
  line-height: 1.65;
}

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

.gallery-item {
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 4/3;
  cursor: zoom-in;
  transition: box-shadow var(--transition), border-color var(--transition);
}

.gallery-item:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.gallery-item:hover {
  box-shadow: var(--shadow-md);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.gallery-item--drawing {
  background: #f8fafc;
  border: 1px solid var(--border);
}

.gallery-item--drawing img {
  object-fit: contain;
  padding: 8px;
  background: #fff;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

/* Gallery lightbox */
.gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(15, 23, 42, 0.92);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.gallery-lightbox-stage {
  position: relative;
  max-width: min(96vw, 1400px);
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.gallery-lightbox-image {
  display: block;
  max-width: 100%;
  max-height: calc(92vh - 48px);
  width: auto;
  height: auto;
  object-fit: contain;
  background: #fff;
  border-radius: var(--radius-sm);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
}

.gallery-lightbox-caption {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.875rem;
  text-align: center;
  max-width: 720px;
  margin: 0;
}

.gallery-lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.6);
  color: #fff;
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition);
}

.gallery-lightbox-close:hover {
  background: rgba(0, 174, 239, 0.25);
  border-color: var(--accent);
}

.gallery-lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  background: rgba(15,  23, 42, 0.6);
  color: #fff;
  font-size: 1.25rem;
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition), opacity var(--transition);
}

.gallery-lightbox-nav:hover:not(:disabled) {
  background: rgba(0, 174, 239, 0.25);
  border-color: var(--accent);
}

.gallery-lightbox-nav:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.gallery-lightbox-prev {
  left: 20px;
}

.gallery-lightbox-next {
  right: 20px;
}

.project-nav {
  display: flex;
  justify-content: space-between;
  padding: 40px 0;
  border-top: 1px solid var(--border);
}

.project-nav a {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-weight: 600;
  color: var(--primary);
}

.project-nav a:hover {
  color: var(--accent);
}

.project-nav span {
  font-size: 0.8125rem;
  font-weight: 400;
  color: var(--text);
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
}

.contact-form {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 48px;
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  box-shadow: var(--shadow-sm);
}

.contact-form-title {
  font-family: var(--font-display);
  font-size: 1.375rem;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.contact-form-desc {
  margin-bottom: 32px;
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--text);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.9375rem;
  color: var(--primary);
  background: var(--bg);
  transition: border-color var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--white);
}

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

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

.contact-info-card {
  background: var(--primary);
  border-radius: var(--radius-xl);
  padding: 48px;
  color: var(--white);
  border: 1px solid rgba(0, 174, 239, 0.2);
  border-left: 3px solid var(--accent);
  box-shadow: var(--shadow-sm);
}

.contact-info-card h3 {
  color: var(--white);
  font-family: var(--font-display);
  letter-spacing: -0.02em;
  margin-bottom: 32px;
}

.contact-item {
  display: flex;
  gap: 16px;
  margin-bottom: 28px;
}

.contact-item-icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 174, 239, 0.2);
  border-radius: var(--radius-sm);
  color: var(--accent);
}

.contact-item h4 {
  color: var(--white);
  font-size: 0.9375rem;
  margin-bottom: 4px;
}

.contact-item p {
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.75);
  margin: 0;
}

.map-placeholder {
  margin-top: 32px;
  border-radius: var(--radius-md);
  overflow: hidden;
  height: 200px;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.875rem;
}

.social-links {
  display: flex;
  gap: 12px;
  margin-top: 32px;
}

.social-link {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  color: var(--white);
  transition: all var(--transition);
}

.social-link:hover {
  background: var(--accent);
  transform: translateY(-2px);
}

.social-link svg {
  width: 20px;
  height: 20px;
}

/* Footer */
.footer {
  background: var(--primary);
  background-image: none;
  color: rgba(255, 255, 255, 0.75);
  padding-top: 80px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 48px;
  padding-bottom: 60px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-desc {
  font-size: 0.9375rem;
  line-height: 1.8;
  margin-bottom: 24px;
}

.footer h4 {
  color: var(--white);
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: -0.01em;
  margin-bottom: 24px;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  font-size: 0.9375rem;
  transition: color var(--transition);
}

.footer-links a:hover {
  color: var(--accent);
}

.footer-contact li {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
  font-size: 0.9375rem;
}

.footer-contact a {
  color: inherit;
  text-decoration: none;
}

.footer-contact a:hover {
  color: var(--accent);
}

.footer-contact svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--accent);
  margin-top: 4px;
}

.footer-newsletter {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

.footer-newsletter input {
  flex: 1;
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.05);
  color: var(--white);
  font-family: inherit;
  font-size: 0.875rem;
}

.footer-newsletter input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.footer-newsletter input:focus {
  outline: none;
  border-color: var(--accent);
}

.footer-newsletter .btn {
  padding: 10px 18px;
  font-size: 0.875rem;
}

.footer-bottom {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  padding: 28px 0;
  font-size: 0.875rem;
}

.footer-bottom > p:first-child {
  justify-self: start;
  margin: 0;
}

.footer-credit {
  justify-self: center;
  margin: 0;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.55);
  text-align: center;
}

.footer-credit a {
  color: #F97316;
  font-weight: 600;
  text-decoration: none;
  transition: color var(--transition);
}

.footer-credit a:hover {
  color: #FB923C;
  text-decoration: underline;
}

.footer-social {
  display: flex;
  gap: 12px;
  justify-self: end;
}

.footer-social a {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  transition: all var(--transition);
}

.footer-social a:hover {
  background: var(--accent);
}

.footer-social svg {
  width: 16px;
  height: 16px;
}

/* Global UI polish */
.section-header {
  margin-bottom: 48px;
}

.service-detail {
  padding: 48px 0;
  border-bottom: 1px solid var(--border);
}

.service-detail:last-of-type {
  border-bottom: none;
}

.cta-banner {
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.15);
}

.footer-grid {
  gap: 40px;
}

.footer-desc {
  line-height: 1.75;
}

.project-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.industry-card {
  box-shadow: var(--shadow-sm);
}

.industry-card:hover {
  box-shadow: var(--shadow-lg);
}

.breadcrumb .current {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
}

/* Inner page polish */
.mission-card,
.value-card,
.sidebar-card,
.team-card {
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
}

.mission-card:hover,
.value-card:hover,
.sidebar-card:hover,
.team-card:hover {
  box-shadow: var(--shadow-md);
  border-color: rgba(0, 174, 239, 0.2);
}

.industry-detail-image,
.service-detail-image {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.filter-btn.active {
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.18);
}

.search-box input {
  box-shadow: var(--shadow-sm);
}

.search-box input:focus {
  box-shadow: 0 0 0 3px rgba(0, 174, 239, 0.12);
}

.project-hero-content h1 {
  font-family: var(--font-display);
  letter-spacing: -0.02em;
}

.project-hero-overlay {
  background: linear-gradient(to top, rgba(10, 16, 31, 0.95) 0%, rgba(15, 23, 42, 0.45) 55%, rgba(15, 23, 42, 0.15) 100%);
}

.projects-toolbar {
  padding: 20px 24px;
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.map-placeholder {
  border-radius: var(--radius-md);
}

/* ═══════════════════════════════════════════
   ArchMEP Blueprint Design System
   Sector-specific BIM/MEP visual identity
   ═══════════════════════════════════════════ */

.page-home .section-surface,
.page-home .bg-white,
.page-home .software-section,
.page-home #services {
  background-color: var(--white);
}

.page-home .section-muted,
.page-home .pipeline-section {
  background-color: #eef2f7;
}

/* Stats dashboard */
.stats--dashboard {
  position: relative;
  overflow: hidden;
}

.stats-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 174, 239, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 174, 239, 0.06) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
}

.stats-eyebrow {
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  color: rgba(0, 174, 239, 0.7);
  margin-bottom: 28px;
}

.stat-code {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.35);
  margin-bottom: 8px;
}

.page-home .stat-number {
  font-family: var(--font-mono);
  font-weight: 600;
  letter-spacing: -0.03em;
}

/* BIM Pipeline */
.pipeline-section {
  position: relative;
}

.pipeline-track {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  align-items: stretch;
  position: relative;
  padding-top: 8px;
}

.pipeline-line {
  position: absolute;
  top: 32px;
  left: calc(12.5% + 24px);
  right: calc(12.5% + 24px);
  height: 2px;
  background: var(--border);
  z-index: 0;
}

.pipeline-step {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  text-align: center;
  z-index: 1;
}

.pipeline-node {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  border: 2px solid var(--accent);
  border-radius: 50%;
  position: relative;
  z-index: 2;
  box-shadow: 0 0 0 6px rgba(0, 174, 239, 0.12);
}

.pipeline-node span {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--accent);
  line-height: 1;
}

.pipeline-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  flex: 1 1 auto;
  width: 100%;
  min-height: 180px;
  background: var(--white);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  text-align: left;
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
  box-shadow: var(--shadow-sm);
}

.pipeline-card:hover {
  border-color: rgba(0, 174, 239, 0.35);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.pipeline-card h3 {
  font-family: var(--font-display);
  font-size: 1.0625rem;
  letter-spacing: -0.01em;
  margin: 0 0 8px;
  line-height: 1.3;
}

.pipeline-card p {
  font-size: 0.875rem;
  margin: 0;
  line-height: 1.6;
  color: var(--text);
}

.pipeline-discipline {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  padding: 4px 10px;
  border-radius: 3px;
  margin-bottom: 12px;
}

.pipeline-discipline--arch { background: rgba(139, 92, 246, 0.12); color: var(--mep-structural); }
.pipeline-discipline--mep { background: rgba(0, 174, 239, 0.12); color: var(--mep-mechanical); }
.pipeline-discipline--clash { background: rgba(245, 158, 11, 0.12); color: var(--mep-electrical); }
.pipeline-discipline--deliver { background: rgba(16, 185, 129, 0.12); color: var(--mep-plumbing); }

/* Service spec cards — uses unified badge styles above */

.service-card--bim::after { background: var(--mep-mechanical); }
.service-card--mep::after { background: var(--mep-electrical); }
.service-card--clash::after { background: var(--mep-plumbing); }
.service-card--cad::after { background: var(--mep-structural); }

.service-card--bim .service-icon { background: rgba(0, 174, 239, 0.1); border-color: rgba(0, 174, 239, 0.2); color: var(--mep-mechanical); }
.service-card--mep .service-icon { background: rgba(245, 158, 11, 0.1); border-color: rgba(245, 158, 11, 0.2); color: var(--mep-electrical); }
.service-card--clash .service-icon { background: rgba(16, 185, 129, 0.1); border-color: rgba(16, 185, 129, 0.2); color: var(--mep-plumbing); }
.service-card--cad .service-icon { background: rgba(139, 92, 246, 0.1); border-color: rgba(139, 92, 246, 0.2); color: var(--mep-structural); }

/* Industry sector codes */
.industry-code {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  font-family: var(--font-mono);
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--white);
  padding: 4px 10px;
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(0, 174, 239, 0.4);
  border-radius: 3px;
  backdrop-filter: blur(4px);
}

/* Project reference numbers */
.project-ref,
.why-image-ref,
.cta-sheet-ref,
.pipeline-discipline,
.stat-code {
  display: none !important;
}

.page-home .project-card-body {
  border-top: 2px solid var(--accent);
}

/* Blueprint CTA */
.cta-banner--blueprint {
  position: relative;
  overflow: hidden;
}

.cta-banner--blueprint::before,
.cta-banner--blueprint::after {
  content: '';
  position: absolute;
  width: 24px;
  height: 24px;
  border-color: rgba(0, 174, 239, 0.5);
  border-style: solid;
  pointer-events: none;
}

.cta-banner--blueprint::before {
  top: 16px;
  left: 16px;
  border-width: 2px 0 0 2px;
}

.cta-banner--blueprint::after {
  bottom: 16px;
  right: 16px;
  border-width: 0 2px 2px 0;
}

.cta-sheet-ref {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 16px;
  position: relative;
}

/* Inner pages blueprint theme */
.page-hero .section-badge,
.page-hero .breadcrumb {
  font-family: var(--font-mono);
}

.page-hero::before {
  animation: heroGridDrift 60s linear infinite;
}

/* Software section tech panel */
.page-home .software-section .section-badge::before {
  background: var(--mep-electrical);
}

/* Why section blueprint frame */
.why-image--blueprint {
  position: relative;
}

.why-image-ref {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  font-family: var(--font-mono);
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.85);
  padding: 4px 10px;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(0, 174, 239, 0.4);
  border-radius: 3px;
}

.why-image-stats {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  gap: 0;
  background: rgba(15, 23, 42, 0.88);
  border-top: 2px solid var(--accent);
  backdrop-filter: blur(8px);
}

.why-image-stats span {
  flex: 1;
  padding: 14px 16px;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.7);
  text-align: center;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.why-image-stats span:last-child {
  border-right: none;
}

.why-image-stats strong {
  display: block;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 2px;
}

@media (max-width: 992px) {
  .pipeline-track {
    grid-template-columns: repeat(2, 1fr);
    gap: 28px 24px;
  }

  .pipeline-line {
    display: none;
  }

  .pipeline-card {
    min-height: 160px;
  }
}

@media (max-width: 768px) {
  .industries-grid--duo {
    grid-template-columns: 1fr;
  }

  .industries-duo-row {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .services-catalog {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .about-services-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

@media (max-width: 576px) {
  .pipeline-track {
    grid-template-columns: 1fr;
    max-width: 420px;
    margin: 0 auto;
  }

  .pipeline-card {
    min-height: 0;
  }

  .capability-grid {
    grid-template-columns: 1fr;
  }
}

.industries-grid--duo {
  grid-template-columns: repeat(2, 1fr);
  max-width: 820px;
  margin: 0 auto;
}

/* Utility */
.text-center { text-align: center; }

.section-muted {
  background-color: #eef2f7;
}

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

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

.pipeline-section {
  background: #eef2f7;
}

.page-home .pipeline-section {
  background: #eef2f7;
}

.page-home .software-section {
  background: var(--white);
}

.stats-grid-bg {
  display: none;
}

.project-details-section {
  padding-top: 72px;
  padding-bottom: 72px;
}

.project-details-section .content-block {
  background: var(--white);
}

.section-muted .projects-toolbar {
  background: var(--white);
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
