/* =========================================================
   [COMPANY NAME] — Engineering & Construction
   Stylesheet
   Design system: blueprint / technical-drawing derived
   ========================================================= */

/* ---------- Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=Big+Shoulders+Display:wght@600;700;800&family=Inter:wght@400;500;600;700&family=IBM+Plex+Mono:wght@400;500;600&display=swap');

/* ---------- Tokens ---------- */
:root{
  --navy: #062B63;
  --navy-dark: #031B3D;
  --blue-light: #b8e7fb;
  --blue-accent: #4D9BCF;
  --white: #FFFFFF;
  --bg-light: #F5F9FC;
  --text-dark: #172033;
  --text-muted: #55627A;
  --line: #D7E3EE;

  --font-display: 'Big Shoulders Display', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'IBM Plex Mono', 'Courier New', monospace;

  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
  --space-5: 48px;
  --space-6: 64px;
  --space-7: 96px;
  --space-8: 128px;

  --container: 1240px;
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 28px;
  --radius-pill: 999px;
  --shadow-sm: 0 2px 8px rgba(3, 27, 61, 0.07), 0 1px 3px rgba(3, 27, 61, 0.06);
  --shadow-md: 0 12px 32px rgba(3, 27, 61, 0.14);
  --shadow-lg: 0 24px 60px rgba(3, 27, 61, 0.22);
  --transition: 220ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  *, *::before, *::after{ animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}
body{
  margin: 0;
  font-family: var(--font-body);
  color: var(--text-dark);
  background: var(--white);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img{ max-width: 100%; display: block; }
a{ color: inherit; text-decoration: none; }
ul{ margin: 0; padding: 0; list-style: none; }
h1,h2,h3,h4{ font-family: var(--font-display); font-weight: 700; line-height: 1.1; margin: 0 0 var(--space-2); color: var(--navy-dark); text-transform: uppercase; letter-spacing: 0.01em; }
p{ margin: 0 0 var(--space-2); color: var(--text-muted); }
button{ font-family: inherit; cursor: pointer; }
input, textarea, select{ font-family: inherit; font-size: 1rem; }

/* Visible focus states */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, [tabindex]:focus-visible{
  outline: 3px solid var(--blue-accent);
  outline-offset: 2px;
}

/* Skip link */
.skip-link{
  position: absolute; left: -999px; top: 0; z-index: 1000;
  background: var(--navy); color: var(--white); padding: 12px 20px;
  font-family: var(--font-mono); font-size: 14px;
}
.skip-link:focus{ left: 12px; top: 12px; }

.container{ max-width: var(--container); margin: 0 auto; padding: 0 clamp(20px, 6vw, 24px); }

.section{ padding: var(--space-4) 0; }
.section--tight{ padding: var(--space-6) 0; }
.section--navy{ background: var(--navy-dark); color: var(--blue-light); }
.section--light{ background: var(--bg-light); }

.containerQE{
  padding: var(--space-5);
}

.eyebrow{
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue-accent);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: var(--space-2);
}
.eyebrow::before{
  content: "";
  width: 28px; height: 2px;
  background: var(--blue-accent);
  display: inline-block;
}
.section--navy .eyebrow, .section--navy h2, .section--navy h3{ color: var(--blue-light); }

h1{ font-size: clamp(2.4rem, 5vw, 4.2rem); }
h2{ font-size: clamp(1.9rem, 3.4vw, 2.75rem); }
h3{ font-size: clamp(1.2rem, 2vw, 1.5rem); text-transform: none; }
.section-head{ max-width: 700px; margin-bottom: var(--space-5); }
.section-head p{ font-size: 1.05rem; }

/* ---------- Buttons ---------- */
.btn{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 28px;
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  transition: all var(--transition);
  white-space: nowrap;
}
.btn:hover{ transform: translateY(-2px); }
.btn-primary{ box-shadow: 0 8px 24px rgba(77, 155, 207, 0.35); }
.btn-primary:hover{ box-shadow: 0 12px 30px rgba(77, 155, 207, 0.45); }
.btn svg{ width: 16px; height: 16px; flex-shrink: 0; transition: transform var(--transition); }
.btn:hover svg{ transform: translateX(3px); }
.btn-primary{ background: var(--blue-accent); color: var(--navy-dark); border-color: var(--blue-accent); font-weight: 600; }
.btn-primary:hover{ background: var(--blue-light); border-color: var(--blue-light); }
.btn-outline{ background: transparent; color: var(--white); border-color: rgba(255,255,255,0.4); }
.btn-outline:hover{ border-color: var(--white); background: rgba(255,255,255,0.08); }
.btn-outline-navy{ background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-outline-navy:hover{ background: var(--navy); color: var(--white); }
.btn-block{ width: 100%; justify-content: center; }

/* ---------- Header / Nav ---------- */
.site-header{
  position: fixed; top: 0; left: 0; right: 0; z-index: 500;
  background: linear-gradient(180deg, rgba(3,27,61,0.78) 0%, rgba(3,27,61,0.55) 60%, rgba(3,27,61,0.22) 100%);
  backdrop-filter: none;
  border-bottom: 1px solid transparent;
  transition: background 360ms ease, backdrop-filter 360ms ease, box-shadow 360ms ease, border-color 360ms ease;
}
.site-header.is-scrolled{
  background: rgba(3, 27, 61, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom-color: rgba(255,255,255,0.08);
  box-shadow: 0 8px 28px rgba(3, 27, 61, 0.2);
}
.site-header .container{
  display: flex; align-items: center; justify-content: space-between;
  height: 84px;
  max-width: 1400px;
}
.logo{
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--white);
  letter-spacing: 0.01em;
  display: flex;
  align-items: center;
  gap: 10px;
  text-shadow: 0 1px 4px rgba(0,0,0,0.35);
}
.logo .mark{
  width: 60px; height: 55px;
  border: 1px var(--blue-accent);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-size: 13px; color: var(--blue-accent);
  position: relative;
  flex-shrink: 0;
}
.logo .mark::before, .logo .mark::after{ content:""; position:absolute; width:6px; height:6px; border: 1px solid var(--blue-accent); }
.logo .mark::before{ top:-4px; left:-4px; border-right:0; border-bottom:0; }
.logo .mark::after{ bottom:-4px; right:-4px; border-left:0; border-top:0; }
.logo small{ display:block; font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.12em; color: var(--blue-light); opacity: 0.7; text-transform: uppercase; font-weight: 500; }

.main-nav{ display: flex; align-items: center; gap: var(--space-4); }
.nav-links{ display: flex; gap: var(--space-3); }
.nav-links a{
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--blue-light);
  padding: 8px 2px;
  position: relative;
  transition: color var(--transition);
  text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}
.nav-links a::after{
  content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 0;
  background: var(--blue-accent); transition: width var(--transition);
}
.nav-links a:hover, .nav-links a[aria-current="page"]{ color: var(--white); }
.nav-links a:hover::after, .nav-links a[aria-current="page"]::after{ width: 100%; }

.nav-cta{ display: flex; align-items: center; gap: var(--space-3); }

.nav-toggle{
  display: none;
  width: 44px; height: 44px;
  background: transparent; border: 1px solid rgba(255,255,255,0.3);
  border-radius: var(--radius-sm);
  align-items: center; justify-content: center;
  position: relative;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after{
  content: ""; display: block; width: 20px; height: 2px; background: var(--white);
  position: relative; transition: all var(--transition);
}
.nav-toggle span::before{ position: absolute; top: -7px; }
.nav-toggle span::after{ position: absolute; top: 7px; }
.nav-toggle[aria-expanded="true"] span{ background: transparent; }
.nav-toggle[aria-expanded="true"] span::before{ transform: rotate(45deg); top: 0; }
.nav-toggle[aria-expanded="true"] span::after{ transform: rotate(-45deg); top: 0; }

/* ---------- Hero ---------- */
.hero{
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: flex-end;
  color: var(--white);
  overflow: hidden;
}
.hero-media{ position: absolute; inset: 0; z-index: 0; }
.hero-media.ph-img{ position: absolute; border-radius: 0; }
.hero-media img{ width: 100%; height: 100%; object-fit: cover; }
.hero-media::after{
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(3,27,61,0.55) 0%, rgba(3,27,61,0.55) 40%, rgba(3,27,61,0.94) 100%),
    linear-gradient(0deg, rgba(15,66,138,0.28), rgba(15,66,138,0.28));
}
.hero-content{ position: relative; z-index: 1; padding-bottom: var(--space-7); width: 100%; }
.hero-content .eyebrow{ color: var(--blue-light); }
.hero-content .eyebrow::before{ background: var(--blue-light); }
.hero h1{ color: var(--white); max-width: 900px; }
.hero-sub{ max-width: 620px; font-size: 1.15rem; color: var(--blue-light); margin-bottom: var(--space-4); }
.hero-actions{ display: flex; gap: var(--space-3); flex-wrap: wrap; }

/* ---------- Page hero (inner pages) ---------- */
/* Full-bleed image banner flush with the very top of the page — the
   transparent header floats directly over it, then rounded bottom
   corners hand off cleanly into the white content below. */
.page-hero-wrap{ padding-top: 0; }
.page-hero-wrap > .page-hero-media{
  position: relative;
  left: 50%;
  margin-left: -50vw;
  width: 100vw;
  height: 460px;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}
.page-hero-media{
  position: relative;
  width: 100%;
  height: 340px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--navy);
}
.page-hero-media img{
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform 900ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.page-hero-media:hover img{ transform: scale(1.05); }
.page-hero-media::after{
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(6,43,99,0.55) 0%, rgba(3,27,61,0.2) 35%, rgba(3,27,61,0.65) 100%),
    linear-gradient(0deg, rgba(6,43,99,0.35), rgba(6,43,99,0.35));
}
.page-hero-text{
  position: relative; z-index: 2;
  padding: var(--space-5) 0 var(--space-4);
}
.page-hero-text .breadcrumbs{ margin-bottom: var(--space-2); color: var(--text-muted); }
.page-hero-text .breadcrumbs a{ color: var(--text-muted); }
.page-hero-text .breadcrumbs a:hover{ color: var(--navy); }
.page-hero-text h1{ color: var(--navy-dark); margin: 0; }

