/* ==========================================================================
   MAYAR ENGINEERING SERVICES (MES) - CORE DESIGN SYSTEM
   Modern, High-Performance Industrial Engineering UI
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400&family=Outfit:wght@400;500;600;700;800;900&display=swap');

/* --- Design Tokens --- */
:root {
  /* Brand Palettes */
  --navy-950: #050d1a;
  --navy-900: #0a192f;
  --navy-850: #0f233d;
  --navy-800: #162f4f;
  --navy-700: #1d3e68;
  --navy-600: #254f85;

  /* Accent Emerald / Engineering Green (from MES Chevron) */
  --emerald-600: #059669;
  --emerald-500: #10b981;
  --emerald-400: #34d399;
  --emerald-300: #6ee7b7;
  --emerald-glow: rgba(16, 185, 129, 0.25);

  /* Secondary Accents */
  --cyan-500: #06b6d4;
  --amber-500: #f59e0b;

  /* Neutrals & Slate Surfaces */
  --slate-50: #f8fafc;
  --slate-100: #f1f5f9;
  --slate-200: #e2e8f0;
  --slate-300: #cbd5e1;
  --slate-400: #94a3b8;
  --slate-500: #64748b;
  --slate-600: #475569;
  --slate-700: #334155;
  --slate-800: #1e293b;
  --slate-900: #0f172a;

  /* Typography */
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-heading: 'Outfit', 'Plus Jakarta Sans', sans-serif;

  /* Elevations & Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  --shadow-card: 0 10px 30px -5px rgba(10, 25, 47, 0.08);
  --shadow-glow: 0 0 25px var(--emerald-glow);

  /* Radii */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);

  /* Layout */
  --header-height: 80px;
  --container-max: 1240px;
}

/* Base Reset & Typography */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  color: var(--slate-700);
  background-color: #ffffff;
  line-height: 1.6;
  font-weight: 400;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

p {
  margin-bottom: 1rem;
}

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

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

ul {
  list-style: none;
}

/* Container */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.container-wide {
  max-width: 1380px;
}

/* Responsive Grid Utilities */
.grid-2-col {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3.5rem;
  align-items: start;
}

.grid-2-col.align-center {
  align-items: center;
}

.grid-2-col.equal {
  grid-template-columns: 1fr 1fr;
}

.grid-2-col.reversed {
  grid-template-columns: 0.85fr 1.15fr;
}

.grid-3-col {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

.grid-4-col {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.grid-7-col {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 1rem;
}

.subgrid-2-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.cta-banner-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: center;
}

/* ==========================================================================
   TOP NOTIFICATION & CONTACT BAR
   ========================================================================== */
.top-bar {
  background: var(--navy-950);
  color: var(--slate-300);
  font-size: 0.825rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.top-bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.top-bar-left, .top-bar-right {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.top-contact-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--slate-300);
  font-weight: 500;
}

.top-contact-link:hover {
  color: var(--emerald-400);
}

.top-office-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(255, 255, 255, 0.06);
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.top-office-pill.usa {
  border-color: rgba(59, 130, 246, 0.3);
}

.top-office-pill.ind {
  border-color: rgba(16, 185, 129, 0.3);
}

.flag-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--emerald-400);
  box-shadow: 0 0 6px var(--emerald-400);
}

/* ==========================================================================
   STICKY NAVBAR & NAVIGATION
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--slate-200);
  transition: all var(--transition-normal);
}

.site-header.scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow-md);
  border-bottom-color: rgba(15, 35, 61, 0.08);
}

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

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  font-family: var(--font-heading);
}

.brand-mark {
  height: 40px;
  width: auto;
  object-fit: contain;
}

.site-footer .brand-mark {
  height: 40px;
}

.brand-meta {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--navy-900);
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.brand-title span {
  color: var(--emerald-600);
}

.brand-sub {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--slate-500);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-top: 2px;
}

/* Desktop Navigation */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.nav-item {
  position: relative;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--navy-900);
  padding: 0.5rem 0;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--emerald-500);
  transition: width var(--transition-fast);
  border-radius: var(--radius-full);
}

.nav-link:hover, .nav-item.active .nav-link {
  color: var(--emerald-600);
}

.nav-link:hover::after, .nav-item.active .nav-link::after {
  width: 100%;
}

