/* Erfolg Guide International Limited - theme styling */

:root {
  --eg-navy: #0b2f64;
  --eg-light-gray: #f5f5f5;
  --eg-gold: #d8a200;
}

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

body {
  color: #1a1a1a;
  font-family: "Open Sans", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  width: 100%;
  overflow-x: hidden;
  overflow-x: clip;
}

html {
  width: 100%;
  overflow-x: hidden;
  overflow-x: clip;
}

img,
video,
iframe,
svg {
  max-width: 100%;
}

h1, h2, h3, h4, h5, h6 {
  font-family: "Montserrat", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

.hover-lift {
  transition: transform 180ms ease, box-shadow 180ms ease;
}
.hover-lift:hover {
  transform: translateY(-4px);
}

.eg-logo-strip {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  padding: 6px 2px;
}
.eg-logo-strip::-webkit-scrollbar {
  height: 8px;
}
.eg-logo-item {
  min-width: 180px;
  height: 92px;
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 16px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
}
.eg-logo-item img {
  max-width: 100%;
  max-height: 60px;
  object-fit: contain;
}
.eg-logo-placeholder {
  color: rgba(0,0,0,0.6);
  font-weight: 600;
  text-align: center;
  padding: 0 10px;
}

.anchor-offset {
  scroll-margin-top: 132px;
}

.eg-topbar {
  background: rgba(11, 47, 100, 0.04);
  border-bottom: 1px solid rgba(0,0,0,0.06);
}

/* ——— Site header & professional navigation ——— */
.eg-site-header {
  background: #fff;
  box-shadow: 0 1px 0 rgba(11, 47, 100, 0.08), 0 8px 24px rgba(11, 47, 100, 0.06);
  z-index: 1030;
}

/* Homepage: header sits over hero carousel; solid bar after hero scrolls away */
.eg-hero-header-stack {
  position: relative;
}

.eg-hero-carousel-host {
  position: relative;
  z-index: 0;
}

.eg-hero-carousel-host .carousel-inner,
.eg-hero-carousel-host .carousel-item {
  border-radius: 0;
}

.eg-site-header--on-hero {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  background: transparent !important;
  box-shadow: none !important;
}

.eg-site-header--on-hero.eg-site-header--hero-solid {
  position: fixed;
  background: #fff !important;
  box-shadow: 0 1px 0 rgba(11, 47, 100, 0.08), 0 8px 24px rgba(11, 47, 100, 0.06) !important;
}

/* Hero slide imagery shows through the header (same visual layer as the slider) */

.eg-site-header--on-hero:not(.eg-site-header--hero-solid) .eg-topbar {
  background: transparent;
  border-bottom: 1px solid rgba(255, 255, 255, 0.28);
}

.eg-site-header--on-hero:not(.eg-site-header--hero-solid) .eg-topbar-inner {
  border-bottom-color: transparent;
}

.eg-site-header--on-hero:not(.eg-site-header--hero-solid) .eg-topbar-meta {
  color: rgba(255, 255, 255, 0.95);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.65);
}

.eg-site-header--on-hero:not(.eg-site-header--hero-solid) .eg-topbar-link {
  color: rgba(255, 255, 255, 0.95);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.65);
}

.eg-site-header--on-hero:not(.eg-site-header--hero-solid) .eg-topbar-link:hover {
  color: #fff;
}

.eg-site-header--on-hero:not(.eg-site-header--hero-solid) .eg-navbar {
  background: transparent;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
}

.eg-site-header--on-hero:not(.eg-site-header--hero-solid) .eg-navbar--over-hero .eg-brand-name {
  color: #fff !important;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.75), 0 0 18px rgba(0, 0, 0, 0.45);
}

.eg-site-header--on-hero:not(.eg-site-header--hero-solid) .eg-navbar--over-hero .eg-nav-link {
  color: #fff !important;
  border-bottom-color: transparent !important;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.75), 0 0 14px rgba(0, 0, 0, 0.4);
}

.eg-site-header--on-hero:not(.eg-site-header--hero-solid) .eg-navbar--over-hero .eg-nav-link:hover,
.eg-site-header--on-hero:not(.eg-site-header--hero-solid) .eg-navbar--over-hero .eg-nav-link:focus,
.eg-site-header--on-hero:not(.eg-site-header--hero-solid) .eg-navbar--over-hero .eg-nav-link.show {
  color: #fff !important;
  border-bottom-color: var(--eg-gold) !important;
  background: transparent !important;
}

