/* ============================================
   1. DESIGN TOKENS (Custom Properties)
   ============================================ */
:root {
  /* Color Palette - Blues */
  --blue-950: #071938;
  --blue-900: #0a2452;
  --blue-800: #0d3b7a;
  --blue-700: #1558b0;
  --blue-600: #1f6fd6;
  --blue-100: #eaf3ff;
  --blue-50: #f5f9ff;

  /* Neutrals */
  --white: #ffffff;
  --dark: #161c2d;
  --muted: #5e6b82;
  --gray-100: #eef2f6;
  --gray-200: #e5ebf2;
  --gray-300: #d4dde8;

  /* Shadows */
  --shadow-sm: 0 8px 24px rgba(15, 32, 62, 0.06);
  --shadow-md: 0 18px 50px rgba(13, 34, 71, 0.10);
  --shadow-lg: 0 28px 80px rgba(8, 22, 48, 0.16);

  /* Border Radius */
  --radius-sm: 12px;
  --radius: 18px;
  --radius-lg: 24px;

  /* Transitions & Sizing */
  --transition: 0.28s ease;
  --container-max: 1520px;
  --header-h: 84px;

  /* Brand Accents */
  --green-whatsapp: #25d366;
  --focus-ring: 0 0 0 3px rgba(21, 88, 176, 0.3);
}


/* ============================================
   2. RESET & BASE
   ============================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--dark);
  background: var(--white);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0;
  font-family: 'Poppins', 'Inter', sans-serif;
  line-height: 1.18;
  letter-spacing: -0.02em;
}

p {
  margin: 0 0 14px;
}

a {
  color: inherit;
  text-decoration: none;
  outline: none;
}

img {
  max-width: 100%;
  display: block;
  height: auto;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}


/* ============================================
   3. ACCESSIBILITY
   ============================================ */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}


/* ============================================
   4. LAYOUT UTILITIES
   ============================================ */
.container {
  width: min(var(--container-max), calc(100% - 64px));
  margin-inline: auto;
}

.section {
  padding: 88px 0;
}

.section-soft {
  background: linear-gradient(180deg, var(--blue-50), #eef5fd);
}


/* ============================================
   5. TYPOGRAPHY COMPONENTS
   ============================================ */
.section-title {
  font-size: clamp(2rem, 3vw, 3rem);
  color: var(--blue-950);
  margin-top: 16px;
}

.section-title-left {
  text-align: left;
}

.section-lead,
.text-block {
  color: var(--muted);
  font-size: 1.02rem;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--blue-700);
  font-weight: 700;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--blue-100);
  color: var(--blue-800);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.eyebrow-light {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--white);
}

.mini-label {
  color: #c8e6ff;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.74rem;
}


/* ============================================
   6. BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.96rem;
  transition: transform var(--transition),
              box-shadow var(--transition),
              background var(--transition),
              color var(--transition),
              border-color var(--transition);
  cursor: pointer;
  will-change: transform;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-lg {
  min-height: 56px;
  padding: 14px 28px;
}

/* Primary */
.btn-primary {
  background: linear-gradient(135deg, var(--blue-700), var(--blue-600));
  color: var(--white);
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  box-shadow: var(--shadow-md);
}

/* Call */
.btn-call {
  background: linear-gradient(135deg, var(--blue-700), #2a7ce2);
  color: var(--white);
}

.btn-call-static {
  background: linear-gradient(135deg, var(--blue-700), #2a7ce2);
  color: var(--white);
  border: none;
  cursor: default;
}

.btn-call-static:hover {
  transform: none;
  box-shadow: none;
}

/* WhatsApp */
.btn-whatsapp {
  background: var(--green-whatsapp);
  color: var(--white);
}

/* Outline Light */
.btn-outline-light {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* Outline Light Alt */
.btn-outline-light-alt {
  color: var(--blue-800);
  border-color: rgba(21, 88, 176, 0.18);
  background: rgba(21, 88, 176, 0.06);
}


/* ============================================
   7. HEADER & NAVIGATION
   ============================================ */
#site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(15, 32, 62, 0.06);
  will-change: transform;
}

.header-shell {
  width: min(var(--container-max), calc(100% - 32px));
  height: var(--header-h);
  margin-inline: auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
}

.logo {
  height: 52px;
  width: auto;
}

.main-nav {
  display: flex;
  justify-content: center;
  gap: 28px;
}

.nav-link {
  position: relative;
  color: #3f4a5c;
  font-weight: 600;
  padding: 8px 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 100%;
  height: 2px;
  background: var(--blue-700);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform var(--transition);
}

.nav-link:hover,
.nav-link.active {
  color: var(--blue-800);
}

.nav-link:hover::after,
.nav-link.active::after {
  transform: scaleX(1);
}

.header-cta {
  display: flex;
  gap: 10px;
}

/* Mobile Toggle */
.mobile-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
}

.mobile-toggle span {
  display: block;
  width: 26px;
  height: 3px;
  margin: 5px auto;
  border-radius: 999px;
  background: var(--blue-900);
  transition: var(--transition);
}

.mobile-toggle.open span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.mobile-toggle.open span:nth-child(2) {
  opacity: 0;
}

.mobile-toggle.open span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}


/* ============================================
   8. HERO (Homepage)
   ============================================ */
.hero {
  position: relative;
  margin-top: var(--header-h);
  overflow: hidden;
}

/* ✅ ADD THIS INSTEAD */
.hero-home {
  background-color: var(--blue-950);
}

.hero-home::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg,
      rgba(7, 25, 56, 0.62) 0%,
      rgba(7, 25, 56, 0.34) 52%,
      rgba(7, 25, 56, 0.16) 100%),
    linear-gradient(180deg,
      rgba(7, 25, 56, 0.10) 0%,
      rgba(7, 25, 56, 0.18) 100%);
}

.hero-home::after {
  content: '';
  position: absolute;
  inset: auto 0 0 0;
  height: 140px;
  background: linear-gradient(180deg,
    rgba(7, 25, 56, 0) 0%,
    rgba(7, 25, 56, 0.30) 100%);
}

/* Hero Grid */
.hero-grid {
  position: relative;
  z-index: 1;
  min-height: 760px;
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(360px, 0.82fr);
  align-items: center;
  gap: 42px;
  padding: 86px 0 92px;
}

