
/* ==========================================
   KARAM NEXUS — OUR BUSINESSES
   INTERACTIVE NEXUS DESIGN
========================================== */

.businesses-page {
  --business-black: #000000;
  --business-navy: #102640;
  --business-ivory: #F4F1EB;
  --business-muted: #B9C5D1;

  background: var(--business-black);
  color: var(--business-ivory);
}

.business-container {
  width: min(1240px, calc(100% - 100px));
  margin-inline: auto;
}

.businesses-page main {
  overflow: clip;
}

.business-network,
.business-display {
  scroll-margin-top: 90px;
}

/* ==========================================
   01 — HERO
========================================== */

.business-hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;

  display: flex;
  align-items: center;

  padding: 150px 0 110px;
  background: #000000;

  isolation: isolate;
  overflow: hidden;
}

.business-hero-background {
  position: absolute;
  inset: 0;
  z-index: -1;

  background:
    radial-gradient(
      ellipse at 76% 49%,
      rgba(16, 38, 64, 0.85),
      transparent 53%
    ),
    radial-gradient(
      ellipse at 96% 80%,
      rgba(16, 38, 64, 0.28),
      transparent 40%
    ),
    #000000;
}

/* Very subtle geometric grid */

.business-hero-background::after {
  content: "";
  position: absolute;
  inset: 0;

  background-image:
    linear-gradient(
      rgba(244,241,235,0.035) 1px,
      transparent 1px
    ),
    linear-gradient(
      90deg,
      rgba(244,241,235,0.035) 1px,
      transparent 1px
    );

  background-size: 85px 85px;

  mask-image: linear-gradient(
    90deg,
    transparent 20%,
    black 100%
  );

  pointer-events: none;
}

.business-hero-content {
  position: relative;
  z-index: 2;
  max-width: 1100px;
}

/* Eyebrow */

.business-eyebrow {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

/* Hero heading */

.business-hero h1 {
  margin-top: 30px;

  font-size: clamp(56px, 7.3vw, 110px);
  font-weight: 300;
  letter-spacing: -0.065em;
  line-height: 1.08;
}

.business-hero h1 span {
  font-weight: 500;
}

.business-hero-description {
  max-width: 540px;
  margin-top: 32px;

  font-size: 17px;
  font-weight: 300;
  line-height: 1.9;
  color: var(--business-muted);
}

/* Explore button */

.business-explore-button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 45px;

  margin-top: 38px;
  padding: 17px 24px;

  background: var(--business-ivory);
  color: var(--business-navy);

  border: 1px solid var(--business-ivory);
  border-radius: 3px;

  font-size: 12px;
  font-weight: 600;

  transition:
    color 0.3s ease,
    background 0.3s ease,
    transform 0.3s ease;
}

.business-explore-button:hover {
  background: transparent;
  color: var(--business-ivory);
  transform: translateY(-3px);
}

.business-explore-button span {
  font-size: 20px;
}

/* Bottom hero labels */

.business-hero-bottom {
  position: absolute;
  bottom: 37px;
  left: 50%;
  transform: translateX(-50%);

  width: min(1240px, calc(100% - 100px));

  display: flex;
  justify-content: space-between;
  gap: 20px;

  color: #AEBCC9;
  font-size: 10px;
  letter-spacing: 0.17em;
}

/* Cinematic load animation */

.business-hero-content > * {
  animation: businessHeroReveal 1s
    cubic-bezier(0.22,1,0.36,1) both;
}

.business-hero-content > :nth-child(1) {
  animation-delay: 0.1s;
}

.business-hero-content > :nth-child(2) {
  animation-delay: 0.25s;
}

.business-hero-content > :nth-child(3) {
  animation-delay: 0.45s;
}

.business-hero-content > :nth-child(4) {
  animation-delay: 0.65s;
}