.eg-site-header--on-hero:not(.eg-site-header--hero-solid) .eg-navbar--over-hero .navbar-toggler-icon {
  filter: brightness(0) invert(1);
}

.eg-site-header--on-hero:not(.eg-site-header--hero-solid) .eg-navbar-toggler {
  border-color: rgba(255, 255, 255, 0.35);
}

.eg-site-header--on-hero:not(.eg-site-header--hero-solid) .eg-navbar-collapse {
  border-left-color: rgba(255, 255, 255, 0.2) !important;
}

.eg-site-header--on-hero:not(.eg-site-header--hero-solid) .eg-navbar-collapse .eg-nav-links {
  border-top-color: rgba(255, 255, 255, 0.15);
}

@media (max-width: 991.98px) {
  .eg-site-header--on-hero:not(.eg-site-header--hero-solid) .eg-navbar-collapse {
    margin-top: 0.5rem;
    padding: 0.5rem 0.75rem 0.75rem;
    background: rgba(15, 23, 42, 0.94);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
  }
  .eg-site-header--on-hero:not(.eg-site-header--hero-solid) .eg-navbar-collapse .eg-nav-links > .nav-item {
    border-bottom-color: rgba(255, 255, 255, 0.08);
  }
  .eg-site-header--on-hero:not(.eg-site-header--hero-solid) .eg-navbar-collapse .eg-nav-link {
    color: rgba(255, 255, 255, 0.95) !important;
  }
  .eg-site-header--on-hero:not(.eg-site-header--hero-solid) .eg-navbar-collapse .eg-nav-link:hover,
  .eg-site-header--on-hero:not(.eg-site-header--hero-solid) .eg-navbar-collapse .eg-nav-link:focus {
    background: rgba(255, 255, 255, 0.08) !important;
    border-left-color: var(--eg-gold) !important;
    color: #fff !important;
  }
  .eg-site-header--on-hero:not(.eg-site-header--hero-solid) .eg-navbar-collapse .dropdown-menu {
    background: rgba(0, 0, 0, 0.2);
  }
}

.eg-hero-carousel-host .carousel-caption {
  padding-bottom: 3rem;
}

@media (min-width: 768px) {
  .eg-hero-carousel-host .carousel-caption {
    padding-top: 9rem;
    padding-bottom: 4rem;
  }
}

/* Home: hero area when no CMS banners yet (same stacking as slider — header sits over this) */
.eg-hero-fallback {
  min-height: 72vh;
  background: linear-gradient(118deg, #071a35 0%, #0b2f64 38%, #143d7a 72%, #0b2f64 100%);
  background-size: cover;
  background-position: center;
}

.eg-hero-fallback-inner {
  min-height: 72vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6rem 1.5rem 4rem;
  text-align: center;
}

.eg-hero-fallback-content {
  max-width: 40rem;
}

.eg-hero-fallback-title {
  font-family: "Montserrat", sans-serif;
  font-weight: 800;
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  color: #fff;
  margin: 0 0 0.75rem;
  line-height: 1.2;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.45);
}

.eg-hero-fallback-tagline {
  font-size: 1.1rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.88);
  margin: 0 0 1.25rem;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.35);
}

.eg-hero-fallback-hint {
  opacity: 0.9;
}

.eg-topbar-inner {
  border-bottom: 1px solid rgba(11, 47, 100, 0.06);
}

.eg-topbar-meta {
  font-size: 0.82rem;
  color: #64748b;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  max-width: 55%;
}

.eg-topbar-meta i {
  color: var(--eg-gold);
}

.eg-topbar-link {
  font-size: 0.82rem;
  color: #475569;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  transition: color 0.15s ease;
}

.eg-topbar-link:hover {
  color: var(--eg-navy);
}

.eg-topbar-link i {
  color: var(--eg-gold);
  font-size: 0.85rem;
}

.eg-navbar {
  background: #fff;
  padding-top: 0;
  padding-bottom: 0;
  border-top: 1px solid rgba(11, 47, 100, 0.06);
}

.eg-navbar-inner {
  position: relative;
  display: flex;
  align-items: center;
}

/* Logo (65px) + company brand stack */
.eg-brand {
  text-decoration: none;
  color: inherit;
  display: inline-flex;
  align-items: center;
}

.eg-brand:hover,
.eg-brand:focus {
  color: inherit;
}

