/* =========================================================
   Manara Malaysia
   Layout, backgrounds and type scale follow Bennett's homepage.
   Colours come from the Manara logo:
     Bennett orange -> Manara gold, Bennett blue -> Manara brown.
   ========================================================= */

:root {
  /* Brand */
  --gold:        #B6A176;  /* primary CTA, accent word, promise band */
  --gold-light:  #CDBB93;
  --gold-text:   #8E7748;  /* gold used as text on white */
  --brown:       #2E1F0E;  /* dark sections, nav CTA, footer */
  --brown-2:     #3B2914;
  --heading:     #2E1F0E;  /* section headings on light (Bennett navy role) */

  /* Neutrals (Bennett's warm greys) */
  --text-strong: #303030;
  --text:        #7E7A74;
  --text-muted:  #9B9590;

  /* Surfaces (Bennett: white, cream, sand, light nav) */
  --white:       #FFFFFF;
  --cream:       #FAF7F0;
  --sand:        #EFE9DA;
  --nav-bg:      rgba(250, 249, 245, .97);
  --line:        #ECE6D8;

  --on-dark:     #FFFFFF;
  --on-dark-70:  rgba(255,255,255,.72);
  --on-dark-40:  rgba(255,255,255,.42);
  --hero-overlay: linear-gradient(90deg, rgba(30,20,8,.82) 0%, rgba(30,20,8,.58) 45%, rgba(30,20,8,.30) 100%);

  /* Type: P22 Underground -> Gill Sans (same Johnston family), Avenir -> Avenir */
  --font-display: "P22 Underground", "Gill Sans", "Gill Sans MT", "Lato", sans-serif;
  --font-body: "Avenir Next", "Avenir", "Nunito Sans", system-ui, sans-serif;

  --container: 1100px;
  --gutter: 24px;
  --section-y: clamp(72px, 9vw, 110px);
  --radius-card: 16px;
}

html[lang="ar"] {
  --font-display: "Readex Pro", "IBM Plex Sans Arabic", sans-serif;
  --font-body: "IBM Plex Sans Arabic", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 90px; }
body {
  margin: 0; background: var(--white); color: var(--text);
  font-family: var(--font-body); font-size: 15px; line-height: 1.7;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
:focus-visible { outline: none; box-shadow: 0 0 0 2px #fff, 0 0 0 4px rgba(182,161,118,.6); border-radius: 6px; }
.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--section-y) 0; position: relative; }

/* ---------- Text styles (Bennett scale) ---------- */
.h1 {
  font-family: var(--font-display); font-weight: 700; text-transform: uppercase;
  font-size: clamp(38px, 4.6vw, 56px); line-height: 1.1; letter-spacing: .025em; color: var(--on-dark);
}
.h1 em { font-style: italic; color: var(--gold-light); }
.h2 {
  font-family: var(--font-display); font-weight: 400; text-transform: uppercase;
  font-size: clamp(30px, 3.4vw, 42px); line-height: 1.15; letter-spacing: .02em; color: var(--heading);
}
.h3 {
  font-family: var(--font-display); font-weight: 600; text-transform: uppercase;
  font-size: 18px; line-height: 1.35; letter-spacing: .03em; color: var(--heading);
}
.sub { font-weight: 600; font-size: 16px; line-height: 1.5; color: var(--text-strong); margin-top: 18px; }
.body { font-size: 15px; color: var(--text); margin-top: 14px; }
.label { font-size: 11px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; color: var(--text-muted); }
.center { text-align: center; }
.center .body, .center .sub { margin-left: auto; margin-right: auto; }

html[lang="ar"] .h1, html[lang="ar"] .h2, html[lang="ar"] .h3, html[lang="ar"] .label,
html[lang="ar"] .nav__links a, html[lang="ar"] .nav__cta, html[lang="ar"] .stat__label { letter-spacing: 0; }
html[lang="ar"] .h1 em { font-style: normal; }
html[lang="ar"] .h1 { line-height: 1.3; font-size: clamp(34px, 4.2vw, 52px); }
html[lang="ar"] .h2 { line-height: 1.4; font-weight: 500; }
html[lang="ar"] .h3 { font-size: 17px; line-height: 1.6; }
html[lang="ar"] .label { font-size: 13px; }
html[lang="ar"] body { line-height: 1.9; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-body); font-size: 15px; font-weight: 500;
  padding: 15px 32px; border-radius: 100px; border: 0; cursor: pointer; text-decoration: none;
  background: var(--gold); color: var(--brown); transition: background-color .2s ease;
}
.btn:hover { background: var(--gold-light); }
.arrow { display: inline-block; transition: transform .2s ease; }
a:hover > .arrow { transform: translateX(3px); }
html[dir="rtl"] .arrow { transform: scaleX(-1); }
html[dir="rtl"] a:hover > .arrow { transform: scaleX(-1) translateX(3px); }
.text-link { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; text-decoration: none; color: var(--on-dark); padding: 15px 4px; }

