/* ==========================================================================
   BESCO — Bright East Steel Company
   Shared Stylesheet
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. CSS Custom Properties
   -------------------------------------------------------------------------- */
:root {
  /* Brand Colors */
  --color-navy:        #0B1F3A;
  --color-navy-dark:   #071228;
  --color-navy-mid:    #0F2847;
  --color-navy-light:  #162D50;
  --color-steel:       #8C97A3;
  --color-steel-dark:  #5A6470;
  --color-steel-light: #C4CBD2;
  --color-white:       #FFFFFF;
  --color-off-white:   #F4F6F8;
  --color-bg-light:    #EEF1F4;
  --color-text:        #1E2D3D;
  --color-text-muted:  #4A5568;

  /* Spacing Scale */
  --sp-1:  0.25rem;
  --sp-2:  0.5rem;
  --sp-3:  0.75rem;
  --sp-4:  1rem;
  --sp-5:  1.25rem;
  --sp-6:  1.5rem;
  --sp-7:  1.75rem;
  --sp-8:  2rem;
  --sp-10: 2.5rem;
  --sp-12: 3rem;
  --sp-14: 3.5rem;
  --sp-16: 4rem;
  --sp-20: 5rem;
  --sp-24: 6rem;

  /* Typography */
  --font-heading: 'Montserrat', 'Segoe UI', sans-serif;
  --font-body:    'Montserrat', 'Segoe UI', sans-serif;

  /* Transitions */
  --trans-fast: 0.15s ease;
  --trans-base: 0.3s ease;
  --trans-slow: 0.55s ease;

  /* Borders */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 14px;
  --radius-xl: 22px;

  /* Shadows */
  --shadow-sm:  0 1px 4px rgba(0,0,0,0.08);
  --shadow-md:  0 4px 16px rgba(0,0,0,0.12);
  --shadow-lg:  0 8px 32px rgba(0,0,0,0.18);
  --shadow-xl:  0 16px 48px rgba(0,0,0,0.25);

  /* Layout */
  --container-max: 1280px;
  --container-pad: 2rem;
  --topbar-height: 38px;
  --nav-height:    96px;
}

/* --------------------------------------------------------------------------
   2. CSS Reset & Base
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background-color: var(--color-white);
  line-height: 1.6;
  overflow-x: hidden;
}

img   { max-width: 100%; height: auto; display: block; }
a     { text-decoration: none; color: inherit; transition: color var(--trans-base); }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea, select { font-family: inherit; }

/* --------------------------------------------------------------------------
   3. Typography
   -------------------------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.25rem,  5vw,  3.75rem); }
h2 { font-size: clamp(1.875rem, 3.5vw, 2.875rem); }
h3 { font-size: clamp(1.25rem,  2.5vw, 1.75rem); }
h4 { font-size: clamp(1.0625rem, 2vw, 1.25rem); }

p {
  font-size: 1rem;
  line-height: 1.78;
  color: var(--color-text-muted);
}

/* --------------------------------------------------------------------------
   4. Utilities
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding-left: var(--container-pad);
  padding-right: var(--container-pad);
}

.section    { padding: var(--sp-20) 0; }
.section-sm { padding: var(--sp-12) 0; }

.section-header {
  text-align: center;
  margin-bottom: var(--sp-12);
}

.section-label {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--color-steel);
  margin-bottom: var(--sp-3);
}

.section-title         { color: var(--color-navy); margin-bottom: var(--sp-4); }
.section-title--white  { color: var(--color-white); }
.section-desc          { max-width: 640px; margin: 0 auto; font-size: 1.0625rem; }

.divider {
  width: 52px;
  height: 3px;
  background: var(--color-navy);
  margin: var(--sp-4) auto;
  border-radius: 2px;
}
.divider--left  { margin-left: 0; }
.divider--white { background: var(--color-white); }
.divider--steel { background: var(--color-steel); }

.bg-navy      { background-color: var(--color-navy); }
.bg-navy-dark { background-color: var(--color-navy-dark); }
.bg-off-white { background-color: var(--color-off-white); }

/* --------------------------------------------------------------------------
   5. Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: 0.8rem 1.875rem;
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  transition: all var(--trans-base);
  cursor: pointer;
}

.btn-primary {
  background-color: var(--color-navy);
  color: var(--color-white);
  border-color: var(--color-navy);
}
.btn-primary:hover {
  background-color: var(--color-navy-mid);
  border-color: var(--color-navy-mid);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background-color: transparent;
  color: var(--color-navy);
  border-color: var(--color-navy);
}
.btn-outline:hover {
  background-color: var(--color-navy);
  color: var(--color-white);
  transform: translateY(-2px);
}

.btn-outline-white {
  background-color: transparent;
  color: var(--color-white);
  border-color: rgba(255,255,255,0.6);
}
.btn-outline-white:hover {
  background-color: var(--color-white);
  color: var(--color-navy);
  border-color: var(--color-white);
  transform: translateY(-2px);
}

.btn-steel {
  background-color: var(--color-steel-dark);
  color: var(--color-white);
  border-color: var(--color-steel-dark);
}
.btn-steel:hover {
  background-color: var(--color-steel);
  border-color: var(--color-steel);
  transform: translateY(-2px);
}

/* --------------------------------------------------------------------------
   6. Image Placeholders
   -------------------------------------------------------------------------- */
.img-ph {
  background: linear-gradient(135deg, var(--color-navy-light) 0%, var(--color-steel-dark) 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.35);
  font-family: var(--font-heading);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  text-align: center;
  gap: var(--sp-3);
  position: relative;
  overflow: hidden;
}
.img-ph::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 18px,
    rgba(255,255,255,0.02) 18px,
    rgba(255,255,255,0.02) 19px
  );
}
.img-ph .ph-icon  { font-size: 2.25rem; opacity: 0.4; position: relative; }
.img-ph .ph-label { position: relative; padding: 0 var(--sp-5); }

/* --------------------------------------------------------------------------
   7. Header & Navigation
   -------------------------------------------------------------------------- */

/* Top info bar */
.topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1001;
  background-color: var(--color-navy);
  height: var(--topbar-height);
}
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--topbar-height);
}
.topbar-contact {
  display: flex;
  align-items: center;
  gap: var(--sp-6);
}
.topbar-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 500;
  color: rgba(255,255,255,0.8);
  white-space: nowrap;
  transition: color var(--trans-fast);
}
.topbar-item:hover { color: #ffffff; }
.topbar-item svg { flex-shrink: 0; opacity: 0.75; }
.topbar-social {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
}
.topbar-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  color: rgba(255,255,255,0.7);
  border-radius: 4px;
  transition: color var(--trans-fast), background-color var(--trans-fast);
}
.topbar-social a svg { width: 13px; height: 13px; }
.topbar-social a:hover {
  color: #ffffff;
  background-color: rgba(255,255,255,0.1);
}
@media (max-width: 767px) {
  .topbar-contact .topbar-item:nth-child(3) { display: none; }
}
@media (max-width: 480px) {
  .topbar-contact .topbar-item:nth-child(2) { display: none; }
}

