:root {
  --navy: #0a2540;
  --white: #ffffff;
  --gray: #6b7280;
  --green: #10b981;
  --text: #12263a;
  --muted: #4e647b;
  --soft: #eef4fa;
  --line: #d8e4ef;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: Inter, Arial, sans-serif;
  color: var(--text);
  background: #f7fbff;
}

a {
  color: inherit;
}

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

.container {
  width: min(92%, var(--max));
  margin: 0 auto;
}

.topbar {
  position: relative;
  background: #0c2f52;
  color: #e6f0fb;
  font-size: 0.84rem;
  min-height: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.topbar .container {
  width: min(98%, 1380px);
  margin-left: auto;
  margin-right: 10px;
}

.topbar::before {
  content: "";
  display: block;
  height: 8px;
  background: #fff;
}

.topbar-content {
  display: flex;
  justify-content: flex-end;
  gap: 14px;
  padding: 10px 0;
  flex-wrap: nowrap;
  align-items: center;
}

.topbar-content div {
  display: flex;
  gap: 0;
  margin-left: 0;
  align-items: center;
}

.topbar-content > span {
  display: none;
}

.topbar-content div a,
.topbar-content div span {
  padding: 0 14px;
  border-left: 1px solid rgba(255, 255, 255, 0.22);
  white-space: nowrap;
}

.topbar-content div a:first-child {
  border-left: 0;
}

.topbar-content div span::before {
  content: "";
  display: inline-block;
  width: 16px;
  height: 11px;
  margin-right: 6px;
  border-radius: 1px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: linear-gradient(
    to bottom,
    #ae1c28 0%,
    #ae1c28 33.33%,
    #ffffff 33.33%,
    #ffffff 66.66%,
    #21468b 66.66%,
    #21468b 100%
  );
  vertical-align: -1px;
}

.topbar-content a {
  text-decoration: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.site-header .container {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0 24px;
}

.nav {
  min-height: 106px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand img {
  width: 220px;
  height: auto;
  object-fit: contain;
  max-width: 100%;
  border-radius: 0;
}

nav {
  display: flex;
  align-items: center;
  gap: 0;
  flex-wrap: wrap;
  margin-left: auto;
  flex: 1;
  justify-content: flex-end;
  transform: none;
}

nav a {
  text-decoration: none;
  font-weight: 600;
  color: #153a5b;
  padding: 8px 14px;
  position: relative;
}

nav a + a {
  margin-left: 12px;
  padding-left: 20px;
}

nav a + a::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 2px;
  height: 18px;
  background: #2e5f8f;
  border-radius: 999px;
}

nav a:hover,
nav a.active {
  color: #0f2f4d;
}

.nav-cta {
  background: var(--green);
  color: #fff;
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid #0b9f67;
  margin-left: 24px;
}

.nav-cta::before {
  content: none;
}

.nav-cta:hover {
  color: #fff;
  background: #0b9f67;
}

.hero {
  position: relative;
  min-height: 84vh;
  overflow: hidden;
  display: grid;
  align-items: center;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  will-change: opacity;
}

.hero-fallback {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, rgba(10, 37, 64, 0.8), rgba(10, 37, 64, 0.45)),
    url("../images/hero-pipes.jpg")
      center/cover no-repeat;
  will-change: opacity;
}

.home-hero .hero-fallback,
.home-hero.page-hero-transition .hero-fallback {
  background: url("/images/solutions-hero-industrial.png")
    center/cover no-repeat;
  transform: none !important;
}

.home-page {
  background: #f3f7fb;
  --hero-fade-color: #f3f7fb;
}

.home-hero,
.page-hero-transition,
.about-hero.page-hero-transition,
.solutions-hero.page-hero-transition {
  min-height: 700px;
  position: relative;
}

.section.home-hero,
.section.page-hero-transition {
  padding-top: 0;
  padding-bottom: 0;
}

.home-hero::after,
.page-hero-transition::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 180px;
  background: linear-gradient(
    to bottom,
    rgba(243, 247, 251, 0) 0%,
    rgba(243, 247, 251, 0.24) 36%,
    rgba(243, 247, 251, 0.64) 68%,
    var(--hero-fade-color, var(--soft)) 100%
  );
  pointer-events: none;
  z-index: 1;
}

