/* ==========================================================================
   MAS ENGINEERING CONSULTANT - PREMIUM ARCHITECTURAL DESIGN SYSTEM
   Brand Identity: Eng. Mohamed Abdallah Selim
   Accredited Egyptian Syndicate of Engineers Consultant #03/1552
   Second-Stage Refinement: Typography, Contrast & Navigation Hierarchy
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;500;600;700;800;900&display=swap');

:root {
  /* Architectural Deep Navy Palette */
  --navy-950: #060B14;
  --navy-900: #0B1528;
  --navy-850: #0F1E36;
  --navy-800: #162846;
  --navy-700: #20365B;

  /* High-Impact Engineering Red (Fire & Safety Compliance) */
  --brand-red: #D9232D;
  --brand-red-dark: #B31720;
  --brand-red-light: #FFF0F1;
  --brand-red-border: rgba(217, 35, 45, 0.3);
  --brand-red-glow: rgba(217, 35, 45, 0.4);

  /* Technical Engineering Teal (Brand Heritage) */
  --brand-teal: #019494;
  --brand-teal-dark: #007676;
  --brand-teal-light: #EBF8F8;

  /* Credential & Official Stamp Gold / Amber */
  --gold-500: #D97706;
  --gold-400: #F59E0B;
  --gold-light: #FEF3C7;

  /* Architectural Neutrals & Surfaces */
  --surface-white: #FFFFFF;
  --surface-warm: #FAFBFD;
  --surface-slate: #F1F5F9;
  --border-subtle: #E2E8F0;
  --border-strong: #CBD5E1;

  /* High-Contrast Text Colors for Light Backgrounds */
  --text-primary: #0F172A;
  --text-secondary: #1E293B;
  --text-muted: #334155;
  --text-light: #475569;

  /* High-Contrast Text Colors for Dark Backgrounds */
  --dark-text-primary: #FFFFFF;
  --dark-text-secondary: #F1F5F9;
  --dark-text-muted: #CBD5E1;

  /* Typography Stacks - Cairo Standardized System */
  --font-primary: 'Cairo', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-heading: 'Cairo', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Cairo', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'Cairo', monospace;

  /* Typography Scale System - Refined for Arabic Cairo Glyphs */
  --fs-hero: clamp(2.15rem, 4.8vw, 3.15rem);
  --fs-h1: clamp(1.85rem, 3.8vw, 2.5rem);
  --fs-h2: clamp(1.45rem, 2.8vw, 2.05rem);
  --fs-h3: clamp(1.2rem, 2vw, 1.5rem);
  --fs-card-title: clamp(1.1rem, 1.6vw, 1.3rem);
  --fs-body: 1rem;
  /* 16px */
  --fs-body-sm: 0.9375rem;
  /* 15px */
  --fs-nav: 1rem;
  /* 16px */
  --fs-btn: 0.975rem;
  /* 15.6px */
  --fs-badge: 0.85rem;
  /* 13.6px */
  --fs-meta: 0.84rem;
  /* 13.5px */

  /* Line Heights Optimized for Cairo Glyphs */
  --lh-heading: 1.36;
  --lh-body: 1.8;
  --lh-tight: 1.25;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  font-family: var(--font-body) !important;
  color: var(--text-secondary);
  background-color: var(--surface-warm);
  overflow-x: hidden;
  line-height: var(--lh-body);
  font-size: var(--fs-body);
  font-weight: 400;
}

h1 {
  font-family: var(--font-heading) !important;
  font-size: var(--fs-h1);
  font-weight: 800;
  line-height: var(--lh-heading);
  letter-spacing: normal;
  color: var(--text-primary);
}

h2 {
  font-family: var(--font-heading) !important;
  font-size: var(--fs-h2);
  font-weight: 800;
  line-height: var(--lh-heading);
  letter-spacing: normal;
  color: var(--text-primary);
}

h3 {
  font-family: var(--font-heading) !important;
  font-size: var(--fs-h3);
  font-weight: 700;
  line-height: 1.42;
  letter-spacing: normal;
  color: var(--text-primary);
}

