/* ==========================================================================
   RAD website: main stylesheet
   --------------------------------------------------------------------------
   1. Brand colours & settings   (change colours here)
   2. Base
   3. Buttons
   4. Header & navigation
   5. Hero
   6. Key figures
   7. About & mission
   8. Values
   9. Work areas
   10. Goals & approach
   11. Partners
   12. Presence & map
   13. Contact
   14. Footer
   15. Scroll animations
   16. Tablet & mobile
   Arabic / right-to-left adjustments live in rtl.css
   ========================================================================== */


/* 1. Brand colours & settings
   ========================================================================== */
:root {
  --gold: #EFB31E;        /* RAD gold, from the logo */
  --gold-deep: #D99A0B;   /* darker gold for small text and icons */
  --gold-soft: #FDF3D8;   /* pale gold for icon backgrounds */
  --ink: #111111;         /* near-black, from the logo */
  --ink-2: #2B2B2B;
  --muted: #5C5C5C;       /* grey body text */
  --line: #E7E3DA;        /* borders */
  --paper: #FFFFFF;
  --sand: #FAF7F0;        /* off-white section background */

  --font-en: Montserrat, system-ui, sans-serif;
  --font-ar: Cairo, system-ui, sans-serif;

  --radius: 14px;         /* card corner roundness */
  --wrap: 1180px;         /* maximum content width */
}


/* 2. Base
   ========================================================================== */
* {
  box-sizing: border-box;
}

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

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

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

a {
  color: inherit;
}

h1, h2, h3 {
  margin: 0;
  line-height: 1.15;
  letter-spacing: -.01em;
}

h2 {
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  font-weight: 800;
  margin: 14px 0 18px;
}

p {
  margin: 0 0 1em;
}

section {
  padding: 96px 0;
}

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

.ar {
  font-family: var(--font-ar);
  direction: rtl;
}

.lead {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 62ch;
}

/* Small gold label above each section title, with a triangle marker */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold-deep);
}

.eyebrow::before {
  content: "";
  width: 0;
  height: 0;
  border-left: 9px solid var(--gold);
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
}


/* 3. Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  border: 2px solid transparent;
  font-weight: 700;
  font-size: .92rem;
  text-decoration: none;
  transition: transform .15s ease, background .15s;
}

.btn:active {
  transform: scale(.97);
}

.btn-dark {
  background: var(--ink);
  color: #fff;
}

.btn-dark:hover {
  background: #000;
}

.btn-line {
  border-color: var(--ink);
  color: var(--ink);
}

.btn-line:hover {
  background: var(--ink);
  color: #fff;
}

.actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}


/* 4. Header & navigation
   ========================================================================== */
header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}