/* Transparent over the dark page hero, solid white once the page scrolls
   (script.js adds .scrolled after 50px). White logo and text while transparent. */
.site-header {
  position: fixed;
  top: var(--topbar-height); left: 0; right: 0;
  z-index: 1000;
  background-color: transparent;
  border-bottom: 1px solid rgba(255,255,255,0.12);
  height: var(--nav-height);
  transition: background-color var(--trans-base), border-color var(--trans-base), box-shadow var(--trans-base);
}
.site-header.scrolled {
  background-color: #ffffff;
  border-bottom-color: rgba(11,31,58,0.1);
  box-shadow: 0 2px 20px rgba(11,31,58,0.12);
}
.site-header:not(.scrolled) {
  /* Soft shade so white text stays readable over bright parts of the hero photo */
  background-image: linear-gradient(to bottom, rgba(4,12,26,0.65) 0%, rgba(4,12,26,0.35) 60%, rgba(4,12,26,0) 100%);
}
/* Reversed logo (silver kept, navy shown as white) while transparent; original colour logo once solid */
.nav-logo { position: relative; }
.nav-logo .logo-light { position: absolute; left: 0; top: 50%; transform: translateY(-50%); opacity: 0; }
.site-header:not(.scrolled) .nav-logo .logo-light { opacity: 1; }
.site-header:not(.scrolled) .nav-logo .logo-dark  { opacity: 0; }
.site-header:not(.scrolled) .hamburger span { background-color: var(--color-white); }

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-height);
  gap: var(--sp-6);
}

.nav-logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}
.nav-logo img {
  height: 84px;
  width: auto;
  display: block;
  transition: opacity var(--trans-base);
}

/* Mobile: full-screen slide-in overlay */
.nav-links {
  display: flex;
  position: fixed;
  top: calc(var(--topbar-height) + var(--nav-height)); /* below the top bar and the header, so the logo stays whole */
  left: 0; right: 0; bottom: 0;
  background-color: rgba(7,18,40,0.98);
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  padding: var(--sp-4) var(--sp-6) var(--sp-10);
  gap: 0;
  overflow-y: auto;
  transform: translateX(-100%);
  transition: transform var(--trans-base);
  z-index: 999;
}
.nav-links.open { transform: translateX(0); }

.nav-links > li { position: relative; width: 100%; }

.nav-links > li > a {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-4) var(--sp-2);
  font-family: var(--font-heading);
  font-size: 1.085rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-steel-light);
  border-radius: 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: color var(--trans-base), background-color var(--trans-base);
  width: 100%;
}
.nav-links > li > a:hover,
.nav-links > li > a.active {
  color: var(--color-white);
  background-color: rgba(255,255,255,0.07);
}

.nav-chevron { font-size: 0.6rem; transition: transform var(--trans-base); }
.dropdown.open .nav-chevron { transform: rotate(180deg); }

/* Dropdown — mobile: tap-to-expand */
.dropdown-menu {
  position: static;
  opacity: 1;
  visibility: visible;
  transform: none;
  box-shadow: none;
  border: none;
  border-radius: 0;
  padding: 0;
  background: rgba(255,255,255,0.04);
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--trans-base);
}
.dropdown.open .dropdown-menu { max-height: 220px; }
.dropdown-menu li a {
  display: block;
  padding: var(--sp-3) var(--sp-8);
  font-family: var(--font-heading);
  font-size: 1.02rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-steel-light);
  border-bottom: 1px solid rgba(255,255,255,0.04);
  transition: color var(--trans-base), background-color var(--trans-base);
}
.dropdown-menu li a:hover {
  color: var(--color-white);
  background-color: rgba(255,255,255,0.06);
}

/* Hamburger */
.hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: var(--sp-2);
  cursor: pointer;
  flex-shrink: 0;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--color-navy);
  border-radius: 2px;
  transition: all var(--trans-base);
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Desktop — horizontal inline nav */
@media (min-width: 1024px) {
  .nav-links {
    position: static;
    flex-direction: row;
    align-items: center;
    background: transparent;
    transform: none;
    padding: 0;
    gap: var(--sp-1);
    overflow: visible;
    top: auto; left: auto; right: auto; bottom: auto;
  }
  .nav-links > li { width: auto; }
  .nav-links > li > a {
    padding: var(--sp-2) var(--sp-3);
    border-bottom: none;
    font-size: 0.875rem;
    letter-spacing: 0.12em;
    color: var(--color-navy);
    border-radius: var(--radius-sm);
    width: auto;
  }
  .nav-links > li > a:hover,
  .nav-links > li > a.active {
    color: var(--color-navy);
    background-color: rgba(11,31,58,0.07);
  }
  .site-header:not(.scrolled) .nav-links > li > a {
    color: var(--color-white);
    text-shadow: 0 1px 3px rgba(0,0,0,0.35);
  }
  .site-header:not(.scrolled) .nav-links > li > a:hover,
  .site-header:not(.scrolled) .nav-links > li > a.active {
    color: var(--color-white);
    background-color: rgba(255,255,255,0.14);
  }
  .hamburger { display: none; }
  /* Desktop dropdown */
  .dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    background: var(--color-navy-dark);
    min-width: 210px;
    max-height: none;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius-md);
    padding: var(--sp-2) 0;
    overflow: visible;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity var(--trans-base), transform var(--trans-base), visibility var(--trans-base);
  }
  .dropdown:hover .dropdown-menu,
  .dropdown.open .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    max-height: none;
  }
  .dropdown-menu li a {
    padding: var(--sp-3) var(--sp-4);
    font-size: 0.893rem;
    border-bottom: 1px solid rgba(255,255,255,0.05);
  }
}

/* --------------------------------------------------------------------------
   8. Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background-color: #ffffff;
  color: var(--color-text-muted);
  padding: var(--sp-16) 0 0;
  border-top: 1px solid rgba(11,31,58,0.1);
}

.footer-grid {
  display: grid;
  /* Columns sized to their content and spread edge to edge, so the first
     lines up under the menu logo and the last ends under CONTACT. */
  grid-template-columns: repeat(4, auto);
  justify-content: space-between;
  gap: var(--sp-10);
  padding-bottom: var(--sp-12);
  border-bottom: 1px solid rgba(11,31,58,0.08);
}

.footer-logo {
  height: 130px;
  width: auto;
  margin-bottom: var(--sp-5);
}

