:root {
  --adnoc-blue: #0057a0;
  --adnoc-blue-dark: #003d73;
  --adnoc-navy: #0b2c4d;
  --adnoc-yellow: #f5c518;
  --adnoc-cyan: #2eb7e5;
  --text-dark: #1a2b3c;
  --text-muted: #4a5b6c;
  --page-bg: #f4f6f8;
  --font-main: "Montserrat", "Segoe UI", Arial, sans-serif;
  --font-display: "Playfair Display", Georgia, serif;
}

/* Arabic (RTL) pages use Noto Kufi Arabic; Latin text falls back to Montserrat */
:root[dir="rtl"] {
  --font-main: "Noto Kufi Arabic", "Montserrat", Tahoma, Arial, sans-serif;
  --font-display: "Noto Kufi Arabic", "Montserrat", Tahoma, Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  font-family: var(--font-main);
  color: var(--text-dark);
  background: #fff;
  overflow-x: hidden;
}

a {
  text-decoration: none;
}

/* Responsive content container — 1270px on xl, fluid below */
.container {
  width: 100%;
  max-width: 100%;
  margin-inline: auto;
  padding-inline: 1rem;
}

@media (min-width: 576px) {
  .container {
    max-width: 540px;
  }
}

@media (min-width: 768px) {
  .container {
    max-width: 720px;
    padding-inline: 1.25rem;
  }
}

@media (min-width: 992px) {
  .container {
    max-width: 960px;
  }
}

@media (min-width: 1200px) {
  .container {
    max-width: 1270px;
    padding-inline: 1.5rem;
  }
}

/* ========== Buttons ========== */
.btn-yellow {
  --bs-btn-color: #111;
  --bs-btn-bg: var(--adnoc-yellow);
  --bs-btn-border-color: transparent;
  --bs-btn-hover-color: #111;
  --bs-btn-hover-bg: #ffd84d;
  --bs-btn-hover-border-color: transparent;
  --bs-btn-active-color: #111;
  --bs-btn-active-bg: var(--adnoc-yellow);
  --bs-btn-active-border-color: transparent;
  --bs-btn-focus-shadow-rgb: 245, 197, 24;
  background: var(--adnoc-yellow);
  color: #111;
  border: none;
  border-radius: 999px;
  padding: 0.45rem 1.1rem;
  font-size: 0.85rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition:
    transform 0.15s ease,
    filter 0.2s ease,
    box-shadow 0.2s ease,
    background-color 0.2s ease;
  box-shadow: 0 4px 14px rgba(245, 197, 24, 0.35);
}

.btn.btn-yellow:hover,
.btn.btn-yellow:focus,
.btn.btn-yellow:active {
  color: #111;
  background-color: #ffd84d;
  border-color: transparent;
  filter: brightness(1.02);
}

.btn-cyan {
  background: var(--adnoc-cyan);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 0.7rem 1.45rem;
  font-size: 0.95rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition:
    background 0.2s ease,
    transform 0.15s ease;
}

.btn-cyan:hover {
  background: #1a9fc9;
  color: #fff;
  transform: translateY(-1px);
}

.btn-find {
  padding: 0.55rem 1.35rem;
  font-size: 0.9rem;
}

/* ========== Fixed navbar ========== */
.site-header {
  z-index: 1040;
  padding: 0.7rem 0;
  min-height: 72px;
  background: rgba(8, 18, 32, 0.28);
  backdrop-filter: blur(10px) saturate(120%);
  -webkit-backdrop-filter: blur(10px) saturate(120%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.55);
  transition:
    background 0.35s ease,
    box-shadow 0.35s ease,
    backdrop-filter 0.35s ease,
    -webkit-backdrop-filter 0.35s ease,
    border-color 0.35s ease;
}

/* عند النزول: تأثير ضبابي (glass) يغطي المحتوى تحته */
.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(22px) saturate(160%);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
  box-shadow: 0 10px 36px rgba(10, 25, 45, 0.12);
  border-bottom-color: rgba(255, 255, 255, 0.9);
}

