/* AMARIN BAKERIES — modern & clean */
:root {
  --bg: #fffdf9;
  --surface: #ffffff;
  --soft: #f8f2ea;
  --ink: #1e1a16;
  --muted: #6a6258;
  --line: #ebe3d8;
  --accent: #a85a14;
  --accent-ink: #ffffff;
  --accent-soft: #f7e9d9;
  --dark: #241c15;
  --radius: 18px;
  --shadow: 0 1px 2px rgba(36, 28, 21, .05), 0 12px 32px -12px rgba(36, 28, 21, .18);
  --font-en: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Fraunces", Georgia, serif;
  --font-ar: "Cairo", "Segoe UI", Tahoma, sans-serif;
  --header-h: 68px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #17120e; --surface: #201a14; --soft: #261f18; --ink: #f4ede4; --muted: #b3a999;
    --line: #382f25; --accent: #e09a52; --accent-ink: #1b130b; --accent-soft: #3a2a1a; --dark: #0f0b08;
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font-en); font-size: 16px; line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
html[lang="ar"] body, html[lang="ar"] .brand, html[lang="ar"] h1, html[lang="ar"] h2, html[lang="ar"] h3,
html[lang="ar"] button, html[lang="ar"] input, html[lang="ar"] select, html[lang="ar"] textarea { font-family: var(--font-ar); }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.container { width: min(1160px, 100% - 40px); margin-inline: auto; }
.muted { color: var(--muted); }
.eyebrow { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; color: var(--accent); margin: 0 0 .6rem; }
html[lang="ar"] .eyebrow { letter-spacing: 0; font-size: .9rem; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.12; margin: 0 0 .6em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1rem; }
section { padding: clamp(56px, 8vw, 104px) 0; }
.skip { position: absolute; inset-inline-start: -999px; }
.skip:focus { inset-inline-start: 16px; top: 8px; background: var(--ink); color: var(--bg); padding: 8px 14px; border-radius: 8px; z-index: 100; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .85rem 1.5rem; border-radius: 999px; border: 1.5px solid var(--accent);
  background: var(--accent); color: var(--accent-ink); font-weight: 600; font-size: .98rem;
  cursor: pointer; transition: transform .15s, box-shadow .15s, background .15s; font-family: inherit;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 8px 20px -8px var(--accent); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); box-shadow: none; }
.btn-sm { padding: .5rem 1rem; font-size: .88rem; }
.row { display: flex; gap: .6rem; flex-wrap: wrap; align-items: center; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent; transition: border-color .2s;
}
.site-header.scrolled { border-color: var(--line); }
.bar { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 1rem; }
.brand { display: flex; align-items: center; gap: .65rem; font-family: var(--font-display); font-size: 1.25rem; font-weight: 500; }
.brand b { font-weight: 700; color: var(--accent); }
.brand img { width: 40px; height: 40px; border-radius: 10px; object-fit: contain; background: #fff; }
.nav { display: flex; gap: 1.6rem; }
.nav a { font-size: .95rem; font-weight: 500; color: var(--muted); padding: .3rem 0; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); border-color: var(--accent); }
.bar-end { display: flex; align-items: center; gap: .6rem; }
.lang {
  border: 1.5px solid var(--line); background: transparent; color: var(--ink); border-radius: 999px;
  padding: .4rem .9rem; font-weight: 600; font-size: .85rem; cursor: pointer; font-family: inherit;
}
.lang:hover { border-color: var(--ink); }
.burger { display: none; width: 42px; height: 42px; border: 1.5px solid var(--line); border-radius: 12px; background: transparent; cursor: pointer; position: relative; }
.burger span { position: absolute; inset-inline: 11px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .2s; }
.burger span:first-child { top: 16px; } .burger span:last-child { top: 24px; }
.burger[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* Hero */
.hero { padding-top: clamp(28px, 5vw, 64px); }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.hero h1 em { font-style: normal; color: var(--accent); }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 34em; }
.badges { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.8rem; padding: 0; list-style: none; }
.badges li { background: var(--soft); border: 1px solid var(--line); border-radius: 999px; padding: .4rem .95rem; font-size: .86rem; font-weight: 500; }
.hero-img { position: relative; }
.hero-img img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 28px; box-shadow: var(--shadow); }
.hero-img::before {
  content: ""; position: absolute; inset: 7% -5% -5% 7%; border-radius: 28px; background: var(--accent-soft); z-index: -1;
}
html[dir="rtl"] .hero-img::before { inset: 7% 7% -5% -5%; }