.eg-brand-stack {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: none;
}

@media (min-width: 992px) {
  .eg-brand-stack {
    justify-content: flex-start;
  }
}

.eg-brand-logo {
  max-height: 65px;
  height: auto;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  object-position: left center;
  display: block;
}

.eg-brand-name {
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-size: 0.68rem;
  line-height: 1.3;
  letter-spacing: 0.055em;
  text-transform: uppercase;
  color: var(--eg-navy);
  margin-top: 0.4rem;
  display: block;
  max-width: 100%;
}

@media (max-width: 575.98px) {
  .eg-brand-stack {
    max-width: none;
  }
  .eg-brand-name {
    font-size: 0.62rem;
    margin-top: 0.3rem;
  }
}

@media (min-width: 992px) {
  .eg-navbar-collapse {
    flex-grow: 1;
    justify-content: flex-end;
    border-left: 1px solid rgba(11, 47, 100, 0.08);
    padding-left: 1.25rem;
    margin-left: 0.5rem;
    min-height: 3.5rem;
    align-items: center;
  }
}

.eg-navbar-toggler {
  border: 1px solid rgba(11, 47, 100, 0.15);
  border-radius: 10px;
  padding: 0.5rem 0.65rem;
}

.eg-nav-links {
  gap: 0;
  width: 100%;
}

@media (min-width: 992px) {
  .eg-nav-links {
    gap: 0.05rem;
    width: auto;
    flex-wrap: wrap;
    justify-content: flex-end;
  }
}

/* Primary nav — tight uppercase strip similar to corporate construction sites */
.eg-nav-link {
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  font-size: 0.7rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #374151 !important;
  padding: 0.65rem 0.55rem !important;
  border-radius: 0;
  position: relative;
  transition: color 0.18s ease, background 0.18s ease;
  border-bottom: 2px solid transparent !important;
}

@media (min-width: 992px) {
  .eg-nav-link {
    padding: 1.35rem 0.5rem !important;
  }
}

.eg-nav-link:hover,
.eg-nav-link:focus,
.eg-nav-link.show {
  color: var(--eg-navy) !important;
  background: transparent !important;
  border-bottom-color: var(--eg-gold) !important;
}

.eg-nav-link.dropdown-toggle::after {
  margin-left: 0.28rem;
  vertical-align: 0.15em;
  border-width: 0.28em;
  opacity: 0.75;
}