.home-hero .hero-overlay,
.page-hero-transition .hero-overlay {
  display: block;
  background: linear-gradient(
      120deg,
      rgba(8, 31, 52, 0.42),
      rgba(8, 31, 52, 0.26)
    )
    !important;
}

.page-hero-transition .about-hero-bg,
.page-hero-transition .solutions-hero-bg {
  background: url("/images/solutions-hero-industrial.png") center/cover no-repeat;
  will-change: opacity;
}

.partners-hero.page-hero-transition .hero-fallback,
.knowledge-hero.page-hero-transition .hero-fallback,
.contact-hero.page-hero-transition .hero-fallback {
  background: url("/images/solutions-hero-industrial.png") center/cover no-repeat;
  transform: none !important;
}

.home-hero .container {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 80% 20%, rgba(16, 185, 129, 0.2), transparent 36%),
    radial-gradient(circle at 8% 80%, rgba(255, 255, 255, 0.15), transparent 40%);
  will-change: opacity;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 860px;
  padding: 0;
}

.hero-content h1 {
  max-width: 16ch;
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.08;
}

.hero-content .hero-copy {
  max-width: 64ch;
}

.home-hero-inner {
  position: relative;
  z-index: 2;
  max-width: 860px;
  margin: 0 auto;
  text-align: center;
}

.home-hero-inner h1 {
  max-width: 16ch;
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.08;
}

.home-hero-title-layout {
  display: inline-flex;
  align-items: center;
  gap: clamp(10px, 1.2vw, 18px);
  max-width: none !important;
  margin: 10px 0 16px;
  line-height: 1.08;
}

.home-hero-title-layout .title-left {
  display: table;
  border-collapse: collapse;
}

.home-hero-title-layout .line-top,
.home-hero-title-layout .line-bottom-text {
  display: table-row;
}

.home-hero-title-layout .word-left,
.home-hero-title-layout .word-right {
  display: table-cell;
  white-space: nowrap;
  font-weight: 700;
  letter-spacing: normal;
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.02;
}

.home-hero-title-layout .word-left {
  text-align: left;
  padding-right: clamp(8px, 0.9vw, 14px);
}

.home-hero-title-layout .word-right {
  text-align: right;
}

.home-hero-title-layout .line-top {
  text-transform: none;
}

.home-hero-title-layout .line-bottom-text .word-left,
.home-hero-title-layout .line-bottom-text .word-right {
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.02;
  text-transform: lowercase;
}

.home-hero-title-layout .line-bottom-text .word-left {
  transform: translateX(14px);
}

.home-hero-title-layout .line-bottom-text .word-right {
  transform: translateX(-14px);
}

.home-hero-title-layout .and-word {
  font-size: clamp(2.8rem, 6vw, 5rem);
  line-height: 0.9;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: normal;
}

@media (max-width: 900px) {
  .home-hero-title-layout {
    display: block;
  }

  .home-hero-title-layout .and-word {
    display: block;
    text-align: right;
    margin-top: 4px;
  }
}

.home-hero-inner .hero-copy {
  max-width: 64ch;
}

.eyebrow {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  font-weight: 800;
  font-size: 0.76rem;
  color: #2d6ea3;
}

.hero-eyebrow {
  color: #e7f5ff;
}

h1,
h2,
h3 {
  margin-top: 0;
}

h1 {
  margin: 10px 0 16px;
  font-size: clamp(2.1rem, 5vw, 4rem);
  line-height: 1.08;
  color: #fff;
}

h2 {
  font-size: clamp(1.5rem, 3vw, 2.4rem);
  margin-bottom: 12px;
}

.hero-copy {
  color: #e4edf7;
  font-size: 1.1rem;
  line-height: 1.6;
}

.button {
  display: inline-block;
  text-decoration: none;
  font-weight: 700;
  border-radius: 999px;
  padding: 12px 24px;
  background: var(--green);
  color: #fff;
  border: 1px solid transparent;
}

.button:hover {
  background: #0a9a62;
}

.button-outline {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.38);
}

