/* ==========================================================================
   Building Your Marketing Department — landing page styles
   Brand system: cream base · deep navy contrast · teal-green accent
   Layout uses logical properties so the Arabic (RTL) page works from one file.
   ========================================================================== */

/* ------------------------------------------------------------------ Tokens */
:root {
  /* Brand palette (mirrors the BMD wordmark) */
  --cream:        #f3f1ea;   /* base / most section backgrounds            */
  --cream-soft:   #ece8df;   /* alternating soft off-white                 */
  --white:        #ffffff;
  --navy:         #16202c;   /* dark contrast sections + footer            */
  --navy-soft:    #1e2b3a;   /* cards / gradients on dark                  */
  --ink:          #111a23;   /* primary text on light                      */
  --muted:        #56616d;   /* secondary text on light                    */
  --muted-light:  #aeb8c2;   /* secondary text on dark                     */
  --primary:      #1c8c77;   /* teal-green accent — CTAs & highlights      */
  --primary-600:  #15735f;   /* hover                                      */
  --primary-700:  #105443;
  --primary-tint: rgba(28, 140, 119, .1);
  --primary-soft: rgba(28, 140, 119, .16);
  --line:         rgba(17, 26, 35, .12);
  --line-dark:    rgba(255, 255, 255, .14);

  /* Type */
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-ar:   "Cairo", "IBM Plex Sans Arabic", system-ui, sans-serif;

  /* Rhythm */
  --section-y: 80px;          /* desktop top/bottom padding per the guide  */
  --container: 1200px;        /* readable content width                    */
  --container-wide: 1340px;   /* wide alignment                            */
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(17, 26, 35, .04), 0 12px 32px -12px rgba(17, 26, 35, .16);
  --shadow-lg: 0 24px 60px -24px rgba(17, 26, 35, .35);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.0625rem;        /* 17px */
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }

:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 2px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  inset-inline-start: -9999px;
  top: 0;
  background: var(--navy);
  color: #fff;
  padding: 12px 18px;
  z-index: 200;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { inset-inline-start: 0; }

/* --------------------------------------------------------------- Typography */
h1, h2, h3, h4 { margin: 0; line-height: 1.1; letter-spacing: -.02em; font-weight: 800; }

h1 { font-size: clamp(2.4rem, 5.2vw, 3.6rem); line-height: 1.04; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.6rem); }
h3 { font-size: 1.2rem; font-weight: 700; letter-spacing: -.01em; }

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

.eyebrow {
  display: inline-block;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 1rem;
}
.eyebrow--ondark { color: #6fd0bd; }

.lead { font-size: clamp(1.1rem, 1.8vw, 1.3rem); color: var(--muted); line-height: 1.6; }
.section-intro { max-width: 720px; margin-inline: auto; }
.text-center { text-align: center; }

/* ------------------------------------------------------------------ Layout */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}
.container--wide { max-width: var(--container-wide); }
.container--narrow { max-width: 760px; }

