/* Shots café site. Brand: cream ground, dark-coffee ink, caramel accent (same as the printed menu). Mobile first. */
@font-face { font-family: "Plex Arabic"; src: url(fonts/plex-400.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Plex Arabic"; src: url(fonts/plex-600.woff2) format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Plex Arabic"; src: url(fonts/plex-700.woff2) format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: Anton; src: url(fonts/anton.woff2) format("woff2"); font-display: swap; }

:root {
  --cream: #f3e9d8; --paper: #ecdfca; --chip: #e2d2b8; --ink: #411e0b; --ink-2: #2c1407; --soft: #6e5546;
  --accent: #a0683c; --on-ink: #f6efe4; --on-ink-soft: #d9c6ad; --line: rgba(65, 30, 11, .16);
  --body: "Plex Arabic", "Segoe UI", Tahoma, Arial, sans-serif;
  --display: Anton, "Plex Arabic", Impact, sans-serif;
  --r: 18px; --gutter: 16px; --head: 60px;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--head) + 64px); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--cream); color: var(--ink); font-family: var(--body); font-size: 16px; line-height: 1.55; overflow-x: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2.5px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
.wrap { width: min(1120px, 100%); margin: 0 auto; padding-inline: var(--gutter); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.en-font { font-family: var(--display); letter-spacing: .5px; }

/* header */
.top { position: sticky; top: 0; z-index: 30; background: rgba(243, 233, 216, .92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top .wrap { height: var(--head); display: flex; align-items: center; gap: 18px; }
.brand svg { height: 26px; width: auto; display: block; }
.top nav { display: none; gap: 22px; margin-inline-start: 12px; }
.top nav a { text-decoration: none; font-weight: 600; font-size: 15px; color: var(--soft); }
.top nav a:hover { color: var(--ink); }
.top .end { margin-inline-start: auto; display: flex; align-items: center; gap: 10px; }
.lang { text-decoration: none; font-weight: 700; font-size: 14px; padding: 7px 12px; border-radius: 999px; border: 1.5px solid var(--line); }
@media (min-width: 820px) { .top nav { display: flex; } }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 999px; border: 0; cursor: pointer; text-decoration: none; font-weight: 700; font-size: 16px; white-space: nowrap; }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn.solid { background: var(--ink); color: var(--on-ink); }
.btn.cream { background: var(--on-ink); color: var(--ink); }
.btn.ghost { background: transparent; color: inherit; box-shadow: inset 0 0 0 1.5px currentColor; }
.btn.small { min-height: 38px; padding: 0 16px; font-size: 14px; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }

/* hero */
.hero { background: var(--ink); color: var(--on-ink); overflow: hidden; }
.hero .wrap { display: grid; gap: 28px; padding-block: 40px 44px; align-items: center; }
.eyebrow { font-weight: 700; font-size: 14px; letter-spacing: 3px; text-transform: uppercase; color: var(--on-ink-soft); margin: 0 0 10px; }
.hero h1 { margin: 0; font-weight: 700; font-size: clamp(38px, 9vw, 68px); line-height: 1.12; text-wrap: balance; }
html[lang=en] .hero h1 { font-family: var(--display); font-weight: 400; text-transform: uppercase; letter-spacing: 1px; line-height: 1.02; }
.hero p.lead { margin: 16px 0 0; font-size: 18px; color: var(--on-ink-soft); max-width: 34em; }
.hero .cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.hero figure { margin: 0; border-radius: 24px; overflow: hidden; aspect-ratio: 4 / 5; background: var(--ink-2); max-height: 560px; }
.hero figure img { width: 100%; height: 100%; object-fit: cover; }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 30px; }
.fact { background: rgba(246, 239, 228, .08); border-radius: 14px; padding: 12px; }
.fact b { display: block; font-size: 18px; line-height: 1.2; }
@media (min-width: 420px) { .fact b { font-size: 20px; } }
.fact span { font-size: 13px; color: var(--on-ink-soft); line-height: 1.35; display: block; }
@media (min-width: 820px) { .hero .wrap { grid-template-columns: 1.15fr .85fr; padding-block: 64px; gap: 56px; } }

/* sections */
section.block { padding-block: 56px; }
.title { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 22px; }
.title h2 { margin: 0; font-size: clamp(30px, 6vw, 44px); line-height: 1.1; font-weight: 700; }
html[lang=en] .title h2 { font-family: var(--display); font-weight: 400; text-transform: uppercase; letter-spacing: 1px; }
.title .alt { font-weight: 600; color: var(--soft); font-size: 17px; }
.title p { margin: 6px 0 0; color: var(--soft); flex-basis: 100%; }

/* menu */
.menu-tools { position: sticky; top: var(--head); z-index: 20; background: var(--cream); padding-block: 10px; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); border-bottom: 1px solid transparent; }
.menu-tools.stuck { border-bottom-color: var(--line); }
.search { display: flex; align-items: center; gap: 10px; background: #fff8ee; border: 1.5px solid var(--line); border-radius: 999px; padding: 0 16px; height: 46px; }
.search svg { width: 20px; height: 20px; color: var(--soft); flex: none; }
.search input { border: 0; background: transparent; outline: 0; flex: 1; min-width: 0; font-size: 16px; }
.chips { display: flex; gap: 8px; overflow-x: auto; padding-top: 10px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; text-decoration: none; background: var(--chip); border-radius: 999px; padding: 7px 14px; font-weight: 600; font-size: 14px; white-space: nowrap; }
.chip.on { background: var(--ink); color: var(--on-ink); }
.cats { margin-top: 18px; }
.cat { break-inside: avoid; margin-bottom: 34px; }
@media (min-width: 820px) { .cats { columns: 2; column-gap: 48px; } }
.cat h3 { margin: 0; display: flex; align-items: baseline; justify-content: space-between; gap: 10px; border-bottom: 2px solid var(--ink); padding-bottom: 6px; font-size: 22px; }
html[lang=en] .cat h3 { font-family: var(--display); font-weight: 400; text-transform: uppercase; letter-spacing: 1px; font-size: 25px; }
.cat h3 small { font-family: var(--body); font-size: 15px; font-weight: 600; color: var(--soft); text-transform: none; letter-spacing: 0; }
.cat ul { list-style: none; margin: 0; padding: 0; }
.item { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px dashed var(--line); }
.item .nm { flex: 1; min-width: 0; }
.item .nm b { display: block; font-weight: 600; font-size: 16.5px; line-height: 1.3; }
.item .nm span { display: block; font-size: 13.5px; color: var(--soft); line-height: 1.3; }
.prices { display: flex; gap: 6px; flex: none; }
.price { position: relative; display: inline-flex; flex-direction: column; align-items: center; justify-content: center; min-width: 58px; min-height: 44px; padding: 3px 10px; border-radius: 12px; border: 1.5px solid var(--line); background: #fff8ee; font-weight: 700; font-size: 16px; line-height: 1.1; font-variant-numeric: tabular-nums; }
button.price { cursor: pointer; }
button.price:hover { border-color: var(--ink); }
.price small { font-size: 11.5px; font-weight: 600; color: var(--soft); }
.price .q { position: absolute; top: -8px; inset-inline-end: -6px; min-width: 21px; height: 21px; padding: 0 5px; border-radius: 999px; background: var(--accent); color: #fff; font-size: 12px; display: none; align-items: center; justify-content: center; }
.price.has .q { display: inline-flex; }
.price.has { border-color: var(--accent); }
.empty { display: none; padding: 24px 0; color: var(--soft); text-align: center; }
.menu-foot { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; color: var(--soft); font-size: 14px; }

/* gallery */
.gallery { background: var(--paper); }
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.grid figure { margin: 0; border-radius: 16px; overflow: hidden; aspect-ratio: 1; background: var(--chip); }
.grid figure:first-child, .grid.m-odd figure:last-child { grid-column: span 2; aspect-ratio: 16 / 10; }
.grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.grid figure:hover img { transform: scale(1.03); }
@media (min-width: 820px) {
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid figure:first-child, .grid.m-odd figure:last-child { grid-column: auto; aspect-ratio: 1; }
  .grid.d-feature { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .grid.d-feature figure:first-child { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
}

/* draft-only: marked gaps waiting for the client */
.gap { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 12px; text-align: center; border: 2px dashed rgba(160, 104, 60, .7); border-radius: inherit; width: 100%; height: 100%; color: var(--accent); font-weight: 600; font-size: 14px; line-height: 1.35; background: repeating-linear-gradient(135deg, transparent 0 14px, rgba(160, 104, 60, .06) 14px 28px); }
.gap svg { width: 30px; height: 30px; }
.gap small { font-weight: 500; opacity: .85; }
.hero .gap { color: var(--on-ink-soft); border-color: rgba(217, 198, 173, .5); }
.gap-inline { display: inline-block; padding: 1px 8px; border: 1.5px dashed var(--accent); border-radius: 8px; color: var(--accent); font-weight: 600; font-size: .9em; }

/* loyalty */
.loyal .wrap { display: grid; gap: 30px; align-items: center; }
@media (min-width: 820px) { .loyal .wrap { grid-template-columns: .9fr 1.1fr; gap: 56px; } }
.card { background: var(--ink); color: var(--on-ink); border-radius: 22px; padding: 22px; aspect-ratio: 1.586; max-width: 440px; width: 100%; display: flex; flex-direction: column; justify-content: space-between; box-shadow: 0 18px 40px -18px rgba(44, 20, 7, .6); position: relative; overflow: hidden; }
.card::after { content: ""; position: absolute; inset: auto -40px -60px auto; width: 200px; height: 200px; border-radius: 50%; background: rgba(160, 104, 60, .25); }
.card .row { display: flex; justify-content: space-between; align-items: center; position: relative; z-index: 1; }
.card svg.logo { height: 22px; width: auto; }
.card .lbl { font-size: 13px; color: var(--on-ink-soft); font-weight: 600; }
.stamps { display: flex; gap: 8px; position: relative; z-index: 1; }
.stamp { flex: 1; aspect-ratio: 1; max-width: 58px; border-radius: 50%; border: 2px dashed rgba(246, 239, 228, .45); display: grid; place-items: center; }
.stamp.on { background: var(--on-ink); border: 0; color: var(--ink); }
.stamp.gift { border-style: solid; border-color: var(--accent); color: var(--accent); }
.stamp svg { width: 55%; height: 55%; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; counter-reset: s; }
.steps li { display: flex; gap: 14px; align-items: flex-start; }
.steps li::before { counter-increment: s; content: counter(s); flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--ink); color: var(--on-ink); display: grid; place-items: center; font-weight: 700; }
.steps b { display: block; font-size: 17px; }
.steps span { color: var(--soft); font-size: 15px; }
.fine { margin-top: 16px; font-size: 13.5px; color: var(--soft); }

/* visit */
.visit { background: var(--paper); }
.visit .wrap { display: grid; gap: 24px; }
@media (min-width: 820px) { .visit .wrap { grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: start; } .visit .title { grid-column: 1 / -1; margin-bottom: 0; } }
.info { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.info li { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.info li > svg { width: 24px; height: 24px; flex: none; margin-top: 2px; color: var(--accent); }
.info b { display: block; font-size: 14px; color: var(--soft); font-weight: 600; }
.info span, .info a { font-size: 17px; font-weight: 600; text-decoration: none; }
.hours { display: grid; grid-template-columns: auto auto; gap: 2px 18px; font-size: 16px; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.map { border-radius: var(--r); overflow: hidden; aspect-ratio: 4 / 3; background: var(--chip); }
.map iframe { width: 100%; height: 100%; border: 0; display: block; }
.socials { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 22px; }
.soc { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 14px 6px; border-radius: 16px; background: var(--cream); text-decoration: none; font-weight: 700; font-size: 14px; text-align: center; }
.soc svg { width: 26px; height: 26px; }
.soc small { font-weight: 500; color: var(--soft); font-size: 12px; direction: ltr; }

footer.foot { background: var(--ink); color: var(--on-ink-soft); padding-block: 34px 110px; font-size: 14px; }
footer.foot .wrap { display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: center; justify-content: space-between; }
footer.foot svg { height: 24px; width: auto; }
footer.foot a { color: var(--on-ink); }

/* order bar + sheet */
.bar { position: fixed; inset-inline: 12px; bottom: max(12px, env(safe-area-inset-bottom)); z-index: 40; display: none; }
.bar.show { display: block; }
.bar button { width: min(560px, 100%); margin: 0 auto; display: flex; align-items: center; gap: 12px; min-height: 58px; padding: 0 10px 0 18px; border: 0; border-radius: 999px; background: var(--ink); color: var(--on-ink); box-shadow: 0 14px 30px -10px rgba(44, 20, 7, .55); cursor: pointer; font-weight: 700; }
html[dir=rtl] .bar button { padding: 0 18px 0 10px; }
.bar .n { background: var(--accent); color: #fff; min-width: 28px; height: 28px; border-radius: 999px; display: grid; place-items: center; font-size: 14px; padding: 0 6px; }
.bar .t { margin-inline-start: auto; background: var(--on-ink); color: var(--ink); border-radius: 999px; padding: 9px 16px; }
dialog.sheet { border: 0; padding: 0; margin: auto auto 0; width: min(560px, 100%); max-width: 100%; max-height: 92dvh; border-radius: 24px 24px 0 0; background: var(--cream); color: var(--ink); }
@media (min-width: 620px) { dialog.sheet { margin: auto; border-radius: 24px; } }
dialog.sheet::backdrop { background: rgba(44, 20, 7, .5); }
.sheet form { display: flex; flex-direction: column; max-height: 92dvh; }
.sheet header { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px 10px; }
.sheet header h2 { margin: 0; font-size: 22px; }
.x { width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--chip); cursor: pointer; display: grid; place-items: center; }
.x svg { width: 20px; height: 20px; }
.sheet .body { overflow-y: auto; padding: 0 20px 12px; }
.lines { list-style: none; margin: 0; padding: 0; }
.line { display: flex; align-items: center; gap: 10px; padding: 12px 0; border-bottom: 1px dashed var(--line); }
.line .nm { flex: 1; min-width: 0; font-weight: 600; line-height: 1.3; }
.line .nm small { display: block; color: var(--soft); font-weight: 500; }
.qty { display: flex; align-items: center; gap: 4px; }
.qty button { width: 34px; height: 34px; border-radius: 50%; border: 1.5px solid var(--line); background: #fff8ee; cursor: pointer; font-size: 18px; font-weight: 700; line-height: 1; }
.qty output { min-width: 22px; text-align: center; font-weight: 700; }
.line .sum { min-width: 54px; text-align: end; font-weight: 700; font-variant-numeric: tabular-nums; }
.total { display: flex; justify-content: space-between; font-weight: 700; font-size: 18px; padding: 14px 0 6px; }
.field { display: grid; gap: 6px; margin-top: 14px; }
.field > span { font-weight: 600; font-size: 14px; color: var(--soft); }
.field input, .field textarea { border: 1.5px solid var(--line); background: #fff8ee; border-radius: 12px; padding: 11px 14px; font-size: 16px; width: 100%; }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; background: var(--chip); padding: 4px; border-radius: 14px; }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; inset: 0; }
.seg span { display: block; text-align: center; padding: 10px; border-radius: 10px; font-weight: 600; cursor: pointer; }
.seg input:checked + span { background: var(--cream); box-shadow: 0 1px 3px rgba(44, 20, 7, .15); }
.seg input:focus-visible + span { outline: 2.5px solid var(--accent); }
.sheet footer { padding: 12px 20px max(16px, env(safe-area-inset-bottom)); border-top: 1px solid var(--line); display: grid; gap: 8px; }
.sheet footer .btn { width: 100%; }
.sheet footer p { margin: 0; font-size: 13px; color: var(--soft); text-align: center; }
.wa { background: #1f7a4d; color: #fff; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .grid img { transition: none; } }
/* a single gallery photo: one tall frame, not a lonely tile */
.grid.one { grid-template-columns: minmax(0, 1fr); max-width: 460px; }
.grid.one figure:first-child { grid-column: auto; grid-row: auto; aspect-ratio: 4 / 5; }