.footer-social {
  display: flex;
  gap: var(--sp-3);
  margin-top: var(--sp-4);
}
.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1.5px solid rgba(11,31,58,0.2);
  color: var(--color-navy);
  transition: background-color var(--trans-base), border-color var(--trans-base), color var(--trans-base);
}
.footer-social a svg {
  width: 16px;
  height: 16px;
  display: block;
}
.footer-social a:hover {
  background-color: var(--color-navy);
  border-color: var(--color-navy);
  color: var(--color-white);
}

.footer-tagline {
  font-family: var(--font-heading);
  font-size: 0.825rem;
  color: var(--color-navy);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: var(--sp-5);
}

.footer-about-text {
  font-size: 0.875rem;
  line-height: 1.75;
  color: var(--color-navy);
  max-width: 280px;
}

.footer-col h4 {
  font-family: var(--font-heading);
  font-size: 0.775rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  line-height: 1; /* text starts at the column top, level with the footer logo */
  color: var(--color-navy);
  margin-bottom: var(--sp-5);
  padding-bottom: var(--sp-3);
  border-bottom: 2px solid var(--color-navy);
  display: inline-block;
  vertical-align: top;
}

.footer-links li { margin-bottom: var(--sp-3); }
.footer-links a {
  font-size: 0.875rem;
  color: var(--color-navy);
  transition: color var(--trans-base);
  display: flex;
  align-items: center;
  gap: var(--sp-2);
}
.footer-links a::before { content: '›'; color: var(--color-navy); }
.footer-links a:hover   { color: var(--color-navy-mid); }

.footer-contact-item {
  display: flex;
  gap: var(--sp-3);
  margin-bottom: var(--sp-4);
  font-size: 0.875rem;
  color: var(--color-navy);
  line-height: 1.5;
  align-items: flex-start;
}
.footer-contact-item .f-icon {
  color: var(--color-navy);
  flex-shrink: 0;
  width: 16px;
  height: 1.5em; /* one text line, so the icon centres on the first line */
  display: flex;
  align-items: center;
}
.footer-contact-item .f-icon svg { display: block; }
.footer-contact-item a { color: var(--color-navy); transition: color var(--trans-base); }
.footer-contact-item a:hover { color: var(--color-navy-mid); }

.footer-bottom {
  padding: var(--sp-5) 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--sp-4);
  background-color: #ffffff;
}
.footer-copy { font-size: 0.8rem; color: var(--color-navy); }

/* --------------------------------------------------------------------------
   9. Page Hero Banner
   -------------------------------------------------------------------------- */
.page-hero {
  background:
    linear-gradient(90deg, rgba(11,31,63,0.96) 0%, rgba(11,31,63,0.9) 42%, rgba(11,31,63,0.6) 72%, rgba(11,31,63,0.4) 100%),
    url('images/page-hero-bg.webp') center right / cover no-repeat,
    var(--color-navy-dark);
  padding: calc(var(--topbar-height) + var(--nav-height) + var(--sp-16)) 0 var(--sp-16);
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    -45deg, transparent, transparent 40px,
    rgba(255,255,255,0.012) 40px, rgba(255,255,255,0.012) 41px
  );
}
.page-hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-steel-dark), var(--color-steel), var(--color-steel-dark));
}
.page-hero .container { position: relative; }

.page-hero-eyebrow {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-steel-light);
  margin-bottom: var(--sp-4);
}
.page-hero-eyebrow::before {
  content: '';
  display: inline-block;
  width: 32px;
  height: 2px;
  background: var(--color-steel-dark);
  flex-shrink: 0;
}

.page-hero h1 {
  color: var(--color-white);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  margin-bottom: var(--sp-4);
}
.page-hero .hero-sub-text {
  font-size: 0.9375rem;
  color: var(--color-white);
  max-width: 580px;
  font-weight: 500;
  text-shadow: 0 1px 3px rgba(0,0,0,0.6), 0 2px 12px rgba(0,0,0,0.5);
}
.page-hero h1 { text-shadow: 0 2px 4px rgba(0,0,0,0.5), 0 2px 16px rgba(0,0,0,0.5); }
.page-hero-eyebrow, .page-hero .breadcrumb { text-shadow: 0 1px 4px rgba(0,0,0,0.7); }
.page-hero .breadcrumb { color: var(--color-steel-light); }

@media (max-width: 768px) {
  .page-hero h1 { font-size: 1.5rem; }
  .page-hero .hero-sub-text { font-size: 0.8125rem; line-height: 1.6; }
  .page-hero-eyebrow { font-size: 0.65rem; }
  .breadcrumb { font-size: 0.7rem; }
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  margin-top: var(--sp-5);
  font-size: 0.8rem;
  color: var(--color-steel);
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.breadcrumb a { color: var(--color-white); }
.breadcrumb a:hover { color: var(--color-white); }
.breadcrumb .bc-sep { color: var(--color-steel-dark); margin: 0 2px; }

/* --------------------------------------------------------------------------
   10. Homepage Hero
   -------------------------------------------------------------------------- */
.home-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background-color: var(--color-navy-dark);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-bg-img {
  width: 100%;
  height: 100%;
  background-image: url('images/hero-poster.jpg'); /* shown until the video plays */
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  position: relative;
  overflow: hidden;
}
.hero-bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
/* Subtle dark vignette on top of the photo to keep text legible */
.hero-bg-img::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to right, rgba(4,12,26,0.55) 0%, rgba(4,12,26,0.2) 100%);
}
.hero-bg-img::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to top, rgba(4,12,26,0.5) 0%, transparent 50%);
}
/* Animated WebGL shader overlay — navy/steel glowing energy trails */
#hero-shader-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  mix-blend-mode: screen;   /* dark areas vanish; only the bright trails show */
  pointer-events: none;
  z-index: 1;
}

.hero-bg-label {
  position: absolute;
  bottom: var(--sp-3);
  right: var(--sp-4);
  font-family: var(--font-heading);
  font-size: 0.625rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: rgba(255,255,255,0.2);
  z-index: 1;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  /* Left-to-right: keeps headline text legible over the bright image */
  background: linear-gradient(100deg, rgba(4,12,26,0.82) 0%, rgba(4,12,26,0.55) 45%, rgba(4,12,26,0.25) 100%);
  z-index: 1;
}
/* Top scrim — gives the transparent nav a dark surface so logo + hamburger are always visible */
.hero-overlay::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: calc(var(--nav-height) + 20px);
  background: linear-gradient(to bottom, rgba(4,12,26,0.65) 0%, transparent 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: calc(var(--topbar-height) + var(--nav-height) + var(--sp-20)) 0 var(--sp-20);
  max-width: 950px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-3);
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--color-steel);
  margin-bottom: var(--sp-5);
}
.hero-eyebrow::before {
  content: '';
  width: 40px;
  height: 2px;
  background: var(--color-steel-dark);
  flex-shrink: 0;
}

