/* ==========================================================================
   Nexus Base Aesthetics (Crown Agents Bank Inspired)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Mulish:ital,wght@0,200..1000;1,200..1000&family=Playfair+Display:ital,wght@0,400..900;1,400..900&display=swap');

:root {
  /* Color Palette */
  --c-primary-dark: #112b41;
  --c-accent: #e65f2b;
  --c-accent-hover: #c24c1e;
  --c-highlight: #ffb347;
  --c-surface-light: #fff7f0;
  --c-white: #ffffff;
  --c-border-subtle: rgba(230, 95, 43, 0.2);
  --c-text-muted: #666;

  /* Typography */
  --font-heading: 'Playfair Display', serif;
  --font-body: 'Mulish', sans-serif;

  /* Global Settings */
  --header-nav-height: 94px;
}

/* Base Reset */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--c-primary-dark);
  background-color: var(--c-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 400;
  line-height: 1.4;
  margin-bottom: 0.5em;
  color: var(--c-primary-dark);
}

h1 {
  font-size: 3.5rem;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-top: 0.5em;
}

h2 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

h3 {
  font-size: 2rem;
}

h4 {
  font-size: 1.5rem;
  font-family: var(--font-body);
  font-weight: 600;
}

h5 {
  font-size: 1.1rem;
}

p {
  font-size: 1.0625rem;
  margin-bottom: 1.5rem;
}

.text-gold {
  color: var(--c-highlight) !important;
}

.text-accent {
  color: var(--c-accent) !important;
  position: relative;
  display: inline-block;
}

.text-accent::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 100%;
  height: 3px;
  background-color: var(--c-accent);
}

.text-accent.text-highlight {
  color: var(--c-highlight) !important;
}

.text-accent.text-highlight::after {
  background-color: var(--c-highlight);
}

.large-paragraph {
  font-size: 1.4375rem;
  line-height: 1.4;
  color: var(--c-primary-dark);
}

.opacity-80 {
  opacity: 0.8;
}

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

.text-left {
  text-align: left;
}

a {
  color: var(--c-accent);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--c-primary-dark);
}

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

/* Container & Layout Classes */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 7%;
}

.max-w-md {
  max-width: 800px;
}

.max-w-sm {
  max-width: 600px;
  margin: 0 auto;
}

.section-padding {
  padding: 120px 0;
}

.mb-4 {
  margin-bottom: 1rem;
}

.mb-5 {
  margin-bottom: 3rem;
}

.mt-4 {
  margin-top: 1.5rem;
}

.pr-lg {
  padding-right: 60px;
}

.pl-lg {
  padding-left: 60px;
}

.d-inline-block {
  display: inline-block;
}

/* Backgrounds */
.bg-dark {
  background-color: var(--c-primary-dark);
  color: var(--c-white);
}

.bg-dark h1,
.bg-dark h2,
.bg-dark h3,
.bg-dark p,
.bg-dark span {
  color: var(--c-white);
}

.bg-light-surface {
  background-color: var(--c-surface-light);
}

/* Button Component */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 12px 28px;
  background-color: transparent;
  color: var(--c-accent) !important;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.8125rem;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: 2px;
  border: 1px solid var(--c-accent);
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn span {
  color: inherit !important;
}

.btn:hover {
  background-color: var(--c-accent);
  color: var(--c-white) !important;
  transform: translateX(5px);
}

.btn-hero {
  border-color: var(--c-accent);
  color: var(--c-accent) !important;
}

