/* ============================================================
   BG Perth Advisory — Production Stylesheet
   Framework: Bootstrap 5.3 + custom design system
   ============================================================ */

/* ---- Custom Properties ---- */
:root {
  --clr-primary:       #0D1C3F;   /* deep navy */
  --clr-primary-mid:   #162D5E;
  --clr-accent:        #D4E157;   /* lime yellow */
  --clr-accent-dk:     #A8B523;
  --clr-accent-lt:     #EDF598;
  --clr-surface:       #FFFFFF;
  --clr-surface-alt:   #F4F5F7;
  --clr-border:        #E2E5EC;
  --clr-text:          #1E2A3B;
  --clr-text-body:     #3D4F63;
  --clr-text-muted:    #6B7A90;
  --clr-footer-bg:     #070E1F;

  --font-display: 'Cormorant Garamond', Georgia, serif;

  --radius-card:  14px;
  --radius-btn:    3px;
  --transition:    all 0.28s ease;
  --shadow-sm:     0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.05);
  --shadow-md:     0 4px 12px rgba(0,0,0,.1);
  --shadow-lg:     0 12px 30px rgba(0,0,0,.14);
}

/* ---- Reset & Base ---- */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--clr-text-body);
  background: var(--clr-surface);
  overflow-x: hidden;
}

h1,h2,h3,h4,h5,h6 {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--clr-text);
  line-height: 1.2;
}

img { max-width: 100%; display: block; }

a { text-decoration: none; }

/* ---- Spacing utility ---- */
.py-section { padding-top: 5.5rem; padding-bottom: 5.5rem; }

/* ============================================================
   TYPOGRAPHY HELPERS
   ============================================================ */
.eyebrow {
  display: inline-block;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--clr-accent);
}

.eyebrow--light { color: var(--clr-accent); }

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.6vw, 3rem);
  font-weight: 600;
  line-height: 1.18;
  margin-bottom: .25rem;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--clr-text-muted);
}

.section-subtitle--light {
  font-size: 1.05rem;
  color: rgba(255,255,255,.6);
}

.section-intro {
  font-size: 1.05rem;
  color: var(--clr-text-muted);
  max-width: 580px;
  line-height: 1.75;
}

.body-text {
  font-size: 1rem;
  color: var(--clr-text-body);
  line-height: 1.8;
  margin-bottom: 1rem;
}



/* ============================================================
   BUTTONS
   ============================================================ */
.btn-accent {
  background-color: var(--clr-accent);
  color: var(--clr-primary);
  font-weight: 700;
  border: 2px solid var(--clr-accent);
  border-radius: var(--radius-btn);
  padding: .6rem 1.6rem;
  transition: var(--transition);
}
.btn-accent:hover,
.btn-accent:focus {
  background-color: var(--clr-accent-dk);
  border-color: var(--clr-accent-dk);
  color: var(--clr-primary);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(212,225,87,.4);
}

.btn-primary-custom {
  background-color: var(--clr-primary);
  color: #fff;
  font-weight: 700;
  border: 2px solid var(--clr-primary);
  border-radius: var(--radius-btn);
  padding: .6rem 1.6rem;
  transition: var(--transition);
}
.btn-primary-custom:hover,
.btn-primary-custom:focus {
  background-color: var(--clr-primary-mid);
  border-color: var(--clr-primary-mid);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(13,28,63,.3);
}

/* ============================================================
   NAVBAR
   ============================================================ */
#mainNav {
  padding-top: 1.2rem;
  padding-bottom: 1.2rem;
  background: transparent;
  transition: background .4s ease, padding .4s ease, box-shadow .4s ease;
  z-index: 1050;
}

/* Scrolled state */
#mainNav.is-scrolled {
  background: var(--clr-surface);
  padding-top: .7rem;
  padding-bottom: .7rem;
  box-shadow: 0 2px 16px rgba(0,0,0,.12);
}

/* Nav links */
#mainNav .nav-link {
  color: rgba(255,255,255,.88);
  font-weight: 500;
  font-size: .93rem;
  padding: .45rem .85rem;
  border-radius: 5px;
  transition: var(--transition);
}
#mainNav .nav-link:hover          { color: var(--clr-accent); }
#mainNav.is-scrolled .nav-link    { color: var(--clr-text); }
#mainNav.is-scrolled .nav-link:hover { color: var(--clr-accent); }
#mainNav .nav-link.active         { color: var(--clr-accent); }

