/*
================================================
Engineering Page Shared Styles
================================================
*/

.hs-engineering-hero,
.hs-engineering-intro,
.hs-engineering-experience {
  padding: 100px 0;
}

.hs-engineering-cta {
  padding: 120px 0;
}

.hs-engineering-hero-sidebar,
.hs-engineering-capability-card,
.hs-engineering-metric {
  padding: 30px;
  border: 1px solid #333;
  background: rgba(255, 255, 255, 0.03);
}

.hs-engineering-hero-sidebar {
  padding: 40px;
  border-radius: 8px;
}

.hs-engineering-capability-card,
.hs-engineering-metric {
  border-radius: 6px;
}

.hs-engineering-intro-content p,
.hs-engineering-experience-content p,
.hs-engineering-cta p {
  margin-bottom: 25px;
}

.hs-engineering-hero-lead,
.hs-engineering-intro-lead,
.hs-engineering-cta-lead {
  font-size: 1.2rem;
  margin-bottom: 30px;
}

/*
================================================
Engineering Section Layout
================================================
*/

.hs-engineering-section {
  padding: 100px 0;
  background: #0d0d0d;
}

.hs-engineering-section:nth-of-type(even) {
  background:
    linear-gradient(rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.35)),
    rgba(75, 0, 0, 0.35);
}

.hs-engineering-grid {
  display: grid;
  gap: 60px;
  align-items: center;
}

.hs-engineering-layout-image-right,
.hs-engineering-layout-image-left {
  grid-template-columns: 1fr 1fr;
}

.hs-engineering-content-wrapper {
  display: flex;
  flex-direction: column;
  width: 100%;
  gap: 35px;
}

.hs-engineering-list ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 5px;
}

.hs-engineering-list li {
  position: relative;
  padding: 12px 0 12px 8px;
  background: rgba(255, 255, 255, 0.025);
  font-weight: 500;
  transition: transform 0.25s ease-out;
}

.hs-engineering-list li::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 60%;
  height: 2px;
  background: linear-gradient(to right, var(--hs-gold), #4b0000);
}

.hs-engineering-list li:hover {
  transform: translateX(3px);
  background: rgba(255, 255, 255, 0.04);
}

.hs-engineering-image img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
  border: 1px solid #333;
  transition: all 0.3s ease;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.hs-engineering-image img:hover {
  transform: scale(1.015);
}

/*
================================================
Tablet
================================================
*/

@media (max-width: 1100px) {
  .hs-engineering-layout-image-right,
  .hs-engineering-layout-image-left {
    grid-template-columns: 1fr;
  }

  .hs-engineering-image {
    order: -1;
  }
  .hs-btn-secondary {
    margin: 0px;
  }
}

/*
================================================
Hero Section
================================================
*/

.hs-engineering-hero {
  background: #111;
}

.hs-engineering-hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.hs-engineering-hero h1 {
  margin-bottom: 30px;
  line-height: 1.2;
}

.hs-engineering-hero-actions {
  display: flex;
  gap: 20px;
  margin-top: 40px;
}

.hs-engineering-hero-image {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hs-engineering-hero-image img {
  width: 100%;
  max-width: 700px;
  height: auto;
  display: block;

  border-radius: 8px;

  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.35);
}

/*
================================================
Sticky Page Navigation
================================================
*/

.hs-page-nav {
  position: sticky;
  top: 110px; /* Match main header height */
  z-index: 900;
  background-color: #181818;
  border-top: 1px solid #222;
  border-bottom: 1px solid #333;
  padding: 5px 0;
  transition: all 0.2s ease-in-out;
}

.hs-page-nav .hs-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
}

.hs-page-nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
  flex-wrap: wrap;
}

.hs-page-nav-links li {
  margin: 0;
}

.hs-page-nav-links a {
  display: inline-block;
  color: #ffffff;
  text-decoration: none;
  font-weight: 500;
  padding: 8px 0;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: all 0.2s ease-in-out;
}