@media (max-width: 991.98px) {
  .eg-navbar-collapse {
    margin-top: 0.35rem;
  }
  .eg-navbar-collapse .eg-nav-links {
    padding-top: 0.25rem;
    border-top: 1px solid rgba(11, 47, 100, 0.1);
  }
  .eg-navbar-collapse .eg-nav-links > .nav-item {
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  }
  .eg-navbar-collapse .eg-nav-links > .nav-item:last-child {
    border-bottom: none;
  }
  .eg-navbar-collapse .eg-nav-link {
    padding: 0.9rem 0.25rem !important;
    border-bottom: none !important;
    font-size: 0.74rem;
  }
  .eg-navbar-collapse .eg-nav-link:hover,
  .eg-navbar-collapse .eg-nav-link:focus {
    padding-left: 0.35rem !important;
    border-left: 3px solid var(--eg-gold) !important;
    background: rgba(11, 47, 100, 0.04) !important;
  }
  .eg-navbar-collapse .dropdown-menu {
    margin-top: 0 !important;
    margin-bottom: 0.5rem;
    border: none;
    box-shadow: none;
    background: rgba(11, 47, 100, 0.04);
    padding: 0.35rem 0;
  }
  .eg-navbar-collapse .eg-btn-cta {
    width: 100%;
    margin-top: 0.5rem;
    margin-bottom: 0.25rem;
    text-align: center;
  }
  .eg-navbar-collapse:not(.eg-navbar-collapse--hero):not(.eg-navbar-collapse--unified) .eg-mobile-menu-head {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 0.35rem;
  }
  .eg-navbar-collapse:not(.eg-navbar-collapse--hero):not(.eg-navbar-collapse--unified) .eg-mobile-menu-close {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    border: 1px solid rgba(11, 47, 100, 0.2);
    background: rgba(11, 47, 100, 0.06);
    color: var(--color-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
}

.eg-nav-lang {
  font-weight: 600;
  opacity: 0.9;
}

.eg-dropdown-menu {
  border-radius: 14px;
  padding: 0.5rem;
  margin-top: 0.35rem !important;
  box-shadow: 0 12px 40px rgba(11, 47, 100, 0.12);
  border: 1px solid rgba(11, 47, 100, 0.08);
  min-width: 13rem;
}

.eg-dropdown-item {
  border-radius: 10px;
  padding: 0.55rem 0.9rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: #334155;
  transition: background 0.12s ease, color 0.12s ease;
}

.eg-dropdown-item:hover,
.eg-dropdown-item:focus {
  background: rgba(216, 162, 0, 0.12);
  color: var(--eg-navy);
}

.eg-btn-cta {
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.55rem 1.15rem;
  border-radius: 10px;
  background: linear-gradient(180deg, var(--eg-gold) 0%, #b8860b 100%);
  color: #1a1a1a !important;
  border: none;
  box-shadow: 0 4px 14px rgba(216, 162, 0, 0.35);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.eg-btn-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(216, 162, 0, 0.45);
  color: #0f172a !important;
}

/* ——— Mission & Vision (About page) ——— */
.eg-mv-section {
  padding: 3.5rem 0 2rem;
}

.eg-mv-eyebrow {
  display: inline-block;
  font-family: "Montserrat", sans-serif;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--eg-gold);
  margin-bottom: 0.5rem;
}

.eg-mv-heading {
  font-family: "Montserrat", sans-serif;
  font-weight: 800;
  font-size: clamp(1.75rem, 4vw, 2.35rem);
  color: var(--eg-navy);
  margin: 0 0 1rem;
  line-height: 1.15;
}

.eg-mv-lead {
  font-size: 1.05rem;
  line-height: 1.65;
  color: #64748b;
  max-width: 640px;
  margin: 0 auto;
}

.eg-mv-card {
  position: relative;
  background: #fff;
  border-radius: 20px;
  padding: 2rem 2rem 2rem 2.25rem;
  border: 1px solid rgba(11, 47, 100, 0.08);
  box-shadow: 0 4px 6px rgba(11, 47, 100, 0.04), 0 18px 40px rgba(11, 47, 100, 0.07);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.eg-mv-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 12px rgba(11, 47, 100, 0.06), 0 24px 48px rgba(11, 47, 100, 0.1);
}

.eg-mv-card-accent {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 5px;
  background: linear-gradient(180deg, var(--eg-gold) 0%, #b8860b 100%);
}

.eg-mv-card--vision .eg-mv-card-accent {
  background: linear-gradient(180deg, var(--eg-navy) 0%, #143d7a 100%);
}

.eg-mv-card-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  margin-bottom: 1.15rem;
  background: rgba(216, 162, 0, 0.15);
  color: #8b6914;
}

.eg-mv-card--vision .eg-mv-card-icon {
  background: rgba(11, 47, 100, 0.1);
  color: var(--eg-navy);
}

.eg-mv-card-title {
  font-family: "Montserrat", sans-serif;
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--eg-navy);
  margin: 0 0 0.85rem;
}

.eg-mv-card-text {
  font-size: 1.02rem;
  line-height: 1.7;
  color: #475569;
  margin: 0;
}

/* ——— Mission & Vision preview (Homepage) ——— */
.eg-mv-home-wrap {
  background: #fff;
  border-radius: 20px;
  padding: 1.75rem 1.5rem;
  border: 1px solid rgba(11, 47, 100, 0.08);
  box-shadow: 0 4px 6px rgba(11, 47, 100, 0.04), 0 16px 36px rgba(11, 47, 100, 0.08);
}

.eg-mv-home-title {
  font-family: "Montserrat", sans-serif;
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--eg-navy);
}

.eg-mv-home-tile {
  height: 100%;
  border-radius: 16px;
  padding: 1.1rem 1.15rem;
  border: 1px solid rgba(11, 47, 100, 0.08);
  background: linear-gradient(165deg, #fafbfd 0%, #fff 100%);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.eg-mv-home-tile:hover {
  border-color: rgba(216, 162, 0, 0.45);
  box-shadow: 0 8px 20px rgba(11, 47, 100, 0.08);
}

.eg-mv-home-tile--mission {
  border-left: 3px solid var(--eg-gold);
}

.eg-mv-home-tile--vision {
  border-left: 3px solid var(--eg-navy);
}

.eg-mv-home-icon {
  font-size: 1.1rem;
  color: var(--eg-gold);
  margin-bottom: 0.4rem;
}

.eg-mv-home-tile--vision .eg-mv-home-icon {
  color: var(--eg-navy);
}

.eg-mv-home-label {
  font-family: "Montserrat", sans-serif;
  font-weight: 800;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--eg-navy);
  margin-bottom: 0.45rem;
}

.eg-mv-home-text {
  font-size: 0.92rem;
  line-height: 1.55;
  color: #64748b;
}

/* ===== Global typography + blue theme refinements ===== */
:root {
  --font-heading: "Raleway", sans-serif;
  --font-body: "Lato", sans-serif;
  --color-primary: #1e3a5f;
  --color-accent: #2563eb;
  --color-accent-light: #3b82f6;
  --color-dark: #0d1b2a;
  --color-light-bg: #eff6ff;
}

body, p, span, td, li, input, textarea, select {
  font-family: var(--font-body);
}

h1, h2, h3, h4, h5, h6,
.navbar, nav, nav a, .nav-link,
.menu-item, .section-title, .card-title,
button, .btn, .badge, label {
  font-family: var(--font-heading) !important;
}

.eg-topbar.eg-topbar--dark {
  background-color: var(--color-dark);
  color: #fff;
}
.eg-topbar.eg-topbar--dark .eg-topbar-link {
  color: #cbd5e1;
}
.eg-topbar.eg-topbar--dark .eg-topbar-link:hover {
  color: #fff;
}
.eg-topbar.eg-topbar--dark .eg-topbar-meta {
  color: #fff;
}

.eg-nav-link {
  position: relative;
  text-decoration: none !important;
  padding-bottom: 4px !important;
  border-bottom: none !important;
}
.eg-nav-link::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-accent);
  transition: width 0.3s ease;
}