.btn-hero:hover {
  background-color: var(--c-white);
  color: var(--c-accent) !important;
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: transparent;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  border-top: 5px solid var(--c-accent);
  z-index: 1000;
  height: var(--header-nav-height);
  display: flex;
  align-items: center;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.site-header.scrolled {
  background-color: var(--c-white);
  border-bottom: 1px solid var(--c-border-subtle);
}

.site-logo {
  color: var(--c-white);
  transition: color 0.3s ease;
}

.site-header.scrolled .site-logo {
  color: var(--c-primary-dark);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Hide Mobile Nav Elements on Desktop */
.mobile-menu-toggle,
.mobile-nav-backdrop,
.mobile-nav {
  display: none;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 30px;
}

.main-nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  margin: 0;
  padding: 0;
}

.main-nav ul.nav-list {
  gap: 40px;
}

.main-nav a {
  color: var(--c-white);
  text-decoration: none;
  transition: color 0.3s ease;
}

.site-header.scrolled .main-nav a {
  color: var(--c-primary-dark);
}

.main-nav a .menu-title-text {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 400;
  line-height: 130%;
  text-transform: capitalize;
  transition: color 0.3s ease;
}

.main-nav ul.buttons a .menu-title-text {
  color: var(--c-white);
}

.site-header.scrolled .main-nav ul.buttons a .menu-title-text {
  color: var(--c-primary-dark);
}

.main-nav ul.buttons a {
  padding: 7px 10px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  display: flex;
  align-items: center;
  transition: all 0.3s ease;
}

.site-header.scrolled .main-nav ul.buttons a {
  background-color: var(--c-surface-light);
}

.main-nav ul.buttons a .menu-title-text {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  text-transform: uppercase;
}

.main-nav ul.buttons a .menu-title-text::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  background-color: var(--c-highlight);
  transition: background-color 0.3s ease;
}

.main-nav ul.buttons a:hover {
  background-color: rgba(237, 231, 223, 0.6);
}

/* Hero Section */
.hero-section {
  padding-top: 0;
  min-height: 100vh;
  display: flex;
  background-color: var(--c-primary-dark);
}

.hero-split {
  display: flex;
  width: 100%;
  height: 100%;
}

.hero-left {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-end;
  /* Align right to push content against the center line */
  padding: calc(var(--header-nav-height) + 60px) 5% 80px 3%;
}

.hero-content {
  max-width: 550px;
  width: 100%;
}

.hero-right {
  flex: 1;
  height: 100%;
  min-height: 100vh;
  /* Force container to fill screen height explicitly */
  position: relative;
  /* Removed display: flex as it was interfering with block image stretching */
}

.hero-right img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-text {
  font-size: 1.05rem;
  max-width: 480px;
  margin-top: 3rem;
  margin-bottom: 2rem;
  line-height: 1.6;
  opacity: 0.9;
}

/* Image Graphic Overlay block */
.hero-image-overlay {
  position: absolute;
  bottom: 80px;
  right: 6%;
  width: 100%;
  max-width: 280px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  z-index: 10;
}

.hero-separator-right {
  height: 2px;
  width: 100%;
  background-color: rgba(255, 255, 255, 0.3);
  position: relative;
  margin-bottom: 25px;
}

.hero-separator-right::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 30%;
  background-color: var(--c-highlight);
}

.hero-image-text {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--c-white);
  line-height: 1.6;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
  margin-bottom: 25px;
}

.hero-image-btn {
  display: inline-flex;
  text-decoration: none;
  transition: opacity 0.3s;
}

.hero-image-btn:hover {
  opacity: 0.8;
}

.hero-image-btn .arrow-box {
  background-color: var(--c-highlight);
  color: var(--c-primary-dark);
}

/* Scroll Discover Button on Left */
.scroll-discover {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 15px;
  color: var(--c-white);
  text-decoration: none;
  transition: opacity 0.3s;
}

.scroll-discover:hover {
  opacity: 0.8;
}

.arrow-box {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background-color: var(--c-accent);
  color: var(--c-white);
  border-radius: 2px;
}

.scroll-text {
  font-family: var(--font-body);
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}

/* Intermediary Split Section (Top Half) */
.intermediary-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  padding: 20px 0 40px;
}

.intermediary-text-col {
  padding-right: 20px;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--c-primary-dark);
  text-transform: uppercase;
  margin-bottom: 30px;
  background-color: var(--c-surface-light);
  padding: 8px 16px;
  border-radius: 2px;
}