.hs-page-nav-links a:hover,
.hs-page-nav-links a:focus,
.hs-page-nav-links a.active {
  color: var(--hs-gold);
  border-bottom-color: var(--hs-gold);
  outline-offset: 3px;
}

/*
================================================
Sticky Nav CTA (Secondary / Outline Button)
================================================
*/

.hs-nav-cta {
  display: inline-block;
  padding: 10px 22px;
  border: 2px solid var(--hs-red);
  border-radius: 6px;
  background: transparent;
  color: var(--hs-red);
  text-decoration: none;
  font-weight: 600;
  white-space: nowrap;
  transition: all 0.2s ease-in-out;
}

.hs-nav-cta:hover,
.hs-nav-cta:focus {
  background: var(--hs-red);
  color: #ffffff;
  outline-offset: 3px;
}

/*
================================================
Engineering Intro
================================================
*/

.hs-engineering-intro-content,
.hs-engineering-cta-inner {
  max-width: 900px;
  margin: 0 auto;
}

.hs-engineering-intro-content {
  margin-bottom: 70px;
}

.hs-engineering-intro h2,
.hs-engineering-cta {
  text-align: center;
}

.hs-engineering-intro h2 {
  margin-bottom: 30px;
}

.hs-engineering-intro-lead {
  text-align: center;
}

/*
================================================
Capabilities Grid
================================================
*/

.hs-engineering-capabilities {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.hs-engineering-capability-card h3 {
  margin-bottom: 20px;
  font-size: 1.15rem;
}

/*
================================================
Experience Section
================================================
*/

.hs-engineering-experience {
  background: #151515;
}

.hs-engineering-experience-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 80px;
  align-items: start;
}

.hs-engineering-experience-content h2 {
  margin-bottom: 30px;
}

.hs-engineering-experience-lead {
  font-size: 1.15rem;
  margin-bottom: 30px;
}

.hs-engineering-experience-sidebar {
  display: grid;
  gap: 30px;
}

.hs-engineering-metric span {
  display: block;
  line-height: 1.5;
}

/*
================================================
Final CTA
================================================
*/

.hs-engineering-cta {
  background: #111;
  border-top: 1px solid #333;
}

.hs-engineering-cta h2 {
  margin-bottom: 35px;
}

.hs-engineering-cta-actions {
  margin: 50px 0;
}

.hs-engineering-cta-note {
  max-width: 700px;
  margin: 0 auto;
  font-size: 0.95rem;
  opacity: 0.85;
}

/*
================================================
Responsive - Tablet
================================================
*/

@media (max-width: 1100px) {
  .hs-engineering-capabilities {
    grid-template-columns: repeat(2, 1fr);
  }

  .hs-page-nav .hs-container {
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
  }

  .hs-page-nav-links {
    justify-content: center;
  }

  .hs-page-nav-action {
    text-align: center;
  }
}

@media (max-width: 1000px) {
  .hs-engineering-experience-grid {
    grid-template-columns: 1fr;
    gap: 50px;
  }
}

@media (max-width: 900px) {
  .hs-engineering-hero-grid {
    grid-template-columns: 1fr;
    gap: 50px;
  }

  .hs-engineering-hero-actions {
    flex-direction: column;
  }

  .hs-engineering-hero-image {
    order: -1;
  }
}

/*
================================================
Responsive - Mobile
================================================
*/

@media (max-width: 768px) {
  .hs-page-nav {
    top: 80px;
  }

  .hs-page-nav-links {
    gap: 18px;
    justify-content: center;
  }

  .hs-nav-cta {
    display: block;
    width: 100%;
    text-align: center;
  }

  .hs-engineering-capabilities {
    grid-template-columns: 1fr;
  }

  .hs-engineering-intro,
  .hs-engineering-experience {
    padding: 70px 0;
  }

  .hs-engineering-cta {
    padding: 80px 0;
  }
}
