/* ALMARAH CONSULTANCY L.L.C — China–Arab cross-border consulting
   Brand: dark charcoal #1B1A17, warm gold #C6A15B, ivory #F6F1E7, map blue #2F5D7C */
:root {
  --charcoal: #1B1A17;
  --gold-bright: #C6A15B;
  --gold-deep: #A8833F;
  --ivory: #F6F1E7;
  --paper: #FBF9F3;
  --blue: #2F5D7C;
  --ink: #2A2721;
  --muted: #6B6457;
  --line: #E4DCCB;
  --line-dark: rgba(198, 161, 91, 0.25);
  --radius: 18px;
  --max-width: 1140px;
}

*,
*::before,
*::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  line-height: 1.22;
  letter-spacing: -0.015em;
  margin: 0 0 0.6em;
}

h2 { font-size: clamp(1.9rem, 4vw, 2.7rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 600; }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--gold-deep); text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}
.container-narrow { max-width: 820px; }

section { padding: 6.5rem 0; }

.eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin: 0 0 1.1rem;
}
.eyebrow-center { text-align: center; }

.section-intro {
  color: var(--muted);
  max-width: 600px;
  font-size: 1.05rem;
}

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(27, 26, 23, 0.96);
  backdrop-filter: blur(8px);
}

.nav {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.wordmark {
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: 0.06em;
  color: var(--ivory);
}
.wordmark:hover { text-decoration: none; color: var(--gold); }

.nav-right {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1.75rem;
  margin: 0;
  padding: 0;
}
.nav-links a {
  color: rgba(246, 241, 231, 0.82);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}
.nav-links a:hover { color: var(--gold); text-decoration: none; }

.cta-pill {
  display: inline-flex;
  align-items: center;
  background: var(--gold);
  color: #1B1A17;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.7rem 1.5rem;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: background 0.2s ease, box-shadow 0.2s ease;
  will-change: transform;
}
.cta-pill > span { display: inline-block; will-change: transform; }
.cta-pill:hover {
  background: #D3AF68;
  color: #1B1A17;
  text-decoration: none;
  box-shadow: 0 6px 20px rgba(198, 161, 91, 0.35);
}
.cta-pill.cta-large {
  font-size: 1.05rem;
  padding: 0.95rem 2.2rem;
}
.cta-pill:focus-visible {
  outline: 3px solid rgba(198, 161, 91, 0.5);
  outline-offset: 3px;
}

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

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: var(--charcoal);
  color: var(--ivory);
  padding: 9rem 0 8rem;
  overflow: hidden;
  text-align: center;
}

.hero-glyphs { position: absolute; inset: 0; pointer-events: none; }
.glyph {
  position: absolute;
  display: block;
  border-radius: 50%;
  will-change: transform;
}
.glyph-a {
  width: 340px; height: 340px;
  left: -110px; top: -90px;
  background: radial-gradient(circle, rgba(198,161,91,0.22) 0%, rgba(198,161,91,0) 70%);
}
.glyph-b {
  width: 260px; height: 260px;
  right: -70px; top: 12%;
  border: 1px solid var(--line-dark);
}
.glyph-c {
  width: 120px; height: 120px;
  right: 16%; bottom: 10%;
  background: radial-gradient(circle, rgba(47,93,124,0.5) 0%, rgba(47,93,124,0) 70%);
}
.glyph-d {
  width: 480px; height: 480px;
  left: 34%; bottom: -320px;
  border: 1px solid rgba(198,161,91,0.14);
}

.hero-inner {
  position: relative;
  max-width: 880px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.hero-eyebrow {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.5rem;
}

.hero h1 {
  font-size: clamp(2.1rem, 5.2vw, 3.6rem);
  font-weight: 700;
  color: var(--ivory);
  margin-bottom: 2rem;
  text-wrap: balance;
}

.hero-triple {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem 2.5rem;
  max-width: 720px;
  margin: 0 auto 2.5rem;
  text-align: left;
}
.hero-triple p {
  color: rgba(246, 241, 231, 0.78);
  font-size: 1rem;
  margin: 0;
}
.hero-triple strong { color: var(--gold); font-weight: 600; }

.hero-ctas { margin-top: 0.5rem; }

.scroll-hint {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  margin-top: 4rem;
  color: rgba(246, 241, 231, 0.5);
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.scroll-hint:hover { color: var(--gold); text-decoration: none; }
.scroll-hint svg { animation: hint-bob 2.2s ease-in-out infinite; }
@keyframes hint-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

/* ---------- Services strip ---------- */
.services { background: var(--ivory); overflow: hidden; }

.strip-outer { position: relative; margin-top: 3rem; }

.strip {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 0.5rem max(1.5rem, calc((100vw - var(--max-width)) / 2 + 1.5rem)) 1rem;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  cursor: grab;
}
.strip::-webkit-scrollbar { display: none; }
.strip.dragging { cursor: grabbing; scroll-snap-type: none; }

.service-card {
  flex: 0 0 min(400px, 82vw);
  scroll-snap-align: start;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2.25rem 2rem;
  box-shadow: 0 10px 30px rgba(27, 26, 23, 0.06);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  transform-style: preserve-3d;
  will-change: transform;
}
.service-card:hover {
  box-shadow: 0 18px 44px rgba(27, 26, 23, 0.12);
}

.card-num {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--gold-deep);
  border-bottom: 2px solid var(--gold);
  padding-bottom: 0.4rem;
  margin-bottom: 1.25rem;
}
.service-card h3 {
  font-size: 1.45rem;
  color: var(--charcoal);
  margin-bottom: 0.75rem;
  text-wrap: balance;
}
.card-lede { color: var(--muted); margin-bottom: 1.25rem; }

.card-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: none;
  border: none;
  padding: 0.4rem 0;
  font: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--blue);
  cursor: pointer;
}
.card-toggle:hover { color: var(--gold-deep); }
.card-toggle svg { transition: transform 0.3s ease; }
.card-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }

/* Accordion panel: layout toggles instantly; only transform/opacity animate.
   No-JS shows content open (collapse is gated behind .js). */
.card-panel > ul { overflow: hidden; margin: 0; padding: 1rem 0 0; list-style: none; }
.card-panel li {
  position: relative;
  padding-left: 1.4rem;
  margin-bottom: 0.7rem;
  color: var(--ink);
  font-size: 0.98rem;
}
.card-panel li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--gold);
}
.js .card-panel {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.js .card-panel.open {
  max-height: none;
  opacity: 1;
  transform: none;
}

.strip-fade {
  position: absolute;
  top: 0; bottom: 0;
  width: 120px;
  pointer-events: none;
  z-index: 2;
}
.strip-fade-left {
  left: 0;
  background: linear-gradient(to right, var(--ivory) 0%, rgba(246,241,231,0) 100%);
}
.strip-fade-right {
  right: 0;
  background: linear-gradient(to left, var(--ivory) 0%, rgba(246,241,231,0) 100%);
}

.strip-hint {
  display: flex;
  align-items: center;
  gap: 1rem;
  max-width: var(--max-width);
  margin: 1.5rem auto 0;
  padding: 0 1.5rem;
}
.strip-hint-bar {
  flex: 1;
  height: 3px;
  background: var(--line);
  border-radius: 3px;
  overflow: hidden;
}
.strip-hint-fill {
  display: block;
  height: 100%;
  width: 100%;
  background: var(--gold);
  border-radius: 3px;
  transform: scaleX(0);
  transform-origin: left center;
}
.strip-hint-text {
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}

/* ---------- How we work ---------- */
.how { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.how-rows { margin-top: 3rem; display: flex; flex-direction: column; gap: 3.5rem; }

.how-row {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 2rem;
  align-items: start;
  max-width: 760px;
}
.how-row:nth-child(even) { margin-left: auto; }
.how-num {
  font-size: clamp(3rem, 6vw, 4.2rem);
  font-weight: 700;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--gold);
}
.how-row h3 { font-size: 1.3rem; color: var(--charcoal); margin-bottom: 0.5rem; }
.how-row p { color: var(--muted); max-width: 560px; }

/* ---------- Engagements ---------- */
.engagements { background: var(--ivory); }

.engage-grid {
  margin-top: 3rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.engage-card {
  background: var(--charcoal);
  color: var(--ivory);
  border-radius: var(--radius);
  padding: 2.25rem 2rem;
  border-top: 3px solid var(--gold);
}
.engage-kicker {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}
.engage-card h3 {
  color: var(--ivory);
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  text-wrap: balance;
}
.engage-card p { color: rgba(246, 241, 231, 0.72); font-size: 0.98rem; }

/* ---------- About ---------- */
.about {
  background: var(--paper);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-align: center;
}
.about-statement {
  font-size: clamp(1.35rem, 2.8vw, 1.9rem);
  line-height: 1.55;
  font-weight: 500;
  color: var(--charcoal);
  text-wrap: balance;
}
.about-statement::before {
  content: "";
  display: block;
  width: 56px;
  height: 3px;
  background: var(--gold);
  margin: 0 auto 2rem;
  border-radius: 3px;
}

/* ---------- Contact ---------- */
.contact { background: var(--charcoal); color: var(--ivory); }
.contact .eyebrow { color: var(--gold); }
.contact h2 { color: var(--ivory); }
.contact .section-intro { color: rgba(246, 241, 231, 0.7); }

.contact-email {
  display: inline-block;
  font-size: clamp(1.4rem, 4.6vw, 3.1rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--gold);
  margin: 2.5rem 0 1.5rem;
  overflow-wrap: anywhere;
}
.contact-email:hover { color: #D8B96F; text-decoration: none; }

.contact-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  color: rgba(246, 241, 231, 0.75);
  font-size: 1.05rem;
}
.contact-meta a { color: rgba(246, 241, 231, 0.9); font-weight: 500; }
.contact-meta a:hover { color: var(--gold); text-decoration: none; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--charcoal);
  border-top: 1px solid rgba(198, 161, 91, 0.2);
  padding: 2.5rem 0;
  text-align: center;
  color: rgba(246, 241, 231, 0.65);
}
.footer-inner p { margin: 0 0 0.5rem; }
.footer-company {
  font-weight: 700;
  letter-spacing: 0.14em;
  font-size: 0.95rem;
  color: var(--ivory);
}
.footer-details a { color: rgba(246, 241, 231, 0.65); font-size: 0.95rem; }
.footer-details a:hover { color: var(--gold); text-decoration: none; }
.footer-details span { margin: 0 0.5rem; color: var(--gold-deep); }
.footer-copy { font-size: 0.85rem; margin-bottom: 0 !important; }

/* ---------- Scroll reveals (JS-gated) ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 0.85s ease, transform 0.85s ease;
  transition-delay: var(--d, 0s);
}
.js .reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .scroll-hint svg { animation: none; }
  .card-panel { transition: none; }
  .card-toggle svg { transition: none; }
  .service-card, .cta-pill, .nav-links a, .glyph { transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .engage-grid { grid-template-columns: 1fr; max-width: 560px; }
  .hero-triple { grid-template-columns: 1fr; max-width: 520px; }
}

@media (max-width: 767px) {
  section { padding: 4.5rem 0; }
  .hero { padding: 6rem 0 5.5rem; }
  .nav-links {
    display: none;
    position: absolute;
    top: 68px;
    left: 0; right: 0;
    background: var(--charcoal);
    border-bottom: 1px solid rgba(198, 161, 91, 0.2);
    flex-direction: column;
    gap: 0;
    padding: 0.5rem 0;
  }
  .nav-links.open { display: flex; }
  .nav-links li { border-top: 1px solid rgba(198,161,91,0.14); }
  .nav-links a { display: block; padding: 0.9rem 1.5rem; }
  .nav-toggle { display: flex; }
  .nav-right { gap: 0.75rem; }
  .nav-right .cta-pill { font-size: 0.85rem; padding: 0.6rem 1.1rem; }
  .how-row { grid-template-columns: 64px 1fr; gap: 1.25rem; }
  .how-row:nth-child(even) { margin-left: 0; }
  .service-card { flex-basis: 82vw; }
}

/* photos */
.hero-photo{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:.38;pointer-events:none}
.hero::after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(10,10,10,.55),rgba(10,10,10,.25) 45%,var(--charcoal) 98%);pointer-events:none}
.hero-inner,.hero-glyphs,.scroll-hint{position:relative;z-index:1}
.section-photo{display:block;width:100%;max-width:860px;margin:0 auto 2.2rem;border-radius:14px;box-shadow:0 24px 60px rgba(0,0,0,.35)}