/* Dropdown */
.nav-item.has-dropdown:hover .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-dropdown {
  position: absolute;
  top: 100%;
  left: -1rem;
  width: 290px;
  background: #ffffff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--slate-200);
  padding: 0.75rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all var(--transition-normal);
  z-index: 100;
}

.dropdown-link {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--navy-900);
  transition: all var(--transition-fast);
}

.dropdown-link:hover {
  background: var(--slate-50);
  color: var(--emerald-600);
  transform: translateX(4px);
}

.dropdown-bullet {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--emerald-500);
  margin-top: 0.45rem;
  flex-shrink: 0;
}

/* Nav CTA */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--navy-900);
}

.nav-mobile-cta {
  display: none;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 700;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-md);
  transition: all var(--transition-normal);
  cursor: pointer;
  border: 1px solid transparent;
  line-height: 1.2;
  text-align: center;
}

.btn-primary {
  background: var(--emerald-600);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.3);
}

.btn-primary:hover {
  background: var(--emerald-500);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

.btn-navy {
  background: var(--navy-900);
  color: #ffffff;
}

.btn-navy:hover {
  background: var(--navy-800);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

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

.btn-outline:hover {
  border-color: var(--emerald-500);
  color: var(--emerald-600);
  background: var(--slate-50);
}

.btn-outline-white {
  background: transparent;
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.3);
}

.btn-outline-white:hover {
  border-color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
}

.btn-lg {
  padding: 0.9rem 2rem;
  font-size: 1.05rem;
  border-radius: var(--radius-lg);
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
  position: relative;
  background: linear-gradient(135deg, var(--navy-950) 0%, var(--navy-900) 60%, var(--navy-850) 100%);
  color: #ffffff;
  padding: 6rem 0 5rem;
  overflow: hidden;
}

.hero-pattern-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    radial-gradient(circle at 15% 30%, rgba(16, 185, 129, 0.12) 0%, transparent 45%),
    radial-gradient(circle at 85% 70%, rgba(6, 182, 212, 0.1) 0%, transparent 50%),
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 48px 48px, 48px 48px;
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 3.5rem;
  position: relative;
  z-index: 10;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: var(--emerald-300);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.35rem 0.95rem;
  border-radius: var(--radius-full);
  margin-bottom: 1.5rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.hero-title {
  font-size: 3.25rem;
  font-weight: 900;
  line-height: 1.12;
  margin-bottom: 1.25rem;
  color: #ffffff;
  letter-spacing: -0.03em;
}

.hero-title .text-gradient {
  background: linear-gradient(135deg, #ffffff 30%, var(--emerald-300) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--slate-300);
  line-height: 1.6;
  margin-bottom: 2rem;
  max-width: 600px;
}

.hero-ctas {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.hero-metrics {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.hero-metric-item {
  display: flex;
  flex-direction: column;
}

.hero-metric-value {
  font-family: var(--font-heading);
  font-size: 1.85rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.1;
}

.hero-metric-label {
  font-size: 0.8rem;
  color: var(--slate-400);
  font-weight: 500;
  margin-top: 0.25rem;
}

/* Hero Visual Showcase */
.hero-visual-card {
  background: rgba(15, 35, 61, 0.65);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-xl);
  padding: 1.75rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  position: relative;
}

.hero-visual-card::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 20%;
  width: 60%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--emerald-400), transparent);
}

.hero-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.hero-card-tag {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--emerald-400);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-card-status {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  color: var(--slate-300);
}

.hero-img-wrap {
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 1.25rem;
  position: relative;
}

.hero-img-wrap img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  transition: transform var(--transition-smooth);
}

.hero-visual-card:hover .hero-img-wrap img {
  transform: scale(1.03);
}

.hero-card-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tool-tag {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--slate-200);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.3rem 0.65rem;
  border-radius: var(--radius-sm);
}

/* ==========================================================================
   TRUST BAR / CLIENTS MARQUEE
   ========================================================================== */
.trust-strip {
  background: var(--slate-50);
  padding: 3rem 0 3.5rem;
  border-bottom: 1px solid var(--slate-200);
}

.trust-title-wrap {
  text-align: center;
  margin-bottom: 2rem;
}

.trust-title {
  text-align: center;
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--navy-900);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 0.35rem;
}

.trust-subtitle {
  text-align: center;
  font-size: 0.85rem;
  color: var(--slate-500);
  font-weight: 500;
}