@keyframes businessHeroReveal {
  from {
    opacity: 0;
    transform: translateY(25px);
    filter: blur(5px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

/* ==========================================
   02 — INTERACTIVE NEXUS NETWORK
========================================== */

.business-network {
  position: relative;
  padding: 130px 0 145px;

  background:
    radial-gradient(
      ellipse at 50% 57%,
      rgba(49, 82, 112, 0.4),
      transparent 62%
    ),
    var(--business-navy);

  color: var(--business-ivory);
}

.business-section-intro {
  max-width: 850px;
}

.business-section-intro h2 {
  margin-top: 27px;

  font-size: clamp(52px, 6.5vw, 92px);
  font-weight: 300;
  letter-spacing: -0.06em;
  line-height: 1.1;
}

.business-section-intro h2 span {
  font-weight: 500;
}

.business-section-intro > p:last-child {
  max-width: 560px;
  margin-top: 26px;

  font-size: 16px;
  font-weight: 300;
  line-height: 1.9;
  color: #C4D0DD;
}

/* Network stage */

.nexus-map {
  position: relative;
  width: 100%;
  max-width: 1000px;
  aspect-ratio: 5 / 3;

  margin: 90px auto 0;
  isolation: isolate;
}

/* Connector lines */

.nexus-connections {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;

  z-index: 0;
  overflow: visible;
  pointer-events: none;
}

.nexus-connections path {
  fill: none;

  stroke: rgba(244,241,235,0.36);
  stroke-width: 1.4;

  stroke-dasharray: 650;
  stroke-dashoffset: 0;

  animation: nexusConnectDraw 1.5s
    ease-out both;

  transition:
    stroke 0.4s ease,
    stroke-width 0.4s ease,
    filter 0.4s ease;
}

@keyframes nexusConnectDraw {
  from {
    stroke-dashoffset: 650;
  }

  to {
    stroke-dashoffset: 0;
  }
}

/* Highlight currently selected connection */

.nexus-map[data-active="hotels"]
.nexus-connections path:nth-child(1),

.nexus-map[data-active="travel"]
.nexus-connections path:nth-child(2),

.nexus-map[data-active="aviation"]
.nexus-connections path:nth-child(3),

.nexus-map[data-active="technology"]
.nexus-connections path:nth-child(4),

.nexus-map[data-active="restaurant"]
.nexus-connections path:nth-child(5),

.nexus-map[data-active="pilgrimage"]
.nexus-connections path:nth-child(6),

.nexus-map[data-active="cargo"]
.nexus-connections path:nth-child(7) {
  stroke: #F4F1EB;
  stroke-width: 2.5;

  filter: drop-shadow(
    0 0 5px rgba(244,241,235,0.55)
  );
}

/* ==========================================
   CENTRAL NEXUS CORE
========================================== */

.nexus-core {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);

  width: 174px;
  height: 174px;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;

  border: 1px solid rgba(244,241,235,0.55);
  border-radius: 50%;

  background: #102640;
  box-shadow:
    0 0 0 10px rgba(244,241,235,0.045),
    0 0 45px rgba(244,241,235,0.08);

  z-index: 3;
}

/* Fine outer orbital ring */

.nexus-core::before {
  content: "";

  position: absolute;
  inset: -17px;

  border: 1px solid rgba(244,241,235,0.18);
  border-radius: 50%;

  pointer-events: none;
}

.nexus-core-logo {
  width: 77px;
  height: 77px;
  object-fit: contain;
}

.nexus-core > span {
  color: #F4F1EB;

  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.17em;
  text-align: center;
}

/* ==========================================
   SEVEN BUSINESS NODES
========================================== */

.business-node {
  position: absolute;
  z-index: 4;

  width: 158px;
  min-height: 72px;

  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 7px;

  padding: 12px 14px;

  color: #F4F1EB;
  background: rgba(16,38,64,0.95);

  border: 1px solid rgba(244,241,235,0.42);
  border-radius: 9px;

  cursor: pointer;

  transform: translate(-50%, -50%);

  transition:
    border-color 0.35s ease,
    background 0.35s ease,
    box-shadow 0.35s ease,
    transform 0.35s ease;
}

.node-number {
  font-size: 10px;
  font-weight: 500;
  color: #A7BBCE;
  letter-spacing: 0.14em;
}

.node-name {
  font-size: 13px;
  font-weight: 500;
  text-align: center;
  line-height: 1.3;
}

/* Node coordinates align with SVG connections */

.node-hotels {
  left: 20%;
  top: 20.833%;
}

.node-travel {
  left: 50%;
  top: 12.5%;
}

.node-aviation {
  left: 80%;
  top: 20.833%;
}

.node-it {
  left: 85%;
  top: 60%;
}

.node-restaurant {
  left: 69%;
  top: 88.333%;
}

.node-umrah {
  left: 31%;
  top: 88.333%;
}

.node-cargo {
  left: 15%;
  top: 60%;
}

/* Hover animation */

.business-node:hover {
  transform:
    translate(-50%, -50%)
    translateY(-5px);

  border-color: #F4F1EB;

  box-shadow:
    0 0 20px rgba(244,241,235,0.13);
}

/* Selected node */

.business-node.is-active {
  background: #F4F1EB;
  color: #102640;

  border-color: #F4F1EB;

  box-shadow:
    0 0 30px rgba(244,241,235,0.15);
}

.business-node.is-active .node-number {
  color: #52657A;
}

.business-node:focus-visible {
  outline: 2px solid #F4F1EB;
  outline-offset: 5px;
}

/* Bottom instruction */

.network-instruction {
  margin-top: 20px;

  text-align: center;
  color: #B3C2D0;

  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.21em;
}

/* ==========================================
   03 — BUSINESS DISPLAY
========================================== */

.business-display {
  background: #F4F1EB;
  color: #102640;

  padding: 130px 0 150px;
}

.business-display-heading {
  max-width: 900px;

  transition:
    opacity 0.25s ease,
    transform 0.25s ease;
}

.business-display-heading .business-eyebrow {
  color: #52657A;
}

.business-display-heading h2 {
  margin-top: 25px;

  font-size: clamp(43px, 5.7vw, 78px);
  font-weight: 300;

  letter-spacing: -0.055em;
  line-height: 1.12;
}

.business-display-heading > p:last-child {
  max-width: 630px;
  margin-top: 24px;

  font-size: 16px;
  font-weight: 300;
  line-height: 1.85;

  color: #52657A;
}

/* Company grid */

.company-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;

  margin-top: 65px;
  min-height: 260px;

  transition:
    opacity 0.25s ease,
    transform 0.25s ease;
}

/* Dynamic switching state */

.business-display.is-switching
.business-display-heading,

.business-display.is-switching
.company-grid {
  opacity: 0.3;
  transform: translateY(8px);
}

/* Company card */

.company-card {
  min-width: 0;

  display: flex;
  flex-direction: column;

  background: #FFFFFF;
  border: 1px solid rgba(16,38,64,0.12);
  border-radius: 8px;

  overflow: hidden;

  transition:
    transform 0.4s cubic-bezier(0.22,1,0.36,1),
    box-shadow 0.4s ease,
    border-color 0.4s ease;
}

.company-card:hover {
  transform: translateY(-6px);

  border-color: rgba(16,38,64,0.35);

  box-shadow:
    0 16px 45px rgba(16,38,64,0.08);
}

/* Official company logo */

.company-card-logo {
  height: 155px;
  padding: 25px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-bottom: 1px solid rgba(16,38,64,0.09);
}

.company-card-logo img {
  width: 100%;
  max-width: 190px;
  max-height: 105px;

  object-fit: contain;
}

/* Content */

.company-card-content {
  padding: 30px 27px;
  flex: 1;
}

.company-card-category {
  color: #697A8A;

  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.company-card-name {
  margin-top: 15px;

  font-size: 24px;
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.25;
}

.company-card-description {
  margin-top: 17px;

  font-size: 14px;
  font-weight: 300;
  line-height: 1.85;

  color: #52657A;
}

/* Website visit button */

.company-card-visit {
  display: flex;
  justify-content: space-between;
  align-items: center;

  padding: 20px 27px;

  border-top: 1px solid rgba(16,38,64,0.1);

  font-size: 12px;
  font-weight: 600;

  transition:
    color 0.3s ease,
    background 0.3s ease;
}

.company-card-visit span {
  font-size: 19px;
  transition: transform 0.3s ease;
}

.company-card-visit:hover {
  background: #102640;
  color: #F4F1EB;
}

.company-card-visit:hover span {
  transform: translate(3px, -3px);
}

.business-loading {
  grid-column: 1 / -1;
  color: #52657A;
  font-size: 15px;
}

/* ==========================================
   JASMINE RESTAURANT GALLERY
========================================== */

.jasmine-gallery {
  margin-top: 85px;
  padding-top: 45px;

  border-top: 1px solid rgba(16,38,64,0.2);
}

.jasmine-gallery[hidden] {
  display: none !important;
}

.jasmine-gallery-heading h3 {
  font-size: clamp(30px, 4vw, 50px);
  font-weight: 300;
  letter-spacing: -0.045em;
}

.jasmine-gallery-heading p {
  margin-top: 15px;

  font-size: 15px;
  line-height: 1.8;
  color: #52657A;
}

.jasmine-gallery-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(240px, 34%);
  gap: 17px;

  margin-top: 35px;
  padding-bottom: 15px;

  overflow-x: auto;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
}

.jasmine-gallery-track img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;

  object-fit: cover;
  border-radius: 5px;

  scroll-snap-align: start;
}

/* ==========================================
   04 — CLOSING STATEMENT
========================================== */

.business-closing {
  padding: 145px 0 150px;

  background: #102640;
  color: #F4F1EB;
}

.business-closing h2 {
  margin-top: 30px;

  font-size: clamp(52px, 6.8vw, 100px);
  font-weight: 300;

  letter-spacing: -0.06em;
  line-height: 1.1;
}

.business-closing h2 span {
  font-weight: 500;
}

.business-closing p:not(.business-eyebrow) {
  max-width: 560px;
  margin-top: 30px;

  color: #BECBD7;
  font-size: 17px;
  font-weight: 300;
  line-height: 1.85;
}

.business-closing-link {
  display: inline-flex;
  align-items: center;
  gap: 35px;

  margin-top: 35px;
  padding-bottom: 12px;

  border-bottom: 1px solid #F4F1EB;

  color: #F4F1EB;
  font-size: 13px;
}

.business-closing-link span {
  font-size: 20px;
  transition: transform 0.3s ease;
}

.business-closing-link:hover span {
  transform: translate(4px, -4px);
}

/* ==========================================
   05 — BLACK FOOTER
========================================== */

.business-footer {
  padding: 70px 0 25px;

  background: #000000;
  color: #F4F1EB;
}

.business-footer-main {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 50px;

  padding-bottom: 60px;
}

.business-footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 17px;
}

.business-footer-logo img {
  width: 76px;
  height: 76px;
  object-fit: contain;
}

