/* ==========================================================================
   UNITED21 GENERAL CONTRACTING — STYLESHEET
   ========================================================================== */

:root {
  --navy: #0B1624;
  --charcoal: #111820;
  --dark: #080D13;
  --white: #FFFFFF;
  --off-white: #F4F4F1;
  --gray: #737B84;
  --light-gray: #E8E9E7;
  --accent: #C7A45A;
  --accent-dark: #A9853F;
  --border: rgba(11,22,36,.12);
  --border-light: rgba(255,255,255,.14);

  --font-display: 'Plus Jakarta Sans', 'Manrope', -apple-system, sans-serif;
  --font-body: 'Manrope', -apple-system, sans-serif;

  --container-w: 1240px;
  --header-h: 84px;
  --header-h-scrolled: 66px;

  --ease: cubic-bezier(.4,0,.2,1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--navy);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
button { font-family: inherit; cursor: pointer; }
input, textarea, select { font-family: inherit; font-size: 1rem; }
h1, h2, h3, h4 { font-family: var(--font-display); margin: 0; letter-spacing: -0.01em; }
p { margin: 0; }

.container {
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 32px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--navy);
  color: var(--white);
  padding: 12px 20px;
  z-index: 999;
}
.skip-link:focus { left: 12px; top: 12px; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 30px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: 2px;
  border: 1px solid transparent;
  transition: all .3s var(--ease);
  white-space: nowrap;
}
.btn-accent {
  background: var(--accent);
  color: var(--dark);
}
.btn-accent:hover { background: var(--accent-dark); transform: translateY(-2px); }
.btn-ghost {
  background: transparent;
  color: var(--white);
  border-color: var(--border-light);
}
.btn-ghost:hover { background: rgba(255,255,255,.08); border-color: var(--white); }
.btn-outline {
  background: transparent;
  color: var(--navy);
  border-color: var(--border);
}
.btn-outline:hover { background: var(--navy); color: var(--white); border-color: var(--navy); }
.btn-sm { padding: 11px 22px; font-size: 0.75rem; }
.btn-block { width: 100%; }

/* ---------- Typography helpers ---------- */
.eyebrow {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-dark);
  margin: 0 0 8px;
}
.eyebrow-light { color: var(--accent); }
.section-headline {
  font-size: clamp(2rem, 3.2vw, 2.9rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--navy);
}
.body-text {
  color: var(--gray);
  font-size: 1.02rem;
  max-width: 46ch;
  margin-top: 18px;
}
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 26px;
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--navy);
  border-bottom: 1px solid var(--navy);
  padding-bottom: 3px;
  transition: gap .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.text-link:hover { gap: 13px; color: var(--accent-dark); border-color: var(--accent-dark); }
.text-link.small { margin-top: 20px; font-size: 0.85rem; }
button.text-link {
  background: none;
  border: none;
  border-bottom: 1px solid var(--navy);
  padding: 0 0 3px;
  font-family: inherit;
}

.section-heading { max-width: 640px; margin-bottom: 56px; }
.section-cta { text-align: center; margin-top: 48px; }

