/* FARAH — site-wide base: reset, brand tokens, self-hosted type, utility bar. */

@font-face {
  font-family: "Cairo";
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
  src: url("../fonts/cairo-arabic.woff2") format("woff2");
  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: "Cairo";
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
  src: url("../fonts/cairo-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+1E00-1E9F, U+2020, U+20A0-20AB, U+20AD-20C0;
}
@font-face {
  font-family: "Cairo";
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
  src: url("../fonts/cairo-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+2000-206F, U+20AC, U+2122;
}

:root {
  --ivory: #faf7f1;
  --ink: #221c14;
  --muted-ink: #5b5142;
  --gold: #c7a050;
  --gold-dark: #a6813a;
  --emerald: #163832;
  --emerald-light: #1f4b43;
  --surface: #ffffff;
  --border: #e7dfcf;
  --band: #f3eee2;
  --amber-bg: #fbefdc;
  --amber-ink: #a6752c;
  --focus-ring: #0b5fff;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: "Cairo", system-ui, sans-serif;
  line-height: 1.5;
}

a {
  color: inherit;
}

img,
svg {
  display: block;
  max-width: 100%;
}

button,
input,
select,
textarea {
  font-family: inherit;
}

/* Visible focus everywhere (R-WEB-032): never remove without replacing. */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  inset-inline-start: 12px;
  top: -48px;
  background: var(--ink);
  color: var(--ivory);
  padding: 10px 18px;
  border-radius: 8px;
  z-index: 100;
  transition: top 0.15s ease;
}
.skip-link:focus {
  top: 12px;
}

/* Thin utility bar (locale switch) present across every page. */
.utility-bar {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 16px;
  padding: 10px 24px;
  background: var(--emerald);
  font-size: 13px;
}
.utility-bar__list {
  display: flex;
  gap: 14px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.utility-bar a {
  color: #cfc6b4;
  text-decoration: none;
  font-weight: 600;
  padding: 4px 2px;
}
.utility-bar a[aria-current="true"] {
  color: var(--gold);
}
.utility-bar a:hover {
  color: var(--ivory);
}

/* Default brand identity strip — every page except the homepage, which
   builds its own full header. */
.brand-bar {
  padding: 18px 24px;
  border-bottom: 1px solid var(--border);
}
.brand-bar__link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
}
.brand-bar__mark {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--emerald);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 15px;
  flex-shrink: 0;
}
.brand-bar__name {
  font-size: 17px;
  font-weight: 800;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 12px;
  padding: 15px 30px;
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  border: 1.5px solid transparent;
  cursor: pointer;
}
.btn-primary {
  background: var(--gold);
  color: var(--ink);
}
.btn-primary:hover {
  background: var(--gold-dark);
}
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--border);
}
.btn-ghost:hover {
  border-color: var(--gold);
  color: var(--gold-dark);
}