/* Flex variant: heading/intro beside the image instead of image behind text.
   No decorative full-bleed photo sits above this section, so the important
   heading text needs full clearance below the fixed header. */
.page-hero-flex{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-6);
  align-items: center;
  padding: calc(84px + var(--space-6)) 0 var(--space-5);
}
.page-hero-flex .page-hero-media{ height: 380px; margin: 0; }
.page-hero-flex .breadcrumbs{ color: var(--text-muted); }
.page-hero-flex .breadcrumbs a{ color: var(--text-muted); }
.page-hero-flex .breadcrumbs a:hover{ color: var(--navy); }
.page-hero-flex h1{ color: var(--navy-dark); padding: var( --space-2); }

.breadcrumbs{ font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--blue-light); opacity: 0.8; margin-bottom: var(--space-2); }
.breadcrumbs a{ color: var(--blue-light); padding: var( --space-2); }
.breadcrumbs a:hover{ color: var(--white); text-decoration: underline; }

/* ---------- Homepage hero carousel ---------- */
.hero-carousel{
  position: relative;
  min-height: 88vh;
  overflow: hidden;
  color: var(--white);
}
.hero-slides{ position: absolute; inset: 0; }
.hero-slide{
  position: absolute; inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1100ms ease, visibility 0s linear 1100ms;
}
.hero-slide.is-active{
  opacity: 1;
  visibility: visible;
  z-index: 1;
  transition: opacity 1100ms ease;
}
.hero-slide-media{ position: absolute; inset: 0; overflow: hidden; }
.hero-slide-media img{
  width: 100%; height: 100%; object-fit: cover;
  transform: scale(1);
  animation: heroZoom 9s ease-in-out infinite alternate;
}
.hero-slide.is-active .hero-slide-media img{ animation-play-state: running; }
.hero-slide-media::after{
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(3,27,61,0.5) 0%, rgba(3,27,61,0.35) 45%, rgba(3,27,61,0.92) 100%),
    linear-gradient(0deg, rgba(15,66,138,0.26), rgba(15,66,138,0.26));
}
@keyframes heroZoom{
  from{ transform: scale(1); }
  to{ transform: scale(1.13); }
}

