/* HalalFood.Com — Worldwide directory.
   Uses the site's own tokens: green #1a6b3c / #134f2d, gold #c8a84b, orange #f97316,
   Playfair Display for headings, DM Sans for everything else. */

:root {
  --green: #1a6b3c;
  --green-dark: #134f2d;
  --green-tint: #f0faf5;
  --gold: #c8a84b;
  --orange: #f97316;
  --ink: #1a1a1a;
  --body-text: #374151;
  --muted: #6b7280;
  --border: #e5e7eb;
  --radius: 14px;
  --wrap: 1120px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body.hf-world {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font-family: 'DM Sans', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

.wrap { width: min(var(--wrap), 100% - 40px); margin-inline: auto; }

a { color: var(--green); }
a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
  border-radius: 4px;
}

h1, h2, h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  line-height: 1.15;
  margin: 0;
  color: var(--green-dark);
}

.eyebrow {
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0;
}

/* ---------- Hero ---------- */

.hero {
  background: linear-gradient(135deg, var(--green-dark), var(--green));
  color: #fff;
  padding: clamp(34px, 6vw, 56px) 0 clamp(30px, 5vw, 46px);
}

.hero h1 {
  color: #fff;
  font-weight: 900;
  font-size: clamp(30px, 5.6vw, 50px);
  margin: 6px 0 0;
}
.hero h1 em { font-style: normal; color: var(--gold); }
.hero .eyebrow { color: rgba(255, 255, 255, .72); }

.hero p.lede {
  color: rgba(255, 255, 255, .9);
  max-width: 62ch;
  margin: 14px 0 0;
  font-size: 17px;
  line-height: 1.75;
}

/* Gold-marked data strip under the country name */
.latitude {
  margin: 22px 0 0;
  border-top: 1px solid rgba(255, 255, 255, .25);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 26px;
  padding-top: 12px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .8);
}
.latitude span { display: inline-flex; align-items: center; gap: 8px; }
.latitude span::before {
  content: "";
  width: 6px; height: 6px;
  background: var(--gold);
  border-radius: 50%;
}

.crumbs { font-size: 13px; color: rgba(255, 255, 255, .7); }
.crumbs a { color: rgba(255, 255, 255, .9); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.crumbs i { font-style: normal; opacity: .55; padding: 0 7px; }

/* ---------- Search panel ---------- */

.search-panel {
  margin: -30px auto 0;
  position: relative;
  z-index: 2;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 8px 30px rgba(19, 79, 45, .12);
  padding: 16px;
}

.scopes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  background: var(--green-tint);
  border-radius: 50px;
  padding: 5px;
}

.scope {
  appearance: none;
  border: 0;
  background: transparent;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--green-dark);
  padding: 11px 8px;
  border-radius: 50px;
  cursor: pointer;
  line-height: 1.25;
}
.scope:hover { background: rgba(26, 107, 60, .08); }
.scope[aria-selected="true"] {
  background: var(--green);
  color: #fff;
  box-shadow: 0 2px 8px rgba(19, 79, 45, .28);
}

.field { display: flex; gap: 8px; margin-top: 12px; }

