/* ==========================================================================
   107 · NORTH (بوصلة الفصل الثاني — North Chapter) — 1:1 Paper-Cut Compass & Post-Exit Design
   Cream #FFEDD8 · Apricot #FFB38A · Coral #F27059 · Plum #6D597A · Twilight Blue #355070 · Ink #2A2238
   ========================================================================== */

:root {
  --cream: #FFEDD8;
  --apricot: #FFB38A;
  --coral: #F27059;
  --plum: #6D597A;
  --blue: #355070;
  --card: #FFF7EE;
  --ink: #2A2238;
  --hair: rgba(42, 34, 56, 0.14);
  --serif: 'Amiri', Georgia, serif;
  --sans: 'IBM Plex Sans Arabic', 'Readex Pro', system-ui, sans-serif;
  --mono: 'JetBrains Mono', monospace;
}

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

html {
  scroll-behavior: smooth;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  letter-spacing: 0;
}

body {
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  letter-spacing: 0;
}

a { color: inherit; text-decoration: none; }
button, input { font-family: inherit; letter-spacing: 0; }
.bidi { unicode-bidi: isolate; font-family: var(--mono); }

.nr-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 26px;
  border-radius: 999px;
  background: var(--coral);
  color: #FFFFFF;
  font-weight: 700;
  font-size: 14px;
  border: 1px solid var(--coral);
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.18s ease;
}

.nr-pill:hover { transform: translateY(-2px); }

.nr-pill-ghost {
  background: rgba(255, 247, 238, 0.72);
  color: var(--ink);
  border-color: var(--hair);
}

.nr-arch {
  border-radius: 999px 999px 24px 24px;
  overflow: hidden;
}

/* ======================== FIXED 72px HEADER ======================== */
.nr-header {
  position: fixed;
  top: 0;
  inset-inline: 0;
  height: 70px;
  z-index: 75;
  padding: 0 clamp(20px, 3.5vw, 48px);
  background: rgba(255, 237, 216, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--hair);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.nr-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--serif);
  font-size: 23px;
  font-weight: 700;
  white-space: nowrap;
}

.nr-links {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 14.5px;
  font-weight: 600;
  white-space: nowrap;
}

.nr-links a:hover { color: var(--coral); }

/* ======================== 1. HERO (CIRCULAR PAPER-CUT COMPASS PORTHOLE) ======================== */
.nr-hero {
  background: radial-gradient(circle at 30% 45%, #FFD9BD 0%, var(--cream) 72%);
  min-height: 100dvh;
  padding: 96px clamp(20px, 3.5vw, 48px) 36px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.nr-hero-grid {
  max-width: 1240px;
  width: 100%;
  margin: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  align-items: center;
}

.nr-h1 {
  font-family: var(--serif);
  font-size: clamp(2.6rem, 5vw, 4.4rem);
  font-weight: 700;
  line-height: 1.32;
  margin: 16px 0;
}

.nr-h1 em, .nr-h2 em {
  font-style: italic;
  color: var(--coral);
}

/* Interactive Circular Compass Bezel */
.nr-compass-wrap {
  position: relative;
  width: min(450px, 86vw);
  aspect-ratio: 1;
  margin: 0 auto;
  border-radius: 50%;
  padding: 20px;
  border: 1.5px solid rgba(42, 34, 56, 0.22);
  background: rgba(255, 247, 238, 0.55);
}

.nr-bearing-pill {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  background: var(--ink);
  color: var(--cream);
  padding: 4px 14px;
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 700;
}

.nr-porthole {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: hidden;
  position: relative;
  border: 3px solid var(--card);
  box-shadow: 0 24px 54px rgba(53, 80, 112, 0.25);
}

.nr-porthole img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.nr-needle-ring {
  position: absolute;
  inset: 6px;
  border-radius: 50%;
  border: 1px dashed rgba(242, 112, 89, 0.55);
  pointer-events: none;
  transition: transform 0.2s ease-out;
}

.nr-hero-hud {
  max-width: 1240px;
  width: 100%;
  margin: 24px auto 0;
  padding-top: 16px;
  border-top: 1px solid var(--hair);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  font-size: 13.5px;
}

/* ======================== SECTIONS ======================== */
.nr-sec {
  padding: 88px clamp(20px, 3.5vw, 48px);
}

.nr-container { max-width: 1200px; margin: 0 auto; }

.nr-h2 {
  font-family: var(--serif);
  font-size: clamp(2.1rem, 3.9vw, 3.3rem);
  line-height: 1.3;
}

/* 2. Programmes 3-Col Staggered Arched Cards + Payment Toggle */
.nr-prog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 42px;
}

.nr-prog-card {
  background: var(--card);
  border: 1px solid var(--hair);
  border-radius: 28px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.nr-prog-card.elevated {
  transform: translateY(-16px);
  border-color: var(--coral);
  box-shadow: 0 20px 44px rgba(242, 112, 89, 0.14);
}

.nr-prog-art {
  aspect-ratio: 4 / 4.2;
}

.nr-prog-art img { width: 100%; height: 100%; object-fit: cover; }

/* 3. Founder Transition Before -> After Carousel */
.nr-story-card {
  margin-top: 32px;
  background: var(--card);
  border: 1px solid var(--hair);
  border-radius: 28px;
  padding: 36px;
}

.nr-ba-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 20px;
  align-items: center;
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid var(--hair);
}

/* Dusk Gradient Footer */
.nr-footer {
  background: linear-gradient(180deg, var(--plum) 0%, var(--blue) 100%);
  color: var(--cream);
  padding: 72px clamp(20px, 3.5vw, 48px) 36px;
}

.nr-showcase-nav {
  max-width: 1200px;
  margin: 32px auto 0;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 237, 216, 0.2);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

@media (max-width: 720px) {
  .nr-links { display: none; }
  .nr-hero-grid,
  .nr-hero-hud,
  .nr-prog-grid,
  .nr-ba-grid {
    grid-template-columns: 1fr;
  }
  .nr-prog-card.elevated { transform: none; }
}