/* ---------- Nav (solid light bar, like Bennett) ---------- */
.nav { position: sticky; top: 0; z-index: 50; background: var(--nav-bg); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 96px; transition: height .25s ease; }
.nav.is-compact .nav__inner { height: 72px; }
.nav__logo img { height: 64px; width: auto; transition: height .25s ease; }
.nav.is-compact .nav__logo img { height: 52px; }
.nav__logo .logo-ar, html[lang="ar"] .nav__logo .logo-en { display: none; }
html[lang="ar"] .nav__logo .logo-ar { display: block; }
.nav__right { display: flex; align-items: center; gap: 26px; }
.nav__links { display: flex; align-items: center; gap: 26px; list-style: none; margin: 0; padding: 0; }
.nav__links a { font-size: 12px; font-weight: 500; letter-spacing: .04em; text-transform: uppercase; color: var(--text-strong); text-decoration: none; }
.nav__links a:hover { color: var(--gold-text); }
html[lang="ar"] .nav__links a { font-size: 14px; }
.lang-toggle { background: none; border: 0; padding: 4px 2px; font: 600 13px/1 var(--font-body); color: var(--text-strong); cursor: pointer; }
.lang-toggle [lang="ar"] { font-family: "IBM Plex Sans Arabic", sans-serif; font-size: 15px; }
.nav__cta { background: var(--brown); color: #fff; text-decoration: none; padding: 9px 22px; border-radius: 100px; font-size: 12px; font-weight: 500; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; }
html[lang="ar"] .nav__cta { font-size: 13px; }
.nav__cta:hover { background: var(--brown-2); }
.nav__burger { display: none; background: none; border: 0; padding: 8px; cursor: pointer; color: var(--brown); }
.nav__burger span { display: block; width: 22px; height: 2px; background: currentColor; margin: 5px 0; transition: transform .25s, opacity .2s; }
@media (max-width: 980px) {
  .nav__inner { height: 76px; }
  .nav__logo img { height: 52px; }
  .nav__links, .nav__cta { display: none; }
  .nav__burger { display: block; }
  .nav.is-open .nav__links { display: flex; flex-direction: column; align-items: flex-start; gap: 0; position: absolute; top: 100%; inset-inline: 0; background: var(--nav-bg); border-bottom: 1px solid var(--line); padding: 8px var(--gutter) 22px; }
  .nav.is-open .nav__links a { display: block; padding: 12px 0; font-size: 14px; }
  .nav.is-open .nav__burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav.is-open .nav__burger span:nth-child(2) { opacity: 0; }
  .nav.is-open .nav__burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* ---------- Hero (photo + overlay, stats inside) ---------- */
.hero { position: relative; color: var(--on-dark); background: #2a1c0c url("../assets/hero-kl.jpg") center 35% / cover no-repeat; }
.hero::before { content: ""; position: absolute; inset: 0; background: var(--hero-overlay); }
html[dir="rtl"] .hero::before { transform: scaleX(-1); }
.hero__inner { position: relative; padding: clamp(56px, 8vw, 96px) var(--gutter) 0; }
.hero__copy { max-width: 560px; }
.hero__copy .lead { font-weight: 600; font-size: 16px; line-height: 1.6; margin-top: 30px; }
.hero__copy .body { color: var(--on-dark); opacity: .9; margin-top: 16px; font-size: 15px; }
.hero__ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 22px; margin-top: 34px; }
.stats { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 24px 120px; margin-top: 64px; padding: 34px 0 48px; border-top: 1px solid rgba(255,255,255,.35); max-width: 760px; }
.stat__num { font-family: var(--font-body); font-size: 42px; line-height: 1; font-weight: 400; letter-spacing: 1px; text-transform: uppercase; }
.stat__label { font-size: 11px; font-weight: 500; letter-spacing: 1.5px; text-transform: uppercase; margin-top: 12px; color: var(--on-dark); }
html[lang="ar"] .stat__label { font-size: 13px; }
@media (max-width: 720px) { .stats { grid-template-columns: 1fr; gap: 26px; } }

/* ---------- Worries (white, faint line drawings, card slider) ---------- */
.worries { overflow: hidden; }
.deco { position: absolute; pointer-events: none; color: var(--sand); }
.deco--book { width: 230px; top: 40px; inset-inline-start: 36%; transform: rotate(-12deg); }
.deco--plane { width: 200px; bottom: 50px; inset-inline-start: -30px; transform: rotate(8deg); }
.deco--mark { width: 120px; top: 30px; inset-inline-end: 4%; }
.worries__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; margin-bottom: 40px; position: relative; }
.worries__head .h2 { max-width: 640px; }
.slider-btns { display: flex; gap: 10px; flex-shrink: 0; }
.slider-btn { width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid var(--gold); background: transparent; color: var(--gold-text); cursor: pointer; display: grid; place-items: center; font-size: 16px; transition: background .2s, color .2s; }
.slider-btn:hover { background: var(--gold); color: var(--brown); }
html[dir="rtl"] .slider-btn span { transform: scaleX(-1); display: inline-block; }
.slider { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(230px, 1fr); gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 6px; position: relative; }
.slider::-webkit-scrollbar { display: none; }
.wcard { scroll-snap-align: start; background: var(--cream); border-radius: 12px; padding: 26px 22px 30px; min-height: 340px; }
.wcard svg { width: 22px; height: 22px; color: var(--gold); margin-bottom: 22px; }
.wcard .h3 { font-size: 15px; line-height: 1.35; margin-bottom: 14px; }
.wcard p { font-size: 13px; line-height: 1.65; }
html[lang="ar"] .wcard p { font-size: 14px; }
.worries__cta { text-align: center; margin-top: 48px; }
@media (min-width: 1100px) { .slider { grid-auto-columns: calc((100% - 16px * 4) / 5); } }
@media (max-width: 720px) { .worries__head { flex-direction: column; align-items: flex-start; } .slider { grid-auto-columns: 78%; } }

/* ---------- Services (cream section, white cards 3x2) ---------- */
.services { background: var(--cream); }
.services__head { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: end; margin-bottom: 48px; }
.services__head .body { margin: 0; }
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; list-style: none; margin: 0; padding: 0; }
.scard { background: var(--white); border-radius: var(--radius-card); padding: 30px 26px 34px; }
.scard__num { font-family: var(--font-display); font-size: 36px; font-weight: 600; line-height: 1; color: var(--sand); display: block; margin-bottom: 22px; }
.scard .h3 { font-size: 16px; margin-bottom: 12px; }
.scard p { font-size: 13px; line-height: 1.7; }
html[lang="ar"] .scard p { font-size: 14px; }
@media (max-width: 900px) { .services__head { grid-template-columns: 1fr; gap: 16px; } .service-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .service-grid { grid-template-columns: 1fr; } }

