/* ==========================================================================
   Lara Abdulhadi — mobile-first, RTL-aware, monochrome.
   Photography is the only color; everything else is warm neutral.
   Layout uses CSS logical properties so the whole site mirrors for Arabic.
   ========================================================================== */

:root {
  --paper: #faf9f7;        /* warm off-white background */
  --paper-2: #f3f1ec;      /* subtle panel */
  --ink: #2b2a28;          /* near-black text */
  --gray: #6f6c68;         /* the logo gray — primary accent */
  --gray-soft: #9b9892;
  --line: #e7e3dc;         /* hairlines */
  --accent: #9c5b3f;       /* sparing warm terracotta (links/hover) */
  --shadow: 0 1px 2px rgba(31,28,24,.04), 0 8px 28px rgba(31,28,24,.06);

  --font-display: "Jost", system-ui, sans-serif;          /* light, tracked */
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
  --font-ar: "Tajawal", "Segoe UI", Tahoma, sans-serif;   /* Arabic */

  --wrap: 72rem;
  --gap: clamp(1rem, 4vw, 2rem);
  --radius: 14px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
/* Arabic / RTL: swap to Arabic font + heavier line height for diacritics */
html[dir="rtl"] body { font-family: var(--font-ar); line-height: 1.9; }

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }

h1, h2, h3 { font-family: var(--font-display); font-weight: 400; line-height: 1.15; letter-spacing: .01em; color: var(--ink); }
html[dir="rtl"] h1, html[dir="rtl"] h2, html[dir="rtl"] h3 { font-family: var(--font-ar); font-weight: 500; letter-spacing: 0; }
h1 { font-size: clamp(2rem, 7vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 5vw, 2.1rem); }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gap); }
.muted { color: var(--gray); }
.eyebrow { font-family: var(--font-display); text-transform: uppercase; letter-spacing: .28em; font-size: .72rem; color: var(--gray); }
html[dir="rtl"] .eyebrow { letter-spacing: .12em; font-family: var(--font-ar); }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: saturate(1.2) blur(8px);
  border-block-end: 1px solid var(--line);
}
.site-header .bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 64px; }
.brand img { height: 34px; width: auto; }
.brand .word { display: none; }
.nav-toggle { background: none; border: 0; padding: .4rem; cursor: pointer; color: var(--ink); }
.nav-toggle svg { width: 26px; height: 26px; }
.site-nav { display: none; }
.site-nav a { display: block; padding: .85rem 0; font-family: var(--font-display); letter-spacing: .04em; color: var(--gray); border-block-end: 1px solid var(--line); }
html[dir="rtl"] .site-nav a { font-family: var(--font-ar); }
.site-nav a:hover { color: var(--ink); }
.lang-switch { font-family: var(--font-display); font-size: .8rem; letter-spacing: .1em; color: var(--gray); border: 1px solid var(--line); border-radius: 999px; padding: .3rem .7rem; }

/* mobile drawer */
#nav { }
#nav:target ~ * { } /* no-op */
.drawer { display: none; }
.drawer.open, .site-nav.open { display: block; }
@media (max-width: 47.99em) {
  .site-nav.open { display: block; padding-block: .5rem 1rem; }
}

/* desktop nav */
@media (min-width: 48em) {
  .nav-toggle { display: none; }
  .site-nav { display: flex !important; align-items: center; gap: 1.6rem; }
  .site-nav a { border: 0; padding: 0; font-size: .95rem; }
  .brand .word { display: inline; }
}

/* ---------- hero ---------- */
.hero { padding-block: clamp(2.5rem, 9vw, 5rem); text-align: center; }
.hero p.lead { max-width: 40rem; margin-inline: auto; color: var(--gray); font-size: 1.15rem; }
.hero .signature { margin-block-start: 1.5rem; }

/* ---------- section ---------- */
section.block { padding-block: clamp(2rem, 7vw, 4rem); }
.section-head { text-align: center; margin-block-end: clamp(1.5rem, 5vw, 2.5rem); }
.section-head .eyebrow { display: block; margin-block-end: .6rem; }

/* ---------- recipe / category grid ---------- */
.grid { display: grid; gap: clamp(1rem, 4vw, 1.75rem); grid-template-columns: 1fr; }
@media (min-width: 34em) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 60em) { .grid { grid-template-columns: repeat(3, 1fr); } }

