/* The studio's landing pages (index.html, index.ar.html): one page each, in
   the app's own look. Tokens mirror lib/core/theme/halah_colors.dart (light
   and dark, design/DESIGN_SPEC.md §1); the fonts are the app's, cut for the
   web by tool/site/subset_fonts.sh.

   The site's CSP (firebase.json) allows stylesheets, images and fonts from
   the site itself and nothing else: no inline style, no script. So the
   contact form's result is shown with :target, the page is laid out with
   logical properties (start/end) for Arabic, and the only light/dark switch
   is the system's. */

@font-face {
  font-family: "Cormorant Garamond";
  src: url("fonts/cormorant-garamond-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "EB Garamond";
  src: url("fonts/eb-garamond-500.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: "Jost";
  src: url("fonts/jost-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Jost";
  src: url("fonts/jost-500.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: "Amiri";
  src: url("fonts/amiri-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Amiri";
  src: url("fonts/amiri-700.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Sans Arabic";
  src: url("fonts/ibm-plex-sans-arabic-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Sans Arabic";
  src: url("fonts/ibm-plex-sans-arabic-500.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}

/* ---------------------------------------------------------------- tokens */

:root {
  color-scheme: light dark;

  --ground: #f8f7f3;
  --surface: #f9f8f6;
  --well: #f1eee9;
  --panel: #f3f0eb;
  --line: #e8e7e3;
  --divider: #eeebe4;
  --ink: #14130f;
  --body: #56534c;
  --body-strong: #3f3c35;
  --muted: #6f6b62;
  --faint: #8a8579;
  --primary: #564c40;
  --on-primary: #f8f4ec;
  --on-primary-muted: #cfc7b8;
  --light-pill: #ede9e0;
  --sage: #bfbcab;
  --olive: #6f6a55;
  --outline: #ddd8cc;
  --chip-fill: #e7e3d6;
  --on-chip: #4a4736;
  --avatar: #d4d0c4;
  --on-avatar: #2c2b1f;
  --chrome: #23211c;
  --clay: #8c5241;
  --clay-tint: #f0e3dd;
  --success: #3d8b5c;
  --shadow: 0 1px 2px rgba(32, 27, 20, 0.05);

  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-heading: "EB Garamond", Georgia, serif;
  --font-ui: "Jost", "Avenir Next", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --heading-weight: 500;
  --track-display: 0.145em;
  --track-label: 0.14em;
  --track-caps: 0.07em;

  --radius-thumb: 10px;
  --radius-panel: 12px;
  --radius-card: 14px;
  --radius-section: 20px;
  --gutter: 16px;
  --header-height: 72px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ground: #13120f;
    --surface: #1b1a16;
    --well: #23211c;
    --panel: #201e1a;
    --line: #2e2b25;
    --divider: #292620;
    --ink: #f3f0eb;
    --body: #c9c4b9;
    --body-strong: #ddd8cc;
    --muted: #9d978b;
    --faint: #77726a;
    --primary: #c9ae92;
    --on-primary: #14130f;
    --on-primary-muted: #45392d;
    --light-pill: #2a2822;
    --sage: #5e5b4e;
    --olive: #b5af96;
    --outline: #3d3a32;
    --chip-fill: #2f2d24;
    --on-chip: #e7e3d6;
    --avatar: #3a372f;
    --on-avatar: #e7e3d6;
    --chrome: #e9e5dc;
    --clay: #d9917c;
    --clay-tint: #3a2a25;
    --success: #6fc08f;
    --shadow: none;
  }
}

/* Arabic: its own faces, no tracking, a step larger (DESIGN_SPEC.md §2). */
html[lang="ar"] {
  --font-display: "Amiri", "Geeza Pro", serif;
  --font-heading: "Amiri", "Geeza Pro", serif;
  --font-ui: "IBM Plex Sans Arabic", "Geeza Pro", "Segoe UI", Tahoma, sans-serif;
  --heading-weight: 700;
  --track-display: 0;
  --track-label: 0;
  --track-caps: 0;
}

/* ------------------------------------------------------------------ base */

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

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

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  background: var(--ground);
  color: var(--body);
  font-family: var(--font-ui);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

html[lang="ar"] body {
  font-size: 17px;
}

img,
svg {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

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

h1,
h2,
h3 {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-heading);
  font-weight: var(--heading-weight);
  line-height: 1.15;
}

p {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

address {
  font-style: normal;
}

:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Anchored sections clear the sticky header. */
[id] {
  scroll-margin-top: calc(var(--header-height) + 16px);
}

.wrap {
  width: 100%;
  max-width: 1120px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

@media (min-width: 720px) {
  :root {
    --gutter: 32px;
  }
}

.skip {
  position: absolute;
  inset-inline-start: 16px;
  top: -100px;
  z-index: 10;
  padding: 10px 16px;
  border-radius: var(--radius-panel);
  background: var(--primary);
  color: var(--on-primary);
}

.skip:focus {
  top: 12px;
}

.icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

/* Arrows point the way you read. */
html[dir="rtl"] .flip {
  transform: scaleX(-1);
}

/* ------------------------------------------------------------ typography */

.display {
  color: inherit;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(38px, 6vw, 64px);
  line-height: 1.12;
  letter-spacing: var(--track-display);
  text-transform: uppercase;
}

html[lang="ar"] .display {
  font-size: clamp(42px, 6.4vw, 70px);
  line-height: 1.35;
}

.label {
  color: var(--olive);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: var(--track-label);
  text-transform: uppercase;
}

html[lang="ar"] .label {
  font-size: 13.5px;
}

.section {
  padding-block: 72px 8px;
}

@media (min-width: 720px) {
  .section {
    padding-block: 104px 8px;
  }
}

.section__head {
  max-width: 640px;
  margin-bottom: 32px;
}

.section__head h2 {
  margin-top: 10px;
  font-size: clamp(30px, 4vw, 42px);
}

html[lang="ar"] .section__head h2 {
  font-size: clamp(32px, 4.4vw, 46px);
  line-height: 1.3;
}

.section__lead {
  margin-top: 14px;
  font-size: 17px;
}

html[lang="ar"] .section__lead {
  font-size: 18px;
}

/* --------------------------------------------------------------- buttons */

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
}

.pill .icon {
  width: 18px;
  height: 18px;
}

.pill--primary {
  background: var(--primary);
  color: var(--on-primary);
}

.pill--outline {
  border-color: var(--outline);
  color: var(--body-strong);
}

/* On the brown hero: the app's light pill, and a quieter outline beside it. */
.pill--light {
  background: var(--light-pill);
  color: var(--ink);
}

.pill--on-brown {
  border-color: var(--on-primary-muted);
  color: var(--on-primary);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 52px;
  padding: 0 24px;
  border: 0;
  border-radius: var(--radius-card);
  background: var(--primary);
  color: var(--on-primary);
  font: inherit;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
}

.arrow-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--sage);
  color: var(--chrome);
}

.arrow-circle .icon {
  width: 15px;
  height: 15px;
}

/* ---------------------------------------------------------------- header */

.topbar {
  position: sticky;
  top: 0;
  z-index: 5;
  background: color-mix(in srgb, var(--ground) 92%, transparent);
  border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: saturate(1.2) blur(12px);
  backdrop-filter: saturate(1.2) blur(12px);
}

.topbar__row {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: var(--header-height);
}

.brand {
  flex-shrink: 0;
  border-radius: var(--radius-thumb);
}

/* The studio's logo: its own gold on transparency, so it suits either theme. */
.brand img {
  width: auto;
  height: 52px;
}

.nav {
  display: none;
  gap: 4px;
  margin-inline-start: auto;
}

.nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 999px;
  color: var(--body-strong);
  font-size: 15px;
  text-decoration: none;
}

.nav a:hover {
  background: var(--well);
}

.topbar__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-inline-start: auto;
}

.topbar__actions .pill {
  padding: 0 16px;
}

/* The language switch names the other language in its own script; the
   English page shows it in the system's Arabic face rather than download a
   font for one word. */
.lang:lang(ar) {
  font-family: "Geeza Pro", "Segoe UI", Tahoma, sans-serif;
}

.lang:lang(en) {
  font-family: "Jost", "Avenir Next", -apple-system, "Segoe UI", sans-serif;
}

.topbar__cta {
  display: none;
}

@media (min-width: 560px) {
  .topbar__cta {
    display: inline-flex;
  }
}

@media (min-width: 920px) {
  .nav {
    display: flex;
  }

  .topbar__actions {
    margin-inline-start: 8px;
  }
}

/* ------------------------------------------------------------------ hero */

.hero {
  padding-top: 20px;
}

.hero__card {
  position: relative;
  display: grid;
  overflow: hidden;
  border-radius: var(--radius-section);
  background: var(--primary);
  color: var(--on-primary);
}

.hero__media {
  position: relative;
  aspect-ratio: 16 / 10;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* The app's hero fade: the photo melts into the brown. */
.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--primary) 0%, color-mix(in srgb, var(--primary) 40%, transparent) 30%, transparent 60%);
}

.hero__content {
  position: relative;
  padding: 8px 24px 32px;
}

.hero__eyebrow {
  color: var(--on-primary-muted);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.265em;
  text-transform: uppercase;
}

html[lang="ar"] .hero__eyebrow {
  font-size: 14px;
  letter-spacing: 0;
}

.hero__card h1 {
  margin-top: 14px;
  color: var(--on-primary);
}

.hero__lead {
  max-width: 460px;
  margin-top: 18px;
  color: var(--on-primary);
  font-size: 17px;
  opacity: 0.92;
}

html[lang="ar"] .hero__lead {
  font-size: 18px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

@media (min-width: 760px) {
  .hero__card {
    grid-template-columns: 1fr;
    min-height: 520px;
  }

  .hero__media {
    position: absolute;
    inset-block: 0;
    inset-inline-end: 0;
    width: 64%;
    aspect-ratio: auto;
  }

  .hero__media::after {
    background: linear-gradient(to right, var(--primary) 0%, color-mix(in srgb, var(--primary) 60%, transparent) 22%, color-mix(in srgb, var(--primary) 20%, transparent) 46%, transparent 70%);
  }

  html[dir="rtl"] .hero__media::after {
    background: linear-gradient(to left, var(--primary) 0%, color-mix(in srgb, var(--primary) 60%, transparent) 22%, color-mix(in srgb, var(--primary) 20%, transparent) 46%, transparent 70%);
  }

  .hero__content {
    align-self: center;
    max-width: 560px;
    padding: 56px 56px 64px;
  }
}

/* -------------------------------------------------------------- services */

.tiles {
  display: grid;
  gap: 16px;
}

@media (min-width: 720px) {
  .tiles {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* The app's category tile, grown up: photo, a surface panel with a caps
   label, a line and an arrow circle, then what you can book. */
.tile {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.tile__photo {
  aspect-ratio: 3 / 2;
  background: var(--well);
}

.tile__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tile__panel {
  position: relative;
  margin-top: -14px;
  padding: 18px 20px 4px;
  border-radius: var(--radius-panel) var(--radius-panel) 0 0;
  background: var(--surface);
}

.tile__title {
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: var(--track-caps);
  text-transform: uppercase;
}

.tile__sub {
  margin-top: 2px;
  color: var(--muted);
  font-size: 15px;
}

.tile__list {
  flex-grow: 1;
  margin: 12px 20px 0;
}

.tile__list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 0;
  border-top: 1px solid var(--divider);
  color: var(--body-strong);
  font-size: 15px;
}

.tile__list .meta {
  color: var(--muted);
  white-space: nowrap;
}

.tile__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 56px;
  margin-top: 8px;
  padding: 0 20px;
  border-top: 1px solid var(--line);
  color: var(--ink);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
}

.tile__link:hover {
  background: var(--panel);
}

/* ---------------------------------------------------------- how it works */

.steps {
  display: grid;
  gap: 16px;
  counter-reset: step;
}

@media (min-width: 720px) {
  .steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.step {
  padding: 24px;
  border-radius: var(--radius-card);
  background: var(--panel);
}

.step__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--surface);
  color: var(--olive);
}

.step h3 {
  margin-top: 18px;
  font-size: 22px;
}

html[lang="ar"] .step h3 {
  font-size: 24px;
  line-height: 1.35;
}

.step h3::before {
  counter-increment: step;
  content: counter(step) ". ";
  color: var(--faint);
}

.step p {
  margin-top: 8px;
}

/* HalahNote: standing policy, in a well panel with an olive icon. */
.note {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-top: 16px;
  padding: 18px 20px;
  border-radius: var(--radius-card);
  background: var(--well);
  font-size: 15px;
}

.note .icon {
  color: var(--olive);
}

/* ------------------------------------------------------------------- app */

.app {
  display: grid;
  gap: 40px;
  align-items: center;
  padding: 40px 24px;
  border-radius: var(--radius-section);
  background: var(--panel);
}

@media (min-width: 880px) {
  .app {
    grid-template-columns: 340px 1fr;
    gap: 64px;
    padding: 64px;
  }
}

.app .section__head {
  margin-bottom: 0;
}

.features {
  display: grid;
  gap: 4px 24px;
  margin-top: 28px;
}

@media (min-width: 560px) {
  .features {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.features li {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 10px 0;
  color: var(--body-strong);
  font-size: 15px;
}

.features .icon-circle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--surface);
  color: var(--olive);
}

.features .icon {
  width: 20px;
  height: 20px;
}

.stores {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 16px 20px;
  margin-top: 32px;
}

.store {
  display: inline-flex;
  flex-direction: column;
  gap: 6px;
  border-radius: 10px;
}

/* The official badges, untouched, at one height. */
.store img {
  width: auto;
  height: 52px;
}

.store--soon {
  cursor: default;
}

.store__note {
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

/* ----------------------------------------------------- the phone preview */

/* The app's Home screen, drawn with the site's own tokens and photos, so it
   follows the theme, the language and the studio's current copy. */
.phone {
  justify-self: center;
  width: 300px;
  max-width: 100%;
  padding: 12px;
  border-radius: 46px;
  background: var(--chrome);
  box-shadow: 0 24px 60px rgba(32, 27, 20, 0.18);
}

.phone__screen {
  overflow: hidden;
  border-radius: 36px;
  background: var(--ground);
  color: var(--ink);
  font-size: 11px;
  line-height: 1.3;
}

.ph-status {
  height: 34px;
}

.ph-body {
  padding: 0 12px 12px;
}

.ph-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ph-top img {
  width: auto;
  height: 34px;
}

.ph-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--avatar);
  color: var(--on-avatar);
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: var(--heading-weight);
}

.ph-greet {
  margin-top: 8px;
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: var(--heading-weight);
}

.ph-sub {
  color: var(--body);
  font-size: 11px;
}

.ph-hero {
  position: relative;
  display: flex;
  align-items: center;
  height: 118px;
  margin-top: 10px;
  overflow: hidden;
  border-radius: 12px;
  background: var(--primary);
  color: var(--on-primary);
}

.ph-hero img {
  position: absolute;
  inset-block: 0;
  inset-inline-end: 0;
  width: 58%;
  height: 100%;
  object-fit: cover;
}

.ph-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, var(--primary) 40%, transparent 92%);
}

html[dir="rtl"] .ph-hero::after {
  background: linear-gradient(to left, var(--primary) 40%, transparent 92%);
}

.ph-hero__text {
  position: relative;
  z-index: 1;
  padding-inline-start: 16px;
}

.ph-hero__title {
  font-family: var(--font-display);
  font-size: 17px;
  line-height: 1.15;
  letter-spacing: var(--track-display);
  text-transform: uppercase;
}

.ph-hero__meta {
  margin-top: 8px;
  color: var(--on-primary-muted);
  font-size: 7.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

html[lang="ar"] .ph-hero__meta {
  font-size: 9px;
  letter-spacing: 0;
}

.ph-hero__cta {
  display: inline-block;
  margin-top: 8px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--light-pill);
  color: var(--ink);
  font-size: 10px;
  font-weight: 500;
}

.ph-tiles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-top: 6px;
}

