/*
Theme Name: MR Technologies Native Enterprise Theme
Theme URI: https://mrtech.com.pk/
Author: MR Technologies Engineering Team
Author URI: https://mrtech.com.pk/
Description: Production-ready, classic/hybrid native WordPress theme for MR Technologies. Built with pure PHP, HTML5, CSS3, vanilla JavaScript, and native Gutenberg block patterns. Zero page builder dependencies.
Version: 2.0.1
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: mr-technologies
Tags: custom-colors, custom-menu, custom-logo, editor-style, featured-images, block-patterns, threaded-comments, translation-ready
*/

/* ==========================================================================
   MR TECHNOLOGIES — PREMIUM DESIGN SYSTEM & ELEMENTOR CONTAINER STYLES
   Official Brand Palette: Navy (#0A2540) & Crimson Red (#D31027) on Crisp White
   ========================================================================== */

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

:root {
  /* Brand Primary & Accents */
  --mrt-navy: #0A2540;
  --mrt-navy-dark: #061526;
  --mrt-navy-light: #153A60;
  --mrt-navy-subtle: #F0F4F8;
  
  --mrt-red: #D31027;
  --mrt-red-hover: #B70D20;
  --mrt-red-light: #FFF1F2;
  --mrt-red-glow: rgba(211, 16, 39, 0.18);

  /* Neutrals & Surfaces */
  --mrt-white: #FFFFFF;
  --mrt-surface-1: #FAFCFE;
  --mrt-surface-2: #F1F5F9;
  --mrt-surface-3: #E2E8F0;
  --mrt-border: #E2E8F0;
  --mrt-border-light: #F1F5F9;

  /* Typography Colors */
  --mrt-text-main: #1E293B;
  --mrt-text-muted: #64748B;
  --mrt-text-light: #94A3B8;

  /* Fonts */
  --font-heading: 'Outfit', 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Shadows & Elevations */
  --shadow-sm: 0 2px 8px -2px rgba(10, 37, 64, 0.05);
  --shadow-md: 0 10px 25px -4px rgba(10, 37, 64, 0.07), 0 2px 8px -2px rgba(10, 37, 64, 0.04);
  --shadow-lg: 0 20px 40px -8px rgba(10, 37, 64, 0.12), 0 4px 12px -2px rgba(10, 37, 64, 0.04);
  --shadow-glow: 0 0 30px rgba(211, 16, 39, 0.25);
  --shadow-card-hover: 0 22px 45px -10px rgba(10, 37, 64, 0.12), 0 0 0 1px rgba(211, 16, 39, 0.15);

  /* Elementor Container Widths & Spacing */
  --container-max-width: 1280px;
  --container-wide-width: 1400px;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-pill: 9999px;
  --transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Mobile navigation interaction states. */
@media (max-width: 768px) {
  .mobile-toggle {
    position: relative;
    z-index: 10002;
    min-width: 44px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  .nav-menu { z-index: 10001; pointer-events: none; }
  .nav-menu.active { pointer-events: auto; }
  body.mrt-menu-open { overflow: hidden; }
}

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

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

body {
  font-family: var(--font-body);
  background-color: var(--mrt-white);
  color: var(--mrt-text-main);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

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

ul, ol {
  list-style: none;
}

/* Typography Hierarchy */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--mrt-navy);
  font-weight: 700;
  line-height: 1.2;
}

h1 {
  font-size: clamp(1.85rem, 4vw, 3.6rem);
  letter-spacing: -0.025em;
  font-weight: 800;
}

h2 {
  font-size: clamp(1.85rem, 3.2vw, 2.75rem);
  letter-spacing: -0.02em;
}

h3 {
  font-size: clamp(1.3rem, 2vw, 1.7rem);
}

h4 {
  font-size: 1.2rem;
}

p {
  color: var(--mrt-text-muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

.text-navy { color: var(--mrt-navy) !important; }
.text-red { color: var(--mrt-red) !important; }
.text-muted { color: var(--mrt-text-muted) !important; }
.text-white { color: var(--mrt-white) !important; }

/* Native Elementor Flexbox & Grid Container Compatibility Classes */
.e-con {
  display: flex;
  position: relative;
  width: 100%;
}

.e-con-boxed {
  max-width: var(--container-max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.e-con-wide {
  max-width: var(--container-wide-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.e-con-full {
  width: 100%;
}

.e-con-column {
  flex-direction: column;
}

.e-con-row {
  flex-direction: row;
}

.e-grid {
  display: grid;
  width: 100%;
  gap: 2rem;
}

.e-grid-2 { grid-template-columns: repeat(2, 1fr); }
.e-grid-3 { grid-template-columns: repeat(3, 1fr); }
.e-grid-4 { grid-template-columns: repeat(4, 1fr); }

/* Section Padding */
.section-padding {
  padding-top: clamp(4.5rem, 7vw, 7.5rem);
  padding-bottom: clamp(4.5rem, 7vw, 7.5rem);
}

.section-padding-sm {
  padding-top: 3rem;
  padding-bottom: 3rem;
}

.bg-surface {
  background-color: var(--mrt-surface-1);
}

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

.bg-navy h1, .bg-navy h2, .bg-navy h3, .bg-navy h4 {
  color: var(--mrt-white);
}

.bg-navy p {
  color: #CBD5E1;
}

/* Header & Sticky Navigation */
.header-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: var(--transition);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
}

.header-wrapper.scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 10px 30px -5px rgba(10, 37, 64, 0.08);
}

/* Top Notification / Trust Bar */
.top-bar {
  background: var(--mrt-navy);
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.825rem;
  padding: 0.45rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

.top-bar-links {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.top-bar-links a {
  color: rgba(255, 255, 255, 0.85);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.top-bar-links a:hover {
  color: #FFFFFF;
}

.top-bar-badge {
  background: rgba(211, 16, 39, 0.3);
  color: #FECDD3;
  padding: 0.15rem 0.6rem;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.75rem;
  border: 1px solid rgba(211, 16, 39, 0.5);
}

/* Main Navigation Bar */
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand-logo img {
  height: 52px;
  width: auto;
  object-fit: contain;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-item {
  position: relative;
}

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

.nav-link:hover, .nav-link.active {
  color: var(--mrt-red);
}

/* Dropdown Menu */
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 320px;
  background: var(--mrt-white);
  border: 1px solid var(--mrt-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: var(--transition);
  z-index: 100;
}

.nav-item:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.75rem;
  border-radius: var(--radius-sm);
  color: var(--mrt-text-main);
  transition: var(--transition);
}

.dropdown-item:hover {
  background: var(--mrt-surface-1);
  color: var(--mrt-red);
}

.dropdown-item .icon {
  font-size: 1.25rem;
  color: var(--mrt-navy);
  line-height: 1;
  margin-top: 2px;
}

.dropdown-item:hover .icon {
  color: var(--mrt-red);
}

.dropdown-item .title {
  font-weight: 600;
  font-size: 0.92rem;
  display: block;
}

.dropdown-item .desc {
  font-size: 0.8rem;
  color: var(--mrt-text-muted);
}

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

/* Mobile Toggle */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.75rem;
  color: var(--mrt-navy);
  cursor: pointer;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.8rem 1.6rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid transparent;
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--mrt-red);
  color: var(--mrt-white);
  box-shadow: 0 4px 14px rgba(211, 16, 39, 0.28);
}

.btn-primary:hover {
  background: var(--mrt-red-hover);
  color: var(--mrt-white);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(211, 16, 39, 0.35);
}

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

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

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

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

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

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

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

.btn-lg {
  padding: 1rem 2.2rem;
  font-size: 1.05rem;
}

/* Badge & Pills */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.825rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius-pill);
}

.badge-red {
  background: var(--mrt-red-light);
  color: var(--mrt-red);
  border: 1px solid rgba(211, 16, 39, 0.2);
}

.badge-navy {
  background: var(--mrt-navy-subtle);
  color: var(--mrt-navy);
  border: 1px solid rgba(10, 37, 64, 0.15);
}

.badge-white {
  background: rgba(255, 255, 255, 0.15);
  color: var(--mrt-white);
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(8px);
}

/* Hero Section */
.hero-section {
  padding-top: calc(84px + 42px + 4rem);
  padding-bottom: 5rem;
  position: relative;
  background: radial-gradient(circle at 80% 20%, rgba(211, 16, 39, 0.04) 0%, transparent 50%),
              radial-gradient(circle at 10% 80%, rgba(10, 37, 64, 0.05) 0%, transparent 60%),
              #FFFFFF;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 4rem;
  align-items: center;
}

.hero-headline {
  margin-top: 1.25rem;
  margin-bottom: 1.25rem;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--mrt-text-muted);
  margin-bottom: 2rem;
  max-width: 580px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 3rem;
}

.hero-trust-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--mrt-border);
}

.trust-metric-item .metric-number {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
  color: var(--mrt-navy);
  line-height: 1;
}

.trust-metric-item .metric-number span {
  color: var(--mrt-red);
}

.trust-metric-item .metric-label {
  font-size: 0.85rem;
  color: var(--mrt-text-muted);
  margin-top: 0.35rem;
  font-weight: 500;
}

/* Hero Right Visual Stack */
.hero-visual-card {
  position: relative;
  background: var(--mrt-surface-1);
  border: 1px solid var(--mrt-border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-lg);
}

.hero-visual-banner {
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
}

.hero-visual-banner svg {
  width: 100%;
  height: 280px;
}

.hero-floating-card {
  background: #FFFFFF;
  border: 1px solid var(--mrt-border);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  margin-top: 1.25rem;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.status-indicator {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: #10B981;
}

.status-dot {
  width: 10px;
  height: 10px;
  background: #10B981;
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.5); }
  70% { box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* Client Logo Marquee */
.client-marquee-section {
  background: var(--mrt-surface-1);
  padding: 2.5rem 0;
  border-top: 1px solid var(--mrt-border);
  border-bottom: 1px solid var(--mrt-border);
  overflow: hidden;
}

.marquee-header {
  text-align: center;
  margin-bottom: 1.5rem;
}

.marquee-header span {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mrt-text-muted);
}

.marquee-track-wrapper {
  position: relative;
  width: 100%;
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
}

.marquee-track {
  display: flex;
  gap: 2.5rem;
  width: max-content;
  animation: marquee 35s linear infinite;
}

.marquee-track:hover {
  animation-play-state: paused;
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.client-chip {
  background: var(--mrt-white);
  border: 1px solid var(--mrt-border);
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--mrt-navy);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  box-shadow: var(--shadow-sm);
  white-space: nowrap;
  transition: var(--transition);
  height: 60px;
}

.client-chip img {
  height: 36px;
  width: auto;
  max-width: 90px;
  object-fit: contain;
  display: block;
}

.client-chip:hover {
  border-color: var(--mrt-red);
  color: var(--mrt-red);
  transform: translateY(-2px);
}

.service-card-img-wrapper {
  width: 100%;
  height: 190px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-bottom: 1.25rem;
  background: var(--mrt-surface-2);
}

.service-card-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.service-card:hover .service-card-img-wrapper img {
  transform: scale(1.05);
}

/* Section Header */
.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 3.5rem auto;
}

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