/* Hero Copy */
.hero-copy {
  max-width: 760px;
}

.hero-title {
  margin: 20px 0;
  color: var(--white);
  font-size: clamp(3rem, 5.8vw, 5.5rem);
  line-height: 0.98;
  letter-spacing: -0.045em;
  text-shadow: 0 14px 36px rgba(0, 0, 0, 0.22);
  max-width: 780px;
}

.hero-subtitle {
  max-width: 700px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.12rem;
  line-height: 1.75;
  margin-bottom: 30px;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 22px;
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  color: rgba(255, 255, 255, 0.84);
  font-weight: 600;
  font-size: 0.96rem;
}

.hero-points i {
  color: #8ed7ff;
}

/* Hero Panel / Glass Card */
.hero-panel {
  display: flex;
  justify-content: flex-end;
}

.glass-card {
  max-width: 420px;
  padding: 32px;
  border-radius: 30px;
  background: linear-gradient(180deg,
    rgba(255, 255, 255, 0.14) 0%,
    rgba(255, 255, 255, 0.08) 100%);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 26px 70px rgba(7, 25, 56, 0.26);
}

.hero-panel-card h3 {
  color: var(--white);
  font-size: 1.9rem;
  line-height: 1.08;
  margin: 12px 0 14px;
  letter-spacing: -0.03em;
}

.hero-panel-card p,
.hero-checks li {
  color: rgba(255, 255, 255, 0.84);
}

/* Hero Checks */
.hero-checks {
  margin-top: 18px;
}

.hero-checks li {
  padding: 14px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.hero-checks-detailed li {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.hero-checks-detailed strong {
  color: var(--white);
  font-size: 1rem;
  font-weight: 700;
}

.hero-checks-detailed span {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.94rem;
  line-height: 1.55;
}


/* ============================================
   9. TRUST BAR
   ============================================ */
.trust-bar {
  margin-top: -40px;
  position: relative;
  z-index: 2;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.trust-item,
.metric-card {
  background: var(--white);
  border: 1px solid rgba(13, 34, 71, 0.06);
  border-radius: 22px;
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

.trust-item strong,
.metric-card strong {
  display: block;
  color: var(--blue-950);
  font-size: 1.05rem;
  margin-bottom: 6px;
}

.trust-item span,
.metric-card span {
  color: var(--muted);
}

.section-intro-activities {
  padding: 80px 0;
}

.section-head-combined {
  max-width: 860px;
  margin-bottom: 42px;
}

.section-head-combined .section-title {
  margin-bottom: 18px;
}

.section-head-combined .section-lead {
  max-width: 760px;
  color: #5f6b7a;
  line-height: 1.8;
  margin-bottom: 14px;
}

.activities-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.activity-card {
  padding: 32px 28px;
  background: #fff;
  border: 1px solid rgba(15, 32, 62, 0.08);
  border-radius: 22px;
  box-shadow: 0 10px 30px rgba(15, 32, 62, 0.05);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.activity-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(15, 32, 62, 0.10);
}

.activity-badge {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #f1f5fb;
  color: #0f203e;
  font-weight: 800;
  font-size: 0.95rem;
  margin-bottom: 22px;
}

.activity-card h3 {
  margin-bottom: 14px;
  font-size: 1.28rem;
  line-height: 1.3;
  color: #0f203e;
}

.activity-card p {
  margin-bottom: 18px;
  color: #5f6b7a;
  line-height: 1.75;
}

.activity-card a {
  font-weight: 700;
  color: #1c4c96;
  text-decoration: none;
}

.activity-card a:hover {
  color: #b48a5a;
}

@media (max-width: 1024px) {
  .activities-cards-grid {
    grid-template-columns: 1fr;
  }
}


/* ============================================
   11. SERVICES SNAPSHOT (Homepage)
   ============================================ */
.section-services-snapshot {
  padding-top: 72px;
  padding-bottom: 64px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
}

.service-card {
  background: var(--white);
  border: 1px solid rgba(13, 34, 71, 0.06);
  border-radius: 24px;
  padding: 28px 22px;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition),
              box-shadow var(--transition),
              border-color var(--transition);
  will-change: transform;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: rgba(21, 88, 176, 0.12);
}

.service-icon {
  width: 60px;
  height: 60px;
  border-radius: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--blue-100), #dcecff);
  color: var(--blue-700);
  font-size: 1.4rem;
  margin-bottom: 18px;
}

.service-card h3 {
  font-size: 1.08rem;
  color: var(--blue-950);
  margin-bottom: 10px;
}

.service-card p {
  color: var(--muted);
  font-size: 0.95rem;
}

.service-link {
  display: inline-flex;
  margin-top: 16px;
  color: var(--blue-700);
  font-weight: 700;
}


/* ============================================
   12. SERVICES STRIP (Card Flip Style)
   ============================================ */
.section-services-strip {
  background: #f5f7fb;
  padding-top: 64px;
  padding-bottom: 64px;
}

.mh-services-strip-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  align-items: stretch;
}

.mh-service-card {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  min-height: 380px;
  background: var(--blue-950);
  color: #f9fafb;
  border: 1px solid rgba(15, 32, 62, 0.40);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition),
              box-shadow var(--transition),
              border-color var(--transition);
  will-change: transform;
}

.mh-service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: rgba(255, 255, 255, 0.18);
}

.mh-service-inner {
  position: relative;
  min-height: 380px;
  height: 100%;
}

.mh-service-face {
  position: absolute;
  inset: 0;
  border-radius: 22px;
  overflow: hidden;
}

/* Base Face */
.mh-service-face--base {
  z-index: 1;
  background: var(--blue-950);
  color: #fff;
  border: 1px solid rgba(15, 32, 62, 0.35);
  box-shadow: var(--shadow-sm);
  padding: 28px 26px 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.mh-service-copy,
.mh-service-face--base > div:first-child {
  max-width: 290px;
}

.mh-service-face--base h3,
.mh-service-copy h3 {
  margin: 0 0 12px;
  font-size: 1.18rem;
  line-height: 1.2;
  color: #fff;
}

.mh-service-face--base p,
.mh-service-copy p {
  margin: 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 0.98rem;
  line-height: 1.65;
}

/* Image Clip */
.mh-service-image-clip {
  position: relative;
  width: 100%;
  height: 158px;
  margin-top: 34px;
  overflow: hidden;
  clip-path: ellipse(52% 100% at 50% 100%);
  -webkit-clip-path: ellipse(52% 100% at 50% 100%);
}

.mh-service-image-clip img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  transform: scale(1.08);
  transition: transform 0.4s ease;
}

