/* motion tokens: see the skill's reference/motion.md before adding any animation */
@font-face { font-family: "Plex Arabic"; src: url("plex-400.woff") format("woff"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Plex Arabic"; src: url("plex-600.woff") format("woff"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Naskh Display"; src: url("naskh-500.woff") format("woff"); font-weight: 500 700; font-display: swap; }
@font-face { font-family: "Cormorant Display"; src: url("cormorant-600.woff") format("woff"); font-weight: 500 700; font-display: swap; }

:root {
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);
  --dir: 1;

  --paper: #faf7f2;
  --sand: #efe9dc;
  --line: #ddd5c4;
  --ink: #1b2622;
  --muted: #55645e;
  --brand-deep: #123029;
  --on-brand: #f6f1e6;
  --on-brand-soft: #c9d9d0;
  --gold: #a9792f;
  --font-body: "Plex Arabic", "IBM Plex Sans Arabic", system-ui, sans-serif;
  --font-display: "Cormorant Display", "Naskh Display", "Plex Arabic", serif;
  --radius: 1.25rem;
  --header-h: 4.5rem;
}

[dir="rtl"] { --dir: -1; }

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

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 0.5rem); }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  background: var(--background, var(--paper));
  color: var(--ink);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  font-variant-numeric: lining-nums;
}

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

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.3;
  margin: 0;
  text-wrap: balance;
  font-variant-numeric: lining-nums;
}

p { margin: 0; text-wrap: pretty; }

::selection { background: var(--brand); color: var(--on-brand); }

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

a { color: inherit; text-underline-offset: 0.25em; }

.container { width: min(100% - 2.5rem, 72rem); margin-inline: auto; }
.stack > * + * { margin-block-start: 1rem; }
.row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.center { text-align: center; }

/* announcement banner (the tenant turns it on in the dashboard) */
.banner { background: var(--brand-deep); color: var(--on-brand); font-size: 0.875rem; text-align: center; }
.banner > * { display: block; margin-block: 0; padding-block: 0.5rem; color: inherit; }

/* header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(10px);
  border-block-end: 1px solid var(--line);
}
.site-header__row { min-height: var(--header-h); display: flex; align-items: center; gap: 1.5rem; }
.logo { display: inline-flex; align-items: center; color: inherit; font-weight: 600; text-decoration: none; }
.logo img { height: 3rem; width: auto; display: block; }
.site-nav { display: none; gap: 2rem; margin-inline-start: 1rem; }
.site-nav a { text-decoration: none; color: var(--muted); font-size: 0.9375rem; transition: color 150ms ease; }
.site-nav a:hover { color: var(--brand); }
.site-header__end { margin-inline-start: auto; display: flex; align-items: center; gap: 0.75rem; }
.lang-link {
  display: inline-flex; align-items: center; min-height: 2.75rem; padding-inline: 0.875rem;
  border: 1px solid var(--line); border-radius: 999px; text-decoration: none; font-size: 0.9375rem;
  transition: border-color 150ms ease, color 150ms ease;
}
.lang-link:hover { border-color: var(--brand); color: var(--brand); }
.site-header .btn--call { display: none; }

/* buttons */
.btn, .button {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.625rem;
  min-height: 3rem; padding: 0.5rem 1.5rem; border-radius: 999px; border: 1px solid transparent;
  background: var(--brand); color: var(--on-brand); font: inherit; font-weight: 600; font-size: 1rem;
  text-decoration: none; cursor: pointer;
  transition: transform 160ms var(--ease-out), background-color 150ms ease, border-color 150ms ease, color 150ms ease;
}
.btn:active, .button:active { transform: scale(0.97); }
.btn svg { width: 1.25rem; height: 1.25rem; flex: none; }
.btn--solid:hover, .button:hover { background: var(--brand-deep); }
.btn--light { background: var(--on-brand); color: var(--brand-deep); }
.btn--light:hover { background: #fff; }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--brand); color: var(--brand); }
.btn--ghost-light { background: transparent; color: var(--on-brand); border-color: rgba(246, 241, 230, 0.4); }
.btn--ghost-light:hover { border-color: var(--on-brand); }

/* footer */
.site-footer { padding-block: 2.5rem; border-block-start: 1px solid var(--line); margin-block-start: 4rem; }
.site-footer__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.25rem 2rem; }
.site-footer small { color: var(--muted); font-size: 0.875rem; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; }
.site-footer nav a { color: var(--muted); text-decoration: none; font-size: 0.9375rem; }
.site-footer nav a:hover { color: var(--brand); text-decoration: underline; }

/* phone-only contact bar */
.contact-bar {
  position: fixed; inset-inline: 0; bottom: 0; z-index: 30; display: flex; gap: 0.625rem;
  padding: 0.625rem 1rem calc(0.625rem + env(safe-area-inset-bottom));
  background: color-mix(in srgb, var(--paper) 94%, transparent); backdrop-filter: blur(10px);
  border-block-start: 1px solid var(--line);
}
.contact-bar .btn { flex: 1; }
body:has(.contact-bar) { padding-block-end: 4.75rem; }

@media (min-width: 48rem) {
  .site-nav { display: flex; }
  .site-header .btn--call { display: inline-flex; min-height: 2.75rem; }
  .contact-bar { display: none; }
  body:has(.contact-bar) { padding-block-end: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn:active, .button:active { transform: none; }
}
