/* ============================================================
   Chef Anas — chefanas.com
   Warm, light, appetizing. Zero JavaScript required.
   ============================================================ */

:root {
  --cream: #FBF7F1;
  --paper: #FFFDF9;
  --sand: #F1E8D9;
  --border: #E5DAC6;
  --ink: #2E2A25;
  --muted: #6E6659;
  --olive: #4E5B31;
  --olive-deep: #333D1B;
  --terracotta: #BC5327;
  --terracotta-deep: #9A401A;
  --saffron: #E3A63C;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Karla", -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  --arabic: "Amiri", Georgia, serif;
  --radius: 18px;
  --shadow: 0 1px 2px rgba(46, 42, 37, 0.06), 0 10px 30px -12px rgba(46, 42, 37, 0.18);
  --shadow-lift: 0 2px 4px rgba(46, 42, 37, 0.08), 0 22px 44px -16px rgba(46, 42, 37, 0.28);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}

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

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

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.12;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}

p { margin: 0 0 1em; }

a { color: var(--terracotta-deep); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--terracotta); }

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

.ar {
  font-family: var(--arabic);
  direction: rtl;
  unicode-bidi: isolate;
}

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- draft banner ---------- */
.draft-banner {
  background: var(--ink);
  color: #F5EDDF;
  font-size: 0.85rem;
  text-align: center;
  padding: 9px 16px;
  letter-spacing: 0.02em;
}
.draft-banner strong { color: var(--saffron); }

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 247, 241, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 14px 24px;
  max-width: 1120px;
  margin: 0 auto;
}

.brand {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.brand .ar { font-size: 1.05rem; color: var(--olive); font-weight: 400; }

.nav-links {
  display: flex;
  gap: 24px;
  margin-left: auto;
  align-items: center;
}
.nav-links a {
  color: var(--ink);
  text-decoration: none;
  font-size: 0.97rem;
  font-weight: 500;
}
.nav-links a:hover { color: var(--terracotta); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 14px 26px;
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 1.02rem;
  font-weight: 700;
  text-decoration: none;
  border: 2px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  cursor: pointer;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--terracotta);
  color: #FFF8EF;
  box-shadow: 0 10px 24px -10px rgba(188, 83, 39, 0.65);
}
.btn-primary:hover { background: var(--terracotta-deep); color: #FFF8EF; transform: translateY(-1px); }

.btn-ghost {
  background: transparent;
  color: var(--olive-deep);
  border-color: rgba(78, 91, 49, 0.45);
}
.btn-ghost:hover { border-color: var(--olive); background: rgba(78, 91, 49, 0.07); color: var(--olive-deep); }

.btn-light {
  background: #FFF8EF;
  color: var(--olive-deep);
}
.btn-light:hover { background: #fff; color: var(--olive-deep); transform: translateY(-1px); }

.btn-sm { padding: 10px 18px; font-size: 0.95rem; }

/* ---------- sections ---------- */
section { padding: 88px 0; }

.kicker {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 14px;
}

.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head h2 { font-size: clamp(1.9rem, 4vw, 2.7rem); }
.section-head .sub { color: var(--muted); font-size: 1.1rem; }

/* ---------- hero ---------- */
.hero { padding: 72px 0 88px; }

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 64px;
  align-items: center;
}

.hero .kicker { display: flex; align-items: center; gap: 10px; }
.hero .kicker .ar { font-size: 1.15rem; text-transform: none; letter-spacing: 0; }

.hero h1 {
  font-size: clamp(2.5rem, 5.6vw, 3.9rem);
  margin-bottom: 22px;
}
.hero h1 em {
  font-style: italic;
  color: var(--terracotta);
}

.hero .lead {
  font-size: 1.18rem;
  color: var(--muted);
  max-width: 34em;
  margin-bottom: 30px;
}

.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 22px; }

.trust-line {
  font-size: 0.92rem;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  align-items: center;
}
.trust-line span::before { content: "✦"; color: var(--saffron); margin-right: 7px; font-size: 0.8em; }

.hero-figure { position: relative; margin: 0; }
.hero-figure img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-lift);
  aspect-ratio: 4 / 5;
  object-fit: cover;
  width: 100%;
  border: 6px solid var(--paper);
}
/* the designed book cover is 5:7 — show it uncropped */
.hero-figure img.is-cover { aspect-ratio: 5 / 7; }
.hero-figure figcaption {
  margin-top: 14px;
  font-size: 0.9rem;
  color: var(--muted);
  text-align: center;
}