.brand-logo img {
  width: 48px;
  height: auto;
  background: #fff;
  border-radius: 6px;
  padding: 3px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.nav-pill {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  padding: 0.28rem;
  border-radius: 999px;
  background: rgba(236, 240, 244, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: none;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.1);
}

.nav-pill .nav-link {
  color: var(--adnoc-navy);
  font-size: 0.84rem;
  font-weight: 600;
  padding: 0.5rem 0.95rem;
  border-radius: 999px;
  white-space: nowrap;
}

.nav-pill .nav-link:hover {
  color: var(--adnoc-blue);
  background: rgba(0, 87, 160, 0.08);
}

.nav-pill .nav-link.active {
  background: var(--adnoc-blue);
  color: #fff;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.btn-login {
  background: var(--adnoc-blue);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 0.5rem 1.1rem;
  font-size: 0.85rem;
  font-weight: 600;
}

.btn-login:hover {
  background: var(--adnoc-blue-dark);
  color: #fff;
}

.lang-dropdown {
  position: relative;
}

.btn-lang {
  min-width: 58px;
  height: 36px;
  border-radius: 999px;
  border: none;
  background: var(--adnoc-blue);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0 0.85rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
}

.btn-lang::after {
  margin-left: 0.25rem;
}

.btn-lang:hover,
.btn-lang:focus,
.btn-lang.show {
  background: var(--adnoc-blue-dark);
  color: #fff;
}

.lang-menu {
  min-width: 170px;
  border: none;
  border-radius: 0.85rem;
  padding: 0.4rem;
  margin-top: 0.45rem !important;
  box-shadow: 0 12px 30px rgba(10, 25, 45, 0.18);
}

.lang-menu .dropdown-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  border-radius: 0.65rem;
  padding: 0.65rem 0.8rem;
  font-size: 0.9rem;
  color: var(--adnoc-navy);
}

.lang-menu .dropdown-item:hover,
.lang-menu .dropdown-item:focus {
  background: #eef4f9;
  color: var(--adnoc-blue);
}

.lang-menu .dropdown-item.active {
  background: rgba(0, 87, 160, 0.1);
  color: var(--adnoc-blue);
  font-weight: 700;
}

.lang-code {
  font-weight: 700;
}

.lang-name {
  opacity: 0.85;
  font-size: 0.85rem;
}

/* RTL support (index-ar.html, loaded with bootstrap.rtl.min.css) */
[dir="rtl"] .btn-lang::after {
  margin-left: 0;
  margin-right: 0.25rem;
}

[dir="rtl"] .search-box input {
  text-align: left;
}

[dir="rtl"] .feature-card-meters .meters-visual {
  right: auto;
  left: -6%;
}

[dir="rtl"] .action-copy {
  padding-right: 0;
  padding-left: 1.25rem;
}

[dir="rtl"] .action-arrow {
  right: auto;
  left: 1.05rem;
  transform: scaleX(-1);
}

[dir="rtl"] .action-card:hover .action-arrow {
  transform: scaleX(-1) translateX(4px);
}

[dir="rtl"] .promo-wide .promo-card-inner {
  left: 40%;
  right: 0;
}

[dir="rtl"] .footer-phones {
  text-align: left;
  margin-left: 0;
  margin-right: auto;
}

[dir="rtl"] .back-to-top {
  right: auto;
  left: 1.25rem;
}

@media (max-width: 991.98px) {
  [dir="rtl"] .footer-phones {
    text-align: right;
    margin-right: 0;
  }

  [dir="rtl"] .feature-card-meters .meters-visual {
    right: auto;
    left: -4%;
  }
}

@media (max-width: 575.98px) {
  [dir="rtl"] .back-to-top {
    right: auto;
    left: 0.85rem;
  }
}

.search-box {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.45rem;
  background: rgba(20, 30, 45, 0.42);
  border-radius: 999px;
  padding: 0.42rem 1rem;
  color: #fff;
  width: 210px;
  min-width: 210px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  transition:
    background 0.3s ease,
    color 0.3s ease,
    border-color 0.3s ease;
}

.search-box input {
  background: transparent;
  border: none;
  outline: none;
  color: inherit;
  width: 100%;
  min-width: 0;
  font-size: 0.82rem;
  text-align: right;
}

.search-box input::placeholder {
  color: inherit;
  opacity: 0.8;
}

.site-header.is-scrolled .search-box {
  background: rgba(20, 30, 45, 0.48);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow: none;
}

.navbar-toggler {
  width: 42px;
  height: 42px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: rgba(8, 18, 32, 0.42);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.16);
  transition:
    background 0.25s ease,
    border-color 0.25s ease;
}

.navbar-toggler:focus {
  box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.18);
}

.navbar-toggler[aria-expanded="true"] {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.7);
}

.site-header.is-scrolled .navbar-toggler {
  border-color: rgba(255, 255, 255, 0.65);
  background: rgba(8, 18, 32, 0.35);
}

.navbar-toggler-icon {
  width: 1.15rem;
  height: 1.15rem;
  filter: invert(1);
}

.site-header.is-scrolled .navbar-toggler-icon {
  filter: invert(1);
}

.navbar-collapse.show,
.navbar-collapse.collapsing {
  background: #fff;
  border-radius: 1.25rem;
  padding: 0.85rem;
  margin-top: 0.7rem;
  box-shadow: 0 18px 44px rgba(10, 25, 45, 0.2);
  border: 1px solid rgba(10, 25, 45, 0.06);
}

/* ========== Part 1: Full viewport hero ========== */
.top-hero {
  position: relative;
  height: 100vh;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: visible;
  isolation: isolate;
  z-index: 2;
}