.ph-tile {
  overflow: hidden;
  border-radius: 12px;
  background: var(--well);
}

.ph-tile img {
  width: 100%;
  height: 52px;
  object-fit: cover;
}

.ph-tile div {
  padding: 6px 10px 8px;
  background: var(--surface);
}

.ph-tile b {
  display: block;
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: var(--track-caps);
  text-transform: uppercase;
}

.ph-tile span {
  color: var(--muted);
  font-size: 9.5px;
}

.ph-heading {
  margin-top: 12px;
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: var(--heading-weight);
}

.ph-visit {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 6px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}

.ph-visit img {
  width: 46px;
  height: 42px;
  border-radius: 8px;
  object-fit: cover;
}

.ph-visit b {
  display: block;
  font-family: var(--font-heading);
  font-size: 12.5px;
  font-weight: var(--heading-weight);
}

.ph-visit span {
  color: var(--body);
  font-size: 9.5px;
}

.ph-tabs {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  padding: 8px 4px 14px;
  border-top: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
  font-size: 8.5px;
  text-align: center;
}

.ph-tabs span:first-child {
  color: var(--ink);
  font-weight: 500;
}

.ph-tabs .icon {
  width: 16px;
  height: 16px;
  margin: 0 auto 3px;
}

/* ----------------------------------------------------------------- visit */