.hero-headline {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 6.5vw, 4.75rem);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.02em;
  color: var(--color-white);
  margin-bottom: var(--sp-6);
  text-transform: uppercase;
}
.hero-headline .hl-steel { color: var(--color-steel-light); }

.hero-sub {
  font-size: 1.0625rem;
  color: rgba(196,203,210,0.85);
  max-width: 950px;
  margin-bottom: var(--sp-10);
  line-height: 1.78;
}

.hero-actions { display: flex; align-items: center; gap: var(--sp-4); flex-wrap: wrap; }

/* Floating cards */
.hero-info-cards {
  position: absolute;
  right: var(--sp-8);
  bottom: var(--sp-20);
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
}
.hero-card {
  background: rgba(255,255,255,0.07);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-md);
  padding: var(--sp-4) var(--sp-6);
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  min-width: 215px;
  transition: all var(--trans-base);
}
.hero-card:hover { background: rgba(255,255,255,0.11); }
.hero-card .hc-icon { font-size: 2rem; flex-shrink: 0; }
.hero-card .hc-val {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--color-white);
  line-height: 1;
}
.hero-card .hc-lbl {
  font-size: 0.7rem;
  color: var(--color-steel-light);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-family: var(--font-heading);
  margin-top: 2px;
}

/* Scroll indicator */
.scroll-cue {
  position: absolute;
  bottom: var(--sp-8);
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-2);
  color: var(--color-steel);
  font-size: 0.65rem;
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  animation: scrollBounce 2.2s ease-in-out infinite;
}
.scroll-cue .sc-arrow { font-size: 1.25rem; }
@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(8px); }
}

/* --------------------------------------------------------------------------
   11. Pillars Section
   -------------------------------------------------------------------------- */
.pillars-section { padding: var(--sp-20) 0; background-color: var(--color-white); }

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-6);
  margin-top: var(--sp-12);
}

.pillar-card {
  background-color: var(--color-off-white);
  border: 1px solid rgba(11,31,58,0.08);
  border-radius: var(--radius-lg);
  padding: var(--sp-8);
  position: relative;
  overflow: hidden;
  transition: all var(--trans-base);
}
.pillar-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-navy), var(--color-steel-dark));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--trans-base);
}
.pillar-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); background: var(--color-white); }
.pillar-card:hover::before { transform: scaleX(1); }

.pillar-icon {
  width: 54px;
  height: 54px;
  background: var(--color-navy);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.375rem;
  color: var(--color-white);
  margin-bottom: var(--sp-5);
}
.pillar-card h3 { color: var(--color-navy); margin-bottom: var(--sp-3); font-size: 1.375rem; }
.pillar-card p  { font-size: 0.9375rem; line-height: 1.72; }

/* --------------------------------------------------------------------------
   12. Featured Projects
   -------------------------------------------------------------------------- */
.projects-preview { padding: var(--sp-20) 0; background-color: var(--color-off-white); }

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-6);
  margin-top: var(--sp-12);
}

.project-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(11,31,58,0.05);
  transition: all var(--trans-base);
}
.project-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-xl); }

.project-card .img-ph { height: 220px; }

.project-card-img {
  height: 230px;
  overflow: hidden;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.project-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.project-card:hover .project-card-img img {
  transform: scale(1.05);
}

.project-card-body { padding: var(--sp-5) var(--sp-6) var(--sp-6); }

.project-meta {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  margin-bottom: var(--sp-3);
  flex-wrap: wrap;
}
.project-tag {
  font-family: var(--font-heading);
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-white);
  background-color: var(--color-navy);
  padding: 2px 10px;
  border-radius: 2px;
}
.project-year {
  font-family: var(--font-heading);
  font-size: 0.72rem;
  color: var(--color-steel);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.project-card h3 { font-size: 1rem; color: var(--color-navy); margin-bottom: var(--sp-2); line-height: 1.32; }
.project-location {
  font-size: 0.8125rem;
  color: var(--color-steel);
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: var(--sp-3);
}
.project-card p { font-size: 0.875rem; line-height: 1.65; }
.projects-footer { text-align: center; margin-top: var(--sp-10); }

/* --------------------------------------------------------------------------
   13. Capabilities Section
   -------------------------------------------------------------------------- */
.capabilities-section { padding: var(--sp-20) 0; background-color: var(--color-navy); }

.capabilities-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-5);
  margin-top: var(--sp-12);
}
.capability-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-lg);
  padding: var(--sp-7) var(--sp-5);
  text-align: center;
  transition: all var(--trans-base);
}
.capability-card:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(196,203,210,0.25);
  transform: translateY(-4px);
}
.capability-card .cap-icon { font-size: 2.5rem; margin-bottom: var(--sp-4); color: var(--color-steel-light); }
.capability-card h3 { color: var(--color-white); font-size: 1.075rem; margin-bottom: var(--sp-3); }
.capability-card p  { font-size: 0.875rem; color: var(--color-steel); line-height: 1.65; }

.video-block {
  margin-top: var(--sp-12);
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  height: 360px;
  background: linear-gradient(135deg, var(--color-navy-mid), var(--color-navy-dark));
  border: 1px solid rgba(255,255,255,0.07);
  cursor: pointer;
}
.video-block .img-ph { height: 100%; width: 100%; }
.play-btn {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 76px; height: 76px;
  background: rgba(255,255,255,0.14);
  border: 2px solid rgba(255,255,255,0.4);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.625rem;
  color: var(--color-white);
  z-index: 2;
  transition: all var(--trans-base);
  cursor: pointer;
}
.play-btn:hover {
  background: rgba(255,255,255,0.25);
  transform: translate(-50%, -50%) scale(1.1);
}
.video-label {
  position: absolute;
  bottom: var(--sp-5);
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-heading);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--color-steel-light);
  z-index: 2;
  white-space: nowrap;
}

/* --------------------------------------------------------------------------
   14. Client Marquee
   -------------------------------------------------------------------------- */
.clients-section { padding: var(--sp-16) 0 var(--sp-12); background-color: var(--color-white); }