header.scrolled {
  border-bottom-color: var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand img {
  width: 78px;
  height: auto;
}

.brand span {
  font-size: .72rem;
  line-height: 1.25;
  color: var(--muted);
  font-weight: 500;
  max-width: 120px;
}

.menu {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-inline-start: auto;
}

.menu a {
  text-decoration: none;
  font-size: .92rem;
  font-weight: 600;
  color: var(--ink-2);
}

.menu a:hover {
  color: var(--gold-deep);
}

.menu .btn {
  color: #fff;
}

.nav-end {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Language switch button */
.lang {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: none;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  font: 600 .88rem var(--font-ar);
  color: var(--ink);
  cursor: pointer;
  transition: border-color .15s, background .15s;
}

.lang:hover {
  border-color: var(--gold);
  background: var(--gold-soft);
}

.lang svg {
  width: 16px;
  height: 16px;
  color: var(--gold-deep);
}

/* Mobile menu button (hidden on desktop) */
.burger {
  display: none;
  background: none;
  border: 0;
  padding: 8px;
  cursor: pointer;
}

.burger span {
  display: block;
  width: 24px;
  height: 2px;
  margin: 5px 0;
  background: var(--ink);
}


/* 5. Hero
   ========================================================================== */
.hero {
  position: relative;
  overflow: hidden;
  padding: 0;
  background: var(--gold);
}

.hero .wrap {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 48px;
  align-items: center;
  min-height: 600px;
  padding-top: 72px;
  padding-bottom: 72px;
}

.hero h1 {
  font-size: clamp(2.4rem, 5.4vw, 4.4rem);
  font-weight: 800;
  color: var(--ink);
}

.hero .ar-name {
  font-size: clamp(1.3rem, 2.4vw, 1.8rem);
  font-weight: 700;
  margin: 18px 0 6px;
  text-align: left;
}

.hero .tag {
  font-size: 1.15rem;
  font-weight: 600;
  margin: 0 0 18px;
}

.hero .sub {
  font-size: 1.05rem;
  color: var(--ink-2);
  max-width: 54ch;
  margin-bottom: 32px;
}

.hero-mark img {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 18px 40px rgba(120, 80, 0, .18));
}

.hero-mark .caption {
  margin-top: 18px;
  color: #fff;
  text-align: center;
}

.hero-mark .caption .ar {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.3;
}

.hero-mark .caption .en {
  font-family: var(--font-en);
  font-size: 1rem;
  font-weight: 400;
}

/* Decorative outlined diamond in the corner */
.hero::after {
  content: "";
  position: absolute;
  inset-inline-end: -120px;
  bottom: -160px;
  width: 420px;
  height: 420px;
  border: 60px solid rgba(255, 255, 255, .12);
  transform: rotate(45deg);
}


/* 6. Key figures
   ========================================================================== */
.stats {
  padding: 0;
  background: var(--ink);
  color: #fff;
}

.stats .wrap {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.stat {
  padding: 40px 24px;
  border-inline-start: 1px solid rgba(255, 255, 255, .1);
}

.stat:first-child {
  border-inline-start: 0;
}

.stat b {
  display: block;
  font-family: var(--font-en);
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 800;
  line-height: 1;
  color: var(--gold);
  font-variant-numeric: tabular-nums;
  direction: ltr;
  text-align: start;
}

.stat span {
  display: block;
  margin-top: 10px;
  font-size: .92rem;
  color: #cfcfcf;
  max-width: 22ch;
}


/* 7. About & mission
   ========================================================================== */
.about .grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.card-mission {
  padding: 36px;
  background: var(--sand);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.card-mission h3 {
  font-size: 1.25rem;
  margin: 12px 0;
}

.card-mission p {
  color: var(--muted);
}

.card-mission .quote {
  margin: 28px 0 0;
  padding-block: 6px;
  padding-inline-start: 24px;
  border-inline-start: 5px solid var(--gold);
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.45;
  color: var(--ink);
}


/* 8. Values
   ========================================================================== */
.values {
  background: var(--sand);
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin-top: 40px;
}

.value {
  padding: 28px 22px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform .2s ease, box-shadow .2s ease;
}

.value:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, .06);
}

.value .ico {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 18px;
  border-radius: 10px;
  background: var(--gold-soft);
  color: var(--gold-deep);
}

.value h3 {
  font-size: 1.02rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.value p {
  margin: 0;
  font-size: .9rem;
  color: var(--muted);
}


/* 9. Work areas
   ========================================================================== */
.areas-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 44px;
}

.area {
  position: relative;
  overflow: hidden;
  padding: 30px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

/* Gold bar on top of each card that grows on hover */
.area::before {
  content: "";
  position: absolute;
  top: 0;
  inset-inline-start: 0;
  width: 48px;
  height: 4px;
  background: var(--gold);
  transition: width .3s ease;
}

.area:hover::before {
  width: 100%;
}

.area .code {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .12em;
  color: var(--gold-deep);
}

.area h3 {
  font-size: 1.15rem;
  margin: 8px 0 10px;
}

.area p {
  margin: 0;
  font-size: .93rem;
  color: var(--muted);
}


/* 10. Goals & approach (dark section)
   ========================================================================== */
.split {
  background: var(--ink);
  color: #fff;
}

.split .grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
}

.split h2 {
  color: #fff;
}

.split .eyebrow {
  color: var(--gold);
}

.list {
  list-style: none;
  padding: 0;
  margin: 28px 0 0;
}

.list li {
  display: flex;
  gap: 16px;
  padding: 18px 0;
  border-top: 1px solid rgba(255, 255, 255, .12);
}

.list li:last-child {
  border-bottom: 1px solid rgba(255, 255, 255, .12);
}

/* Gold number / letter circle */
.list .n {
  flex: none;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--ink);
  font-weight: 800;
  font-size: .85rem;
}

.list b {
  display: block;
  margin-bottom: 2px;
}

.list span {
  font-size: .95rem;
  color: #c9c9c9;
}


/* 11. Partners
   ========================================================================== */
.partners-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 44px;
}

.partner {
  display: flex;
  flex-direction: column;
  padding: 32px;
  background: var(--sand);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.partner .tagline {
  margin-bottom: 10px;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold-deep);
}