/* Hover Face */
.mh-service-face--hover {
  z-index: 2;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.38s ease, visibility 0.38s ease;
}

.mh-service-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  transition: transform 0.45s ease;
}

.mh-service-overlay,
.mh-service-overlay-copy {
  position: absolute;
  inset: 0;
  padding: 28px 26px;
  max-width: 320px;
  color: #fff;
  background: linear-gradient(180deg,
    rgba(0, 0, 0, 0.58) 0%,
    rgba(0, 0, 0, 0.16) 40%,
    rgba(0, 0, 0, 0.62) 100%);
}

.mh-service-overlay h3,
.mh-service-overlay-copy h3 {
  margin: 0 0 12px;
  font-size: 1.18rem;
  line-height: 1.2;
  color: #fff;
}

.mh-service-overlay p,
.mh-service-overlay-copy p {
  margin: 0;
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.98rem;
  line-height: 1.65;
}

/* Hover State */
.mh-service-card:hover .mh-service-face--hover {
  opacity: 1;
  visibility: visible;
}

.mh-service-card:hover .mh-service-bg {
  transform: scale(1.05);
}

/* Content Overlay Variant */
.mh-service-card > .mh-service-content {
  padding: 26px 24px 18px;
  position: relative;
  z-index: 2;
}

.mh-service-card > .mh-service-content h3 {
  margin: 0 0 12px;
  font-size: 1.08rem;
  line-height: 1.2;
  color: #f9fafb;
}

.mh-service-card > .mh-service-content p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.62;
  color: rgba(248, 250, 252, 0.84);
}

/* Image Variant */
.mh-service-card > .mh-service-image {
  position: relative;
  height: 176px;
  overflow: hidden;
  border-radius: 88px 88px 0 0;
  margin: 0 16px 16px;
}

.mh-service-card > .mh-service-image img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transform: translateY(28px);
  transition: transform 0.45s ease;
}

.mh-service-card:hover > .mh-service-image img {
  transform: translateY(0);
}

/* Photo Variant */
.mh-service-card.mh-service-photo {
  background: #0b2340;
}

.mh-service-card.mh-service-photo > .mh-service-image {
  position: absolute;
  inset: 0;
  height: 100%;
  margin: 0;
  border-radius: 22px;
}

.mh-service-card.mh-service-photo > .mh-service-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
}

.mh-service-card.mh-service-photo > .mh-service-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    rgba(7, 25, 56, 0.24) 0%,
    rgba(7, 25, 56, 0.22) 40%,
    rgba(7, 25, 56, 0.72) 100%);
}

.mh-service-card.mh-service-photo:hover > .mh-service-image img {
  transform: scale(1.07);
}

.mh-service-card.mh-service-photo > .mh-service-content,
.mh-service-card .mh-service-content-overlay {
  position: relative;
  z-index: 2;
}

.mh-service-card.mh-service-photo > .mh-service-content h3,
.mh-service-card .mh-service-content-overlay h3,
.mh-service-card.mh-service-photo > .mh-service-content p,
.mh-service-card .mh-service-content-overlay p {
  text-shadow: 0 16px 38px rgba(0, 0, 0, 0.55);
}

/* Dark Variant */
.mh-service-card.mh-service-dark {
  background: var(--blue-950);
}


/* ============================================
   13. PROJECTS STRIP (Homepage)
   ============================================ */
.section-projects-strip {
  padding-top: 56px;
  padding-bottom: 48px;
}

.projects-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.project-card {
  background: var(--white);
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(13, 34, 71, 0.06);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition),
              box-shadow var(--transition),
              border-color var(--transition);
  will-change: transform;
}

.project-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: rgba(21, 88, 176, 0.12);
}

.project-img {
  position: relative;
  height: 260px;
  background-size: cover;
  background-position: center;
  background-color: #dbe8f6;
}

.project-number {
  position: absolute;
  top: 18px;
  left: 18px;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--blue-800);
  font-weight: 800;
}

.project-info {
  padding: 24px;
}

.project-type {
  display: inline-block;
  margin-bottom: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--blue-100);
  color: var(--blue-800);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.project-info h3 {
  font-size: 1.32rem;
  color: var(--blue-950);
  margin-bottom: 10px;
}

.project-location,
.project-desc {
  color: var(--muted);
}

.project-location {
  margin-bottom: 10px;
}


/* ============================================
   14. METRICS SECTION
   ============================================ */
.metrics-section {
  padding-top: 0;
  padding-bottom: 48px;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}


/* ============================================
   15. CTA BLOCK
   ============================================ */
.section-cta-block {
  padding: 72px 0;
  background: linear-gradient(135deg, var(--blue-950), var(--blue-800));
}

.cta-block {
  color: var(--white);
}

.cta-block h2 {
  font-size: clamp(2rem, 3vw, 3rem);
  margin: 16px 0 14px;
  color: var(--white);
}

.cta-block p {
  color: rgba(255, 255, 255, 0.82);
}

.cta-block-split {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 24px;
  align-items: center;
}

.cta-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 14px;
}


/* ============================================
   16. FOOTER
   ============================================ */
#site-footer {
  background: #0c1730;
  color: rgba(255, 255, 255, 0.74);
  padding-top: 56px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.8fr 0.8fr 1fr;
  gap: 28px;
}

.footer-logo {
  height: 52px;
  width: auto;
  margin-bottom: 16px;
}

.footer-col h4 {
  color: var(--white);
  margin-bottom: 16px;
}

.footer-col li {
  margin-bottom: 10px;
}

.footer-col a:hover {
  color: #8ec5ff;
}

.footer-col i {
  color: #8ec5ff;
  margin-inline-end: 8px;
}

.social-links {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}

.social-links a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.08);
}

.footer-bottom {
  margin-top: 34px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 18px 0 24px;
  text-align: center;
  font-size: 0.92rem;
}


/* ============================================
   17. FLASH MESSAGES
   ============================================ */