.eg-nav-link.dropdown-toggle {
  display: inline-flex;
  align-items: center;
}

.eg-nav-link.dropdown-toggle::after {
  position: static;
  margin-left: 0.35rem;
  vertical-align: 0.1em;
}

@media (min-width: 992px) {
  .eg-nav-links .nav-item.dropdown {
    position: relative;
  }
  .nav-item.dropdown:hover > .dropdown-menu {
    display: block;
    margin-top: 0 !important;
    top: calc(100% + 2px);
    left: 0;
    right: auto;
  }
  .eg-nav-links .dropdown-menu-end {
    right: 0;
    left: auto;
  }
}
.eg-nav-link:hover::before,
.eg-nav-link.eg-nav-link--active::before,
.eg-nav-link:focus::before {
  width: 100%;
}

.btn-get-quote {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: linear-gradient(135deg, #1e3a5f 0%, #2563eb 100%);
  color: #fff !important;
  border: none;
  border-radius: 4px;
  padding: 12px 28px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.4);
}
.btn-get-quote::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #2563eb 0%, #1e3a5f 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.btn-get-quote:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.5);
}
.btn-get-quote:hover::before {
  opacity: 1;
}
.btn-get-quote span {
  position: relative;
  z-index: 1;
}

.client-link {
  color: var(--color-accent);
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px dashed var(--color-accent);
  transition: color 0.2s, border-color 0.2s;
}
.client-link:hover {
  color: var(--color-primary);
  border-bottom-style: solid;
}

.team-card {
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-decoration: none;
  color: inherit;
}
.team-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(37, 99, 235, 0.15);
  border: 1px solid var(--color-accent);
}

.eg-contact-kicker {
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--eg-color-primary);
  font-weight: 700;
}

.eg-contact-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 2.75rem);
  color: #0f172a;
}

.eg-contact-sub {
  max-width: 760px;
  margin: 0 auto;
  color: #64748b;
}

.eg-contact-card-title {
  font-family: var(--font-heading);
  margin-bottom: 0.6rem;
  color: #0f172a;
}

.eg-contact-card strong {
  min-width: 70px;
  display: inline-block;
}

.eg-contact-form-wrap .form-label {
  font-weight: 600;
  color: #334155;
}

/* Floating “joint chat” (contact shortcuts) — inspired by dutumgroup.com */
.eg-joint-chat {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 1055;
  font-family: var(--font-body, system-ui, sans-serif);
  width: auto;
  max-width: calc(100vw - 1.5rem);
  left: auto;
}

.eg-joint-chat-fab {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.65rem 1.15rem;
  border: none;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%);
  color: #fff !important;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  box-shadow: 0 10px 32px rgba(30, 58, 95, 0.35);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.eg-joint-chat-fab:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 36px rgba(30, 58, 95, 0.42);
}