.partner h3 {
  font-size: 1.2rem;
  margin-bottom: 12px;
}

.partner p {
  margin: 0;
  font-size: .94rem;
  color: var(--muted);
}


/* 12. Presence & map
   ========================================================================== */
.presence {
  background: var(--sand);
}

.presence .grid {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 56px;
  align-items: center;
}

.cities {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 28px;
}

.city {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  font-weight: 600;
}

.city i {
  flex: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gold);
}

.city small {
  display: block;
  font-weight: 500;
  font-size: .8rem;
  color: var(--muted);
}

.map {
  padding: 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
}

.map svg {
  width: 100%;
  height: auto;
  direction: ltr;   /* keeps map labels in place in Arabic too */
}

.map .land {
  fill: #fff;
  stroke: #D8D2C4;
  stroke-width: 2;
  stroke-linejoin: round;
}

.map .dot {
  fill: var(--gold);
  stroke: #fff;
  stroke-width: 3;
}

.map .pulse {
  fill: var(--gold);
  opacity: .35;
  transform-box: fill-box;
  transform-origin: center;
  animation: pulse 2.4s ease-out infinite;
}

.map text {
  font: 700 15px var(--font-en);
  fill: var(--ink);
}

@keyframes pulse {
  from { transform: scale(1);   opacity: .45; }
  to   { transform: scale(3.2); opacity: 0; }
}


/* 13. Contact
   ========================================================================== */
.contact {
  background: var(--gold);
}

.contact .grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 56px;
  align-items: start;
}

.contact .eyebrow {
  color: var(--ink);
}

.contact .eyebrow::before {
  border-left-color: var(--ink);
}

.contact .lead {
  color: var(--ink-2);
}

.contact .actions {
  margin-top: 28px;
}

.contact-card {
  padding: 12px 28px;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 20px 50px rgba(110, 70, 0, .15);
}

.contact-row {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
}

.contact-row:last-child {
  border-bottom: 0;
}

.contact-row svg {
  flex: none;
  width: 22px;
  height: 22px;
  margin-top: 2px;
  color: var(--gold-deep);
}

.contact-row small {
  display: block;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
}

.contact-row strong {
  font-weight: 600;
}

a.contact-row:hover strong {
  color: var(--gold-deep);
}


/* 14. Footer
   ========================================================================== */
footer {
  padding: 48px 0 32px;
  background: var(--ink);
  color: #bdbdbd;
  font-size: .9rem;
}

footer .top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
}

footer .brand img {
  width: 90px;
}

footer .brand span {
  color: #bdbdbd;
}

footer .brand .ar {
  font-size: .85rem;
}

footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
}

footer nav a {
  text-decoration: none;
  color: #e5e5e5;
}

footer nav a:hover {
  color: var(--gold);
}

footer .bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding-top: 22px;
  font-size: .82rem;
}


/* 15. Scroll animations
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .6s ease, transform .6s cubic-bezier(.2, .7, .2, 1);
}

.reveal.in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .map .pulse { animation: none; opacity: 0; }
}


/* 16. Tablet & mobile
   ========================================================================== */
@media (max-width: 1100px) {
  .menu { gap: 20px; }
}

@media (max-width: 1020px) {
  .values-grid { grid-template-columns: repeat(2, 1fr); }
  .areas-grid,
  .partners-grid { grid-template-columns: 1fr 1fr; }
}

/* Below 960px the menu collapses behind the burger button */
@media (max-width: 960px) {
  section { padding: 72px 0; }

  .menu {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    margin: 0;
    padding: 16px 24px 24px;
    background: #fff;
    border-bottom: 1px solid var(--line);
  }

  .menu.open { display: flex; }
  .burger { display: block; }
}

@media (max-width: 860px) {
  .hero .wrap,
  .about .grid,
  .split .grid,
  .presence .grid,
  .contact .grid { grid-template-columns: 1fr; }

  .hero .wrap { min-height: auto; gap: 40px; }
  .hero-mark { max-width: 360px; }

  .stats .wrap { grid-template-columns: 1fr 1fr; }
  .stat { border-top: 1px solid rgba(255, 255, 255, .1); }
  .stat:nth-child(3) { border-inline-start: 0; }
}

@media (max-width: 560px) {
  .wrap { padding: 0 16px; }
  .values-grid,
  .areas-grid,
  .partners-grid,
  .cities { grid-template-columns: 1fr; }
  .stat { padding: 28px 16px; }
  .brand span { display: none; }
}