.visit {
  display: grid;
  gap: 16px;
}

@media (min-width: 860px) {
  .visit {
    grid-template-columns: 5fr 7fr;
    gap: 24px;
  }
}

.visit__photo {
  overflow: hidden;
  border-radius: var(--radius-card);
  background: var(--well);
}

.visit__photo img {
  width: 100%;
  height: 100%;
  max-height: 560px;
  object-fit: cover;
}

.card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--surface);
}

.visit__info {
  display: grid;
  gap: 16px;
  align-content: start;
}

.info-row {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.info-row .icon {
  margin-top: 2px;
  color: var(--olive);
}

.info-row > div {
  flex-grow: 1;
  min-width: 0;
}

.info-row h3 {
  font-size: 20px;
}

html[lang="ar"] .info-row h3 {
  font-size: 22px;
  line-height: 1.35;
}

.info-row p,
.info-row address {
  margin-top: 4px;
}

.info-row .pill {
  margin-top: 14px;
}

.hours {
  margin-top: 8px;
}

.hours li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  border-top: 1px solid var(--divider);
  font-size: 15px;
}

.hours li:first-child {
  border-top: 0;
}

.hours .time {
  color: var(--ink);
  white-space: nowrap;
}

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

.chip {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--chip-fill);
  color: var(--on-chip);
  font-size: 13.5px;
  font-weight: 500;
}