.label-dot {
  width: 6px;
  height: 6px;
  background-color: var(--c-highlight);
  display: inline-block;
}

.section-heading-lg {
  font-size: 3.2rem;
  line-height: 1.1;
  color: var(--c-primary-dark);
  margin-bottom: 35px;
  letter-spacing: -0.01em;
}

.btn-outline-primary {
  display: inline-flex;
  align-items: center;
  gap: 15px;
  padding: 10px 20px 10px 10px;
  background-color: transparent;
  color: var(--c-primary-dark);
  font-family: var(--font-body);
  font-weight: 600;
  border: 1px solid transparent;
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn-outline-primary:hover {
  background-color: rgba(17, 43, 65, 0.05);
  /* Subtle grey hover for text buttons */
}

.btn-outline-primary .btn-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background-color: var(--c-accent);
  color: var(--c-white);
  border-radius: 2px;
  transition: background-color 0.3s ease;
}

.intermediary-stats-col {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-left: 20px;
}

.stat-block {
  padding: 20px 0;
}

.stat-number {
  font-family: var(--font-body);
  font-size: 6rem;
  font-weight: 300;
  color: var(--c-accent);
  /* Using existing Nexus accent color */
  line-height: 1;
  margin-bottom: 15px;
  display: flex;
  align-items: flex-start;
}

.stat-plus {
  font-size: 3rem;
  font-weight: 300;
  margin-top: 10px;
  margin-left: 5px;
}

.stat-description {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--c-primary-dark);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  max-width: 380px;
  line-height: 1.5;
}

.stat-dot {
  width: 6px;
  height: 6px;
  background-color: var(--c-highlight);
  display: inline-block;
  margin-top: 5px;
  flex-shrink: 0;
}

/* Circular Flow Chart */
.flow-chart {
  position: relative;
  width: 100%;
  max-width: 380px;
  padding: 0 0 20px;
}

.flow-chart-title {
  font-family: var(--font-body);
  text-transform: uppercase;
  text-align: left;
  font-size: 1rem;
  font-weight: 600;
  color: var(--c-primary-dark);
  margin-bottom: 15px;
}

.flow-chart-title span {
  color: var(--c-accent);
}

/* Triangle layout container */
.flow-triangle {
  position: relative;
  width: 280px;
  height: 200px;
  justify-self: left;
}

/* Curved arrows SVG layer behind nodes */
.flow-arrows-svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

/* Individual nodes positioned in triangle */
.flow-node {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  z-index: 2;
}

.flow-node-top {
  top: 0;
  left: 50%;
  transform: translateX(-50%);
}

.flow-node-bl {
  bottom: 0;
  left: 0;
}

.flow-node-br {
  bottom: 0;
  right: 0;
}

.flow-node-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--c-white);
  border: 2px solid var(--c-border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
  transition: all 0.3s ease;
}

.flow-node:hover .flow-node-icon {
  border-color: var(--c-accent);
  box-shadow: 0 4px 15px rgba(230, 95, 43, 0.15);
  transform: translateY(-2px);
}

.flow-node-icon svg {
  width: 20px;
  height: 20px;
  color: var(--c-accent);
}

.flow-node-label {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--c-primary-dark);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 3px;
}

.flow-node-desc {
  font-family: var(--font-heading);
  font-size: 0.65rem;
  color: var(--c-primary-dark);
  opacity: 1;
  font-weight: 600;
  line-height: 1;
  font-style: italic;
  max-width: 100px;
}

.stat-divider {
  width: 100%;
  height: 1px;
  background-color: rgba(17, 43, 65, 0.1);
  margin: 30px 0;
}

/* Service Infinite Carousel */
.service-carousel-wrapper {
  width: 100%;
  overflow: hidden;
  background-color: var(--c-surface-light);
  padding: 20px 0 80px;
  position: relative;
}