/* Logo swap */
.nav-logo { display: none; }
.nav-logo--light { display: block; }

#mainNav.is-scrolled .nav-logo--light { display: none; }
#mainNav.is-scrolled .nav-logo--dark  { display: block; }

/* Hamburger */
.navbar-toggler {
  border: 2px solid rgba(255,255,255,.5);
  border-radius: 6px;
  padding: .4rem .6rem;
  background: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
}
#mainNav.is-scrolled .navbar-toggler { border-color: var(--clr-primary); }

.hamburger-bar {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  position: relative;
  border-radius: 2px;
  margin: 6px 0;       /* gives the button height to contain all three bars */
  transition: var(--transition);
}
.hamburger-bar::before,
.hamburger-bar::after {
  content: '';
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  position: absolute;
  left: 0;
  border-radius: 2px;
  transition: var(--transition);
}
.hamburger-bar::before { top: -8px; }
.hamburger-bar::after  { top:  8px; }

#mainNav.is-scrolled .hamburger-bar,
#mainNav.is-scrolled .hamburger-bar::before,
#mainNav.is-scrolled .hamburger-bar::after { background: var(--clr-primary); }

/* Mobile nav drop */
@media (max-width: 991.98px) {
  #mainNav .navbar-collapse {
    background: var(--clr-primary);
    border-radius: var(--radius-card);
    padding: 1rem 1.25rem 1.25rem;
    margin-top: .5rem;
    box-shadow: var(--shadow-md);
  }
  #mainNav.is-scrolled .navbar-collapse {
    background: var(--clr-surface);
  }
  #mainNav.is-scrolled .navbar-collapse .nav-link { color: var(--clr-text); }
  #mainNav.is-scrolled .navbar-collapse .nav-link:hover { color: var(--clr-accent); }
}

/* ============================================================
   HERO
   ============================================================ */
.hero-section {
  min-height: 600px;
  background: #090F22;
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
}

#hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  pointer-events: none;
}

/* Dark overlay so text stays legible over the video */
.hero-section::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(9, 15, 34, 0.55);
  pointer-events: none;
}