.clients-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1.25rem;
  align-items: stretch;
}

.client-item {
  background: #ffffff;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  padding: 0.75rem 1rem;
  text-align: center;
  transition: all var(--transition-normal);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 96px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.client-item:hover {
  transform: translateY(-4px);
  border-color: var(--emerald-500);
  box-shadow: 0 12px 24px -6px rgba(10, 25, 47, 0.12), 0 4px 8px -2px rgba(10, 25, 47, 0.06);
}

.client-logo-img {
  max-width: 100%;
  max-height: 56px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  margin: 0 auto;
  transition: transform var(--transition-fast);
}

.client-item:hover .client-logo-img {
  transform: scale(1.04);
}

/* ==========================================================================
   SECTION HEADINGS & COMMONS
   ========================================================================== */
.section {
  padding: 5.5rem 0;
}

.section-dark {
  background: var(--navy-950);
  color: #ffffff;
}

.section-slate {
  background: var(--slate-50);
}

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

.section-header.text-left {
  text-align: left;
  margin-left: 0;
}

.section-badge {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--emerald-600);
  margin-bottom: 0.65rem;
}

.section-dark .section-badge {
  color: var(--emerald-400);
}

.section-title {
  font-size: 2.35rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.section-dark .section-title {
  color: #ffffff;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--slate-600);
  line-height: 1.6;
}

.section-dark .section-desc {
  color: var(--slate-300);
}

/* ==========================================================================
   SERVICES MATRIX (CARDS & DISCIPLINES)
   ========================================================================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

.service-card {
  background: #ffffff;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  padding: 2.25rem 2rem;
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--emerald-500);
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.service-card:hover {
  transform: translateY(-5px);
  border-color: rgba(16, 185, 129, 0.4);
  box-shadow: var(--shadow-card);
}

.service-card:hover::before {
  opacity: 1;
}

.service-icon-box {
  width: 54px;
  height: 54px;
  border-radius: var(--radius-md);
  background: var(--slate-100);
  color: var(--emerald-600);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  transition: all var(--transition-fast);
}

.service-card:hover .service-icon-box {
  background: var(--emerald-600);
  color: #ffffff;
  transform: scale(1.08);
}

.service-title {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--navy-900);
}

.service-desc {
  font-size: 0.925rem;
  color: var(--slate-600);
  margin-bottom: 1.5rem;
  line-height: 1.55;
}

.service-list {
  margin-bottom: 1.75rem;
  flex-grow: 1;
}

.service-list-item {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.85rem;
  color: var(--slate-700);
  margin-bottom: 0.6rem;
  font-weight: 500;
}

.service-list-item svg {
  color: var(--emerald-600);
  flex-shrink: 0;
  margin-top: 3px;
}

.service-card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--emerald-600);
  transition: gap var(--transition-fast);
}

.service-card-link:hover {
  color: var(--emerald-500);
  gap: 0.65rem;
}

/* ==========================================================================
   ADVANTAGES / WHY CHOOSE US
   ========================================================================== */
.advantages-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.advantage-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: 2rem 1.75rem;
  transition: all var(--transition-normal);
}

.advantage-card:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(16, 185, 129, 0.4);
  transform: translateY(-4px);
}

.advantage-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: rgba(16, 185, 129, 0.15);
  color: var(--emerald-400);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.advantage-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.75rem;
}

.advantage-desc {
  font-size: 0.885rem;
  color: var(--slate-300);
  line-height: 1.55;
}

/* ==========================================================================
   PROJECTS SECTION & CARDS
   ========================================================================== */
.projects-filter-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.filter-btn {
  background: #ffffff;
  border: 1px solid var(--slate-200);
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--slate-700);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.filter-btn:hover, .filter-btn.active {
  background: var(--navy-900);
  color: #ffffff;
  border-color: var(--navy-900);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.project-card {
  background: #ffffff;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-card);
  border-color: var(--slate-300);
}

.project-thumb {
  position: relative;
  height: 220px;
  overflow: hidden;
  background: var(--navy-950);
}

.project-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-smooth);
}

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

.project-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: rgba(10, 25, 47, 0.85);
  backdrop-filter: blur(8px);
  color: var(--emerald-400);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-full);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.project-body {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.project-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--navy-900);
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.project-desc {
  font-size: 0.9rem;
  color: var(--slate-600);
  margin-bottom: 1.25rem;
  line-height: 1.55;
  flex-grow: 1;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: auto;
}

