/* =====================================================================
   newgyminrak.com - shared site design system
   Extension of the Founders waitlist LP. Brand: RAK (DRAFT).
   EMBARGO: no brand name/logo, no photo of the (non-existent) gym,
   no invented numbers. Temporary mark = wordmark "the box" + رأس الخيمة.
   ===================================================================== */

/* ---------- Design tokens ---------- */
:root {
  --cream:      #F1E4CC;   /* dominant background */
  --cream-2:    #EADBC0;   /* secondary background */
  --surface:    #F8EFDD;   /* cards / elevated surfaces */
  --sand:       #D8C29A;   /* warm neutral accent */
  --terra:      #C5481E;   /* signature accent (CTA, italic emphasis) */
  --orange:     #E8821E;   /* secondary warm accent */
  --orange-dk:  #A03E1A;   /* deep orange (hover) */
  --sun:        #F4B942;   /* sparing highlight */
  --brown:      #3D2817;   /* primary text / dark surfaces */
  --brown-2:    #5C3A21;   /* secondary text */
  --brown-3:    #2A1A0E;   /* deep dark */
  --black:      #141008;   /* high-contrast dark */
  --muted:      #6E5B45;   /* secondary body text */
  --border:     rgba(61,40,23,0.16);
  --border-dk:  rgba(241,228,204,0.18);

  --radius:     8px;
  --radius-lg:  16px;
  --radius-pill: 999px;

  --max:        780px;     /* narrow reading width */
  --max-wide:   1120px;
  --shadow:     0 1px 2px rgba(61,40,23,0.05), 0 12px 32px rgba(61,40,23,0.08);
  --shadow-cta: 0 10px 28px rgba(197,72,30,0.30);

  --font-display: 'Fraunces', Georgia, serif;
  --font-body:    'Manrope', system-ui, sans-serif;
  --font-arabic:  'Aref Ruqaa', serif;

  --header-h: 68px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  color: var(--brown);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* Arabic accent (whitelisted string only) */
[lang="ar"], .ar {
  font-family: var(--font-arabic);
  direction: rtl;
  font-weight: 400;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--brown); letter-spacing: -0.02em; }
h1 { font-size: clamp(36px, 6vw, 66px); font-weight: 800; line-height: 1.04; }
h2 { font-size: clamp(26px, 4vw, 40px); font-weight: 700; line-height: 1.14; }
h3 { font-size: clamp(19px, 2.4vw, 24px); font-weight: 600; line-height: 1.25; }
h4 { font-size: clamp(17px, 2vw, 20px); font-weight: 600; line-height: 1.3; }
p  { color: var(--muted); }
em, .em { font-style: italic; color: var(--terra); }      /* signature emphasis */
strong { color: var(--brown); font-weight: 700; }

.lead { font-size: clamp(18px, 2.2vw, 22px); line-height: 1.6; color: var(--brown-2); }