.footer-wordmark {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.footer-wordmark > span {
  font-size: 23px;
  font-weight: 300;
  letter-spacing: 0.35em;
}

.footer-wordmark small {
  font-size: 11px;
  font-weight: 300;
  letter-spacing: 0.65em;
}

.business-footer-brand > p {
  margin-top: 18px;

  color: #B9C5D1;
  font-size: 13px;
  font-weight: 300;
}

.business-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 25px;
}

.business-footer-links a {
  color: #C4D0DD;
  font-size: 12px;

  transition: color 0.3s ease;
}

.business-footer-links a:hover {
  color: #FFFFFF;
}

.business-footer-bottom {
  padding-top: 22px;

  border-top: 1px solid rgba(244,241,235,0.19);

  color: #9BAABC;
  font-size: 11px;
}

/* ==========================================
   TABLET & SMALL DESKTOP
========================================== */

@media (max-width: 1000px) {

  .business-container {
    width: calc(100% - 64px);
  }

  .business-hero-bottom {
    width: calc(100% - 64px);
  }

  .business-network,
  .business-display,
  .business-closing {
    padding-top: 100px;
    padding-bottom: 110px;
  }

  .company-grid {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));
  }

}

/* ==========================================
   COMPACT NEXUS NETWORK
========================================== */

@media (max-width: 900px) {

  /* On narrow screens, preserve every
     division as an accessible touch target */

  .nexus-map {
    width: 100%;
    max-width: 650px;
    aspect-ratio: auto;

    display: grid;
    grid-template-columns:
      repeat(2, minmax(0, 1fr));
    gap: 14px;

    margin-top: 55px;
  }

  /* SVG line geometry is desktop-specific */

  .nexus-connections {
    display: none;
  }

  /* Center of the network */

  .nexus-core {
    position: relative;
    inset: auto;
    transform: none;

    grid-column: 1 / -1;
    justify-self: center;

    width: 160px;
    height: 160px;

    margin: 0 0 25px;
  }

  /* Node grid */

  .business-node {
    position: relative;
    left: auto;
    top: auto;

    width: 100%;
    min-height: 77px;

    transform: none;
  }

  .business-node:hover {
    transform: translateY(-3px);
  }

}

/* ==========================================
   MOBILE
========================================== */

@media (max-width: 767px) {

  .business-container {
    width: calc(100% - 44px);
  }

  /* Hero */

  .business-hero {
    min-height: 100svh;
    padding: 130px 0 100px;
  }

  .business-hero h1 {
    font-size: clamp(43px, 9.6vw, 70px);
    line-height: 1.12;
  }

  .business-hero-description {
    font-size: 15px;
  }

  .business-hero-bottom {
    width: calc(100% - 44px);
    bottom: 22px;

    font-size: 8px;
  }

  .business-hero-bottom span:first-child {
    display: none;
  }

  /* Section spacing */

  .business-network,
  .business-display,
  .business-closing {
    padding-top: 85px;
    padding-bottom: 90px;
  }

  /* Section headings */

  .business-section-intro h2 {
    font-size: clamp(43px, 9vw, 65px);
  }

  .business-section-intro > p:last-child {
    font-size: 15px;
  }

  /* Network nodes */

  .nexus-map {
    gap: 12px;
  }

  .business-node {
    min-height: 75px;
    padding: 12px 8px;
  }

  .node-name {
    font-size: 12px;
  }

  .network-instruction {
    margin-top: 30px;
    font-size: 9px;
  }

  /* Cards */

  .business-display-heading h2 {
    font-size: clamp(39px, 8vw, 60px);
  }

  .company-grid {
    grid-template-columns: 1fr;
    gap: 18px;

    margin-top: 43px;
  }

  .company-card-content {
    padding: 25px 22px;
  }

  .company-card-visit {
    padding: 18px 22px;
  }

  /* Jasmine */

  .jasmine-gallery {
    margin-top: 55px;
  }

  .jasmine-gallery-track {
    grid-auto-columns: 82%;
  }

  /* Closing */

  .business-closing h2 {
    font-size: clamp(43px, 9vw, 66px);
  }

  .business-closing p:not(.business-eyebrow) {
    font-size: 15px;
  }

  /* Footer */

  .business-footer-main {
    flex-direction: column;
    gap: 40px;
    padding-bottom: 50px;
  }

  .business-footer-links {
    gap: 17px 25px;
  }

  .business-footer-logo img {
    width: 62px;
    height: 62px;
  }

  .footer-wordmark > span {
    font-size: 19px;
  }

  .footer-wordmark small {
    font-size: 9px;
  }

}

/* ==========================================
   ACCESSIBILITY & REDUCED MOTION
========================================== */

@media (prefers-reduced-motion: reduce) {

  .business-hero-content > *,
  .nexus-connections path {
    animation: none !important;
  }

  .business-node,
  .company-card,
  .company-card-visit,
  .business-explore-button,
  .business-closing-link span {
    transition: none !important;
  }

}

/* ========================================
   BUSINESS CARD — TEMPORARY ASSET STATES
======================================== */

.company-logo-placeholder {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  color: #8A96A3;
  text-align: center;
}

/* Shown until an official website is supplied */

.company-link-pending {
  padding: 20px 27px;
  border-top: 1px solid rgba(16,38,64,0.1);

  color: #84909C;
  font-size: 12px;
  font-weight: 400;
}

/* Preserve responsive spacing */

@media (max-width: 767px) {
  .company-link-pending {
    padding: 18px 22px;
  }
}


/* ========================================
   KARAM NEXUS — VIDEO BACKGROUNDS
======================================== */

/* HERO VIDEO */

.business-hero-background video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.85;
}

/* Keep white headings clearly readable */

.business-hero-background::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;

  background: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0.82) 0%,
    rgba(0, 0, 0, 0.48) 55%,
    rgba(0, 0, 0, 0.18) 100%
  );

  pointer-events: none;
}

.business-hero-background::after {
  z-index: 2;
}

/* INTERACTIVE NETWORK VIDEO */