.project-tag-pill {
  background: var(--slate-100);
  color: var(--slate-700);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-sm);
}

/* ==========================================================================
   OFFICE CARDS / GLOBAL REACH
   ========================================================================== */
.offices-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.office-card {
  background: #ffffff;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-xl);
  padding: 2.5rem 2rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all var(--transition-normal);
}

.office-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
  border-color: var(--emerald-500);
}

.office-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--slate-100);
  color: var(--navy-900);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-full);
  margin-bottom: 1.25rem;
  align-self: flex-start;
}

.office-city {
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--navy-900);
  margin-bottom: 0.25rem;
}

.office-sub {
  font-size: 0.9rem;
  color: var(--slate-500);
  margin-bottom: 1.5rem;
  font-weight: 500;
}

.office-details {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.office-detail-row {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.95rem;
  color: var(--slate-700);
}

.office-detail-row svg {
  color: var(--emerald-600);
  flex-shrink: 0;
  margin-top: 3px;
}

/* ==========================================================================
   QUOTE / RFQ CALLOUT SECTION
   ========================================================================== */
.rfq-banner {
  background: linear-gradient(135deg, var(--navy-900) 0%, var(--navy-800) 100%);
  border-radius: var(--radius-xl);
  padding: 3.5rem 3rem;
  color: #ffffff;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

.rfq-banner::after {
  content: '';
  position: absolute;
  right: -50px;
  bottom: -50px;
  width: 250px;
  height: 250px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.2) 0%, transparent 70%);
  pointer-events: none;
}

.rfq-banner-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.6fr;
  align-items: center;
  gap: 2.5rem;
  position: relative;
  z-index: 2;
}

.rfq-banner-title {
  font-size: 2.15rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 0.75rem;
}

.rfq-banner-desc {
  font-size: 1.05rem;
  color: var(--slate-300);
  line-height: 1.6;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  background: var(--navy-950);
  color: var(--slate-400);
  padding: 5rem 0 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.9fr 1.1fr 1fr;
  gap: 3rem;
  margin-bottom: 4rem;
}

.footer-col-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 1.25rem;
  letter-spacing: -0.01em;
}

.footer-about p {
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.footer-links-list li {
  margin-bottom: 0.65rem;
}

.footer-links-list a {
  font-size: 0.9rem;
  color: var(--slate-400);
  transition: color var(--transition-fast);
}

.footer-links-list a:hover {
  color: var(--emerald-400);
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  margin-bottom: 1rem;
  font-size: 0.875rem;
}

.footer-contact-item svg {
  color: var(--emerald-400);
  flex-shrink: 0;
  margin-top: 3px;
}

.footer-contact-item strong {
  color: #ffffff;
  display: block;
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.85rem;
}

/* ==========================================================================
   MODAL DIALOG (REQUEST A QUOTE)
   ========================================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(5, 13, 26, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  z-index: 100050 !important;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-box {
  background: #ffffff;
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 680px;
  max-height: 90vh;
  max-height: 90dvh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35);
  padding: 2.5rem;
  position: relative;
  transform: scale(0.95) translateY(10px);
  transition: transform var(--transition-normal);
}

.modal-title {
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--navy-950);
  line-height: 1.25;
  margin-top: 0.35rem;
}

.modal-overlay.active .modal-box {
  transform: scale(1) translateY(0);
}

.modal-close-btn {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: var(--slate-100);
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--slate-600);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.modal-close-btn:hover {
  background: var(--slate-200);
  color: var(--navy-950);
}

/* Forms */
.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--slate-800);
  margin-bottom: 0.4rem;
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: var(--font-body);
  font-size: 0.925rem;
  color: var(--slate-800);
  background: #ffffff;
  border: 1px solid var(--slate-300);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--emerald-500);
  box-shadow: 0 0 0 3px var(--emerald-glow);
}

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

.form-feedback {
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 500;
  margin-top: 1rem;
  display: none;
}

.form-feedback.success {
  display: block;
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.form-feedback.error {
  display: block;
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

/* ==========================================================================
   PAGE HERO / SUBPAGE HEADER
   ========================================================================== */
.page-hero {
  background: linear-gradient(135deg, var(--navy-950) 0%, var(--navy-900) 100%);
  color: #ffffff;
  padding: 4.5rem 0 3.5rem;
  position: relative;
  overflow: hidden;
}

.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--slate-400);
  margin-bottom: 1rem;
}