.hero-carousel-content{
  position: relative; z-index: 2;
  display: flex; flex-direction: column; justify-content: flex-end;
  min-height: 88vh;
  padding-bottom: var(--space-6);
}
.hero-fixed-content{
  position: absolute; left: 0; right: 0; bottom: var(--space-6); z-index: 3;
}
.hero-fixed-content .eyebrow{ color: var(--blue-light); }
.hero-fixed-content .eyebrow::before{ background: var(--blue-light); }

.hero-captions{ position: relative; min-height: 190px; }
.hero-caption{
  position: absolute; inset: 0;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 500ms ease, transform 500ms ease;
  pointer-events: none;
}
.hero-caption.is-active{ opacity: 1; transform: translateY(0); pointer-events: auto; }
.hero-slide-num{ font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.14em; color: var(--blue-accent); margin-bottom: var(--space-2); display: block; }
.hero-caption .hero-caption-title{ color: var(--white); font-size: clamp(2.1rem, 4.6vw, 3.6rem); max-width: 1000px; margin-bottom: 12px; font-family: var(--font-display); text-transform: uppercase; line-height: 1.1; font-weight: 700; }
.hero-caption p{ color: var(--blue-light); max-width: 560px; font-size: 1.08rem; margin: 0; }

.hero-actions{ display: flex; gap: var(--space-3); flex-wrap: wrap; margin-top: var(--space-4); }

.hero-carousel-controls{
  position: absolute; right: var(--space-3); bottom: calc(var(--space-5) + 40px); z-index: 4;
  display: flex; align-items: center; gap: var(--space-3);
}
.hero-dots{ display: flex; gap: 10px; }
.hero-dots .dot{
  width: 10px; height: 10px; border-radius: 50%;
  background: rgba(255,255,255,0.35);
  border: none; padding: 0; cursor: pointer;
  transition: all var(--transition);
}
.hero-dots .dot.is-active{ background: var(--blue-accent); width: 28px; border-radius: var(--radius-pill); }
.hero-arrows{ display: flex; gap: 8px; }
.hero-arrow{
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.3); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; cursor: pointer;
  transition: all var(--transition);
}
.hero-arrow:hover{ background: rgba(255,255,255,0.2); }
.hero-arrow svg{ width: 18px; height: 18px; }

