:root {
  --dark: #3d3a2f;
  --dark-2: #34311f;
  --sage: #8fa07e;
  --sage-light: #a9b78f;
  --sage-pale: #dfe6d3;
  --cream: #ede8da;
  --cream-2: #f6f3ea;
  --white: #ffffff;
  --ink: #2a2820;
  --ink-soft: #55523f;
  --radius: 14px;
  --max: 1180px;
  --font-head: "Poppins", "Segoe UI", sans-serif;
  --font-body: "Inter", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; }
body { overflow-x: clip; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  background: var(--dark);
  color: var(--cream-2);
  padding: 12px 18px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  z-index: 1000;
  transition: top 0.15s ease;
}
.skip-link:focus { top: 12px; }
a:focus-visible, button:focus-visible, .price-card:focus-within {
  outline: 2px solid var(--sage);
  outline-offset: 3px;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 0.6em;
  letter-spacing: -0.01em;
}
p { margin: 0 0 1em; }
.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}
.eyebrow {
  font-family: var(--font-head);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 0.9em;
  display: inline-block;
}
section.dark .eyebrow,
section.dark2 .eyebrow { color: var(--sage-light); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-head);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 15px 30px;
  border-radius: 999px;
  border: 1.5px solid currentColor;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.btn-outline-dark { color: var(--ink); }
.btn-outline-dark:hover { background: var(--ink); color: var(--cream-2); }
.btn-outline-light { color: var(--cream-2); }
.btn-outline-light:hover { background: var(--cream-2); color: var(--dark); }
.btn-solid {
  background: var(--dark);
  color: var(--cream-2);
  border-color: var(--dark);
}
.btn-solid:hover { background: var(--dark-2); }
.btn-block { width: 100%; justify-content: center; white-space: normal; text-align: center; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid #ece7d8;
  transition: box-shadow 0.25s ease;
}
.site-header.is-scrolled { box-shadow: 0 6px 24px rgba(30,28,20,0.08); }
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 78px;
  padding-top: 10px;
  padding-bottom: 10px;
  flex-wrap: wrap;
  row-gap: 8px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand svg, .brand-logo { width: 34px; height: auto; flex-shrink: 0; }
.brand-text {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  color: var(--ink);
}
.brand-tagline {
  font-size: 0.72rem;
  color: var(--ink-soft);
  letter-spacing: 0.02em;
  display: block;
  margin-top: 1px;
}
.brand-block { display: flex; flex-direction: column; }

nav.main-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px 18px;
}
nav.main-nav a {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--ink-soft);
  white-space: nowrap;
  transition: color 0.15s ease;
}
nav.main-nav a:hover { color: var(--sage); }
nav.main-nav a.active { color: var(--sage); font-weight: 700; }
.nav-cta { display: none; }

/* Language switcher */
.lang-switch { position: relative; }
.lang-toggle {
  display: flex;
  align-items: center;
  gap: 5px;
  background: none;
  border: 1.5px solid #ddd6c2;
  border-radius: 999px;
  padding: 6px 10px;
  font-family: var(--font-body);
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--ink-soft);
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.lang-toggle:hover { border-color: var(--sage); color: var(--ink); }
.lang-toggle svg { width: 15px; height: 15px; flex-shrink: 0; }
.lang-current-label { letter-spacing: 0.04em; }
.lang-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--white);
  border: 1px solid #e4dfcd;
  border-radius: 12px;
  box-shadow: 0 16px 36px rgba(30,28,20,0.16);
  padding: 6px;
  min-width: 190px;
  max-height: 320px;
  overflow-y: auto;
  display: none;
  z-index: 200;
}
.lang-menu.open { display: block; }
.lang-menu button {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 9px 12px;
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 0.86rem;
  color: var(--ink);
  cursor: pointer;
}
.lang-menu button:hover { background: var(--cream); }
.lang-menu button.active { background: var(--sage-pale); color: var(--dark-2); font-weight: 600; }
[dir="rtl"] .lang-menu { right: auto; left: 0; }
[dir="rtl"] .lang-menu button { text-align: right; }