.hero-actions {
  margin-top: 10px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.section {
  padding: 78px 0;
}

.section-soft {
  background: var(--soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.hero-section-transition {
  position: relative;
  margin-top: -26px;
  padding-top: 104px;
  border-top: none;
}

.hero-section-transition.section-soft {
  border-top: none;
  border-bottom: none;
}

.hero-section-transition::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 140px;
  background: linear-gradient(
    to bottom,
    rgba(243, 247, 251, 0) 0%,
    rgba(243, 247, 251, 0.5) 40%,
    var(--hero-fade-color, var(--soft)) 100%
  );
  pointer-events: none;
}

.home-sectors-label {
  margin: 16px 0 0;
  text-align: center;
  font-size: clamp(1.35rem, 2.2vw, 1.9rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #153a5b;
}

.intro-split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 24px;
  align-items: center;
}

.intro-split p {
  color: var(--muted);
}

.intro-image img {
  width: 100%;
  aspect-ratio: 21 / 9;
  max-height: 320px;
  object-fit: cover;
  object-position: center;
  border-radius: 14px;
  box-shadow: 0 16px 34px rgba(13, 43, 72, 0.18);
}

.sector-grid {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 44px;
}

.sector-card {
  position: relative;
  min-height: 260px;
  border-radius: 14px;
  overflow: hidden;
  color: #fff;
}

.sector-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 37, 64, 0.2), rgba(10, 37, 64, 0.74));
}

.sector-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 450ms ease;
}

.sector-card:hover img {
  transform: scale(1.06);
}

.sector-content {
  position: absolute;
  z-index: 1;
  inset: auto 18px 18px;
}

.sector-content p {
  color: #dce9f6;
}

.featured-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: center;
}

.featured-media {
  overflow: hidden;
  border-radius: 14px;
  aspect-ratio: 4 / 3;
}

.featured-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: zoomPan 14s ease-in-out infinite alternate;
}

.featured-content p {
  color: var(--muted);
}

.usp-grid {
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.usp {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px;
  text-align: center;
}

.usp strong {
  display: block;
  font-size: 1.4rem;
  color: var(--navy);
}

.usp span {
  color: var(--gray);
  font-size: 0.9rem;
}

.logo-strip {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.logo-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 90px;
}

.logo-item img {
  max-height: 56px;
  width: auto;
  object-fit: contain;
}

.logo-item .text-logo {
  font-weight: 700;
  color: #1f4f78;
}

.content-grid-3 {
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.content-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px;
}

.content-card img {
  border-radius: 10px;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.content-card p,
.content-card li {
  color: var(--muted);
}

.muted {
  color: var(--gray);
  font-size: 0.92rem;
}

.about-modern {
  background: #f4f8fd;
}

.about-modern .about-hero {
  position: relative;
  overflow: hidden;
  background: #081f37;
  min-height: 56vh;
  display: grid;
  align-items: center;
}

.about-hero.page-hero-transition {
  background: transparent;
}

.about-hero-media {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, rgba(8, 31, 55, 0.88), rgba(8, 31, 55, 0.58)),
    url("https://images.unsplash.com/photo-1517048676732-d65bc937f952?auto=format&fit=crop&w=1800&q=80")
      center/cover no-repeat;
}

.about-hero-content {
  position: relative;
  z-index: 1;
  max-width: 760px;
}

.about-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  align-items: stretch;
}

.about-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 28px;
}

.about-panel p {
  color: var(--muted);
}

.about-media-card {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 18px 36px rgba(8, 31, 55, 0.2);
}

.about-media-card img {
  width: 100%;
  height: 100%;
  min-height: 300px;
  object-fit: cover;
}

.about-mission {
  background: #0c2a48;
  color: #e8f2fb;
  text-align: center;
}

.about-mission .eyebrow {
  color: #8fc7f5;
}

.about-mission h2,
.about-mission p {
  color: #e8f2fb;
}

.about-mission p {
  max-width: 72ch;
  margin: 0 auto;
}

.about-why-grid {
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.about-why-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px;
}

.about-why-card p {
  color: var(--muted);
}