.hero-content {
  position: relative;
  z-index: 2;
  padding: 6rem 1rem 3rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-logo-img {
  width: clamp(200px, 30vw, 340px);
  margin: 0 auto;
}

.hero-tagline {
  color: #fff;
  font-size: clamp(1.4rem, 3.5vw, 2.75rem);
  font-weight: 300;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-top: 1.25rem;
  margin-bottom: 0;
}


/* ============================================================
   SECTION BACKGROUNDS
   ============================================================ */
.section-light { background: var(--clr-surface); }
.section-alt    { background: var(--clr-surface-alt); }
.section-dark   { background: var(--clr-primary); }

/* ============================================================
   SERVICE CARDS
   ============================================================ */
.service-card {
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-card);
  padding: 2rem 1.75rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.service-card::after {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: var(--clr-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s ease;
}

.service-card:hover {
  transform: translateY(-7px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.service-card:hover::after { transform: scaleX(1); }

/* Featured (centre) card */
.service-card--featured {
  background: var(--clr-primary);
  border-color: var(--clr-primary);
}
.service-card--featured::after { background: var(--clr-accent); }

.service-card--featured .service-card__icon,
.service-card--featured .service-card__title,
.service-card--featured .service-card__desc { color: #fff; }

.service-card--featured .service-card__link { color: var(--clr-accent); }

.service-card__icon {
  font-size: 2rem;
  color: var(--clr-accent);
  margin-bottom: 1.1rem;
  display: block;
}

.service-card__title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--clr-text);
  margin-bottom: .65rem;
}

.service-card__desc {
  font-size: .93rem;
  color: var(--clr-text-muted);
  line-height: 1.75;
  margin-bottom: 1.25rem;
}

.service-card__link {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  font-size: .88rem;
  font-weight: 700;
  color: var(--clr-accent);
  transition: gap .25s ease, color .25s ease;
}
.service-card__link:hover { gap: .6rem; color: var(--clr-accent-dk); }

/* ============================================================
   BY THE NUMBERS
   ============================================================ */
.numbers-section {
  background: linear-gradient(135deg, #060d1f 0%, var(--clr-primary) 50%, var(--clr-primary-mid) 100%);
}

.stat-item { padding: 1rem; }

.stat-value {
  font-size: clamp(2.2rem, 4.5vw, 3.25rem);
  font-weight: 900;
  color: var(--clr-accent);
  line-height: 1;
  margin-bottom: .6rem;
  font-variant-numeric: tabular-nums;
}

.stat-label {
  font-size: .88rem;
  color: rgba(255,255,255,.55);
  line-height: 1.55;
}

/* ============================================================
   INDUSTRY CARDS
   ============================================================ */
.industry-img-row {
  --bs-gutter-x: 15px;
  --bs-gutter-y: 15px;
  overflow: hidden;
}

.industry-img-card {
  position: relative;
  overflow: hidden;
  height: 420px;
  display: block;
}

.industry-img-card__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.industry-img-card:hover .industry-img-card__img {
  transform: scale(1.05);
}

/* gradient overlay — covers lower 70% so title + strapline stay legible */
.industry-img-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(5,10,25,0.92) 0%, rgba(5,10,25,0.55) 50%, rgba(5,10,25,0.15) 75%, transparent 100%);
  pointer-events: none;
}

.industry-img-card__body {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.5rem 1.6rem 0.5rem;
  z-index: 1;
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.industry-img-card:hover .industry-img-card__body {
  transform: translateY(-8rem);
}

.industry-img-card__bar {
  display: block;
  width: 32px;
  height: 2px;
  background: var(--clr-accent);
  margin-bottom: 0.6rem;
}

.industry-img-card__title {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
  margin: 0;
  line-height: 1.4;
}

.industry-img-card__title em {
  font-style: italic;
  font-weight: 400;
  color: rgba(255,255,255,0.75);
}

.industry-img-card__strapline {
  position: absolute;
  top: 100%;
  left: 1.6rem;
  right: 1.6rem;
  padding-top: 0.3rem;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.55;
  opacity: 0;
  transition: opacity 0.25s ease 0.2s;
}

.industry-img-card:hover .industry-img-card__strapline {
  opacity: 1;
}

/* ============================================================
   TEAM
   ============================================================ */
.team-section {
  background: linear-gradient(180deg, #090f22 0%, var(--clr-primary) 100%);
}

.team-card {
  overflow: hidden;
}

.team-card__photo-wrap {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 1.25rem;
  border: 4px solid var(--clr-accent);
  background: var(--clr-primary-mid);
  position: relative;
}

.team-card__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}

.team-card__photo-wrap:hover .team-card__photo { transform: scale(1.06); }

/* Fallback initials when photo missing */
.team-card__photo-wrap::before {
  content: attr(data-initials);
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--clr-accent);
  z-index: 0;
}
.team-card__photo { position: relative; z-index: 1; }

.team-card__name {
  font-family: var(--font-display);
  color: #fff;
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: .2rem;
}

.team-card__role {
  color: var(--clr-accent);
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: 0;
}

.team-card__bio {
  color: rgba(255,255,255,0.65);
  font-size: .85rem;
  line-height: 1.65;
  margin-top: 1rem;
  text-align: left;
  transform: translateX(110%);
  opacity: 0;
  transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.35s,
              opacity 0.5s ease 0.35s;
}

/* Fires when AOS activates the parent column */
[data-aos].aos-animate .team-card__bio {
  transform: translateX(0);
  opacity: 1;
}

/* ============================================================
   VALUES
   ============================================================ */

/* Left-aligned accent rule beneath headings */
.section-divider {
  width: 50px;
  border: none;
  border-top: 3px solid var(--clr-accent);
  margin: 1.4rem 0 1.6rem;
  opacity: 1;
}

/* Outline / ghost button in accent colour */
.btn-outline-accent {
  background: transparent;
  color: var(--clr-accent);
  border: 2px solid var(--clr-accent);
  font-weight: 700;
  font-size: .8rem;
  line-height: 1;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: .6rem 1.5rem;
  border-radius: var(--radius-btn);
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
}
.btn-outline-accent:hover,
.btn-outline-accent:focus {
  background: var(--clr-accent);
  color: var(--clr-primary);
}

/* Staggered photo collage */
.values-collage {
  position: relative;
  min-height: 500px;
}

/* Light grey panel sits behind the top two photos */
.values-collage::before { display: none; }

.values-collage__photo {
  position: absolute;
  overflow: hidden;
}
.values-collage__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

/* Bill — large, left */
.values-collage__photo--bill {
  left: 2%;
  top: calc(5% + 30px);
  width: 52%;
  height: 70%;
  z-index: 1;
}

/* Angelo — right, full height */
.values-collage__photo--angelo {
  right: 4%;
  top: 0;
  width: 41%;
  height: 68%;
  z-index: 1;
}

/* Chun — white-framed card, bottom-right, overlapping */
.values-collage__photo--chun {
  right: 4%;
  bottom: 0;
  width: 46%;
  height: 42%;
  z-index: 2;
  background: var(--clr-surface);
  padding: 8px;
  box-shadow: var(--shadow-lg);
}

@media (max-width: 991.98px) {
  .values-collage { min-height: 380px; }
}
@media (max-width: 575.98px) {
  .values-collage { min-height: 300px; }
  .values-collage__photo--bill  { width: 54%; height: 65%; }
  .values-collage__photo--angelo { width: 42%; height: 60%; }
  .values-collage__photo--chun  { width: 48%; height: 40%; }
}

/* ============================================================
   CAREERS
   ============================================================ */
.careers-section {
  position: relative;
  background: var(--clr-primary)
              url('../images/it-engineer.jpg')
              center / cover no-repeat;
}

.careers-section__overlay {
  position: absolute;
  inset: 0;
  background: rgba(9,15,34,.91);
}

.careers-quote {
  font-size: 1.05rem;
  font-style: italic;
  color: rgba(255,255,255,.8);
  line-height: 1.75;
  border-left: 3px solid var(--clr-accent);
  padding-left: 1.1rem;
  margin: 1.5rem 0;
}

.benefits-list {
  display: flex;
  flex-direction: column;
  gap: .9rem;
}

.benefit-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.1rem 1.25rem;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.09);
  border-radius: var(--radius-card);
  transition: var(--transition);
}

