/* Al Rif'ah Group - Official Corporate Stylesheet */
:root {
  --navy: #071b33;
  --navy2: #0b2d5c;
  --gold: #c9a24a;
  --gold-light: #e2c06f;
  --paper: #f6f7f8;
  --ink: #11263c;
  --muted: #6c7884;
  --side: 150px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #ffffff;
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.site-shell main {
  margin-left: var(--side);
}

/* Side Navigation (Desktop) */
.side-nav {
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--side);
  background: var(--navy);
  z-index: 30;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.brand-card {
  height: 138px;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  overflow: hidden;
  box-sizing: border-box;
}

.brand-card img {
  width: auto;
  height: auto;
  max-width: 106px;
  max-height: 106px;
  object-fit: contain;
  display: block;
}

.side-nav nav {
  padding-top: 22px;
}

.side-nav nav a {
  display: block;
  padding: 12px 21px;
  font-size: 10px;
  color: #d2dce5;
  border-left: 3px solid transparent;
  transition: all 0.2s ease;
}

.side-nav nav a:hover,
.side-nav nav a.active {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.045);
  border-left-color: var(--gold);
}

.side-note {
  margin: auto 20px 24px;
  font-size: 7px;
  line-height: 1.85;
  letter-spacing: 0.15em;
  color: #8296a8;
}

/* Mobile Header */
.mobile-header {
  display: none;
}

/* Hero Section */
.hero {
  min-height: 680px;
  background: var(--navy);
  position: relative;
  overflow: hidden;
  color: #ffffff;
}

.hero-photo {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(5, 20, 37, 0.96), rgba(5, 20, 37, 0.80) 48%, rgba(5, 20, 37, 0.35)), url('../images/trading.png') center/cover no-repeat;
  opacity: 0.8;
}

.hero-copy {
  position: relative;
  z-index: 3;
  max-width: 720px;
  padding: 112px 58px 80px;
}

.eyebrow,
.section-title > p,
.future-heading > p,
.vision-panel > p,
.contact-kicker {
  font-size: 9px;
  letter-spacing: 0.22em;
  color: var(--gold);
  font-weight: 700;
  margin: 0 0 17px;
  text-transform: uppercase;
}

.hero h1 {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 72px;
  line-height: 0.92;
  letter-spacing: -0.04em;
  font-weight: 500;
  margin: 0 0 26px;
}

.hero h1 span {
  color: var(--gold-light);
}

.hero-text {
  font-size: 16px;
  line-height: 1.7;
  max-width: 540px;
  color: #e0e8ef;
  margin: 0;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 28px;
  margin-top: 30px;
  background: var(--gold);
  color: #0f2942;
  padding: 15px 20px;
  font-size: 10px;
  font-weight: 700;
  transition: background 0.2s ease, transform 0.2s ease;
}

.hero-cta:hover {
  background: #d8b258;
  transform: translateX(4px);
}

/* Globe Element */
.globe {
  position: absolute;
  right: -90px;
  top: 80px;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  border: 1px solid rgba(177, 211, 235, 0.45);
  background: radial-gradient(circle at 35% 28%, rgba(80, 139, 187, 0.55), rgba(10, 45, 80, 0.76) 45%, rgba(2, 14, 27, 0.95) 73%);
  box-shadow: inset -35px -45px 80px rgba(0, 0, 0, 0.38), 0 0 55px rgba(31, 102, 155, 0.18);
  z-index: 2;
}

.globe:before,
.globe:after {
  content: "";
  position: absolute;
  border: 1px solid rgba(201, 162, 74, 0.46);
  border-radius: 50%;
  inset: 70px 38px;
  transform: rotate(18deg);
}

.globe:after {
  inset: 120px 28px;
  transform: rotate(-24deg);
}

.globe-line {
  position: absolute;
  left: 70px;
  right: 58px;
  height: 95px;
  border-top: 1px solid rgba(201, 162, 74, 0.58);
  border-radius: 50%;
}

.g1 {
  top: 150px;
  transform: rotate(-10deg);
}

.g2 {
  top: 250px;
  transform: rotate(7deg);
}

.g3 {
  top: 355px;
  transform: rotate(-7deg);
}

.dot {
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #e3c372;
  box-shadow: 0 0 12px rgba(227, 195, 114, 0.75);
}

.d1 { top: 155px; left: 145px; }
.d2 { top: 246px; left: 280px; }
.d3 { top: 340px; left: 210px; }
.d4 { top: 285px; left: 390px; }

/* Sections Common */
.section {
  padding: 72px 58px;
}

.section-title h2,
.future-heading h2,
.vision-panel h2,
.contact h2 {
  font-family: Georgia, 'Times New Roman', serif;
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 0.98;
  font-size: 50px;
  margin: 0;
}

/* About Section */
.about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 90px;
  align-items: start;
}

