/* Halal Foodspot website. Colors and fonts match the app
   (lib/theme/app_colors.dart, Bricolage Grotesque + DM Sans). Light only,
   whatever the visitor's device is set to. Fonts are
   served from this site, not from Google, so no visitor data goes there. */

@font-face {
  font-family: "Bricolage Grotesque";
  src: url("/fonts/bricolage-grotesque-latin.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}
@font-face {
  font-family: "DM Sans";
  src: url("/fonts/dm-sans-latin.woff2") format("woff2");
  font-weight: 100 1000;
  font-display: swap;
}

:root {
  --bg: #f6f4ef;
  --surface: #ffffff;
  --ink: #121614;
  --ink-soft: #474c46;
  --muted: #5b605a;
  --border: #e3dfd6;
  --saffron: #f2a33a;
  --saffron-text: #b3661b;
  --accent-tint: #fdf1df;
  --on-accent: #121614;
  --verified: #1f7a4f;
  --verified-tint: #e2f1e8;
  --expired: #a8452f;
  --expired-tint: #f6e3dc;
  --unverified: #8a8d86;
  --shadow: 0 24px 60px -24px rgba(18, 22, 20, 0.28);
  --radius: 28px;
  --display: "Bricolage Grotesque", system-ui, sans-serif;
  --body: "DM Sans", system-ui, sans-serif;
  color-scheme: light;
}


/* Dark design, switched on with the button in the header (js/theme.js).
   Same colors as the app's dark mode. */
:root[data-theme="dark"] {
  --bg: #121513;
  --surface: #1d211f;
  --ink: #f1eee7;
  --ink-soft: #c5c3bb;
  --muted: #9c9e97;
  --border: #2f3431;
  --saffron-text: #f5b85c;
  --accent-tint: #3a2c17;
  --verified: #2e8e5d;
  --verified-tint: #1c3328;
  --expired: #c05a42;
  --expired-tint: #3b2420;
  --unverified: #6f726c;
  --shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.7);
  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--saffron-text);
  text-underline-offset: 3px;
}

h1,
h2,
h3 {
  font-family: var(--display);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0;
}

.wrap {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}

.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus {
  left: 16px;
  top: 12px;
  z-index: 10;
  background: var(--surface);
  padding: 8px 14px;
  border-radius: 12px;
}

/* Header */

.site-header {
  padding: 18px 0;
}
.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 22px;
}
.site-header .brand {
  margin-right: auto;
}
.theme-toggle {
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--ink);
  display: grid;
  place-items: center;
  cursor: pointer;
  padding: 0;
  transition: background 0.15s, border-color 0.15s;
}
.theme-toggle:hover {
  border-color: var(--muted);
}
.theme-toggle:focus-visible {
  outline: 2px solid var(--saffron-text);
  outline-offset: 2px;
}
.theme-toggle svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.theme-toggle .sun,
:root[data-theme="dark"] .theme-toggle .moon {
  display: none;
}
:root[data-theme="dark"] .theme-toggle .sun {
  display: block;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-family: var(--display);
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.02em;
}
.brand img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
}
.site-nav {
  display: flex;
  gap: 22px;
}
.site-nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
}
.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--ink);
}

/* Hero */