.carousel-track {
  display: flex;
  width: max-content;
  /* Animation: 40s duration (tweak for speed), linear timing, infinite loop */
  animation: scroll-carousel 40s linear infinite;
  gap: 40px;
  padding: 0 10px;
  /* Offset the gap initially */
}

/* Pause animation on hover */
.carousel-track:hover {
  animation-play-state: paused;
}

@keyframes scroll-carousel {
  0% {
    transform: translateX(0);
  }

  100% {
    /* Translate exactly half the width of the duplicated track so it loops seamlessly */
    transform: translateX(calc(-50% - 10px));
  }
}

/* Individual Slide Card Styling */
.service-slide-card {
  width: 300px;
  /* Fixed width for standard sizing */
  flex-shrink: 0;
  background-color: var(--c-primary-dark);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(17, 43, 65, 0.05);
  display: flex;
  flex-direction: row;
  align-items: center;
}

.service-slide-card img {
  width: 90px;
  height: 103%;
  object-fit: cover;
  display: block;
  flex-shrink: 0;
}

.service-slide-card .card-content {
  padding: 12px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.service-slide-card h4 {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--c-accent);
  margin-bottom: 6px;
  text-align: left;
  line-height: 1.2;
}

.service-slide-card p {
  font-family: var(--font-body);
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.4;
  text-align: left;
  margin: 0;
}

/* Layout Splits */
.layout-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.layout-split.row-reverse {
  direction: rtl;
}

.layout-split.row-reverse>* {
  direction: ltr;
}

.split-image img {
  width: 100%;
  border-radius: 4px;
  box-shadow: 0 20px 40px rgba(17, 43, 65, 0.1);
}

.section-title {
  position: relative;
  display: inline-block;
  padding-bottom: 8px;
}

.section-subtitle {
  font-family: var(--font-body);
  font-size: 1.1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 2rem;
  color: var(--c-accent);
}

/* Custom Lists */
.nexus-list {
  list-style: none;
  margin: 2rem 0;
}

.nexus-list li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 15px;
  font-size: 1.1rem;
}

.nexus-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 8px;
  height: 8px;
  background-color: var(--c-highlight);
}

/* Product Grid */
.product-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-top: 30px;
}

.product-card {
  background: var(--c-white);
  padding: 30px;
  border: 1px solid var(--c-border-subtle);
  border-bottom: 3px solid transparent;
  border-radius: 2px;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(17, 43, 65, 0.05);
  border-bottom: 3px solid var(--c-accent);
}

.product-card h5 {
  color: var(--c-accent);
  margin-bottom: 10px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.2rem;
}

.product-card p {
  font-size: 0.95rem;
  margin-bottom: 0;
  color: var(--c-text-muted);
}

/* Global Operations Parallax Section */
.global-ops-section {
  position: relative;
  background-color: var(--c-primary-dark);
  color: var(--c-white);
  padding: 100px 0;
  overflow: hidden;
}

.parallax-world {
  position: absolute;
  top: -60%;
  left: 0%;
  width: 100%;
  height: 120%;
  /* Extra height for parallax travel */
  background-image: url('../images/world-dots.png');
  background-size: 1400px;
  /* Zoomed in considerably */
  background-position: left center;
  /* Shifts the map slightly leftwards to match framing */
  background-repeat: no-repeat;
  opacity: 0.12;
  /* Kept very subtle */
  pointer-events: none;
  z-index: 0;
  transition: transform 0.1s ease-out;
}

.global-ops-section .container {
  position: relative;
  z-index: 1;
}

.global-ops-left {
  padding-right: 40px;
}

.text-highlight {
  color: var(--c-highlight);
  font-family: var(--font-heading);
}

.global-ops-left p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.05rem;
  line-height: 1.6;
  margin-bottom: 20px;
}

.global-ops-right {
  display: flex;
  flex-direction: column;
  gap: 30px;
  padding-left: 20px;
}

.global-ops-item {
  display: block;
  text-decoration: none;
  color: var(--c-white);
  padding-bottom: 25px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: transform 0.3s ease;
}

.global-ops-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.global-ops-item:hover {
  transform: translateX(5px);
}