.section-title {
  margin-top: 0.75rem;
  margin-bottom: 1rem;
}

/* 3 Divisions Tab Switcher */
.division-tabs {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.division-tab-btn {
  background: var(--mrt-surface-1);
  border: 1.5px solid var(--mrt-border);
  color: var(--mrt-navy);
  padding: 1rem 1.75rem;
  border-radius: var(--radius-md);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.division-tab-btn:hover {
  background: #FFFFFF;
  border-color: var(--mrt-red);
  color: var(--mrt-red);
}

.division-tab-btn.active {
  background: var(--mrt-navy);
  color: var(--mrt-white);
  border-color: var(--mrt-navy);
  box-shadow: var(--shadow-md);
}

.division-tab-btn.active span.num {
  background: var(--mrt-red);
  color: #FFFFFF;
}

.division-tab-btn span.num {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--mrt-surface-3);
  color: var(--mrt-navy);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 800;
}

/* Service Cards Grid */
.service-card {
  background: var(--mrt-white);
  border: 1px solid var(--mrt-border);
  border-radius: var(--radius-md);
  padding: 2.25rem 1.75rem;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  position: relative;
  height: 100%;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: transparent;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  transition: var(--transition);
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card-hover);
  border-color: rgba(211, 16, 39, 0.3);
}