/* Kicker  ---  LABEL  --- */
.kicker {
  font-family: var(--font-body);
  font-size: 12px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.42em;
  color: var(--terra);
  display: inline-flex; align-items: center; gap: 12px;
  margin-bottom: 18px;
}
.kicker::before, .kicker::after {
  content: ""; width: 26px; height: 1px; background: currentColor; opacity: 0.5;
}
.kicker--solo::after { display: none; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.container--wide { max-width: var(--max-wide); }
.section { padding: 92px 0; position: relative; }
.section--tight { padding: 64px 0; }
.section--cream2 { background: var(--cream-2); }
.section--surface { background: var(--surface); }
.section--sand { background: linear-gradient(180deg, var(--cream-2), var(--sand)); }
.section--dark { background: var(--brown-3); }
.section--dark h1, .section--dark h2, .section--dark h3, .section--dark h4 { color: var(--cream); }
.section--dark p { color: rgba(241,228,204,0.74); }
.center { text-align: center; }
.measure { max-width: 640px; }
.center .measure { margin-left: auto; margin-right: auto; }

/* Warm radial atmosphere */
.section--atmos::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(600px 380px at 80% -10%, rgba(232,130,30,0.07), transparent 70%),
    radial-gradient(560px 360px at 0% 110%, rgba(61,40,23,0.05), transparent 70%);
}
.section--atmos > .container { position: relative; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--font-body); font-weight: 700; font-size: 16px;
  padding: 15px 30px; border-radius: var(--radius-pill);
  border: 1.5px solid transparent; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  text-align: center; line-height: 1;
}
.btn--primary { background: var(--terra); color: var(--cream); box-shadow: var(--shadow-cta); }
.btn--primary:hover { background: var(--orange-dk); transform: translateY(-2px); }
.btn--ghost { background: transparent; color: var(--brown); border-color: var(--border); }
.btn--ghost:hover { border-color: var(--terra); color: var(--terra); }
.btn--on-dark { background: var(--terra); color: var(--cream); }
.btn--on-dark:hover { background: var(--orange); }
.btn--lg { padding: 18px 38px; font-size: 17px; }
.btn--block { display: flex; width: 100%; }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(241,228,204,0.86);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav {
  max-width: var(--max-wide); margin: 0 auto; padding: 0 24px;
  height: var(--header-h); display: flex; align-items: center; justify-content: space-between;
}
.nav__brand { font-family: var(--font-display); font-weight: 800; font-size: 19px; color: var(--brown); letter-spacing: -0.01em; }
.nav__brand .ar { font-size: 16px; color: var(--terra); margin-left: 8px; }
.nav__links { display: flex; align-items: center; gap: 30px; }
.nav__links a { font-size: 15px; font-weight: 600; color: var(--brown-2); transition: color .15s ease; }
.nav__links a:hover, .nav__links a.is-active { color: var(--terra); }
.nav__cta { margin-left: 6px; padding: 11px 22px; font-size: 15px; }
.nav__toggle { display: none; background: none; border: 0; cursor: pointer; width: 40px; height: 40px; position: relative; }
.nav__toggle span { position: absolute; left: 9px; right: 9px; height: 2px; background: var(--brown); transition: transform .2s ease, opacity .2s ease; }
.nav__toggle span:nth-child(1) { top: 14px; }
.nav__toggle span:nth-child(2) { top: 20px; }
.nav__toggle span:nth-child(3) { top: 26px; }
.nav.is-open .nav__toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav.is-open .nav__toggle span:nth-child(2) { opacity: 0; }
.nav.is-open .nav__toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 860px) {
  .nav__toggle { display: block; }
  .nav__links {
    position: absolute; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--cream); border-bottom: 1px solid var(--border);
    padding: 8px 24px 22px; transform: translateY(-8px); opacity: 0; pointer-events: none; transition: opacity .18s ease, transform .18s ease;
  }
  .nav.is-open .nav__links { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav__links a { padding: 13px 0; border-bottom: 1px solid var(--border); font-size: 16px; }
  .nav__cta { margin: 16px 0 0; padding: 14px; }
}

/* ---------- Page hero (inner pages, typographic, no place imagery) ---------- */
.page-hero { padding: clamp(70px, 11vw, 132px) 0 clamp(52px, 7vw, 88px); position: relative; overflow: hidden; }
.page-hero .watermark {
  position: absolute; right: -2%; top: 8%; font-family: var(--font-arabic);
  font-size: clamp(120px, 28vw, 360px); color: var(--terra); opacity: 0.05; pointer-events: none; user-select: none; line-height: 1;
}
.page-hero h1 .em { display: inline; }

/* Photo hero variant (matches the landing page hero image) */
.page-hero--photo {
  min-height: 84vh;
  display: flex;
  align-items: center;
  padding: clamp(96px, 14vh, 168px) 0 clamp(64px, 9vh, 110px);
  background-image:
    linear-gradient(to bottom, rgba(42,26,14,0.58) 0%, rgba(42,26,14,0.46) 45%, rgba(42,26,14,0.78) 100%),
    url('/assets/proof/hero.jpg');
  background-size: cover;
  background-position: center 32%;
  background-repeat: no-repeat;
}
.page-hero--photo h1 { color: var(--cream); }
.page-hero--photo h1 .em { color: var(--sun); }
.page-hero--photo .lead, .page-hero--photo p { color: rgba(241,228,204,0.92); }
.page-hero--photo .kicker { color: var(--sun); }
.page-hero--photo .watermark { color: var(--cream); opacity: 0.06; }
.page-hero--photo .btn--ghost { border-color: rgba(241,228,204,0.55); color: var(--cream); }
.page-hero--photo .btn--ghost:hover { border-color: var(--cream); color: var(--cream); background: rgba(241,228,204,0.10); }