/* --------------------------------------------------------------- contact */

.contact {
  display: grid;
  gap: 24px;
}

@media (min-width: 860px) {
  .contact {
    grid-template-columns: 5fr 7fr;
    align-items: start;
  }
}

.contact .section__head {
  margin-bottom: 24px;
}

.form {
  display: grid;
  gap: 18px;
}

.form__pair {
  display: grid;
  gap: 18px;
}

@media (min-width: 560px) {
  .form__pair {
    grid-template-columns: 1fr 1fr;
  }
}

/* HalahTextField: the label above, a 14-radius field. */
.field label {
  display: block;
  margin-bottom: 6px;
  color: var(--body-strong);
  font-size: 14px;
  font-weight: 500;
}

.field .optional {
  color: var(--muted);
  font-weight: 400;
}

.field input,
.field textarea {
  display: block;
  width: 100%;
  min-height: 52px;
  padding: 13px 16px;
  border: 1px solid var(--outline);
  border-radius: var(--radius-card);
  background: var(--ground);
  color: var(--ink);
  font: inherit;
  font-size: 16px;
}

/* Addresses and numbers read left to right, aligned with the Arabic labels. */
html[dir="rtl"] .field input[dir="ltr"] {
  text-align: right;
}

.field textarea {
  min-height: 150px;
  resize: vertical;
}