.business-network {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.business-network-video-layer {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.business-network-video-layer video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.38;
}

/* Subtle overlay to protect interactive elements */

.business-network-video-layer::after {
  content: "";
  position: absolute;
  inset: 0;

  background: rgba(16, 38, 64, 0.16);
}

/* Keep headings, connections, and nodes above video */

.business-network > .business-container {
  position: relative;
  z-index: 1;
}

/* Reduced motion accessibility */

@media (prefers-reduced-motion: reduce) {
  .business-hero-background video,
  .business-network-video-layer video {
    display: none;
  }
}

/* ========================================
   ALIGN NEXUS VIDEO WITH CENTRAL LOGO
======================================== */

.business-network-video-layer {
  overflow: hidden;
}

.business-network-video-layer video {
  position: absolute;
  inset: 0;

  width: 100%;
  height: 100%;

  object-fit: cover;
  object-position: center;

  /* Move the background glow downward */
  transform: translateY(155px) scale(1.35);
  transform-origin: center center;
}

/* Smaller-screen adjustment */
@media (max-width: 900px) {
  .business-network-video-layer video {
    transform: translateY(65px) scale(1.4);
  }
}

/* ========================================
   NEXUS SECTION — VIDEO ONLY
======================================== */

/* Remove the section's blue gradient */
.business-network {
  background: #000000 !important;
}

/* Show the video at full brightness */
.business-network-video-layer video {
  opacity: 1 !important;
}

/* Remove the blue overlay */
.business-network-video-layer::after {
  display: none !important;
}

/* Keep all content above the video */
.business-network > .business-container {
  position: relative;
  z-index: 2;
}

/* ==========================================
   KARAM NEXUS — BLACK TECHNOLOGY NETWORK
========================================== */

/* 1. MAKE ALL SEVEN TABS BLACK */

.business-node,
.business-node.is-active {
  background: #000000 !important;
  color: #F4F1EB !important;

  border: 1px solid rgba(244,241,235,0.45);

  box-shadow: none;
}

/* Remove the numbers */

.business-node .node-number {
  display: none !important;
}

/* Center the business names */

.business-node {
  justify-content: center;
  min-height: 72px;
}

/* 2. BLACK CENTRAL NEXUS CIRCLE */

.nexus-core {
  background: #000000 !important;

  border: 1px solid rgba(244,241,235,0.7);

  box-shadow:
    0 0 25px rgba(244,241,235,0.07);
}

/* 3. ROTATING TECHNOLOGICAL ORBIT */

.nexus-core::before {
  content: "";
  position: absolute;
  inset: -17px;

  border: 1px dashed rgba(244,241,235,0.35);
  border-radius: 50%;

  animation: nexusOrbit 22s linear infinite;

  pointer-events: none;
}

@keyframes nexusOrbit {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

/* 4. SOFT RADAR PULSE AROUND CORE */

.nexus-core::after {
  content: "";
  position: absolute;
  inset: -10px;

  border: 1px solid rgba(244,241,235,0.4);
  border-radius: 50%;

  pointer-events: none;

  animation: nexusRadar 4s ease-out infinite;
}

@keyframes nexusRadar {
  0% {
    transform: scale(1);
    opacity: 0.45;
  }

  75%, 100% {
    transform: scale(1.22);
    opacity: 0;
  }
}

/* 5. ACTIVE TAB — DIGITAL HIGHLIGHT */

.business-node.is-active {
  border-color: #F4F1EB;

  box-shadow:
    0 0 13px rgba(244,241,235,0.12),
    inset 0 0 10px rgba(244,241,235,0.04);

  animation: nexusActiveGlow 3.5s ease-in-out infinite;
}

@keyframes nexusActiveGlow {
  0%, 100% {
    box-shadow:
      0 0 10px rgba(244,241,235,0.1);
  }

  50% {
    box-shadow:
      0 0 23px rgba(244,241,235,0.28);
  }
}

/* HOVER — SUBTLE TECH RESPONSE */

.business-node:hover {
  background: #000000 !important;

  border-color: #FFFFFF;

  box-shadow:
    0 0 20px rgba(244,241,235,0.2);
}

/* 6. ANIMATED DATA SIGNAL ON ACTIVE CONNECTION */

:is(
  .nexus-map[data-active="hotels"]
  .nexus-connections path:nth-child(1),

  .nexus-map[data-active="travel"]
  .nexus-connections path:nth-child(2),

  .nexus-map[data-active="aviation"]
  .nexus-connections path:nth-child(3),

  .nexus-map[data-active="technology"]
  .nexus-connections path:nth-child(4),

  .nexus-map[data-active="restaurant"]
  .nexus-connections path:nth-child(5),

  .nexus-map[data-active="pilgrimage"]
  .nexus-connections path:nth-child(6),

  .nexus-map[data-active="cargo"]
  .nexus-connections path:nth-child(7)
) {
  stroke: #F4F1EB;
  stroke-width: 2;
  stroke-dasharray: 12 12;

  animation: nexusSignalFlow 2.5s linear infinite;
}

@keyframes nexusSignalFlow {
  from {
    stroke-dashoffset: 0;
  }

  to {
    stroke-dashoffset: -48;
  }
}

/* ACCESSIBILITY & PERFORMANCE */

@media (prefers-reduced-motion: reduce) {
  .nexus-core::before,
  .nexus-core::after,
  .business-node.is-active,
  .nexus-connections path {
    animation: none !important;
  }
}

/* ============================================
   KARAM NEXUS — ADVANCED ENERGY NETWORK
============================================ */

/* Smooth animated angle for border tracers */

@property --nexus-sweep {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}

@keyframes nexusBorderFlow {
  to {
    --nexus-sweep: 360deg;
  }
}

/* ============================================
   1. ALL SEVEN TABS — FLOWING BORDERS
============================================ */

.business-node {
  isolation: isolate;
  background: #000 !important;
  color: #F4F1EB !important;
  border: 1px solid rgba(244,241,235,0.28);
}

/* Animated border highlight */

.business-node::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 2px;

  background: conic-gradient(
    from var(--nexus-sweep),
    transparent 0deg,
    transparent 260deg,
    rgba(244,241,235,0.15) 285deg,
    rgba(255,255,255,0.95) 325deg,
    transparent 360deg
  );

  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);

  -webkit-mask-composite: xor;

  mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);

  mask-composite: exclude;

  pointer-events: none;

  animation: nexusBorderFlow 7s linear infinite;
}

/* Selected tab — stronger border energy */

.business-node.is-active {
  border-color: rgba(255,255,255,0.8);

  animation:
    nexusSelectedGlow 3s ease-in-out infinite;
}

.business-node.is-active::before {
  padding: 2.5px;

  background: conic-gradient(
    from var(--nexus-sweep),
    rgba(255,255,255,0.08) 0deg,
    transparent 170deg,
    rgba(255,255,255,0.4) 250deg,
    #FFFFFF 315deg,
    transparent 360deg
  );

  animation: nexusBorderFlow 2.8s linear infinite;
}

@keyframes nexusSelectedGlow {
  0%, 100% {
    box-shadow:
      0 0 8px rgba(255,255,255,0.12);
  }

  50% {
    box-shadow:
      0 0 24px rgba(255,255,255,0.28),
      0 0 42px rgba(255,255,255,0.07);
  }
}

/* Hover — stronger electrical response */

.business-node:hover {
  border-color: #FFFFFF;

  box-shadow:
    0 0 22px rgba(255,255,255,0.2);
}

.business-node:hover::before {
  animation-duration: 2s;
}

/* ============================================
   2. CENTRAL CIRCLE — TECHNOLOGY ORBIT
============================================ */

.nexus-core {
  isolation: isolate;
  background: #000 !important;

  animation:
    nexusCoreBreathing 5s ease-in-out infinite;
}

/* Rotating outer orbital ring */

.nexus-core::before {
  content: "";
  position: absolute;
  inset: -19px;

  border: 1px dashed
    rgba(244,241,235,0.38);

  border-radius: 50%;

  animation:
    nexusOuterOrbit 28s linear infinite;

  pointer-events: none;
}

@keyframes nexusOuterOrbit {
  to {
    transform: rotate(360deg);
  }
}

/* Circular flowing energy border */

.nexus-core::after {
  content: "";
  position: absolute;
  inset: -2px;

  border: none;
  border-radius: 50%;
  padding: 2px;

  background: conic-gradient(
    from var(--nexus-sweep),
    transparent 0deg,
    transparent 245deg,
    rgba(255,255,255,0.2) 280deg,
    #FFFFFF 325deg,
    transparent 360deg
  );

  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);

  -webkit-mask-composite: xor;

  mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);

  mask-composite: exclude;

  pointer-events: none;

  animation:
    nexusBorderFlow 5s linear infinite;
}

/* Breathing central glow */

@keyframes nexusCoreBreathing {
  0%, 100% {
    box-shadow:
      0 0 15px rgba(255,255,255,0.06),
      0 0 35px rgba(255,255,255,0.03);
  }

  50% {
    box-shadow:
      0 0 24px rgba(255,255,255,0.2),
      0 0 60px rgba(255,255,255,0.09);
  }
}

/* ============================================
   3. ALL CONNECTIONS — DATA FLOW
============================================ */