.service-card:hover::before {
  background: var(--mrt-red);
}

.service-icon-box {
  width: 58px;
  height: 58px;
  background: var(--mrt-surface-1);
  border: 1px solid var(--mrt-border);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: var(--mrt-navy);
  margin-bottom: 1.5rem;
  transition: var(--transition);
}

.service-card:hover .service-icon-box {
  background: var(--mrt-red-light);
  border-color: rgba(211, 16, 39, 0.3);
  color: var(--mrt-red);
  transform: rotate(5deg);
}

.service-title {
  font-size: 1.3rem;
  margin-bottom: 0.75rem;
}

.service-desc {
  font-size: 0.95rem;
  color: var(--mrt-text-muted);
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.service-feature-list {
  border-top: 1px solid var(--mrt-border-light);
  padding-top: 1rem;
  margin-bottom: 1.5rem;
}

.service-feature-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--mrt-text-main);
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.service-feature-item svg {
  color: var(--mrt-red);
  flex-shrink: 0;
}

.service-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--mrt-navy);
}

.service-card:hover .service-link {
  color: var(--mrt-red);
  gap: 0.6rem;
}

/* 5-Phase Methodology Section */
.process-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.5rem;
  position: relative;
}

.process-step-card {
  background: var(--mrt-white);
  border: 1px solid var(--mrt-border);
  border-radius: var(--radius-md);
  padding: 1.75rem 1.25rem;
  text-align: center;
  position: relative;
  transition: var(--transition);
}