/* ==========================================================================
   HEADER
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  background: rgba(8,13,19,0.0);
  transition: background .35s var(--ease), box-shadow .35s var(--ease);
}
.site-header.scrolled {
  background: rgba(8,13,19,0.92);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 24px rgba(0,0,0,.18);
}
.header-inner {
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 32px;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: height .35s var(--ease);
}
.site-header.scrolled .header-inner { height: var(--header-h-scrolled); }

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--white);
}
.logo { align-self: flex-start; }
.logo-mark {
  height: 118px;
  width: auto;
  flex-shrink: 0;
  background: #fff;
  padding: 8px 10px;
  border-radius: 0 0 10px 10px;
  box-shadow: 0 8px 24px rgba(0,0,0,.25);
  transition: height .35s var(--ease);
}
.site-header.scrolled .logo-mark { height: 96px; }
.logo-text { align-self: center; }
.logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.logo-word {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.28rem;
  letter-spacing: 0.02em;
  color: var(--white);
}
.logo-word em { font-style: normal; color: var(--accent); }
.logo-sub {
  font-size: 0.55rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,.55);
  margin-top: 3px;
  margin-bottom: 12px;
}

.main-nav ul { display: flex; gap: 36px; }
.nav-link {
  color: rgba(255,255,255,.82);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  position: relative;
  padding: 6px 0;
  transition: color .25s var(--ease);
}
.nav-link::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 1px;
  background: var(--accent);
  transition: width .3s var(--ease);
}
.nav-link:hover { color: var(--white); }
.nav-link:hover::after { width: 100%; }

.header-actions { display: flex; align-items: center; gap: 22px; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  border: none;
  padding: 8px;
  z-index: 210;
}
.hamburger span {
  width: 24px; height: 2px;
  background: var(--white);
  transition: transform .3s var(--ease), opacity .3s var(--ease);
}
.hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav */
.mobile-nav {
  position: fixed;
  top: 0; right: 0;
  width: min(360px, 88vw);
  height: 100vh;
  background: var(--dark);
  z-index: 205;
  padding: 110px 40px 40px;
  transform: translateX(100%);
  transition: transform .4s var(--ease);
  display: flex;
  flex-direction: column;
}
.mobile-nav.open { transform: translateX(0); }
.mobile-nav ul { display: flex; flex-direction: column; gap: 6px; margin-bottom: 36px; }
.mobile-link {
  display: block;
  color: var(--white);
  font-size: 1.15rem;
  font-weight: 600;
  padding: 14px 0;
  border-bottom: 1px solid var(--border-light);
}
.mobile-nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 204;
  opacity: 0;
  pointer-events: none;
  transition: opacity .35s var(--ease);
}
.mobile-nav-overlay.open { opacity: 1; pointer-events: auto; }
body.nav-open { overflow: hidden; }
body.nav-open .site-header { z-index: 210; background: transparent; box-shadow: none; backdrop-filter: none; }
body.nav-open .site-header .logo { visibility: hidden; }

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--dark);
}
.hero-media { position: absolute; inset: 0; }
.hero-image {
  position: absolute; inset: 0;
  background:
    url('images/hero-refinery.png');
  background-size: cover;
  background-position: center 40%;
}
.hero-image::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(115deg, transparent 0%, transparent 42%, rgba(255,255,255,.03) 43%, transparent 44%),
    linear-gradient(65deg, transparent 0%, transparent 58%, rgba(255,255,255,.025) 59%, transparent 60%);
}
.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,.9), transparent 75%);
}
.hero-overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(8,13,19,.42) 0%, rgba(8,13,19,.14) 55%, transparent 80%),
    linear-gradient(180deg, rgba(8,13,19,.4) 0%, rgba(8,13,19,0) 18%, rgba(8,13,19,0) 60%, rgba(8,13,19,.4) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  padding-top: var(--header-h);
  display: grid;
  grid-template-columns: minmax(0, 780px) auto;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
}
.hero-profile {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding: 20px 28px;
  color: var(--white);
  border: 1px solid var(--accent);
  border-radius: 4px;
  background: rgba(8,13,19,.45);
  backdrop-filter: blur(6px);
  transition: background .3s var(--ease), color .3s var(--ease), transform .3s var(--ease);
}
.hero-profile svg { color: var(--accent); flex-shrink: 0; transition: color .3s var(--ease); }
.hero-profile-text { display: flex; flex-direction: column; line-height: 1.25; }
.hero-profile strong { font-family: var(--font-display); font-size: 1.05rem; font-weight: 700; }
.hero-profile small { font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.65); transition: color .3s var(--ease); }
.hero-profile:hover { background: var(--accent); color: var(--dark); transform: translateY(-3px); }
.hero-profile:hover svg, .hero-profile:hover small { color: var(--dark); }
.hero-headline {
  font-size: clamp(2.4rem, 5.4vw, 4.4rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.08;
  margin: 2px 0 26px;
  text-shadow: 0 2px 24px rgba(0,0,0,.45);
}
.hero-sub {
  color: rgba(255,255,255,.9);
  text-shadow: 0 1px 14px rgba(0,0,0,.5);
  font-size: 1.1rem;
  max-width: 52ch;
  margin-bottom: 40px;
}
.hero-actions { display: flex; gap: 18px; flex-wrap: wrap; }

.scroll-indicator {
  position: absolute;
  bottom: 40px; left: 32px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(255,255,255,.55);
}
.scroll-indicator span {
  width: 1px; height: 40px;
  background: rgba(255,255,255,.4);
  position: relative;
  overflow: hidden;
}
.scroll-indicator span::after {
  content: '';
  position: absolute;
  top: -100%; left: 0; right: 0; height: 50%;
  background: var(--accent);
  animation: scrollLine 2.2s ease-in-out infinite;
}
@keyframes scrollLine {
  0% { top: -100%; }
  60% { top: 100%; }
  100% { top: 100%; }
}
.scroll-indicator p {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  writing-mode: vertical-rl;
}

/* ==========================================================================
   CAPABILITY STRIP
   ========================================================================== */
.capability-strip {
  background: var(--navy);
  padding: 30px 0;
}
.capability-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.capability-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 24px;
  border-left: 1px solid var(--border-light);
}
.capability-item:first-child { border-left: none; padding-left: 0; }
.cap-num {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--accent);
  font-size: 0.95rem;
}
.cap-label {
  color: rgba(255,255,255,.85);
  font-size: 0.88rem;
  font-weight: 600;
}