.benefit-item:hover {
  background: rgba(212,225,87,.1);
  border-color: rgba(212,225,87,.3);
}

.benefit-item__icon {
  font-size: 1.4rem;
  color: var(--clr-accent);
  flex-shrink: 0;
  margin-top: .1rem;
}

.benefit-item__title {
  font-size: .93rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: .2rem;
}

.benefit-item__desc {
  font-size: .84rem;
  color: rgba(255,255,255,.6);
  line-height: 1.6;
  margin-bottom: 0;
}

/* ============================================================
   ABOUT
   ============================================================ */
.about-divider {
  width: 60px;
  border: none;
  border-top: 3px solid var(--clr-accent);
  margin: 1.5rem auto;
  opacity: 1;
}

.about-body {
  font-size: 1.05rem;
  color: var(--clr-text-body);
  line-height: 1.85;
  margin-bottom: 0;
}

/* ============================================================
   CTA / READY
   ============================================================ */
.cta-section {
  position: relative;
  background-color: var(--clr-primary);
  background-image: url('../images/1.jpg');
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  overflow: hidden;
}

.cta-section__overlay {
  position: absolute;
  inset: 0;
  background: rgba(9,15,34,.91);
  pointer-events: none;
}

.cta-heading {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 600;
  color: #fff;
  line-height: 1.05;
  margin-bottom: .5rem;
}

.cta-sub {
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  color: var(--clr-accent);
  font-weight: 600;
  margin-bottom: .5rem;
}

.cta-desc {
  font-size: 1rem;
  color: rgba(255,255,255,.55);
  margin-bottom: 0;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--clr-primary);
  padding: 4.5rem 0 2.5rem;
  border-top: 1px solid rgba(255,255,255,0.2);
}

/* ---- Contact block ---- */
.footer-contact__heading {
  color: #fff;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.footer-contact__item {
  font-size: .95rem;
  color: rgba(255,255,255,.75);
  margin-bottom: .35rem;
}

.footer-contact__label {
  font-weight: 700;
  color: rgba(255,255,255,.75);
}