.flash-container {
  width: min(var(--container-max), calc(100% - 40px));
  margin: calc(var(--header-h) + 20px) auto 0;
}

.flash-message {
  padding: 14px 18px;
  border-radius: 14px;
  margin-bottom: 10px;
  font-weight: 600;
}

.flash-success {
  background: #e5f6e9;
  color: #0a6a2f;
}

.flash-error {
  background: #fde6e7;
  color: #962a2f;
}


/* ============================================
   18. PAGE HEROES (Inner Pages)
   ============================================ */
/* Generic Page Hero */
.page-hero {
  margin-top: var(--header-h);
  padding: 110px 0 80px;
  color: var(--white);
}

.page-hero h1 {
  margin: 16px 0 14px;
  font-size: clamp(2.3rem, 4vw, 4rem);
  color: var(--white);
  max-width: 980px;
}

.page-hero p {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 1.04rem;
  line-height: 1.7;
}

/* About Hero */
.page-hero-about {
  position: relative;
  padding: 110px 0 80px;
  background:
    linear-gradient(120deg, rgba(7, 25, 56, 0.54), rgba(13, 59, 122, 0.24)),
    url('/static/img/about-hero.webp');
  background-size: cover;
  background-position: center 42%;
  background-repeat: no-repeat;
}

.page-hero-about::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg,
    rgba(7, 25, 56, 0.28) 0%,
    rgba(7, 25, 56, 0.12) 58%,
    rgba(7, 25, 56, 0.04) 100%);
}

.page-hero-about .container {
  position: relative;
  z-index: 1;
}

/* Services Hero */
.page-hero-services {
  position: relative;
  padding: 110px 0 80px;
  background:
    linear-gradient(120deg, rgba(7, 25, 56, 0.56), rgba(13, 59, 122, 0.24)),
    url('/static/img/services-hero.webp');
  background-size: cover;
  background-position: center 40%;
  background-repeat: no-repeat;
}

.page-hero-services::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg,
    rgba(7, 25, 56, 0.30) 0%,
    rgba(7, 25, 56, 0.14) 56%,
    rgba(7, 25, 56, 0.05) 100%);
}

.page-hero-services .container {
  position: relative;
  z-index: 1;
}

.page-hero-services h1 {
  max-width: 1100px;
}

/* Projects Hero */
.page-hero-projects {
  position: relative;
  padding: 110px 0 80px;
  background:
    linear-gradient(120deg, rgba(7, 25, 56, 0.70), rgba(13, 59, 122, 0.38)),
    url('/static/img/projects-hero.webp');
  background-size: cover;
  background-position: center 40%;
  background-repeat: no-repeat;
}

.page-hero-projects::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg,
    rgba(7, 25, 56, 0.24) 0%,
    rgba(7, 25, 56, 0.10) 60%,
    rgba(7, 25, 56, 0.04) 100%);
}

.page-hero-projects .container {
  position: relative;
  z-index: 1;
}

/* Contact Hero */
.page-hero-contact {
  position: relative;
  padding: 110px 0 80px;
  background:
    linear-gradient(120deg, rgba(7, 25, 56, 0.72), rgba(13, 59, 122, 0.40)),
    url('/static/img/contact-hero.webp');
  background-size: cover;
  background-position: center 50%;
  background-repeat: no-repeat;
}

.page-hero-contact::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg,
    rgba(7, 25, 56, 0.28) 0%,
    rgba(7, 25, 56, 0.10) 60%,
    rgba(7, 25, 56, 0.04) 100%);
}

.page-hero-contact .container {
  position: relative;
  z-index: 1;
}


/* ============================================
   19. ABOUT PAGE COMPONENTS
   ============================================ */
.two-col-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 28px;
  align-items: start;
}

/* Shared Card Styles */
.info-panel,
.mission-card,
.difference-card,
.team-card,
.process-step,
.safety-note {
  background: var(--white);
  border: 1px solid rgba(13, 34, 71, 0.06);
  border-radius: 24px;
  box-shadow: var(--shadow-sm);
  padding: 24px;
}

.info-panel h3,
.mission-card h3,
.difference-card h3,
.team-card h3,
.process-step h3,
.safety-note h3 {
  margin-bottom: 12px;
  color: var(--blue-950);
}

/* Check List */
.check-list li {
  position: relative;
  padding-inline-start: 28px;
  margin-bottom: 12px;
  color: var(--muted);
}

.check-list li::before {
  content: '\f00c';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  color: var(--blue-700);
  position: absolute;
  inset-inline-start: 0;
  top: 0;
}

/* Grids */
.mission-grid,
.difference-grid,
.team-grid,
.process-grid {
  display: grid;
  gap: 22px;
}

.mission-grid {
  grid-template-columns: repeat(3, 1fr);
}

.difference-grid {
  grid-template-columns: repeat(2, 1fr);
}

.team-grid {
  grid-template-columns: repeat(3, 1fr);
}

.process-grid {
  grid-template-columns: repeat(4, 1fr);
  margin-bottom: 24px;
}

/* Team Photo */
.team-photo {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 16px;
  margin-bottom: 16px;
}

.placeholder-photo {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #ebf4ff, #dcecff);
  color: var(--blue-800);
  border: 1px dashed #9abfe8;
  font-weight: 700;
}

/* Step Number */
.step-number {
  display: inline-flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--blue-100);
  color: var(--blue-800);
  font-weight: 800;
  margin-bottom: 14px;
}


/* ============================================
   20. SERVICES PAGE COMPONENTS
   ============================================ */
/* Overview Grid */
.services-overview-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
}

.overview-card,
.detail-card {
  background: var(--white);
  border: 1px solid rgba(13, 34, 71, 0.06);
  border-radius: 24px;
  box-shadow: var(--shadow-sm);
}

.overview-card {
  padding: 24px 20px;
}

.overview-card h3 {
  color: var(--blue-950);
  margin-bottom: 8px;
  font-size: 1.05rem;
}

.overview-card p,
.detail-card p {
  color: var(--muted);
}

/* Service Detail Grid (Legacy) */
.service-detail-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 28px;
  align-items: center;
}

.service-badge {
  display: inline-flex;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--blue-100);
  color: var(--blue-800);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 16px;
}

