/* =========================================================
   OIL CLUB × ALAMA ALJAZEERA — shared stylesheet
   Design tokens: graphite / warehouse-concrete / OC red / AJ green / lubricant amber
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@500;700;800;900&family=IBM+Plex+Sans:wght@400;500;600&family=IBM+Plex+Sans+Arabic:wght@400;500;600&family=IBM+Plex+Mono:wght@500;600&display=swap');

:root{
  --ink:        #14171A;   /* graphite base */
  --ink-soft:   #1F2427;
  --paper:      #E9EAE4;   /* cool warehouse concrete */
  --paper-hi:   #F4F4F0;
  --steel:      #565B5E;   /* mid gray, dividers/muted text */
  --steel-line: rgba(86,91,94,0.22);
  --red:        #D2232A;   /* Oil Club */
  --red-dim:    #9E1A20;
  --green:      #1E7A34;   /* Alama Aljazeera */
  --green-dim:  #145426;
  --amber:      #C98A2E;   /* lubricant gold accent */

  --display: 'Cairo', 'IBM Plex Sans Arabic', sans-serif;
  --body-en: 'IBM Plex Sans', sans-serif;
  --body-ar: 'IBM Plex Sans Arabic', sans-serif;
  --mono:    'IBM Plex Mono', monospace;

  --maxw: 1180px;
  --radius: 3px;
}

/* bilingual content toggling: both languages live in the DOM,
   only the active one is shown, driven by <html dir="rtl|ltr"> */
html:not([dir="rtl"]) [data-lang="ar"]{ display:none; }
html[dir="rtl"] [data-lang="en"]{ display:none; }

*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
html:not([dir="rtl"]) body{ font-family: var(--body-en); }
html[dir="rtl"] body{ font-family: var(--body-ar); }