.breadcrumbs a {
  color: var(--slate-300);
}

.breadcrumbs a:hover {
  color: var(--emerald-400);
}

.page-hero-title {
  color: #ffffff !important;
  font-size: clamp(2rem, 4.5vw, 2.85rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 0.75rem;
}

.page-hero-desc {
  font-size: 1.15rem;
  color: var(--slate-300);
  max-width: 680px;
}

/* ==========================================================================
   RESPONSIVE BREAKPOINTS
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .hero-visual-card {
    max-width: 600px;
    margin: 0 auto;
  }
  .grid-2-col, .grid-2-col.reversed {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .grid-4-col {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid-7-col {
    grid-template-columns: repeat(4, 1fr);
  }
  .clients-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .advantages-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
  }
  :root {
    --header-height: 70px;
  }
  html, body {
    overflow-x: hidden;
    max-width: 100vw;
  }
  body.mobile-menu-open {
    overflow: hidden !important;
  }
  .top-bar {
    display: none;
  }
  /* Remove backdrop-filter on tablet/mobile so header does not form a clipped containing block for fixed drawer */
  .site-header {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    background: #ffffff !important;
    position: sticky !important;
    top: 0 !important;
    z-index: 10000 !important;
  }
  .nav-menu {
    display: flex !important;
    position: fixed !important;
    top: var(--header-height) !important;
    left: 0 !important;
    right: 0 !important;
    width: 100vw !important;
    max-width: 100vw !important;
    height: calc(100vh - var(--header-height)) !important;
    height: calc(100dvh - var(--header-height)) !important;
    background: #ffffff !important;
    flex-direction: column !important;
    align-items: stretch !important;
    padding: 1.5rem 1.25rem 3rem !important;
    gap: 0.25rem !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
    z-index: 99999 !important;
    box-shadow: 0 20px 25px -5px rgba(15, 23, 42, 0.15) !important;
    border-top: 1px solid var(--slate-200);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1), transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.25s;
  }
  .nav-menu.open {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    transform: translateY(0) !important;
  }
  .nav-item {
    width: 100%;
    border-bottom: 1px solid var(--slate-100);
  }
  .nav-link {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
    padding: 0.85rem 0.5rem !important;
    font-size: 1.02rem !important;
    font-weight: 700 !important;
    color: var(--navy-900) !important;
  }
  .nav-link:hover, .nav-item.active > .nav-link {
    color: var(--emerald-600) !important;
  }
  .nav-link::after {
    display: none !important;
  }
  .nav-dropdown {
    position: static !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    box-shadow: none !important;
    border: none !important;
    background: var(--slate-50) !important;
    border-radius: var(--radius-md) !important;
    padding: 0.4rem 0.6rem !important;
    margin: 0.25rem 0 0.65rem !important;
    width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 0.25rem !important;
  }
  .dropdown-link {
    display: flex !important;
    align-items: center !important;
    gap: 0.65rem !important;
    padding: 0.55rem 0.65rem !important;
    font-size: 0.88rem !important;
    color: var(--slate-700) !important;
    border-radius: var(--radius-sm) !important;
  }
  .dropdown-link:hover {
    background: #ffffff !important;
    color: var(--emerald-600) !important;
  }
  .nav-mobile-cta {
    display: flex !important;
    flex-direction: column;
    gap: 0.85rem;
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px dashed var(--slate-200);
    width: 100%;
  }
  .nav-mobile-cta .btn {
    width: 100%;
    justify-content: center;
    padding: 0.85rem 1rem;
    font-size: 0.95rem;
  }
  .nav-mobile-contact {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
  }
  .mobile-contact-pill {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.65rem 0.85rem;
    background: var(--slate-100);
    border-radius: var(--radius-md);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--navy-800);
    text-decoration: none;
    transition: all var(--transition-fast);
  }
  .mobile-contact-pill:hover {
    background: var(--emerald-50);
    color: var(--emerald-700);
  }
  .mobile-toggle {
    display: block !important;
  }
  .modal-overlay {
    padding: 1.25rem;
    z-index: 100050 !important;
  }
  .modal-box {
    padding: 2.25rem 2rem;
    width: 92% !important;
    max-width: 680px !important;
    max-height: 92vh;
    max-height: 92dvh;
    border-radius: var(--radius-xl);
  }
}