.top-hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.top-hero-fallback,
.top-hero-media video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.top-hero-fallback {
  background:
    linear-gradient(
      180deg,
      rgba(5, 16, 32, 0.35) 0%,
      rgba(5, 16, 32, 0.15) 40%,
      rgba(5, 16, 32, 0.45) 100%
    ),
    url("../media/hero-pipes.jpg") center / cover no-repeat;
}

.top-hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(
    180deg,
    rgba(4, 18, 36, 0.35) 0%,
    rgba(4, 18, 36, 0.12) 40%,
    rgba(4, 18, 36, 0.4) 100%
  );
  pointer-events: none;
}

.hero-body {
  position: relative;
  z-index: 5;
  flex: 1;
  display: flex;
  align-items: center;
  padding: 6.5rem 0 9.5rem;
  color: #fff;
}

.hero-copy {
  max-width: 36rem;
  width: 100%;
}

.hero-title {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.85rem;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.45);
}

.hero-tagline {
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.hero-desc {
  font-size: clamp(0.95rem, 1.5vw, 1.1rem);
  font-weight: 400;
  max-width: 28rem;
  line-height: 1.55;
  margin-bottom: 1.75rem;
  opacity: 0.95;
}

.btn-cta {
  background: var(--adnoc-blue);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 0.75rem 1.6rem;
  font-size: 0.95rem;
  font-weight: 600;
  transition:
    background 0.2s ease,
    transform 0.15s ease;
  box-shadow: 0 8px 24px rgba(0, 87, 160, 0.35);
}

.btn-cta:hover {
  background: #1a7fc4;
  color: #fff;
  transform: translateY(-1px);
}

/* شريط الخدمات الأبيض المتداخل أسفل الهيرو */
.hero-services {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2.75rem;
  z-index: 6;
  padding: 0;
}

.services-panel {
  background: #fff;
  border-radius: 1.75rem;
  padding: 1.15rem 1.5rem 1.2rem;
  box-shadow: 0 10px 32px rgba(10, 25, 45, 0.12);
  overflow: visible;
}

.service-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  color: var(--text-dark);
  height: auto;
  min-height: 100%;
  padding: 0.25rem 0.1rem;
  border-radius: 0.85rem;
  transition:
    background 0.2s ease,
    color 0.2s ease;
}

.service-item:hover {
  background: #f3f7fb;
  color: var(--adnoc-blue);
}

.service-icon {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}

.service-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.service-copy {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  margin-top: 0;
  padding-top: 0;
  min-width: 0;
  overflow: visible;
}

.service-copy strong {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--adnoc-navy);
  line-height: 1.3;
}

.service-copy small {
  display: block;
  font-size: 0.78rem;
  line-height: 1.4;
  color: var(--text-muted);
  font-weight: 400;
  overflow: visible;
  white-space: normal;
}

/* ========== Feature cards ========== */
.feature-cards {
  position: relative;
  z-index: 1;
  padding: 6.5rem 0 0;
  margin-top: 0;
  background: #fff;
  scroll-margin-top: 96px;
}

.feature-cards-row {
  --bs-gutter-x: 1.25rem;
  --bs-gutter-y: 0;
}

.feature-card {
  position: relative;
  min-height: 420px;
  border-radius: 1.5rem;
  overflow: hidden;
  background: #0c1828;
  box-shadow: none;
  color: #fff;
}

.feature-card-who,
.feature-card-what,
.feature-card-meters {
  border-radius: 1.5rem;
}

.feature-card-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.feature-card-media img,
.feature-card-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}

.feature-card-who .feature-card-media img {
  object-position: 65% center;
  background: #000;
}

.feature-card-what .feature-card-media img {
  object-position: center center;
}

.feature-card-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(
      180deg,
      rgba(8, 18, 32, 0.55) 0%,
      transparent 38%,
      rgba(8, 18, 32, 0.55) 100%
    ),
    linear-gradient(
      105deg,
      rgba(8, 18, 32, 0.9) 0%,
      rgba(8, 18, 32, 0.55) 45%,
      rgba(8, 18, 32, 0.15) 100%
    );
}

.feature-card-meters {
  background: linear-gradient(135deg, #004a8f 0%, #0057a0 45%, #0070c0 100%);
}

.feature-card-meters .meters-visual {
  position: absolute;
  right: -6%;
  bottom: 6%;
  z-index: 1;
  width: min(58%, 230px);
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 16px 28px rgba(0, 20, 50, 0.35));
  pointer-events: none;
}