body{
  margin:0;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img{ max-width:100%; display:block; }
a{ color: inherit; text-decoration:none; }

.wrap{
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Type ---------- */
h1,h2,h3,.display{
  font-family: var(--display);
  font-weight: 800;
  line-height: 1.12;
  margin: 0 0 0.4em;
  letter-spacing: -0.01em;
}
h1{ font-size: clamp(2.2rem, 4.4vw, 3.6rem); font-weight:900; }
h2{ font-size: clamp(1.6rem, 2.8vw, 2.3rem); }
h3{ font-size: 1.15rem; font-weight:700; }
p{ margin:0 0 1em; color: var(--ink-soft); }
.eyebrow{
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--steel);
  display:flex;
  align-items:center;
  gap:10px;
  margin-bottom: 14px;
}
.eyebrow::before{
  content:"";
  width: 22px; height: 2px;
  background: var(--red);
  display:inline-block;
}
html[dir="rtl"] .eyebrow{ letter-spacing: 0; }

.lede{ font-size: 1.08rem; max-width: 46em; }
.mono-num{ font-family: var(--mono); font-variant-numeric: tabular-nums; }

/* ---------- Header ---------- */
.site-header{
  position: sticky; top:0; z-index: 50;
  background: rgba(233,234,228,0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--steel-line);
}
.header-inner{
  display:flex; align-items:center; justify-content:space-between;
  padding: 14px 0;
  gap: 20px;
}
.brand-lockup{ display:flex; align-items:center; gap:12px; }
.brand-lockup img{ height: 34px; width:auto; }
.brand-divider{ width:1px; height:26px; background: var(--steel-line); }
.brand-lockup .oc-mark{ height:30px; }

nav.main-nav{ display:flex; align-items:center; gap: 28px; }
nav.main-nav a{
  font-size: 0.92rem; font-weight:600; color: var(--ink);
  position: relative; padding: 4px 0;
}
nav.main-nav a::after{
  content:""; position:absolute; left:0; bottom:-2px; height:2px; width:0;
  background: var(--red); transition: width .2s ease;
}
nav.main-nav a:hover::after, nav.main-nav a.active::after{ width:100%; }

.header-actions{ display:flex; align-items:center; gap:14px; }
.lang-toggle{
  font-family: var(--mono); font-size: 0.76rem; font-weight:600;
  border: 1px solid var(--steel-line);
  background: transparent; color: var(--ink);
  padding: 7px 12px; border-radius: var(--radius);
  cursor:pointer; letter-spacing: 0.05em;
}
.lang-toggle:hover{ border-color: var(--ink); }

.nav-toggle-btn{
  display:none; background:none; border:none; cursor:pointer;
  flex-direction:column; gap:5px; padding:6px;
}
.nav-toggle-btn span{ width:22px; height:2px; background:var(--ink); display:block; }

/* ---------- Buttons ---------- */
.btn{
  display:inline-flex; align-items:center; gap:10px;
  font-weight:700; font-size:0.92rem;
  padding: 13px 22px; border-radius: var(--radius);
  border: 1px solid transparent; cursor:pointer;
}
.btn-primary{ background: var(--red); color:#fff; }
.btn-primary:hover{ background: var(--red-dim); }
.btn-ghost{ border-color: var(--ink); color: var(--ink); }
.btn-ghost:hover{ background: var(--ink); color:#fff; }
.btn-ghost-light{ border-color: rgba(255,255,255,0.5); color:#fff; }
.btn-ghost-light:hover{ background:#fff; color:var(--ink); }

/* ---------- Hero ---------- */
.hero{
  display:grid; grid-template-columns: 1.05fr 1fr;
  align-items: stretch; gap: 0;
  border-bottom: 1px solid var(--steel-line);
}
.hero-copy{
  padding: 90px 24px 70px;
  display:flex; flex-direction:column; justify-content:center;
  max-width: 560px; margin-inline-start:auto;
}
.hero-copy .cta-row{ display:flex; gap:14px; margin-top: 10px; flex-wrap:wrap; }
.hero-media{
  position:relative; min-height: 380px;
  background-size: cover; background-position:center;
}
.hero-media::after{
  content:"";
  position:absolute; inset:0;
  background: linear-gradient(180deg, rgba(20,23,26,0.05) 0%, rgba(20,23,26,0.55) 100%);
}
.hero-media .hex-accent{ position:absolute; inset:0; opacity:0.5; pointer-events:none; }

@media (max-width: 900px){
  .hero{ grid-template-columns: 1fr; }
  .hero-copy{ padding: 56px 24px 40px; max-width:none; margin:0; order:2; }
  .hero-media{ min-height: 260px; order:1; }
}

/* page (non-home) hero, simpler */
.page-hero{
  padding: 74px 0 50px;
  border-bottom: 1px solid var(--steel-line);
}
.page-hero .lede{ margin-top: 6px; }

/* ---------- Stat strip ---------- */
.stat-strip{
  background: var(--ink);
  color: #fff;
}
.stat-grid{
  display:grid; grid-template-columns: repeat(5, 1fr);
}
.stat-cell{
  padding: 34px 20px;
  border-inline-start: 1px solid rgba(255,255,255,0.14);
  text-align:center;
}
.stat-cell:first-child{ border-inline-start:none; }
.stat-num{
  font-family: var(--mono); font-size: clamp(1.5rem,2.6vw,2.1rem);
  font-weight:600; color:#fff; display:block;
}
.stat-num .unit{ color: var(--amber); font-size:0.55em; margin-inline-start:3px; }
.stat-label{
  font-size: 0.74rem; color: rgba(255,255,255,0.62);
  text-transform: uppercase; letter-spacing: 0.06em; margin-top:6px;
}
html[dir="rtl"] .stat-label{ letter-spacing:0; }

@media (max-width: 900px){
  .stat-grid{ grid-template-columns: repeat(2, 1fr); }
  .stat-cell:nth-child(2n+1){ border-inline-start:none; }
  .stat-cell{ border-top: 1px solid rgba(255,255,255,0.14); }
  .stat-cell:nth-child(-n+2){ border-top:none; }
}

/* ---------- Section ---------- */
.section{ padding: 84px 0; }
.section-tight{ padding: 60px 0; }
.section-head{ max-width: 640px; margin-bottom: 44px; }
.section-alt{ background: var(--paper-hi); border-top:1px solid var(--steel-line); border-bottom:1px solid var(--steel-line); }
.section-dark{ background: var(--ink); color:#fff; }
.section-dark p{ color: rgba(255,255,255,0.7); }
.section-dark .eyebrow{ color: rgba(255,255,255,0.5); }

/* ---------- Two brands ---------- */
.brand-split{ display:grid; grid-template-columns: 1fr 1fr; gap:1px; background:var(--steel-line); border:1px solid var(--steel-line); }
.brand-card{ background: var(--paper); padding: 44px 40px; }
.brand-card .card-photo{
  width: calc(100% + 80px); margin: -44px -40px 28px;
  height: 200px; object-fit: cover; display:block;
}
.service-card .card-photo{
  width: calc(100% + 76px); margin: -38px -38px 22px;
  height: 180px; object-fit: cover; display:block;
}
.brand-card .brand-logo{ height:46px; margin-bottom:22px; }
.brand-card.card-red{ border-top:3px solid var(--red); }
.brand-card.card-green{ border-top:3px solid var(--green); }
.brand-card .tag{
  font-family:var(--mono); font-size:0.7rem; letter-spacing:0.1em; text-transform:uppercase;
  padding: 4px 10px; border-radius:20px; display:inline-block; margin-bottom:16px;
}
.card-red .tag{ background: rgba(210,35,42,0.1); color: var(--red); }
.card-green .tag{ background: rgba(30,122,52,0.1); color: var(--green); }
.brand-card a.more{ font-weight:700; font-size:0.9rem; display:inline-flex; align-items:center; gap:6px; margin-top:6px; }
.card-red a.more{ color: var(--red); }
.card-green a.more{ color: var(--green); }

@media (max-width:820px){
  .brand-split{ grid-template-columns:1fr; }
}

/* ---------- Network diagram ---------- */
.network-wrap{ display:grid; grid-template-columns: 1fr 1.1fr; gap:56px; align-items:center; }
.network-svg{ width:100%; height:auto; }
.node-label{ font-family:var(--mono); font-size:0.8rem; fill:var(--ink); }
.node-sub{ font-family:var(--body-en); font-size:0.68rem; fill:var(--steel); }
@media (max-width: 900px){ .network-wrap{ grid-template-columns:1fr; } }

/* ---------- Trusted brands strip ---------- */
.trusted-strip{ padding: 40px 0; border-top:1px solid var(--steel-line); border-bottom:1px solid var(--steel-line); }
.trusted-label{ font-family:var(--mono); font-size:0.72rem; color:var(--steel); text-transform:uppercase; letter-spacing:0.1em; margin-bottom:20px; }
.trusted-row{ display:flex; flex-wrap:wrap; gap:14px; }
.trusted-badge{
  font-family: var(--display); font-weight:800; font-size:1.05rem;
  padding: 10px 20px; border:1px solid var(--steel-line); border-radius:2px;
  color: var(--ink); background:#fff;
}

/* ---------- Cards / grids (services) ---------- */
.service-grid{ display:grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--steel-line); border:1px solid var(--steel-line); }
.service-card{ background: var(--paper); padding: 38px; }
.service-card .num{ font-family:var(--mono); color:var(--red); font-size:0.85rem; margin-bottom:14px; display:block; }
.service-card ul{ margin:14px 0 0; padding-inline-start: 18px; color: var(--ink-soft); }
.service-card li{ margin-bottom:6px; }
@media (max-width:820px){ .service-grid{ grid-template-columns:1fr; } }

/* ---------- Story / then-now ---------- */
.thennow{ display:grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.thennow-col{ padding: 32px; border: 1px solid var(--steel-line); background:#fff; }
.thennow-year{ font-family: var(--mono); color: var(--amber); font-size:0.85rem; margin-bottom:10px; display:block; }
.thennow-list{ list-style:none; margin:16px 0 0; padding:0; display:grid; gap:10px; }
.thennow-list li{ display:flex; justify-content:space-between; border-bottom:1px dashed var(--steel-line); padding-bottom:8px; font-size:0.94rem; }
.thennow-list li span:last-child{ font-family:var(--mono); color:var(--ink); font-weight:600; }
@media (max-width:820px){ .thennow{ grid-template-columns:1fr; } }

/* ---------- CTA band ---------- */
.cta-band{
  background: var(--red);
  color:#fff; padding: 56px 0; text-align:center;
}
.cta-band h2{ color:#fff; margin-bottom: 10px; }
.cta-band p{ color: rgba(255,255,255,0.85); }
.cta-band .cta-row{ display:flex; gap:14px; justify-content:center; margin-top:22px; flex-wrap:wrap; }

/* ---------- Contact ---------- */
.contact-grid{ display:grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items:start; }
.contact-list{ list-style:none; margin:0; padding:0; display:grid; gap:22px; }
.contact-list li{ padding-inline-start: 0; }
.contact-list .label{ font-family:var(--mono); font-size:0.72rem; text-transform:uppercase; letter-spacing:0.08em; color:var(--steel); display:block; margin-bottom:5px; }
.contact-list .value{ font-size:1.05rem; font-weight:600; }
.map-frame{ border:1px solid var(--steel-line); width:100%; height: 340px; }
@media (max-width:900px){ .contact-grid{ grid-template-columns:1fr; } }

/* ---------- Footer ---------- */
footer.site-footer{
  background: var(--ink); color: rgba(255,255,255,0.68);
  padding: 50px 0 26px;
}
.footer-top{ display:flex; justify-content:space-between; gap:40px; flex-wrap:wrap; margin-bottom:36px; }
.footer-brand img{ height:30px; margin-bottom:14px; }
.footer-cols{ display:flex; gap:60px; flex-wrap:wrap; }
.footer-col h4{ color:#fff; font-size:0.78rem; text-transform:uppercase; letter-spacing:0.08em; margin-bottom:14px; font-family:var(--mono); font-weight:600; }
.footer-col a, .footer-col span{ display:block; font-size:0.92rem; margin-bottom:9px; color: rgba(255,255,255,0.68); }
.footer-col a:hover{ color:#fff; }
.footer-bottom{ border-top:1px solid rgba(255,255,255,0.12); padding-top:20px; font-size:0.78rem; display:flex; justify-content:space-between; flex-wrap:wrap; gap:10px; }

/* ---------- Certifications ---------- */
.cert-grid{ display:grid; grid-template-columns: repeat(4, 1fr); gap:16px; }
.cert-card{
  background:#fff; border:1px solid var(--steel-line); padding:14px;
  cursor: zoom-in; transition: border-color .15s ease, transform .15s ease;
}
.cert-card:hover{ border-color: var(--red); transform: translateY(-3px); }
.cert-card img{ width:100%; height:230px; object-fit:contain; display:block; background: var(--paper-hi); }
.cert-card .cert-label{
  margin-top:12px; font-family:var(--mono); font-size:0.72rem; text-align:center;
  color:var(--steel); text-transform:uppercase; letter-spacing:0.06em;
}
@media (max-width:820px){ .cert-grid{ grid-template-columns: repeat(2,1fr); } }

.lightbox{
  position:fixed; inset:0; background:rgba(20,23,26,0.94);
  display:none; align-items:center; justify-content:center;
  z-index:200; padding:36px; cursor:zoom-out;
}
.lightbox.open{ display:flex; }
.lightbox img{ max-width:90vw; max-height:88vh; object-fit:contain; box-shadow:0 24px 70px rgba(0,0,0,0.5); }
.lightbox-close{
  position:absolute; top:22px; inset-inline-end:26px; color:#fff; font-family:var(--mono);
  font-size:0.85rem; border:1px solid rgba(255,255,255,0.4); padding:8px 14px; background:none;
}

/* ---------- Shop gallery ---------- */
.gallery-grid{ display:grid; grid-template-columns: repeat(4, 1fr); gap:2px; background:var(--steel-line); border:1px solid var(--steel-line); }
.gallery-grid img{ width:100%; height:230px; object-fit:cover; display:block; cursor: zoom-in; }
@media (max-width:820px){ .gallery-grid{ grid-template-columns: repeat(2,1fr); } }

/* ---------- Large feature photo ---------- */
.feature-photo{ width:100%; height:auto; display:block; border:1px solid var(--steel-line); }
.feature-photo.pits-photo{ object-position:center 78%; }
.card-photo.pits-photo{ object-position: center 82%; }
/* ---------- Reveal on scroll ---------- */
.reveal{ opacity:0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in{ opacity:1; transform:none; }
@media (prefers-reduced-motion: reduce){ .reveal{ opacity:1; transform:none; transition:none; } }

/* ---------- Mobile nav ---------- */
@media (max-width: 860px){
  .nav-toggle-btn{ display:flex; }
  nav.main-nav{
    position:fixed; inset: 64px 0 0 0; background: var(--paper);
    flex-direction:column; align-items:flex-start; padding: 30px 24px;
    display:none; gap: 22px; border-top:1px solid var(--steel-line);
  }
  nav.main-nav.open{ display:flex; }
  nav.main-nav a{ font-size:1.1rem; }
}

/* focus visibility */
a:focus-visible, button:focus-visible{ outline: 2px solid var(--red); outline-offset:2px; }