.eg-joint-chat-fab-icon {
  display: inline-flex;
  font-size: 1.15rem;
  line-height: 1;
}

@media (max-width: 480px) {
  .eg-joint-chat-fab-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }
  .eg-joint-chat-fab {
    padding: 0.85rem;
    border-radius: 999px;
  }
}

.eg-joint-chat-panel {
  position: absolute;
  right: 0;
  bottom: calc(100% + 14px);
  width: 340px;
  max-width: calc(100vw - 1.5rem);
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 22px 60px rgba(15, 23, 42, 0.22);
  border: 1px solid rgba(11, 47, 100, 0.1);
  overflow: hidden;
}

.eg-joint-chat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1rem 1rem 0.85rem;
  background: linear-gradient(135deg, var(--color-primary) 0%, #143d7a 100%);
  color: #fff;
}

.eg-joint-chat-kicker {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.92;
  margin-bottom: 0.25rem;
}

.eg-joint-chat-brand {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.25;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.eg-joint-chat-actions,
.eg-joint-chat-action {
  min-width: 0;
}

@media (max-width: 575.98px) {
  .eg-joint-chat {
    right: 0.75rem;
    bottom: 0.75rem;
    max-width: calc(100vw - 1.5rem);
  }
  .eg-joint-chat-panel {
    width: calc(100vw - 1.5rem);
    max-width: calc(100vw - 1.5rem);
  }
}

@supports (right: max(0px)) {
  .eg-joint-chat {
    right: max(1rem, env(safe-area-inset-right, 0px));
    bottom: max(1rem, env(safe-area-inset-bottom, 0px));
  }
  @media (max-width: 575.98px) {
    .eg-joint-chat {
      right: max(0.75rem, env(safe-area-inset-right, 0px));
      bottom: max(0.75rem, env(safe-area-inset-bottom, 0px));
    }
  }
}

.eg-joint-chat-close {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.eg-joint-chat-close:hover {
  background: rgba(255, 255, 255, 0.2);
}

.eg-joint-chat-body {
  padding: 1rem 1rem 1.15rem;
}

.eg-joint-chat-intro {
  margin: 0 0 1rem;
  font-size: 0.92rem;
  line-height: 1.55;
  color: #475569;
}

.eg-joint-chat-actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.eg-joint-chat-action {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.65rem 0.85rem;
  border-radius: 10px;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
  color: #1e293b;
  background: #f1f5f9;
  border: 1px solid rgba(11, 47, 100, 0.08);
  transition: background 0.15s ease, color 0.15s ease;
}

.eg-joint-chat-action i {
  width: 1.25rem;
  text-align: center;
  color: var(--color-primary);
}

.eg-joint-chat-action:hover {
  background: #e2e8f0;
  color: var(--color-primary);
}

.eg-joint-chat-action--accent i {
  color: #25d366;
}

.eg-joint-chat-action--primary {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%);
  color: #fff !important;
  border-color: transparent;
}

.eg-joint-chat-action--primary i {
  color: #fff;
}

.eg-joint-chat.is-open .eg-joint-chat-fab {
  box-shadow: 0 8px 28px rgba(30, 58, 95, 0.32);
}

.eg-project-gallery-item img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 1px solid rgba(11, 47, 100, 0.08);
}

/* Horizontal scrollable project gallery */
.eg-project-gallery-horizontal-scroll {
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
  padding: 8px 0;
}

.eg-project-gallery-horizontal-scroll::-webkit-scrollbar {
  height: 6px;
}

.eg-project-gallery-horizontal-scroll::-webkit-scrollbar-track {
  background: rgba(11, 47, 100, 0.05);
  border-radius: 10px;
}

.eg-project-gallery-horizontal-scroll::-webkit-scrollbar-thumb {
  background: rgba(11, 47, 100, 0.2);
  border-radius: 10px;
}

.eg-project-gallery-horizontal-scroll::-webkit-scrollbar-thumb:hover {
  background: rgba(11, 47, 100, 0.4);
}

.eg-project-gallery-horizontal-container {
  display: flex;
  gap: 12px;
  padding: 4px 0;
  min-width: min-content;
}

.eg-project-gallery-thumb-wrapper {
  flex: 0 0 auto;
  width: 140px;
  display: flex;
  flex-direction: column;
}