.global-ops-item-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.global-ops-item-header h3 {
  font-family: var(--font-body);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--c-accent);
  margin: 0;
  letter-spacing: -0.01em;
}

.ops-divider {
  color: var(--c-accent);
  margin: 0 5px;
  font-weight: 300;
}

.ops-arrow {
  color: rgba(255, 255, 255, 0.5);
  transition: color 0.3s ease;
}

.global-ops-item:hover .ops-arrow {
  color: var(--c-highlight);
}

.global-ops-item p {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.5;
  margin: 0;
  padding-right: 20px;
}

/* About Section */
.about-section {
  padding: 80px 0;
}

.about-top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  background-color: transparent;
  margin: 0 0 60px;
}

.about-top-text {
  padding: 20px 0;
  display: flex;
  align-items: center;
}

.about-main-heading {
  font-size: 3rem;
  /* Slightly smaller than section-heading-lg */
  font-weight: 300;
  color: var(--c-primary-dark);
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0;
}

.about-top-media {
  position: relative;
  min-height: 300px;
}

.about-top-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
}

.about-bottom-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.about-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.about-col-heading {
  font-family: var(--font-body);
  font-size: 1.8rem;
  /* Reduced from 2.2rem */
  letter-spacing: -0.01em;
  font-weight: 300;
  color: var(--c-primary-dark);
  margin-bottom: 8px;
  /* Reduced from 15px */
}

.about-col-subheading {
  font-family: var(--font-body);
  font-size: 1.05rem;
  /* Reduced from 1.2rem */
  font-weight: 600;
  color: var(--c-primary-dark);
  margin-bottom: 8px;
  /* Reduced from 10px */
  letter-spacing: -0.01em;
}

.about-col p {
  color: var(--c-text-muted);
  line-height: 1.4;
  margin-bottom: 15px;
  /* Reduced from 20px */
  font-size: 0.9rem;
  /* Reduced from 0.95rem */
}

/* Global CTA Banner */
.brand-cta-section {
  background-color: var(--c-white);
  padding: 40px;
  display: flex;
  justify-content: center;
}

.cta-card {
  background-color: var(--c-surface-light);
  /* Use a lighter shade of secondary accent */
  width: 100%;
  padding: 80px 3%;
  text-align: center;
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.cta-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--c-primary-dark);
  text-transform: uppercase;
  margin-bottom: 25px;
  background-color: var(--c-border-subtle);
  padding: 6px 12px;
  border-radius: 2px;
}

.cta-dot {
  width: 6px;
  height: 6px;
  background-color: var(--c-highlight);
  display: inline-block;
}

.cta-heading {
  font-size: 2.5rem;
  line-height: 1.1;
  color: var(--c-primary-dark);
  margin-bottom: 40px;
  letter-spacing: -0.01em;
}

.btn-outline-cta {
  display: inline-flex;
  align-items: center;
  gap: 15px;
  padding: 12px 24px;
  background-color: transparent;
  color: var(--c-primary-dark);
  font-family: var(--font-body);
  font-weight: 600;
  border: 1px solid var(--c-border-subtle);
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn-outline-cta:hover {
  background-color: var(--c-primary-dark);
  color: var(--c-white);
}

.btn-outline-cta .btn-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background-color: var(--c-accent);
  /* Replaced CAB blue */
  color: var(--c-white);
  border-radius: 2px;
  transition: background-color 0.3s ease;
}

.btn-outline-cta .btn-arrow svg {
  stroke: var(--c-white) !important;
}

/* Footer */
.site-footer {
  padding: 80px 0 40px;
  background-color: var(--c-primary-dark);
  color: var(--c-white);
  font-family: var(--font-body);
  border-top: 5px solid var(--c-white);
  border-left: 5px solid var(--c-white);
  border-right: 5px solid var(--c-white);
}

.site-footer .container {
  width: 95% !important;
  max-width: none !important;
}

.footer-top-row {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 60px;
  margin-bottom: 60px;
}

