/* =========================================================
   KH Cuisine: site styles (local draft)
   Colors are taken from the logo and the printed menu.
   ========================================================= */

:root {
  --cream: #FBF4EA;       /* main background (same as the menu) */
  --paper: #FFFCF7;       /* alternate sections, cards */
  --ink: #26301C;         /* main text, dark olive-black */
  --ink-soft: #5A6250;    /* secondary text */
  --line: #E9DECB;        /* dividers */

  --olive: #4B5F26;       /* logo green: buttons, frozen prices */
  --olive-deep: #34431A;  /* dark section */
  --olive-soft: #E8EDDB;  /* light green tint */

  --orange: #E99A2C;      /* "Cuit" badge */
  --orange-text: #A8561A; /* cooked prices (readable on cream) */
  --orange-title: #C26A1C;/* large italic titles */
  --orange-soft: #FCEBD5; /* light orange tint */
  --peach: #F7E0CC;       /* decorative circle */

  --radius: 16px;
  --shadow: 0 1px 2px rgba(38, 48, 28, .06), 0 12px 32px rgba(38, 48, 28, .09);
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --container: 1120px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }

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

img { max-width: 100%; display: block; }
a { color: var(--olive); text-underline-offset: 3px; }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin: 0 0 .5em;
}
h1 { font-size: clamp(2.3rem, 4.6vw, 3.6rem); }
h2 { font-size: clamp(2rem, 3.8vw, 2.9rem); }
h3 { font-size: 1.375rem; }
h1 em, h2 em { color: var(--orange-title); font-weight: 600; }
p { margin: 0 0 1em; }

.container { width: min(100% - 2rem, var(--container)); margin-inline: auto; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 100;
  background: var(--ink); color: var(--cream); padding: .6rem 1rem; border-radius: 8px;
}
.skip-link:focus { top: 1rem; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 4px; }

/* ---------- Announcement bar ---------- */
.announce {
  background: var(--olive-deep); color: #F1EAD9;
  font-size: .9375rem; font-weight: 600; text-align: center;
  padding: .55rem 1rem;
}
.announce a { color: #F5C77A; font-weight: 800; text-decoration: none; white-space: nowrap; margin-inline-start: .25rem; }
.announce a:hover { text-decoration: underline; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 244, 234, .93);
  -webkit-backdrop-filter: saturate(1.2) blur(10px);
  backdrop-filter: saturate(1.2) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 1rem; min-height: 72px; }
.header-inner .brand { margin-inline-end: auto; }

.brand { display: inline-flex; align-items: center; gap: .6rem; color: var(--ink); text-decoration: none; }
.brand-logo { width: 48px; height: 48px; flex: none; }
.brand-name { font-family: var(--serif); font-weight: 700; font-size: 1.4rem; color: var(--olive); }

.site-nav { display: flex; align-items: center; gap: 1.75rem; }
.site-nav a:not(.btn) { color: var(--ink); text-decoration: none; font-weight: 700; font-size: .975rem; }
.site-nav a:not(.btn):hover { color: var(--olive); }

.nav-toggle {
  display: none; align-items: center; justify-content: center;
  width: 44px; height: 44px; padding: 0;
  border: 1px solid var(--line); border-radius: 10px;
  background: var(--paper); color: var(--ink); cursor: pointer;
}
.nav-toggle .icon-close,
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