/* ==========================================================================
   ABOUT
   ========================================================================== */
.about { padding: 130px 0; }
.about-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 80px;
  align-items: center;
}
.about-media { position: relative; }
.about-image {
  aspect-ratio: 4/5;
  border-radius: 4px;
  background: linear-gradient(135deg, #1a2432, #0B1624);
  position: relative;
  overflow: hidden;
}
.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.about-image::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(160deg, rgba(199,164,90,.18), transparent 60%);
}
.floating-label {
  position: absolute;
  bottom: -18px; left: 24px;
  background: var(--navy);
  color: var(--white);
  padding: 14px 22px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-left: 3px solid var(--accent);
}

/* ==========================================================================
   SERVICES
   ========================================================================== */
.services { padding: 130px 0; background: var(--off-white); }
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--border);
}
.service-card {
  background: var(--white);
  padding: 44px 40px;
  transition: background .3s var(--ease);
}
.service-card:hover { background: #fdfcf9; }
.service-num {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--accent);
  font-size: 0.9rem;
  display: block;
  margin-bottom: 20px;
}
.service-icon { color: var(--navy); margin-bottom: 18px; }
.service-card h3 {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 12px;
}
.service-card > p {
  color: var(--gray);
  font-size: 0.98rem;
  margin-bottom: 18px;
}
.service-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 6px;
}
.service-list li {
  font-size: 0.88rem;
  color: var(--navy);
  padding-left: 16px;
  position: relative;
}
.service-list li::before {
  content: '';
  position: absolute;
  left: 0; top: 9px;
  width: 5px; height: 1px;
  background: var(--accent);
}

/* ==========================================================================
   STATEMENT
   ========================================================================== */
.statement {
  background: var(--dark);
  padding: 130px 0;
  text-align: center;
}
.statement-headline {
  font-size: clamp(1.8rem, 3.6vw, 3rem);
  color: var(--white);
  font-weight: 700;
  max-width: 800px;
  margin: 0 auto 22px;
  line-height: 1.2;
}
.statement-sub {
  color: rgba(255,255,255,.6);
  max-width: 54ch;
  margin: 0 auto 70px;
}
.process-flow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  max-width: 780px;
  margin: 0 auto;
}
.process-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  flex: 1;
}
.process-num {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent);
}
.process-label {
  color: var(--white);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.process-connector {
  flex: 0 0 60px;
  height: 1px;
  background: var(--border-light);
  margin-bottom: 22px;
}

/* ==========================================================================
   EQUIPMENT
   ========================================================================== */
.equipment { padding: 130px 0; }
.equipment-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}
.equipment-image {
  aspect-ratio: 1/1;
  border-radius: 3px;
  margin-bottom: 18px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(150deg, #1a2432, #0B1624);
}
.equipment-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .5s var(--ease);
}
.equipment-card:hover .equipment-image img { transform: scale(1.06); }
.equipment-image::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(160deg, rgba(11,22,36,.05), rgba(8,13,19,.55) 100%);
}
.equipment-card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 8px; }
.equipment-card p { color: var(--gray); font-size: 0.9rem; }