.footer-cta {
  flex: 1;
  min-width: 300px;
}

.footer-cta .btn-icon {
  display: inline-flex;
  align-items: center;
  gap: 15px;
  padding: 12px 24px;
  color: var(--c-accent) !important;
  border-radius: 0;
  text-decoration: none;
  font-weight: 700;
  transition: all 0.3s ease;
}

.footer-cta .btn-icon:hover {
  background: var(--c-white);
}

.footer-nav-columns {
  display: flex;
  gap: 80px;
  flex-wrap: wrap;
}

.footer-nav-col h4 {
  font-family: var(--font-body);
  letter-spacing: 0.05em;
}

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

.footer-nav-col li {
  margin-bottom: 10px;
}

.footer-nav-col a {
  color: var(--c-white);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.3s;
}

.footer-nav-col a:hover {
  color: var(--c-accent);
}

.footer-middle-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 30px;
  margin-bottom: 60px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 40px;
}

.footer-info-cols {
  display: flex;
  flex: 1;
  gap: 30px;
  flex-wrap: wrap;
}

.footer-info-col {
  flex: 1;
  min-width: 250px;
  font-size: 0.8rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.7);
}

.footer-info-col strong {
  display: block;
  color: var(--c-highlight);
  text-transform: uppercase;
}

.footer-credit p {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
}

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

.footer-social {
  display: flex;
  gap: 15px;
}

.footer-social a {
  color: var(--c-white);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  transition: all 0.3s ease;
}

.footer-social a:hover {
  color: var(--c-accent);
  border-color: var(--c-accent);
}

.footer-legal-links ul {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-legal-links a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.75rem;
  text-decoration: none;
  transition: color 0.3s ease;
}

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

/* -------------------------------------
   Petroleum & Expertise Grid (Dark)
   ------------------------------------- */

.section-label-dark {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
  background-color: rgba(255, 255, 255, 0.05);
  padding: 6px 12px;
  border-radius: 2px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

#petroleum>div:nth-child(1)>div>div>span {
  background-color: var(--c-accent);
}

.expertise-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.expertise-card {
  padding: 35px 25px;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  transition: background-color 0.3s ease;
}

.expertise-card:hover {
  background-color: rgba(255, 255, 255, 0.02);
}

.expertise-grid .expertise-card:nth-child(3n) {
  border-right: none;
}

.expertise-card h4 {
  font-family: var(--font-body);
  font-size: 1.25rem;
  color: var(--c-white);
  margin-bottom: 10px;
  font-weight: 600;
}

.expertise-icon {
  width: 100px;
  height: 48px;
  object-fit: cover;
  border-radius: 4px;
  margin-bottom: 0;
  opacity: 0.9;
}

.expertise-card p {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 25px;
  line-height: 1.6;
  flex-grow: 1;
}

.expertise-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.card-link {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  transition: color 0.3s;
}

.expertise-card:hover .card-link {
  color: var(--c-white);
}

.arrow-box-sm {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  background-color: var(--c-accent);
  border-radius: 2px;
  color: var(--c-primary-dark);
  font-family: sans-serif;
  font-size: 10px;
  transition: transform 0.3s, background-color 0.3s, color 0.3s;
}

.expertise-card:hover .arrow-box-sm {
  background-color: var(--c-highlight);
  /* Orange on hover */
  color: var(--c-white);
}