/* Logo Slider */
.logo-slider { position: relative; max-width: 1400px; margin: var(--sp-8) auto 0; padding: 0 3.5rem; }
.ls-viewport  { overflow: hidden; padding: var(--sp-4) 0; background: var(--color-white); box-shadow: 0 0 0 100vmax var(--color-white); clip-path: inset(0 -100vmax); }
.ls-track     { display: flex; transition: transform 0.45s cubic-bezier(.4,0,.2,1); will-change: transform; }
.ls-slide     { display: flex; gap: 2.5rem; flex: 0 0 100%; justify-content: center; align-items: center; padding: 0.5rem 0; }
.ls-chip {
  flex: 1; max-width: 200px; min-width: 0;
  display: flex; align-items: center; justify-content: center;
  height: 110px;
  transition: transform var(--trans-base);
}
.ls-chip:hover { transform: scale(1.06); }
.ls-chip img  { max-height: 100px; max-width: 100%; width: auto; object-fit: contain; }
.ls-chip span { font-family: var(--font-heading); font-size: 1.25rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--color-navy); text-align: center; }
/* Extra room for very wide, thin logos (e.g. JGC) so they don't look tiny */
@media (min-width: 769px) { .ls-chip-wide { max-width: 240px; } }
.ls-arrow {
  position: absolute; top: calc(var(--sp-4) + 0.5rem + 55px); transform: translateY(-50%);
  width: 2.4rem; height: 2.4rem;
  background: var(--color-white); border: 1px solid rgba(11,31,58,0.15);
  border-radius: 50%; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem; line-height: 1; color: var(--color-navy);
  transition: all var(--trans-base); z-index: 2;
}
.ls-arrow:hover { background: var(--color-navy); border-color: var(--color-navy); color: var(--color-white); }
.ls-prev { left: 0.5rem; }
.ls-next { right: 0.5rem; }
@media (max-width: 768px) {
  /* Mobile: show 1 logo at a time, large and easy to read */
  .logo-slider { padding: 0 2.5rem; }
  .ls-viewport { padding: var(--sp-2) 0; }
  .ls-slide { display: contents; }
  .ls-chip { flex: 0 0 100%; max-width: none; height: 110px; padding: 0 1rem; box-sizing: border-box; }
  .ls-chip img { max-height: 84px; max-width: 80%; }
  .ls-chip span { font-size: 1.25rem; }
  .ls-arrow { top: 50%; width: 2.1rem; height: 2.1rem; }
  .ls-prev { left: 0.25rem; }
  .ls-next { right: 0.25rem; }
}

.marquee-wrapper {
  position: relative;
  overflow: hidden;
  margin-top: var(--sp-8);
}
.marquee-wrapper::before,
.marquee-wrapper::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 90px;
  z-index: 2;
  pointer-events: none;
}
.marquee-wrapper::before { left: 0;  background: linear-gradient(90deg,  var(--color-off-white), transparent); }
.marquee-wrapper::after  { right: 0; background: linear-gradient(-90deg, var(--color-off-white), transparent); }

.marquee-track {
  display: flex;
  gap: var(--sp-4);
  animation: marqueeSroll 38s linear infinite;
  width: max-content;
}
.marquee-track:hover { animation-play-state: paused; }

@keyframes marqueeSroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.client-chip {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 62px;
  padding: 0 var(--sp-6);
  background-color: var(--color-white);
  border: 1px solid rgba(11,31,58,0.09);
  border-radius: var(--radius-md);
  min-width: 145px;
  box-shadow: var(--shadow-sm);
  transition: all var(--trans-base);
}
.client-chip:hover {
  border-color: var(--color-navy);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.client-chip img {
  max-height: 38px;
  width: auto;
  max-width: 120px;
  object-fit: contain;
  display: block;
  filter: grayscale(100%);
  opacity: 0.75;
  transition: filter var(--trans-base), opacity var(--trans-base);
}
.client-chip:hover img {
  filter: grayscale(0%);
  opacity: 1;
}
.client-chip span {
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-navy);
  white-space: nowrap;
}

/* --------------------------------------------------------------------------
   15. Stats / CTA Section
   -------------------------------------------------------------------------- */
.stats-section {
  padding: var(--sp-20) 0;
  background-color: var(--color-navy-dark);
  position: relative;
  overflow: hidden;
}
.stats-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    45deg, transparent, transparent 30px,
    rgba(255,255,255,0.018) 30px, rgba(255,255,255,0.018) 31px
  );
}

.stats-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: var(--sp-12);
  align-items: center;
}
.stats-text h2 { color: var(--color-white); margin-bottom: var(--sp-5); }
.stats-text p  { color: var(--color-steel-light); font-size: 1.0625rem; margin-bottom: var(--sp-8); max-width: 500px; }

.stats-numbers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-5);
}
.stat-item {
  text-align: center;
  padding: var(--sp-6) var(--sp-4);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-md);
  background: rgba(255,255,255,0.04);
  transition: all var(--trans-base);
}
.stat-item:hover { background: rgba(255,255,255,0.07); }
.stat-num {
  font-family: var(--font-heading);
  font-size: 2.875rem;
  font-weight: 800;
  color: var(--color-white);
  line-height: 1;
  margin-bottom: var(--sp-2);
}
.stat-lbl {
  font-family: var(--font-heading);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--color-steel);
}

/* --------------------------------------------------------------------------
   16. About Page
   -------------------------------------------------------------------------- */
.about-intro { padding: var(--sp-20) 0; }
.about-intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-16);
  align-items: center;
}
.about-intro .img-ph { height: 500px; border-radius: var(--radius-lg); }

/* About intro image slider */
.about-slider { position: relative; height: 500px; border-radius: 14px; overflow: hidden; background: var(--color-off-white); }
.about-slider .as-slide {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; display: block;
  opacity: 0; transition: opacity 0.8s ease;
}
.about-slider .as-slide.is-active { opacity: 1; }
.as-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  width: 2.4rem; height: 2.4rem;
  background: var(--color-white); border: 1px solid rgba(11,31,58,0.15);
  border-radius: 50%; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem; line-height: 1; color: var(--color-navy);
  transition: background var(--trans-base), color var(--trans-base), border-color var(--trans-base);
}
.as-arrow:hover, .as-arrow:focus-visible { background: var(--color-navy); border-color: var(--color-navy); color: var(--color-white); }
.as-prev { left: 1rem; }
.as-next { right: 1rem; }
.as-dots {
  position: absolute; left: 50%; bottom: 1rem; transform: translateX(-50%); z-index: 2;
  display: flex; gap: 0.5rem; padding: 0.4rem 0.6rem;
  background: rgba(255,255,255,0.85); border-radius: 999px;
}
.as-dots button {
  width: 0.6rem; height: 0.6rem; padding: 0; border: 0; border-radius: 50%;
  background: rgba(11,31,58,0.3); cursor: pointer; transition: background var(--trans-base);
}
.as-dots button.is-active { background: var(--color-navy); }

.about-intro-text .section-label { margin-bottom: var(--sp-3); }
.about-intro-text h2 { color: var(--color-navy); margin-bottom: var(--sp-5); }
.about-intro-text p  { margin-bottom: var(--sp-4); }

.about-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-4);
  margin-top: var(--sp-6);
}
.about-fact { display: flex; gap: var(--sp-3); align-items: flex-start; }
.fact-icon {
  width: 38px; height: 38px;
  background: var(--color-navy);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}