.about-cta {
  background:
    linear-gradient(130deg, rgba(8, 31, 55, 0.92), rgba(11, 65, 108, 0.78)),
    url("https://images.unsplash.com/photo-1581092160562-40aa08e78837?auto=format&fit=crop&w=1800&q=80")
      center/cover no-repeat;
  color: #fff;
}

.about-cta-content {
  text-align: center;
}

.about-cta-content h2,
.about-cta-content p {
  color: #fff;
}

.about-cta-content p {
  max-width: 64ch;
  margin: 0 auto 20px;
}

.partner-grid {
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.partner-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px;
}

.partner-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.partner-logo {
  width: 120px;
  height: 50px;
  object-fit: contain;
  border-radius: 0;
}

.partner-card p {
  color: var(--muted);
}

.cases-filter {
  margin-top: 12px;
  display: inline-flex;
  gap: 8px;
  flex-wrap: wrap;
}

.chip {
  border: 1px solid var(--line);
  padding: 7px 12px;
  border-radius: 999px;
  background: #fff;
  font-weight: 600;
  color: #355676;
}

.cta-band {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(130deg, rgba(10, 37, 64, 0.85), rgba(16, 185, 129, 0.55)),
    url("https://images.unsplash.com/photo-1513828583688-c52646db42da?auto=format&fit=crop&w=2000&q=80")
      center/cover no-repeat;
}

.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.18), transparent 40%);
  animation: floatBg 14s ease-in-out infinite alternate;
}

.cta-content {
  position: relative;
  z-index: 1;
  text-align: center;
  color: #fff;
}

.cta-content h2,
.cta-content p {
  color: #fff;
}

.cta-content p {
  max-width: 64ch;
  margin: 0 auto 20px;
}

.contact-intro {
  margin: 0 0 16px;
  padding-left: 16px;
  color: var(--muted);
  text-align: left;
}

.contact-grid {
  margin-top: 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px;
}

.panel p,
.panel li {
  color: var(--muted);
}

.form-field {
  margin-bottom: 12px;
}

.form-field label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  color: #294660;
}

.form-field input,
.form-field textarea,
.form-field select {
  width: 100%;
  border: 1px solid #ccd9e7;
  border-radius: 10px;
  padding: 10px 12px;
  font: inherit;
}

.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.map-wrap iframe {
  width: 100%;
  min-height: 320px;
  border: 0;
  border-radius: 14px;
}

.site-footer {
  background: #0d2d4a;
  color: #d8e5f4;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  padding: 42px 0;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 18px;
  flex-wrap: wrap;
}

.footer-content a {
  text-decoration: none;
}

.footer-links {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.cookie-banner {
  position: fixed;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: min(94%, 800px);
  background: rgba(8, 30, 50, 0.95);
  color: #e3effb;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  padding: 12px;
  display: none;
  z-index: 60;
}

.cookie-banner.show {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.cookie-banner button {
  border: 0;
  border-radius: 999px;
  padding: 8px 14px;
  background: var(--green);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 520ms ease, transform 520ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes zoomPan {
  0% {
    transform: scale(1);
  }
  100% {
    transform: scale(1.07);
  }
}

@keyframes floatBg {
  0% {
    transform: translate(0, 0);
  }
  100% {
    transform: translate(16px, -10px);
  }
}

@media (max-width: 1100px) {
  .intro-split,
  .featured-wrap,
  .content-grid-3,
  .partner-grid,
  .contact-grid,
  .about-two-col {
    grid-template-columns: 1fr;
  }

  .usp-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sector-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .about-why-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .site-header .container {
    width: min(92%, var(--max));
    margin: 0 auto;
  }

  nav {
    display: none;
  }

  .brand img {
    width: 230px;
  }

  .hero:not(.home-hero):not(.page-hero-transition) {
    min-height: 72vh;
  }

  .home-hero,
  .page-hero-transition {
    min-height: 700px;
  }

  .logo-strip {
    grid-template-columns: 1fr;
  }

  .usp-grid {
    grid-template-columns: 1fr;
  }

  .sector-grid {
    grid-template-columns: 1fr;
  }

  .about-why-grid {
    grid-template-columns: 1fr;
  }
}
