:root {
  --cream: #fdf6ec;
  --cream-2: #fbe3b5;
  --mustard: #e8a020;
  --terracotta: #c85a2b;
  --sage: #8aa37b;
  --brown: #3d2b1f;
  --muted: #8b7355;
  --radius: 18px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--brown);
  font-family: "Nunito", "Cairo", system-ui, -apple-system, "Segoe UI", sans-serif;
  line-height: 1.65;
  font-size: 18px;
}

html[lang="ar"] body { font-family: "Cairo", "Nunito", system-ui, sans-serif; }

img, svg { max-width: 100%; }

a { color: var(--terracotta); }

.wrap { width: min(1080px, 100% - 40px); margin-inline: auto; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(253, 246, 236, 0.94);
  backdrop-filter: blur(6px);
  border-bottom: 3px solid var(--mustard);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 12px 0;
}
.brand {
  font-weight: 800; font-size: 20px; color: var(--brown); text-decoration: none;
  display: flex; align-items: center; gap: 10px;
}
.brand .dot {
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--mustard); display: inline-grid; place-items: center;
  color: var(--cream); font-size: 16px; font-weight: 800;
}
nav { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
nav a { color: var(--brown); text-decoration: none; font-weight: 700; font-size: 16px; }
nav a:hover { color: var(--terracotta); }
.lang {
  border: 2px solid var(--terracotta); color: var(--terracotta);
  padding: 4px 14px; border-radius: 999px; font-weight: 800;
}
.lang:hover { background: var(--terracotta); color: var(--cream); }

/* Hero */
.hero { padding: 56px 0 40px; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center; }
.eyebrow {
  display: inline-block; background: var(--cream-2); color: var(--terracotta);
  font-weight: 800; font-size: 14px; letter-spacing: 0.06em;
  text-transform: uppercase; padding: 6px 14px; border-radius: 999px; margin-bottom: 16px;
}
html[lang="ar"] .eyebrow { letter-spacing: 0; text-transform: none; font-size: 15px; }
h1 { font-size: clamp(34px, 5.2vw, 56px); line-height: 1.12; margin: 0 0 16px; }
.lead { font-size: 21px; margin: 0 0 26px; color: var(--brown); max-width: 34em; }
.cta { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.btn {
  display: inline-block; padding: 14px 26px; border-radius: 999px;
  font-weight: 800; font-size: 17px; text-decoration: none; border: 3px solid var(--terracotta);
}
.btn-primary { background: var(--terracotta); color: var(--cream); }
.btn-primary:hover { background: #a94a22; border-color: #a94a22; }
.btn-ghost { color: var(--terracotta); background: transparent; }
.btn-ghost:hover { background: var(--cream-2); }
.btn[aria-disabled="true"] { opacity: 0.75; cursor: default; }
.note { color: var(--muted); font-size: 15px; margin-top: 14px; }

/* CSS book (swap for the real cover image later) */
.book {
  margin-inline: auto; width: min(340px, 82%); aspect-ratio: 6 / 9;
  background: var(--cream); border-radius: 8px 14px 14px 8px;
  box-shadow: 14px 16px 0 var(--mustard), 0 24px 50px rgba(61, 43, 31, 0.25);
  border: 3px solid var(--brown); overflow: hidden;
  display: flex; flex-direction: column; transform: rotate(-2.5deg);
}
.book .art {
  flex: 0 0 56%; background: linear-gradient(180deg, #fff 0%, #fff7e0 100%);
  position: relative; border-bottom: 6px solid var(--mustard);
  display: grid; place-items: center;
}
.book .stand {
  width: 70%; background: var(--mustard); border: 3px solid var(--brown);
  border-radius: 6px; padding: 14px 8px; text-align: center; color: var(--brown);
  font-weight: 800; line-height: 1.1; font-size: 26px;
}
.book .stand small { display: block; font-size: 15px; color: var(--cream); margin-top: 4px; }
.book .title { padding: 14px 16px 6px; text-align: center; font-weight: 800; font-size: 22px; line-height: 1.15; }
.book .sub { text-align: center; font-style: italic; font-size: 13px; color: var(--muted); }
.book .series { margin-top: auto; padding: 8px 12px 14px; text-align: center; font-weight: 800; color: var(--terracotta); font-size: 13px; letter-spacing: 0.04em; }

/* Sections */
section { padding: 56px 0; }
h2 { font-size: clamp(28px, 3.6vw, 38px); margin: 0 0 8px; line-height: 1.2; }
.section-sub { color: var(--muted); margin: 0 0 30px; font-size: 19px; }
.alt { background: #fff; border-block: 3px solid var(--cream-2); }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; }
.card {
  background: var(--cream); border: 3px solid var(--cream-2);
  border-radius: var(--radius); padding: 22px;
}
.alt .card { background: var(--cream); }
.card .icon {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  font-size: 26px; background: var(--mustard); margin-bottom: 12px;
}
.card:nth-child(2) .icon { background: var(--terracotta); }
.card:nth-child(3) .icon { background: var(--sage); }
.card:nth-child(4) .icon { background: #d9b26f; }
.card h3 { margin: 0 0 6px; font-size: 20px; }
.card p { margin: 0; font-size: 17px; }

.lessons { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.lessons li {
  background: #fff; border: 3px solid var(--cream-2); border-radius: var(--radius);
  padding: 18px 20px; font-weight: 700;
}
.lessons span { display: block; color: var(--terracotta); font-size: 14px; font-weight: 800; letter-spacing: 0.05em; margin-bottom: 4px; }
html[lang="ar"] .lessons span { letter-spacing: 0; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; align-items: start; }
.panel { background: var(--cream-2); border-radius: var(--radius); padding: 26px; }
.panel h3 { margin-top: 0; }
.checks { padding-inline-start: 22px; margin: 0; }
.checks li { margin-bottom: 8px; }

/* Footer */
footer { background: var(--brown); color: var(--cream); padding: 36px 0; font-size: 16px; }
footer a { color: var(--cream-2); }
footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

@media (max-width: 800px) {
  body { font-size: 17px; }
  .hero { padding-top: 34px; }
  .hero .wrap, .split { grid-template-columns: 1fr; }
  .hero .book-col { order: -1; }
  .book { transform: none; width: min(260px, 70%); }
  nav { gap: 12px; }
  nav a.hide-sm { display: none; }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