h4 {
  font-family: var(--font-heading) !important;
  font-size: var(--fs-card-title);
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: normal;
  color: var(--text-primary);
}

h5 {
  font-family: var(--font-heading) !important;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: normal;
  color: var(--text-primary);
}

h6 {
  font-family: var(--font-heading) !important;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: normal;
  color: var(--text-primary);
}

p {
  font-family: var(--font-body) !important;
  color: var(--text-secondary);
  line-height: var(--lh-body);
  font-size: var(--fs-body);
  font-weight: 400;
}

/* Ensure ALL form elements, buttons, inputs, placeholders inherit Cairo */
input,
button,
select,
textarea,
optgroup,
option {
  font-family: var(--font-body) !important;
}

input::placeholder,
textarea::placeholder {
  font-family: var(--font-body) !important;
  color: #64748B;
  opacity: 1;
}

/* Arabic Typography Refinement: Prevent cursive ligature breaking & ensure readability */
[dir="rtl"],
[lang="ar"],
[dir="rtl"] * {
  letter-spacing: normal !important;
}

/* Cairo Typography Audit: Ensure balanced, comfortable optical scale for Arabic text */
[dir="rtl"] .text-xs,
[lang="ar"] .text-xs {
  font-size: 0.84rem !important;
  /* ~13.5px readable minimum for stamps, chips, meta */
  line-height: 1.62;
}

[dir="rtl"] .text-sm,
[lang="ar"] .text-sm {
  font-size: 0.9375rem;
  /* 15px comfortable secondary reading size */
  line-height: 1.7;
}

[dir="rtl"] .text-base,
[lang="ar"] .text-base {
  font-size: 1.03125rem;
  /* 16.5px comfortable Cairo primary body */
  line-height: 1.78;
}

[dir="rtl"] .text-lg,
[lang="ar"] .text-lg {
  font-size: 1.15rem;
  /* 18.4px */
  line-height: 1.65;
}

[dir="rtl"] .text-xl,
[lang="ar"] .text-xl {
  font-size: 1.3rem;
  /* 20.8px */
  line-height: 1.5;
}

/* Protect Button typography against excessive shrinking */
.btn-primary-red,
.btn-secondary-navy,
.btn-outline-architectural {
  font-size: var(--fs-btn) !important;
}

[dir="rtl"] .text-slate-300,
[dir="rtl"] .text-slate-400 {
  /* Enhance readability and contrast for secondary text */
  letter-spacing: normal;
}

/* Reusable Typography & Cairo Utility Classes */
.font-cairo {
  font-family: 'Cairo', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
}

/* Ensure FontAwesome icons strictly preserve their icon font family */
.fa,
.fas,
.far,
.fab,
.fal,
.fad,
.fa-solid,
.fa-regular,
.fa-brands,
[class^="fa-"],
[class*=" fa-"],
[class^="fa-"]::before,
[class*=" fa-"]::before {
  font-family: "Font Awesome 6 Free", "Font Awesome 6 Brands", fontawesome !important;
}

/* ==========================================================================
   ARCHITECTURAL & BLUEPRINT PATTERNS
   ========================================================================== */

.bg-blueprint-grid {
  background-color: var(--navy-900);
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 100px 100px, 100px 100px, 20px 20px, 20px 20px;
}

.bg-blueprint-light {
  background-color: #FAFBFD;
  background-image:
    linear-gradient(rgba(15, 30, 54, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 30, 54, 0.04) 1px, transparent 1px),
    linear-gradient(rgba(15, 30, 54, 0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 30, 54, 0.015) 1px, transparent 1px);
  background-size: 80px 80px, 80px 80px, 20px 20px, 20px 20px;
}

.cad-corner {
  position: relative;
}

.cad-corner::before,
.cad-corner::after {
  content: "";
  position: absolute;
  width: 12px;
  height: 12px;
  pointer-events: none;
  z-index: 10;
}

.cad-corner::before {
  top: 10px;
  right: 10px;
  border-top: 2px solid rgba(217, 35, 45, 0.6);
  border-right: 2px solid rgba(217, 35, 45, 0.6);
}