/* ==========================================================================
   WHY UNITED21
   ========================================================================== */
.why { padding: 130px 0; background: var(--off-white); }
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
}
.why-item {
  background: var(--off-white);
  padding: 44px 36px;
}
.why-index {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.6rem;
  color: var(--border);
  margin-bottom: 18px;
}
.why-item h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 10px; }
.why-item p { color: var(--gray); font-size: 0.92rem; }

/* ==========================================================================
   PROJECTS
   ========================================================================== */
.projects { padding: 130px 0; }
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.project-card { position: relative; }
.project-image {
  aspect-ratio: 4/3;
  border-radius: 3px;
  overflow: hidden;
  position: relative;
  margin-bottom: 18px;
  background: linear-gradient(140deg, #1c2936, #0B1624);
}
.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .5s var(--ease);
}
.project-card:hover .project-image img { transform: scale(1.06); }
.project-image::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(160deg, rgba(11,22,36,.05), rgba(8,13,19,.5) 100%);
}
.project-tag {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-dark);
  margin-bottom: 8px;
}
.project-card h3 { font-size: 1.1rem; font-weight: 700; }

/* ==========================================================================
   APPROACH
   ========================================================================== */
.approach { padding: 130px 0; background: var(--off-white); }
.approach-timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  position: relative;
}
.approach-timeline::before {
  content: '';
  position: absolute;
  top: 14px; left: 0; right: 0;
  height: 1px;
  background: var(--border);
}
.approach-step { position: relative; padding-top: 40px; }
.approach-num {
  position: absolute;
  top: 0; left: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1rem;
  color: var(--white);
  background: var(--navy);
  width: 30px; height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.approach-step h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 10px; }
.approach-step p { color: var(--gray); font-size: 0.92rem; }

/* ==========================================================================
   SAFETY
   ========================================================================== */
.safety { padding: 130px 0; }
.safety-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.safety-image {
  aspect-ratio: 4/3;
  border-radius: 4px;
  background: linear-gradient(135deg, #1a2432, #0B1624);
  position: relative;
  overflow: hidden;
}
.safety-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.safety-image::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(160deg, rgba(199,164,90,.2), transparent 60%);
}
.safety-principles {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 30px;
}
.safety-principles span {
  padding: 10px 18px;
  border: 1px solid var(--border);
  border-radius: 2px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

/* ==========================================================================
   CLIENTS
   ========================================================================== */
.clients { padding: 140px 0; background: var(--off-white); }

.clients-wall {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  column-gap: clamp(20px, 3.4vw, 48px);
  row-gap: 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 4px 0;
}

.client-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 128px;
  padding: 0 8px;
  position: relative;
}
/* faint hairline dividers between marks — structure without a boxed grid */
.client-mark::after {
  content: '';
  position: absolute;
  top: 24px; bottom: 24px;
  right: calc(clamp(20px, 3.4vw, 48px) / -2);
  width: 1px;
  background: var(--border);
}
.clients-wall .client-mark:nth-child(5n)::after { display: none; }

.client-mark img {
  max-width: 132px;
  max-height: 56px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: grayscale(0.25) contrast(1.03) saturate(1.05);
  opacity: 0.92;
  transition: opacity .3s var(--ease), filter .3s var(--ease), transform .3s var(--ease);
}
.client-mark:hover img {
  opacity: 1;
  filter: grayscale(0) contrast(1.03) saturate(1.05);
  transform: translateY(-2px) scale(1.04);
}