.hero {
  padding: 40px 0 72px;
}
.hero .wrap {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 48px;
  align-items: center;
}
.hero h1 {
  font-size: clamp(40px, 6vw, 66px);
  font-weight: 800;
}
.hero h1 em {
  font-style: normal;
  color: var(--saffron);
}
.lead {
  font-size: clamp(18px, 2vw, 20px);
  color: var(--ink-soft);
  max-width: 34em;
  margin: 22px 0 30px;
}
.stores {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.store {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px 12px 16px;
  border-radius: 16px;
  background: var(--ink);
  color: var(--bg);
  font-weight: 600;
  font-size: 15px;
  line-height: 1.2;
}
.store small {
  display: block;
  font-size: 11px;
  font-weight: 500;
  opacity: 0.75;
}
.store svg {
  width: 22px;
  height: 22px;
  flex: none;
}
.soon {
  margin-top: 14px;
  font-size: 14px;
  color: var(--muted);
}

/* App screens in Apple's official iPhone 18 Pro product bezels (Apple
   Design Resources). Apple's marketing guidelines: show them upright, whole,
   unmodified, without added shadows, and with nothing on top of them. */
.device {
  display: block;
  width: 100%;
}
.device img {
  display: block;
  width: 100%;
  height: auto;
}
/* Light screenshots by default, dark ones with the dark design. */
.device .dark,
:root[data-theme="dark"] .device .light {
  display: none;
}
:root[data-theme="dark"] .device .dark {
  display: block;
}
.phones {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 28px;
}
.phones .device {
  width: 250px;
}
.phones .device + .device {
  margin-top: 64px;
}

/* Sections */

section {
  padding: 72px 0;
}
.section-head {
  max-width: 640px;
  margin-bottom: 40px;
}
.section-head h2 {
  font-size: clamp(32px, 4.5vw, 48px);
  font-weight: 800;
}
.section-head p {
  color: var(--ink-soft);
  font-size: 18px;
  margin: 14px 0 0;
}

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.feature {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 26px 26px 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.feature h3 {
  font-size: 23px;
  font-weight: 700;
}
.feature p {
  color: var(--ink-soft);
  margin: 10px 0 24px;
  font-size: 16px;
}
.feature .device-wrap {
  margin-top: auto;
  padding: 0 14% 28px;
}

/* Trust levels */

.levels {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.level {
  background: var(--surface);
  border-radius: 22px;
  padding: 22px;
}
.level .pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14px;
}
.level .pill::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: currentColor;
}
.level p {
  margin: 14px 0 0;
  color: var(--ink-soft);
  font-size: 15px;
}
.level.certified .pill {
  background: var(--verified-tint);
  color: var(--verified);
}
.level.partial .pill {
  background: var(--accent-tint);
  color: var(--saffron-text);
}
.level.unverified .pill {
  background: var(--bg);
  color: var(--unverified);
}
.level.expired .pill {
  background: var(--expired-tint);
  color: var(--expired);
}

/* Restaurants */

.owners {
  background: var(--ink);
  color: var(--bg);
  border-radius: 36px;
  padding: clamp(32px, 6vw, 64px);
}
.owners h2 {
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 800;
}
.owners p {
  opacity: 0.8;
  margin: 14px 0 0;
  max-width: 42em;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 26px;
  padding: 15px 24px;
  border-radius: 18px;
  background: var(--saffron);
  color: var(--on-accent);
  font-weight: 700;
  text-decoration: none;
}
.button:hover {
  filter: brightness(1.05);
}

/* Footer */

.site-footer {
  padding: 40px 0 56px;
  color: var(--muted);
  font-size: 14px;
}
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid var(--border);
  padding-top: 28px;
}
.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}
.site-footer a {
  color: var(--ink-soft);
  text-decoration: none;
}
.site-footer a:hover {
  color: var(--ink);
  text-decoration: underline;
}

.site-footer .trademarks {
  max-width: 1120px;
  margin: 18px auto 0;
  padding: 0 20px;
  font-size: 12px;
  color: var(--muted);
}

/* Legal pages */

.legal {
  max-width: 760px;
  padding-top: 24px;
  padding-bottom: 40px;
}
.legal h1 {
  font-size: clamp(38px, 6vw, 56px);
  font-weight: 800;
  margin-bottom: 8px;
}
.legal h2 {
  font-size: 24px;
  font-weight: 700;
  margin: 40px 0 10px;
}
.legal h3 {
  font-size: 19px;
  font-weight: 700;
  margin: 26px 0 6px;
}
.legal p,
.legal li {
  color: var(--ink-soft);
}
.legal {
  overflow-wrap: break-word;
}
.legal .updated {
  color: var(--muted);
  font-size: 15px;
}
.legal .card {
  background: var(--surface);
  border-radius: 22px;
  padding: 22px 24px;
  margin: 18px 0;
}
.legal .card p {
  margin: 0;
}
.legal ol.steps {
  padding-left: 22px;
}
.legal ol.steps li {
  margin: 6px 0;
}

/* Placeholders that must be filled in before going live. */
.todo {
  background: #fff3a8;
  color: #3d3200;
  padding: 0 4px;
  border-radius: 4px;
  font-weight: 600;
}

/* Suggestion form (vorschlagen.html), styled like the app's form.
   Wide screens: intro on the left, the form as a card on the right, both
   on the same grid as the header. */