/* Cards & grids */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.soft { background: var(--soft); }
.dark { background: var(--dark); color: #f4ede4; }
.dark .eyebrow { color: #e5aa6a; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.split img { border-radius: 24px; aspect-ratio: 4/3; object-fit: cover; width: 100%; box-shadow: var(--shadow); }
.pillar .num { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); font-weight: 700; margin-bottom: .9rem; }
.dark .pillar { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.12); }
.dark .pillar p { color: #cfc4b5; margin: 0; }
.dark .pillar .num { background: rgba(224,154,82,.18); color: #e5aa6a; }

/* Menu cards (home) */
.mcards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; margin-bottom: 2rem; }
.mcard { position: relative; border-radius: 22px; overflow: hidden; aspect-ratio: 4/5; display: flex; align-items: flex-end; box-shadow: var(--shadow); }
.mcard img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.mcard:hover img { transform: scale(1.05); }
.mcard::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(20,14,9,.78), rgba(20,14,9,0) 55%); }
.mcard h3 { position: relative; z-index: 1; color: #fff; margin: 0; padding: 1.3rem 1.4rem; font-size: 1.5rem; width: 100%; display: flex; justify-content: space-between; align-items: center; }
.mcard h3::after { content: "→"; font-family: var(--font-en); }
html[dir="rtl"] .mcard h3::after { content: "←"; }
.chips, #home-chips, #menu-tabs { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip {
  border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); border-radius: 999px;
  padding: .45rem 1rem; font-size: .9rem; font-weight: 500; cursor: pointer; font-family: inherit; transition: .15s;
}
.chip:hover { border-color: var(--accent); color: var(--accent); }
.chip.on { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.center { text-align: center; }
.section-head { max-width: 40rem; margin-bottom: 2.4rem; }

/* Locations & contact */
.loc-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 1.4rem; align-items: stretch; }
.branch h3 { margin-bottom: .3rem; }
#branches { display: grid; gap: 1rem; align-content: start; }
.map { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; min-height: 360px; background: var(--soft); }
.map iframe { width: 100%; height: 100%; min-height: 360px; border: 0; display: block; }
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(28px, 5vw, 64px); }
.info { list-style: none; padding: 0; margin: 1.6rem 0 0; display: grid; gap: 1.1rem; }
.info li b { display: block; font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 600; }
html[lang="ar"] .info li b { letter-spacing: 0; font-size: .85rem; }
.info a { font-weight: 600; }
.info a:hover { color: var(--accent); }
form.card { display: grid; gap: 1rem; padding: clamp(1.2rem, 3vw, 2rem); box-shadow: var(--shadow); }
.field { display: grid; gap: .35rem; }
.field label { font-size: .85rem; font-weight: 600; }
.field input, .field select, .field textarea {
  width: 100%; padding: .8rem 1rem; border-radius: 12px; border: 1.5px solid var(--line);
  background: var(--bg); color: var(--ink); font: inherit;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-status { min-height: 1.4em; font-size: .9rem; margin: 0; }
.form-status.ok { color: #2f7a3e; } .form-status.err { color: #b3261e; }
.hint { font-size: .85rem; color: var(--muted); margin: 0; }
.hint a { color: var(--accent); font-weight: 600; }

/* Page hero (menu / careers) */
.page-hero { padding: clamp(36px, 6vw, 72px) 0 1rem; }

/* Menu page */
.menu-bar { position: sticky; top: var(--header-h); z-index: 40; background: color-mix(in srgb, var(--bg) 94%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); padding: .8rem 0; }
.menu-bar .container { display: grid; gap: .7rem; }
#menu-tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
#menu-tabs::-webkit-scrollbar { display: none; }
#menu-tabs .chip { white-space: nowrap; flex: none; }
.search { width: 100%; padding: .75rem 1.1rem; border-radius: 999px; border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); font: inherit; }
.search:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
#menu-root { padding: 2rem 0 3rem; min-height: 50vh; }
.mcat { margin-bottom: 3rem; }
.mcat-title { font-size: clamp(1.8rem, 3.4vw, 2.5rem); margin-bottom: 1rem; }
.mgroup { margin-bottom: 2rem; }
.mgroup-title { font-family: var(--font-en); font-size: .85rem; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); font-weight: 700; margin: 0 0 .4rem; padding-bottom: .5rem; border-bottom: 2px solid var(--accent-soft); }
html[lang="ar"] .mgroup-title { font-family: var(--font-ar); letter-spacing: 0; font-size: 1.05rem; text-transform: none; }
.items { list-style: none; padding: 0; margin: 0; columns: 2; column-gap: 3rem; }
.item { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: .7rem 0; border-bottom: 1px dashed var(--line); break-inside: avoid; }
.iname { display: grid; line-height: 1.35; }
.n1 { font-weight: 600; }
.n2 { font-size: .82rem; color: var(--muted); }
.iprice { text-align: end; white-space: nowrap; font-variant-numeric: tabular-nums; }
.price b { font-weight: 700; }
.unit { font-size: .72rem; color: var(--muted); margin-inline-start: .3em; }
.sizes { display: inline-flex; gap: .8rem; }
.size { display: inline-grid; text-align: center; line-height: 1.2; }
.size i { font-style: normal; font-size: .68rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.size b { font-size: .92rem; }
#menu-empty { text-align: center; color: var(--muted); padding: 3rem 0; }

/* Footer */
.site-footer { background: var(--dark); color: #e9dfd1; padding: 64px 0 0; margin-top: 0; }
.foot { display: grid; grid-template-columns: 1.4fr 1fr 1.3fr 1fr; gap: 2rem; padding-bottom: 40px; }
.foot h4 { margin: 0 0 1rem; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: #e5aa6a; }
html[lang="ar"] .foot h4 { letter-spacing: 0; font-size: .95rem; }
.flist { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.flist a { color: #e9dfd1; } .flist a:hover { color: #fff; text-decoration: underline; }
.brand-foot { color: #fff; margin-bottom: .6rem; }
.site-footer .muted { color: #b8ab98; }
.legal { border-top: 1px solid rgba(255,255,255,.1); padding: 1.2rem 0; font-size: .85rem; color: #b8ab98; }
.cta-band { background: var(--accent); color: var(--accent-ink); border-radius: 28px; padding: clamp(28px, 5vw, 56px); display: flex; gap: 1.5rem; justify-content: space-between; align-items: center; flex-wrap: wrap; }
.cta-band h2 { margin: 0 0 .3rem; font-size: clamp(1.5rem, 3vw, 2.1rem); }
.cta-band p { margin: 0; opacity: .9; }
.cta-band .btn { background: var(--accent-ink); color: var(--accent); border-color: var(--accent-ink); }

/* Reveal */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .mcard img, .btn { transition: none; }
}

/* Responsive */
@media (max-width: 900px) {
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0; background: var(--bg); flex-direction: column; gap: 0;
    padding: .5rem 20px 1.2rem; border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    transform: translateY(-120%); transition: transform .25s; z-index: -1;
  }
  .nav.open { transform: none; }
  .nav a { padding: .9rem 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .burger { display: block; }
  .btn-call { display: none; }
  .hero-grid, .split, .loc-grid, .contact-grid { grid-template-columns: 1fr; }
  .hero-img { order: -1; max-width: 520px; }
  .grid-3, .mcards { grid-template-columns: 1fr; }
  .mcard { aspect-ratio: 16/10; }
  .foot { grid-template-columns: 1fr 1fr; }
  .items { columns: 1; }
}
@media (max-width: 520px) {
  .two { grid-template-columns: 1fr; }
  .foot { grid-template-columns: 1fr; }
  .item { flex-wrap: wrap; }
  .sizes { gap: .6rem; }
}