/* Small traveling dashes on every line */

.nexus-connections path {
  stroke: rgba(244,241,235,0.58);
  stroke-width: 1.5;

  stroke-dasharray: 3 11;

  animation:
    nexusContinuousData 8s linear infinite;

  filter: none;

  transition:
    stroke 0.4s ease,
    stroke-width 0.4s ease,
    filter 0.4s ease;
}

/* Smooth continuous movement */

@keyframes nexusContinuousData {
  from {
    stroke-dashoffset: 0;
  }

  to {
    stroke-dashoffset: -84;
  }
}

/* ============================================
   4. SELECTED CONNECTION — ACTIVE SIGNAL
============================================ */

:is(
  .nexus-map[data-active="hotels"]
  .nexus-connections path:nth-child(1),

  .nexus-map[data-active="travel"]
  .nexus-connections path:nth-child(2),

  .nexus-map[data-active="aviation"]
  .nexus-connections path:nth-child(3),

  .nexus-map[data-active="technology"]
  .nexus-connections path:nth-child(4),

  .nexus-map[data-active="restaurant"]
  .nexus-connections path:nth-child(5),

  .nexus-map[data-active="pilgrimage"]
  .nexus-connections path:nth-child(6),

  .nexus-map[data-active="cargo"]
  .nexus-connections path:nth-child(7)
) {
  stroke: #FFFFFF;
  stroke-width: 2.8;

  stroke-dasharray: 12 9;

  filter:
    drop-shadow(0 0 4px rgba(255,255,255,0.9))
    drop-shadow(0 0 9px rgba(255,255,255,0.4));

  animation:
    nexusActiveData 2.1s linear infinite;
}

/* More prominent motion on active connection */

@keyframes nexusActiveData {
  from {
    stroke-dashoffset: 0;
  }

  to {
    stroke-dashoffset: -84;
  }
}

/* ============================================
   5. REDUCED MOTION
============================================ */

@media (prefers-reduced-motion: reduce) {

  .business-node,
  .business-node::before,
  .nexus-core,
  .nexus-core::before,
  .nexus-core::after,
  .nexus-connections path {
    animation: none !important;
  }

}

/* ========================================
   BUSINESSES PAGE — NON-STICKY HEADER
======================================== */

body.businesses-page .site-header,
body.businesses-page .site-header.scrolled {
  position: absolute !important;

  top: 0 !important;
  left: 0 !important;
  right: 0 !important;

  width: 100%;

  background: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none !important;

  transform: none !important;

  --header-color: #F4F1EB;
}

/* Keep the light logo on the dark hero */

body.businesses-page .adaptive-logo-light {
  opacity: 1 !important;
  visibility: visible !important;
}

body.businesses-page .adaptive-logo-dark {
  opacity: 0 !important;
  visibility: hidden !important;
}

/* ==========================================
   KARAM NEXUS — ANIMATED BUSINESS CARDS
========================================== */

@property --company-border-angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}

/* CARD BASE */

.company-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;

  border: 1px solid rgba(16, 38, 64, 0.16);
  border-radius: 10px;

  transform: translateY(0) scale(1);

  transition:
    transform 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.55s ease,
    border-color 0.4s ease;
}

/* ROTATING TECHNOLOGICAL BORDER */

.company-card::before {
  content: "";
  position: absolute;
  inset: 0;

  border-radius: inherit;
  padding: 2px;

  background: conic-gradient(
    from var(--company-border-angle),
    transparent 0deg,
    transparent 245deg,
    rgba(16,38,64,0.12) 280deg,
    rgba(16,38,64,0.65) 325deg,
    transparent 360deg
  );

  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);

  -webkit-mask-composite: xor;

  mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);

  mask-composite: exclude;

  pointer-events: none;
  z-index: 2;

  animation: companyBorderTravel 10s linear infinite;
}

/* MOVING BORDER LIGHT */

@keyframes companyBorderTravel {
  to {
    --company-border-angle: 360deg;
  }
}

/* HOVER — CARD ENLARGES SLIGHTLY */

.company-card:hover {
  transform: translateY(-9px) scale(1.025);

  border-color: rgba(16,38,64,0.35);

  box-shadow:
    0 18px 45px rgba(16,38,64,0.12),
    0 0 18px rgba(16,38,64,0.04);
}

/* BORDER MOVES FASTER ON HOVER */

.company-card:hover::before {
  background: conic-gradient(
    from var(--company-border-angle),
    transparent 0deg,
    transparent 190deg,
    rgba(16,38,64,0.2) 250deg,
    #102640 320deg,
    transparent 360deg
  );

  animation-duration: 2.5s;
}

/* LOGO REACTS SLIGHTLY */

.company-card-logo img {
  transition:
    transform 0.55s cubic-bezier(0.22,1,0.36,1),
    filter 0.4s ease;
}

.company-card:hover .company-card-logo img {
  transform: scale(1.055);
}

/* HEADING RESPONSE */

.company-card-name {
  transition: color 0.35s ease;
}

.company-card:hover .company-card-name {
  color: #315273;
}

/* KEEP LINK INTERACTIONS ACCESSIBLE */

.company-card:focus-within {
  border-color: #102640;
}

/* REDUCED MOTION */

@media (prefers-reduced-motion: reduce) {
  .company-card,
  .company-card::before,
  .company-card-logo img,
  .company-card-name {
    animation: none !important;
    transition: none !important;
  }

  .company-card:hover {
    transform: none;
  }
}

/* ========================================
   KARAM NEXUS — CINEMATIC TEXT REVEALS
======================================== */

/* Hidden until scrolling into view */

.businesses-page.business-text-motion-ready
.business-text-reveal {
  opacity: 0;
  transform: translateY(35px);
  filter: blur(4px);

  transition:
    opacity 0.9s ease,
    transform 1.1s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.9s ease;

  transition-delay: var(--reveal-delay, 0ms);
}

/* Text becomes visible */

.businesses-page.business-text-motion-ready
.business-text-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

/* Accessibility */

@media (prefers-reduced-motion: reduce) {

  .businesses-page.business-text-motion-ready
  .business-text-reveal {
    opacity: 1;
    transform: none;
    filter: none;
    transition: none;
  }

}

/* ========================================
   KARAM NEXUS — HOTEL CARD PHOTOGRAPHS
======================================== */

/* Hotel photograph container */

.company-card-logo.has-hotel-photo {
  height: auto;
  aspect-ratio: 16 / 9;

  padding: 0;
  overflow: hidden;

  background: #102640;
}

/* Photograph fills the card */

.company-card-logo.has-hotel-photo img {
  display: block;

  width: 100%;
  height: 100%;

  max-width: none;
  max-height: none;

  object-fit: cover;
  object-position: center;

  transition: transform 0.65s
    cubic-bezier(0.22, 1, 0.36, 1);
}

/* Elegant image zoom on hover */

.company-card:hover
.company-card-logo.has-hotel-photo img {
  transform: scale(1.07);
}

/* Reduced motion */

@media (prefers-reduced-motion: reduce) {
  .company-card-logo.has-hotel-photo img {
    transition: none;
  }

  .company-card:hover
  .company-card-logo.has-hotel-photo img {
    transform: none;
  }
}

/* TWO-COMPANY CARD LAYOUT */

@media (min-width: 768px) {
  .company-grid:has(> .company-card:nth-child(2):last-child) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 1000px;
    margin-inline: auto;
  }
}

/* ==========================================
   TOUR & TRAVEL — CENTERED COMPANY LOGOS
========================================== */

