@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;700;800&display=swap");

:root {
  --blue-950: #06152e;
  --blue-900: #081d3e;
  --blue-800: #012169;
  --blue-700: #063f9c;
  --blue-500: #1670db;
  --red-700: #9f0d26;
  --red-600: #c8102e;
  --red-500: #ec2445;
  --safety-yellow: #f5b700;
  --safety-yellow-hover: #ffd166;
  --ink: #142037;
  --muted: #607087;
  --line: #dfe6ef;
  --surface: #f4f7fb;
  --white: #ffffff;
  --success: #0f7b4d;
  --error: #a71d32;
  --shadow-sm: 0 12px 30px rgb(4 28 67 / 8%);
  --shadow-lg: 0 30px 80px rgb(4 22 55 / 24%);
  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --content: 1220px;
  --header-height: 88px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: Inter, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}

h1,
.main-heading {
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

main p,
.body-text {
  font-size: 1.125rem;
  line-height: 1.6;
}

body.nav-open {
  overflow: hidden;
}

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

a {
  color: inherit;
}

button,
input,
textarea,
select {
  font: inherit;
  max-width: 100%;
}

.header-inner > *,
.section-heading > *,
.split > *,
.contact-layout > *,
.calculator-layout > *,
.footer-grid > * {
  min-width: 0;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 3px solid #ffbf47;
  outline-offset: 3px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  z-index: 9999;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  color: var(--white);
  background: var(--blue-800);
  border-radius: 8px;
  transform: translateY(-140%);
  transition: transform 180ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-shell {
  min-height: 100vh;
  overflow: hidden;
}

.site-header {
  position: fixed;
  z-index: 1000;
  inset: 0 0 auto;
  height: var(--header-height);
  color: var(--white);
  background: linear-gradient(180deg, rgb(2 16 45 / 92%), rgb(2 16 45 / 54%), transparent);
  transition: height 220ms ease, background-color 220ms ease, box-shadow 220ms ease;
}

.site-header.is-scrolled {
  height: 74px;
  background: rgb(5 24 55 / 96%);
  box-shadow: 0 10px 35px rgb(0 0 0 / 18%);
  backdrop-filter: blur(14px);
}

.header-inner {
  width: min(calc(100% - 40px), var(--content));
  height: 100%;
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 34px;
}

.brand {
  flex: 0 0 auto;
  width: 160px;
  padding: 3px 7px;
  background: rgb(255 255 255 / 94%);
  border: 1px solid rgb(255 255 255 / 75%);
  border-radius: 10px;
  box-shadow: 0 8px 22px rgb(0 0 0 / 18%);
  text-decoration: none;
}

.brand img {
  width: 100%;
  height: auto;
  filter: none;
}

.primary-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 25px;
}

.primary-nav a {
  position: relative;
  padding: 10px 0;
  color: rgb(255 255 255 / 88%);
  font-size: 0.79rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-decoration: none;
  text-transform: uppercase;
  transition: color 180ms ease;
}

.primary-nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 2px;
  left: 0;
  height: 2px;
  background: var(--red-500);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.primary-nav a:hover,
.primary-nav a.is-active {
  color: var(--white);
}

.primary-nav a:hover::after,
.primary-nav a.is-active::after {
  transform: scaleX(1);
}

.email-icon-button {
  border: 0;
  color: var(--white);
  background: var(--red-600);
  cursor: pointer;
  transition: transform 180ms ease, background-color 180ms ease, box-shadow 180ms ease;
}

.email-icon-button:hover {
  background: var(--red-500);
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgb(200 16 46 / 28%);
}

.email-icon-button svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.header-email {
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  text-decoration: none;
}

.social-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.social-links a {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: rgb(255 255 255 / 76%);
  border: 1px solid rgb(255 255 255 / 24%);
  border-radius: 50%;
  text-decoration: none;
  transition: color 180ms ease, background-color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.social-links a:hover {
  color: var(--blue-950);
  background: var(--safety-yellow);
  border-color: var(--safety-yellow);
  transform: translateY(-2px);
}

.social-links svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  margin-left: auto;
  padding: 11px;
  color: var(--white);
  background: transparent;
  border: 1px solid rgb(255 255 255 / 28%);
  border-radius: 50%;
  cursor: pointer;
}

.nav-toggle > span:not(.sr-only) {
  display: block;
  width: 21px;
  height: 2px;
  margin: 4px auto;
  background: currentColor;
  transition: transform 180ms ease, opacity 180ms ease;
}

.nav-toggle[aria-expanded="true"] > span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] > span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] > span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.hero {
  position: relative;
  min-height: min(860px, 100svh);
  display: grid;
  align-items: end;
  color: var(--white);
  isolation: isolate;
  overflow: hidden;
}