.footer-contact__item a {
  color: var(--clr-accent);
  transition: var(--transition);
}
.footer-contact__item a:hover { color: var(--clr-accent-lt); }

/* ---- Dividers ---- */
.footer-divider {
  border: none;
  border-top: 1px solid rgba(255,255,255,.1);
  margin: 2.5rem auto;
  max-width: 700px;
}

/* ---- TPB block ---- */
.footer-tpb__heading {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(255,255,255,.65);
  margin-bottom: 1.5rem;
}

.footer-check-icon {
  width: 62px;
  height: 62px;
  background: var(--clr-accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.75rem;
}
.footer-check-icon i {
  font-size: 2rem;
  color: var(--clr-primary);
  line-height: 1;
}

.footer-tpb__text {
  font-size: .88rem;
  color: rgba(255,255,255,.6);
  line-height: 1.8;
  max-width: 640px;
  margin: 0 auto 1rem;
}
.footer-tpb__text a {
  color: var(--clr-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: var(--transition);
}
.footer-tpb__text a:hover { color: var(--clr-accent-lt); }

.footer-tpb__liability {
  font-size: .8rem;
  color: rgba(255,255,255,.35);
  margin-bottom: 0;
}

/* ---- Bottom nav ---- */
.footer-bottom-nav {
  display: flex;
  justify-content: center;
  gap: 2.5rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}
.footer-bottom-nav a {
  font-size: .9rem;
  color: rgba(255,255,255,.65);
  transition: var(--transition);
}
.footer-bottom-nav a:hover { color: var(--clr-accent); }

/* ---- Copyright ---- */
.footer-copy {
  font-size: .78rem;
  color: rgba(255,255,255,.3);
  text-align: center;
  margin-bottom: 0;
}


/* ============================================================
   RESPONSIVE TWEAKS
   ============================================================ */
@media (max-width: 991.98px) {
  .py-section { padding-top: 4rem; padding-bottom: 4rem; }
}

@media (max-width: 767.98px) {
  .cta-heading { font-size: 3.5rem; }
  .team-card__photo-wrap { width: 150px; height: 150px; }
}

/* ============================================================
   INTERIOR PAGES — solid navbar
   (interior pages have light heroes, so the nav must read as
   "scrolled" from the top rather than transparent-over-dark)
   ============================================================ */
#mainNav.navbar--solid {
  background: var(--clr-surface);
  padding-top: .7rem;
  padding-bottom: .7rem;
  box-shadow: 0 2px 16px rgba(0,0,0,.12);
}
#mainNav.navbar--solid .nav-link { color: var(--clr-text); }
#mainNav.navbar--solid .nav-link:hover,
#mainNav.navbar--solid .nav-link.active { color: var(--clr-accent-dk); }
#mainNav.navbar--solid .nav-logo--light { display: none; }
#mainNav.navbar--solid .nav-logo--dark  { display: block; }
#mainNav.navbar--solid .navbar-toggler { border-color: var(--clr-primary); }
#mainNav.navbar--solid .hamburger-bar,
#mainNav.navbar--solid .hamburger-bar::before,
#mainNav.navbar--solid .hamburger-bar::after { background: var(--clr-primary); }

@media (max-width: 991.98px) {
  #mainNav.navbar--solid .navbar-collapse { background: var(--clr-surface); }
  #mainNav.navbar--solid .navbar-collapse .nav-link { color: var(--clr-text); }
  #mainNav.navbar--solid .navbar-collapse .nav-link:hover { color: var(--clr-accent-dk); }
}

/* ============================================================
   INTERIOR PAGE HERO
   ============================================================ */
.page-hero {
  position: relative;
  background: linear-gradient(135deg, #060d1f 0%, var(--clr-primary) 55%, var(--clr-primary-mid) 100%);
  padding: 9.5rem 0 4.5rem;
  overflow: hidden;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.page-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 55% 70% at 85% 0%, rgba(212,225,87,.12) 0%, transparent 70%);
  pointer-events: none;
}
#poly-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.page-hero__inner { position: relative; z-index: 2; max-width: 900px; }
.page-hero__title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 6vw, 4.75rem);
  font-weight: 700;
  line-height: 1.0;
  color: #fff;
  margin: .5rem 0 .9rem;
  letter-spacing: -0.01em;
}
.page-hero__title em { font-style: normal; color: var(--clr-accent); }