/* ---------- Why (photo left, brown panel right) ---------- */
.why { display: grid; grid-template-columns: 1fr 1fr; min-height: 640px; }
.why__photo { position: relative; background: #1d2a3a url("../assets/lighthouse.jpg") center 30% / cover no-repeat; }
.why__photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(20,14,6,.45), transparent 50%); }
.why__word { position: absolute; bottom: 26px; inset-inline-start: 34px; z-index: 1; font-family: "Readex Pro", sans-serif; font-weight: 300; font-size: clamp(64px, 8vw, 110px); line-height: 1; color: rgba(255,255,255,.4); }
.why__panel { background: var(--brown); color: var(--on-dark-70); padding: clamp(56px, 7vw, 90px) clamp(28px, 5vw, 72px); display: flex; flex-direction: column; justify-content: center; }
.why__panel .h2 { color: var(--on-dark); font-size: clamp(28px, 2.8vw, 34px); }
.why__panel .sub { color: var(--on-dark); font-weight: 500; }
.why__panel .body { color: var(--on-dark-70); font-size: 14px; }
.why__list { list-style: none; margin: 26px 0 0; padding: 0; }
.why__list li { position: relative; padding-inline-start: 30px; margin: 12px 0; font-size: 14px; color: var(--on-dark); line-height: 1.6; }
.why__list li::before { content: ""; position: absolute; inset-inline-start: 0; top: .8em; width: 16px; height: 1.5px; background: var(--gold); }
.why__note { margin-top: 24px; font-size: 14px; color: var(--on-dark-40); }
@media (max-width: 860px) { .why { grid-template-columns: 1fr; } .why__photo { min-height: 380px; } }

