/* Rasheed Holdings International */

:root {
  --bg: #F7F6F3;
  --bg-alt: #EFEDE8;
  --ink: #1F2533;
  --text: #2B3140;
  --body: #4A5060;
  --muted: #5A6070;
  --subtle: #8A8F9A;
  --line: #E2E0DA;
  --rule: #D9D7D0;
  --field: #C9C6BE;
  --blue: #3F97D3;
  --blue-dark: #2F86C4;
  --blue-light: #7FC0EA;
  --hero: #121722;
  --footer: #161B26;
  --error: #B4442F;
  --sans: 'Archivo', Helvetica, Arial, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, monospace;
  --gutter: clamp(24px, 5vw, 72px);
  --ease: cubic-bezier(.16, .84, .24, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--sans); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; }
a { color: var(--blue-dark); text-decoration: none; }
a:hover { color: var(--ink); }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
main:focus { outline: none; }
h1, h2, h3, p, blockquote, dl, dd, ol { margin: 0; }
ol { padding: 0; list-style: none; }

.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 12px 18px; font-weight: 600; }
.skip-link:focus { top: 16px; color: #fff; }

.progress { position: fixed; left: 0; top: 0; right: 0; height: 3px; background: var(--blue); transform-origin: left; transform: scaleX(0); z-index: 60; pointer-events: none; }
.confetti { position: fixed; pointer-events: none; z-index: 9998; }

/* Shared type */
.label { font-family: var(--mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--blue-dark); }
.label--small { font-size: 11px; letter-spacing: .08em; }
.label--light { font-size: 11px; letter-spacing: .1em; color: var(--blue-light); }
.label--muted { font-size: 11px; letter-spacing: .08em; color: var(--subtle); }
.sector { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--blue-dark); }
.h1 { font-size: clamp(42px, 5.8vw, 88px); line-height: 1; font-weight: 700; letter-spacing: -.025em; color: var(--ink); text-wrap: balance; }
.h1--light { color: #fff; max-width: 1000px; }
.h2 { font-size: clamp(32px, 3.6vw, 52px); line-height: 1.05; font-weight: 700; letter-spacing: -.02em; color: var(--ink); }
.text { font-size: 17px; line-height: 1.6; color: var(--muted); max-width: 520px; text-wrap: pretty; }
.stack { display: flex; flex-direction: column; gap: 16px; }
.stack--tight { gap: 6px; }
.stack--snug { gap: 10px; }
.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 24px 64px; align-items: end; }
.section { padding: clamp(64px, 10vw, 128px) var(--gutter); }