.process-step-card:hover {
  transform: translateY(-4px);
  border-color: var(--mrt-red);
  box-shadow: var(--shadow-md);
}

.process-step-num {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--mrt-navy);
  color: #FFFFFF;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-pill);
}

.process-step-card:hover .process-step-num {
  background: var(--mrt-red);
}

.process-step-icon {
  font-size: 2rem;
  color: var(--mrt-navy);
  margin-top: 0.5rem;
  margin-bottom: 0.75rem;
}

.process-step-title {
  font-size: 1.1rem;
  margin-bottom: 0.4rem;
}

.process-step-desc {
  font-size: 0.85rem;
}

/* CEO & Executive Quote Section */
.ceo-quote-box {
  background: linear-gradient(135deg, var(--mrt-navy-dark) 0%, var(--mrt-navy) 100%);
  border-radius: var(--radius-lg);
  padding: clamp(2.5rem, 5vw, 4.5rem);
  color: var(--mrt-white);
  position: relative;
  overflow: hidden;
}

.ceo-quote-box::after {
  content: '"';
  position: absolute;
  right: 2rem;
  bottom: -2rem;
  font-family: serif;
  font-size: 18rem;
  line-height: 1;
  color: rgba(255, 255, 255, 0.04);
  pointer-events: none;
}

.ceo-quote-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 3.5rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.ceo-profile-card {
  text-align: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: 2rem;
  backdrop-filter: blur(10px);
}

.ceo-avatar-placeholder {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: var(--mrt-surface-1);
  margin: 0 auto 1.25rem auto;
  border: 4px solid var(--mrt-red);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: var(--mrt-navy);
  overflow: hidden;
}

.ceo-quote-text {
  font-size: 1.35rem;
  line-height: 1.6;
  font-weight: 400;
  color: #F1F5F9;
  margin-bottom: 2rem;
  font-style: italic;
}

/* Interactive RFP Estimator */
.rfp-builder-card {
  background: var(--mrt-white);
  border: 1px solid var(--mrt-border);
  border-radius: var(--radius-lg);
  padding: clamp(2rem, 4vw, 3.5rem);
  box-shadow: var(--shadow-lg);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--mrt-navy);
  margin-bottom: 0.5rem;
}

.form-control {
  width: 100%;
  padding: 0.85rem 1.1rem;
  border: 1.5px solid var(--mrt-border);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--mrt-text-main);
  background: var(--mrt-surface-1);
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--mrt-red);
  background: #FFFFFF;
  box-shadow: 0 0 0 4px var(--mrt-red-glow);
}

.service-select-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.checkbox-pill {
  border: 1.5px solid var(--mrt-border);
  background: var(--mrt-surface-1);
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--mrt-navy);
}

.checkbox-pill:hover {
  border-color: var(--mrt-red);
  background: #FFFFFF;
}

.checkbox-pill.selected {
  background: var(--mrt-red-light);
  border-color: var(--mrt-red);
  color: var(--mrt-red);
}

/* Footer */
.footer-wrapper {
  background: var(--mrt-navy-dark);
  color: #94A3B8;
  padding-top: 5rem;
  padding-bottom: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr 0.9fr 1.1fr;
  gap: 3.5rem;
  margin-bottom: 4rem;
}

.footer-title {
  color: var(--mrt-white);
  font-size: 1.15rem;
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 0.75rem;
}