.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: clip; box-shadow: var(--shadow); transition: transform .25s ease, box-shadow .25s ease; }
.card:hover { transform: translateY(-3px); box-shadow: 0 10px 34px rgba(31,28,24,.12); }
.card .thumb { aspect-ratio: 4/3; background: var(--paper-2); overflow: clip; }
.card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.card .body { padding: 1rem 1.1rem 1.25rem; }
.card .kicker { font-family: var(--font-display); text-transform: uppercase; letter-spacing: .18em; font-size: .66rem; color: var(--gray-soft); }
html[dir="rtl"] .card .kicker { letter-spacing: .06em; font-family: var(--font-ar); }
.card h3 { font-size: 1.2rem; margin: .35rem 0 .4rem; }
.card .meta { font-size: .82rem; color: var(--gray); display: flex; gap: 1rem; flex-wrap: wrap; }

/* category pills */
.pills { display: flex; flex-wrap: wrap; gap: .6rem; justify-content: center; }
.pill { border: 1px solid var(--line); background: #fff; color: var(--gray); border-radius: 999px; padding: .5rem 1.1rem; font-family: var(--font-display); letter-spacing: .04em; font-size: .9rem; }
html[dir="rtl"] .pill { font-family: var(--font-ar); }
.pill:hover { border-color: var(--gray); color: var(--ink); }

/* ---------- recipe page ---------- */
.recipe-hero { display: grid; gap: var(--gap); grid-template-columns: 1fr; align-items: start; }
@media (min-width: 56em) { .recipe-hero { grid-template-columns: 1.1fr 1fr; } }
.recipe-hero .photo { border-radius: var(--radius); overflow: clip; box-shadow: var(--shadow); aspect-ratio: 4/3; background: var(--paper-2); }
.recipe-hero .photo img { width: 100%; height: 100%; object-fit: cover; }
.recipe-title { margin-block: .4rem .6rem; }
.recipe-intro { color: #4a4844; }

.facts { display: flex; flex-wrap: wrap; gap: 1.25rem 2rem; padding: 1rem 0; margin-block: 1rem; border-block: 1px solid var(--line); }
.fact { display: flex; flex-direction: column; }
.fact .k { font-size: .68rem; text-transform: uppercase; letter-spacing: .18em; color: var(--gray-soft); font-family: var(--font-display); }
html[dir="rtl"] .fact .k { letter-spacing: .06em; font-family: var(--font-ar); }
.fact .v { font-size: 1.1rem; color: var(--ink); }

.recipe-body { display: grid; gap: clamp(1.5rem, 5vw, 3rem); grid-template-columns: 1fr; margin-block-start: clamp(1.5rem,5vw,2.5rem); }
@media (min-width: 56em) { .recipe-body { grid-template-columns: 0.8fr 1.2fr; } }

.ingredients { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem 1.4rem; align-self: start; }
.ingredients h2, .instructions h2 { font-size: 1.4rem; margin-block: 0 1rem; padding-block-end: .6rem; border-block-end: 1px solid var(--line); }
.ingredients ul { list-style: none; margin: 0; padding: 0; }
.ingredients li { padding-block: .55rem; border-block-end: 1px dashed var(--line); display: flex; gap: .5rem; }
.ingredients li:last-child { border: 0; }
.ingredients .amt { color: var(--gray); white-space: nowrap; font-variant-numeric: tabular-nums; }
.ing-group-title { font-family: var(--font-display); letter-spacing: .1em; text-transform: uppercase; font-size: .72rem; color: var(--gray-soft); margin-block: 1rem .25rem; }

.instructions ol { list-style: none; counter-reset: step; margin: 0; padding: 0; }
.instructions li { counter-increment: step; padding-block: 1rem; border-block-end: 1px solid var(--line); padding-inline-start: 2.6rem; position: relative; }
.instructions li::before { content: counter(step); position: absolute; inset-inline-start: 0; inset-block-start: 1rem; width: 1.8rem; height: 1.8rem; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font-family: var(--font-display); font-size: .9rem; }
.instructions li:last-child { border: 0; }

/* buttons */
.btn { display: inline-flex; align-items: center; gap: .5rem; font-family: var(--font-display); letter-spacing: .06em; border: 1px solid var(--ink); background: var(--ink); color: #fff; padding: .7rem 1.3rem; border-radius: 999px; cursor: pointer; font-size: .9rem; }
html[dir="rtl"] .btn { font-family: var(--font-ar); }
.btn:hover { background: transparent; color: var(--ink); }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { background: var(--ink); color: #fff; }
.btn svg { width: 18px; height: 18px; }

/* ---------- planting (coming soon) — calm, elegant ---------- */
.planting { background:
  radial-gradient(120% 90% at 50% 0%, #fff 0%, var(--paper) 55%),
  var(--paper); }
.planting-inner { max-width: 40rem; margin-inline: auto; text-align: center; }
.planting .leaf { width: 46px; height: 46px; color: var(--gray); margin-inline: auto; margin-block-end: 1rem; opacity: .85; }
.planting .eyebrow { display: block; margin-block-end: .7rem; }
.planting h1, .planting h2 { display: inline-flex; align-items: center; gap: .7rem; flex-wrap: wrap; justify-content: center; }
.planting .lead { font-size: 1.12rem; margin-block: .9rem 0; }
.planting .planting-note { font-style: italic; color: var(--gray-soft); margin-block-start: 1rem; }
html[dir="rtl"] .planting .planting-note { font-style: normal; }
.soon {
  font-family: var(--font-display); font-size: .62rem; letter-spacing: .22em; text-transform: uppercase;
  color: var(--gray); border: 1px solid var(--line); border-radius: 999px; padding: .35em .85em; vertical-align: middle;
  background: #fff;
}
html[dir="rtl"] .soon { font-family: var(--font-ar); letter-spacing: .06em; }

/* ---------- contact form ---------- */
.contact-form label { display: block; margin-block-end: 1.1rem; }
.contact-form label span { display: block; font-family: var(--font-display); letter-spacing: .04em; font-size: .8rem; color: var(--gray); margin-block-end: .4rem; }
html[dir="rtl"] .contact-form label span { font-family: var(--font-ar); }
.contact-form input, .contact-form textarea {
  width: 100%; font: inherit; color: var(--ink); background: #fff;
  border: 1px solid var(--line); border-radius: 10px; padding: .8rem 1rem; transition: border-color .2s, box-shadow .2s;
}
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--gray); box-shadow: 0 0 0 3px rgba(111,108,104,.10); }
.contact-form textarea { resize: vertical; min-height: 8rem; }
.contact-form .hp { position: absolute !important; inset-inline-start: -9999px; width: 1px; height: 1px; opacity: 0; }
.contact-form button { width: 100%; justify-content: center; }
@media (min-width: 34em) { .contact-form button { width: auto; } }
.form-status { border-radius: 10px; padding: .9rem 1.1rem; margin-block-end: 1.25rem; font-size: .95rem; text-align: center; }
.form-status.ok { background: #eef6ee; border: 1px solid #cfe6cf; color: #2f6b39; }
.form-status.bad { background: #fbeeee; border: 1px solid #f0d2d2; color: #9c3b3b; }

/* ---------- footer ---------- */
.site-footer { margin-block-start: clamp(3rem, 8vw, 5rem); border-block-start: 1px solid var(--line); background: var(--paper-2); }
.site-footer .cols { display: grid; gap: 1.5rem; grid-template-columns: 1fr; padding-block: clamp(2rem,6vw,3rem); }
@media (min-width: 40em) { .site-footer .cols { grid-template-columns: 2fr 1fr 1fr; } }
.site-footer h4 { font-family: var(--font-display); letter-spacing: .1em; text-transform: uppercase; font-size: .75rem; color: var(--gray); margin: 0 0 .8rem; }
html[dir="rtl"] .site-footer h4 { font-family: var(--font-ar); letter-spacing: .04em; }
.site-footer a { display: block; color: var(--gray); padding-block: .3rem; }
.site-footer a:hover { color: var(--ink); }
.site-footer .fine { text-align: center; color: var(--gray-soft); font-size: .82rem; padding-block: 1.25rem; border-block-start: 1px solid var(--line); }

/* ---------- print: clean recipe card (Lara's 'printer friendly') ---------- */
@media print {
  .site-header, .site-footer, .nav-toggle, .btn, .recipe-hero .photo, .pills, .lang-switch { display: none !important; }
  body { background: #fff; color: #000; font-size: 12pt; }
  .wrap { max-width: 100%; padding: 0; }
  .recipe-body { grid-template-columns: 1fr; display: block; }
  .ingredients, .card { border: 1px solid #ccc; box-shadow: none; }
  .instructions li::before { background: #000; }
  a[href]::after { content: ""; }
  h1, h2, h3 { color: #000; }
}