.btn { display: inline-block; padding: 16px 28px; font: 600 15px/1.2 var(--sans); white-space: nowrap; flex-shrink: 0; border: 0; cursor: pointer; transition: background .2s; }
.btn--primary { background: var(--blue); color: #fff; }
.btn--primary:hover { background: var(--blue-dark); color: #fff; }
.btn--ghost { border: 1px solid rgba(255, 255, 255, .55); color: #fff; padding: 15px 28px; }
.btn--ghost:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; }
.text-link { align-self: flex-start; font-weight: 600; font-size: 15px; color: var(--ink); border-bottom: 2px solid var(--blue); padding-bottom: 4px; }

/* Layout */
.shell { display: flex; min-height: 100vh; align-items: stretch; }
.column { flex: 1; min-width: 0; display: flex; flex-direction: column; }
main { flex: 1; }

.sidebar { display: none; }
.sidebar__top { display: flex; flex-direction: column; gap: 56px; }
.sidebar__logo img { display: block; width: 144px; height: auto; }
.sidebar__contact { display: flex; flex-direction: column; gap: 10px; font-size: 13px; line-height: 1.5; color: var(--muted); }
.sidebar__contact a { color: var(--text); font-weight: 600; }
.nav { display: flex; flex-direction: column; gap: 4px; }
.nav a { display: flex; align-items: center; gap: 12px; padding: 10px 0; font-size: 17px; font-weight: 500; color: #6A6F7A; }
.nav a::before { content: ''; width: 18px; height: 2px; background: transparent; }
.nav a:hover { color: var(--blue-dark); }
.nav a[aria-current="page"] { font-weight: 700; color: var(--ink); }
.nav a[aria-current="page"]::before { background: var(--blue); }

.topbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 6px 16px; background: var(--bg); border-bottom: 1px solid var(--line); }
.topbar__logo { display: flex; align-items: center; height: 64px; }
.topbar__logo img { display: block; height: 42px; width: auto; max-width: calc(100vw - 132px); object-fit: contain; object-position: left center; }
.menu__toggle { list-style: none; cursor: pointer; padding: 12px; font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--text); }
.menu__toggle::-webkit-details-marker { display: none; }
.menu__close, .menu[open] .menu__open { display: none; }
.menu[open] .menu__close { display: inline; }
.menu__panel { position: absolute; left: 0; right: 0; top: 100%; display: flex; flex-direction: column; padding: 8px 24px 24px; background: var(--bg); border-bottom: 1px solid var(--line); }
.menu__panel a { padding: 14px 0; font-size: 22px; font-weight: 600; color: #6A6F7A; border-bottom: 1px solid var(--line); }
.menu__panel a[aria-current="page"] { color: var(--ink); }

@media (min-width: 900px) {
  .sidebar { position: sticky; top: 0; height: 100vh; flex: 0 0 248px; display: flex; flex-direction: column; justify-content: space-between; padding: 28px 28px 32px; background: var(--bg); border-right: 1px solid var(--line); z-index: 5; }
  .topbar { display: none; }
}

/* Home: hero */
/* Below 900px the 77px top bar sits above the hero; svh keeps the buttons above the phone's browser toolbar. */
.hero { position: relative; min-height: calc(100vh - 77px); min-height: calc(100svh - 77px); display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; background: var(--hero); color: #fff; }
@media (min-width: 900px) {
  .hero { min-height: 100vh; }
}
.hero__media { position: absolute; inset: 0; overflow: hidden; }
.hero__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform-origin: center; animation: rhi-zoom 28s ease-in-out infinite alternate; }
.hero__shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(18, 23, 34, .25) 0%, rgba(18, 23, 34, .2) 35%, rgba(18, 23, 34, .92) 100%); }
.hero__body { position: relative; display: flex; flex-direction: column; gap: 28px; max-width: 1240px; padding: clamp(80px, 12vh, 140px) var(--gutter) clamp(48px, 8vh, 88px); }
.hero__eyebrow { display: flex; align-items: center; gap: 14px; font-family: var(--mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: #CFE6F6; }
.hero__eyebrow::before { content: ''; flex: 0 0 40px; height: 2px; background: var(--blue); }
.hero__title { font-size: clamp(48px, 7.6vw, 124px); line-height: .94; font-weight: 800; letter-spacing: -.035em; text-wrap: balance; }
.hero__row { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap; }
.hero__lead { max-width: 600px; font-size: clamp(17px, 1.4vw, 20px); line-height: 1.55; color: #E3E7ED; text-wrap: pretty; }
@keyframes rhi-zoom { from { transform: scale(1.02); } to { transform: scale(1.14) translate(-1.5%, -1%); } }

/* Home: overview */
.overview { display: flex; flex-direction: column; gap: 48px; }
.company-list { display: flex; flex-direction: column; border-top: 1px solid var(--ink); }
.company-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 16px 48px; align-items: start; padding: 32px 0; border-bottom: 1px solid var(--rule); color: inherit; transition: background .35s; }
.company-row:hover { background: var(--bg-alt); color: inherit; }
.company-row__lead { display: flex; gap: 20px; align-items: baseline; }
.company-row__num { font-family: var(--mono); font-size: 13px; color: var(--subtle); }
.company-row__title { display: flex; align-items: center; gap: 12px; transition: transform .45s cubic-bezier(.2, .8, .2, 1); }
.company-row:hover .company-row__title { transform: translateX(14px); }
.company-row__name { font-size: 24px; font-weight: 700; letter-spacing: -.01em; color: var(--ink); }
.company-row__arrow { font-size: 22px; color: var(--blue-dark); opacity: 0; transition: opacity .3s; }
.company-row:hover .company-row__arrow { opacity: 1; }
.company-row__figure { font-size: 20px; font-weight: 600; color: var(--ink); }
.company-row__short { font-size: 15px; line-height: 1.6; color: var(--muted); text-wrap: pretty; }

/* Home: key figures */
.figures { display: flex; flex-direction: column; gap: 56px; padding: clamp(64px, 9vw, 112px) var(--gutter); background: var(--ink); color: #fff; }
.figures .label--light { font-size: 12px; letter-spacing: .12em; }
.figures__title { max-width: 640px; font-size: clamp(30px, 3.2vw, 46px); line-height: 1.05; font-weight: 700; letter-spacing: -.02em; }
.figures__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 40px 32px; }
.figure { display: flex; flex-direction: column; gap: 14px; margin: 0 -16px; padding: 24px 16px 20px; border-top: 1px solid rgba(255, 255, 255, .25); transition: background .35s, transform .35s; }
.figure:hover { background: var(--blue); transform: translateY(-6px); }
.figure__value { font-size: clamp(48px, 5vw, 76px); line-height: 1; font-weight: 700; letter-spacing: -.035em; }
.figure__label { font-size: 16px; font-weight: 600; }
.figure__source { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: #9AA3B5; }

/* Home: values */
.values { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 48px 80px; align-items: start; container-type: inline-size; }
.values__intro { display: flex; flex-direction: column; gap: 20px; top: 117px; }
/* Pin the intro only while it sits beside the list (two 300px columns and the gap); stacked above it, it would cover the list. */
@container (min-width: 680px) {
  .values__intro { position: sticky; }
}
@media (min-width: 900px) {
  .values__intro { top: 40px; }
}
.values__list { border-top: 1px solid var(--ink); }
.value { padding: 28px 0; border-bottom: 1px solid var(--rule); }
.value__head { display: flex; align-items: baseline; gap: 24px; list-style: none; cursor: pointer; }
.value__head::-webkit-details-marker { display: none; }
.value__num { font-family: var(--mono); font-size: 13px; color: var(--subtle); }
.value[open] .value__num { color: var(--blue-dark); }
.value__title { flex: 1; font-size: clamp(26px, 2.6vw, 36px); font-weight: 700; letter-spacing: -.02em; color: var(--ink); }
.value__sign { width: 20px; text-align: center; font-size: 28px; color: var(--blue-dark); }
.value__sign::after { content: '+'; }
.value[open] .value__sign::after { content: '–'; }
.value__body { display: flex; flex-direction: column; gap: 10px; max-width: 560px; padding: 16px 0 0 46px; font-size: 16px; line-height: 1.65; color: var(--muted); text-wrap: pretty; }
.value__lead { font-size: 18px; font-weight: 600; line-height: 1.4; color: var(--ink); }

/* Inner pages */
.page-intro { display: flex; flex-direction: column; gap: 28px; max-width: 1100px; padding: clamp(72px, 11vw, 140px) var(--gutter) clamp(40px, 6vw, 80px); }
.page-intro__lead { max-width: 620px; font-size: clamp(17px, 1.4vw, 20px); line-height: 1.55; color: var(--muted); text-wrap: pretty; }

.journey { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 48px 80px; align-items: start; padding: 0 var(--gutter) clamp(64px, 9vw, 112px); }
.prose { display: flex; flex-direction: column; gap: 20px; font-size: 17px; line-height: 1.7; color: var(--body); }
.prose p { text-wrap: pretty; }
.prose__title { margin-bottom: 8px; font-size: 30px; font-weight: 700; letter-spacing: -.015em; color: var(--ink); }
.timeline { display: flex; flex-direction: column; border-left: 1px solid var(--ink); }
.timeline__item { position: relative; display: flex; gap: 24px; padding: 20px 0 20px 28px; }
.timeline__item::before { content: ''; position: absolute; left: -5px; top: 30px; width: 9px; height: 9px; background: var(--blue); }
.timeline__year { min-width: 72px; font-size: 28px; font-weight: 700; letter-spacing: -.02em; color: var(--ink); }
.timeline__text { padding-top: 6px; font-size: 16px; line-height: 1.5; color: var(--body); }

.directors { display: flex; flex-direction: column; gap: 48px; padding: clamp(64px, 9vw, 112px) var(--gutter); background: var(--bg-alt); }
/* Two to a row (Jawad and Parveen, Maryam and Fatima, then Althea), as the client asked; one per row on phones. */
.directors__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; }
@media (min-width: 600px) {
  .directors__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* An odd last card (Althea) is centred on its own row rather than leaving half of it empty. */
  .director:last-child:nth-child(odd) { grid-column: 1 / -1; justify-self: center; width: calc((100% - 24px) / 2); }
}
.director { display: flex; flex-direction: column; gap: 22px; padding: clamp(24px, 3vw, 36px); background: #fff; border: 1px solid var(--line); }
.director__head { display: flex; align-items: flex-start; gap: 16px; }
.director__mark { display: grid; place-items: center; flex: 0 0 48px; height: 48px; background: var(--ink); color: #fff; font-size: 15px; font-weight: 700; letter-spacing: .06em; }
.director__name { font-size: 21px; font-weight: 700; color: var(--ink); }
.director__role { font-size: 14px; line-height: 1.5; color: var(--body); }
.director__quote { padding-left: 16px; border-left: 2px solid var(--blue); font-size: 15px; line-height: 1.6; font-style: italic; color: var(--ink); text-wrap: pretty; }
/* Pushed to the foot of the card so the links line up across a row. */
.director__links { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 16px; margin-top: auto; padding-top: 18px; border-top: 1px solid var(--line); font-size: 14px; font-weight: 600; }
.director__links a { overflow-wrap: anywhere; }
.statement { padding: clamp(64px, 9vw, 112px) var(--gutter); }
.statement p { max-width: 980px; font-size: clamp(24px, 2.6vw, 36px); line-height: 1.3; font-weight: 600; letter-spacing: -.015em; color: var(--ink); text-wrap: pretty; }

.portfolio-intro { display: flex; flex-direction: column; gap: 28px; padding: clamp(72px, 11vw, 140px) var(--gutter) clamp(56px, 7vw, 96px); background: var(--ink); color: #fff; }
.portfolio-intro .label--light { font-size: 12px; letter-spacing: .12em; }
.portfolio-intro__lead { max-width: 680px; font-size: clamp(17px, 1.4vw, 20px); line-height: 1.55; color: #D5DAE3; text-wrap: pretty; }
.venture { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 40px 72px; align-items: center; padding: clamp(56px, 8vw, 104px) var(--gutter); border-bottom: 1px solid var(--rule); scroll-margin-top: 77px; }
.venture__media { position: relative; display: flex; align-items: flex-end; aspect-ratio: 4 / 3; padding: 16px; overflow: hidden; background: repeating-linear-gradient(135deg, #ECEAE4 0 12px, #E3E0D9 12px 24px); }
.venture__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.venture__tag { padding: 5px 8px; font-family: var(--mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: #6A6F7A; background: var(--bg); }
.venture__body { display: flex; flex-direction: column; gap: 20px; }
.venture__meta { display: flex; gap: 16px; align-items: baseline; }
.venture__title { font-size: clamp(30px, 3.2vw, 46px); line-height: 1.05; font-weight: 700; letter-spacing: -.02em; color: var(--ink); }
.venture__text { font-size: 17px; line-height: 1.65; color: var(--body); text-wrap: pretty; }
.venture__link { display: flex; gap: 8px; font-size: 15px; font-weight: 600; }
.stats { display: flex; flex-wrap: wrap; gap: 40px; padding-top: 20px; border-top: 1px solid var(--rule); }
.stats__item { display: flex; flex-direction: column-reverse; gap: 4px; }
.stats__value { font-size: 30px; font-weight: 700; letter-spacing: -.02em; color: var(--ink); }
.stats__label { font-size: 13px; color: var(--muted); }

@media (min-width: 900px) {
  .venture--flip .venture__media { order: 2; }
}

/* Contact */
.contact { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 48px 72px; align-items: start; padding: 0 var(--gutter) clamp(64px, 9vw, 112px); }
.contact__details { display: flex; flex-direction: column; gap: 32px; }
.contact__block { display: flex; flex-direction: column; gap: 10px; padding-top: 20px; border-top: 1px solid var(--rule); }
.contact__block--first { border-top-color: var(--ink); }
.contact__email { font-size: clamp(22px, 2.2vw, 30px); font-weight: 700; letter-spacing: -.015em; color: var(--ink); overflow-wrap: anywhere; }
.contact__address { font-size: 17px; line-height: 1.6; color: var(--ink); }

.form-card { display: flex; flex-direction: column; gap: 26px; padding: clamp(24px, 3.5vw, 44px); background: #fff; border: 1px solid var(--line); scroll-margin-top: 96px; }
.form-card__title { font-size: clamp(24px, 2.2vw, 30px); font-weight: 700; letter-spacing: -.015em; color: var(--ink); }
.form { display: flex; flex-direction: column; gap: 26px; }
.form__row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 20px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field__label { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.field input, .field textarea { width: 100%; font: 17px/1.4 var(--sans); color: var(--ink); background: transparent; border: 0; border-bottom: 1px solid var(--field); padding: 10px 0; border-radius: 0; }
.field textarea { padding: 12px; font-size: 16px; border: 1px solid var(--field); resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 1px 0 var(--blue); }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: var(--error); }
.field__error { font-size: 14px; color: var(--error); }
.topics { display: flex; flex-direction: column; gap: 12px; margin: 0; padding: 0; border: 0; }
.topics legend { margin-bottom: 12px; padding: 0; }
.topics__list { display: flex; flex-wrap: wrap; gap: 8px; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip span { display: inline-block; padding: 9px 14px; font-size: 14px; font-weight: 600; color: var(--ink); border: 1px solid var(--field); cursor: pointer; transition: background .2s; }
.chip input:checked + span { background: var(--ink); color: #fff; border-color: var(--ink); }
.chip input:focus-visible + span { outline: 2px solid var(--blue); outline-offset: 2px; }
.btn--submit { align-self: flex-start; padding: 15px 28px; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.sent { display: flex; flex-direction: column; gap: 18px; padding: 20px 0; }
.sent__icon { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; font-size: 20px; color: #fff; background: var(--blue); }
.sent__text { font-size: 16px; line-height: 1.6; color: var(--muted); }

/* Footer */
.footer { display: flex; flex-direction: column; gap: 56px; padding: clamp(56px, 7vw, 88px) var(--gutter) 32px; background: var(--footer); color: #C9CED8; }
.footer__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 40px; }
.footer__company { display: flex; flex-direction: column; gap: 20px; font-size: 15px; line-height: 1.6; }
.footer__logo { align-self: flex-start; max-width: 100%; }
.footer__logo img { display: block; width: 240px; max-width: 100%; height: auto; }
.footer__col { display: flex; flex-direction: column; gap: 14px; }
.footer__email { font-size: 20px; font-weight: 600; color: #fff; overflow-wrap: anywhere; }
.footer__email:hover { color: var(--blue-light); }
.footer__nav { gap: 10px; }
.footer__nav a { font-size: 15px; color: #C9CED8; }
.footer__nav a:hover { color: #fff; }
.footer__legal { padding-top: 20px; font-size: 13px; color: #8A91A0; border-top: 1px solid #2C3342; }

/* Error pages */
.error-page { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; max-width: 760px; min-height: 100vh; justify-content: center; padding: 48px var(--gutter); }
.error-page img { display: block; width: 240px; height: auto; margin-bottom: 24px; }

/* Scroll reveal (enabled by site.js) */
.js-reveal [data-reveal] { opacity: 0; transform: translateY(36px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.js-reveal [data-reveal].is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

@media print {
  .sidebar, .topbar, .progress { display: none; }
  .js-reveal [data-reveal] { opacity: 1; transform: none; }
}