/* Logo display area */

.businesses-page:has(
  .nexus-map[data-active="travel"]
) .company-card-logo.has-hotel-photo {

  height: 220px;
  aspect-ratio: auto;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 25px;

  background: #FFFFFF !important;
  overflow: hidden;
}

/* Show the complete logo without cropping */

.businesses-page:has(
  .nexus-map[data-active="travel"]
) .company-card-logo.has-hotel-photo img {

  display: block;

  width: 100%;
  height: 100%;

  max-width: 280px;
  max-height: 170px;

  object-fit: contain !important;
  object-position: center !important;

  margin: auto;
}

/* Gentle enlargement on hover */

.businesses-page:has(
  .nexus-map[data-active="travel"]
) .company-card:hover
.company-card-logo.has-hotel-photo img {

  transform: scale(1.04);
}

/* Mobile adjustments */

@media (max-width: 767px) {

  .businesses-page:has(
    .nexus-map[data-active="travel"]
  ) .company-card-logo.has-hotel-photo {
    height: 190px;
    padding: 20px;
  }

}

/* ========================================
   AVIATION SERVICES — CENTERED LOGOS
======================================== */

.businesses-page:has(
  .nexus-map[data-active="aviation"]
) .company-card-logo.has-hotel-photo {

  height: 220px;
  aspect-ratio: auto;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 25px;
  background: #FFFFFF !important;

  overflow: hidden;
}

/* Display complete Aviation logos */

.businesses-page:has(
  .nexus-map[data-active="aviation"]
) .company-card-logo.has-hotel-photo img {

  width: 100%;
  height: 100%;

  max-width: 280px;
  max-height: 170px;

  object-fit: contain !important;
  object-position: center !important;

  margin: auto;
}

/* Gentle logo zoom */

.businesses-page:has(
  .nexus-map[data-active="aviation"]
) .company-card:hover
.company-card-logo.has-hotel-photo img {
  transform: scale(1.04);
}

/* Mobile */

@media (max-width: 767px) {

  .businesses-page:has(
    .nexus-map[data-active="aviation"]
  ) .company-card-logo.has-hotel-photo {
    height: 190px;
    padding: 20px;
  }

}

/* ==========================================
   JASMINE RESTAURANT — FEATURED SHOWCASE
========================================== */

/* One large centered restaurant card */

.businesses-page:has(
  .nexus-map[data-active="restaurant"]
) .company-grid {
  grid-template-columns: minmax(0, 1fr);
  max-width: 950px;
  margin-inline: auto;
}

/* Desktop split layout */

.businesses-page:has(
  .nexus-map[data-active="restaurant"]
) .company-card {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  grid-template-rows: 1fr auto;
  min-height: 360px;
}

/* Main restaurant photograph */

.businesses-page:has(
  .nexus-map[data-active="restaurant"]
) .company-card-logo.has-hotel-photo {
  grid-column: 1;
  grid-row: 1 / 3;

  width: 100%;
  height: 100%;
  aspect-ratio: auto;

  padding: 0;
  overflow: hidden;
}

/* Fill the photograph area */

.businesses-page:has(
  .nexus-map[data-active="restaurant"]
) .company-card-logo.has-hotel-photo img {
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;

  object-fit: cover;
}

/* Restaurant information */