/* ---------- book section ---------- */
.book-section {
  background: var(--sand);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.book-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 72px;
  align-items: center;
}

/* real cover image */
.book-cover-wrap { max-width: 380px; margin: 0 auto; }
.book-cover-img {
  width: 100%;
  height: auto;
  border-radius: 8px 16px 16px 8px;
  box-shadow:
    inset 12px 0 18px -12px rgba(0, 0, 0, 0.55),
    var(--shadow-lift);
}

/* CSS-only book cover mock */
.book-cover {
  aspect-ratio: 5 / 7;
  max-width: 380px;
  margin: 0 auto;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.08), rgba(0, 0, 0, 0.12)),
    var(--olive-deep);
  border-radius: 6px 16px 16px 6px;
  box-shadow:
    inset 12px 0 18px -12px rgba(0, 0, 0, 0.55),
    var(--shadow-lift);
  color: #F5EDDF;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 34px 30px;
  position: relative;
  overflow: hidden;
}
.book-cover::before {
  content: "";
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(245, 237, 223, 0.35);
  border-radius: 4px 10px 10px 4px;
  pointer-events: none;
}
.book-cover::after {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 10px;
  background: rgba(0, 0, 0, 0.28);
}
.book-cover .cover-top {
  text-align: center;
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(245, 237, 223, 0.8);
  padding-top: 12px;
}
.book-cover .cover-title {
  text-align: center;
  font-family: var(--serif);
  font-size: clamp(1.5rem, 2.6vw, 1.9rem);
  font-weight: 600;
  line-height: 1.25;
}
.book-cover .cover-title .ar {
  display: block;
  margin-top: 14px;
  font-size: 1.15rem;
  color: var(--saffron);
  font-weight: 400;
}
.book-cover .cover-author {
  text-align: center;
  padding-bottom: 12px;
}
.book-cover .cover-author .rule {
  width: 44px;
  height: 2px;
  background: var(--saffron);
  margin: 0 auto 14px;
}
.book-cover .cover-author .name {
  font-family: var(--serif);
  font-size: 1.05rem;
}
.book-cover .cover-author .place {
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(245, 237, 223, 0.75);
  margin-top: 4px;
}

.book-details h2 { font-size: clamp(1.9rem, 4vw, 2.6rem); }
.book-details > p { color: var(--muted); font-size: 1.08rem; }

.book-points {
  list-style: none;
  padding: 0;
  margin: 26px 0 30px;
  display: grid;
  gap: 12px;
}
.book-points li {
  display: flex;
  gap: 12px;
  align-items: baseline;
  font-size: 1.02rem;
}
.book-points li::before {
  content: "✓";
  color: var(--olive);
  font-weight: 700;
  flex-shrink: 0;
}

.price-box {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 28px;
  box-shadow: var(--shadow);
}
.price-box .price-label {
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--olive-deep);
  margin-bottom: 14px;
}
.amounts { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; }
.amount-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 74px;
  padding: 11px 20px;
  border-radius: 12px;
  border: 2px solid var(--border);
  background: var(--cream);
  color: var(--ink);
  font-weight: 700;
  font-size: 1.05rem;
  text-decoration: none;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}
.amount-chip:hover {
  border-color: var(--terracotta);
  background: #fff;
  color: var(--terracotta-deep);
  transform: translateY(-1px);
}
.amount-chip.any {
  border-style: dashed;
  font-weight: 600;
}
.price-box .fine {
  font-size: 0.88rem;
  color: var(--muted);
  margin: 0;
}

/* how it works */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 56px;
}
.step {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
}
.step .num {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--olive);
  color: #F5EDDF;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  margin-bottom: 16px;
}
.step h3 { font-size: 1.2rem; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 0.98rem; margin: 0; }