/* ---------- Cards ---------- */
.grid { display: grid; gap: 22px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 30px; position: relative; box-shadow: var(--shadow);
}
.card__num { font-family: var(--font-display); font-weight: 700; font-size: 15px; color: var(--terra); opacity: 0.9; position: absolute; top: 22px; right: 26px; }
.card h3 { margin-bottom: 10px; }
.card p { font-size: 16px; }
.card__icon { width: 46px; height: 46px; display: flex; align-items: center; justify-content: center; border-radius: var(--radius); background: rgba(197,72,30,0.10); color: var(--terra); margin-bottom: 16px; }
.card__icon svg { width: 24px; height: 24px; }

/* Pain/desire two-column list */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.split > div { padding: 30px; }
.split__a { background: var(--cream-2); }
.split__b { background: var(--surface); }
.split h4 { margin-bottom: 14px; }
.split ul li { padding: 8px 0 8px 26px; position: relative; color: var(--muted); font-size: 16px; }
.split ul li::before { content: ""; position: absolute; left: 0; top: 15px; width: 8px; height: 8px; border-radius: 50%; background: var(--terra); opacity: 0.6; }

/* Pills */
.pills { display: flex; flex-wrap: wrap; gap: 10px; }
.pill { background: var(--surface); border: 1px solid var(--border); color: var(--brown-2); border-radius: var(--radius-pill); padding: 8px 16px; font-size: 14px; font-weight: 600; }

/* ---------- CTA band ---------- */
.cta-band { text-align: center; }
.cta-band h2 { color: var(--cream); max-width: 720px; margin: 0 auto 14px; }
.cta-band p { margin: 0 auto 30px; max-width: 560px; }
.cta-band .note { font-size: 14px; color: rgba(241,228,204,0.6); margin-top: 18px; }

/* ---------- Operator block ---------- */
.operator { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 44px; align-items: center; }
.operator__photo { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border-dk); box-shadow: var(--shadow); }
.operator__photo img { width: 100%; }

/* Editorial stat callout (used in place of a photo while imagery is embargoed) */
.stat-callout { margin: 34px auto; text-align: center; }
.stat-callout__num { display: block; font-family: var(--font-display); font-weight: 800; font-size: clamp(58px, 12vw, 108px); line-height: 1; color: var(--terra); letter-spacing: -0.02em; }
.stat-callout__label { display: block; margin: 10px auto 0; max-width: 320px; font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--sand); font-weight: 700; }
.section--dark .stat-callout__label { color: var(--sand); }

/* ---------- Prose (articles) ---------- */
.prose { max-width: var(--max); }
.prose > * + * { margin-top: 22px; }
.prose h2 { margin-top: 44px; }
.prose h3 { margin-top: 30px; }
.prose p, .prose li { font-size: 18px; color: var(--brown-2); line-height: 1.75; }
.prose ul, .prose ol { padding-left: 22px; }
.prose ul li, .prose ol li { margin-top: 10px; }
.prose ul li { list-style: none; position: relative; padding-left: 22px; }
.prose ul li::before { content: ""; position: absolute; left: 0; top: 13px; width: 7px; height: 7px; border-radius: 50%; background: var(--terra); }
.prose ol { list-style: decimal; }
.prose blockquote { border-left: 3px solid var(--terra); padding: 4px 0 4px 22px; font-family: var(--font-display); font-style: italic; font-size: 21px; color: var(--brown); }
.prose a { color: var(--terra); text-decoration: underline; text-underline-offset: 3px; }

/* Article meta + cards */
.article-meta { display: flex; gap: 14px; align-items: center; font-size: 14px; color: var(--muted); font-weight: 600; }
.article-meta .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--sand); }
.post-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px; transition: transform .15s ease, box-shadow .15s ease; height: 100%; }
.post-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.post-card .tag { font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--terra); }
.post-card h3 { margin: 12px 0 10px; }
.post-card p { font-size: 16px; flex: 1; }
.post-card .read { margin-top: 18px; font-weight: 700; color: var(--terra); font-size: 15px; }