.businesses-page:has(
  .nexus-map[data-active="restaurant"]
) .company-card-content {
  grid-column: 2;
  grid-row: 1;

  padding: 45px 38px;

  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Visit Website button */

.businesses-page:has(
  .nexus-map[data-active="restaurant"]
) .company-card-visit {
  grid-column: 2;
  grid-row: 2;
}

/* Three restaurant gallery images */

.businesses-page .jasmine-gallery-track {
  grid-auto-flow: row;
  grid-auto-columns: auto;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  overflow: visible;
}

.businesses-page .jasmine-gallery-track img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

/* Mobile layout */

@media (max-width: 767px) {

  .businesses-page:has(
    .nexus-map[data-active="restaurant"]
  ) .company-card {
    display: flex;
    flex-direction: column;
    min-height: 0;
  }

  .businesses-page:has(
    .nexus-map[data-active="restaurant"]
  ) .company-card-logo.has-hotel-photo {
    height: auto;
    aspect-ratio: 16 / 9;
  }

  .businesses-page:has(
    .nexus-map[data-active="restaurant"]
  ) .company-card-content {
    padding: 28px 24px;
  }

  .businesses-page .jasmine-gallery-track {
    grid-auto-flow: column;
    grid-auto-columns: 82%;
    grid-template-columns: none;

    overflow-x: auto;
  }

}

/* ==========================================
   HAJJ & UMRAH — AL NAZAWY INDIA
========================================== */

/* Center the single company card */

.businesses-page:has(
  .nexus-map[data-active="pilgrimage"]
) .company-grid {
  grid-template-columns: minmax(0, 1fr);
  max-width: 500px;
  margin-inline: auto;
}

/* White logo display area */

.businesses-page:has(
  .nexus-map[data-active="pilgrimage"]
) .company-card-logo.has-hotel-photo {
  height: 230px;
  aspect-ratio: auto;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 30px;
  background: #FFFFFF !important;
  overflow: hidden;
}

/* Show the entire logo */

.businesses-page:has(
  .nexus-map[data-active="pilgrimage"]
) .company-card-logo.has-hotel-photo img {
  width: 100%;
  height: 100%;

  max-width: 300px;
  max-height: 170px;

  object-fit: contain !important;
  object-position: center;

  margin: auto;
}

/* Gentle hover enlargement */

.businesses-page:has(
  .nexus-map[data-active="pilgrimage"]
) .company-card:hover
.company-card-logo.has-hotel-photo img {
  transform: scale(1.05);
}

/* Mobile */

@media (max-width: 767px) {
  .businesses-page:has(
    .nexus-map[data-active="pilgrimage"]
  ) .company-card-logo.has-hotel-photo {
    height: 190px;
    padding: 22px;
  }
}

/* ==========================================
   KARAM NEXUS — CARGO SERVICES
========================================== */

/* Center the single company card */

.businesses-page:has(
  .nexus-map[data-active="cargo"]
) .company-grid {
  grid-template-columns: minmax(0, 1fr);
  max-width: 500px;
  margin-inline: auto;
}

/* White logo area */

.businesses-page:has(
  .nexus-map[data-active="cargo"]
) .company-card-logo.has-hotel-photo {
  height: 230px;
  aspect-ratio: auto;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 30px;
  background: #FFFFFF !important;
  overflow: hidden;
}

/* Keep the entire Silver Falcon logo visible */

.businesses-page:has(
  .nexus-map[data-active="cargo"]
) .company-card-logo.has-hotel-photo img {
  width: 100%;
  height: 100%;

  max-width: 300px;
  max-height: 170px;

  object-fit: contain !important;
  object-position: center;

  margin: auto;
}

/* Smooth logo enlargement on hover */

.businesses-page:has(
  .nexus-map[data-active="cargo"]
) .company-card:hover
.company-card-logo.has-hotel-photo img {
  transform: scale(1.05);
}

/* Mobile optimization */

@media (max-width: 767px) {
  .businesses-page:has(
    .nexus-map[data-active="cargo"]
  ) .company-card-logo.has-hotel-photo {
    height: 190px;
    padding: 22px;
  }
}

/* Reduced motion */

@media (prefers-reduced-motion: reduce) {
  .businesses-page:has(
    .nexus-map[data-active="cargo"]
  ) .company-card:hover
  .company-card-logo.has-hotel-photo img {
    transform: none;
  }
}

/* ==========================================
   KARAM NEXUS — SIX DIVISION NETWORK
========================================== */

/* Symmetrical desktop node positions */

.node-hotels {
  left: 30%;
  top: 20.833%;
}

.node-travel {
  left: 70%;
  top: 20.833%;
}

.node-aviation {
  left: 85%;
  top: 50%;
}

.node-restaurant {
  left: 70%;
  top: 79.167%;
}

.node-umrah {
  left: 30%;
  top: 79.167%;
}

.node-cargo {
  left: 15%;
  top: 50%;
}

/* Restore ordinary animations to every line,
   including paths previously highlighted by
   the old seven-division CSS rules. */

.nexus-map .nexus-connections path {
  stroke: rgba(244, 241, 235, 0.58) !important;
  stroke-width: 1.5 !important;
  stroke-dasharray: 3 11 !important;
  filter: none !important;

  animation:
    nexusContinuousData 8s linear infinite !important;
}

/* Correct active connection for six divisions */

:is(
  .nexus-map[data-active="hotels"]
  .nexus-connections path:nth-child(1),

  .nexus-map[data-active="travel"]
  .nexus-connections path:nth-child(2),

  .nexus-map[data-active="aviation"]
  .nexus-connections path:nth-child(3),

  .nexus-map[data-active="restaurant"]
  .nexus-connections path:nth-child(4),

  .nexus-map[data-active="pilgrimage"]
  .nexus-connections path:nth-child(5),

  .nexus-map[data-active="cargo"]
  .nexus-connections path:nth-child(6)
) {
  stroke: #FFFFFF !important;
  stroke-width: 2.8 !important;
  stroke-dasharray: 12 9 !important;

  filter:
    drop-shadow(0 0 4px rgba(255,255,255,0.9))
    drop-shadow(0 0 9px rgba(255,255,255,0.4))
    !important;

  animation:
    nexusActiveData 2.1s linear infinite !important;
}

/* Keep existing mobile grid layout */

@media (max-width: 900px) {
  .business-node {
    left: auto;
    top: auto;
  }
}

/* Respect reduced-motion preferences */

@media (prefers-reduced-motion: reduce) {
  body.businesses-page
  .nexus-map[data-active]
  .nexus-connections path {
    animation: none !important;
  }
}

/* ==========================================
   KARAM NEXUS — RESPONSIVE MOBILE NETWORK
   Preserve the radial Nexus on phones
========================================== */

@media (max-width: 900px) {

  /* Replace the mobile button grid
     with the original radial network */

  .businesses-page .nexus-map {
    position: relative;

    display: block;

    width: 100%;
    max-width: 600px;

    height: clamp(360px, 108vw, 520px);
    aspect-ratio: auto;

    margin: 55px auto 0;
  }

  /* Restore all six connecting lines */

  .businesses-page .nexus-connections {
    display: block !important;

    position: absolute;
    inset: 0;

    width: 100%;
    height: 100%;

    pointer-events: none;
    overflow: visible;
  }

  /* Put the KN circle back in the middle */

  .businesses-page .nexus-core {
    position: absolute;

    left: 50%;
    top: 50%;

    transform: translate(-50%, -50%);

    width: clamp(88px, 26vw, 120px);
    height: clamp(88px, 26vw, 120px);

    margin: 0;
    grid-column: auto;

    z-index: 3;
  }

  .businesses-page .nexus-core-logo {
    width: 45%;
    height: 45%;
  }

  .businesses-page .nexus-core > span {
    font-size: 7px;
    letter-spacing: 0.08em;
  }

  /* Smaller orbit for mobile */

  .businesses-page .nexus-core::before {
    inset: -10px;
  }

  /* Responsive business nodes */

  .businesses-page .business-node {
    position: absolute;

    width: 34%;
    max-width: 132px;
    min-height: 52px;

    padding: 8px 5px;

    border-radius: 8px;

    transform: translate(-50%, -50%);

    z-index: 4;
  }

  .businesses-page .business-node .node-name {
    font-size: clamp(10px, 2.2vw, 12px);
    line-height: 1.3;
  }

  /* Exact positions matching SVG lines */

  .businesses-page .node-hotels {
    left: 30%;
    top: 20.833%;
  }

  .businesses-page .node-travel {
    left: 70%;
    top: 20.833%;
  }

  .businesses-page .node-aviation {
    left: 85%;
    top: 50%;
    width: 28%;
  }

  .businesses-page .node-restaurant {
    left: 70%;
    top: 79.167%;
  }

  .businesses-page .node-umrah {
    left: 30%;
    top: 79.167%;
  }

  .businesses-page .node-cargo {
    left: 15%;
    top: 50%;
    width: 28%;
  }

  /* Keep hover movement centered */

  .businesses-page .business-node:hover {
    transform:
      translate(-50%, -50%)
      translateY(-3px);
  }

  /* Accessibility */

  .businesses-page .business-node:focus-visible {
    outline: 2px solid #FFFFFF;
    outline-offset: 3px;
  }
}

/* Extra-small phone refinements */

@media (max-width: 380px) {

  .businesses-page .business-node {
    padding: 7px 3px;
  }

  .businesses-page .business-node .node-name {
    font-size: 10px;
  }

}

/* ==========================================
   KARAM NEXUS — BUSINESSES STYLE FOOTER
   CONTACT PAGE
========================================== */

body.contact-page .business-footer {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 85px 0 25px;
  background: #000000;
  color: #F4F1EB;
  font-family: "DM Sans", Arial, sans-serif;
}

/* FOOTER CONTAINER */

body.contact-page .business-footer .business-container {
  width: min(1300px, calc(100% - 100px));
  margin: 0 auto;
}

/* MAIN FOOTER LAYOUT */

body.contact-page .business-footer-main {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 60px;
  padding-bottom: 85px;
}

/* BRAND SECTION */

body.contact-page .business-footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

body.contact-page .business-footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  color: #F4F1EB;
  text-decoration: none;
}

/* KN LOGO */

body.contact-page .business-footer-logo img {
  display: block;
  width: 62px;
  height: 62px;
  object-fit: contain;
  transition: transform 0.4s ease;
}

body.contact-page .business-footer-logo:hover img {
  transform: scale(1.07);
}

/* KARAM NEXUS WORDMARK */

body.contact-page .business-footer .footer-wordmark {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

body.contact-page .footer-wordmark > span {
  font-size: 23px;
  font-weight: 500;
  letter-spacing: 0.32em;
  line-height: 1.2;
  color: #F4F1EB;
}

body.contact-page .footer-wordmark > small {
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.56em;
  line-height: 1.3;
  color: #C0CEDB;
}

/* TAGLINE */

body.contact-page .business-footer-brand > p {
  margin: 24px 0 0;
  font-size: 16px;
  font-weight: 300;
  line-height: 1.7;
  color: #AABBCB;
}

/* FOOTER NAVIGATION */

body.contact-page .business-footer-links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 21px;
}

body.contact-page .business-footer-links a {
  position: relative;
  display: inline-block;
  padding-bottom: 5px;

  color: #D6E0E9;
  text-decoration: none;
  font-size: 15px;
  font-weight: 400;

  transition:
    color 0.3s ease,
    transform 0.3s ease;
}

/* ANIMATED LINK UNDERLINE */

body.contact-page .business-footer-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;

  width: 0;
  height: 1px;
  background: #F4F1EB;

  transition: width 0.35s ease;
}

body.contact-page .business-footer-links a:hover {
  color: #FFFFFF;
  transform: translateX(5px);
}