.service-detail-copy h2 {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  color: var(--blue-950);
  margin-bottom: 16px;
}

.service-detail-copy p {
  color: var(--muted);
  font-size: 1rem;
  margin-bottom: 18px;
}

/* Detail List */
.detail-list {
  display: grid;
  gap: 12px;
  margin-bottom: 24px;
}

.detail-list li {
  position: relative;
  padding-inline-start: 28px;
  color: var(--dark);
}

.detail-list li::before {
  content: '\f058';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  color: var(--blue-700);
  position: absolute;
  inset-inline-start: 0;
  top: 1px;
}

.detail-card {
  padding: 28px;
}

.detail-card h3 {
  color: var(--blue-950);
  margin-bottom: 12px;
  font-size: 1.2rem;
}

/* Services Head Grid */
.services-head-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: end;
  gap: 24px;
}

.services-head-side {
  max-width: 420px;
  justify-self: end;
}

.services-head-side p {
  color: var(--muted);
  margin-bottom: 14px;
}

/* Overview Grid (Better) */
.services-overview-grid-better {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}

.overview-card-link {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  transition: transform var(--transition),
              box-shadow var(--transition),
              border-color var(--transition);
  will-change: transform;
}

.overview-card-link:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: rgba(21, 88, 176, 0.16);
}

.overview-link {
  margin-top: auto;
  padding-top: 16px;
  color: var(--blue-700);
  font-weight: 700;
  font-size: 0.94rem;
}

/* Service Detail Premium */
.service-detail-shell {
  position: relative;
}

.service-detail-grid-premium {
  display: flex;
  flex-direction: column;
}

.service-detail-grid-premium .service-detail-copy {
  order: 1;
}

.service-detail-grid-premium .service-detail-panel {
  order: 2;
}

.service-detail-copy {
  padding-inline-end: 10px;
}

.service-detail-copy h2 {
  line-height: 1.15;
  max-width: 760px;
}

.service-detail-panel {
  display: flex;
  align-items: stretch;
}

/* Detail Card Premium */
.detail-card-premium {
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
  border: 1px solid rgba(21, 88, 176, 0.08);
  box-shadow: 0 14px 34px rgba(13, 34, 71, 0.08);
}

.detail-card-top {
  margin-bottom: 18px;
}

.detail-kicker {
  display: inline-flex;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--blue-100);
  color: var(--blue-800);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 14px;
}

.detail-mini-points {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.detail-mini-points li {
  position: relative;
  padding-inline-start: 24px;
  color: var(--dark);
  font-weight: 600;
}

.detail-mini-points li::before {
  content: '\f111';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  font-size: 0.45rem;
  color: var(--blue-700);
  position: absolute;
  inset-inline-start: 0;
  top: 9px;
}

.service-detail-section {
  border-top: 1px solid rgba(13, 34, 71, 0.04);
}


/* ============================================
   21. PROJECTS PAGE COMPONENTS
   ============================================ */
.projects-head-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: end;
  gap: 24px;
}

.projects-head-side {
  max-width: 430px;
  justify-self: end;
}

.projects-head-side p {
  color: var(--muted);
  margin-bottom: 14px;
}

/* Filter Bar */
.projects-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
}

.filter-btn {
  border: 1px solid rgba(13, 34, 71, 0.08);
  background: var(--white);
  color: var(--blue-950);
  padding: 12px 18px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.92rem;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.filter-btn:hover,
.filter-btn.active {
  background: linear-gradient(135deg, var(--blue-700), var(--blue-600));
  color: var(--white);
  border-color: transparent;
}

/* Project Grid */
.project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

/* Project Showcase Card */
.project-showcase-card {
  background: var(--white);
  border: 1px solid rgba(13, 34, 71, 0.06);
  border-radius: 26px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition),
              box-shadow var(--transition),
              border-color var(--transition);
  will-change: transform;
}

.project-showcase-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: rgba(21, 88, 176, 0.12);
}

.project-showcase-image {
  position: relative;
  height: 255px;
  background-size: cover;
  background-position: center;
  background-color: #dbe8f6;
}

.project-badge,
.project-year {
  position: absolute;
  top: 18px;
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
}

.project-badge {
  left: 18px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--blue-800);
}

.project-year {
  right: 18px;
  background: rgba(7, 25, 56, 0.72);
  color: var(--white);
}

.project-showcase-body {
  padding: 24px;
}

.project-showcase-top h3 {
  color: var(--blue-950);
  font-size: 1.32rem;
  margin-bottom: 10px;
}

.project-showcase-location,
.project-showcase-desc {
  color: var(--muted);
}

.project-showcase-location {
  margin-bottom: 14px;
}

.project-showcase-desc {
  margin-bottom: 20px;
}

/* Scope Block */
.project-scope-block {
  padding: 16px 0 18px;
  border-top: 1px solid rgba(13, 34, 71, 0.06);
  border-bottom: 1px solid rgba(13, 34, 71, 0.06);
}

.project-scope-block h4 {
  color: var(--blue-950);
  font-size: 0.96rem;
  margin-bottom: 12px;
}

.project-scope-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.project-scope-list li {
  background: var(--blue-100);
  color: var(--blue-800);
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 700;
}

/* Actions */
.project-showcase-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding-top: 18px;
}

.project-inline-link {
  color: var(--blue-700);
  font-weight: 700;
}


/* ============================================
   22. CONTACT PAGE COMPONENTS
   ============================================ */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 1.05fr);
  gap: 34px;
  align-items: start;
}

.contact-copy-block {
  padding-top: 6px;
}

.contact-info-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 28px;
}

.contact-info-card,
.contact-form-card {
  background: var(--white);
  border: 1px solid rgba(13, 34, 71, 0.06);
  border-radius: 24px;
  box-shadow: var(--shadow-sm);
  max-width: 100%;
  box-sizing: border-box;
}

.contact-form-grid input,
.contact-form-grid select,
.contact-form-grid textarea {
  max-width: 100%;
  box-sizing: border-box;
}

/* Contact Info Card */
.contact-info-card {
  padding: 22px;
}

.contact-info-icon {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--blue-100), #dcecff);
  color: var(--blue-700);
  font-size: 1.25rem;
  margin-bottom: 16px;
}

.contact-info-card h3,
.contact-form-card h3 {
  color: var(--blue-950);
  margin-bottom: 10px;
}