.about-copy {
  border-left: 1px solid #d8bd7a;
  padding-left: 38px;
}

.about-copy .lead {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 22px;
  line-height: 1.42;
  margin: 0 0 22px;
  color: #35516b;
}

.about-copy p:last-child {
  font-size: 13px;
  line-height: 1.85;
  color: var(--muted);
  margin: 0;
}

/* Portfolio / Companies Section */
.portfolio {
  background: var(--paper);
}

.company-grid {
  margin-top: 38px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.company-card {
  background: #ffffff;
  border: 1px solid #e1e6ea;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
}

.company-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(17, 38, 60, 0.10);
}

.company-image {
  aspect-ratio: 16/10;
  overflow: hidden;
  background: #dce4e9;
}

.company-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.company-content {
  padding: 18px 18px 20px;
  min-height: 180px;
  position: relative;
  flex: 1;
}

.company-content span {
  font-size: 8px;
  letter-spacing: 0.16em;
  color: #aa7d2d;
  text-transform: uppercase;
  font-weight: 700;
}

.company-content h3 {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 21px;
  line-height: 1.08;
  font-weight: 500;
  margin: 9px 30px 12px 0;
}

.company-content p {
  font-size: 11px;
  line-height: 1.65;
  color: var(--muted);
  margin: 0;
  max-width: 36ch;
}

.company-content b {
  position: absolute;
  right: 17px;
  top: 47px;
  color: var(--gold);
  font-size: 18px;
  font-weight: normal;
}

/* Future Sectors */
.future {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
}

.future-copy {
  margin: 23px 0 0;
  max-width: 520px;
  font-size: 13px;
  line-height: 1.8;
  color: var(--muted);
}

.future-list {
  border-top: 1px solid #dce2e7;
}

.future-row {
  display: grid;
  grid-template-columns: 48px 1fr 30px;
  align-items: center;
  gap: 16px;
  padding: 19px 0;
  border-bottom: 1px solid #dce2e7;
}

.future-row span {
  font-size: 9px;
  color: #a6823c;
  font-weight: 700;
}

.future-row strong {
  font-family: Georgia, 'Times New Roman', serif;
  font-weight: 500;
  font-size: 20px;
}

.future-row b {
  text-align: right;
  color: var(--gold);
  font-weight: normal;
}

.future-row.more {
  background: #f8f5ed;
  padding-left: 12px;
  padding-right: 12px;
}

/* Vision Section */
.vision {
  min-height: 520px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--navy);
  color: #ffffff;
}

.vision-image {
  background: linear-gradient(rgba(7, 27, 51, 0.34), rgba(7, 27, 51, 0.34)), url('../images/logistics.png') center/cover no-repeat;
  min-height: 520px;
}