/* Responsive */
@media (max-width: 991px) {
  h1 {
    font-size: 2.8rem;
    margin-top: 0;
  }

  h2 {
    font-size: 2.2rem;
  }

  .layout-split,
  .intermediary-split,
  .about-top,
  .about-bottom-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .pr-lg,
  .pl-lg,
  .global-ops-left,
  .global-ops-right {
    padding: 0;
  }

  .hero-section {
    padding-top: 0;
    height: auto;
    min-height: auto;
  }

  .hero-split {
    flex-direction: column;
  }

  .hero-left {
    padding: 140px 5% 60px;
    align-items: flex-start;
  }

  .hero-right {
    min-height: 230px;
    position: relative;
    z-index: 1;
    /* Establish new stacking context */
  }

  .hero-image-overlay {
    left: 5%;
    top: 50px;
    bottom: -20px;
    /* Pull down slightly so it overlaps both text and image */
    max-width: 90%;
    z-index: 20;
  }

  .main-nav {
    display: none;
  }

  .mobile-menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1001;
  }

  .mobile-menu-toggle .bar {
    width: 100%;
    height: 3px;
    background-color: var(--c-white);
    border-radius: 2px;
    transition: all 0.3s ease;
  }

  .site-header.scrolled .mobile-menu-toggle .bar {
    background-color: var(--c-primary-dark);
  }

  /* Hamburger Animation to X */
  .mobile-menu-toggle.open .bar {
    background-color: var(--c-primary-dark);
  }

  .mobile-menu-toggle.open .bar:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
  }

  .mobile-menu-toggle.open .bar:nth-child(2) {
    opacity: 0;
  }

  .mobile-menu-toggle.open .bar:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
  }

  /* Dark Backdrop */
  .mobile-nav-backdrop {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(17, 43, 65, 0.6);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
  }

  .mobile-nav-backdrop.open {
    opacity: 1;
    visibility: visible;
  }

  /* Slide-out White Panel */
  .mobile-nav {
    display: flex;
    position: fixed;
    top: 0;
    right: 0;
    width: 85%;
    max-width: 400px;
    height: 100vh;
    background-color: var(--c-white);
    z-index: 1000;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.77, 0.2, 0.05, 1);
    box-shadow: -2px 0 15px rgba(0, 0, 0, 0.1);
  }

  .mobile-nav.open {
    transform: translateX(0);
  }

  .mobile-nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px;
  }

  .mobile-nav-close {
    background: transparent;
    border: none;
    color: var(--c-primary-dark);
    cursor: pointer;
    padding: 5px;
  }

  .mobile-nav-list {
    list-style: none;
    padding: 0 30px;
    text-align: left;
  }

  .mobile-nav-list li {
    margin: 0;
    border-bottom: 1px solid var(--c-border-subtle);
  }

  .mobile-nav-list a {
    font-family: var(--font-body);
    color: var(--c-primary-dark);
    font-size: 1.15rem;
    text-decoration: none;
    font-weight: 500;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 0;
    transition: color 0.3s ease;
  }

  .mobile-nav-list a:hover,
  .mobile-nav-list a:focus {
    color: var(--c-accent);
  }

  .nav-chevron {
    color: var(--c-primary-dark);
    opacity: 0.7;
    transition: transform 0.3s ease;
  }

  .mobile-nav-list a:hover .nav-chevron {
    transform: translateY(2px);
    color: var(--c-accent);
  }

  .btn-contact-mobile {
    display: flex !important;
    background-color: var(--c-accent);
    color: var(--c-white) !important;
    padding: 16px 20px !important;
    font-size: 1.05rem !important;
    font-weight: 500 !important;
    border: none;
    border-radius: 0;
    justify-content: space-between;
    transition: background-color 0.3s ease;
    width: 100%;
  }

  .btn-contact-mobile:hover {
    background-color: var(--c-primary-dark);
    color: var(--c-white) !important;
  }

  .btn-contact-mobile .nav-arrow {
    width: 14px;
    height: 14px;
    stroke-width: 1.5;
  }

  .product-grid,
  .expertise-grid {
    grid-template-columns: 1fr;
  }

  .expertise-card {
    border-right: none;
  }

  .brand-cta-section {
    padding: 20px;
  }

  .footer-top-row {
    flex-direction: column;
  }

  .intermediary-stats-col {
    padding-left: 0;
  }

  .stat-number {
    justify-content: center;
  }

  .stat-description {
    text-align: center;
  }

  .flow-chart-title {
    text-align: center;
  }

  .flow-triangle {
    justify-self: center;
  }
}