/* OroodMix — design tokens and components. Brand navy is sampled from the approved logo (#081F3B). */
@font-face {
  font-family: "Readex Pro";
  font-style: normal;
  font-display: swap;
  font-weight: 160 700;
  src: url(/fonts/readex-pro-arabic-wght-normal.woff2) format("woff2-variations");
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-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: "Readex Pro";
  font-style: normal;
  font-display: swap;
  font-weight: 160 700;
  src: url(/fonts/readex-pro-latin-wght-normal.woff2) format("woff2-variations");
  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+20C1, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --ink: #081F3B;        /* logo navy: text, actions */
  --ink-soft: #46546A;   /* secondary text, 7.0:1 on paper */
  --paper: #F2F4F7;      /* cool page ground */
  --surface: #FFFFFF;
  --line: #D3DAE4;
  --apricot: #FFD4A6;    /* the benefit, always with ink text */
  --apricot-deep: #F6B678;
  --go: #12603B;         /* active status */
  --late: #7A3E00;       /* upcoming status */
  --off: #5A6270;        /* ended */
  --focus: #1F5FD1;
  --r-s: 8px;
  --r-m: 14px;
  --space: clamp(16px, 4vw, 40px);
  --font: "Readex Pro", "Segoe UI", Tahoma, system-ui, sans-serif;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  text-rendering: optimizeLegibility;
}
[dir="ltr"] body { line-height: 1.55; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
main:focus { outline: none; }
h1, h2, h3 { line-height: 1.25; margin: 0 0 0.5em; font-weight: 650; letter-spacing: 0; }
[dir="ltr"] h1, [dir="ltr"] h2 { letter-spacing: -0.015em; }
h1 { font-size: clamp(1.75rem, 1.2rem + 2.2vw, 2.75rem); }
h2 { font-size: clamp(1.25rem, 1.05rem + 0.8vw, 1.6rem); }
h3 { font-size: 1.0625rem; }
p { margin: 0 0 1em; }
bdi { unicode-bidi: isolate; }

.sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; inset-inline-start: 12px; top: -60px; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: var(--r-s); z-index: 10; }
.skip:focus { top: 12px; }
.wrap { max-width: 1280px; margin-inline: auto; padding-inline: var(--space); }
.page { padding-block: clamp(24px, 5vw, 56px); }
.narrow { max-width: 760px; }
.muted { color: var(--ink-soft); }

/* Buttons — 44px minimum target */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 20px; border-radius: 999px;
  font: inherit; font-weight: 600; font-size: 0.975rem; text-decoration: none; cursor: pointer;
  border: 1.5px solid var(--ink); transition: background-color 150ms, color 150ms;
}
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: #12325C; text-decoration: none; }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--surface); text-decoration: none; }

/* Header */
.site-header { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; }
.header-row { display: flex; align-items: center; gap: 20px; min-height: 68px; }
.logo { flex: none; display: block; }
.logo img { width: 148px; height: auto; }
.header-search { flex: 1; display: flex; max-width: 440px; }
.header-search input {
  flex: 1; min-width: 0; min-height: 44px; font: inherit; font-size: 0.95rem; color: var(--ink);
  background: var(--paper); border: 1px solid var(--line); border-start-start-radius: 999px; border-end-start-radius: 999px;
  border-inline-end: 0; padding-inline: 18px;
}
.header-search button {
  min-height: 44px; font: inherit; font-weight: 600; padding-inline: 16px; color: #fff; background: var(--ink);
  border: 0; border-start-end-radius: 999px; border-end-end-radius: 999px; cursor: pointer;
}
.header-nav { display: flex; align-items: center; gap: 18px; margin-inline-start: auto; font-size: 0.95rem; }
.header-nav a:not(.btn) { text-decoration: none; padding-block: 10px; }
.header-nav a:not(.btn):hover { text-decoration: underline; }
.market-chip { border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; font-size: 0.875rem; color: var(--ink-soft); }

/* Hero: the slogan is the type event of the page */
.hero { background: var(--surface); border-bottom: 1px solid var(--line); padding-block: clamp(32px, 7vw, 88px) clamp(28px, 5vw, 64px); overflow: hidden; }
.slogan {
  font-size: clamp(3rem, 1.6rem + 7vw, 7.5rem); font-weight: 700; line-height: 1.02; margin: 0 0 0.25em;
  color: var(--ink); max-width: 12ch;
}
[dir="ltr"] .slogan { letter-spacing: -0.04em; max-width: 14ch; }
.hero h1 { font-size: clamp(1.25rem, 1rem + 1vw, 1.75rem); font-weight: 500; max-width: 34ch; }
.hero .lead { color: var(--ink-soft); max-width: 56ch; font-size: 1.0625rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }

/* Search */
.search { margin-block: 20px; max-width: 680px; }
.search-label { display: block; font-weight: 600; margin-bottom: 8px; }
.search-row { display: flex; gap: 8px; }
.search input {
  flex: 1; min-width: 0; min-height: 52px; font: inherit; font-size: 1.0625rem; color: var(--ink);
  background: var(--surface); border: 1.5px solid var(--ink); border-radius: 999px; padding-inline: 22px;
}
.search-big input { min-height: 58px; }
.search-big .btn { min-height: 58px; padding-inline: 28px; }
.header-search input:focus-visible, .search input:focus-visible { outline: 3px solid var(--focus); outline-offset: 1px; }

/* Category strip — scrolls on phones, wraps on desktop */
.cat-strip { margin-block: 24px 8px; }
.cat-strip ul { list-style: none; margin: 0; padding: 0 0 6px; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: thin; }
.cat-strip a {
  display: inline-flex; align-items: center; min-height: 40px; white-space: nowrap; padding: 6px 16px;
  border: 1px solid var(--line); border-radius: 999px; background: var(--surface); text-decoration: none; font-size: 0.925rem;
}
.cat-strip a:hover { border-color: var(--ink); }
.cat-strip a[aria-current="page"] { background: var(--ink); border-color: var(--ink); color: #fff; }
@media (min-width: 1024px) { .cat-strip ul { flex-wrap: wrap; overflow: visible; } }

.section-h { margin-top: 32px; }
.count { color: var(--ink-soft); font-size: 0.925rem; }

/* Offer card: a coupon — content panel plus a perforated benefit stub */
.offer-grid { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .offer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .offer-grid { grid-template-columns: repeat(3, 1fr); } }
.offer-card { --notch: 9px; position: relative; }
.offer-link {
  display: grid; grid-template-columns: 1fr auto; grid-template-areas: "status stub" "title stub" "org stub" "meta stub";
  height: 100%; text-decoration: none; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-m);
  padding: 18px; column-gap: 18px; transition: border-color 150ms;
}
.offer-link:hover { border-color: var(--ink); text-decoration: none; }
.offer-link:hover .offer-title { text-decoration: underline; text-decoration-thickness: 1px; }
.offer-card .badge { grid-area: status; justify-self: start; }
.offer-title { grid-area: title; margin: 8px 0 4px; font-size: 1.0625rem; font-weight: 600; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.offer-org { grid-area: org; font-size: 0.925rem; }
.offer-meta { grid-area: meta; font-size: 0.875rem; color: var(--ink-soft); margin-top: 6px; }
.offer-card .benefit {
  grid-area: stub; align-self: stretch; display: flex; align-items: center; justify-content: center; text-align: center;
  width: 96px; margin-block: -18px; margin-inline-end: -18px; padding: 12px 10px;
  background: var(--apricot); color: var(--ink); font-weight: 700; font-size: 1.05rem; line-height: 1.25;
  border-start-end-radius: var(--r-m); border-end-end-radius: var(--r-m);
  border-inline-start: 2px dashed var(--ink);
  /* the two punched notches of a tear line */
  -webkit-mask: radial-gradient(circle var(--notch) at var(--nx) 0, #0000 98%, #000) top / 100% 51% no-repeat,
                radial-gradient(circle var(--notch) at var(--nx) 100%, #0000 98%, #000) bottom / 100% 51% no-repeat;
          mask: radial-gradient(circle var(--notch) at var(--nx) 0, #0000 98%, #000) top / 100% 51% no-repeat,
                radial-gradient(circle var(--notch) at var(--nx) 100%, #0000 98%, #000) bottom / 100% 51% no-repeat;
}
[dir="rtl"] .offer-card .benefit { --nx: 100%; }
[dir="ltr"] .offer-card .benefit { --nx: 0; }

.badge { display: inline-block; font-size: 0.8125rem; font-weight: 600; padding: 2px 10px; border-radius: 999px; border: 1px solid currentColor; }
.badge-active { color: var(--go); }
.badge-upcoming { color: var(--late); }
.badge-expired, .badge-blocked { color: var(--off); }

/* Offer page */
.offer-page { max-width: 860px; }
.offer-head { border-bottom: 1px solid var(--line); padding-bottom: 20px; margin-bottom: 24px; }
.offer-head h1 { margin-top: 12px; }
.offer-by { color: var(--ink-soft); }
.offer-by a { color: var(--ink); font-weight: 600; }
.benefit-lg { display: inline-block; background: var(--apricot); padding: 6px 16px; border-radius: var(--r-s); font-weight: 700; font-size: 1.25rem; }
.offer-page section { margin-bottom: 28px; }
.price { font-size: 1.5rem; font-weight: 700; }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 6px 20px; margin: 0; }
.facts dt { color: var(--ink-soft); }
.facts dd { margin: 0; }
.offer-page h3 { margin-top: 20px; }
.hint { display: block; font-size: 0.875rem; color: var(--ink-soft); margin-top: 8px; }
.disclaimer { font-size: 0.925rem; color: var(--ink-soft); border-top: 1px solid var(--line); padding-top: 16px; }
.disclaimer a { color: inherit; }
.org-head { margin-bottom: 28px; }

/* Empty, pager, lists */
.empty { background: var(--surface); border: 1.5px dashed var(--line); border-radius: var(--r-m); padding: clamp(24px, 5vw, 48px); margin-top: 16px; max-width: 760px; }
.empty p { color: var(--ink-soft); max-width: 60ch; }
.pager { display: flex; gap: 20px; align-items: center; justify-content: center; margin-block: 28px; }
.pager a { min-height: 44px; display: inline-flex; align-items: center; padding-inline: 12px; }
.checks { padding-inline-start: 1.2em; }
.checks li { margin-bottom: 6px; }
.lead { font-size: 1.125rem; }

/* Footer */
.site-footer { background: var(--ink); color: #fff; margin-top: 64px; padding-block: 40px; }
.footer-grid { display: grid; gap: 24px; grid-template-columns: 1fr; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 2fr 1fr; } }
.footer-slogan { font-size: 1.5rem; font-weight: 700; margin-bottom: 8px; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.footer-links a { display: inline-block; padding-block: 8px; }
.site-footer :focus-visible { outline-color: var(--apricot); }

/* Phones: header becomes two rows; search takes full width */
@media (max-width: 860px) {
  .header-row { flex-wrap: wrap; gap: 10px 14px; padding-block: 10px; }
  .header-search { order: 3; flex-basis: 100%; max-width: none; }
  .header-nav { gap: 12px; }
  .header-nav .nav-secondary { display: none; }
  .header-nav .btn { min-height: 40px; padding: 6px 14px; font-size: 0.875rem; }
  .logo img { width: 120px; }
}
@media (max-width: 380px) { .header-nav .btn { display: none; } }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
@media print { .site-header, .site-footer, .search, .cat-strip { display: none; } }

/* Slogan on one line from tablet up */
@media (min-width: 768px) { .slogan { max-width: none; } }

/* Offer actions + availability feedback */
.offer-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 24px; }
.offer-actions .btn[aria-pressed="true"], .fb-form .btn[aria-pressed="true"] { background: var(--ink); color: #fff; }
.js-toast, .fb-status { font-size: 0.925rem; color: var(--go); }
.feedback { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-m); padding: 18px 20px; }
.fb-h { font-size: 1.0625rem; }
.fb-form { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.btn:disabled { opacity: 0.55; cursor: default; }
.base-price { font-size: 1rem; font-weight: 400; color: var(--ink-soft); margin-inline-start: 10px; }

/* Saved list */
.saved-list { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 10px; max-width: 760px; }
.saved-list li { display: grid; grid-template-columns: 1fr auto; grid-template-areas: "t b" "o b"; align-items: center; gap: 2px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-m); padding: 14px 16px; }
.saved-list a { grid-area: t; font-weight: 600; }
.saved-list .muted { grid-area: o; font-size: 0.9rem; }
.saved-list .btn { grid-area: b; }

/* Bottom navigation (phones) */
.bottom-nav { display: none; }
@media (max-width: 860px) {
  body { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
  .bottom-nav {
    display: grid; grid-template-columns: repeat(4, 1fr); position: fixed; inset-inline: 0; bottom: 0; z-index: 6;
    background: var(--surface); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom);
  }
  .bottom-nav a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 60px; font-size: 0.78rem; text-decoration: none; color: var(--ink-soft); }
  .bottom-nav a[aria-current="page"] { color: var(--ink); font-weight: 600; }
  .bottom-nav a[aria-current="page"] .ico { background: var(--ink); }
  .site-footer { margin-top: 40px; }
}
.ico { width: 22px; height: 22px; background: var(--ink-soft); -webkit-mask: var(--i) center / contain no-repeat; mask: var(--i) center / contain no-repeat; }
.ico-home { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linejoin='round'%3E%3Cpath d='M4 10.5 12 4l8 6.5V20h-5.5v-6h-5v6H4z'/%3E%3C/svg%3E"); }
.ico-explore { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round'%3E%3Ccircle cx='10.5' cy='10.5' r='6'/%3E%3Cpath d='m15 15 5 5'/%3E%3C/svg%3E"); }
.ico-saved { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linejoin='round'%3E%3Cpath d='M6 4h12v16l-6-4-6 4z'/%3E%3C/svg%3E"); }
.ico-business { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linejoin='round'%3E%3Cpath d='M4 9h16l-1.5-5h-13zM5 9v11h14V9M10 20v-6h4v6'/%3E%3C/svg%3E"); }