.fact-text strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-navy);
  margin-bottom: 2px;
}
.fact-text span { font-size: 0.8125rem; color: var(--color-steel); }

.mission-strip { background: var(--color-navy); padding: var(--sp-16) 0; }
.mission-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-6);
}
.mission-item {
  text-align: center;
  padding: var(--sp-8);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--radius-lg);
  transition: all var(--trans-base);
}
.mission-item:hover { background: rgba(255,255,255,0.04); }
.mission-item .m-icon { font-size: 2.5rem; margin-bottom: var(--sp-4); color: var(--color-steel-light); }
.mission-item h3 { color: var(--color-white); margin-bottom: var(--sp-3); }
.mission-item p  { font-size: 0.9375rem; color: var(--color-steel); }

.about-stats-row { padding: var(--sp-16) 0; background: var(--color-off-white); }
.stats-row-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-5);
}
.stats-row-item {
  text-align: center;
  padding: var(--sp-7) var(--sp-5);
  background: var(--color-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border-top: 3px solid var(--color-navy);
  transition: all var(--trans-base);
}
.stats-row-item:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.stats-row-item .sr-num {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--color-navy);
  line-height: 1;
  margin-bottom: var(--sp-2);
}
.stats-row-item .sr-lbl {
  font-family: var(--font-heading);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--color-steel);
}

/* --------------------------------------------------------------------------
   17. Management Message
   -------------------------------------------------------------------------- */
.management-section { padding: var(--sp-20) 0; }
.management-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: var(--sp-10);
  align-items: start;
}
.message-card {
  background: var(--color-off-white);
  border-radius: var(--radius-lg);
  padding: var(--sp-10) var(--sp-12);
  border-left: 4px solid var(--color-navy);
}
.msg-from {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--color-steel);
  margin-bottom: var(--sp-4);
}
.message-card h2 { color: var(--color-navy); margin-bottom: var(--sp-6); }
.message-card p  { margin-bottom: var(--sp-4); font-size: 1rem; line-height: 1.82; }
.message-sig {
  margin-top: var(--sp-7);
  padding-top: var(--sp-6);
  border-top: 1px solid rgba(11,31,58,0.1);
}
.sig-name  { font-family: var(--font-heading); font-size: 1.125rem; font-weight: 700; color: var(--color-navy); }
.sig-title { font-size: 0.875rem; color: var(--color-steel); margin-top: 3px; }

.mgmt-sidebar { display: flex; flex-direction: column; gap: var(--sp-5); }
.sidebar-portrait { border-radius: var(--radius-lg); overflow: hidden; }
.sidebar-portrait .img-ph { height: 300px; }
.sidebar-kpis {
  background: var(--color-navy);
  border-radius: var(--radius-md);
  padding: var(--sp-6);
}
.sidebar-kpis h4 { color: var(--color-white); font-size: 0.875rem; margin-bottom: var(--sp-4); text-transform: uppercase; letter-spacing: 0.1em; }
.sidebar-kpis ul li {
  font-size: 0.875rem;
  color: var(--color-steel);
  padding: var(--sp-2) 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  display: flex;
  align-items: flex-start;
  gap: var(--sp-2);
}
.sidebar-kpis ul li::before { content: '✓'; color: var(--color-steel); flex-shrink: 0; }
.sidebar-kpis ul li:last-child { border-bottom: none; }

/* --------------------------------------------------------------------------
   18. Projects Page
   -------------------------------------------------------------------------- */
.projects-page-section { padding: var(--sp-16) 0 var(--sp-20); }
.projects-filter {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-3);
  flex-wrap: wrap;
  margin-bottom: var(--sp-10);
}
.filter-btn {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.5rem 1.375rem;
  border: 2px solid rgba(11,31,58,0.2);
  border-radius: 2px;
  color: var(--color-navy);
  background: transparent;
  cursor: pointer;
  transition: all var(--trans-base);
}
.filter-btn:hover,
.filter-btn.active {
  background: var(--color-navy);
  border-color: var(--color-navy);
  color: var(--color-white);
}

.all-projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-6);
}

/* --------------------------------------------------------------------------
   19. Services Page
   -------------------------------------------------------------------------- */
.services-list { padding: var(--sp-4) 0; }

.service-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-14);
  align-items: center;
  padding: var(--sp-16) 0;
  border-bottom: 1px solid rgba(11,31,58,0.07);
}
.service-block:last-child { border-bottom: none; }
.service-block.reverse > :first-child { order: 2; }
.service-block.reverse > :last-child  { order: 1; }

.service-img .img-ph { height: 380px; border-radius: var(--radius-lg); }

.service-icon-wrap {
  width: 62px; height: 62px;
  background: var(--color-navy);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  margin-bottom: var(--sp-5);
}
.service-content .section-label { margin-bottom: var(--sp-3); }
.service-content h2 { color: var(--color-navy); margin-bottom: var(--sp-5); }
.service-content p  { margin-bottom: var(--sp-4); line-height: 1.8; }

.service-features { margin-top: var(--sp-5); display: flex; flex-direction: column; gap: var(--sp-2); }
.sf-item {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  font-size: 0.9375rem;
  color: var(--color-text-muted);
}
.sf-item::before { content: '›'; color: var(--color-navy); font-weight: 700; font-size: 1.125rem; line-height: 1.4; flex-shrink: 0; }

/* --------------------------------------------------------------------------
   20. Career Page
   -------------------------------------------------------------------------- */
.career-intro { padding: var(--sp-20) 0; }
.career-intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-12);
  align-items: center;
}
.career-intro .img-ph { height: 480px; border-radius: var(--radius-lg); }

.why-work { padding: var(--sp-20) 0; background: var(--color-off-white); }
.why-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--sp-5);
  margin-top: var(--sp-12);
}
.why-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: var(--sp-7) var(--sp-5);
  text-align: center;
  box-shadow: var(--shadow-sm);
  border-top: 3px solid transparent;
  transition: all var(--trans-base);
}
.why-card:hover { border-top-color: var(--color-navy); transform: translateY(-4px); box-shadow: var(--shadow-md); }
.why-icon { font-size: 2.25rem; margin-bottom: var(--sp-4); }
.why-card h4 { color: var(--color-navy); font-size: 0.9375rem; margin-bottom: var(--sp-3); }
.why-card p  { font-size: 0.875rem; line-height: 1.65; }

.openings-section { padding: var(--sp-20) 0; }
.openings-notice {
  background: var(--color-navy);
  border-radius: var(--radius-lg);
  padding: var(--sp-14) var(--sp-12);
  text-align: center;
  max-width: 740px;
  margin: 0 auto;
}
.openings-notice h3 { color: var(--color-white); margin-bottom: var(--sp-4); }
.openings-notice p  { color: var(--color-steel-light); margin-bottom: var(--sp-8); max-width: 480px; margin-left: auto; margin-right: auto; }