/* ---------- FAQ ---------- */
.faq details { border-bottom: 1px solid var(--border); padding: 4px 0; }
.faq summary { list-style: none; cursor: pointer; padding: 20px 40px 20px 0; font-family: var(--font-display); font-weight: 600; font-size: clamp(17px, 2vw, 21px); color: var(--brown); position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 18px; font-size: 26px; color: var(--terra); transition: transform .2s ease; font-family: var(--font-body); font-weight: 400; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > div { padding: 0 40px 22px 0; color: var(--muted); font-size: 17px; }

/* ---------- Social proof widget (DATA-DRIVEN - never fabricated) ---------- */
/* Inline "founding wall" strip */
.sp-wall { border: 1px dashed var(--border); border-radius: var(--radius-lg); background: var(--surface); padding: 22px 24px; }
.sp-wall__head { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; }
.sp-wall__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--terra); position: relative; }
.sp-wall__dot::after { content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 2px solid var(--terra); opacity: 0.35; animation: sp-pulse 2.2s infinite; }
@keyframes sp-pulse { 0% { transform: scale(0.7); opacity: 0.5; } 100% { transform: scale(1.6); opacity: 0; } }
.sp-wall__label { font-size: 13px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--terra); }
.sp-wall__list { display: flex; flex-direction: column; gap: 2px; }
.sp-wall__item { font-size: 15px; color: var(--brown-2); padding: 7px 0; border-bottom: 1px solid var(--border); }
.sp-wall__item:last-child { border-bottom: 0; }
.sp-wall__item b { color: var(--brown); font-weight: 700; }
.sp-wall__item .when { color: var(--muted); font-size: 13px; }
.sp-wall__empty { font-size: 16px; color: var(--brown-2); }
.sp-wall__empty b { color: var(--terra); }

/* Floating toast (bottom-left), opt-in via [data-sp-toast] */
.sp-toast {
  position: fixed; left: 18px; bottom: 18px; z-index: 70; max-width: 320px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow); padding: 14px 16px; display: flex; gap: 12px; align-items: center;
  transform: translateY(140%); opacity: 0; transition: transform .35s cubic-bezier(.2,.7,.3,1), opacity .35s ease;
}
.sp-toast.is-shown { transform: translateY(0); opacity: 1; }
.sp-toast__avatar { width: 38px; height: 38px; border-radius: 50%; background: rgba(197,72,30,0.12); color: var(--terra); display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 700; flex: none; }
.sp-toast__txt { font-size: 14px; color: var(--brown-2); line-height: 1.4; }
.sp-toast__txt b { color: var(--brown); }
.sp-toast__txt .when { color: var(--muted); font-size: 12px; }
@media (max-width: 520px) { .sp-toast { left: 10px; right: 10px; bottom: 10px; max-width: none; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--brown-3); color: rgba(241,228,204,0.7); padding: 64px 0 34px; }
.site-footer .container { max-width: var(--max-wide); }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid var(--border-dk); }
.footer-brand .mark { font-family: var(--font-display); font-weight: 800; font-size: 22px; color: var(--cream); }
.footer-brand .ar { color: var(--sun); font-size: 19px; margin-left: 8px; }
.footer-brand p { color: rgba(241,228,204,0.6); font-size: 15px; margin-top: 14px; max-width: 320px; }
.footer-col h4 { color: var(--cream); font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase; margin-bottom: 16px; font-family: var(--font-body); font-weight: 700; }
.footer-col a { display: block; color: rgba(241,228,204,0.66); font-size: 15px; padding: 6px 0; transition: color .15s ease; }
.footer-col a:hover { color: var(--terra); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px; padding-top: 24px; font-size: 13px; color: rgba(241,228,204,0.5); }
.footer-bottom .stealth { max-width: 560px; }

/* ---------- Utility ---------- */
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 12px; }
.mt-2 { margin-top: 24px; }
.mt-3 { margin-top: 36px; }
.mt-4 { margin-top: 48px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; }
.center .cta-row { justify-content: center; }

/* Reveal on scroll */
/* Additive reveal: content is fully visible by default (no-JS / crawler safe).
   The entrance animation only plays when site.js adds .is-in on scroll. */
.reveal.is-in { animation: rk-rise .6s ease both; }
@keyframes rk-rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .reveal.is-in { animation: none; } .sp-wall__dot::after { animation: none; } }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .grid--3, .grid--4 { grid-template-columns: 1fr 1fr; }
  .operator { grid-template-columns: 1fr; gap: 28px; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .section { padding: 64px 0; }
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: 28px; }
}