/* RTL (Arabic) adjustments */
[dir="rtl"] body { font-family: "Noto Sans Arabic", var(--font-body); }
[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3, [dir="rtl"] .brand-text { font-family: "Noto Sans Arabic", var(--font-head); }
[dir="rtl"] .check-list li { padding-left: 0; padding-right: 30px; }
[dir="rtl"] .check-list li::before { left: auto; right: 0; }
[dir="rtl"] .price-card .quote { border-left: none; border-right: 3px solid var(--sage); padding-left: 0; padding-right: 12px; }
[dir="rtl"] .badge-popular { right: auto; left: 24px; }
[dir="rtl"] .skip-link { left: auto; right: 12px; }
[dir="rtl"] .back-to-top { right: auto; left: 22px; }
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--ink);
  margin: 5px 0;
  transition: 0.2s;
}

/* Sections */
section { padding: 96px 0; }
section.tight { padding: 72px 0; }
section.dark { background: var(--dark); color: var(--cream-2); }
section.dark2 { background: var(--dark-2); color: var(--cream-2); }
section.sage { background: var(--sage); color: var(--dark-2); }
section.cream { background: var(--cream); color: var(--ink); }
section.white { background: var(--white); color: var(--ink); }
section.dark h2, section.dark2 h2 { color: var(--white); }
section.dark .lede, section.dark2 .lede { color: #d8d4c2; }

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.split.reverse .visual-col { order: 2; }

/* Hero */
.hero {
  position: relative;
  background:
    linear-gradient(115deg, rgba(30,29,21,0.94) 0%, rgba(35,33,24,0.88) 45%, rgba(61,58,47,0.72) 100%),
    url("assets/images/hero-bg.jpg") center 30% / cover no-repeat;
  color: var(--cream-2);
  padding: 130px 0 110px;
  text-align: left;
}
.hero h1 {
  font-size: clamp(2.1rem, 4.6vw, 3.6rem);
  max-width: 900px;
}
.hero h1 .accent { color: var(--sage-light); }
.hero .lede {
  font-size: 1.1rem;
  max-width: 640px;
  color: #d8d4c2;
}
.hero .lede strong { color: var(--white); }
.hero-actions { margin-top: 1.6em; }

/* Photo panels */
.visual {
  border-radius: var(--radius);
  aspect-ratio: 4 / 3;
  position: relative;
  overflow: hidden;
  background: var(--cream);
  box-shadow: 0 18px 40px rgba(30,28,20,0.14);
}
.visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}
.visual:hover img { transform: scale(1.05); }
.visual-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.visual-row .visual { aspect-ratio: 3 / 4; }

/* Bulleted feature lists */
.check-list li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 0.7em;
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.55;
}
.panel {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius);
  padding: 32px;
}
section.sage .panel {
  background: rgba(255,255,255,0.55);
  border-color: rgba(255,255,255,0.4);
}
section.cream .panel, section.white .panel {
  background: var(--cream-2);
  border: 1px solid #e4dfcd;
}

/* Two column feature section */
.feature-cols { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: start; }

/* CTA banner */
.cta-banner { text-align: left; }
.cta-banner h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); max-width: 640px; }
.contact-line { color: var(--sage-light); font-weight: 600; margin-top: -0.4em; }

/* Pricing */
.pricing-head { text-align: center; max-width: 640px; margin: 0 auto 56px; }
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  align-items: stretch;
}
.price-card {
  background: var(--cream-2);
  border-radius: var(--radius);
  padding: 34px 28px;
  display: flex;
  flex-direction: column;
  position: relative;
  border: 1px solid rgba(0,0,0,0.06);
  min-width: 0;
}
.price-card.popular {
  background: var(--white);
  box-shadow: 0 18px 40px rgba(0,0,0,0.18);
  transform: translateY(-10px);
}
.badge-popular {
  position: absolute;
  top: -13px;
  right: 24px;
  background: var(--dark);
  color: var(--cream-2);
  font-family: var(--font-head);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 999px;
}
.price-level {
  font-family: var(--font-head);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sage);
}
.price-card h3 { font-size: 1.3rem; margin-bottom: 0.3em; }
.price-card .desc { font-size: 0.92rem; color: var(--ink-soft); }
.price-card .who {
  font-size: 0.82rem;
  color: var(--ink-soft);
  background: var(--cream);
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 1em;
}
.price-card .who strong { display: block; color: var(--ink); font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 4px; }
.price-card ul.check-list { font-size: 0.86rem; margin-bottom: 1.2em; flex-grow: 1; }
.price-card .quote {
  font-style: italic;
  font-size: 0.85rem;
  color: var(--ink);
  border-left: 3px solid var(--sage);
  padding-left: 12px;
  margin-bottom: 1.4em;
}
.price-card .fee {
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  text-align: center;
  margin-bottom: 0.6em;
}
.pricing-note {
  text-align: center;
  max-width: 640px;
  margin: 50px auto 0;
  font-size: 0.9rem;
  color: var(--dark-2);
}