/* --------------------------------------------------------------------------
   21. News Page
   -------------------------------------------------------------------------- */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-6);
  margin-top: var(--sp-12);
}

.news-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(11,31,58,0.06);
  transition: all var(--trans-base);
  display: flex;
  flex-direction: column;
}
.news-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-xl); }
.news-card .img-ph { height: 196px; flex-shrink: 0; }

.news-card-body {
  padding: var(--sp-5) var(--sp-6) var(--sp-6);
  flex: 1;
  display: flex;
  flex-direction: column;
}
.news-meta {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  margin-bottom: var(--sp-3);
  flex-wrap: wrap;
}
.news-tag {
  font-family: var(--font-heading);
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-white);
  background: var(--color-navy);
  padding: 2px 10px;
  border-radius: 2px;
}
.news-date {
  font-size: 0.72rem;
  color: var(--color-steel);
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.news-card h3 { font-size: 1rem; color: var(--color-navy); line-height: 1.4; margin-bottom: var(--sp-3); }
.news-card p  { font-size: 0.875rem; line-height: 1.68; margin-bottom: var(--sp-4); }
.read-more {
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-navy);
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  border-bottom: 2px solid var(--color-steel-light);
  padding-bottom: 2px;
  transition: all var(--trans-base);
  margin-top: auto;
  align-self: flex-start;
}
.read-more::after { content: '→'; }
.read-more:hover  { color: var(--color-steel-dark); border-bottom-color: var(--color-navy); }

.load-more-wrap { text-align: center; margin-top: var(--sp-10); }

/* --------------------------------------------------------------------------
   22. Contact Page
   -------------------------------------------------------------------------- */
.contact-section { padding: var(--sp-20) 0; }
.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--sp-10);
  align-items: start;
}

.contact-form-wrap {
  background: var(--color-off-white);
  border-radius: var(--radius-lg);
  padding: var(--sp-8) var(--sp-10);
}
.contact-form-wrap h2 { color: var(--color-navy); margin-bottom: var(--sp-3); }
.contact-form-wrap > p { margin-bottom: var(--sp-6); }

.form-group { margin-bottom: var(--sp-5); }
.form-group label {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-navy);
  margin-bottom: var(--sp-2);
}
.form-control {
  width: 100%;
  padding: 0.75rem var(--sp-4);
  border: 1.5px solid rgba(11,31,58,0.14);
  border-radius: var(--radius-sm);
  background: var(--color-white);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  color: var(--color-text);
  outline: none;
  transition: border-color var(--trans-base), box-shadow var(--trans-base);
}
.form-control:focus { border-color: var(--color-navy); box-shadow: 0 0 0 3px rgba(11,31,58,0.07); }
.form-control.error { border-color: #c0392b; }
textarea.form-control { min-height: 148px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-4); }
.form-error { display: none; font-size: 0.8rem; color: #c0392b; margin-top: var(--sp-2); }
.form-error.show { display: block; }

.contact-info-card {
  background: var(--color-navy);
  border-radius: var(--radius-lg);
  padding: var(--sp-8);
  color: var(--color-white);
  position: sticky;
  top: calc(var(--nav-height) + var(--sp-5));
}
.contact-info-card h2 { color: var(--color-white); margin-bottom: var(--sp-3); }
.contact-info-card > p { color: var(--color-steel-light); margin-bottom: var(--sp-8); font-size: 0.9375rem; }

.contact-detail { display: flex; gap: var(--sp-4); margin-bottom: var(--sp-6); }
.cd-icon {
  width: 44px; height: 44px;
  background: rgba(255,255,255,0.08);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}
.cd-text strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-steel-light);
  margin-bottom: 3px;
}
.cd-text span,
.cd-text a { font-size: 0.9375rem; color: var(--color-white); display: block; line-height: 1.5; }
.cd-text a:hover { color: var(--color-steel-light); }

.map-placeholder { margin-top: var(--sp-7); border-radius: var(--radius-md); overflow: hidden; }
.map-placeholder .img-ph { height: 210px; }

/* --------------------------------------------------------------------------
   23. CTA Banner
   -------------------------------------------------------------------------- */
.cta-banner {
  padding: var(--sp-16) 0;
  background: linear-gradient(140deg, var(--color-navy-dark), var(--color-navy-mid));
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    45deg, transparent, transparent 32px,
    rgba(255,255,255,0.015) 32px, rgba(255,255,255,0.015) 33px
  );
}
.cta-banner .container { position: relative; }
.cta-banner h2 { color: var(--color-white); margin-bottom: var(--sp-4); }
.cta-banner p  { color: var(--color-steel-light); font-size: 1.0625rem; max-width: 540px; margin: 0 auto var(--sp-8); }
.cta-actions { display: flex; align-items: center; justify-content: center; gap: var(--sp-4); flex-wrap: wrap; }

/* CTA band — used on products.html and similar dark-bg CTA sections */
.cta-band {
  text-align: center;
  padding: var(--sp-16) 0;
}
.cta-band h2 { color: var(--color-white); margin-bottom: var(--sp-4); }
.cta-band p  { color: var(--color-steel-light); font-size: 1.0625rem; max-width: 560px; margin: 0 auto var(--sp-8); }

/* --------------------------------------------------------------------------
   24. Scroll-to-Top Button
   -------------------------------------------------------------------------- */
.scroll-top-btn {
  position: fixed;
  bottom: var(--sp-6);
  right: var(--sp-6);
  z-index: 900;
  width: 52px;
  height: 52px;
  background-color: var(--color-navy);
  border: 2px solid rgba(196,203,210,0.35);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
  transition: opacity var(--trans-base), transform var(--trans-base),
              background-color var(--trans-base), box-shadow var(--trans-base);
}
.scroll-top-btn.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.scroll-top-btn:hover {
  background-color: var(--color-navy-mid);
  box-shadow: 0 8px 28px rgba(0,0,0,0.5);
  transform: translateY(-3px);
}
.scroll-top-btn svg {
  width: 22px;
  height: 22px;
  fill: var(--color-white);
}

/* --------------------------------------------------------------------------
   25. Scroll Reveal
   -------------------------------------------------------------------------- */