/* ---------- Process (text | steps | tall photo) ---------- */
.process__grid { display: grid; grid-template-columns: .95fr 1.15fr .9fr; gap: 48px; align-items: stretch; }
.process__intro .btn { margin-top: 30px; }
.steps { list-style: none; margin: 0; padding: 0; }
.step { display: grid; grid-template-columns: 34px 1fr; gap: 16px; padding-bottom: 38px; }
.step__num { width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--gold); color: var(--gold-text); font-size: 12px; display: grid; place-items: center; margin-top: 3px; }
.step .h3 { font-size: 19px; margin-bottom: 8px; }
.step p { font-size: 13px; line-height: 1.7; }
html[lang="ar"] .step p { font-size: 14px; }
.process__photo { border-radius: 4px; min-height: 560px; background: url("../assets/kl-street.jpg") 55% center / cover no-repeat; }
@media (max-width: 980px) { .process__grid { grid-template-columns: 1fr 1fr; } .process__photo { grid-column: 1 / -1; min-height: 320px; } }
@media (max-width: 640px) { .process__grid { grid-template-columns: 1fr; } }

/* ---------- Promise band (gold, white cards) ---------- */
.promise { background: var(--gold); }
.promise .h2 { color: var(--brown); }
.promise .sub { color: var(--brown); font-weight: 500; margin-top: 10px; }
.quote-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 48px; }
.qcard { background: var(--white); border-radius: 12px; padding: 28px 26px; display: flex; flex-direction: column; justify-content: space-between; min-height: 260px; text-align: start; }
.qcard__mark { font-family: Georgia, serif; font-size: 44px; line-height: 1; color: var(--sand); height: 30px; }
html[dir="rtl"] .qcard__mark { transform: scaleX(-1); }
.qcard p { font-style: italic; font-size: 15px; line-height: 1.7; color: var(--heading); margin-top: 14px; }
html[lang="ar"] .qcard p { font-style: normal; }
.qcard .label { margin-top: 26px; }
@media (max-width: 860px) { .quote-grid { grid-template-columns: 1fr; } .qcard { min-height: 0; } }

/* ---------- Cities (brown, pills) ---------- */
.cities { background: var(--brown); color: var(--on-dark-70); overflow: hidden; }
.cities .h2 { color: var(--on-dark); }
.cities .sub { color: var(--on-dark); font-weight: 500; margin-top: 10px; }
.cities .body { color: var(--on-dark-70); max-width: 640px; font-size: 14px; }
.cities__rays { position: absolute; inset: 0; pointer-events: none; opacity: .035; background: repeating-conic-gradient(from 0deg at 50% 110%, #fff 0deg 1.2deg, transparent 1.2deg 9deg); }
.pills { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; list-style: none; margin: 40px auto 0; padding: 0; max-width: 900px; position: relative; }
.pills li { display: inline-flex; align-items: center; gap: 10px; padding: 9px 20px; border-radius: 100px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); color: var(--on-dark-70); font-size: 13px; }
.pills li::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--gold); }

/* ---------- Founder-style quote ---------- */
.founder { text-align: center; }
.founder__avatar { width: 84px; height: 84px; border-radius: 50%; background: var(--cream); margin: 0 auto 26px; display: grid; place-items: center; }
.founder__avatar img { height: 54px; }
.founder blockquote { margin: 0 auto; max-width: 820px; }
.founder blockquote p { font-family: var(--font-body); font-style: italic; font-size: clamp(20px, 2.4vw, 27px); line-height: 1.5; color: var(--heading); }
html[lang="ar"] .founder blockquote p { font-style: normal; }
.founder .label { margin-top: 24px; display: block; }