.feature-card-inner {
  position: relative;
  z-index: 2;
  height: 100%;
  min-height: 420px;
  padding: 2.1rem 1.85rem 1.75rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.feature-card-meters .feature-card-inner {
  max-width: 58%;
}

.feature-card h2 {
  font-size: 1.85rem;
  font-weight: 700;
  margin-bottom: 0.85rem;
}

.feature-card p {
  font-size: 0.95rem;
  line-height: 1.5;
  max-width: 16rem;
  margin-bottom: auto;
  opacity: 0.95;
}

.feature-card .btn-yellow {
  margin-top: 1.5rem;
}

/* ========== Our Customers ========== */
.our-customers {
  padding: 4rem 0 4.5rem;
  background: #fff;
}

.customer-card {
  position: relative;
  min-height: 320px;
  border-radius: 1.6rem;
  overflow: hidden;
  background: #050505;
  box-shadow: 0 10px 28px rgba(15, 35, 60, 0.12);
  color: #fff;
}

.customer-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 70%;
  display: block;
}

.customer-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    #050505 0%,
    rgba(5, 5, 5, 0.92) 22%,
    rgba(5, 5, 5, 0.35) 48%,
    rgba(5, 5, 5, 0.05) 68%
  );
  pointer-events: none;
}

.customer-card-inner {
  position: relative;
  z-index: 1;
  padding: 1.25rem 1.15rem 1rem;
  min-height: 320px;
}

.customer-card h3 {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 0.45rem;
  text-align: start;
}

.customer-card p {
  font-size: 0.88rem;
  line-height: 1.45;
  margin: 0;
  max-width: 12.5rem;
  font-weight: 400;
  opacity: 0.95;
  text-align: start;
}

.customers-copy h2 {
  font-size: clamp(2rem, 3vw, 2.6rem);
  font-weight: 700;
  color: #111;
  margin-bottom: 1.1rem;
  text-align: start;
}

.customers-copy p {
  color: #4a5562;
  font-size: 0.98rem;
  line-height: 1.65;
  margin-bottom: 1.6rem;
  text-align: start;
}

/* ========== Quick actions ========== */
.quick-actions {
  padding: 2.5rem 0 3rem;
  background: #d8dce0;
}

.action-card {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  background: #fff;
  border-radius: 0.85rem;
  padding: 1.55rem 1.25rem 2.35rem;
  min-height: 156px;
  color: #111;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
  height: 100%;
}

.action-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.1);
  color: #111;
}

.action-icon {
  font-size: 2.85rem;
  line-height: 1;
  flex-shrink: 0;
  margin-top: 0.05rem;
}

.action-copy {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding-right: 1.25rem;
}

.action-copy strong {
  font-size: 1.05rem;
  font-weight: 700;
  color: #111;
}

.action-copy small {
  font-size: 0.9rem;
  color: #222;
  font-weight: 400;
  line-height: 1.35;
}

.action-arrow {
  position: absolute;
  right: 1.05rem;
  bottom: 0.75rem;
  font-size: 1.85rem;
  font-weight: 500;
  line-height: 1;
}

.action-blue .action-icon,
.action-blue .action-arrow {
  color: #1f6fb5;
}

.action-yellow .action-icon,
.action-yellow .action-arrow {
  color: #e6b422;
}

.action-teal .action-icon,
.action-teal .action-arrow {
  color: #2aa3a0;
}

.action-navy .action-icon,
.action-navy .action-arrow {
  color: #2f6fa8;
}

/* ========== Our Network ========== */
.network-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  background: #fff;
  overflow: visible;
  margin-top: 0;
  padding-bottom: 0;
}

.network-stage {
  position: relative;
  min-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #e8eef3;
}

.network-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.network-media video {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.network-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.35) 0%,
      rgba(255, 255, 255, 0.12) 45%,
      rgba(255, 255, 255, 0.4) 100%
    ),
    radial-gradient(
      circle at 50% 45%,
      rgba(255, 255, 255, 0.35),
      transparent 55%
    );
  pointer-events: none;
}

.network-content {
  position: relative;
  z-index: 3;
  padding-block: 4.5rem 3rem;
  text-align: center;
}

.network-title {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 6vw, 4.2rem);
  color: var(--adnoc-blue-dark);
  font-weight: 700;
  margin-bottom: 1.25rem;
  letter-spacing: -0.02em;
}

/* ========== Dual promo cards ========== */
.dual-cards {
  position: relative;
  z-index: 1;
  padding-block: 0 2.5rem;
  margin-inline: auto; /* keep centered when combined with .container */
  background: #fff;
}

.dual-cards-row {
  --bs-gutter-x: 1.15rem;
  --bs-gutter-y: 0;
  align-items: stretch;
}

.promo-card {
  position: relative;
  min-height: 340px;
  height: 100%;
  border-radius: 1.5rem;
  overflow: hidden;
  background: var(--card-image) center / cover no-repeat;
  box-shadow: 0 12px 30px rgba(10, 25, 45, 0.16);
  color: #fff;
}