/* ---------- Stats band ---------- */
.stats-band{ position: relative; z-index: 5; margin-top: -56px; padding-bottom: var(--space-6); }
.stats-card{
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  overflow: hidden;
}
.stats-cell{
  padding: var(--space-5) var(--space-4);
  text-align: center;
  border-left: 1px solid var(--line);
}
.stats-cell:first-child{ border-left: none; }
.stats-cell .stat-value{
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4vw, 3rem);
  color: var(--navy-dark);
  line-height: 1;
  margin-bottom: 8px;
  display: block;
}
.stats-cell .stat-value .accent{ color: var(--blue-accent); }
.stats-cell .stat-label{
  font-family: var(--font-mono); font-size: 12.5px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--text-muted);
}

/* ---------- Placeholder image containers ---------- */
.ph-img{ position: relative; overflow: hidden; background: var(--navy); border-radius: var(--radius); }
.ph-img img{ width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 600ms cubic-bezier(0.25, 0.46, 0.45, 0.94); }
.card:hover .ph-img img,
.qhse-card:hover .ph-img img,
a:hover .ph-img img,
.ph-img.zoom-on-hover:hover img{ transform: scale(1.08); }
.ratio-16-9{ aspect-ratio: 16/9; }
.ratio-4-3{ aspect-ratio: 4/3; }
.ratio-3-4{ aspect-ratio: 3/4; }
.ratio-1-1{ aspect-ratio: 1/1; }

/* ---------- Cards ---------- */
.card-grid{ display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-4); }
.card{
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow var(--transition), border-color var(--transition), transform var(--transition);
}
.card:hover{ box-shadow: var(--shadow-md); border-color: var(--blue-accent); transform: translateY(-5px); }
.card .ph-img{ border-radius: 0; }
.card-body{ padding: var(--space-3); }
.card-index{ font-family: var(--font-mono); font-size: 12px; color: var(--blue-accent); letter-spacing: 0.08em; margin-bottom: var(--space-1); }
.card h3{ margin-bottom: 10px; }
.card p{ font-size: 0.95rem; margin-bottom: var(--space-2); }
.card-link{ font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--navy); display: inline-flex; align-items: center; gap: 8px; border-bottom: 1px solid var(--navy); padding-bottom: 2px; }
.card-link svg{ width: 14px; height: 14px; transition: transform var(--transition); }
.card-link:hover svg{ transform: translateX(3px); }

/* Capability tiles */
.capability-grid{ display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.capability-grid--3col{ grid-template-columns: repeat(3, 1fr); }
.capability{ background: var(--white); padding: var(--space-4) var(--space-3); position: relative; }
.capability .num{ font-family: var(--font-mono); font-size: 12px; color: var(--blue-accent); display: block; margin-bottom: var(--space-2); }
.capability .icon{ width: 40px; height: 40px; color: var(--navy); margin-bottom: var(--space-2); }
.capability h3{ font-size: 1.05rem; margin-bottom: 6px; }
.capability p{ font-size: 0.9rem; margin: 0; }

/* Stat strip */
.stat-strip{ display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid rgba(255,255,255,0.15); border-bottom: 1px solid rgba(255,255,255,0.15); }
.stat{ padding: var(--space-4) var(--space-3); border-left: 1px solid rgba(255,255,255,0.15); }
.stat:first-child{ border-left: none; }
.stat .value{ font-family: var(--font-display); font-size: 2.4rem; color: var(--white); display: block; line-height: 1; margin-bottom: 6px; }
.stat .label{ font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--blue-light); opacity: 0.85; }

/* Blueprint corner-frame utility (signature element) */
.blueprint-frame{ position: relative; }
.blueprint-frame::before, .blueprint-frame::after{
  content: ""; position: absolute; width: 22px; height: 22px; pointer-events: none; z-index: 2;
  border: 2px solid var(--blue-accent);
}
.blueprint-frame::before{ top: 10px; left: 10px; border-right: 0; border-bottom: 0; border-top-left-radius: 6px; }
.blueprint-frame::after{ bottom: 10px; right: 10px; border-left: 0; border-top: 0; border-bottom-right-radius: 6px; }

/* Two-column layout */
.split{ display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-6); align-items: center; }
.split--reverse{ direction: rtl; }
.split--reverse > *{ direction: ltr; }