/* ---------- Final CTA (cream) ---------- */
.cta { background: var(--cream); text-align: center; overflow: hidden; }
.cta .body { max-width: 600px; margin-left: auto; margin-right: auto; }
.cta .btn { margin-top: 32px; }
.cta__email { margin-top: 18px; font-size: 13px; color: var(--text); }
.cta__email a { color: var(--heading); }
.contacts { display: flex; justify-content: center; flex-wrap: wrap; gap: 24px 64px; margin-top: 40px; }
.contacts div { font-size: 13px; color: var(--heading); }
.contacts .label { font-size: 10px; margin-bottom: 6px; display: block; }
.cta__ring { position: absolute; width: 520px; height: 520px; border-radius: 50%; border: 1px solid var(--sand); top: -200px; inset-inline-end: -160px; pointer-events: none; }
.cta__ring--2 { width: 380px; height: 380px; top: -130px; inset-inline-end: -90px; }

/* ---------- Footer (brown, gold headings) ---------- */
.footer { background: var(--brown); color: var(--on-dark-40); padding: 72px 0 32px; font-size: 13px; }
.footer__grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 40px; }
.footer__brand img { height: 110px; width: auto; }
.footer__brand p { margin-top: 18px; max-width: 260px; color: var(--on-dark-70); line-height: 1.7; }
.footer .logo-ar, html[lang="ar"] .footer .logo-en { display: none; }
html[lang="ar"] .footer .logo-ar { display: block; }
.footer h4 { margin: 0 0 14px; font-size: 11px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; color: var(--gold); }
html[lang="ar"] .footer h4 { font-size: 13px; letter-spacing: 0; }
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { padding: 5px 0; }
.footer a { color: var(--on-dark-70); text-decoration: none; }
.footer a:hover { color: #fff; }
.footer__bottom { margin-top: 56px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.1); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
@media (max-width: 860px) { .footer__grid { grid-template-columns: 1fr 1fr; } .footer__brand { grid-column: 1 / -1; } }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-in, .no-js .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- What Manara does: two pillars ---------- */
.pillars { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.pillar { background: var(--white); border-radius: var(--radius-card); padding: 40px 36px 42px; display: flex; flex-direction: column; }
.pillar .scard__num { font-size: 44px; }
.pillar .h3 { font-size: 22px; margin-bottom: 14px; }
.pillar p { font-size: 14px; line-height: 1.75; }
.pillar ul { list-style: none; margin: 22px 0 0; padding: 0; }
.pillar li { position: relative; padding-inline-start: 26px; margin: 8px 0; font-size: 14px; color: var(--text-strong); }
.pillar li::before { content: ""; position: absolute; inset-inline-start: 0; top: .85em; width: 14px; height: 1.5px; background: var(--gold); }
.pillar__link { margin-top: auto; padding-top: 26px; display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14px; color: var(--gold-text); text-decoration: none; }
@media (max-width: 820px) { .pillars { grid-template-columns: 1fr; } }

/* ---------- Learn: topic tiles + social buttons ---------- */
.learn__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; margin-bottom: 40px; flex-wrap: wrap; }
.learn__head .h2 { max-width: 560px; }
.socials { display: flex; gap: 10px; flex-wrap: wrap; }
.social { display: inline-flex; align-items: center; gap: 8px; padding: 11px 20px; border-radius: 100px; border: 1.5px solid var(--brown); color: var(--brown); text-decoration: none; font-size: 13px; font-weight: 600; transition: background .2s, color .2s; }
.social:hover { background: var(--brown); color: #fff; }
.social svg { width: 16px; height: 16px; }
.topics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.topic { position: relative; aspect-ratio: 9 / 13; border-radius: 12px; overflow: hidden; background: var(--brown); color: #fff; padding: 22px; display: flex; flex-direction: column; justify-content: flex-end; text-decoration: none; }
.topic::before { content: ""; position: absolute; inset: 0; background: repeating-conic-gradient(from 200deg at 50% 18%, rgba(205,187,147,.08) 0deg 4deg, transparent 4deg 14deg); }
.topic__mark { position: absolute; top: 22px; inset-inline-start: 22px; width: 26px; opacity: .9; }
.topic__tag { position: relative; font-size: 10px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; color: var(--gold-light); margin-bottom: 10px; }
html[lang="ar"] .topic__tag { font-size: 12px; letter-spacing: 0; }
.topic .h3 { position: relative; color: #fff; font-size: 17px; }
.topic--soon { background: var(--cream); color: var(--heading); }
.topic--soon::before { background: none; }
.topic--soon .h3 { color: var(--heading); }
.topic--soon .topic__tag { color: var(--text-muted); }
a.topic:hover .h3 { text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 900px) { .topics { grid-template-columns: 1fr 1fr; } }
.stats > div { min-width: 200px; }
.i18n-pending body { visibility: hidden; }