.promo-wide {
  min-height: 360px;
  background: #111;
}

.promo-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 72% center;
  display: block;
}

.promo-wide::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    90deg,
    rgba(6, 10, 18, 0.72) 0%,
    rgba(6, 10, 18, 0.28) 34%,
    rgba(6, 10, 18, 0.05) 58%
  );
  pointer-events: none;
}

.promo-commitment {
  min-height: 360px;
  background: #050505;
}

.promo-card-inner {
  position: relative;
  z-index: 2;
  padding: 1.85rem 1.8rem 1rem;
  display: flex;
  flex-direction: column;
}

.promo-wide .promo-card-inner {
  position: absolute;
  top: 0;
  left: 0;
  right: 40%;
  min-height: 0;
}

.promo-flame {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  width: 100%;
  height: 52%;
  object-fit: cover;
  object-position: center center;
  display: block;
}

.promo-wide p {
  max-width: 13.5rem;
  font-size: 1.15rem;
  font-weight: 500;
  line-height: 1.45;
  margin: 0;
}

.promo-commitment .promo-card-inner {
  padding: 1.7rem 1.55rem 0;
}

.promo-commitment h3 {
  font-size: 1.28rem;
  font-weight: 400;
  margin: 0;
  line-height: 1.35;
  color: #f4f4f4;
}

.promo-commitment h3:first-child {
  font-size: 1.65rem;
  font-weight: 700;
  color: #ddd8f0;
  margin-bottom: 0.2rem;
}

/* ========== Virtual Pipeline ========== */
.virtual-pipeline {
  padding: 4rem 0 5rem;
  background: #fff;
}

.vp-title {
  font-size: clamp(2rem, 4vw, 2.85rem);
  font-weight: 700;
  line-height: 1.2;
  color: #111;
  margin-bottom: 1.25rem;
}

@media (max-width: 1399.98px) {
  .vp-title {
    font-size: clamp(1.45rem, 2.1vw, 1.9rem);
  }
}

.vp-text {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.6;
  max-width: 28rem;
  margin-bottom: 1.75rem;
}

.vp-media {
  position: relative;
  border-radius: 1.5rem;
  overflow: hidden;
  min-height: 0;
  aspect-ratio: 2.55 / 1;
  box-shadow: 0 14px 36px rgba(15, 35, 60, 0.14);
}

.vp-photo,
.vp-media video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}

/* ========== Safety (last section) ========== */
.safety-section {
  padding: 4rem 0 4.5rem;
  background: #061a36;
  color: #fff;
  overflow: hidden;
}

.safety-intro h2 {
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1.1rem;
}

.safety-intro p {
  font-size: 0.95rem;
  line-height: 1.6;
  opacity: 0.92;
  margin-bottom: 1.5rem;
  max-width: 22rem;
}

.btn-safety {
  --bs-btn-color: #fff;
  --bs-btn-bg: #0a3f78;
  --bs-btn-border-color: transparent;
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: #083566;
  --bs-btn-hover-border-color: transparent;
  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: #083566;
  --bs-btn-active-border-color: transparent;
  background: #0a3f78;
  color: #fff;
  border: none;
  border-radius: 0.55rem;
  padding: 0.75rem 1.25rem;
  font-size: 0.9rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition:
    background 0.2s ease,
    transform 0.15s ease;
}

.btn.btn-safety:hover,
.btn.btn-safety:focus,
.btn.btn-safety:active {
  background: #083566;
  color: #fff;
  border-color: transparent;
}

.safety-visual {
  position: relative;
  border-radius: 0.5rem;
  overflow: hidden;
  min-height: 320px;
  mask-image: radial-gradient(
    ellipse 70% 80% at 50% 50%,
    #000 45%,
    transparent 85%
  );
  -webkit-mask-image: radial-gradient(
    ellipse 70% 80% at 50% 50%,
    #000 45%,
    transparent 85%
  );
}

.safety-visual img {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.safety-item {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
}

.safety-item-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1.5px solid rgba(180, 210, 255, 0.85);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.65rem;
  margin-bottom: 0;
  flex-shrink: 0;
  color: #fff;
}

.safety-item-copy {
  min-width: 0;
}

.safety-item h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.45rem;
  line-height: 1.3;
}

.safety-item p {
  font-size: 0.85rem;
  line-height: 1.45;
  margin: 0;
  opacity: 0.88;
  max-width: 16rem;
}

@media (max-width: 991.98px) {
  .safety-visual {
    mask-image: none;
    -webkit-mask-image: none;
    border-radius: 1rem;
  }
}

/* ========== Footer ========== */
.site-footer {
  padding: 2.75rem 0 3rem;
  background: #00366d;
  color: #fff;
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem 2rem;
}

.footer-brand img {
  width: 56px;
  height: auto;
  display: block;
}