.field input {
  flex: 1 1 auto;
  min-width: 0;
  font: inherit;
  font-family: 'DM Sans', sans-serif;
  padding: 14px 16px;
  border: 1.5px solid var(--border);
  border-radius: 50px;
  color: var(--ink);
}
.field input:focus { border-color: var(--green); }
.field input::placeholder { color: #9ca3af; }

.field button {
  flex: 0 0 auto;
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: 16px;
  color: #fff;
  background: var(--orange);
  border: 0;
  border-radius: 50px;
  padding: 0 30px;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(249, 115, 22, .35);
  transition: background .15s;
}
.field button:hover { background: #ea6c0a; }

.hint { margin: 11px 4px 0; font-size: 13px; color: var(--muted); }

/* ---------- Sections ---------- */

section { padding: clamp(32px, 5vw, 52px) 0; }
.section-head { margin-bottom: 20px; }
.section-head h2 { font-size: clamp(22px, 3.4vw, 28px); margin-top: 5px; }

/* ---------- Results ---------- */

.results { min-height: 60px; }

.empty {
  background: var(--green-tint);
  border-left: 4px solid var(--green);
  border-radius: var(--radius);
  padding: clamp(22px, 4vw, 32px);
}
.empty h3 { font-size: 20px; }
.empty p { margin: 10px 0 0; color: var(--body-text); max-width: 62ch; line-height: 1.75; }
.empty .actions { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 10px; }

.btn {
  display: inline-block;
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  padding: 12px 26px;
  border-radius: 50px;
  border: 1.5px solid var(--green);
  color: var(--green-dark);
  background: #fff;
}
.btn:hover { border-color: var(--green-dark); }
.btn-solid { background: var(--gold); border-color: var(--gold); color: #fff; }
.btn-solid:hover { background: #b8983f; border-color: #b8983f; color: #fff; }

.result-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.result-item {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
}
.result-item h3 { font-size: 18px; }
.result-item p { margin: 5px 0 0; color: var(--body-text); font-size: 14px; }
.result-item .tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #8a6f1f;
  background: #fbf4e2;
  border-radius: 50px;
  padding: 4px 12px;
  margin-bottom: 8px;
}

/* ---------- Category cards ---------- */

.cats { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }

.cat {
  display: block;
  text-decoration: none;
  color: inherit;
  background: #fff;
  border: 1px solid var(--border);
  border-left: 4px solid var(--green);
  border-radius: var(--radius);
  padding: 22px;
  transition: box-shadow .15s, transform .15s;
}
.cat:hover { box-shadow: 0 8px 24px rgba(19, 79, 45, .12); transform: translateY(-2px); }
.cat h3 a { color: inherit; text-decoration: none; }
.cat h3 a:hover { text-decoration: underline; }

.cat-actions { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 8px; }
.cat-actions a {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  border-radius: 50px;
  padding: 8px 18px;
  border: 1.5px solid var(--border);
  color: var(--green-dark);
  background: #fff;
  transition: border-color .15s, background .15s;
}
.cat-actions a:hover { border-color: var(--green); background: var(--green-tint); }
.cat-actions .cat-add {
  border-color: var(--gold);
  background: var(--gold);
  color: #fff;
}
.cat-actions .cat-add:hover { background: #b8983f; border-color: #b8983f; }
.cat .num {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold);
}
.cat h3 { font-size: 19px; margin: 8px 0; }
.cat p { margin: 0; color: var(--body-text); font-size: 14px; line-height: 1.65; }

/* ---------- Country index ---------- */

.filter-bar {
  position: sticky;
  top: 64px; /* clears the sticky site nav */
  z-index: 3;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(6px);
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.filter-bar .inner { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.filter-bar input {
  flex: 1 1 260px;
  font: inherit;
  font-family: 'DM Sans', sans-serif;
  padding: 12px 18px;
  border: 1.5px solid var(--border);
  border-radius: 50px;
}
.filter-bar input:focus { border-color: var(--green); }
.count {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}

.region-block { margin-top: 40px; }
.region-block h2 {
  font-size: 26px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--gold);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
}
.region-block h2 em {
  font-family: 'DM Sans', sans-serif;
  font-style: normal;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}

.country-grid {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}
.country-grid a {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 11px 14px;
  font-size: 15px;
  font-weight: 500;
  transition: border-color .15s, background .15s;
}
.country-grid a:hover { border-color: var(--green); background: var(--green-tint); }
.country-grid .fl { font-size: 18px; line-height: 1; }
.country-grid .code { margin-left: auto; font-size: 11px; font-weight: 600; letter-spacing: .1em; color: var(--muted); }

.no-match { padding: 32px 0; color: var(--muted); }

/* ---------- Nearby ---------- */

.near { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
.near a {
  display: inline-block;
  text-decoration: none;
  color: var(--green-dark);
  background: var(--green-tint);
  border: 1px solid transparent;
  border-radius: 50px;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 500;
}
.near a:hover { border-color: var(--green); }

/* ---------- Band + foot ---------- */

.band {
  background: var(--green);
  color: #fff;
  padding: 44px 0;
  text-align: center;
}
.band h2 { color: #fff; font-size: 26px; }
.band p { margin: 10px auto 22px; max-width: 56ch; opacity: .92; }
.band .btn { border-color: var(--gold); background: var(--gold); color: #fff; }
.band .btn:hover { background: #b8983f; border-color: #b8983f; }

.page-foot {
  border-top: 1px solid var(--border);
  padding: 26px 0 44px;
  color: var(--muted);
  font-size: 14px;
}

@media (max-width: 620px) {
  .scopes { grid-template-columns: 1fr; border-radius: 14px; }
  .scope { border-radius: 10px; }
  .field { flex-wrap: wrap; }
  .field button { width: 100%; padding: 14px; }
  .filter-bar { top: 0; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}

/* ---------- Sourcing note (Muslim-majority country pages) ---------- */

.note {
  background: #fbf9f2;
  border: 1px solid #ecdfba;
  border-left: 4px solid var(--gold);
  border-radius: var(--radius);
  padding: clamp(20px, 4vw, 28px);
}
.note h3 { font-size: 18px; margin-bottom: 10px; }
.note p { margin: 0 0 10px; color: var(--body-text); font-size: 15px; line-height: 1.75; max-width: 70ch; }
.note p:last-child { margin-bottom: 0; }
.note strong { color: var(--green-dark); }

/* Verified mark + socials on result rows */
.result-item .verified {
  display: inline-block;
  margin-left: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #fff;
  background: var(--green);
  border-radius: 50px;
  padding: 3px 10px;
  vertical-align: middle;
}
.result-item .links { margin-top: 8px; display: flex; flex-wrap: wrap; gap: 14px; }
.result-item .links a { font-size: 13px; font-weight: 600; text-decoration: none; }
.result-item .links a:hover { text-decoration: underline; }

/* ---------- Add-listing form ---------- */

.form-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 8px 30px rgba(19, 79, 45, .10);
  padding: clamp(20px, 4vw, 32px);
  margin: -30px 0 0;
  position: relative;
  z-index: 2;
}

.form-card fieldset { border: 0; padding: 0; margin: 0 0 26px; }
.form-card legend {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--green-dark);
  padding: 0;
  margin-bottom: 14px;
}

.picks { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.pick { display: block; cursor: pointer; }
.pick input { position: absolute; opacity: 0; pointer-events: none; }
.pick-body {
  display: block;
  border: 1.5px solid var(--border);
  border-left: 4px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
  height: 100%;
  transition: border-color .15s, background .15s;
}
.pick:hover .pick-body { border-color: #c9d6cc; }
.pick input:checked + .pick-body {
  border-color: var(--green);
  border-left-color: var(--green);
  background: var(--green-tint);
}
.pick input:focus-visible + .pick-body { outline: 3px solid var(--gold); outline-offset: 2px; }
.pick-body .num { display: block; font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }
.pick-body strong { display: block; margin: 6px 0 4px; font-size: 16px; color: var(--green-dark); }
.pick-body em { font-style: normal; font-size: 13px; color: var(--muted); line-height: 1.55; }

.grid-2 { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.fld-wide { grid-column: 1 / -1; }

.fld { display: flex; flex-direction: column; gap: 6px; }
.fld > span { font-size: 13px; font-weight: 600; color: var(--green-dark); }
.fld > span b { color: var(--orange); }
.fld input, .fld select {
  font: inherit;
  font-family: 'DM Sans', sans-serif;
  padding: 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  width: 100%;
}
.fld input:focus, .fld select:focus { border-color: var(--green); outline: none; box-shadow: 0 0 0 3px rgba(26,107,60,.12); }
.fld small { font-size: 12px; color: var(--muted); }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-actions { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.submit-btn {
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: 16px;
  color: #fff;
  background: var(--orange);
  border: 0;
  border-radius: 50px;
  padding: 14px 36px;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(249,115,22,.35);
}
.submit-btn:hover { background: #ea6c0a; }
.submit-btn:disabled { opacity: .6; cursor: default; }

.form-msg { margin: 0; font-size: 14px; color: var(--muted); }
.form-msg.good { color: var(--green); font-weight: 600; }
.form-msg.bad { color: #b91c1c; font-weight: 600; }

/* Query matched nothing, but the country has listings */
.no-hit {
  background: var(--green-tint);
  border: 1px solid #d6e7db;
  border-radius: var(--radius);
  padding: 14px 18px;
  margin-bottom: 14px;
  font-size: 14px;
  color: var(--body-text);
  line-height: 1.7;
}
.no-hit strong { color: var(--green-dark); }
.linkish {
  font: inherit;
  font-weight: 700;
  color: var(--green);
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  text-decoration: underline;
}
.linkish:hover { color: var(--green-dark); }