/* Accent italic line — used on industries hero */
em.page-hero__title-em {
  color: var(--clr-accent);
  font-style: italic !important;
  font-weight: 600;
}

/* Page hero eyebrow override — grey, larger */
.page-hero .eyebrow {
  font-size: 1.125rem;   /* ~18px */
  color: rgba(255,255,255,0.5);
  letter-spacing: .14em;
}
.page-hero__subtitle {
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  color: var(--clr-accent);
  font-weight: 600;
  margin-bottom: 1rem;
}
.page-hero__text {
  font-size: 1.05rem;
  color: rgba(255,255,255,.72);
  line-height: 1.8;
  margin-bottom: 1.75rem;
}

/* ============================================================
   FACT / STAT CARDS  (light background)
   ============================================================ */
.fact-card {
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-card);
  padding: 1.75rem 1.25rem;
  text-align: center;
  height: 100%;
  transition: var(--transition);
}
.fact-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.fact-card__value {
  font-size: clamp(1.9rem, 3.5vw, 2.6rem);
  font-weight: 900;
  color: var(--clr-primary);
  line-height: 1.05;
  margin-bottom: .5rem;
  font-variant-numeric: tabular-nums;
}
.fact-card__label {
  font-size: .9rem;
  color: var(--clr-text-muted);
  line-height: 1.55;
  margin-bottom: 0;
}

/* ============================================================
   DETAIL BLOCKS  (image + copy + checklist; alternating)
   ============================================================ */
.detail-block__img {
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  height: 100%;
  min-height: 280px;
}
.detail-block__img img { width: 100%; height: 100%; object-fit: cover; }
.detail-block__title {
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  font-weight: 800;
  margin-bottom: 1rem;
}
.detail-block__text {
  color: var(--clr-text-body);
  line-height: 1.85;
  margin-bottom: 1.5rem;
}

/* Check list */
.check-list { list-style: none; padding: 0; margin: 0 0 1.75rem; }
.check-list li {
  display: flex;
  gap: .65rem;
  align-items: flex-start;
  margin-bottom: .75rem;
  color: var(--clr-text-body);
  line-height: 1.6;
}
.check-list li i {
  color: var(--clr-accent-dk);
  font-size: 1.15rem;
  line-height: 1.4;
  flex-shrink: 0;
}

/* ============================================================
   PROCESS STEPS
   ============================================================ */
.process-step {
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-card);
  padding: 1.75rem;
  height: 100%;
  transition: var(--transition);
}
.process-step:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.process-step__num {
  font-size: .95rem;
  font-weight: 800;
  color: var(--clr-primary);
  background: var(--clr-accent);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.1rem;
}
.process-step__title { font-size: 1.1rem; font-weight: 700; margin-bottom: .5rem; }
.process-step__desc {
  font-size: .92rem;
  color: var(--clr-text-muted);
  line-height: 1.7;
  margin-bottom: 0;
}

/* ============================================================
   SPECIALTY TAGS
   ============================================================ */
.tag-list { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.25rem 0 1.75rem; }
.tag {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--clr-primary);
  background: transparent;
  border: 1.5px solid var(--clr-accent);
  border-radius: 999px;
  padding: .35rem .9rem;
}

/* ============================================================
   INDUSTRY FOCUS SPLIT CARDS
   ============================================================ */
.industry-focus-section {
  background: var(--clr-surface-alt);
  padding: 5rem 0;
}

/* Card wrapper — padding creates the 15px space the dark panel bleeds into */
.industry-focus-card {
  position: relative;
  padding: 15px 0;
  margin-bottom: 3rem;
}
.industry-focus-card:last-child { margin-bottom: 0; }