@media (max-width: 768px) {
  .section {
    padding: 4rem 0;
  }
  .hero-title {
    font-size: 2.15rem;
  }
  .hero-ctas {
    flex-direction: column;
    width: 100%;
    gap: 0.85rem;
  }
  .hero-ctas .btn {
    width: 100%;
    justify-content: center;
  }
  .hero-metrics {
    gap: 1rem;
    flex-wrap: wrap;
  }
  .hero-metric-item {
    flex: 1 1 calc(33.333% - 1rem);
    min-width: 100px;
  }
  .grid-2-col, .grid-2-col.equal, .grid-2-col.reversed,
  .grid-3-col, .grid-4-col, .cta-banner-grid {
    grid-template-columns: 1fr !important;
    gap: 1.75rem !important;
  }
  .grid-7-col {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.75rem !important;
  }
  .subgrid-2-col {
    grid-template-columns: 1fr !important;
    gap: 0.75rem !important;
  }
  .clients-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .services-grid, .projects-grid, .advantages-grid, .offices-grid {
    grid-template-columns: 1fr;
  }
  .rfq-banner-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    text-align: center;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
  .modal-overlay {
    padding: 0.75rem 0.5rem;
    z-index: 100050 !important;
  }
  .modal-box {
    padding: 1.5rem 1.15rem;
    width: 100% !important;
    max-width: 100% !important;
    max-height: 94vh;
    max-height: 94dvh;
    border-radius: var(--radius-lg);
  }
  .modal-title {
    font-size: 1.45rem;
  }
  .modal-close-btn {
    top: 1rem;
    right: 1rem;
  }
}

@media (max-width: 480px) {
  .container {
    padding-left: 1.15rem;
    padding-right: 1.15rem;
  }
  .section {
    padding: 3.25rem 0;
  }
  .section-header {
    margin-bottom: 2.25rem;
  }
  .section-title {
    font-size: 1.65rem;
  }
  .hero-title {
    font-size: 1.85rem;
    line-height: 1.2;
  }
  .hero-subtitle {
    font-size: 0.95rem;
    margin-bottom: 1.75rem;
  }
  .hero-visual-card {
    padding: 1.25rem;
  }
  .hero-metric-item {
    flex: 1 1 100%;
    text-align: center;
  }
  .brand-title {
    font-size: 1.05rem;
  }
  .brand-sub {
    font-size: 0.58rem;
  }
  .brand-mark {
    height: 24px;
    width: auto;
  }
  .site-footer .brand-mark {
    height: 24px;
  }
  .nav-actions {
    gap: 0.5rem;
  }
  .nav-actions .btn-sm {
    padding: 0.4rem 0.7rem;
    font-size: 0.8rem;
  }
  .client-item {
    min-height: 80px;
    padding: 0.5rem 0.75rem;
  }
  .client-logo-img {
    max-height: 44px;
  }
  .modal-overlay {
    padding: 0.35rem;
  }
  .modal-box {
    padding: 1.25rem 0.85rem;
    border-radius: var(--radius-md);
  }
  .modal-title {
    font-size: 1.3rem;
  }
  .modal-close-btn {
    top: 0.75rem;
    right: 0.75rem;
    width: 32px;
    height: 32px;
  }
}

/* ==========================================================================
   FLOATING SCROLL TO TOP BUTTON
   ========================================================================== */
.scroll-top-btn {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  background: var(--navy-900);
  color: var(--emerald-400);
  border: 1px solid rgba(16, 185, 129, 0.4);
  box-shadow: 0 8px 24px -4px rgba(10, 25, 47, 0.4), 0 0 16px rgba(16, 185, 129, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: all var(--transition-normal);
  z-index: 990;
}

.scroll-top-btn.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-top-btn:hover {
  background: var(--emerald-500);
  color: #ffffff;
  border-color: var(--emerald-400);
  transform: translateY(-4px);
  box-shadow: 0 12px 28px -4px rgba(16, 185, 129, 0.5), 0 0 22px rgba(16, 185, 129, 0.4);
}

.scroll-top-btn:active {
  transform: translateY(-1px);
}

@media (max-width: 768px) {
  .scroll-top-btn {
    bottom: 1.25rem;
    right: 1.25rem;
    width: 42px;
    height: 42px;
  }
}