body.contact-page .business-footer-links a:hover::after {
  width: 100%;
}

/* COPYRIGHT SECTION */

body.contact-page .business-footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;

  padding-top: 25px;

  border-top: 1px solid rgba(244, 241, 235, 0.18);
}

body.contact-page .business-footer-bottom span {
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: #95A7B7;
}

/* ==========================================
   TABLET
========================================== */

@media (max-width: 1024px) {

  body.contact-page .business-footer .business-container {
    width: calc(100% - 64px);
  }

  body.contact-page .business-footer-main {
    gap: 45px;
  }

}

/* ==========================================
   MOBILE
========================================== */

@media (max-width: 767px) {

  body.contact-page .business-footer {
    padding: 65px 0 25px;
  }

  body.contact-page .business-footer .business-container {
    width: calc(100% - 40px);
  }

  body.contact-page .business-footer-main {
    flex-direction: column;
    align-items: flex-start;
    gap: 55px;
    padding-bottom: 65px;
  }

  body.contact-page .business-footer-logo img {
    width: 52px;
    height: 52px;
  }

  body.contact-page .footer-wordmark > span {
    font-size: 19px;
  }

  body.contact-page .footer-wordmark > small {
    font-size: 10px;
  }

  body.contact-page .business-footer-brand > p {
    font-size: 15px;
  }

  body.contact-page .business-footer-links {
    gap: 22px;
  }

  body.contact-page .business-footer-links a {
    font-size: 15px;
  }

  body.contact-page .business-footer-bottom {
    padding-top: 22px;
  }

}

/* ACCESSIBILITY */

@media (prefers-reduced-motion: reduce) {

  body.contact-page .business-footer *,
  body.contact-page .business-footer *::after {
    transition: none !important;
    animation: none !important;
  }

}

/* ==========================================
   KARAM NEXUS — UNIFIED CORPORATE FOOTER
   BUSINESSES + ABOUT US
========================================== */

/* FOOTER BACKGROUND */

body .business-footer,
body .about-footer {
  position: relative;
  z-index: 2;

  width: 100%;
  padding: 85px 0 25px;

  background: #000000 !important;
  color: #F4F1EB !important;

  font-family: "DM Sans", Arial, sans-serif;
}

/* CONTAINER */

body .business-footer .business-container,
body .about-footer .about-container {
  width: min(1300px, calc(100% - 100px));
  max-width: none;
  margin: 0 auto;
}

/* MAIN TWO-COLUMN LAYOUT */

body .business-footer-main,
body .about-footer .footer-content {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-start;

  gap: 60px;
  padding-bottom: 85px;
}

/* BRAND AREA */

body .business-footer-brand,
body .about-footer .footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

/* LOGO AND WORDMARK ROW */

body .business-footer-logo,
body .about-footer .footer-logo-link {
  display: inline-flex;
  align-items: center;
  gap: 18px;

  color: #F4F1EB !important;
  text-decoration: none;
}

/* KN SYMBOL */

body .business-footer-logo img,
body .about-footer .footer-kn-logo {
  display: block;

  width: 62px;
  height: 62px;

  object-fit: contain;

  transition: transform 0.4s ease;
}

body .business-footer-logo:hover img,
body .about-footer .footer-logo-link:hover img {
  transform: scale(1.07);
}

/* WORDMARK WRAPPER */

body .business-footer .footer-wordmark,
body .about-footer .footer-brand-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;

  gap: 5px;
}

/* KARAM WORDMARK */

body .business-footer .footer-wordmark > span,
body .about-footer .footer-karam {
  display: block;

  font-size: 23px;
  font-weight: 500;
  letter-spacing: 0.32em;
  line-height: 1.2;

  color: #F4F1EB !important;
}

/* NEXUS WORDMARK */

body .business-footer .footer-wordmark > small,
body .about-footer .footer-nexus {
  display: block;

  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.56em;
  line-height: 1.3;

  color: #C0CEDB !important;
}

/* TAGLINE */

body .business-footer-brand > p,
body .about-footer .footer-tagline {
  margin: 24px 0 0;

  font-size: 16px !important;
  font-weight: 300;
  line-height: 1.7;

  color: #AABBCB !important;
}

/* ==========================================
   FOOTER NAVIGATION
========================================== */

body .business-footer-links,
body .about-footer .footer-navigation {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;

  gap: 21px;
}

/* NAVIGATION LINKS */

body .business-footer-links a,
body .about-footer .footer-navigation a {
  position: relative;
  display: inline-block;

  padding: 0 0 5px;

  color: #D6E0E9 !important;
  text-decoration: none !important;

  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 1.5;

  transition:
    color 0.3s ease,
    transform 0.3s ease;
}

/* HOVER UNDERLINE */

body .business-footer-links a::after,
body .about-footer .footer-navigation a::after {
  content: "";

  position: absolute;
  left: 0;
  bottom: 0;

  width: 0;
  height: 1px;

  background: #F4F1EB;

  transition: width 0.35s ease;
}

body .business-footer-links a:hover,
body .about-footer .footer-navigation a:hover {
  color: #FFFFFF !important;
  transform: translateX(5px);
}

body .business-footer-links a:hover::after,
body .about-footer .footer-navigation a:hover::after {
  width: 100%;
}

/* ==========================================
   COPYRIGHT DIVIDER
========================================== */

body .business-footer-bottom,
body .about-footer .footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;

  padding-top: 25px;

  border-top: 1px solid rgba(244, 241, 235, 0.18);
}

/* COPYRIGHT TEXT */

body .business-footer-bottom span,
body .about-footer .footer-bottom p {
  margin: 0;

  font-size: 12px !important;
  font-weight: 400;
  letter-spacing: 0.08em;
  line-height: 1.5;

  color: #95A7B7 !important;
}

/* ==========================================
   TABLET
========================================== */

@media (max-width: 1024px) {

  body .business-footer .business-container,
  body .about-footer .about-container {
    width: calc(100% - 64px);
  }

  body .business-footer-main,
  body .about-footer .footer-content {
    gap: 45px;
  }

}

/* ==========================================
   MOBILE
========================================== */

@media (max-width: 767px) {

  body .business-footer,
  body .about-footer {
    padding: 65px 0 25px;
  }

  body .business-footer .business-container,
  body .about-footer .about-container {
    width: calc(100% - 40px);
  }

  body .business-footer-main,
  body .about-footer .footer-content {
    flex-direction: column;
    align-items: flex-start;

    gap: 55px;
    padding-bottom: 65px;
  }

  body .business-footer-logo img,
  body .about-footer .footer-kn-logo {
    width: 52px;
    height: 52px;
  }

  body .business-footer .footer-wordmark > span,
  body .about-footer .footer-karam {
    font-size: 19px;
  }

  body .business-footer .footer-wordmark > small,
  body .about-footer .footer-nexus {
    font-size: 10px;
  }

  body .business-footer-brand > p,
  body .about-footer .footer-tagline {
    font-size: 15px !important;
  }

  body .business-footer-links,
  body .about-footer .footer-navigation {
    gap: 22px;
  }

  body .business-footer-links a,
  body .about-footer .footer-navigation a {
    font-size: 15px;
  }

  body .business-footer-bottom,
  body .about-footer .footer-bottom {
    padding-top: 22px;
  }

}

/* REDUCED MOTION */

@media (prefers-reduced-motion: reduce) {

  body .business-footer *,
  body .about-footer * {
    animation: none !important;
    transition: none !important;
  }

}