.footer-address {
  flex: 1 1 240px;
  max-width: 360px;
}

.footer-address p,
.footer-phones p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.55;
  font-weight: 500;
}

.footer-phones {
  text-align: right;
  margin-left: auto;
}

.footer-phones a {
  color: #fff;
}

.footer-phones a:hover {
  color: #9fd0ff;
}

.footer-directions {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.65rem;
  color: #fff;
  font-size: 0.92rem;
  font-weight: 600;
}

.footer-directions:hover {
  color: #9fd0ff;
}

.footer-divider {
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.55);
  margin: 1.75rem 0 1.75rem;
  opacity: 1;
}

.footer-links {
  display: grid;
  grid-template-columns: minmax(280px, 1.4fr) minmax(220px, 1fr) minmax(
      140px,
      0.7fr
    );
  gap: 2rem 2.5rem;
}

.footer-col h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.9rem;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-col li + li {
  margin-top: 0.55rem;
}

.footer-col a {
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.92rem;
  font-weight: 400;
  transition: color 0.2s ease;
}

.footer-col a:hover {
  color: #9fd0ff;
}

.footer-col-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem 2rem;
}

@media (max-width: 991.98px) {
  .footer-phones {
    text-align: left;
    margin-left: 0;
  }

  .footer-links {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 575.98px) {
  .footer-links {
    grid-template-columns: 1fr;
  }

  .footer-col-grid {
    grid-template-columns: 1fr;
    gap: 0.55rem;
  }
}

/* ========== Error pages (403 / 404) ========== */
.error-hero .hero-body {
  align-items: center;
  padding: 7rem 0 4rem;
}

.error-hero .hero-copy {
  max-width: 40rem;
  margin-inline: auto;
  text-align: center;
}

.error-hero .hero-desc {
  max-width: 32rem;
  margin-inline: auto;
}

.error-code {
  font-family: var(--font-display);
  font-size: clamp(6rem, 18vw, 11rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.02em;
  color: var(--adnoc-yellow);
  margin-bottom: 0.5rem;
  text-shadow:
    0 0 32px rgba(245, 197, 24, 0.35),
    0 4px 24px rgba(0, 0, 0, 0.45);
}

.error-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

.btn-ghost {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 999px;
  padding: 0.75rem 1.6rem;
  font-size: 0.95rem;
  font-weight: 600;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    transform 0.15s ease;
}

.btn-ghost:hover,
.btn-ghost:focus {
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
  border-color: #fff;
  transform: translateY(-1px);
}

.error-code,
.error-actions .btn-ghost {
  opacity: 0;
  transform: translateY(22px);
  animation: heroIn 0.85s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.error-actions .btn-ghost {
  animation-delay: 0.7s;
}

@media (max-width: 575.98px) {
  .error-hero .hero-body {
    padding: 6rem 0 3rem;
  }

  .error-actions .btn {
    width: 100%;
  }
}

/* ========== Motion & interactions ========== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

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

.reveal-left {
  opacity: 0;
  transform: translateX(-32px);
  transition:
    opacity 0.75s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
}

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

.reveal-right {
  opacity: 0;
  transform: translateX(32px);
  transition:
    opacity 0.75s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
}

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

[dir="rtl"] .reveal-left {
  transform: translateX(32px);
}

[dir="rtl"] .reveal-right {
  transform: translateX(-32px);
}

[dir="rtl"] .reveal-left.is-visible,
[dir="rtl"] .reveal-right.is-visible {
  transform: translateX(0);
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.94);
  transition:
    opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

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

.delay-1 {
  transition-delay: 0.08s;
}
.delay-2 {
  transition-delay: 0.16s;
}
.delay-3 {
  transition-delay: 0.24s;
}
.delay-4 {
  transition-delay: 0.32s;
}

.hero-title,
.hero-tagline,
.hero-desc,
.btn-cta {
  opacity: 0;
  transform: translateY(22px);
  animation: heroIn 0.85s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.hero-title {
  animation-delay: 0.15s;
}
.hero-tagline {
  animation-delay: 0.3s;
}
.hero-desc {
  animation-delay: 0.45s;
}
.btn-cta {
  animation-delay: 0.6s;
}

@keyframes heroIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.feature-card,
.promo-card,
.customer-card,
.action-card,
.service-item,
.safety-item {
  transition:
    transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.35s ease,
    background 0.25s ease;
}

.feature-card:hover {
  transform: none;
  box-shadow: none;
}

.promo-card:hover,
.customer-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 18px 40px rgba(10, 25, 45, 0.22);
}

.service-item:hover .service-icon {
  transform: scale(1.08);
}

.service-icon {
  transition: transform 0.3s ease;
}

.action-arrow {
  transition: transform 0.25s ease;
}

.action-card:hover .action-arrow {
  transform: translateX(4px);
}

.btn-yellow,
.btn-cyan,
.btn-cta,
.btn-safety,
.btn-login {
  transition:
    transform 0.2s ease,
    background 0.2s ease,
    box-shadow 0.25s ease,
    filter 0.2s ease;
}

.btn-yellow:hover,
.btn-cyan:hover,
.btn-cta:hover,
.btn-safety:hover,
.btn-login:hover {
  transform: translateY(-2px);
}

.btn-cta:hover {
  box-shadow: 0 12px 28px rgba(0, 87, 160, 0.45);
}

.safety-item:hover .safety-item-icon {
  background: rgba(255, 255, 255, 0.12);
  transform: scale(1.06);
}

.safety-item-icon {
  transition:
    transform 0.3s ease,
    background 0.3s ease;
}

.vp-media {
  transition:
    transform 0.45s ease,
    box-shadow 0.45s ease;
}

.vp-media:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 44px rgba(15, 35, 60, 0.2);
}

.nav-pill .nav-link {
  transition:
    background 0.25s ease,
    color 0.25s ease,
    transform 0.2s ease;
}

.nav-pill .nav-link:hover {
  transform: translateY(-1px);
}

.back-to-top {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 1050;
  width: 46px;
  height: 46px;
  border: none;
  border-radius: 50%;
  background: var(--adnoc-blue);
  color: #fff;
  font-size: 1.2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 22px rgba(0, 87, 160, 0.35);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition:
    opacity 0.25s ease,
    visibility 0.25s ease,
    transform 0.25s ease,
    background 0.2s ease;
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--adnoc-blue-dark);
  color: #fff;
}

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .reveal-left,
  .reveal-right,
  .reveal-scale,
  .hero-title,
  .hero-tagline,
  .hero-desc,
  .btn-cta,
  .error-code,
  .btn-ghost {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
    transition: none !important;
  }
}

/* ========== Responsive ========== */
@media (min-width: 1200px) and (max-width: 1399.98px) {
  .nav-pill .nav-link {
    font-size: 0.74rem;
    padding: 0.45rem 0.6rem;
  }

  .search-box {
    width: 160px;
    min-width: 160px;
  }

  .btn-login {
    padding: 0.45rem 0.85rem;
    font-size: 0.8rem;
  }

  .header-actions {
    gap: 0.4rem;
  }
}

@media (max-width: 991.98px) {
  .site-header {
    min-height: auto;
    padding: 0.55rem 0;
  }

  .site-header > .container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.35rem;
  }

  .brand-logo {
    margin: 0;
  }

  .brand-logo img {
    width: 44px;
  }

  /* قائمة الموبايل: روابط عمودية واضحة */
  .nav-pill {
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0.2rem;
    width: 100%;
    margin: 0 0 0.85rem;
    padding: 0.35rem;
    border-radius: 1rem;
    background: #f2f5f8;
    box-shadow: none;
  }

  .nav-pill .nav-item {
    width: 100%;
  }

  .nav-pill .nav-link {
    width: 100%;
    text-align: start;
    padding: 0.85rem 1rem;
    border-radius: 0.8rem;
    font-size: 0.95rem;
    line-height: 1.3;
    white-space: normal;
  }

  .nav-pill .nav-link.active {
    box-shadow: 0 6px 16px rgba(0, 87, 160, 0.28);
  }

  /* أزرار الإجراءات مرتبة وواضحة */
  .header-actions {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    flex-wrap: nowrap;
    gap: 0.65rem;
    padding-top: 0.85rem;
    border-top: 1px solid rgba(11, 44, 77, 0.1);
  }

  .header-actions .btn-login {
    width: 100%;
    order: 2;
    padding: 0.8rem 1rem;
    font-size: 0.92rem;
    border-radius: 0.85rem;
    text-align: center;
  }

  .header-actions .lang-dropdown {
    order: 3;
    width: 100%;
  }

  .header-actions .btn-lang {
    width: 100%;
    height: 44px;
    border-radius: 0.85rem;
    font-size: 0.85rem;
  }

  .header-actions .search-box {
    order: 1;
    width: 100%;
    min-width: 0;
    padding: 0.75rem 1rem;
    border-radius: 0.85rem;
    background: #e8eef4;
    color: var(--adnoc-navy);
    border-color: transparent;
  }

  .header-actions .search-box input {
    width: 100%;
    font-size: 0.92rem;
  }

  .header-actions .search-box input::placeholder {
    color: var(--text-muted);
  }

  .site-header.is-scrolled .header-actions .search-box {
    background: #e8eef4;
    color: var(--adnoc-navy);
    border-color: transparent;
  }

  .lang-menu {
    width: 100%;
  }

  .top-hero {
    height: auto;
    min-height: 100svh;
  }

  .hero-body {
    padding: 6rem 0 2rem;
    align-items: flex-end;
  }

  .hero-services {
    position: relative;
    bottom: auto;
    margin-top: 0.75rem;
  }

  .services-panel {
    border-radius: 1.35rem;
    padding: 1rem 1.15rem 1.1rem;
  }

  .feature-cards {
    padding: 1.75rem 0 0;
  }

  .feature-card-who,
  .feature-card-what,
  .feature-card-meters {
    border-radius: 1.25rem;
  }

  .feature-cards-row {
    --bs-gutter-x: 0.85rem;
    --bs-gutter-y: 0.85rem;
  }

  .feature-card,
  .feature-card-inner,
  .promo-card,
  .promo-card-inner {
    min-height: 320px;
  }

  .customer-card,
  .customer-card-inner {
    min-height: 280px;
  }

  .feature-card-meters .feature-card-inner {
    max-width: 62%;
  }

  .feature-card-meters .meters-visual {
    width: min(52%, 190px);
    right: -4%;
  }

  .network-stage {
    min-height: 340px;
  }

  .dual-cards-row {
    --bs-gutter-y: 0.85rem;
  }

  .promo-wide,
  .promo-commitment,
  .promo-wide .promo-card-inner {
    min-height: 300px;
    border-radius: 1.25rem;
  }

  .virtual-pipeline,
  .our-customers,
  .safety-section {
    padding: 3rem 0;
  }

  .footer-phones {
    text-align: left;
    margin-left: 0;
  }
}

/* لابتوب مصغّر وتابلت: النصوص في الوسط والأزرار بعرض القسم */
@media (max-width: 1199.98px) {
  .virtual-pipeline .col-lg-4,
  .customers-copy,
  .safety-intro {
    text-align: center;
  }

  .virtual-pipeline .vp-title,
  .virtual-pipeline .vp-text,
  .customers-copy h2,
  .customers-copy p,
  .safety-intro h2,
  .safety-intro p {
    text-align: center;
    margin-inline: auto;
  }

  .virtual-pipeline .btn-cyan,
  .customers-copy .btn-cyan,
  .safety-intro .btn-safety {
    display: flex;
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 767.98px) {
  .top-hero {
    height: auto;
    min-height: 100svh;
  }

  .hero-services {
    position: relative;
    bottom: auto;
    margin-top: 1.25rem;
    margin-bottom: 0.5rem;
    padding: 0;
  }

  .services-panel {
    border-radius: 1.25rem;
  }

  .feature-cards {
    padding: 2rem 0 0;
  }

  .feature-card-who,
  .feature-card-what,
  .feature-card-meters {
    border-radius: 1.15rem;
  }

  .hero-body {
    padding: 6rem 0 1.5rem;
    align-items: center;
  }

  .hero-title {
    font-size: 2.1rem;
  }

  .virtual-pipeline .vp-title,
  .virtual-pipeline .vp-text {
    text-align: center;
    margin-inline: auto;
  }

  .virtual-pipeline .btn-cyan {
    display: flex;
    width: 100%;
    justify-content: center;
  }

  .virtual-pipeline .col-lg-4 {
    text-align: center;
  }

  .customers-copy {
    text-align: center;
  }

  .customers-copy h2,
  .customers-copy p {
    text-align: center;
  }

  .customers-copy .btn-cyan {
    display: flex;
    width: 100%;
    justify-content: center;
  }

  .safety-intro {
    text-align: center;
  }

  .safety-intro h2,
  .safety-intro p {
    text-align: center;
    margin-inline: auto;
  }

  .safety-intro .btn-safety {
    display: flex;
    width: 100%;
    justify-content: center;
  }

  .quick-actions,
  .feature-cards {
    padding-inline: 0;
  }

  .action-card {
    min-height: 140px;
  }

  .safety-intro h2 br {
    display: none;
  }
}

@media (max-width: 575.98px) {
  .brand-logo img {
    width: 40px;
  }

  .navbar-toggler {
    width: 40px;
    height: 40px;
    border-radius: 11px;
  }

  .navbar-collapse.show,
  .navbar-collapse.collapsing {
    padding: 0.7rem;
    border-radius: 1.1rem;
  }

  .nav-pill .nav-link {
    padding: 0.8rem 0.9rem;
    font-size: 0.92rem;
  }

  .feature-card h2 {
    font-size: 1.45rem;
  }

  .feature-card-meters .feature-card-inner {
    max-width: 100%;
  }

  .feature-card-meters .meters-visual {
    width: 42%;
    max-width: 160px;
    opacity: 0.95;
  }

  .promo-wide p {
    font-size: 1.05rem;
  }

  .vp-title {
    font-size: 1.85rem;
  }

  .network-title {
    font-size: 2.4rem;
  }

  .back-to-top {
    right: 0.85rem;
    bottom: 0.85rem;
    width: 42px;
    height: 42px;
  }
}