/* Dark panel — absolutely fills the wrapper top-to-bottom (white + 100px) */
.ifc-dark {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 44%;
  background: var(--clr-primary);
  padding: 3.5rem;
  border-radius: 5px;
  box-shadow: 0 12px 48px rgba(5,12,32,.3);
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Reversed — dark panel on the right */
.industry-focus-card.ifc-reversed .ifc-dark {
  left: auto;
  right: 0;
}

.ifc-dark .eyebrow { color: var(--clr-accent); }

.ifc-dark__title {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.35;
  margin: 0.75rem 0 1.5rem;
}

.ifc-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.ifc-list li {
  position: relative;
  padding-left: 1.1rem;
  color: rgba(255,255,255,.78);
  font-size: .9rem;
  line-height: 1.65;
  margin-bottom: .6rem;
}

.ifc-list li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--clr-accent);
  font-size: 1rem;
  line-height: 1.5;
}

/* White panel — normal flow, inset by the 50px card padding */
.ifc-light {
  margin-left: 44%;
  background: #fff;
  padding: 3.5rem 3.5rem 3.5rem 4rem;
  border-radius: 0 5px 5px 0;
  box-shadow: 0 8px 40px rgba(0,0,0,.09);
  position: relative;
  z-index: 2;
}

/* Reversed — white panel on the left */
.industry-focus-card.ifc-reversed .ifc-light {
  margin-left: 0;
  margin-right: 44%;
  border-radius: 5px 0 0 5px;
  padding: 3.5rem 4rem 3.5rem 3.5rem;
}

.ifc-light__title {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3vw, 2.6rem);
  font-weight: 600;
  color: var(--clr-text);
  line-height: 1.15;
  margin: .4rem 0 .75rem;
}

.ifc-light__text {
  color: var(--clr-text-body);
  line-height: 1.8;
  margin-bottom: 0;
}

.ifc-light .tag-list { margin-top: 1.5rem; margin-bottom: 1.75rem; }

/* Mobile — stack panels vertically */
@media (max-width: 991.98px) {
  .industry-focus-card {
    padding: 0;
    margin-bottom: 2rem;
  }
  .ifc-dark {
    position: relative;
    top: auto; left: auto; right: auto; bottom: auto;
    width: 100%;
    border-radius: 5px 5px 0 0;
    padding: 2.5rem;
    box-shadow: none;
  }
  .industry-focus-card.ifc-reversed .ifc-dark {
    left: auto; right: auto;
  }
  .ifc-light,
  .industry-focus-card.ifc-reversed .ifc-light {
    margin: 0;
    border-radius: 0 0 5px 5px;
    padding: 2.5rem;
    box-shadow: 0 8px 30px rgba(0,0,0,.1);
  }
}

/* ============================================================
   STATEWIDE REACH  (dark image section + region cards)
   ============================================================ */
.reach-section {
  position: relative;
  background: var(--clr-primary)
              url('../images/miningtruck.jpg')
              center / cover no-repeat;
}
.reach-section__overlay {
  position: absolute;
  inset: 0;
  background: rgba(9,15,34,.9);
}
.region-card {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.09);
  border-radius: var(--radius-card);
  padding: 1.6rem 1.5rem;
  height: 100%;
  transition: var(--transition);
}
.region-card:hover {
  background: rgba(212,225,87,.1);
  border-color: rgba(212,225,87,.3);
  transform: translateY(-4px);
}
.region-card__title { color: #fff; font-size: 1.05rem; font-weight: 700; margin-bottom: .5rem; }
.region-card__desc { color: rgba(255,255,255,.65); font-size: .9rem; line-height: 1.65; margin-bottom: 0; }

/* ============================================================
   TESTIMONIAL  (light)
   ============================================================ */
.testimonial {
  background: var(--clr-surface-alt);
  border-left: 4px solid var(--clr-accent);
  border-radius: 0 var(--radius-card) var(--radius-card) 0;
  padding: 1.75rem 2rem;
}
.testimonial__quote {
  font-size: 1.1rem;
  font-style: italic;
  color: var(--clr-text);
  line-height: 1.7;
  margin-bottom: 1rem;
}
.testimonial__author {
  font-size: .82rem;
  font-weight: 700;
  color: var(--clr-accent-dk);
  text-transform: uppercase;
  letter-spacing: .08em;
}

/* ============================================================
   COMPARISON TABLE  (BG vs Big 4)
   ============================================================ */
.compare-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-card);
  overflow: hidden;
}
.compare-table th,
.compare-table td {
  padding: 1rem 1.25rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--clr-border);
  font-size: .92rem;
  line-height: 1.55;
}
.compare-table thead th { background: var(--clr-primary); color: #fff; font-weight: 700; }
.compare-table thead th.is-bg { background: var(--clr-accent); color: var(--clr-primary); }
.compare-table td:first-child { font-weight: 700; color: var(--clr-text); white-space: nowrap; }
.compare-table .col-bg { background: rgba(212,225,87,.08); color: var(--clr-text); font-weight: 600; }
.compare-table tbody tr:last-child td { border-bottom: none; }

/* ============================================================
   JOB CARDS
   ============================================================ */
.job-card {
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-card);
  padding: 2rem;
  height: 100%;
  transition: var(--transition);
}
.job-card:hover { box-shadow: var(--shadow-lg); border-color: transparent; }
.job-card__title { font-size: 1.3rem; font-weight: 800; margin-bottom: .4rem; }
.job-card__meta {
  font-size: .82rem;
  color: var(--clr-accent-dk);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 1rem;
}
.job-card__text { color: var(--clr-text-body); line-height: 1.75; margin-bottom: 1.25rem; }
.job-card__subhead {
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--clr-text-muted);
  margin: 1.4rem 0 .7rem;
}
.job-card .check-list li { font-size: .9rem; margin-bottom: .5rem; }