/* faq */
.faq{padding:6rem 0;background:rgba(255,255,255,.02)}
.faq h2{text-align:center;margin-bottom:1rem}
.faq-list{max-width:720px;margin:0 auto}
.faq-list details{background:rgba(255,255,255,.04);border:1px solid rgba(201,162,39,.2);border-radius:10px;margin-bottom:.8rem;overflow:hidden}
.faq-list summary{padding:1.1rem 1.4rem;cursor:pointer;font-weight:600;list-style:none}
.faq-list summary::-webkit-details-marker{display:none}
.faq-list summary:hover{color:var(--gold)}
.faq-list details p{padding:0 1.4rem 1.2rem;color:#ccc;line-height:1.7;margin:0}

/* insights */
.insights{padding:6rem 0}
.insights h2{text-align:center}
.insight-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:1.4rem;max-width:1080px;margin:2.5rem auto 0}
.insight-card{background:rgba(255,255,255,.04);border:1px solid rgba(201,162,39,.18);border-radius:12px;padding:1.8rem;transition:transform .3s}
.insight-card:hover{transform:translateY(-6px)}
.insight-card h3{font-size:1.15rem;margin:0 0 .8rem;color:var(--gold)}
.insight-card p{color:#bbb;line-height:1.7;margin:0;font-size:.95rem}
@media(max-width:860px){.insight-grid{grid-template-columns:1fr}}

/* vibrant color boost */
:root{--gold-vivid:#f5b942;--amber:#ff8c42;--sunset:#e85d3d}
.color-band{background:linear-gradient(135deg,#2b1a08 0%,#5c3a12 35%,#a86a1c 65%,#f5b942 100%);padding:4.5rem 0;color:#fff8ec}
.color-band h2{color:#fff}
.color-band p{color:#ffe9c4}
.cta-pill{background:linear-gradient(135deg,var(--gold-vivid),var(--amber));box-shadow:0 8px 28px rgba(245,185,66,.4)}
.section-photo{border:2px solid rgba(245,185,66,.35)}
.insight-card{border-color:rgba(245,185,66,.35)}
.insight-card h3{color:var(--gold-vivid)}