.vision-panel {
  padding: 76px 62px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.vision-panel h2 {
  font-size: 46px;
}

.vision-panel > p:last-of-type {
  font-size: 13px;
  line-height: 1.85;
  color: #c6d2dd;
  max-width: 560px;
  margin: 24px 0 0;
}

.pillars {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-top: 36px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  border-left: 1px solid rgba(255, 255, 255, 0.15);
}

.pillars span {
  padding: 15px;
  border-right: 1px solid rgba(255, 255, 255, 0.15);
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 10px;
  color: #e4ebf0;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Leadership Section */
.leadership {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 80px;
  align-items: center;
}

.ceo-card {
  border-top: 1px solid #dce2e7;
  border-bottom: 1px solid #dce2e7;
  min-height: 150px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 25px 0;
}

.ceo-card span {
  font-size: 8px;
  letter-spacing: 0.18em;
  color: #9a7b3e;
  font-weight: 700;
}

.ceo-card h3 {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 28px;
  font-weight: 500;
  margin: 12px 0 0;
}

.ceo-mark {
  width: 64px;
  height: 64px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: Georgia, serif;
  color: #8b6928;
  font-size: 18px;
  font-weight: 500;
}

/* News Section */
.news {
  background: #f3f5f6;
}

.news-line {
  margin-top: 35px;
  border-top: 1px solid #dce2e7;
  border-bottom: 1px solid #dce2e7;
  padding: 22px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 25px;
  font-size: 12px;
  color: #526477;
}

.news-line b {
  font-size: 8px;
  letter-spacing: 0.15em;
  color: #9f7b32;
  font-weight: 700;
}

/* Contact Section */
.contact {
  background: var(--navy2);
  color: #ffffff;
  display: flex;
  justify-content: space-between;
  gap: 40px;
  align-items: flex-end;
}

.contact h2 {
  font-size: 46px;
  color: #ffffff;
}

.contact p:last-child {
  font-size: 13px;
  color: #c7d5df;
  margin: 20px 0 0;
}

.contact-cta {
  border: 1px solid rgba(255, 255, 255, 0.32);
  padding: 15px 18px;
  font-size: 10px;
  display: inline-flex;
  gap: 30px;
  align-items: center;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.contact-cta:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #ffffff;
}

/* Footer */
footer {
  background: #061426;
  color: #ffffff;
  padding: 28px 58px;
  display: grid;
  grid-template-columns: 120px 1fr auto;
  gap: 26px;
  align-items: center;
}

footer img {
  width: 90px;
  height: auto;
  max-height: 90px;
  background: #ffffff;
  padding: 6px;
  object-fit: contain;
}

footer div {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

footer strong {
  font-family: Georgia, serif;
  font-size: 20px;
  font-weight: 500;
}

footer span,
footer small {
  font-size: 9px;
  color: #8ea0b0;
}

footer small {
  text-align: right;
}

/* Responsive Breakpoints */
@media (max-width: 1100px) {
  :root {
    --side: 120px;
  }
  .brand-card {
    height: 118px;
    padding: 12px;
    overflow: hidden;
    box-sizing: border-box;
  }
  .brand-card img {
    max-width: 86px;
    max-height: 86px;
    width: auto;
    height: auto;
    object-fit: contain;
  }
  .side-nav nav a {
    padding: 11px 14px;
    font-size: 9px;
  }
  .hero h1 {
    font-size: 58px;
  }
  .globe {
    right: -170px;
  }
  .company-grid {
    grid-template-columns: 1fr 1fr;
  }
  .about,
  .future,
  .leadership {
    gap: 45px;
  }
  .section {
    padding: 58px 40px;
  }
  .vision-panel {
    padding: 55px 40px;
  }
}

@media (max-width: 760px) {
  .side-nav {
    display: none;
  }
  .site-shell main {
    margin-left: 0;
  }
  .mobile-header {
    position: sticky;
    top: 0;
    z-index: 40;
    height: 68px;
    background: #071b33;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 7px 14px;
  }
  .mobile-header > img {
    height: 52px;
    width: auto;
    background: #ffffff;
    padding: 3px;
    object-fit: contain;
  }
  .mobile-header details {
    position: relative;
    color: #ffffff;
  }
  .mobile-header summary {
    font-size: 11px;
    cursor: pointer;
    list-style: none;
    border: 1px solid rgba(255, 255, 255, 0.25);
    padding: 9px 12px;
    user-select: none;
  }
  .mobile-header summary::-webkit-details-marker {
    display: none;
  }
  .mobile-header nav {
    position: absolute;
    right: 0;
    top: 44px;
    width: 190px;
    background: #071b33;
    padding: 8px 15px;
    box-shadow: 0 16px 30px rgba(0, 0, 0, 0.25);
  }
  .mobile-header nav a {
    display: block;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 11px;
  }
  .mobile-header nav a:last-child {
    border-bottom: none;
  }
  .hero {
    min-height: 610px;
  }
  .hero-copy {
    padding: 80px 22px 50px;
  }
  .hero h1 {
    font-size: 48px;
  }
  .hero-text {
    font-size: 14px;
    max-width: 420px;
  }
  .globe {
    width: 350px;
    height: 350px;
    right: -170px;
    top: 205px;
    opacity: 0.78;
  }
  .globe:before {
    inset: 50px 30px;
  }
  .globe:after {
    inset: 82px 24px;
  }
  .globe-line {
    left: 50px;
    right: 38px;
  }
  .g1 { top: 100px; }
  .g2 { top: 170px; }
  .g3 { top: 235px; }
  .d1 { top: 103px; left: 105px; }
  .d2 { top: 166px; left: 185px; }
  .d3 { top: 228px; left: 155px; }
  .d4 { top: 192px; left: 270px; }
  .section {
    padding: 48px 20px;
  }
  .about,
  .future,
  .leadership {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .section-title h2,
  .future-heading h2,
  .contact h2 {
    font-size: 38px;
  }
  .about-copy {
    padding: 24px 0 0;
    border-left: 0;
    border-top: 1px solid #d8bd7a;
  }
  .company-grid {
    grid-template-columns: 1fr;
  }
  .vision {
    grid-template-columns: 1fr;
  }
  .vision-image {
    min-height: 310px;
  }
  .vision-panel {
    padding: 44px 20px;
  }
  .vision-panel h2 {
    font-size: 38px;
  }
  .contact {
    align-items: flex-start;
    flex-direction: column;
  }
  .contact-cta {
    margin-top: 8px;
  }
  footer {
    grid-template-columns: 90px 1fr;
    padding: 25px 20px;
  }
  footer img {
    width: 76px;
    height: auto;
    object-fit: contain;
  }
  footer small {
    grid-column: 1 / -1;
    text-align: left;
  }
  .news-line {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .company-card {
    transition: none;
  }
}