.cad-corner::after {
  bottom: 10px;
  left: 10px;
  border-bottom: 2px solid rgba(217, 35, 45, 0.6);
  border-left: 2px solid rgba(217, 35, 45, 0.6);
}

.cad-crosshair {
  position: relative;
}

.cad-crosshair::before {
  content: "+";
  position: absolute;
  top: -10px;
  right: -10px;
  font-family: var(--font-mono);
  font-size: 14px;
  color: rgba(100, 116, 139, 0.6);
  line-height: 1;
}

.cad-tag {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
}

/* ==========================================================================
   NAVIGATION & HEADER
   ========================================================================== */

.nav-architectural {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1.5px solid rgba(226, 236, 245, 0.95);
  box-shadow: 0 4px 20px -2px rgba(15, 30, 54, 0.05);
  transition: all 0.3s ease;
}

.nav-link {
  position: relative;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.02rem;
  color: var(--navy-900);
  padding: 9px 15px;
  border-radius: 10px;
  transition: all 0.2s ease;
}

.nav-link:hover {
  color: var(--brand-red);
  background-color: rgba(217, 35, 45, 0.05);
}

.nav-link.active {
  color: var(--navy-950);
  background-color: var(--surface-slate);
  font-weight: 700;
}

.nav-link.active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 14px;
  right: 14px;
  height: 2.5px;
  background-color: var(--brand-red);
  border-radius: 3px;
}

/* ==========================================================================
   BUTTONS & CALL TO ACTIONS
   ========================================================================== */

.btn-primary-red {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(135deg, var(--brand-red) 0%, #B81520 100%);
  color: #FFFFFF !important;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.98rem;
  padding: 13px 26px;
  border-radius: 12px;
  box-shadow: 0 6px 20px -2px rgba(217, 35, 45, 0.4), 0 2px 6px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.25);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
  cursor: pointer;
}

.btn-primary-red:hover {
  background: linear-gradient(135deg, #E62A35 0%, #C81923 100%);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px -2px rgba(217, 35, 45, 0.5), 0 4px 10px rgba(0, 0, 0, 0.12);
  color: #FFFFFF !important;
}

.btn-secondary-navy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background-color: var(--navy-900);
  color: #FFFFFF !important;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.98rem;
  padding: 13px 24px;
  border-radius: 12px;
  border: 1px solid var(--navy-700);
  transition: all 0.25s ease;
  box-shadow: 0 6px 18px rgba(11, 21, 40, 0.18);
  cursor: pointer;
}

.btn-secondary-navy:hover {
  background-color: var(--navy-850);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(11, 21, 40, 0.28);
  color: #FFFFFF !important;
}

.btn-outline-architectural {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  background-color: #FFFFFF;
  color: var(--navy-950) !important;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.98rem;
  padding: 12px 22px;
  border-radius: 12px;
  border: 1.5px solid var(--border-strong);
  transition: all 0.25s ease;
  box-shadow: 0 2px 6px rgba(15, 30, 54, 0.04);
  cursor: pointer;
}

.btn-outline-architectural:hover {
  border-color: var(--brand-red);
  color: var(--brand-red) !important;
  background-color: #FFF8F8;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(217, 35, 45, 0.12);
}

/* ==========================================================================
   BADGES & PILLS
   ========================================================================== */

.badge-official {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 15px;
  background: rgba(15, 30, 54, 0.06);
  border: 1px solid rgba(15, 30, 54, 0.16);
  border-radius: 9999px;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--navy-950);
}

.badge-live-pulse {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background-color: var(--brand-red);
  box-shadow: 0 0 0 0 rgba(217, 35, 45, 0.7);
  animation: pulse-ring 2s cubic-bezier(0.455, 0.03, 0.515, 0.955) infinite;
}