.field input:focus,
.field textarea:focus {
  outline: 2px solid var(--primary);
  outline-offset: 0;
  border-color: transparent;
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--faint);
}

.form__fine {
  color: var(--muted);
  font-size: 13.5px;
}

/* Never shown: a field only bots fill in. */
.trap {
  position: absolute;
  inset-inline-start: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* The endpoint sends the browser back to #message-sent or #message-error. */
.notice {
  display: none;
  gap: 14px;
  align-items: flex-start;
  padding: 18px 20px;
  border-radius: var(--radius-card);
  font-size: 15px;
}

.notice:target {
  display: flex;
  margin-bottom: 24px;
}

.notice strong {
  display: block;
  color: var(--ink);
  font-weight: 500;
}

.notice--sent {
  background: var(--chip-fill);
}

.notice--sent .icon {
  color: var(--success);
}

.notice--error {
  background: var(--clay-tint);
}

.notice--error .icon {
  color: var(--clay);
}

/* ---------------------------------------------------------------- footer */

.footer {
  margin-top: 104px;
  padding-block: 40px 48px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

.footer__row {
  display: flex;
  flex-wrap: wrap;
  gap: 20px 32px;
  align-items: center;
  justify-content: space-between;
}

.footer img {
  width: auto;
  height: 56px;
}

.footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
}

.footer nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--body);
  text-decoration: none;
}

.footer nav a:hover {
  color: var(--ink);
  text-decoration: underline;
}

.footer__legal {
  margin-top: 16px;
}