/* ============================================================
   CONTACT PAGE
   ============================================================ */
.contact-panel {
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-card);
  padding: 2.25rem;
  box-shadow: var(--shadow-md);
}
.contact-form .form-label { font-weight: 600; color: var(--clr-text); font-size: .9rem; }
.contact-form .form-control,
.contact-form .form-select {
  border-radius: var(--radius-btn);
  border: 1px solid var(--clr-border);
  padding: .7rem .9rem;
  font-size: .95rem;
}
.contact-form .form-control:focus,
.contact-form .form-select:focus {
  border-color: var(--clr-accent-dk);
  box-shadow: 0 0 0 .2rem rgba(168,181,35,.18);
}

.contact-method {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.2rem 0;
  border-bottom: 1px solid var(--clr-border);
}
.contact-method:last-child { border-bottom: none; }
.contact-method__icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--clr-accent);
  color: var(--clr-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}
.contact-method__label {
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--clr-text-muted);
  font-weight: 700;
  margin-bottom: .2rem;
}
.contact-method__value { font-size: 1rem; color: var(--clr-text); font-weight: 600; margin-bottom: 0; }
.contact-method__value a { color: var(--clr-text); transition: var(--transition); }
.contact-method__value a:hover { color: var(--clr-accent-dk); }

.contact-map {
  border: 0;
  width: 100%;
  height: 320px;
  border-radius: var(--radius-card);
  filter: grayscale(.2);
}

/* ============================================================
   LEGAL / PRIVACY CONTENT
   ============================================================ */
.legal-content { max-width: 820px; }
.legal-content .legal-updated {
  font-size: .85rem;
  color: var(--clr-text-muted);
  margin-bottom: 2.5rem;
}
.legal-content h2 {
  font-size: 1.35rem;
  font-weight: 700;
  margin: 2.5rem 0 .9rem;
}
.legal-content h2:first-of-type { margin-top: 0; }
.legal-content p {
  color: var(--clr-text-body);
  line-height: 1.8;
  margin-bottom: 1rem;
}
.legal-content ul {
  color: var(--clr-text-body);
  line-height: 1.8;
  margin-bottom: 1rem;
  padding-left: 1.25rem;
}
.legal-content li { margin-bottom: .4rem; }
.legal-content a {
  color: var(--clr-accent-dk);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.legal-content a:hover { color: var(--clr-primary); }

/* ============================================================
   LEAFLET MAP SECTION
   ============================================================ */
.map-section { width: 100%; line-height: 0; }
#bgpa-map { height: 450px; width: 100%; }
/* Greyscale the tile layer only — marker and popup stay full colour */
.leaflet-tile-pane { filter: grayscale(1); }
.leaflet-popup-content {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: .88rem;
  line-height: 1.7;
  min-width: 180px;
}
.leaflet-popup-content strong { color: var(--clr-primary); display: block; margin-bottom: .25rem; }
.leaflet-popup-content a { color: var(--clr-accent-dk); text-decoration: none; }
.leaflet-popup-content a:hover { text-decoration: underline; }