@keyframes pulse-ring {
  0% {
    box-shadow: 0 0 0 0 rgba(217, 35, 45, 0.7);
  }

  70% {
    box-shadow: 0 0 0 8px rgba(217, 35, 45, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(217, 35, 45, 0);
  }
}

/* ==========================================================================
   EDITORIAL CARDS & COMPONENT ARCHITECTURE
   ========================================================================== */

.clean-card,
.editorial-card {
  background: var(--surface-white);
  border: 1.5px solid var(--border-subtle);
  border-radius: 20px;
  box-shadow: 0 2px 10px -2px rgba(15, 30, 54, 0.05);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.clean-card:hover,
.editorial-card:hover {
  border-color: var(--border-strong);
  box-shadow: 0 20px 45px -8px rgba(15, 30, 54, 0.11), 0 4px 12px -2px rgba(15, 30, 54, 0.04);
  transform: translateY(-4px);
}

/* Featured Service Card (Prominent Asymmetric Card - Dark Theme) */
.service-spec-featured {
  background: linear-gradient(145deg, #0B1528 0%, #102038 100%);
  color: #FFFFFF;
  border: 1.5px solid rgba(255, 255, 255, 0.16);
  border-radius: 22px;
  padding: 36px 32px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 50px -10px rgba(11, 21, 40, 0.35);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.service-spec-featured:hover {
  border-color: rgba(217, 35, 45, 0.6);
  transform: translateY(-4px);
  box-shadow: 0 25px 60px -10px rgba(217, 35, 45, 0.25);
}

.service-spec-featured p {
  color: #E2E8F0 !important;
}

/* Standard Service Card (Light Theme) */
.service-spec-card {
  background: var(--surface-white);
  border: 1.5px solid var(--border-subtle);
  border-radius: 20px;
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.service-spec-card p {
  color: #334155 !important;
}

.service-spec-card::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 3.5px;
  background: transparent;
  transition: background 0.3s ease;
}

.service-spec-card:hover {
  border-color: #B9C6D9;
  transform: translateY(-4px);
  box-shadow: 0 20px 45px -10px rgba(11, 21, 40, 0.1);
}

.service-spec-card:hover::before {
  background: linear-gradient(90deg, var(--brand-red) 0%, var(--navy-850) 100%);
}

.service-icon-box {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease;
}

.service-spec-card:hover .service-icon-box,
.service-spec-featured:hover .service-icon-box {
  transform: scale(1.1);
}

/* ==========================================================================
   PROJECTS PORTFOLIO - FEATURED & ASYMMETRIC GRID
   ========================================================================== */

.project-featured-card {
  background: var(--surface-white);
  border: 1.5px solid var(--border-subtle);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 16px 40px -10px rgba(15, 30, 54, 0.08);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.project-featured-card:hover {
  border-color: #CBD5E1;
  box-shadow: 0 25px 60px -12px rgba(15, 30, 54, 0.15);
  transform: translateY(-4px);
}

.project-featured-image-wrapper {
  position: relative;
  overflow: hidden;
  background-color: var(--navy-950);
  min-height: 380px;
}

@media (min-width: 1024px) {
  .project-featured-image-wrapper {
    min-height: 480px;
  }
}

.project-featured-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.project-editorial-card {
  background: var(--surface-white);
  border: 1.5px solid var(--border-subtle);
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}

.project-editorial-card:hover {
  border-color: #CBD5E1;
  box-shadow: 0 20px 45px -10px rgba(15, 30, 54, 0.12);
  transform: translateY(-4px);
}

.project-image-wrapper {
  position: relative;
  overflow: hidden;
  background-color: var(--navy-900);
}

.project-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-editorial-card:hover .project-image-wrapper img {
  transform: scale(1.06);
}

.project-badge-tag {
  position: absolute;
  top: 16px;
  right: 16px;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 8px;
  background: rgba(11, 21, 40, 0.9);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #FFFFFF !important;
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  z-index: 2;
}

/* ==========================================================================
   STAT COUNTER BOX
   ========================================================================== */

.stat-counter-box {
  background: var(--surface-white);
  border: 1.5px solid var(--border-subtle);
  border-radius: 18px;
  padding: 24px 20px;
  text-align: center;
  position: relative;
  transition: all 0.3s ease;
}

.stat-counter-box:hover {
  border-color: var(--navy-850);
  transform: translateY(-2px);
  box-shadow: 0 12px 30px -4px rgba(15, 30, 54, 0.1);
}

.stat-number {
  font-family: var(--font-mono);
  font-size: clamp(2rem, 3.8vw, 2.6rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 4px;
}

/* ==========================================================================
   FAQ ACCORDION
   ========================================================================== */

.faq-item-modern {
  border: 1.5px solid var(--border-subtle);
  border-radius: 16px;
  overflow: hidden;
  background: var(--surface-white);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.faq-item-modern:hover {
  border-color: #CBD5E1;
}

.faq-question {
  width: 100%;
  padding: 20px 24px;
  text-align: right;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--navy-950);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
  background: transparent;
  border: none;
  transition: color 0.2s ease;
}

.faq-question:hover {
  color: var(--brand-red);
}

.faq-answer {
  padding: 0 24px 22px 24px;
  font-size: 0.98rem;
  color: var(--text-secondary);
  line-height: 1.85;
  border-top: 1px solid #F1F5F9;
  padding-top: 18px;
}

/* ==========================================================================
   FLOATING ACTION PILLS
   ========================================================================== */

.floating-actions {
  position: fixed;
  bottom: 28px;
  left: 28px;
  z-index: 50;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

[dir="ltr"] .floating-actions {
  left: auto;
  right: 28px;
}

.float-btn {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff !important;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  text-decoration: none;
}

.float-btn:hover {
  transform: scale(1.08) translateY(-3px);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.3);
  color: #FFFFFF !important;
}

.float-btn-wa {
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
}

.float-btn-call {
  background: linear-gradient(135deg, var(--navy-900) 0%, var(--navy-800) 100%);
  border: 1px solid rgba(255, 255, 255, 0.25);
}

/* ==========================================================================
   MODAL LIGHTBOX
   ========================================================================== */

.modal-overlay {
  background: rgba(6, 11, 20, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

/* ==========================================================================
   REVEAL ON SCROLL & SUBTLE ANIMATIONS
   ========================================================================== */

.reveal-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1), transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-on-scroll.is-revealed {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce),
print {
  .reveal-on-scroll {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

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

/* Custom Architectural Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #F1F5F9;
}

::-webkit-scrollbar-thumb {
  background: #94A3B8;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--navy-850);
}

/* Print Utilities */
@media print {

  .nav-architectural,
  .floating-actions,
  footer {
    display: none !important;
  }
}

/* ==========================================================================
   MOBILE NAVIGATION DRAWER & BACKDROP SYSTEM
   ========================================================================== */

.mobile-nav-backdrop {
  position: fixed;
  inset: 0;
  background-color: rgba(6, 11, 20, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-nav-backdrop.is-active {
  opacity: 1;
  visibility: visible;
}

.mobile-nav-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 86%;
  max-width: 380px;
  background-color: #FFFFFF;
  z-index: 999;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: -10px 0 35px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

[dir="ltr"] .mobile-nav-drawer {
  right: auto;
  left: 0;
  transform: translateX(-100%);
  box-shadow: 10px 0 35px rgba(0, 0, 0, 0.25);
}

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

.mobile-drawer-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 16px;
  border-radius: 12px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.98rem;
  color: var(--navy-900);
  background: transparent;
  transition: all 0.2s ease;
  min-height: 48px;
}

.mobile-drawer-link:hover,
.mobile-drawer-link:active {
  background-color: var(--surface-slate);
  color: var(--brand-red);
}

.mobile-drawer-link.active {
  background-color: rgba(217, 35, 45, 0.08);
  color: var(--brand-red);
}

/* ==========================================================================
   ENGINEERING PROCESS - HORIZONTAL & VERTICAL VISUAL TIMELINE
   ========================================================================== */

/* Desktop Timeline Container (lg screens) */
@media (min-width: 1024px) {
  .process-timeline-desktop {
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
  }

  .process-timeline-desktop::before {
    content: "";
    position: absolute;
    top: 36px;
    right: 48px;
    left: 48px;
    height: 3px;
    background: linear-gradient(90deg, var(--brand-red) 0%, var(--navy-700) 50%, var(--brand-teal) 100%);
    z-index: 1;
    opacity: 0.4;
    border-radius: 2px;
  }
}

.process-step-node {
  position: relative;
  background: var(--surface-white);
  border: 1.5px solid var(--border-subtle);
  border-radius: 20px;
  padding: 30px 24px;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  z-index: 2;
}

.process-step-node:hover {
  border-color: #B9C6D9;
  transform: translateY(-4px);
  box-shadow: 0 16px 36px -8px rgba(11, 21, 40, 0.1);
}

.step-num-badge {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--navy-900) 0%, var(--navy-800) 100%);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: 1.25rem;
  margin-bottom: 20px;
  box-shadow: 0 6px 16px rgba(11, 21, 40, 0.2);
  border: 2px solid #FFFFFF;
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.process-step-node:hover .step-num-badge {
  background: linear-gradient(135deg, var(--brand-red) 0%, #B81520 100%);
  transform: scale(1.08);
  box-shadow: 0 8px 22px rgba(217, 35, 45, 0.35);
}

/* Mobile Vertical Timeline (< 1024px) */
@media (max-width: 1023px) {
  .process-timeline-mobile {
    position: relative;
    padding-right: 28px;
  }

  [dir="ltr"] .process-timeline-mobile {
    padding-right: 0;
    padding-left: 28px;
  }

  .process-timeline-mobile::before {
    content: "";
    position: absolute;
    top: 24px;
    bottom: 24px;
    right: 8px;
    width: 3px;
    background: linear-gradient(180deg, var(--brand-red) 0%, var(--navy-800) 50%, var(--brand-teal) 100%);
    border-radius: 3px;
    opacity: 0.35;
  }

  [dir="ltr"] .process-timeline-mobile::before {
    right: auto;
    left: 8px;
  }

  .process-timeline-mobile .process-step-node {
    margin-bottom: 22px;
    padding: 22px 20px;
    position: relative;
  }

  .process-timeline-mobile .process-step-node:last-child {
    margin-bottom: 0;
  }

  .process-timeline-mobile .process-step-node::after {
    content: "";
    position: absolute;
    top: 28px;
    right: -24px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background-color: var(--brand-red);
    border: 3px solid #FFFFFF;
    box-shadow: 0 0 0 2px rgba(217, 35, 45, 0.4);
    z-index: 3;
  }

  [dir="ltr"] .process-timeline-mobile .process-step-node::after {
    right: auto;
    left: -24px;
  }
}

/* ==========================================================================
   PARTNERS MOBILE CAROUSEL & CLIENTS TRACK
   ========================================================================== */

.partners-carousel-track {
  display: flex;
  gap: 16px;
  align-items: center;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 12px;
  padding-top: 4px;
}

/* Hide scrollbar for clean carousel look */
.partners-carousel-track::-webkit-scrollbar {
  display: none;
}

.partners-carousel-track {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.partner-card-snap {
  scroll-snap-align: center;
  flex-shrink: 0;
  min-width: 175px;
  background: #FFFFFF;
  border: 1.5px solid var(--border-subtle);
  border-radius: 16px;
  padding: 16px 20px;
  height: 94px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(15, 30, 54, 0.04);
  transition: all 0.25s ease;
}

@media (min-width: 768px) {
  .partner-card-snap {
    min-width: 190px;
    height: 104px;
  }
}

.partner-card-snap:hover {
  border-color: #CBD5E1;
  box-shadow: 0 8px 24px rgba(15, 30, 54, 0.08);
  transform: translateY(-2px);
}

/* ==========================================================================
   TOUCH ACCESSIBILITY & FORM INPUTS REFINEMENTS
   ========================================================================== */

input[type="text"],
input[type="tel"],
input[type="email"],
select,
textarea {
  min-height: 48px;
  font-size: 1rem !important;
  /* 16px prevents mobile iOS auto-zoom jump */
  line-height: 1.5;
}

button,
.btn-primary-red,
.btn-secondary-navy,
.btn-outline-architectural {
  min-height: 48px;
  touch-action: manipulation;
}

/* Mobile Specific Floating Actions Sizing */
@media (max-width: 640px) {
  .floating-actions {
    bottom: 20px;
    left: 16px;
    gap: 10px;
  }

  [dir="ltr"] .floating-actions {
    left: auto;
    right: 16px;
  }

  .float-btn {
    width: 50px;
    height: 50px;
    border-radius: 15px;
  }
}