/* Lead magnet */
.lead-magnet .split { align-items: center; }
.lead-magnet .check-list { margin-bottom: 1.4em; }
.lead-magnet .get-link {
  font-family: var(--font-head);
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--sage-light);
  font-size: 1rem;
}

/* Footer */
footer.site-footer { background: var(--cream); padding: 56px 0 0; }
.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 48px;
  flex-wrap: wrap;
  gap: 20px;
}
.footer-bottom {
  background: var(--dark-2);
  color: var(--cream-2);
  padding: 56px 0 34px;
}
.footer-bottom h2 { font-size: clamp(2rem, 4vw, 2.8rem); color: var(--white); }
.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 30px;
  font-size: 0.92rem;
  color: #d8d4c2;
}
.footer-grid a:hover { color: var(--sage-light); }
.footer-fine {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.12);
  font-size: 0.78rem;
  color: #a29d84;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

/* Scroll reveal (opt-in only once JS confirms it can animate the reveal back in) */
.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.js .reveal.in-view { opacity: 1; transform: translateY(0); }

/* Back to top */
.back-to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--dark);
  color: var(--cream-2);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(0,0,0,0.22);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all 0.25s ease;
  z-index: 90;
}
.back-to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--dark-2); }
.back-to-top svg { width: 18px; height: 18px; }

/* Welcome Book section */
.wb-head { max-width: 720px; margin: 0 auto 50px; text-align: center; }
.wb-layout { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 48px; align-items: center; margin-bottom: 50px; }
.wb-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.wb-card {
  background: var(--cream-2);
  border: 1px solid #e4dfcd;
  border-radius: var(--radius);
  padding: 26px 22px;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  min-width: 0;
}
.wb-card:hover { transform: translateY(-4px); box-shadow: 0 16px 32px rgba(30,28,20,0.12); }
.wb-card.popular { border-color: var(--sage); box-shadow: 0 16px 32px rgba(30,28,20,0.12); }
.wb-tag {
  align-self: flex-start;
  font-family: var(--font-head);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--sage-pale);
  color: var(--dark-2);
  margin-bottom: 12px;
}
.wb-card.popular .wb-tag { background: var(--dark); color: var(--cream-2); }
.wb-card h3 { font-size: 1.15rem; margin-bottom: 2px; }
.wb-price { font-family: var(--font-head); font-size: 1.6rem; font-weight: 700; color: var(--dark-2); margin-bottom: 10px; }
.wb-price span { font-size: 0.72rem; font-weight: 500; color: var(--ink-soft); text-transform: uppercase; letter-spacing: 0.04em; }
.wb-card p.wb-desc { font-size: 0.88rem; color: var(--ink-soft); flex-grow: 1; }
.wb-lang-note { font-size: 0.72rem; color: var(--sage); font-weight: 600; margin: 0 0 20px; }
.wb-card .btn { margin-top: auto; }
.wb-note { text-align: center; max-width: 640px; margin: 40px auto 0; font-size: 0.88rem; color: var(--ink-soft); }

/* Responsive */
@media (max-width: 900px) {
  .split, .feature-cols { grid-template-columns: 1fr; gap: 32px; }
  .split.reverse .visual-col { order: 0; }
  .pricing-grid { grid-template-columns: 1fr; }
  .price-card.popular { transform: none; }
  .visual-row { grid-template-columns: 1fr; }
  .wb-layout { grid-template-columns: 1fr; }
  .wb-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  nav.main-nav {
    position: fixed;
    inset: 78px 0 0 0;
    background: var(--cream-2);
    flex-direction: column;
    flex-wrap: nowrap;
    justify-content: flex-start;
    padding: 30px 24px;
    gap: 22px;
    align-items: flex-start;
    transform: translateX(100%);
    transition: transform 0.25s ease;
    height: calc(100vh - 78px);
    overflow-y: auto;
  }
  nav.main-nav.open { transform: translateX(0); }
  nav.main-nav a { font-size: 1rem; }
  .nav-cta.mobile { display: inline-flex; margin-top: 10px; }
  .nav-toggle { display: block; }
  section { padding: 64px 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-fine { flex-direction: column; }
}