/* Timeline */
.timeline{ position: relative; padding-left: var(--space-5); border-left: 2px solid var(--line); }
.timeline-item{ position: relative; padding-bottom: var(--space-5); }
.timeline-item:last-child{ padding-bottom: 0; }
.timeline-item::before{ content: ""; position: absolute; left: calc(-1 * var(--space-5) - 6px); top: 4px; width: 12px; height: 12px; background: var(--blue-accent); border: 2px solid var(--white); box-shadow: 0 0 0 2px var(--blue-accent); border-radius: 50%; }
.timeline-item .year{ font-family: var(--font-mono); font-size: 13px; color: var(--blue-accent); letter-spacing: 0.06em; margin-bottom: 4px; display: block; }

/* ---------- Filters ---------- */
.filter-bar1{ display: flex; flex-wrap: wrap; gap: 10px;  }
.filter-bar{ display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: var(--space-5); }
.filter-btn{
  font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.05em; text-transform: uppercase;
  padding: 10px 20px; border: 1px solid var(--line); background: var(--white); color: var(--text-muted);
  border-radius: var(--radius-pill);
  transition: all var(--transition);
}
.filter-btn:hover{ border-color: var(--blue-accent); color: var(--navy); }
.filter-btn.is-active{ background: var(--navy); border-color: var(--navy); color: var(--white); }