.contact-info-card p,
.contact-form-card p {
  color: var(--muted);
}

.contact-info-card a,
.contact-info-card span {
  display: inline-flex;
  margin-top: 12px;
  color: var(--blue-700);
  font-weight: 700;
}

/* Contact Form */
.contact-form-shell {
  max-width: 560px;
  margin: 0 auto;
}

.contact-form-card {
  padding: 30px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  box-shadow: var(--shadow-md);
}

.contact-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 22px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-field label {
  color: var(--blue-950);
  font-weight: 700;
  font-size: 0.94rem;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  border: 1px solid rgba(13, 34, 71, 0.12);
  border-radius: 16px;
  background: var(--white);
  padding: 14px 16px;
  font: inherit;
  color: var(--dark);
  outline: none;
  transition: border-color var(--transition),
              box-shadow var(--transition);
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: rgba(21, 88, 176, 0.48);
  box-shadow: 0 0 0 4px rgba(31, 111, 214, 0.10);
}

.form-field textarea {
  resize: vertical;
  min-height: 150px;
}

.full-span {
  grid-column: 1 / -1;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 6px;
}

/* Map */
.contact-map-shell {
  margin-top: 40px;
}

.contact-map-shell h3 {
  color: var(--blue-950);
  margin-bottom: 8px;
}

.contact-map-shell p {
  color: var(--muted);
  margin-bottom: 18px;
}

.contact-map {
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  margin-bottom: 14px;
}

.contact-map iframe {
  display: block;
  width: 100%;
}


/* ============================================
   23. CALL BUTTON VISIBILITY HELPERS
   ============================================ */
.call-mobile-only {
  display: none;
}

.call-desktop-only {
  display: inline-flex;
}


/* ============================================
   24. RESPONSIVE — Large (≤1400px)
   ============================================ */
@media (max-width: 1400px) {
  .mh-services-strip-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}


/* ============================================
   25. RESPONSIVE — Medium-Large (≤1100px)
   ============================================ */
@media (max-width: 1100px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .projects-strip,
  .trust-grid,
  .metrics-grid,
  .mission-grid,
  .process-grid,
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-grid,
  .cta-block-split,
  .intro-grid,
  .two-col-grid,
  .difference-grid,
  .footer-grid,
  .contact-grid,
  .service-detail-grid,
  .service-detail-grid-premium {
    grid-template-columns: 1fr;
  }

  .services-overview-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .services-head-grid {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .services-head-side {
    justify-self: start;
    max-width: 100%;
  }

  .btn-call-static {
    background: var(--gray-100);
    color: var(--blue-950);
    border: 1px solid rgba(13, 34, 71, 0.08);
    font-weight: 700;
    cursor: default;
  }

  .btn-call-static i {
    color: var(--blue-700);
  }

  .btn-call-static:hover {
    transform: none;
  }

  .services-overview-grid-better {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .projects-head-grid {
    grid-template-columns: 1fr;
  }

  .projects-head-side {
    max-width: 100%;
    justify-self: start;
  }

  .project-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cta-buttons {
    justify-content: flex-start;
  }

  .hero-panel {
    justify-content: flex-start;
  }

  .service-detail-copy {
    padding-inline-end: 0;
  }
}


/* ============================================
   26. RESPONSIVE — Medium (≤980px)
   ============================================ */
@media (max-width: 980px) {
  .mh-services-strip-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}


/* ============================================
   27. RESPONSIVE — Tablet (≤860px)
   ============================================ */
@media (max-width: 860px) {
  .header-shell {
    grid-template-columns: auto auto;
    justify-content: space-between;
  }

  .mobile-toggle {
    display: block;
  }

  .main-nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 16px;
    right: 16px;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(13, 34, 71, 0.08);
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    padding: 14px 18px;
    flex-direction: column;
    gap: 8px;
  }

  .main-nav.open {
    display: flex;
  }

  .nav-link::after {
    display: none;
  }

  .header-cta {
    display: none;
  }

  .hero-grid {
    min-height: auto;
    padding: 60px 0;
    grid-template-columns: 1fr;
  }

  .trust-bar {
    margin-top: -20px;
  }

  .section-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .page-hero,
  .page-hero-about,
  .page-hero-services,
  .page-hero-projects,
  .page-hero-contact {
    padding: 92px 0 68px;
  }

  .page-hero h1 {
    font-size: clamp(2.1rem, 6vw, 3.2rem);
    max-width: 100%;
  }

  .page-hero p {
    max-width: 100%;
    font-size: 1rem;
  }

  .call-mobile-only {
    display: inline-flex;
  }

  .call-desktop-only {
    display: none;
  }
}


/* ============================================
   28. RESPONSIVE — Mobile (≤640px)
   ============================================ */
@media (max-width: 640px) {
  .container {
    width: min(var(--container-max), calc(100% - 24px));
  }

  .section {
    padding: 68px 0;
  }

  .hero-title {
    font-size: 2.45rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .hero-buttons,
  .cta-buttons,
  .hero-points,
  .form-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-points span {
    display: block;
  }

  .glass-card {
    padding: 22px;
    border-radius: 22px;
  }

  /* All grids go single column */
  .services-grid,
  .projects-strip,
  .trust-grid,
  .metrics-grid,
  .mission-grid,
  .difference-grid,
  .team-grid,
  .process-grid,
  .services-overview-grid,
  .services-overview-grid-better,
  .project-grid,
  .mh-services-strip-grid {
    grid-template-columns: 1fr;
  }

  .project-img,
  .project-showcase-image {
    height: 220px;
  }

  .project-showcase-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .filter-btn,
  .btn,
  .btn-lg {
    width: 100%;
  }

  .logo {
    height: 46px;
  }

  .overview-card,
  .detail-card,
  .contact-form-card,
  .contact-info-card {
    border-radius: 20px;
  }

  .mh-service-card {
    min-height: 340px;
    border-radius: 20px;
  }

  .mh-service-inner {
    min-height: 340px;
  }

  .mh-service-face {
    border-radius: 20px;
  }

  .mh-service-face--base {
    padding: 24px 20px 16px;
  }

  .mh-service-image-clip {
    height: 148px;
    margin-top: 24px;
  }

  .mh-service-card > .mh-service-content,
  .mh-service-overlay,
  .mh-service-overlay-copy {
    padding: 22px 20px 16px;
  }

  .mh-service-card > .mh-service-image {
    height: 150px;
    margin: 0 14px 14px;
    border-radius: 75px 75px 0 0;
  }

  .contact-form-grid {
    grid-template-columns: 1fr;
  }

  .service-detail-copy h2 {
    font-size: 1.9rem;
  }

  .page-hero,
  .page-hero-about,
  .page-hero-services,
  .page-hero-projects,
  .page-hero-contact {
    padding: 84px 0 60px;
  }

  .page-hero h1 {
    margin: 14px 0 12px;
    font-size: 2.15rem;
    line-height: 1.05;
  }

  .page-hero p {
    font-size: 0.98rem;
    line-height: 1.65;
  }

  .page-hero-about {
    background-position: center 44%;
  }

  .page-hero-services {
    background-position: center 44%;
  }

  .page-hero-projects {
    background-position: center 44%;
  }

  .page-hero-contact {
    background-position: center 44%;
  }
}


/* ============================================
   29. DESKTOP PREMIUM OVERRIDE (≥1101px)
   ============================================ */
@media (min-width: 1101px) {
  .service-detail-grid-premium {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
    gap: 36px;
    align-items: stretch;
  }

  .service-detail-grid-premium .service-detail-copy {
    order: 1;
  }

  .service-detail-grid-premium .service-detail-panel {
    order: 2;
  }

  .service-detail-grid-premium.reverse-on-desktop .service-detail-copy {
    order: 2;
  }

  .service-detail-grid-premium.reverse-on-desktop .service-detail-panel {
    order: 1;
  }
}


/* ============================================
   30. RTL SUPPORT
   ============================================ */
html[dir="rtl"] body {
  direction: rtl;
}

html[dir="rtl"] .check-list li,
html[dir="rtl"] .detail-list li,
html[dir="rtl"] .detail-mini-points li {
  padding-inline-start: 28px;
  padding-inline-end: 0;
}

html[dir="rtl"] .check-list li::before,
html[dir="rtl"] .detail-list li::before,
html[dir="rtl"] .detail-mini-points li::before {
  inset-inline-start: 0;
  inset-inline-end: auto;
}

html[dir="rtl"] .footer-col i {
  margin-inline-start: 8px;
  margin-inline-end: 0;
}


/* ============================================
   31. NOS ACTIVITÉS
   ============================================ */
.project-types-section {
  padding: 6rem 0;
  background: #f7f8fa;
}

.project-types-section .section-heading {
  max-width: 640px;
  margin-bottom: 3rem;
  text-align: left;
}

.project-types-section .section-lead {
  margin-top: 1rem;
  color: #5a6478;
  font-size: 1.05rem;
  line-height: 1.7;
}

.act-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.act-card {
  display: flex;
  gap: 24px;
  background: #ffffff;
  border: 1px solid #e2e6ee;
  border-radius: 18px;
  padding: 28px 28px 28px 0;
  text-decoration: none;
  color: inherit;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.35s cubic-bezier(0.22, 1, 0.36, 1),
              border-color 0.35s ease;
}

.act-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 36px rgba(7, 25, 56, 0.07);
  border-color: #071938;
}

/* Numéro */
.act-card__num {
  flex-shrink: 0;
  width: 64px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 2px;
  font-family: 'Poppins', sans-serif;
  font-size: 1.6rem;
  font-weight: 800;
  color: #e2e6ee;
  letter-spacing: -0.03em;
  transition: color 0.3s ease;
}

.act-card:hover .act-card__num {
  color: #071938;
}

/* Corps */
.act-card__body {
  flex: 1;
  min-width: 0;
}

.act-card__body h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: #1a1f2e;
  margin-bottom: 10px;
  line-height: 1.25;
  transition: color 0.3s ease;
}