.hero::before,
.page-hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background:
    linear-gradient(90deg, rgb(3 18 46 / 94%) 0%, rgb(3 20 50 / 78%) 42%, rgb(3 20 50 / 25%) 76%, rgb(3 20 50 / 45%) 100%),
    linear-gradient(0deg, rgb(3 18 46 / 76%) 0%, transparent 48%);
}

.hero::after,
.page-hero::after {
  content: "";
  position: absolute;
  z-index: -2;
  inset: 0;
  background: var(--hero-image) center / cover no-repeat;
  transform: scale(1.02);
  animation: heroDrift 16s ease-in-out infinite alternate;
}

@keyframes heroDrift {
  to { transform: scale(1.08); }
}

.hero-content {
  width: min(calc(100% - 40px), var(--content));
  margin: 0 auto;
  padding: 180px 0 74px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 18px;
  color: var(--red-600);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.hero .eyebrow,
.page-hero .eyebrow,
.section-dark .eyebrow,
.project-showcase .eyebrow,
.cta-panel .eyebrow,
.contact-info .eyebrow,
.calculator-result .eyebrow {
  color: rgb(255 255 255 / 70%);
}

.eyebrow::before {
  content: "";
  width: 34px;
  height: 2px;
  background: currentColor;
}

.hero h1,
.page-hero h1 {
  max-width: 900px;
  margin: 0;
  font-size: clamp(3rem, 6.4vw, 6.6rem);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.hero h1 span,
.page-hero h1 span {
  color: transparent;
  -webkit-text-stroke: 1px rgb(255 255 255 / 64%);
}

.hero-lead {
  max-width: 720px;
  margin: 25px 0 0;
  color: rgb(255 255 255 / 85%);
  font-size: clamp(1.05rem, 1.65vw, 1.32rem);
}

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

.button {
  min-height: 52px;
  padding: 13px 21px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-decoration: none;
  text-transform: uppercase;
  transition: transform 180ms ease, background-color 180ms ease, border-color 180ms ease, color 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  color: var(--blue-950);
  background: var(--safety-yellow);
  box-shadow: 0 14px 35px rgb(245 183 0 / 28%);
}

.button-primary:hover {
  background: var(--safety-yellow-hover);
}

.button-primary:focus-visible {
  outline-color: var(--blue-950);
}

.button-secondary {
  color: var(--white);
  background: rgb(255 255 255 / 8%);
  border-color: rgb(255 255 255 / 35%);
  backdrop-filter: blur(10px);
}

.button-secondary:hover {
  background: rgb(255 255 255 / 16%);
  border-color: rgb(255 255 255 / 70%);
}

.button-dark {
  color: var(--white);
  background: var(--blue-950);
}

.button-outline {
  color: var(--blue-800);
  border-color: rgb(1 33 105 / 28%);
  background: var(--white);
}

.button svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.hero-stat-bar {
  width: min(calc(100% - 40px), var(--content));
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border-top: 1px solid rgb(255 255 255 / 23%);
  background: rgb(3 20 49 / 68%);
  backdrop-filter: blur(12px);
}

.hero-stat {
  min-height: 110px;
  padding: 22px 24px;
  border-right: 1px solid rgb(255 255 255 / 15%);
}

.hero-stat:last-child {
  border-right: 0;
}

.hero-stat strong {
  display: block;
  font-size: clamp(1.4rem, 2.4vw, 2.15rem);
  line-height: 1;
  letter-spacing: -0.04em;
}

.hero-stat span {
  display: block;
  margin-top: 9px;
  color: rgb(255 255 255 / 64%);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  line-height: 1.35;
  text-transform: uppercase;
}

.section {
  padding: 104px 0;
}

.section-sm {
  padding: 74px 0;
}

.section-dark {
  color: var(--white);
  background: var(--blue-950);
}

.section-surface {
  background: var(--surface);
}

.container {
  width: min(calc(100% - 40px), var(--content));
  margin-inline: auto;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(340px, 0.7fr);
  align-items: end;
  gap: 60px;
  margin-bottom: 52px;
}

.section-heading h2,
.split-content h2,
.cta-panel h2 {
  margin: 0;
  color: var(--blue-950);
  font-size: clamp(2.25rem, 4.4vw, 4.8rem);
  line-height: 1.12;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.section-dark .section-heading h2,
.section-dark .split-content h2,
.cta-panel h2 {
  color: var(--white);
}

.section-heading p,
.split-content > p {
  margin: 0;
  color: var(--muted);
  font-size: 1.125rem;
  line-height: 1.6;
}

.section-dark .section-heading p,
.section-dark .split-content > p {
  color: rgb(255 255 255 / 85%);
}

.red-rule {
  width: 52px;
  height: 4px;
  margin: 24px 0;
  background: var(--red-600);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
  align-items: center;
  gap: clamp(44px, 7vw, 100px);
}

.split-reverse .split-media {
  order: 2;
}

.split-media {
  position: relative;
}

.split-media::after {
  content: "";
  position: absolute;
  z-index: -1;
  right: -24px;
  bottom: -24px;
  width: 70%;
  height: 70%;
  border: 2px solid var(--red-600);
  border-radius: var(--radius-lg);
}

.split-media img {
  width: 100%;
  min-height: 480px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.split-content h3 {
  margin: 0 0 12px;
  color: var(--blue-950);
  font-size: 1.4rem;
}

.check-list,
.feature-list,
.footer-links,
.plain-list {
  padding: 0;
  margin: 0;
  list-style: none;
}

.check-list {
  margin-top: 26px;
  display: grid;
  gap: 14px;
}

.check-list li {
  position: relative;
  padding-left: 32px;
  color: var(--ink);
  font-weight: 700;
}

.section-dark .check-list li {
  color: rgb(255 255 255 / 84%);
}

.check-list li::before {
  content: "";
  position: absolute;
  top: 0.52em;
  left: 0;
  width: 15px;
  height: 8px;
  border-bottom: 2px solid var(--red-600);
  border-left: 2px solid var(--red-600);
  transform: rotate(-45deg);
}

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

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

.feature-card {
  position: relative;
  min-height: 310px;
  padding: 32px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.feature-card:hover {
  transform: translateY(-7px);
  border-color: rgb(1 33 105 / 26%);
  box-shadow: 0 22px 55px rgb(4 28 67 / 14%);
}

.feature-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 32px;
  width: 54px;
  height: 4px;
  background: var(--red-600);
}

.feature-card .card-number {
  color: rgb(1 33 105 / 14%);
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1;
}

.feature-card h3 {
  margin: 40px 0 12px;
  color: var(--blue-950);
  font-size: 1.35rem;
  line-height: 1.2;
}

.feature-card p {
  margin: 0;
  color: var(--muted);
}

.image-card {
  position: relative;
  min-height: 460px;
  display: flex;
  align-items: end;
  color: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.image-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 650ms cubic-bezier(.2,.7,.2,1);
}

.image-card:hover img {
  transform: scale(1.065);
}

.image-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgb(2 16 43 / 96%) 0%, rgb(2 16 43 / 20%) 72%);
}

.image-card-content {
  position: relative;
  z-index: 2;
  padding: 32px;
}

.image-card-content h3 {
  margin: 0 0 8px;
  font-size: 1.55rem;
}

.image-card-content p {
  margin: 0;
  color: rgb(255 255 255 / 85%);
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: rgb(255 255 255 / 15%);
  border: 1px solid rgb(255 255 255 / 15%);
}

.metric {
  min-height: 190px;
  padding: 30px;
  background: var(--blue-950);
}

.metric strong {
  display: block;
  color: var(--white);
  font-size: clamp(2.1rem, 4vw, 4.1rem);
  line-height: 1;
  letter-spacing: -0.05em;
}

.metric span {
  display: block;
  margin-top: 18px;
  color: rgb(255 255 255 / 60%);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1.45;
  text-transform: uppercase;
}

.project-showcase {
  position: relative;
  padding: 110px 0 70px;
  color: var(--white);
  background:
    radial-gradient(circle at 50% 30%, rgb(20 85 168 / 30%), transparent 38%),
    var(--blue-950);
  overflow: hidden;
}

.project-showcase .section-heading > p {
  color: rgb(255 255 255 / 85%);
}

.project-showcase .section-heading {
  margin-bottom: 8px;
}

.carousel-stage {
  position: relative;
  height: 580px;
  perspective: 1500px;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.project-carousel {
  position: relative;
  width: 290px;
  height: 190px;
  transform-style: preserve-3d;
  -webkit-transform-style: preserve-3d;
  animation: projectSpin 52s linear infinite;
  will-change: transform;
}

.project-carousel.is-paused {
  animation-play-state: paused;
}

.project-card {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border: 1px solid rgb(255 255 255 / 28%);
  border-radius: 12px;
  box-shadow: 0 20px 55px rgb(0 0 0 / 50%);
  transform: rotateY(calc(var(--i) * var(--carousel-angle, 45deg))) translateZ(500px);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.project-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@keyframes projectSpin {
  from { transform: rotateX(-7deg) rotateY(0); }
  to { transform: rotateX(-7deg) rotateY(360deg); }
}

.carousel-controls {
  display: flex;
  justify-content: center;
  gap: 12px;
}

.round-control {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  color: var(--white);
  background: rgb(255 255 255 / 8%);
  border: 1px solid rgb(255 255 255 / 24%);
  border-radius: 50%;
  cursor: pointer;
}

.round-control:hover {
  background: var(--red-600);
  border-color: var(--red-600);
}

.page-hero {
  --hero-image: url("../img/operations-plant.webp");
  position: relative;
  min-height: 620px;
  display: grid;
  align-items: end;
  color: var(--white);
  isolation: isolate;
  overflow: hidden;
}

.page-hero-content {
  width: min(calc(100% - 40px), var(--content));
  margin: 0 auto;
  padding: 180px 0 80px;
}

.page-hero h1 {
  max-width: 920px;
  font-size: clamp(3rem, 5.6vw, 5.7rem);
}

.page-hero p {
  max-width: 720px;
  margin: 24px 0 0;
  color: rgb(255 255 255 / 85%);
  font-size: 1.125rem;
  line-height: 1.6;
}

.breadcrumb {
  margin-bottom: 22px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgb(255 255 255 / 62%);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.breadcrumb a {
  color: var(--white);
  text-decoration: none;
}

.breadcrumb span::before {
  content: "/";
  margin-right: 10px;
  color: var(--red-500);
}

.subnav {
  position: relative;
  z-index: 10;
  margin-top: -1px;
  color: var(--white);
  background: var(--blue-800);
}

.subnav-inner {
  width: min(calc(100% - 40px), var(--content));
  margin-inline: auto;
  display: flex;
  gap: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.subnav-inner::-webkit-scrollbar {
  display: none;
}

.subnav a {
  padding: 18px 22px;
  flex: 0 0 auto;
  color: rgb(255 255 255 / 72%);
  border-right: 1px solid rgb(255 255 255 / 12%);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}

.subnav a:hover,
.subnav a.is-active {
  color: var(--white);
  background: var(--red-600);
}

.service-band {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.service-tile {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--white);
}

.service-tile strong {
  display: block;
  color: var(--blue-800);
  font-size: 1.12rem;
}

.service-tile span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.92rem;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.data-table {
  width: 100%;
  min-width: 980px;
  border-collapse: collapse;
  background: var(--white);
}

.data-table th,
.data-table td {
  padding: 20px 24px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}

.data-table th {
  color: var(--white);
  background: var(--blue-950);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.data-table td:first-child {
  color: var(--blue-950);
  font-weight: 800;
}

.data-table tr:last-child td {
  border-bottom: 0;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
  counter-reset: process;
}

.process-step {
  position: relative;
  min-height: 240px;
  padding: 28px 25px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  border-left: 1px solid var(--line);
  counter-increment: process;
}

.process-step:last-child {
  border-right: 1px solid var(--line);
}

.process-step::before {
  content: "0" counter(process);
  display: block;
  margin-bottom: 34px;
  color: var(--red-600);
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.process-step h3 {
  margin: 0 0 10px;
  color: var(--blue-950);
  font-size: 1.15rem;
}

.process-step p {
  margin: 0;
  color: var(--muted);
  font-size: 0.91rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: 155px;
  gap: 14px;
}

.gallery-item {
  position: relative;
  grid-column: span 4;
  grid-row: span 2;
  border: 0;
  padding: 0;
  background: var(--blue-950);
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: zoom-in;
}

.gallery-item:nth-child(1),
.gallery-item:nth-child(6) {
  grid-column: span 8;
  grid-row: span 3;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms ease, opacity 300ms ease;
}

.gallery-item:hover img {
  opacity: 0.8;
  transform: scale(1.04);
}

.lightbox {
  position: fixed;
  z-index: 2000;
  inset: 0;
  padding: 32px;
  display: none;
  place-items: center;
  background: rgb(1 10 29 / 94%);
}

.lightbox.is-open {
  display: grid;
}

.lightbox img {
  max-width: min(1400px, 92vw);
  max-height: 85vh;
  border-radius: 12px;
  box-shadow: 0 25px 80px rgb(0 0 0 / 58%);
}

.lightbox-close {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 48px;
  height: 48px;
  color: var(--white);
  background: transparent;
  border: 1px solid rgb(255 255 255 / 35%);
  border-radius: 50%;
  font-size: 1.7rem;
  cursor: pointer;
}

.cta-panel {
  position: relative;
  padding: 70px;
  color: var(--white);
  background:
    linear-gradient(100deg, rgb(1 33 105 / 98%), rgb(1 33 105 / 76%)),
    url("../img/fleet.webp") center / cover no-repeat;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.cta-panel::after {
  content: "";
  position: absolute;
  top: -100px;
  right: -100px;
  width: 330px;
  height: 330px;
  border: 70px solid rgb(255 255 255 / 5%);
  border-radius: 50%;
}

.cta-panel > * {
  position: relative;
  z-index: 1;
}

.cta-panel h2 {
  max-width: 760px;
}

.cta-panel p {
  max-width: 680px;
  margin: 20px 0 30px;
  color: rgb(255 255 255 / 85%);
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(330px, 0.72fr) minmax(0, 1.28fr);
  gap: 60px;
}

.contact-info {
  padding: 42px;
  color: var(--white);
  background: var(--blue-950);
  border-radius: var(--radius-md);
}

.contact-info h2 {
  margin: 0 0 16px;
  font-size: 2rem;
}

.contact-info > p {
  color: rgb(255 255 255 / 85%);
}

.contact-phone-list {
  padding: 0;
  margin: 12px 0 0;
  display: grid;
  gap: 8px;
  color: var(--white);
  font-size: 0.96rem;
  font-weight: 700;
  list-style: none;
}

.contact-detail {
  margin-top: 32px;
  padding-top: 26px;
  border-top: 1px solid rgb(255 255 255 / 15%);
}

.contact-detail strong {
  display: block;
  color: var(--red-500);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.contact-detail span {
  display: block;
  margin-top: 8px;
  color: var(--white);
}

.contact-email-button {
  margin-top: 12px;
  padding: 12px 16px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border-radius: 999px;
  text-decoration: none;
}

.contact-form {
  padding: 42px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.contact-form h2 {
  margin: 0 0 8px;
  color: var(--blue-950);
  font-size: 2.1rem;
}

.contact-form > p {
  margin: 0 0 30px;
  color: var(--muted);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 21px;
}

.field {
  display: grid;
  gap: 8px;
}

.field-full {
  grid-column: 1 / -1;
}

.field label {
  color: var(--blue-950);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.field label span {
  color: var(--muted);
  font-weight: 500;
  letter-spacing: 0;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  color: var(--ink);
  background: var(--surface);
  border: 2px solid #aebdd0;
  border-radius: 10px;
  padding: 14px 15px;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.field textarea {
  min-height: 150px;
  resize: vertical;
}

.attachment-field input[type="file"] {
  padding: 8px;
  color: var(--muted);
  background: var(--white);
}

.attachment-field input[type="file"]::file-selector-button {
  margin-right: 14px;
  padding: 10px 14px;
  color: var(--white);
  background: var(--blue-800);
  border: 0;
  border-radius: 7px;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 160ms ease;
}

.attachment-field input[type="file"]::file-selector-button:hover {
  background: var(--blue-700);
}

.file-help {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.45;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  background: var(--white);
  border-color: var(--blue-500);
  box-shadow: 0 0 0 4px rgb(22 112 219 / 18%);
  outline: none;
}

.field input.is-invalid,
.field textarea.is-invalid,
.field select.is-invalid {
  border-color: var(--error);
}

.field-error {
  min-height: 1.1em;
  color: var(--error);
  font-size: 0.78rem;
}

.form-actions {
  margin-top: 26px;
  display: flex;
  align-items: center;
  gap: 18px;
}

.form-actions button[disabled] {
  cursor: wait;
  opacity: 0.68;
}

.form-status {
  margin-top: 18px;
  padding: 13px 16px;
  display: none;
  border-radius: 9px;
  font-weight: 700;
}

.form-status.is-success {
  display: block;
  color: #075b39;
  background: #e7f7ef;
  border: 1px solid #bce8d1;
}

.form-status.is-error {
  display: block;
  color: #88182a;
  background: #fff0f2;
  border: 1px solid #f2c2ca;
}

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

.legal-copy {
  max-width: 880px;
}

.legal-copy h2 {
  margin: 48px 0 12px;
  color: var(--blue-950);
  font-size: 1.6rem;
}

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

.site-footer {
  padding: 76px 0 0;
  color: var(--white);
  background: #03132f;
}

.footer-grid {
  width: min(calc(100% - 40px), var(--content));
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1.5fr 0.7fr 0.7fr 1fr;
  gap: 54px;
}

.footer-logo {
  width: 160px;
  display: inline-block;
  padding: 3px 7px;
  background: rgb(255 255 255 / 94%);
  border: 1px solid rgb(255 255 255 / 75%);
  border-radius: 10px;
  box-shadow: 0 8px 22px rgb(0 0 0 / 18%);
}

.footer-logo img {
  width: 100%;
  height: auto;
  filter: none;
}

.footer-arabic-brand {
  margin: 20px 0 8px;
  color: rgb(255 255 255 / 92%);
  font-family: Tahoma, Arial, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.8;
  overflow-wrap: anywhere;
}

.footer-brand p,
.footer-contact p {
  max-width: 340px;
  color: rgb(255 255 255 / 85%);
}

.footer-socials {
  margin-top: 22px;
}

.site-footer h2 {
  margin: 0 0 22px;
  color: var(--white);
  font-size: 0.79rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.footer-links {
  display: grid;
  gap: 10px;
}

.footer-links a {
  color: rgb(255 255 255 / 72%);
  font-size: 0.92rem;
  text-decoration: none;
  transition: color 160ms ease;
}

.footer-links a:hover {
  color: var(--white);
}

.footer-email {
  margin-top: 18px;
  padding: 12px 16px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border-radius: 999px;
  text-decoration: none;
}

.footer-email span {
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.footer-bottom {
  width: min(calc(100% - 40px), var(--content));
  margin: 62px auto 0;
  padding: 22px 0;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  color: rgb(255 255 255 / 42%);
  border-top: 1px solid rgb(255 255 255 / 10%);
  font-size: 0.78rem;
}

.footer-bottom p {
  margin: 0;
}

.footer-bottom a {
  color: inherit;
  text-decoration-color: rgb(255 255 255 / 30%);
  text-underline-offset: 3px;
}

.plain-list {
  display: grid;
  gap: 10px;
}

.plain-list a {
  color: var(--blue-800);
  font-weight: 750;
  text-decoration-color: rgb(1 33 105 / 22%);
  text-underline-offset: 4px;
}

.calculator-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 28px;
}

.calculator-panel,
.calculator-result {
  padding: 40px;
  border-radius: var(--radius-md);
}

.calculator-panel {
  display: grid;
  gap: 24px;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.calculator-fields {
  margin-top: 0;
}

.calculator-error {
  min-height: 1.4em;
  margin: 0;
  color: var(--error);
  font-weight: 700;
}

.calculator-result {
  color: var(--white);
  background:
    radial-gradient(circle at 100% 0, rgb(22 112 219 / 38%), transparent 40%),
    var(--blue-950);
}

.calculator-result .eyebrow {
  margin-bottom: 28px;
}

.calculator-result > p:not(.eyebrow) {
  color: rgb(255 255 255 / 85%);
}

.result-value {
  padding: 22px 0;
  border-top: 1px solid rgb(255 255 255 / 15%);
}

.result-value strong {
  display: block;
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  line-height: 1;
  letter-spacing: -0.05em;
}

.result-value span {
  display: block;
  margin-top: 8px;
  color: rgb(255 255 255 / 56%);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.toast {
  position: fixed;
  z-index: 3000;
  right: 24px;
  bottom: 24px;
  max-width: 360px;
  padding: 14px 18px;
  color: var(--white);
  background: var(--blue-950);
  border-left: 4px solid var(--red-600);
  border-radius: 8px;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  pointer-events: none;
  transform: translateY(15px);
  transition: opacity 200ms ease, transform 200ms ease;
}

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

[data-reveal] {
  opacity: 0;
  transform: translateY(25px);
  transition: opacity 650ms ease, transform 650ms ease;
}

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

@media (max-width: 1240px) {
  .header-socials { display: none; }
}

@media (max-width: 1080px) {
  :root { --header-height: 78px; }

  .primary-nav { gap: 17px; }
  .primary-nav a { font-size: 0.72rem; }
  .brand,
  .footer-logo { width: 150px; }
  .header-inner { gap: 22px; }

  .hero-stat-bar { grid-template-columns: repeat(3, 1fr); }
  .hero-stat:nth-child(3) { border-right: 0; }
  .hero-stat:nth-child(n + 4) { border-top: 1px solid rgb(255 255 255 / 15%); }

  .card-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .process-grid { grid-template-columns: repeat(3, 1fr); }
  .process-step:nth-child(3) { border-right: 1px solid var(--line); }
  .process-step:nth-child(n + 4) { border-top: 0; }
  .service-band { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1.3fr 0.7fr 0.7fr; }
  .footer-contact { grid-column: 1 / -1; }
}

@media (max-width: 880px) {
  .nav-toggle { display: block; }
  .header-email { display: none; }

  .primary-nav {
    position: fixed;
    z-index: -1;
    inset: 0;
    padding: 120px 34px 40px;
    display: grid;
    align-content: start;
    gap: 5px;
    background: rgb(3 19 47 / 98%);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-18px);
    transition: opacity 180ms ease, visibility 180ms ease, transform 180ms ease;
  }

  .primary-nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .primary-nav a {
    padding: 13px 0;
    font-size: 1.1rem;
  }

  .primary-nav a::after { bottom: 8px; }

  .section-heading,
  .split,
  .contact-layout,
  .calculator-layout {
    grid-template-columns: 1fr;
    gap: 42px;
  }

  .split-reverse .split-media { order: 0; }
  .section-heading { align-items: start; }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .metric-grid { grid-template-columns: repeat(2, 1fr); }

  .gallery-item,
  .gallery-item:nth-child(1),
  .gallery-item:nth-child(6) {
    grid-column: span 6;
    grid-row: span 2;
  }

  .carousel-stage { height: 440px; }
  .project-carousel { width: 245px; height: 160px; }
  .project-card { transform: rotateY(calc(var(--i) * var(--carousel-angle, 45deg))) translateZ(420px); }

  .footer-grid { grid-template-columns: 1.4fr 0.8fr 0.8fr; }
}

@media (max-width: 640px) {
  :root { --header-height: 72px; }

  .header-inner,
  .container,
  .hero-content,
  .hero-stat-bar,
  .page-hero-content,
  .subnav-inner,
  .footer-grid,
  .footer-bottom {
    width: min(calc(100% - 28px), var(--content));
  }

  .brand,
  .footer-logo { width: 132px; }
  .section { padding: 76px 0; }
  .section-sm { padding: 58px 0; }

  .hero {
    min-height: auto;
    padding-top: 70px;
  }

  .hero-content { padding: 130px 0 52px; }
  .hero h1 {
    font-size: clamp(2.35rem, 11vw, 3.65rem);
    line-height: 1.22;
  }
  .hero-lead { font-size: 1rem; }
  .hero-actions { align-items: stretch; }
  .hero-actions .button { width: 100%; }

  .hero-stat-bar { grid-template-columns: repeat(2, 1fr); }
  .hero-stat { min-height: 94px; padding: 18px 15px; }
  .hero-stat:nth-child(2n) { border-right: 0; }
  .hero-stat:nth-child(3) { border-right: 1px solid rgb(255 255 255 / 15%); }
  .hero-stat:nth-child(n + 3) { border-top: 1px solid rgb(255 255 255 / 15%); }
  .hero-stat:last-child { grid-column: 1 / -1; border-right: 0; }

  .page-hero { min-height: 520px; }
  .page-hero-content { padding: 150px 0 58px; }
  .page-hero h1 {
    font-size: clamp(2.2rem, 10vw, 2.9rem);
    line-height: 1.22;
  }

  .section-heading { gap: 22px; margin-bottom: 38px; }
  .section-heading h2,
  .split-content h2,
  .cta-panel h2 { font-size: 2.45rem; }

  .card-grid,
  .card-grid-4,
  .service-band,
  .metric-grid,
  .process-grid,
  .form-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .feature-card { min-height: 0; }
  .split-media img { min-height: 320px; }
  .metric { min-height: 145px; }

  .process-step,
  .process-step:nth-child(3),
  .process-step:nth-child(n + 4) {
    min-height: 0;
    border: 1px solid var(--line);
    border-bottom: 0;
  }
  .process-step:last-child { border-bottom: 1px solid var(--line); }

  .project-showcase { padding-top: 78px; }
  .carousel-stage { height: 350px; }
  .project-carousel { width: 190px; height: 126px; }
  .project-card { transform: rotateY(calc(var(--i) * var(--carousel-angle, 45deg))) translateZ(330px); }

  .gallery-grid { grid-auto-rows: 135px; }
  .gallery-item,
  .gallery-item:nth-child(1),
  .gallery-item:nth-child(6) { grid-column: 1 / -1; grid-row: span 2; }

  .cta-panel { padding: 44px 26px; border-radius: var(--radius-md); }
  .contact-form,
  .contact-info { padding: 28px 22px; }
  .form-actions { align-items: stretch; flex-direction: column; }
  .form-actions .button { width: 100%; }

  .footer-grid { gap: 38px; }
  .footer-contact { grid-column: auto; }
  .footer-bottom { align-items: flex-start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
  }

  .project-carousel.allow-motion {
    animation-duration: 52s !important;
    animation-iteration-count: infinite !important;
  }
}