/* ==========================================================================
   CTA
   ========================================================================== */
.cta {
  background: var(--navy);
  padding: 120px 0;
  position: relative;
  overflow: hidden;
}
.cta::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 80% 20%, rgba(199,164,90,.14), transparent 55%);
}
.cta-inner { position: relative; text-align: center; }
.cta-headline {
  font-size: clamp(1.9rem, 3.8vw, 3.1rem);
  color: var(--white);
  font-weight: 700;
  line-height: 1.2;
  max-width: 780px;
  margin: 0 auto 22px;
}
.cta-sub {
  color: rgba(255,255,255,.65);
  max-width: 56ch;
  margin: 0 auto 42px;
}
.cta-actions { display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; }

/* ==========================================================================
   CONTACT
   ========================================================================== */
.contact { padding: 130px 0; }
.contact-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 90px;
}
.contact-details {
  margin-top: 36px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.contact-details li { display: flex; align-items: center; gap: 18px; }
.contact-text { display: flex; flex-direction: column; gap: 4px; min-width: 0; overflow-wrap: anywhere; }
.contact-icon {
  flex: 0 0 48px;
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--accent);
  border-radius: 50%;
  color: var(--accent-dark);
  background: rgba(199,164,90,.08);
}
.contact-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-dark);
}
.contact-details a, .contact-details span:not(.contact-label) { font-weight: 600; }
.contact-details em { color: var(--gray); font-weight: 400; font-style: italic; font-size: 0.85rem; }