.section { padding-block: var(--section-y); }
.section--tight { padding-block: 56px; }
.section--cream { background: var(--cream); }
.section--soft { background: var(--cream-soft); }
.section--white { background: var(--white); }
.section--navy { background: var(--navy); color: #eef1f4; }
.section--navy h1, .section--navy h2, .section--navy h3 { color: #fff; }

.stack > * + * { margin-block-start: var(--stack, 1rem); }
.section-head { max-width: 760px; margin-inline: auto; margin-block-end: 3rem; }
.section-head .lead { margin-block-start: .85rem; }

/* ------------------------------------------------------------------ Buttons */
.btn {
  --btn-bg: var(--primary);
  --btn-fg: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5em;
  font: inherit;
  font-weight: 600;
  line-height: 1.1;
  padding: .95em 1.7em;
  border: 2px solid var(--btn-bg);
  border-radius: var(--radius-sm);
  background: var(--btn-bg);
  color: var(--btn-fg);
  cursor: pointer;
  transition: transform .15s ease, background-color .15s ease, border-color .15s ease, box-shadow .15s ease;
  text-align: center;
}
.btn:hover { --btn-bg: var(--primary-600); transform: translateY(-2px); box-shadow: 0 12px 24px -12px rgba(28,140,119,.6); }
.btn:active { transform: translateY(0); }

.btn--outline {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn--outline:hover { background: transparent; border-color: var(--ink); color: var(--ink); box-shadow: none; }

.btn--ondark { color: #fff; border-color: rgba(255,255,255,.55); background: transparent; }
.btn--ondark:hover { background: rgba(255,255,255,.1); border-color: #fff; box-shadow: none; }

.btn--lg { padding: 1.05em 2em; font-size: 1.05rem; }
.btn--block { width: 100%; }

.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }
.btn-row--center { justify-content: center; }

/* ------------------------------------------------------------------ Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(243, 241, 234, .82);
  backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 72px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); }
.brand .logo { width: 60px; height: auto; }
.brand__name { font-weight: 800; letter-spacing: -.01em; font-size: 1.02rem; white-space: nowrap; }

.primary-nav { margin-inline-start: auto; }
.primary-nav ul { display: flex; align-items: center; gap: 26px; }
.primary-nav a { font-weight: 500; font-size: .96rem; color: var(--muted); transition: color .15s ease; }
.primary-nav a:hover { color: var(--ink); }

.header-actions { display: flex; align-items: center; gap: 14px; }

.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  font-size: .9rem;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 12px;
}
.lang-toggle:hover { color: var(--ink); border-color: var(--ink); }
.lang-toggle .is-active { color: var(--primary); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px; height: 44px;
  padding: 10px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
}
.nav-toggle span { height: 2px; width: 100%; background: var(--ink); border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }

/* ------------------------------------------------------------------ Hero */
.hero {
  position: relative;
  color: #eef1f4;
  background:
    radial-gradient(120% 120% at 85% 0%, rgba(28,140,119,.28) 0%, rgba(28,140,119,0) 45%),
    linear-gradient(150deg, #16202c 0%, #1b2735 55%, #16202c 100%);
  overflow: hidden;
  isolation: isolate;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(120% 90% at 50% 0%, #000 35%, transparent 75%);
          mask-image: radial-gradient(120% 90% at 50% 0%, #000 35%, transparent 75%);
  z-index: -1;
}
.hero__inner {
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding-block: 96px;
}
.hero h1 { color: #fff; max-width: 16ch; }
.hero .lead { color: #c9d2db; max-width: 60ch; margin-block-start: 1.4rem; }
.hero .btn-row { margin-block-start: 2.2rem; }
.hero__note { margin-block-start: 1.1rem; font-size: .9rem; color: var(--muted-light); }

/* Trust strip */
.trust { background: var(--cream); border-bottom: 1px solid var(--line); }
.trust__label {
  text-align: center;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-block-end: 1.4rem;
}
.trust__logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 36px 56px;
}
.trust__logos svg { height: 26px; width: auto; color: #97a1ab; opacity: .85; transition: color .2s ease, opacity .2s ease; }
.trust__logos a:hover svg, .trust__logos li:hover svg { color: var(--ink); opacity: 1; }

/* ------------------------------------------------------------------ Grids */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-5 { grid-template-columns: repeat(5, 1fr); }

/* ------------------------------------------------------------------ Cards */
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  height: 100%;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.card--hover:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.card h3 { margin-block: .9rem .45rem; }
.card p { color: var(--muted); font-size: 1rem; margin: 0; }

/* Icon badge */
.icon-badge {
  display: inline-grid;
  place-items: center;
  width: 52px; height: 52px;
  border-radius: 14px;
  background: var(--primary-tint);
  color: var(--primary);
}
.icon-badge svg { width: 26px; height: 26px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.icon-badge--ondark { background: rgba(111,208,189,.16); color: #6fd0bd; }

/* ------------------------------------------------------------ Empathy block */
.empathy { text-align: center; }
.empathy .container--narrow > * + * { margin-block-start: 1.2rem; }
.empathy p { font-size: clamp(1.1rem, 2vw, 1.32rem); color: #d6dde4; line-height: 1.6; }

/* ----------------------------------------------------------- Authority/media */
.media {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}
.media--reverse { direction: rtl; }
.media--reverse > * { direction: ltr; }
[dir="rtl"] .media--reverse { direction: ltr; }
[dir="rtl"] .media--reverse > * { direction: rtl; }

.media__text > * + * { margin-block-start: 1.1rem; }
.media__text p { color: var(--muted); }
.media__text strong { color: var(--ink); }

.portrait {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-soft) 100%);
  aspect-ratio: 4 / 5;
  box-shadow: var(--shadow);
}
.portrait svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.portrait__tag {
  position: absolute;
  inset-inline: 16px;
  bottom: 16px;
  background: rgba(255,255,255,.92);
  border-radius: 12px;
  padding: 12px 16px;
  font-size: .85rem;
  color: var(--muted);
}
.portrait__tag strong { display: block; color: var(--ink); font-size: .98rem; }

/* Stats */
.stats { margin-block-start: 3rem; border-top: 1px solid var(--line); padding-block-start: 2.4rem; }
.stat { text-align: center; }
.stat__num { font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 800; color: var(--primary); letter-spacing: -.02em; line-height: 1; }
.stat__label { margin-block-start: .5rem; color: var(--muted); font-size: .98rem; }

/* ----------------------------------------------------------- BUILD framework */
.build-card { text-align: start; position: relative; }
.build-card .letter {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
}
.build-card h3 { margin-block: .8rem .5rem; font-size: 1.08rem; }
.build-card p { font-size: .96rem; }

/* ------------------------------------------------------------- Plan (3 step) */
.step { text-align: center; }
.step__num {
  display: inline-grid;
  place-items: center;
  width: 60px; height: 60px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  font-weight: 800;
  font-size: 1.4rem;
  margin-block-end: 1.1rem;
}
.step h3 { margin-block-end: .5rem; }
.step p { color: var(--muted); }

/* ----------------------------------------------------------- Before / After */
.ba { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.ba__col { border-radius: var(--radius); padding: 32px; }
.ba__col h3 { display: flex; align-items: center; gap: 10px; margin-block-end: 1.2rem; font-size: 1.15rem; }
.ba__before { background: var(--cream-soft); border: 1px solid var(--line); }
.ba__before h3 { color: var(--muted); }
.ba__after { background: var(--primary); color: #fff; }
.ba__after h3 { color: #fff; }
.ba__list li { display: flex; gap: 12px; padding-block: 10px; align-items: flex-start; }
.ba__list li + li { border-top: 1px solid var(--line); }
.ba__after .ba__list li + li { border-top-color: rgba(255,255,255,.22); }
.ba__list svg { flex: none; width: 22px; height: 22px; margin-block-start: 2px; }
.ba__before .ba__list svg { color: var(--muted); }
.ba__after .ba__list svg { color: #fff; }

/* ------------------------------------------------------------- Testimonials */
.quote-card { display: flex; flex-direction: column; gap: 18px; }
.quote-card blockquote { margin: 0; font-size: 1.06rem; line-height: 1.6; color: var(--ink); }
.quote-card blockquote::before { content: "\201C"; color: var(--primary); font-size: 2.6rem; line-height: 0; vertical-align: -.35em; margin-inline-end: .1em; }
.quote-author { display: flex; align-items: center; gap: 12px; margin-block-start: auto; }
.avatar {
  flex: none;
  width: 46px; height: 46px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--primary-tint);
  color: var(--primary-700);
  font-weight: 700;
  font-size: .9rem;
}
.quote-author strong { display: block; font-size: .98rem; }
.quote-author span { color: var(--muted); font-size: .88rem; }
.placeholder-note {
  margin-block-start: 1.4rem;
  font-size: .85rem;
  color: var(--muted);
  background: var(--primary-tint);
  border: 1px dashed var(--primary-soft);
  border-radius: 10px;
  padding: 10px 14px;
  display: inline-block;
}

/* -------------------------------------------------------------- What you get */
.book {
  perspective: 1600px;
  display: grid;
  place-items: center;
  padding: 12px;
}
.book__cover {
  position: relative;
  width: min(280px, 70vw);
  aspect-ratio: 3 / 4;
  border-radius: 6px 10px 10px 6px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-soft) 100%);
  color: #fff;
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transform: rotateY(-18deg) rotateX(4deg);
  box-shadow:
    -18px 24px 48px -18px rgba(17,26,35,.55),
    inset 6px 0 0 rgba(0,0,0,.28),
    inset 14px 0 14px -12px rgba(0,0,0,.4);
  transition: transform .4s ease;
}
.book:hover .book__cover { transform: rotateY(-8deg) rotateX(2deg); }
.book__brand { font-size: 2.6rem; font-weight: 800; letter-spacing: .02em; }
.book__rule { width: 64px; height: 3px; background: var(--primary); border-radius: 2px; }
.book__title { font-size: 1.32rem; font-weight: 800; line-height: 1.15; margin-block-start: auto; }
.book__sub { font-size: .9rem; color: var(--muted-light); }

.checklist li { display: flex; gap: 12px; align-items: flex-start; padding-block: 9px; }
.checklist li + li { border-top: 1px solid var(--line); }
.checklist svg { flex: none; width: 22px; height: 22px; color: var(--primary); margin-block-start: 2px; }

/* ------------------------------------------------------------------ Pricing */
.price-card { display: flex; flex-direction: column; position: relative; }
.price-card--featured {
  border: 2px solid var(--primary);
  box-shadow: var(--shadow-lg);
}
.price-badge {
  position: absolute;
  top: 0; inset-inline-start: 50%;
  transform: translate(-50%, -50%);
  background: var(--primary);
  color: #fff;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 999px;
}
[dir="rtl"] .price-badge { transform: translate(50%, -50%); }
.price-card h3 { font-size: 1.25rem; }
.price-card .price { font-size: 2rem; font-weight: 800; letter-spacing: -.02em; margin-block: .4rem .2rem; }
.price-card .price small { font-size: .9rem; font-weight: 500; color: var(--muted); }
.price-card .price-desc { color: var(--muted); font-size: .96rem; }
.price-features { margin-block: 1.4rem; flex: 1; }
.price-features li { display: flex; gap: 10px; align-items: flex-start; padding-block: 8px; color: var(--muted); }
.price-features svg { flex: none; width: 20px; height: 20px; color: var(--primary); margin-block-start: 3px; }

/* --------------------------------------------------------------- Lead capture */
.lead-capture { background: linear-gradient(150deg, #16202c 0%, #1d2937 100%); color: #fff; }
.lead-capture .eyebrow { color: #6fd0bd; }
.lead-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(28px, 5vw, 56px); align-items: center; }
.lead-capture h2 { color: #fff; }
.lead-capture p { color: #cdd5dd; }
.scorecard {
  background: rgba(255,255,255,.06);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  padding: clamp(24px, 4vw, 36px);
}
.form-field { margin-block-end: 16px; }
.form-field label { display: block; font-size: .9rem; font-weight: 600; margin-block-end: 6px; color: #e7ebef; }
.form-field input {
  width: 100%;
  font: inherit;
  padding: 13px 15px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-dark);
  background: rgba(255,255,255,.95);
  color: var(--ink);
}
.form-field input::placeholder { color: #8b96a1; }
.form-note { font-size: .82rem; color: var(--muted-light); margin-block-start: 12px; }

/* ------------------------------------------------------------------ Footer */
.site-footer { background: var(--navy); color: #c2ccd6; padding-block: 64px 28px; }
.site-footer a { color: #c2ccd6; }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.footer-brand .logo { width: 64px; margin-block-end: 16px; }
.footer-brand p { color: var(--muted-light); font-size: .96rem; max-width: 40ch; }
.footer-col h4 { color: #fff; font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; margin-block-end: 14px; }
.footer-col li { margin-block-end: 10px; font-size: .96rem; }
.footer-col a { color: var(--muted-light); }
.footer-col a:hover { color: #fff; }
.social { display: flex; gap: 12px; margin-block-start: 6px; }
.social a {
  display: grid; place-items: center;
  width: 40px; height: 40px;
  border-radius: 10px;
  border: 1px solid var(--line-dark);
  color: var(--muted-light);
}
.social a:hover { color: #fff; border-color: rgba(255,255,255,.4); background: rgba(255,255,255,.06); }
.social svg { width: 20px; height: 20px; }
.footer-bottom {
  margin-block-start: 44px;
  padding-block-start: 22px;
  border-top: 1px solid var(--line-dark);
  text-align: center;
  font-size: .86rem;
  color: var(--muted-light);
}

/* ------------------------------------------------------------------ Responsive */
@media (max-width: 960px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-5 { grid-template-columns: repeat(3, 1fr); }
  .lead-grid { grid-template-columns: 1fr; }
  .media { grid-template-columns: 1fr; }
  .portrait { max-width: 420px; margin-inline: auto; }
}

@media (max-width: 820px) {
  :root { --section-y: 52px; }

  .primary-nav, .header-actions .btn, .lang-toggle { display: none; }
  .nav-toggle { display: flex; margin-inline-start: auto; }

  /* Mobile dropdown menu */
  .site-header.is-open .mobile-menu { display: block; }
  .mobile-menu {
    display: none;
    border-top: 1px solid var(--line);
    padding: 14px 0 22px;
  }
  .mobile-menu ul { display: flex; flex-direction: column; gap: 4px; }
  .mobile-menu a { display: block; padding: 11px 4px; font-weight: 500; color: var(--ink); border-bottom: 1px solid var(--line); }
  .mobile-menu .btn { margin-block-start: 16px; width: 100%; }
  .mobile-menu .lang-toggle { display: inline-flex; margin-block-start: 14px; }
}

@media (max-width: 680px) {
  .grid-2, .grid-3, .grid-4, .grid-5, .ba { grid-template-columns: 1fr; }
  .hero__inner { min-height: 64vh; padding-block: 72px; }
  .btn-row { width: 100%; }
  .hero .btn { flex: 1 1 auto; }
  .stats .grid-3 { gap: 28px; }
}

/* Desktop-only helper to keep mobile menu hidden above breakpoint */
@media (min-width: 821px) {
  .mobile-menu { display: none !important; }
}

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

/* ------------------------------------------------------------------ RTL tweaks */
[dir="rtl"] body { font-family: var(--font-ar); }
[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3, [dir="rtl"] h4 { letter-spacing: normal; }
[dir="rtl"] .book__cover { transform: rotateY(18deg) rotateX(4deg); border-radius: 10px 6px 6px 10px; box-shadow: 18px 24px 48px -18px rgba(17,26,35,.55), inset -6px 0 0 rgba(0,0,0,.28), inset -14px 0 14px -12px rgba(0,0,0,.4); }
[dir="rtl"] .book:hover .book__cover { transform: rotateY(8deg) rotateX(2deg); }