.act-card:hover .act-card__body h3 {
  color: #071938;
}

.act-card__body p {
  font-size: 0.9rem;
  color: #5a6478;
  line-height: 1.65;
  margin-bottom: 16px;
}

.act-card__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 700;
  color: #071938;
}

.act-card__link i {
  font-size: 0.7rem;
  transition: transform 0.3s ease;
}

.act-card:hover .act-card__link i {
  transform: translateX(4px);
}

/* Responsive */
@media (max-width: 768px) {
  .project-types-section {
    padding: 4rem 0;
  }

  .act-grid {
    grid-template-columns: 1fr;
  }

  .act-card {
    padding: 20px 20px 20px 0;
    gap: 18px;
  }

  .act-card__num {
    width: 48px;
    font-size: 1.3rem;
  }
}

/* Amélioration visuelle project-type-card */
.project-type-card {
    position: relative;
    display: flex;
    flex-direction: column;
}
.project-type-card .step-number {
    display: inline-flex;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--blue-100);
    color: var(--blue-800);
    font-weight: 800;
    margin-bottom: 16px;
}
.project-type-card h3 {
    color: var(--blue-950);
}
.project-type-card p {
    color: var(--muted);
    flex-grow: 1;
}
.project-type-card .text-link {
    margin-top: 12px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--blue-700);
    font-weight: 700;
}
.project-type-card:hover .text-link {
    text-decoration: underline;
}

/* ============================================
   32. SERVICES PAGE SPECIFIC ADJUSTMENTS
   ============================================ */

/* Scroll doux pour les ancres sans toucher au header */
@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

.page-hero,
.page-hero-about,
.page-hero-services,
.page-hero-projects,
.page-hero-contact {
  scroll-margin-top: calc(var(--header-h) + 10px);
}

/* Service detail section spacing */
.service-detail-section .container {
  padding-top: 20px;
  padding-bottom: 20px;
}

/* Detail card premium padding */
.detail-card-premium {
  padding: 28px;
  border-radius: 24px;
}

/* Overview card hover effect on icon */
.overview-card-link:hover .service-icon {
  background: linear-gradient(135deg, var(--blue-700), var(--blue-600));
  color: var(--white);
  transition: all var(--transition);
}

.service-icon {
  transition: all var(--transition);
}

/* Service detail copy H3 styling */
.service-detail-copy h3 {
  margin-top: 24px;
  margin-bottom: 12px;
  font-size: 1.3rem;
  color: var(--blue-950);
}