.contact-form-wrap {
  background: var(--off-white);
  padding: 44px;
  border-radius: 6px;
}
#contact-form .quform-element { margin-bottom: 22px; }
#contact-form .form-row-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 22px;
}
#contact-form label {
  display: block;
  float: none;
  padding: 0;
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--navy);
}
#contact-form .quform-required { color: #b3432f; font-size: inherit; }
#contact-form .quform-elements input,
#contact-form .quform-elements textarea {
  width: 100%;
  margin: 0;
  padding: 13px 16px;
  border: 1px solid var(--border);
  border-radius: 3px;
  background: var(--white);
  color: var(--navy);
  transition: border-color .25s var(--ease);
}
#contact-form .quform-elements textarea { height: auto; min-height: 120px; resize: vertical; }
#contact-form .quform-elements input:focus,
#contact-form .quform-elements textarea:focus { border-color: var(--accent); outline: none; color: var(--navy); }
#contact-form .quform-has-error input,
#contact-form .quform-has-error textarea { border-color: #b3432f; }
#contact-form .quform-captcha-row {
  display: flex;
  align-items: stretch;
  gap: 14px;
}
#contact-form .quform-captcha-row::before,
#contact-form .quform-captcha-row::after,
#contact-form .quform-captcha::before,
#contact-form .quform-captcha::after { display: none; content: none; }
#contact-form .quform-captcha-row .quform-captcha { order: 1; float: none; flex: 0 0 auto; display: flex; }
#contact-form .quform-captcha-row .quform-input { order: 2; flex: 1 1 auto; min-width: 0; }
#contact-form .quform-captcha-row .quform-input input { margin: 0; height: 100%; }
#contact-form .quform-captcha-inner {
  float: none;
  display: flex;
  align-items: center;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 4px 10px;
  min-height: 0;
  min-width: 0;
}
#contact-form .quform-captcha-inner img { height: 40px; width: auto; max-width: none; }
#contact-form .quform-errors > .quform-error {
  float: none;
  display: block;
  margin-top: 6px;
  padding: 0;
  background: none;
  border: none;
  color: #b3432f;
  font-size: 0.78rem;
}
#contact-form .quform-submit-inner { float: none; margin-top: 8px; }
#contact-form .quform-submit-inner .btn span { padding: 0; }
#contact-form .quform-loading-wrap { float: none; margin: 14px 0 0; text-align: left; }
#contact-form .quform-success-message,
#contact-form .quform-error-message {
  margin: 0 0 22px;
  padding: 14px 18px;
  border-radius: 3px;
  font-size: 0.9rem;
  font-weight: 600;
  background-image: none;
}
#contact-form .quform-success-message { background: #e6f3ea; border: 1px solid #b7dcc4; color: #2e7d4f; }
#contact-form .quform-error-message { background: #f9e7e4; border: 1px solid #ecc2bb; color: #b3432f; }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  background: var(--dark);
  color: rgba(255,255,255,.75);
  padding: 90px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 50px;
  padding-bottom: 60px;
  border-bottom: 1px solid var(--border-light);
}
.footer-logo-img { height: 150px; width: auto; margin-bottom: 18px; padding: 8px 10px; background: #fff; border-radius: 8px; }
.footer-brand p { margin-bottom: 6px; font-size: 0.92rem; }
.footer-desc { color: rgba(255,255,255,.5); max-width: 32ch; }
.footer-col h3 {
  color: var(--white);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 12px; }
.footer-col .footer-contact li { display: flex; align-items: flex-start; gap: 12px; }
.footer-icon { flex: 0 0 18px; margin-top: 3px; color: var(--accent); line-height: 0; }
.footer-icon svg { width: 18px; height: 18px; }
.footer-contact a, .footer-contact span:not(.footer-icon) { overflow-wrap: anywhere; min-width: 0; }
.footer-col a { font-size: 0.92rem; transition: color .2s var(--ease); }
.footer-col a:hover { color: var(--accent); }
.image-credits { padding: 18px 0 0; font-size: 0.72rem; color: rgba(255,255,255,.4); }
.image-credits a { text-decoration: underline; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 26px 0;
  font-size: 0.82rem;
  color: rgba(255,255,255,.5);
  flex-wrap: wrap;
  gap: 12px;
}
.footer-legal { display: flex; gap: 24px; }
.footer-legal a:hover { color: var(--white); }

/* ==========================================================================
   SCROLL REVEAL
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.reveal.in-view { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { animation: none !important; transition: none !important; }
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1200px) {
  .equipment-grid { grid-template-columns: repeat(3, 1fr); }
  .services-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 1024px) {
  .hero-content { grid-template-columns: 1fr; justify-content: start; gap: 32px; }
  .hero-profile { justify-self: start; }
  .main-nav { display: none; }
  .hamburger { display: flex; }
  .about-grid, .safety-grid, .contact-grid { grid-template-columns: 1fr; gap: 50px; }
  .about-media { order: -1; }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .capability-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .capability-item:nth-child(3) { border-left: none; }
}

@media (max-width: 860px) {
  .services-grid { grid-template-columns: 1fr; }
  .equipment-grid { grid-template-columns: repeat(2, 1fr); }
  .projects-grid { grid-template-columns: 1fr 1fr; }
  .approach-timeline { grid-template-columns: 1fr; gap: 30px; }
  .approach-timeline::before { display: none; }
  .process-flow { flex-direction: column; gap: 24px; }
  .process-connector { display: none; }
  .clients-wall { grid-template-columns: repeat(4, 1fr); }
  .clients-wall .client-mark:nth-child(5n)::after { display: block; }
  .clients-wall .client-mark:nth-child(4n)::after { display: none; }
}

@media (max-width: 640px) {
  .container { padding: 0 20px; }
  .header-inner { padding: 0 20px; }
  :root { --header-h: 72px; --header-h-scrolled: 60px; }
  .logo-sub { display: none; }
  .header-actions .btn { display: none; }
  .hero-content { padding-top: calc(var(--header-h) + 56px); padding-bottom: 90px; }
  .scroll-indicator { display: none; }
  .about, .services, .statement, .equipment, .why, .projects, .approach, .safety, .clients, .contact, .cta {
    padding: 80px 0;
  }
  .why-grid { grid-template-columns: 1fr; }
  .equipment-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
  .projects-grid { grid-template-columns: 1fr; }
  .clients-wall { grid-template-columns: repeat(2, 1fr); }
  .client-mark { height: 100px; }
  .clients-wall .client-mark:nth-child(5n)::after,
  .clients-wall .client-mark:nth-child(4n)::after { display: block; }
  .clients-wall .client-mark:nth-child(2n)::after { display: none; }
  .clients-wall .client-mark::after { top: 16px; bottom: 16px; }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  #contact-form .form-row-split { grid-template-columns: 1fr; }
  #contact-form .quform-captcha-row { flex-direction: column; }
  #contact-form .quform-captcha-row .quform-captcha .quform-captcha-inner { width: 100%; justify-content: center; }
  .logo-mark { height: 92px; }
  .site-header.scrolled .logo-mark { height: 78px; }
  .contact-form-wrap { padding: 28px; }
  .cta-actions, .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn, .cta-actions .btn { width: 100%; }
  .footer-bottom { flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 26px 0 34px; font-size: 0.76rem; }
  .footer-grid { text-align: left; }
  .hero-profile { justify-self: stretch; justify-content: center; width: 100%; padding: 15px 24px; }
  .hero-profile svg { width: 22px; height: 22px; }
  .hero-profile-text { flex-direction: row; align-items: baseline; gap: 10px; }
  .hero-profile strong { font-size: .85rem; letter-spacing: .04em; text-transform: uppercase; }
  .capability-grid { grid-template-columns: 1fr; }
  .capability-item { border-left: none !important; padding-left: 0; }
}

@media (max-width: 400px) {
  .equipment-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   SERVICE LIST DRAWER
   ========================================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(8,13,19,.6);
  backdrop-filter: blur(3px);
  z-index: 300;
  opacity: 0;
  pointer-events: none;
  transition: opacity .35s var(--ease);
}
.modal-overlay.open { opacity: 1; pointer-events: auto; }

.modal {
  position: fixed;
  top: 0; right: 0;
  height: 100%;
  width: min(560px, 100%);
  background: var(--white);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform .4s var(--ease);
  box-shadow: -30px 0 60px rgba(0,0,0,.25);
}
.modal-overlay.open .modal { transform: translateX(0); }

.modal-header {
  position: relative;
  flex-shrink: 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 46px 44px 26px;
  background: var(--navy);
  overflow: hidden;
}
.modal-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 100% 0%, rgba(199,164,90,.22), transparent 60%);
}
.modal-header > div { position: relative; }
.modal-header h3 {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  color: var(--white);
}
.modal-header p {
  color: rgba(255,255,255,.62);
  font-size: 0.92rem;
  margin-top: 10px;
  max-width: 46ch;
}
.modal-close {
  position: relative;
  background: transparent;
  border: 1px solid var(--border-light);
  border-radius: 50%;
  width: 38px;
  height: 38px;
  font-size: 1.3rem;
  line-height: 1;
  color: var(--white);
  flex-shrink: 0;
  transition: background .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease);
}
.modal-close:hover { background: rgba(255,255,255,.1); border-color: var(--white); transform: rotate(90deg); }

.modal-body {
  padding: 8px 44px 44px;
  overflow-y: auto;
}
.modal-group { padding-top: 26px; }
.modal-group + .modal-group { border-top: 1px solid var(--border); }
.modal-group-title {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-dark);
  margin-bottom: 16px;
}
.modal-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.modal-list li {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy);
  background: var(--off-white);
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  transition: background .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease);
}
.modal-list li:hover {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
}

/* thin custom scrollbar for the drawer body */
.modal-body::-webkit-scrollbar { width: 6px; }
.modal-body::-webkit-scrollbar-thumb { background: var(--border); border-radius: 999px; }

@media (max-width: 640px) {
  .modal { width: 100%; }
  .modal-header { padding: 34px 24px 22px; }
  .modal-body { padding: 6px 24px 34px; }
}

/* Hero eyebrow: keep legible over the brighter hero photo */
.hero .eyebrow { color: #fff; text-shadow: 0 1px 12px rgba(0,0,0,.6); }