.tag{ display: inline-block; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; padding: 5px 12px; background: var(--blue-light); color: var(--navy); border-radius: var(--radius-pill); }
.tag--status-completed{ background: #E3F3E7; color: #1E6B3A; }
.tag--status-ongoing{ background: #FDF1DC; color: #915D0B; }
.project-meta{ display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.project-location{ font-family: var(--font-mono); font-size: 12px; color: var(--text-muted); display: flex; align-items: center; gap: 6px; }
.project-card[data-category], .equip-row[data-category]{ transition: opacity var(--transition), transform var(--transition); }
.is-hidden{ display: none !important; }

/* ---------- Equipment table ---------- */
.equip-controls{ display: flex; gap: var(--space-3); flex-wrap: wrap; align-items: center; justify-content: space-between; margin-bottom: var(--space-4); padding-top: var(--space-2);}
.search-field{ position: relative; flex: 1; min-width: 240px; max-width: 380px; }
.search-field input{ width: 100%; padding: 12px 14px 12px 40px; border: 1px solid var(--line); background: var(--white); font-size: 14px; border-radius: var(--radius-pill); }
.search-field svg{ position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--text-muted); }

.equip-table{ width: 100%; border-collapse: separate; border-spacing: 0; }
.equip-table caption{ text-align: left; font-family: var(--font-mono); font-size: 12px; color: var(--text-muted); margin-bottom: var(--space-2); }
.equip-table th{ text-align: left; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--navy); padding: 14px 16px; background: var(--blue-light); border-bottom: 2px solid var(--navy); }
.equip-table th:first-child{ border-top-left-radius: var(--radius); }
.equip-table th:last-child{ border-top-right-radius: var(--radius); }
.equip-table td{ padding: 16px; border-bottom: 1px solid var(--line); font-size: 0.95rem; }
.equip-table tbody tr:hover{ background: var(--bg-light); }
.equip-empty{ text-align: center; padding: var(--space-6); color: var(--text-muted); font-family: var(--font-mono); font-size: 14px; }

/* Equipment card grid (mobile alt view handled by responsive table) */
.equip-cat{ font-family: var(--font-mono); font-size: 11px; color: var(--blue-accent); }

/* ---------- QHSE ---------- */
.qhse-grid{ display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-4); }
.qhse-card{ background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.qhse-card .ph-img{ margin-bottom: 0; border-radius: 0; }
.qhse-card .card-body{ padding: var(--space-4); }
.principle-list li{ display: flex; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.principle-list li:last-child{ border-bottom: none; }
.principle-list svg{ width: 20px; height: 20px; color: var(--blue-accent); flex-shrink: 0; margin-top: 2px; }

/* ---------- Accordion (FAQ style, used for QHSE / policies) ---------- */
.accordion-item{ border-bottom: 1px solid var(--line); }
.accordion-trigger{
  width: 100%; text-align: left; background: none; border: none; padding: 20px 4px;
  display: flex; justify-content: space-between; align-items: center; gap: var(--space-3);
  font-family: var(--font-display); font-size: 1.1rem; text-transform: uppercase; color: var(--navy-dark);
}
.accordion-trigger .plus{ width: 18px; height: 18px; position: relative; flex-shrink: 0; }
.accordion-trigger .plus::before, .accordion-trigger .plus::after{ content: ""; position: absolute; background: var(--navy); transition: transform var(--transition); }
.accordion-trigger .plus::before{ top: 50%; left: 0; width: 100%; height: 2px; transform: translateY(-50%); }
.accordion-trigger .plus::after{ left: 50%; top: 0; height: 100%; width: 2px; transform: translateX(-50%); }
.accordion-trigger[aria-expanded="true"] .plus::after{ transform: translateX(-50%) rotate(90deg); opacity: 0; }
.accordion-panel{ overflow: hidden; max-height: 0; transition: max-height var(--transition); }
.accordion-panel-inner{ padding: 0 4px var(--space-3); }
.accordion-panel-inner p{ margin: 0; }

/* ---------- Forms ---------- */
.form-grid{ display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-3); }
.form-group{ display: flex; flex-direction: column; gap: 6px; }
.form-group.full{ grid-column: 1 / -1; }
.form-group label{ font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--navy-dark); }
.form-group label .req{ color: var(--blue-accent); }
.form-group input, .form-group textarea, .form-group select{
  padding: 13px 16px; border: 1px solid var(--line); background: var(--white); color: var(--text-dark);
  border-radius: var(--radius-sm);
  transition: border-color var(--transition);
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus{ border-color: var(--blue-accent); }
.form-group textarea{ resize: vertical; min-height: 140px; }
.field-error{ font-size: 12.5px; color: #B3261E; min-height: 16px; }
.form-group.has-error input, .form-group.has-error textarea{ border-color: #B3261E; }
.form-note{ font-size: 0.85rem; color: var(--text-muted); margin-top: var(--space-2); }
.form-status{ padding: 14px 18px; font-family: var(--font-mono); font-size: 13.5px; margin-bottom: var(--space-3); border-radius: var(--radius-sm); display: none; }
.form-status.is-success{ display: block; background: #E3F3E7; color: #1E6B3A; }
.form-status.is-error{ display: block; background: #FBE9E7; color: #B3261E; }

/* ---------- Contact info blocks ---------- */
.contact-info-list{ display: flex; flex-direction: column; gap: var(--space-4); }
.contact-info-item{ display: flex; gap: var(--space-3); }
.contact-info-item .icon{ width: 44px; height: 44px; border-radius: 50%; background: var(--blue-light); display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: var(--navy); }
.contact-info-item .icon svg{ width: 20px; height: 20px; }
.contact-info-item h3{ margin-bottom: 4px; font-size: 1rem; }
.contact-info-item p{ margin: 0; }
.social-row{ display: flex; gap: 10px; margin-top: var(--space-2); }
.social-row a{ width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; transition: all var(--transition); }
.social-row a:hover{ background: var(--navy); border-color: var(--navy); color: var(--white); }
.social-row svg{ width: 16px; height: 16px; }

/* ---------- CTA band ---------- */
.cta-band{ position: relative; color: var(--white); text-align: center; overflow: hidden; }
.cta-band .hero-media::after{ background: linear-gradient(180deg, rgba(3,27,61,0.85), rgba(6,43,99,0.9)); }
.cta-band-inner{ position: relative; z-index: 1; padding-top: var(--space-7); padding-bottom: var(--space-7); max-width: 700px; margin: 0 auto; }
/* When a dark CTA band immediately follows another dark section, add a
   visible seam so the two read as distinct, intentional sections rather
   than one indistinct navy block. */
.section--navy + .cta-band{ border-top: 1px solid rgba(255,255,255,0.12); }
.cta-band h2{ color: var(--white); }
.cta-band .btn-row{ display: flex; justify-content: center; gap: var(--space-3); flex-wrap: wrap; margin-top: var(--space-4); }

/* ---------- Footer ---------- */
.site-footer{ background: var(--navy-dark); color: var(--blue-light); }
.footer-top{ padding-top: var(--space-7); padding-bottom: var(--space-6); display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: var(--space-5); }
.footer-brand p{ color: rgba(220,239,247,0.7); font-size: 0.92rem; max-width: 320px; }
.footer-col h4{ font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--white); margin-bottom: var(--space-3); }
.footer-col ul{ display: flex; flex-direction: column; gap: 10px; }
.footer-col a{ color: rgba(220,239,247,0.75); font-size: 0.92rem; transition: color var(--transition); }
.footer-col a:hover{ color: var(--white); }
.footer-bottom{ border-top: 1px solid rgba(255,255,255,0.12); padding-top: var(--space-3); padding-bottom: var(--space-3); display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; }
.footer-bottom p{ margin: 0; font-size: 0.82rem; color: rgba(220,239,247,0.55); }
.footer-legal{ display: flex; gap: var(--space-3); }
.footer-legal a{ font-size: 0.82rem; color: rgba(220,239,247,0.55); }
.footer-legal a:hover{ color: var(--white); }


/* ---------- Back to top ---------- */
.back-to-top{
  position: fixed; right: var(--space-3); bottom: var(--space-3); z-index: 400;
  width: 48px; height: 48px; background: var(--navy); color: var(--white); border: none;
  border-radius: 50%;
  box-shadow: var(--shadow-md);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: all var(--transition);
}
.back-to-top.is-visible{ opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top svg{ width: 18px; height: 18px; }

/* ---------- Scroll reveal ---------- */
.reveal{ opacity: 0; transform: translateY(24px); transition: opacity 600ms ease, transform 600ms ease; }
.reveal.is-visible{ opacity: 1; transform: translateY(0); }

/* ---------- Trusted-by marquee ---------- */
.marquee-section{ background: var(--bg-light); padding: var(--space-5) 0; overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.marquee-heading{ text-align: center; font-family: var(--font-mono); font-size: 12.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-muted); margin-bottom: var(--space-4); }
.marquee{ position: relative; width: 100%; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track{ display: flex; width: max-content; gap: var(--space-4); animation: marqueeScroll 42s linear infinite; }
.marquee:hover .marquee-track{ animation-play-state: paused; }
.marquee-item{
  display: flex; align-items: center; gap: 10px;
  white-space: nowrap;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  padding: 12px 22px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.02em;
  color: var(--navy-dark);
}
.marquee-item .dot-sep{ width: 5px; height: 5px; border-radius: 50%; background: var(--blue-accent); flex-shrink: 0; }
@keyframes marqueeScroll{
  from{ transform: translateX(0); }
  to{ transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce){
  .marquee-track{ animation: none; }
}
.text-center{ text-align: center; }
.mt-0{ margin-top: 0; }
.flex-between{ display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); flex-wrap: wrap; }
.visually-hidden{
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* Small set of reusable utilities to replace one-off inline styles that
   appeared across pages (section intros, centered text blocks, spacing). */
.mt-3{ margin-top: var(--space-3); }
.mt-4{ margin-top: var(--space-4); }
.mt-5{ margin-top: var(--space-5); }
.mb-4{ margin-bottom: var(--space-4); }
.text-lead{ max-width: 1200px; font-size: 1.05rem; }
.text-narrow{ max-width: 760px; }
.text-narrow-center{ max-width: 700px; margin: 0 auto; }
.heading-narrow-center{ max-width: 760px; margin: 0 auto; }
.text-narrow-center--sm{ max-width: 620px; margin: 0 auto; }
.text-on-navy{ color: var(--blue-light); }
.justify-center{ justify-content: center; }
.icon-sm{ width: 14px; height: 14px; }
.table-scroll{ overflow-x: auto; }
.align-start{ align-items: flex-start; }
.cta-link-on-navy{ color: var(--white); border-color: var(--white); }
.small-note{ text-align: center; font-size: 0.82rem; color: var(--text-muted); margin: var(--space-3) 0 0; }

/* ---------- Legal content (Privacy Policy / Terms of Use) ---------- */
.simple-page-hero{ padding: calc(84px + var(--space-6)) 0 var(--space-4); max-width: 780px; }
.simple-page-hero .breadcrumbs{ color: var(--text-muted); }
.simple-page-hero .breadcrumbs a{ color: var(--text-muted); }
.simple-page-hero .breadcrumbs a:hover{ color: var(--navy); }
.legal-meta{ font-family: var(--font-mono); font-size: 12.5px; color: var(--text-muted); letter-spacing: 0.04em; margin-bottom: var(--space-2); text-transform: uppercase; }
.legal-toc{ display: flex; flex-wrap: wrap; gap: 10px; margin: var(--space-4) 0 0; }
.legal-toc a{
  font-family: var(--font-mono); font-size: 12.5px; letter-spacing: 0.03em;
  padding: 9px 16px; border: 1px solid var(--line); border-radius: var(--radius-pill);
  color: var(--text-muted); transition: all var(--transition);
}
.legal-toc a:hover{ border-color: var(--blue-accent); color: var(--navy); }
.legal-content{ max-width: 780px; }
.legal-content h2{
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  text-transform: none;
  letter-spacing: 0;
  color: var(--navy-dark);
  margin-top: var(--space-6);
  margin-bottom: var(--space-2);
  padding-top: var(--space-4);
  border-top: 1px solid var(--line);
  scroll-margin-top: 100px;
}
.legal-content h2:first-of-type{ border-top: none; padding-top: 0; margin-top: 0; }
.legal-content p{ margin-bottom: var(--space-3); }
.legal-content ul, .legal-content ol{ margin: 0 0 var(--space-3); padding-left: 1.4rem; }
.legal-content ul{ list-style: disc; }
.legal-content ol{ list-style: decimal; }
.legal-content li{ margin-bottom: 8px; color: var(--text-muted); }
.legal-content li::marker{ color: var(--blue-accent); }
.legal-content strong{ color: var(--navy-dark); }
.legal-content a{ color: var(--navy); text-decoration: underline; text-decoration-color: var(--blue-accent); text-underline-offset: 2px; }
.legal-content a:hover{ color: var(--blue-accent); }


/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1024px){
  .card-grid{ grid-template-columns: repeat(2, 1fr); }
  .capability-grid{ grid-template-columns: repeat(2, 1fr); }
  .stat-strip{ grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3){ border-left: none; }
  .footer-top{ grid-template-columns: 1fr 1fr; }
  .qhse-grid{ grid-template-columns: 1fr; }
}

@media (max-width: 900px){
  .split, .split--reverse{ grid-template-columns: 1fr; direction: ltr; }
  .split--reverse .split-media{ order: -1; }
}

.mobile-panel{ display: none; }

@media (max-width: 1180px){
  .nav-links, .nav-cta .btn{ display: none; }
  .nav-toggle{ display: flex; }
  .site-header .container{ height: 72px; }

  .mobile-panel{
    display: block;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--navy-dark);
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: var(--space-2) var(--space-3) var(--space-4);
    max-height: calc(100vh - 90px);
    overflow-y: auto;
    z-index: 499;
    transform: translateY(-12px) scaleY(0.96);
    transform-origin: top center;
    opacity: 0;
    visibility: hidden;
    transition: transform 280ms cubic-bezier(0.4, 0, 0.2, 1), opacity 220ms ease, visibility 0s linear 280ms;
  }
  .mobile-panel.is-open{
    transform: translateY(0) scaleY(1);
    opacity: 1;
    visibility: visible;
    transition: transform 280ms cubic-bezier(0.4, 0, 0.2, 1), opacity 220ms ease;
  }
  .mobile-panel .nav-links{ display: flex; flex-direction: column; gap: 8px; padding-top: var(--space-2); }
  .mobile-panel .nav-links a{
    padding: 8px 10px;
    border-radius: var(--radius-sm);
    font-size: 14.5px;
    transition: background var(--transition), color var(--transition);
  }
  .mobile-panel .nav-links a::after{ display: none; }
  .mobile-panel .nav-links a:hover{ background: rgba(255,255,255,0.06); color: var(--white);  }
  .mobile-panel .nav-links a[aria-current="page"]{ background: rgba(77,155,207,0.16); color: var(--white); }
  .mobile-panel .btn{ margin-top: var(--space-3); }
}

@media (max-width: 768px){
  .card-grid, .capability-grid, .qhse-grid{ grid-template-columns: 1fr; }
  .stat-strip{ grid-template-columns: 1fr 1fr; }
  .stat:nth-child(2n+1){ border-left: none; }
  .footer-top{ grid-template-columns: 1fr; padding-top: var(--space-6); padding-bottom: var(--space-4); gap: var(--space-4); }
  .form-grid{ grid-template-columns: 1fr; }

  .caption1{ display: flex;}
  .equip-table thead{ display: none; }
  .equip-table, .equip-table tbody, .equip-table tr, .equip-table td{ display: block; width: 100%; }
  .equip-table tr{ border: 1px solid var(--line); margin-bottom: var(--space-2); padding: var(--space-2); border-radius: var(--radius-sm); overflow: hidden; }
  .equip-table td{ border: none; padding: 8px 0; display: flex; justify-content: space-between; gap: var(--space-3); text-align: right; }
  .equip-table td::before{ content: attr(data-label); font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; color: var(--text-muted); text-align: left; }

  .hero{ min-height: 100vh; }

  .hero-carousel, .hero-carousel-content{ min-height: 100vh; }
  .hero-fixed-content{ bottom: var(--space-5); }
  .hero-captions{ min-height: 230px; }
  .hero-caption h1{ font-size: 1.9rem; }
  .hero-carousel-controls{ right: var(--space-2); bottom: var(--space-3); flex-direction: column-reverse; align-items: flex-end; gap: var(--space-2); }
  .hero-arrows{ display: none; }
  .stats-band{ margin-top: -36px; padding-bottom: var(--space-5); }

  .page-hero-wrap{ padding-top: 0; }
  .page-hero-wrap > .page-hero-media{ height: 260px; border-radius: 0 0 var(--radius) var(--radius); }
  .page-hero-media{ height: 220px; border-radius: var(--radius); }
  .page-hero-wrap .page-hero-text{ padding-top: var(--space-4); }
  .page-hero-flex{ grid-template-columns: 1fr; gap: var(--space-4); padding: calc(72px + var(--space-4)) 0 var(--space-3); }
  .page-hero-flex .page-hero-media{ height: 220px; }
  .marquee-item{ padding: 10px 16px; font-size: 12px; }
  .stats-card{ grid-template-columns: 1fr; }
  .stats-cell{ border-left: none; border-top: 1px solid var(--line); }
  .stats-cell:first-child{ border-top: none; }
}

@media (max-width: 480px){
  .section{ padding: var(--space-6) 0; }
  h1{ font-size: 2.4rem; }
  .hero-actions .btn, .btn-block-mobile{ width: 100%; justify-content: center; }
}