.service-detail-copy p {
  margin-bottom: 16px;
  line-height: 1.75;
}

/* Detail list improvements */
.detail-list li {
  margin-bottom: 14px;
  line-height: 1.6;
}

/* CTA Block top margin */
.section-cta-block {
  margin-top: 40px;
}

/* Responsive adjustments for service detail */
@media (max-width: 1100px) {
  .service-detail-copy h3 {
    margin-top: 20px;
  }
  
  .detail-card-premium {
    margin-top: 24px;
  }
}

@media (max-width: 640px) {
  .service-detail-copy h3 {
    font-size: 1.15rem;
  }
  
  .service-detail-copy p {
    font-size: 0.98rem;
  }
  
  .detail-list li {
    font-size: 0.98rem;
  }
  
  .detail-card-premium {
    padding: 22px;
    border-radius: 20px;
  }
  
  .detail-mini-points li {
    font-size: 0.96rem;
  }
}

/* Correction du vide dans les cartes de détail */
.detail-card-premium {
  justify-content: flex-start !important;
}											   


/* Forcer le H1 du hero Services sur 2 lignes maximum */
@media (min-width: 861px) {
  .page-hero-services h1 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.15 !important;
  }
}

.mission-services-grid {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 18px;
    width: 100%;
    max-width: 900px;
    margin: 28px auto 0;
    align-items: stretch;
}

.mission-box {
    min-width: 0;
    min-height: 255px;
    padding: 28px 22px;
    background: #ffffff;
    border: 1px solid rgba(13, 34, 71, 0.06);
    border-radius: 24px;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    transition: transform .25s ease,
                box-shadow .25s ease,
                border-color .25s ease;
}

.mission-box:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
    border-color: rgba(21, 88, 176, 0.12);
}

.mission-box .service-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 18px;
    border-radius: 18px;
    background: linear-gradient(135deg, var(--blue-100), #dcecff);
    color: var(--blue-700);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
}

.mission-box h3 {
    margin-bottom: 10px;
    color: var(--blue-950);
    font-size: 1.08rem;
}

.mission-box p {
    margin-bottom: 18px;
    color: var(--muted);
    font-size: .95rem;
    line-height: 1.65;
}

.mission-box .service-link {
    margin-top: auto;
    color: var(--blue-700);
    font-weight: 700;
}

@media (max-width: 900px) {
    .mission-services-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        max-width: 620px;
    }
}

@media (max-width: 600px) {
    .mission-services-grid {
        grid-template-columns: 1fr !important;
        max-width: 320px;
    }
}

.mission-cards {
    display: grid !important;
    grid-template-columns: repeat(3, 260px) !important;
    justify-content: center !important;
    gap: 18px !important;
    width: 100% !important;
    max-width: 900px !important;
    margin: 28px auto 0 !important;
}

.mission-cards .mission-card {
    width: 260px !important;
    min-width: 0 !important;
    min-height: 255px !important;
    padding: 28px 22px !important;
    background: #ffffff !important;
    border: 1px solid rgba(13, 34, 71, 0.06) !important;
    border-radius: 24px !important;
    box-shadow: var(--shadow-sm) !important;
    display: flex !important;
    flex-direction: column !important;
}

.mission-cards .mission-card .service-icon,
.mission-cards .mission-card .mission-icon {
    width: 60px !important;
    height: 60px !important;
    border-radius: 18px !important;
    background: linear-gradient(135deg, var(--blue-100), #dcecff) !important;
    color: var(--blue-700) !important;
    margin-bottom: 18px !important;
}

.mission-cards .mission-card p {
    color: var(--muted) !important;
    line-height: 1.65 !important;
}

.mission-cards .mission-card a {
    margin-top: auto !important;
    color: var(--blue-700) !important;
    font-weight: 700 !important;
}

@media (max-width: 900px) {
    .mission-cards {
        grid-template-columns: repeat(2, 260px) !important;
        max-width: 560px !important;
    }
}

@media (max-width: 600px) {
    .mission-cards {
        grid-template-columns: 1fr !important;
        max-width: 320px !important;
    }

    .mission-cards .mission-card {
        width: 100% !important;
    }
}

.mission-cards .mission-card:hover .mission-icon {
    background: linear-gradient(135deg, var(--blue-700), var(--blue-600)) !important;
    color: #ffffff !important;
    transform: translateY(-2px);
}

.mission-cards .mission-card .mission-icon {
    transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.difference-section-intro {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 48px;
}

.difference-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    max-width: 920px;
    margin: 0 auto;
}

@media (max-width: 700px) {
    .difference-grid {
        grid-template-columns: 1fr;
    }
}

.difference-section-intro {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 48px;
}

.difference-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    max-width: 920px;
    margin: 0 auto;
}

@media (max-width: 700px) {
    .difference-grid {
        grid-template-columns: 1fr;
    }
}

.difference-card {
    background: #fff;
    border-radius: 16px;
    padding: 0;
    box-shadow: 0 4px 20px rgba(0,0,0,.05);
    border: 1px solid #eee;
    overflow: hidden;
    transition: transform .25s ease, box-shadow .25s ease;
    display: flex;
    flex-direction: column;
}

.difference-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 36px rgba(0,0,0,.09);
}

.difference-card-top {
    padding: 28px 28px 0 28px;
    display: flex;
    align-items: flex-start;
    gap: 18px;
}

.difference-card-num {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #f2f4fb;
    color: #1B2A4A;
    font-weight: 700;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.difference-card-top h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: #111;
    margin: 0;
    padding-top: 4px;
}

.difference-card-body {
    padding: 16px 28px 28px 28px;
    padding-left: calc(28px + 44px + 18px);
}

.difference-card-body p {
    color: #555;
    line-height: 1.75;
    font-size: .95rem;
    margin: 0;
}

@media (max-width: 768px) {
    .difference-card-body {
        padding-left: 28px;
    }
}

/* Final override for the About page numbered badges */
section.section-soft .difference-card .difference-card-num,
section.section-soft .difference-card-top .difference-card-num {
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    min-height: 44px !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    border-radius: 50% !important;
    background: #f2f4fb !important;
    color: #1B2A4A !important;

    font-size: 0.95rem !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    padding: 0 !important;
    margin: 0 !important;
}