.footer-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 32px;
  height: 2px;
  background: var(--mrt-red);
}

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

.footer-links a {
  color: #94A3B8;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.footer-links a:hover {
  color: var(--mrt-white);
  padding-left: 4px;
}

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

.footer-contact-item svg {
  color: var(--mrt-red);
  flex-shrink: 0;
  margin-top: 4px;
}

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

/* Modal Window */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 37, 64, 0.75);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  padding: 1.5rem;
}

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

.modal-box {
  background: #FFFFFF;
  border-radius: var(--radius-lg);
  max-width: 650px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 2.5rem;
  position: relative;
  box-shadow: var(--shadow-lg);
  transform: translateY(20px);
  transition: var(--transition);
}

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

.modal-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: var(--mrt-surface-2);
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: var(--mrt-navy);
}

.modal-close:hover {
  background: var(--mrt-red-light);
  color: var(--mrt-red);
}

/* Responsive Media Queries */
@media (max-width: 1100px) {
  .e-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .e-grid-3 { grid-template-columns: repeat(2, 1fr); }
  .process-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 2.5rem; }
}

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 3rem; }
  .ceo-quote-grid { grid-template-columns: 1fr; gap: 2rem; }
  .service-select-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .top-bar { display: none; }
  .nav-menu {
    position: fixed;
    top: 84px;
    left: 0;
    right: 0;
    background: #FFFFFF;
    flex-direction: column;
    align-items: flex-start;
    padding: 2rem;
    box-shadow: var(--shadow-lg);
    border-bottom: 1px solid var(--mrt-border);
    max-height: calc(100vh - 84px);
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition);
  }
  .nav-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
  .dropdown-menu {
    position: static;
    box-shadow: none;
    border: none;
    padding-left: 1rem;
    opacity: 1;
    visibility: visible;
    transform: none;
    display: none;
  }
  .nav-item.open .dropdown-menu {
    display: block;
  }
  .mobile-toggle { display: block; }
  .nav-actions .btn { display: none; }
  .e-grid-2, .e-grid-3, .e-grid-4 { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }
  .service-select-grid { grid-template-columns: 1fr; }
  .hero-trust-metrics { grid-template-columns: 1fr; gap: 1rem; }
  .service-hero-grid, .service-feature-row { grid-template-columns: 1fr; gap: 2rem; }
  .service-hero-media img { height: 260px; }
  .service-feature-media img { height: 240px; }
}

@media (max-width: 480px) {
  .hero-headline {
    font-size: clamp(1.75rem, 7vw, 2.25rem);
    line-height: 1.18;
    overflow-wrap: break-word;
    word-break: normal;
  }
  .hero-subtitle {
    font-size: 1rem;
    line-height: 1.5;
  }
  .hero-actions {
    flex-direction: column;
    width: 100%;
  }
  .hero-actions .btn {
    width: 100%;
    text-align: center;
  }
  .btn-lg {
    padding: 0.85rem 1.4rem;
    font-size: 0.95rem;
  }
}


/* Service Single Page Layouts */
.service-hero {
  padding-top: calc(84px + 42px + 3.5rem);
  padding-bottom: 4.5rem;
  background: radial-gradient(circle at 85% 15%, rgba(211, 16, 39, 0.04) 0%, transparent 40%),
              radial-gradient(circle at 10% 85%, rgba(10, 37, 64, 0.04) 0%, transparent 40%),
              #FFFFFF;
  border-bottom: 1px solid var(--mrt-border);
}

.service-hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3.5rem;
  align-items: center;
}

.service-hero-media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--mrt-border);
  background: var(--mrt-surface-2);
}

.service-hero-media img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  display: block;
}

.service-feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  margin-top: 4.5rem;
}

.service-feature-row.reverse {
  direction: rtl;
}

.service-feature-row.reverse > * {
  direction: ltr;
}

.service-feature-media {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--mrt-border);
  background: var(--mrt-surface-2);
}