/* ---------- Buttons ---------- */
.btn {
  font: inherit; font-weight: 800;
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .85rem 1.5rem; border-radius: 999px;
  background: var(--olive); color: #FFFBF2;
  border: 2px solid var(--olive);
  text-decoration: none; cursor: pointer;
  transition: background-color .2s, border-color .2s, color .2s;
}
.btn:hover { background: var(--olive-deep); border-color: var(--olive-deep); }
.btn-ghost { background: transparent; color: var(--olive); border-color: var(--olive); }
.btn-ghost:hover { background: var(--olive); color: #FFFBF2; }
.btn-small { padding: .55rem 1.1rem; font-size: .95rem; }
.btn-light { background: #FFFBF2; color: var(--olive-deep); border-color: #FFFBF2; }
.btn-light:hover { background: var(--orange); border-color: var(--orange); color: var(--ink); }
.btn-outline-light { background: transparent; color: #FFFBF2; border-color: rgba(255, 251, 242, .6); }
.btn-outline-light:hover { background: rgba(255, 251, 242, .12); border-color: #FFFBF2; }

/* ---------- Badges (same as the printed menu) ---------- */
.badge {
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .3rem .85rem; border-radius: 999px;
  font-family: var(--sans); font-size: .8rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
  line-height: 1.4;
}
.badge-frozen { color: var(--olive); border: 2px solid var(--olive); background: transparent; }
.badge-cooked { color: var(--ink); background: var(--orange); border: 2px solid var(--orange); }

/* ---------- Sections ---------- */
.section { padding: clamp(4rem, 9vw, 6.5rem) 0; }
.section-paper { background: var(--paper); }
.section-dark { background: var(--olive-deep); color: #E9E4D2; }
.section-dark h2, .section-dark h3 { color: #FFFBF2; }

.section-head { max-width: 680px; margin-bottom: clamp(2rem, 5vw, 3rem); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head .lede { margin-bottom: 0; }

.eyebrow {
  font-size: .8125rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase;
  color: var(--orange-text); margin-bottom: .8rem;
}
.section-dark .eyebrow { color: #F5C77A; }
.lede { font-size: 1.1875rem; color: var(--ink-soft); }
.lede a { font-weight: 700; white-space: nowrap; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(4rem, 8vw, 6.5rem); }
.hero::before, .hero::after { content: ""; position: absolute; border-radius: 50%; z-index: -1; }
.hero::before { width: 520px; height: 520px; left: -260px; top: -260px; background: var(--peach); }
.hero::after { width: 560px; height: 560px; right: -240px; bottom: -300px; background: #E9EEDD; }
.hero { isolation: isolate; }

.hero-inner { display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(2.5rem, 6vw, 4.5rem); align-items: center; }
.hero h1 { margin-bottom: .45em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin: 2rem 0 2.5rem; }

.hero-facts {
  list-style: none; margin: 0; padding: 1.5rem 0 0;
  border-top: 1px solid var(--line);
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem;
}
.hero-facts strong { display: block; font-family: var(--serif); font-size: 1.1rem; color: var(--olive); }
.hero-facts span { font-size: .9rem; color: var(--ink-soft); }

.hero-visual { position: relative; justify-self: center; width: min(100%, 440px); aspect-ratio: 1; }
.hero-plate {
  position: absolute; inset: 9%;
  display: grid; place-items: center;
  border-radius: 50%; background: #fff;
  box-shadow: var(--shadow), 0 0 0 14px rgba(255, 255, 255, .55), 0 0 0 15px var(--line);
}
.hero-plate img { width: 80%; height: auto; }
.float {
  position: absolute; width: 27%; height: auto; aspect-ratio: 1;
  border-radius: 50%; border: 6px solid #fff; object-fit: cover;
  box-shadow: 0 10px 24px rgba(38, 48, 28, .16);
}
.float-1 { top: 0; right: 2%; }
.float-2 { bottom: 0; right: 10%; }
.float-3 { bottom: 12%; left: -2%; }

/* ---------- Surgelé ou cuit ---------- */
.options { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; max-width: 900px; margin-inline: auto; }
.option { border-radius: 20px; padding: 2rem 2rem 1.75rem; border: 1.5px solid; }
.option h3 { margin: 1.1rem 0 .4rem; font-size: 1.6rem; }
.option p { margin: 0; color: var(--ink-soft); }
.option-frozen { background: var(--olive-soft); border-color: #C9D3B2; }
.option-frozen h3 { color: var(--olive); }
.option-cooked { background: var(--orange-soft); border-color: #F1CE9D; }
.option-cooked h3 { color: var(--orange-text); }

/* ---------- Menu ---------- */
.menu-board {
  background: var(--paper); border: 1px solid var(--line); border-radius: 24px;
  padding: clamp(1.25rem, 3.5vw, 2.75rem); box-shadow: var(--shadow);
}
.menu-head {
  display: grid; grid-template-columns: 1fr 170px 170px; align-items: end; gap: 1rem;
  padding-bottom: 1.1rem; border-bottom: 2px solid var(--ink);
}
.menu-head-label { font-size: .85rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); padding-inline-start: 96px; }
.menu-col { display: grid; justify-items: center; gap: .35rem; text-align: center; }
.menu-col small { font-size: .875rem; color: var(--ink-soft); font-weight: 600; }

.menu-cat {
  display: flex; align-items: center; gap: 1rem;
  margin: 1.75rem 0 .25rem;
  font-style: italic; font-weight: 600; font-size: 1.45rem; color: var(--orange-title);
}
.menu-cat::after { content: ""; flex: 1; height: 1.5px; background: #EBCB9F; }

.menu-list { list-style: none; margin: 0; padding: 0; }
.dish {
  display: grid; grid-template-columns: 76px 1fr 170px 170px; align-items: center; gap: 0 1.25rem;
  padding: .9rem 0; border-bottom: 1px solid var(--line);
}
.menu-list .dish:last-child { border-bottom: 0; }
.dish-photo { width: 76px; height: 76px; border-radius: 50%; object-fit: cover; box-shadow: 0 3px 10px rgba(38, 48, 28, .12); }
.dish-info h4 { margin: 0 0 .1rem; font-size: 1.4rem; font-weight: 600; }
.dish-lot { color: var(--ink-soft); font-weight: 600; font-size: .95rem; }
.dish-only { display: none; }

.dish-price { margin: 0; text-align: center; }
.dish-price strong { font-family: var(--serif); font-weight: 700; font-size: 1.75rem; letter-spacing: -0.01em; white-space: nowrap; }
.dish-price.frozen strong { color: var(--olive); }
.dish-price.cooked strong { color: var(--orange-text); }
.price-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.na-text { font-size: .875rem; font-weight: 700; color: var(--ink-soft); line-height: 1.3; display: inline-block; max-width: 7.5rem; }

/* ---------- Comment commander ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.step {
  background: rgba(255, 251, 242, .06); border: 1px solid rgba(255, 251, 242, .16);
  border-radius: var(--radius); padding: 2rem 1.75rem;
}
.step-num {
  display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 1.1rem;
  border-radius: 50%; background: var(--orange); color: var(--ink);
  font-family: var(--serif); font-weight: 700; font-size: 1.4rem;
}
.step p { margin: 0; color: #D9D6C3; }
.step a { color: #F5C77A; font-weight: 800; white-space: nowrap; }

.terms { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 1.5rem; }
.term {
  display: flex; gap: 1rem; align-items: flex-start;
  padding: 1.25rem 1.5rem; border-radius: var(--radius);
  background: rgba(0, 0, 0, .14);
}
.term svg { flex: none; color: #F5C77A; margin-top: .1rem; }
.term strong { display: block; color: #FFFBF2; font-size: 1.05rem; }
.term span { color: #D9D6C3; font-size: .95rem; }

.cta-row { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem; margin-top: 2.5rem; }

/* ---------- Contact ---------- */
.contact-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; max-width: 900px; margin-inline: auto; }
.contact-card {
  display: grid; justify-items: center; gap: .3rem; text-align: center;
  padding: 2rem 1.25rem; border-radius: 20px;
  background: var(--cream); border: 1px solid var(--line);
  color: var(--ink); text-decoration: none;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.contact-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #D7C9AF; }
.contact-icon {
  display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: .5rem;
  border-radius: 50%; background: var(--olive); color: #FFFBF2;
}
.contact-label { font-size: .8rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); }
.contact-value { font-family: var(--serif); font-weight: 600; font-size: 1.25rem; color: var(--olive); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #CFCDBC; padding: 3rem 0 2.5rem; font-size: .95rem; }
.footer-inner { display: grid; justify-items: center; gap: .6rem; text-align: center; }
.site-footer .brand-logo { background: #FFFBF2; border-radius: 50%; padding: 3px; }
.site-footer .brand-name { color: #FFFBF2; }
.footer-tagline { margin: 0; font-family: var(--serif); font-style: italic; font-size: 1.1rem; color: #F5C77A; }
.footer-copy { margin: .5rem 0 0; font-size: .85rem; color: #A9A895; }

/* ---------- Simple pages (404) ---------- */
.simple-page { min-height: 100vh; display: grid; place-items: center; padding: 2rem 1rem; text-align: center; }
.simple-card { max-width: 520px; }
.simple-card img { width: 120px; height: 120px; margin: 0 auto 1.5rem; }
.simple-card .lede { margin-bottom: 2rem; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: .5rem 1rem 1.25rem;
    background: var(--cream); border-bottom: 1px solid var(--line);
    box-shadow: 0 14px 24px rgba(38, 48, 28, .08);
  }
  .site-nav.is-open { display: flex; }
  .site-nav a:not(.btn) { padding: .85rem .25rem; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .site-nav .btn { margin-top: 1rem; padding-block: .8rem; }
}

@media (max-width: 880px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { width: min(100%, 360px); }
  .steps, .contact-cards { grid-template-columns: 1fr; }
  .terms { grid-template-columns: 1fr; }
  .menu-head, .dish { grid-template-columns: 76px 1fr 130px 130px; }
  .menu-head { grid-template-columns: 1fr 130px 130px; }
  .menu-head-label { padding-inline-start: 0; }
}

@media (max-width: 640px) {
  body { font-size: 1rem; }
  .announce { font-size: .875rem; }
  .brand-logo { width: 42px; height: 42px; }
  .brand-name { font-size: 1.25rem; }
  .hero-actions .btn { flex: 1 1 auto; }
  .hero-facts { grid-template-columns: 1fr; gap: .6rem; }
  .hero-facts li { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
  .options { grid-template-columns: 1fr; }
  .option { padding: 1.6rem 1.5rem 1.5rem; }

  /* Menu: price chips under each dish */
  .menu-head { display: none; }
  .menu-cat { margin-top: 1.25rem; font-size: 1.3rem; }
  .dish {
    grid-template-columns: 60px 1fr 1fr;
    grid-template-areas: "photo info info" "photo frozen cooked";
    gap: .55rem .75rem; align-items: start; padding: 1rem 0;
  }
  .dish-photo { grid-area: photo; width: 60px; height: 60px; }
  .dish-info { grid-area: info; }
  .dish-info h4 { font-size: 1.2rem; }
  .dish-only {
    display: inline-block; margin-inline-start: .5rem; padding: .05rem .5rem; border-radius: 999px;
    font-size: .75rem; font-weight: 800; background: var(--line); color: var(--ink-soft);
  }
  .dish-price.frozen { grid-area: frozen; }
  .dish-price.cooked { grid-area: cooked; }
  .dish-price {
    display: flex; flex-direction: column; align-items: flex-start; min-width: 0;
    padding: .35rem .7rem .4rem; border-radius: 10px; text-align: start;
  }
  .dish-price.frozen { background: var(--olive-soft); }
  .dish-price.cooked { background: var(--orange-soft); }
  .dish-price.na { display: none; }
  .dish-price strong { font-size: 1.2rem; line-height: 1.2; }
  .price-label {
    position: static; width: auto; height: auto; overflow: visible; clip: auto;
    font-size: .68rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft);
  }
  .menu-board { padding: 1rem 1rem 1.25rem; border-radius: 18px; }
}

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

/* ---------- Language button ---------- */
.lang { position: relative; flex: none; }
.lang summary {
  list-style: none; cursor: pointer; user-select: none;
  display: inline-flex; align-items: center; gap: .4rem;
  height: 44px; padding: 0 .85rem;
  border: 1px solid var(--line); border-radius: 10px;
  background: var(--paper); color: var(--ink);
  font-weight: 800; font-size: .9rem;
}
.lang summary::-webkit-details-marker { display: none; }
.lang summary::marker { content: ""; }
.lang summary:hover, .lang[open] summary { border-color: var(--olive); color: var(--olive); }
.lang-menu {
  position: absolute; top: calc(100% + 8px); inset-inline-end: 0; z-index: 60;
  min-width: 170px; margin: 0; padding: .35rem; list-style: none;
  background: var(--paper); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow);
}
.lang-menu a {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .6rem .8rem; border-radius: 8px;
  color: var(--ink); font-weight: 700; text-decoration: none;
}
.lang-menu a:hover { background: var(--olive-soft); }
.lang-menu a[aria-current="page"] { color: var(--olive); background: var(--olive-soft); }
.lang-menu a[aria-current="page"]::after { content: "✓"; font-weight: 800; }
.lang-menu a:lang(ar) { font-family: "IBM Plex Sans Arabic", "Segoe UI", Tahoma, sans-serif; font-size: 1.05rem; }

/* ---------- Arabic (right-to-left) ---------- */
html:lang(ar) {
  --serif: "El Messiri", "Fraunces", Georgia, serif;
  --sans: "IBM Plex Sans Arabic", "Nunito", "Segoe UI", Tahoma, sans-serif;
}
html:lang(ar) body { line-height: 1.8; }
html:lang(ar) h1, html:lang(ar) h2, html:lang(ar) h3, html:lang(ar) h4 { line-height: 1.35; letter-spacing: 0; }
/* Arabic letters must not be spaced out, slanted or upper-cased */
html:lang(ar) em,
html:lang(ar) .menu-cat,
html:lang(ar) .footer-tagline { font-style: normal; }
html:lang(ar) .eyebrow,
html:lang(ar) .badge,
html:lang(ar) .menu-head-label,
html:lang(ar) .contact-label,
html:lang(ar) .price-label { letter-spacing: 0; text-transform: none; }
html:lang(ar) .eyebrow { font-size: .95rem; }
html:lang(ar) .badge { font-size: .9rem; }
html:lang(ar) .contact-label, html:lang(ar) .menu-head-label { font-size: .9rem; }
/* Brand name, prices and step numbers keep the brand's Latin typeface */
html:lang(ar) .brand-name,
html:lang(ar) .dish-price strong,
html:lang(ar) .step-num { font-family: "Fraunces", Georgia, serif; }
/* Mirror the decorative circles */
html[dir="rtl"] .hero::before { left: auto; right: -260px; }
html[dir="rtl"] .hero::after { right: auto; left: -240px; }

@media (max-width: 640px) {
  .lang summary { padding: 0 .7rem; }
  html:lang(ar) .price-label { font-size: .8rem; }
}

/* 404 page: three languages */
.simple-card .hero-actions { justify-content: center; margin: 0; }
.simple-card :lang(ar) { font-family: "IBM Plex Sans Arabic", "Segoe UI", Tahoma, sans-serif; }