.eg-project-gallery-thumb {
  width: 100%;
  height: 100px;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid rgba(11, 47, 100, 0.08);
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f5f5f5;
}

.eg-project-gallery-thumb:hover {
  transform: scale(1.08);
  box-shadow: 0 4px 12px rgba(11, 47, 100, 0.15);
  border-color: rgba(216, 162, 0, 0.4);
}

.eg-project-gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 7px;
}

.eg-gallery-thumb-caption {
  font-size: 0.75rem;
  color: #666;
  margin-top: 6px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  line-height: 1.2;
}

/* Project detail media carousel + scroll strip */
.eg-project-media-main-img {
  max-height: 540px;
  object-fit: cover;
}

.eg-project-media-caption {
  max-width: 48rem;
}

.eg-project-media-carousel .carousel-inner {
  background: #0b1f33;
}

.eg-project-carousel-control {
  width: 3rem;
  opacity: 0.95;
}

.eg-project-carousel-control:focus-visible {
  outline: 3px solid #f5c542;
  outline-offset: 2px;
}

.eg-carousel-thumb {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0;
  margin: 0;
  border: 2px solid transparent;
  background: #f5f5f5;
  cursor: pointer;
  border-radius: 8px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.eg-carousel-thumb:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(11, 47, 100, 0.15);
}

.eg-carousel-thumb:focus-visible {
  outline: 3px solid #f5c542;
  outline-offset: 2px;
}

.eg-carousel-thumb.is-active {
  border-color: rgba(216, 162, 0, 0.85);
  box-shadow: 0 0 0 1px rgba(11, 47, 100, 0.12);
}

.eg-scroll-strip {
  display: flex;
  align-items: stretch;
  gap: 0.5rem;
}

.eg-scroll-strip__track {
  flex: 1;
  min-width: 0;
}

.eg-scroll-strip__scroll {
  width: 100%;
}

.eg-scroll-strip-btn {
  flex: 0 0 auto;
  align-self: center;
  width: 2.25rem;
  min-height: 2.75rem;
  padding: 0;
  border: 1px solid rgba(11, 47, 100, 0.15);
  border-radius: 8px;
  background: #fff;
  color: #0b2f64;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, color 0.2s ease, opacity 0.2s ease;
}

.eg-scroll-strip-btn:hover:not(:disabled) {
  background: #0b2f64;
  color: #fff;
}

.eg-scroll-strip-btn:disabled {
  opacity: 0.35;
  cursor: default;
}

.eg-scroll-strip-btn:focus-visible {
  outline: 3px solid #f5c542;
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .eg-carousel--respect-motion .carousel-item {
    transition: none;
  }

  .eg-carousel--respect-motion .carousel-control-next-icon,
  .eg-carousel--respect-motion .carousel-control-prev-icon {
    transition: none;
  }

  .eg-project-gallery-horizontal-scroll,
  .eg-scroll-strip__scroll {
    scroll-behavior: auto;
  }
}

.eg-equipment-modal-img {
  max-height: min(70vh, 640px);
  object-fit: contain;
  margin: 0 auto;
  background: #0b1f33;
}

.eg-equipment-card--interactive {
  cursor: pointer;
}

.eg-equipment-card--interactive:focus-visible {
  outline: 3px solid #f5c542;
  outline-offset: 3px;
}

.eg-equipment-thumb-scroll {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.5rem;
  align-items: center;
  padding: 2px 0;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
}

.eg-equipment-thumb-btn {
  flex: 0 0 auto;
  padding: 0;
  margin: 0;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  cursor: pointer;
  line-height: 0;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.eg-equipment-thumb-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(11, 47, 100, 0.12);
}

.eg-equipment-thumb-btn:focus-visible {
  outline: 3px solid #f5c542;
  outline-offset: 2px;
}

.eg-equipment-thumb-btn img {
  display: block;
  width: 56px;
  height: 56px;
  object-fit: cover;
}

.eg-page-header {
  background: linear-gradient(135deg, #0b2f64 0%, #143d7a 100%);
  color: #fff;
  padding: 2.1rem 0;
}

.eg-page-header-title {
  margin: 0;
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: 0.02em;
  font-size: clamp(1.45rem, 3.4vw, 2.2rem);
}

.eg-page-header-subtitle {
  font-size: clamp(0.95rem, 2vw, 1.1rem);
  opacity: 0.92;
  font-weight: 400;
  max-width: 52rem;
}