.form-page {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr);
  gap: 64px;
  align-items: start;
  padding-top: 24px;
  padding-bottom: 64px;
}
.form-intro {
  position: sticky;
  top: 32px;
}
.form-page h1 {
  font-size: clamp(34px, 4vw, 48px);
  font-weight: 800;
}
.form-page .intro {
  color: var(--ink-soft);
  margin: 14px 0 0;
  font-size: 18px;
}
.form-intro h2 {
  font-size: 20px;
  font-weight: 700;
  margin: 36px 0 12px;
}
.how {
  list-style: none;
  counter-reset: how;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 14px;
}
.how li {
  counter-increment: how;
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 12px;
  color: var(--ink-soft);
  font-size: 16px;
}
.how li::before {
  content: counter(how);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--accent-tint);
  color: var(--saffron-text);
  font-weight: 700;
  font-size: 15px;
}
.how strong {
  color: var(--ink);
}
.form-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 32px;
}
.field {
  margin: 0 0 22px;
  padding: 0;
  border: 0;
  min-width: 0;
}
.field > label,
.field > legend {
  display: block;
  padding: 0;
  margin-bottom: 8px;
  font-weight: 600;
  font-size: 15px;
}
.optional {
  font-weight: 400;
  font-size: 14px;
  color: var(--muted);
  margin-left: 6px;
}
.field input:not([type="radio"]),
.field textarea {
  width: 100%;
  font: inherit;
  font-size: 16px;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 14px 16px;
  outline: none;
  transition: border-color 0.15s;
}
.field textarea {
  resize: vertical;
  min-height: 110px;
}
.field input::placeholder,
.field textarea::placeholder {
  color: var(--muted);
}
.field input:focus,
.field textarea:focus {
  border-color: var(--saffron);
  box-shadow: 0 0 0 1px var(--saffron);
}
.field input[aria-invalid="true"] {
  border-color: var(--expired);
}
.error {
  color: var(--expired);
  font-size: 14px;
  margin: 8px 0 0;
}
.choices {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.choices label {
  cursor: pointer;
}
/* The real radio buttons stay in the form for keyboards and screen
   readers but take no space; the pills show the choice. */
.choices input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  overflow: hidden;
  clip-path: inset(50%);
  opacity: 0;
  pointer-events: none;
}
.choices span {
  display: inline-block;
  padding: 9px 16px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: var(--bg);
  font-weight: 600;
  font-size: 15px;
  transition: background 0.15s, border-color 0.15s;
}
.choices .emoji {
  font-weight: 400;
  margin-right: 7px;
}
.choices input:checked + span {
  background: var(--saffron);
  border-color: var(--saffron);
  color: var(--on-accent);
}
.choices input:focus-visible + span {
  outline: 2px solid var(--saffron-text);
  outline-offset: 2px;
}
.owner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: var(--bg);
  border-radius: 18px;
  padding: 14px 16px;
  margin-bottom: 22px;
  cursor: pointer;
}
.owner strong {
  display: block;
  font-size: 15px;
}
.owner small {
  display: block;
  color: var(--muted);
  font-size: 14px;
}
.owner input {
  appearance: none;
  flex: none;
  width: 52px;
  height: 32px;
  border-radius: 16px;
  background: var(--border);
  position: relative;
  cursor: pointer;
  transition: background 0.15s;
}
.owner input::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
  transition: transform 0.15s;
}
.owner input:checked {
  background: var(--saffron);
}
.owner input:checked::after {
  transform: translateX(20px);
}
.owner input:focus-visible {
  outline: 2px solid var(--saffron-text);
  outline-offset: 2px;
}
/* The honeypot: off screen for people, still in the form for bots. */
.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.form-message {
  background: var(--expired-tint);
  color: var(--expired);
  border-radius: 14px;
  padding: 12px 16px;
  font-weight: 600;
  font-size: 15px;
}
.button.submit {
  width: 100%;
  border: 0;
  font: inherit;
  font-weight: 700;
  font-size: 16px;
  min-height: 56px;
  cursor: pointer;
  margin-top: 4px;
}
.button.submit:disabled {
  opacity: 0.65;
  cursor: progress;
}
.fineprint {
  color: var(--muted);
  font-size: 13px;
  margin: 14px 0 0;
}
.done {
  text-align: center;
  padding: 24px 0 8px;
}
.done .check {
  width: 72px;
  height: 72px;
  margin: 0 auto 20px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--verified-tint);
  color: var(--verified);
  font-size: 34px;
  font-weight: 800;
}
.done p {
  font-size: 18px;
  max-width: 30em;
  margin: 0 auto;
}

/* 404 */

.lost {
  min-height: 60vh;
  display: grid;
  place-items: center;
  text-align: center;
}
.lost img {
  width: 120px;
  margin: 0 auto 24px;
  border-radius: 28px;
}
.lost h1 {
  font-size: 44px;
  font-weight: 800;
}
.lost p {
  color: var(--ink-soft);
}

/* Smaller screens */

@media (max-width: 980px) {
  .form-page {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .form-intro {
    position: static;
  }
  .form-intro h2,
  .how {
    display: none;
  }
  .hero .wrap {
    grid-template-columns: 1fr;
  }
  .phones .device + .device {
    display: none;
  }
  .features {
    grid-template-columns: 1fr;
    max-width: 520px;
  }
  .levels {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  /* Long German words (Umsatzsteuer-Identifikationsnummer) on narrow phones. */
  .legal {
    hyphens: auto;
  }
  .form-card {
    padding: 22px 18px;
    border-radius: 24px;
  }
  body {
    font-size: 16px;
  }
  .site-nav {
    display: none;
  }
  .hero {
    padding-top: 16px;
  }
  .phones .device {
    width: 240px;
  }
  section {
    padding: 52px 0;
  }
  .levels {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
