/* ---------- Fonts (self-hosted, no third-party requests) ---------- */
/* Latin + Latin Extended (Kurmanji ş ê î û ç) */
@font-face {
  font-family: "Cormorant";
  src: url("/assets/fonts/cormorant.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Cormorant";
  src: url("/assets/fonts/cormorant-ext.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Cormorant";
  src: url("/assets/fonts/cormorant-italic.woff2") format("woff2");
  font-weight: 300 700;
  font-style: italic;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Cormorant";
  src: url("/assets/fonts/cormorant-italic-ext.woff2") format("woff2");
  font-weight: 300 700;
  font-style: italic;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Jost";
  src: url("/assets/fonts/jost.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Jost";
  src: url("/assets/fonts/jost-ext.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Arabic script (Arabic + Sorani) – only downloaded when needed */
@font-face {
  font-family: "Naskh Arabic";
  src: url("/assets/fonts/naskh-arabic.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}
@font-face {
  font-family: "Sans Arabic";
  src: url("/assets/fonts/sans-arabic.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}

/* ---------- Tokens ---------- */
:root {
  --ivory: #faf4e8;
  --ivory-2: #f4ebda;
  --paper: #fffdf8;
  --ink: #16130f;
  --ink-2: #2a241d;
  --text: #3b342b;
  --muted: #7d705f;
  --gold: #c09243;
  --gold-hi: #f1d898;
  --gold-deep: #7a5719;
  --line: rgba(160, 118, 45, 0.28);
  --line-soft: rgba(160, 118, 45, 0.16);
  --open: #2f7d4f;
  --soon: #b7791f;
  --closed: #a1453a;

  --gold-grad: linear-gradient(120deg, #8c6422 0%, #c99a48 28%, #f3dc9c 48%, #d4a752 62%, #8c6422 100%);
  --shadow-sm: 0 1px 2px rgba(60, 40, 10, 0.06), 0 2px 8px rgba(60, 40, 10, 0.05);
  --shadow-md: 0 2px 6px rgba(60, 40, 10, 0.06), 0 12px 32px -10px rgba(60, 40, 10, 0.22);

  --serif: "Cormorant", "Cormorant Garamond", "Didot", "Bodoni 72", Georgia, serif;
  --sans: "Jost", "Futura", "Avenir Next", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius: 16px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: light;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100svh;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  color: var(--text);
  background-color: var(--ivory);
  background-image:
    radial-gradient(120% 60% at 50% -10%, rgba(241, 216, 152, 0.45), transparent 60%),
    radial-gradient(80% 50% at 100% 100%, rgba(192, 146, 67, 0.12), transparent 70%),
    radial-gradient(80% 50% at 0% 80%, rgba(192, 146, 67, 0.08), transparent 70%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .45 0 0 0 0 .33 0 0 0 0 .15 0 0 0 .05 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
img { display: block; max-width: 100%; height: auto; }
:focus-visible { outline: 2px solid var(--gold-deep); outline-offset: 3px; border-radius: 8px; }

.ico { width: 20px; height: 20px; flex: none; }
.ico--sm { width: 14px; height: 14px; }

/* ---------- Frame ---------- */
.frame {
  position: relative;
  max-width: 480px;
  margin: 0 auto;
  padding:
    max(14px, env(safe-area-inset-top))
    max(14px, env(safe-area-inset-right))
    max(14px, env(safe-area-inset-bottom))
    max(14px, env(safe-area-inset-left));
}
.page {
  position: relative;
  padding: 22px 20px 28px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255, 253, 248, 0.55), rgba(255, 253, 248, 0.25));
}
.page::before {
  content: "";
  position: absolute;
  inset: 5px;
  border: 1px solid var(--line-soft);
  border-radius: 17px;
  pointer-events: none;
}

@media (min-width: 560px) {
  .frame { padding-top: 48px; padding-bottom: 48px; }
  .page { padding: 30px 34px 34px; box-shadow: var(--shadow-md); background: rgba(255, 253, 248, 0.6); }
}

/* ---------- Language switch ---------- */
.lang {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2px;
  width: fit-content;
  max-width: 100%;
  margin: 0 auto;
  padding: 3px;
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.7);
  box-shadow: inset 0 0 0 1px var(--line-soft);
}
.lang button {
  min-height: 30px;
  padding: 0 11px;
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 12.5px;
  line-height: 1;
  letter-spacing: .04em;
  color: var(--muted);
  transition: color .2s, background-color .2s;
}
.lang button[lang="ar"], .lang button[lang="ckb"] { font-family: "Sans Arabic", var(--sans); font-size: 13px; letter-spacing: 0; }
.lang button[aria-pressed="true"] {
  color: var(--gold-hi);
  background: var(--ink);
  font-weight: 500;
}
@media (hover: hover) {
  .lang button:not([aria-pressed="true"]):hover { color: var(--ink); }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  display: grid;
  justify-items: center;
  padding-top: 14px;
  text-align: center;
}
.halo {
  position: absolute;
  top: 4%;
  left: 50%;
  width: 92%;
  aspect-ratio: 1;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(241, 216, 152, 0.55), rgba(241, 216, 152, 0) 70%);
  filter: blur(6px);
  pointer-events: none;
}
.logo {
  position: relative;
  width: min(68vw, 250px);
  filter: drop-shadow(0 10px 18px rgba(90, 60, 15, 0.16));
}
.tagline {
  position: relative;
  margin: 14px 0 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: 19px;
  font-weight: 500;
  color: var(--ink-2);
  letter-spacing: .01em;
}

/* ---------- Status pill ---------- */
.status {
  display: flex;
  align-items: center;
  gap: 12px;
  width: fit-content;
  max-width: 100%;
  margin: 18px auto 0;
  padding-block: 10px;
  padding-inline: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  box-shadow: var(--shadow-sm);
  font-size: 14px;
  line-height: 1.3;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.status:active { transform: scale(.98); }
.status__text { display: flex; flex-wrap: wrap; column-gap: 6px; }
.status__text strong { font-weight: 500; color: var(--ink); }
.status__text span { color: var(--muted); }
.status__dot {
  position: relative;
  width: 9px;
  height: 9px;
  flex: none;
  border-radius: 50%;
  background: var(--muted);
  --c: var(--muted);
  background: var(--c);
}
.status[data-state="open"] .status__dot { --c: var(--open); }
.status[data-state="soon"] .status__dot { --c: var(--soon); }
.status[data-state="closed"] .status__dot { --c: var(--closed); }
.status[data-state="open"] .status__dot::after,
.status[data-state="soon"] .status__dot::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid var(--c);
  opacity: 0;
  animation: pulse 2.2s var(--ease) infinite;
}
@keyframes pulse {
  0% { transform: scale(.5); opacity: .7; }
  100% { transform: scale(1.6); opacity: 0; }
}

/* ---------- Primary actions ---------- */
.actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 24px;
}
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 56px;
  padding: 0 18px;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  isolation: isolate;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background-color .25s;
}
.btn:active { transform: scale(.97); }
.btn--dark {
  color: var(--gold-hi);
  background: linear-gradient(180deg, #24201a, var(--ink));
  box-shadow: inset 0 0 0 1px rgba(241, 216, 152, 0.22), var(--shadow-md);
}
.btn--gold {
  color: var(--ink);
  background: var(--gold-grad);
  background-size: 200% 100%;
  background-position: 0% 0;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35), var(--shadow-md);
  transition: background-position .8s var(--ease), transform .25s var(--ease);
}
/* sheen sweep */
.btn--dark::after,
.btn--gold::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, 0.28) 50%, transparent 65%);
  transform: translateX(-120%);
  animation: sheen 6s var(--ease) 1.4s infinite;
}
.btn--gold::after { animation-delay: 1.7s; }
@keyframes sheen {
  0%, 70% { transform: translateX(-120%); }
  85%, 100% { transform: translateX(120%); }
}
.btn--ghost {
  width: 100%;
  min-height: 50px;
  font-size: 13px;
  padding: 0 12px;
  letter-spacing: .05em;
  white-space: nowrap;
  color: var(--ink-2);
  background: var(--paper);
  box-shadow: inset 0 0 0 1px var(--line), var(--shadow-sm);
}
.phone-number {
  grid-column: 1 / -1;
  margin: 4px 0 0;
  text-align: center;
  font-size: 13px;
  letter-spacing: .12em;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

@media (hover: hover) {
  .btn:hover { transform: translateY(-2px); }
  .btn--gold:hover { background-position: 100% 0; }
  .btn--ghost:hover { box-shadow: inset 0 0 0 1px var(--gold), var(--shadow-md); }
  .status:hover { box-shadow: var(--shadow-md); }
}

/* ---------- Divider ---------- */
.divider {
  display: grid;
  place-items: center;
  margin: 28px 0 6px;
  color: var(--gold);
}
.divider svg { width: 150px; height: 12px; }

/* ---------- Sections ---------- */
.block { margin-top: 26px; }
.block h2 {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 12px;
  font-family: var(--serif);
  font-size: 25px;
  font-weight: 600;
  line-height: 1.1;
  color: var(--ink);
}
.block h2::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--line), transparent);
}

/* ---------- Link rows ---------- */
.links { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.link, .address {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 66px;
  padding-block: 10px;
  padding-inline: 10px 16px;
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: inset 0 0 0 1px var(--line-soft), var(--shadow-sm);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.link:active, .address:active { transform: scale(.985); }
.link__icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  flex: none;
  border-radius: 12px;
  color: var(--gold-hi);
  background: linear-gradient(160deg, #2b251d, var(--ink));
  box-shadow: inset 0 0 0 1px rgba(241, 216, 152, 0.18);
}
.link__body, .address__body { display: grid; flex: 1; min-width: 0; line-height: 1.25; }
.link__body strong, .address__body strong {
  font-weight: 500;
  font-size: 16px;
  color: var(--ink);
  letter-spacing: .01em;
}
.address__body strong { white-space: nowrap; }
.link__body span, .address__body span {
  font-size: 13.5px;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.link__arrow {
  width: 18px;
  height: 18px;
  flex: none;
  color: var(--gold);
  transition: transform .25s var(--ease), color .25s;
}
.address__cta {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--gold-deep);
  box-shadow: inset 0 0 0 1px var(--line);
}

@media (hover: hover) {
  .link:hover, .address:hover {
    transform: translateY(-2px);
    box-shadow: inset 0 0 0 1px var(--line), var(--shadow-md);
  }
  .link:hover .link__arrow { transform: translate(2px, -2px); color: var(--gold-deep); }
}

/* ---------- Hours ---------- */
.hours {
  list-style: none;
  margin: 0;
  padding: 6px 16px;
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: inset 0 0 0 1px var(--line-soft), var(--shadow-sm);
}
.hours li {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 11px 0;
  font-size: 15px;
  font-variant-numeric: tabular-nums;
}
.hours li + li { border-top: 1px dashed var(--line-soft); }
.hours .day { color: var(--ink-2); }
.hours .time { color: var(--text); text-align: end; white-space: nowrap; }
.hours .is-closed .time { color: var(--muted); font-style: italic; font-family: var(--serif); font-size: 16px; }
.hours .is-today { font-weight: 500; }
.hours .is-today .day { color: var(--ink); }
.hours .is-today::before {
  content: "";
  position: absolute;
  inset-inline-start: -16px;
  top: 50%;
  width: 3px;
  height: 22px;
  transform: translateY(-50%);
  border-start-end-radius: 3px;
  border-end-end-radius: 3px;
  background: var(--gold-grad);
}
.hours .badge {
  margin-inline-start: 8px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold-deep);
  background: rgba(241, 216, 152, 0.4);
  vertical-align: 2px;
}

/* ---------- Extras ---------- */
.extras {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 26px;
}

/* ---------- Footer ---------- */
.foot { margin-top: 8px; text-align: center; }
.foot .divider { margin-top: 22px; }
.foot p {
  margin: 8px 0 0;
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: max(24px, env(safe-area-inset-bottom));
  z-index: 10;
  padding: 12px 20px;
  border-radius: 999px;
  font-size: 14px;
  color: var(--gold-hi);
  background: var(--ink);
  box-shadow: var(--shadow-md);
  opacity: 0;
  transform: translate(-50%, 12px);
  pointer-events: none;
  transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Reveal on load ---------- */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  animation: rise .8s var(--ease) forwards;
  animation-delay: calc(var(--i, 0) * 80ms + 60ms);
}
@keyframes rise { to { opacity: 1; transform: none; } }

/* ---------- Arabic script & RTL ---------- */
:lang(ar), :lang(ckb) {
  --serif: "Naskh Arabic", "Cormorant", Georgia, serif;
  --sans: "Sans Arabic", "Jost", system-ui, sans-serif;
}
:lang(ar) *, :lang(ckb) * { letter-spacing: 0 !important; }
:lang(ar) .tagline, :lang(ckb) .tagline,
:lang(ar) .hours .is-closed .time, :lang(ckb) .hours .is-closed .time { font-style: normal; }
:lang(ar) .block h2, :lang(ckb) .block h2 { font-size: 23px; line-height: 1.5; }
:lang(ar) .tagline, :lang(ckb) .tagline { font-size: 17px; line-height: 1.7; }
[dir="rtl"] .link__body span, [dir="rtl"] .address__body { text-align: right; }
[dir="rtl"] .block h2::after { background: linear-gradient(270deg, var(--line), transparent); }
[dir="rtl"] .link__arrow, [dir="rtl"] .address__cta .ico { transform: scaleX(-1); }
@media (hover: hover) {
  [dir="rtl"] .link:hover .link__arrow { transform: scaleX(-1) translate(2px, -2px); }
}
.ltr { direction: ltr; unicode-bidi: isolate; }

/* ---------- Small phones ---------- */
@media (max-width: 420px) {
  .extras { grid-template-columns: 1fr; }
  .address__cta { padding: 8px; }
  .address__cta span { display: none; }
}
@media (max-width: 360px) {
  .page { padding-left: 14px; padding-right: 14px; }
  .lang { gap: 0; padding: 2px; }
  .lang button { padding: 0 6.5px; font-size: 11.5px; letter-spacing: 0; }
  .btn { padding: 0 12px; font-size: 14px; letter-spacing: .04em; }
  .hours li { font-size: 14px; }
  .hours .badge { display: none; }
}

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