.reveal, .reveal-left, .reveal-right {
  opacity: 0;
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal       { transform: translateY(26px); }
.reveal-left  { transform: translateX(-26px); }
.reveal-right { transform: translateX(26px); }
.reveal.visible,
.reveal-left.visible,
.reveal-right.visible { opacity: 1; transform: none; }

.reveal-d1 { transition-delay: 0.08s; }
.reveal-d2 { transition-delay: 0.16s; }
.reveal-d3 { transition-delay: 0.24s; }
.reveal-d4 { transition-delay: 0.32s; }
.reveal-d5 { transition-delay: 0.40s; }

/* --------------------------------------------------------------------------
   25a. Page Loader — BESCO logo while the first page of a visit opens
   -------------------------------------------------------------------------- */
/* 1) logo eases in  2) a steel-like shine sweeps across it  3) the line fills  4) the white screen slides up */
.page-loader {
  position: fixed; inset: 0; z-index: 10000;
  display: flex; align-items: center; justify-content: center;
  background: var(--color-white);
  transition: transform 0.8s cubic-bezier(.77, 0, .18, 1), visibility 0s linear 0.8s;
  /* Safety net: slides away by itself after 3.5s, even if script.js never runs */
  animation: page-loader-out 0.8s cubic-bezier(.77, 0, .18, 1) 3.5s forwards;
}
.page-loader-inner {
  display: flex; flex-direction: column; align-items: center; gap: 1.6rem;
  transition: opacity 0.35s ease, transform 0.35s ease;
}
.page-loader-logo { position: relative; width: 150px; }
.page-loader-logo img {
  display: block; width: 100%; height: auto;
  animation: page-loader-in 0.7s cubic-bezier(.2, .7, .2, 1) both;
}
/* The shine is masked to the logo's own shape, so it only lights up the logo */
.page-loader-logo::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(110deg, transparent 35%, rgba(255, 255, 255, 0.9) 50%, transparent 65%) 110% 0 / 250% 100% no-repeat;
  -webkit-mask: url(Logo.png) center / contain no-repeat;
          mask: url(Logo.png) center / contain no-repeat;
  animation: page-loader-shine 1s ease-in-out 0.5s both;
}
.page-loader-bar { position: relative; width: 120px; height: 2px; border-radius: 2px; background: rgba(11, 31, 58, 0.1); overflow: hidden; }
.page-loader-bar::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, #A7B1BC, var(--color-navy));
  transform: scaleX(0); transform-origin: left;
  animation: page-loader-bar 1s cubic-bezier(.65, 0, .35, 1) 0.2s forwards;
}
.page-loader.is-done                     { transform: translateY(-100%); visibility: hidden; }
.page-loader.is-done .page-loader-inner  { opacity: 0; transform: translateY(-24px); }
.no-preloader .page-loader               { display: none; }

@keyframes page-loader-in    { from { opacity: 0; transform: translateY(12px) scale(0.92); } to { opacity: 1; transform: none; } }
@keyframes page-loader-shine { from { background-position: 110% 0; } to { background-position: -10% 0; } }
@keyframes page-loader-bar   { to { transform: scaleX(1); } }
@keyframes page-loader-out   { to { transform: translateY(-100%); visibility: hidden; } }

/* Visitors who turn off animations: no shine or slide, just a short fade */
@media (prefers-reduced-motion: reduce) {
  .page-loader { transition: opacity 0.3s ease, visibility 0s linear 0.3s; }
  .page-loader.is-done { transform: none; opacity: 0; }
  .page-loader-logo img, .page-loader-bar::after { animation: none; }
  .page-loader-logo::after { display: none; }
  .page-loader-bar::after { transform: none; }
}

/* --------------------------------------------------------------------------
   26. Responsive
   -------------------------------------------------------------------------- */

/* ≤ 1280px */
@media (max-width: 1280px) {
  :root { --container-pad: 1.5rem; }
  .capabilities-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ≤ 1024px */
@media (max-width: 1024px) {
  :root { --container-pad: 1.25rem; }

  .pillars-grid       { grid-template-columns: repeat(2, 1fr); }
  .projects-grid      { grid-template-columns: repeat(2, 1fr); }
  .capabilities-grid  { grid-template-columns: repeat(2, 1fr); }
  .all-projects-grid  { grid-template-columns: repeat(2, 1fr); }
  .news-grid          { grid-template-columns: repeat(2, 1fr); }
  .stats-inner        { grid-template-columns: 1fr; }
  .stats-numbers      { grid-template-columns: repeat(3, 1fr); }
  .footer-grid        { grid-template-columns: 1fr 1fr; gap: var(--sp-8); }
  .about-intro-grid   { grid-template-columns: 1fr; }
  .about-intro .img-ph { height: 340px; }
  .about-slider        { height: 340px; }
  .management-grid    { grid-template-columns: 1fr; }
  .service-block      { grid-template-columns: 1fr; }
  .service-block.reverse > :first-child { order: 1; }
  .service-block.reverse > :last-child  { order: 2; }
  .career-intro-grid  { grid-template-columns: 1fr; }
  .career-intro .img-ph { height: 320px; }
  .why-grid           { grid-template-columns: repeat(3, 1fr); }
  .contact-grid       { grid-template-columns: 1fr; }
  .mission-grid       { grid-template-columns: repeat(2, 1fr); }
  .stats-row-grid     { grid-template-columns: repeat(2, 1fr); }
  .hero-info-cards    { display: none; }
  .contact-info-card  { position: static; }
}

/* ≤ 768px */
@media (max-width: 768px) {
  :root { --container-pad: 1.125rem; --nav-height: 74px; }
  .nav-logo img { height: 70px; }
  .openings-notice { padding: var(--sp-10) var(--sp-6); }

  .section    { padding: var(--sp-12) 0; }
  .section-sm { padding: var(--sp-8)  0; }

  .pillars-grid      { grid-template-columns: 1fr; }
  .projects-grid     { grid-template-columns: 1fr; }
  .capabilities-grid { grid-template-columns: 1fr; }
  .about-facts       { grid-template-columns: 1fr; }
  .mission-grid      { grid-template-columns: 1fr; }
  .stats-row-grid    { grid-template-columns: repeat(2, 1fr); }
  .stats-numbers     { grid-template-columns: 1fr; gap: var(--sp-3); }
  .footer-grid       { grid-template-columns: 1fr; }
  .footer-about-text { max-width: 100%; }
  .all-projects-grid { grid-template-columns: 1fr; }
  .news-grid         { grid-template-columns: 1fr; }
  .why-grid          { grid-template-columns: repeat(2, 1fr); }
  .form-row          { grid-template-columns: 1fr; }
  .hero-actions      { flex-direction: column; align-items: flex-start; }
  .message-card      { padding: var(--sp-7) var(--sp-6); }
}

/* ≤ 480px */
@media (max-width: 480px) {
  :root { --container-pad: 1rem; }

  .stats-row-grid  { grid-template-columns: 1fr; }
  .why-grid        { grid-template-columns: 1fr; }
  .projects-filter { gap: var(--sp-2); }
  .filter-btn      { font-size: 0.72rem; padding: 0.4rem 1rem; }
}