.service-feature-media img {
  width: 100%;
  height: 360px;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.service-feature-media:hover img {
  transform: scale(1.03);
}

/* ==========================================================================
   SERVICE PAGES MOBILE RESPONSIVE OVERRIDES (Version 2.0.1)
   Applies strict responsive stacking, 4:3 natural aspect ratios, full-width
   touch-friendly CTAs, and zero horizontal overflow below 768px, 480px, 360px & 320px.
   ========================================================================== */

@media (max-width: 768px) {
  /* Prevent horizontal overflow */
  html, body {
    overflow-x: hidden !important;
    width: 100% !important;
  }

  .e-con-boxed {
    padding-left: 1.25rem !important;
    padding-right: 1.25rem !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* 1. Service Hero Stacking */
  .service-hero {
    padding-top: calc(84px + 1.5rem) !important;
    padding-bottom: 2.5rem !important;
  }

  .service-hero-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 2rem !important;
    width: 100% !important;
  }

  .service-hero-grid > * {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  /* 2. Service Hero Image (Full width, natural 4:3 ratio, no narrow distortion) */
  .service-hero-media {
    width: 100% !important;
    max-width: 100% !important;
    border-radius: var(--radius-md) !important;
    overflow: hidden !important;
    margin-top: 0.5rem !important;
  }

  .service-hero-media img {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 4 / 3 !important;
    max-height: none !important;
    object-fit: cover !important;
    display: block !important;
  }

  /* 3. Alternating Feature & Process Rows Stacking */
  .service-feature-row,
  .service-feature-row.reverse {
    display: flex !important;
    flex-direction: column !important;
    direction: ltr !important;
    gap: 2rem !important;
    margin-top: 2.5rem !important;
    width: 100% !important;
  }

  .service-feature-row > *,
  .service-feature-row.reverse > * {
    width: 100% !important;
    max-width: 100% !important;
    direction: ltr !important;
    box-sizing: border-box !important;
  }

  /* 4. Feature Process & Application Media (4:3 ratio) */
  .service-feature-media {
    width: 100% !important;
    max-width: 100% !important;
    border-radius: var(--radius-md) !important;
    overflow: hidden !important;
  }

  .service-feature-media img {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 4 / 3 !important;
    max-height: none !important;
    object-fit: cover !important;
    display: block !important;
  }

  /* 5. Typography & Spacing */
  .service-hero .section-title,
  main .section-padding h1 {
    font-size: clamp(1.65rem, 6vw, 2.25rem) !important;
    line-height: 1.22 !important;
    margin-top: 0.75rem !important;
    margin-bottom: 1rem !important;
    word-break: normal !important;
    overflow-wrap: break-word !important;
  }

  .service-hero .hero-subtitle,
  main .section-padding p {
    font-size: 1rem !important;
    line-height: 1.6 !important;
  }

  /* 6. Action Buttons Full-Width Stacking */
  .service-hero .hero-actions,
  .hero-actions {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    gap: 0.75rem !important;
    margin-top: 1.5rem !important;
    margin-bottom: 0 !important;
  }

  .service-hero .hero-actions .btn,
  .hero-actions .btn {
    width: 100% !important;
    text-align: center !important;
    justify-content: center !important;
    padding: 0.85rem 1.25rem !important;
    box-sizing: border-box !important;
  }

  /* 7. Bullet Lists & Outcomes */
  .service-feature-list {
    padding-left: 0 !important;
  }

  .service-feature-item {
    font-size: 0.95rem !important;
    line-height: 1.55 !important;
    margin-bottom: 0.85rem !important;
  }
}

@media (max-width: 480px) {
  .e-con-boxed {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }

  .service-hero {
    padding-top: calc(76px + 1.25rem) !important;
    padding-bottom: 2rem !important;
  }

  .service-hero .section-title,
  main .section-padding h1 {
    font-size: clamp(1.45rem, 6.5vw, 1.85rem) !important;
    line-height: 1.25 !important;
  }

  .badge {
    font-size: 0.72rem !important;
    padding: 0.3rem 0.65rem !important;
    white-space: normal !important;
    max-width: 100% !important;
    line-height: 1.3 !important;
    display: inline-block !important;
  }
}

@media (max-width: 360px) {
  .e-con-boxed {
    padding-left: 0.75rem !important;
    padding-right: 0.75rem !important;
  }

  .service-hero .section-title,
  main .section-padding h1 {
    font-size: 1.25rem !important;
    line-height: 1.25 !important;
  }

  .badge {
    font-size: 0.68rem !important;
    padding: 0.25rem 0.55rem !important;
    white-space: normal !important;
    display: inline-block !important;
    line-height: 1.3 !important;
  }
  
  .service-hero .hero-actions .btn,
  .hero-actions .btn {
    font-size: 0.85rem !important;
    padding: 0.75rem 0.8rem !important;
  }
}