/* ---------- recipe gallery ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 26px;
}

.recipe-card {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  display: flex;
  flex-direction: column;
}
.recipe-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lift);
}

.recipe-card figure { margin: 0; position: relative; }
.recipe-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.recipe-card .lock {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(46, 42, 37, 0.78);
  color: #F5EDDF;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 11px;
  border-radius: 999px;
  backdrop-filter: blur(4px);
}

.recipe-card .card-body { padding: 18px 20px 22px; display: flex; flex-direction: column; flex: 1; }
.recipe-card .chip {
  align-self: flex-start;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--olive-deep);
  background: rgba(78, 91, 49, 0.12);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 12px;
}
.recipe-card h3 {
  font-size: 1.22rem;
  margin-bottom: 4px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}
.recipe-card h3 .ar {
  font-size: 1rem;
  color: var(--muted);
  font-weight: 400;
  white-space: nowrap;
}
.recipe-card .teaser {
  color: var(--muted);
  font-size: 0.94rem;
  margin: 0;
}

.gallery-cta {
  margin-top: 48px;
  text-align: center;
}
.gallery-cta p {
  color: var(--muted);
  margin-bottom: 18px;
  font-size: 1.05rem;
}

/* ---------- story ---------- */
.story-section {
  background: var(--olive-deep);
  color: #F1EBDD;
}
.story-section .kicker { color: var(--saffron); }
.story-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 72px;
  align-items: start;
}
.story-figure { margin: 0; position: sticky; top: 110px; }
.story-figure img {
  border-radius: var(--radius);
  width: 100%;
  height: auto; /* natural aspect — show the full photo, no crop */
  border: 5px solid rgba(245, 237, 223, 0.18);
}
.story-body h2 {
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  color: #FBF7F1;
  margin-bottom: 28px;
}
.story-body p {
  font-size: 1.09rem;
  line-height: 1.75;
  color: rgba(241, 235, 221, 0.92);
  margin-bottom: 1.2em;
}
.story-quote {
  border-left: 3px solid var(--saffron);
  margin: 34px 0;
  padding: 6px 0 6px 26px;
  font-family: var(--serif);
  font-size: 1.45rem;
  font-style: italic;
  line-height: 1.45;
  color: #FBF7F1;
}
.story-sign {
  font-family: var(--serif);
  font-size: 1.15rem;
  color: var(--saffron);
  margin: 30px 0 34px;
}
.story-ctas { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- support ---------- */
.support-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.support-card {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 28px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}
.support-card .icon { font-size: 1.9rem; margin-bottom: 14px; }
.support-card h3 { font-size: 1.28rem; }
.support-card p { color: var(--muted); font-size: 0.98rem; flex: 1; }
.support-card .btn { align-self: flex-start; }

/* ---------- FAQ ---------- */
.faq-section { background: var(--sand); border-top: 1px solid var(--border); }
.faq-list { max-width: 760px; }
.faq-list details {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: 14px;
  margin-bottom: 12px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.faq-list summary {
  cursor: pointer;
  padding: 18px 22px;
  font-weight: 700;
  font-size: 1.04rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+";
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--terracotta);
  flex-shrink: 0;
  line-height: 1;
}
.faq-list details[open] summary::after { content: "–"; }
.faq-list details p {
  padding: 0 22px 20px;
  margin: 0;
  color: var(--muted);
}

/* ---------- footer ---------- */
.site-footer {
  background: var(--ink);
  color: rgba(245, 237, 223, 0.85);
  padding: 60px 0 40px;
}
.footer-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 44px;
}
.footer-brand .brand-name {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: #FBF7F1;
  margin-bottom: 6px;
}
.footer-brand p { color: rgba(245, 237, 223, 0.65); max-width: 30em; margin: 0; font-size: 0.95rem; }
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a {
  color: rgba(245, 237, 223, 0.9);
  text-decoration: none;
  font-size: 0.98rem;
}
.footer-links a:hover { color: var(--saffron); }
.footer-bottom {
  border-top: 1px solid rgba(245, 237, 223, 0.15);
  padding-top: 24px;
  font-size: 0.85rem;
  color: rgba(245, 237, 223, 0.55);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  justify-content: space-between;
}

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  section { padding: 64px 0; }
  .hero { padding: 48px 0 64px; }
  .hero-grid, .book-grid, .story-grid { grid-template-columns: 1fr; gap: 44px; }
  .hero-figure { max-width: 420px; margin: 0 auto; }
  .story-figure { position: static; max-width: 380px; }
  .steps, .support-cards { grid-template-columns: 1fr; }
  .book-cover, .book-cover-wrap { max-width: 320px; }
}

@media (max-width: 760px) {
  .nav-links a:not(.btn) { display: none; }
  .nav { gap: 16px; }
  body { font-size: 1rem; }
}
