/* Nory’s Wellness: tokens, fonts, base and the shared button. Motion values follow the skill's reference/motion.md. */
@font-face { font-family: "Alexandria Latin"; src: url("fonts/alexandria-latin.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Alexandria Arabic"; src: url("fonts/alexandria-arabic.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }

:root {
  /* the identity guide's palette: oxblood #51121A, deep olive #383A18, olive #626B24, red #840823, pink #F7BFC7,
     butter #F8F2CD, ice #D9F6FC. Surfaces are white; the old beige is gone. */
  --sand: #FFFFFF;
  --sand-deep: #F7E0CE;
  --tint: #F8F3D3;
  --cream: #FFFFFF;
  --oxblood: #51121A;
  --oxblood-deep: #840823;
  --red: #840823;
  --olive: #626B24;
  --olive-deep: #383A18;
  --pink: #F7BFC7;
  --butter: #F8F3D3;
  --peach: #F7E0CE;
  --ice: #D9F6FC;
  --text: #383A18;
  --muted: #626B24;
  --rule: #DCDDCF;
  --on-dark: #FFFFFF;
  --on-dark-soft: #F7BFC7;

  /* names the selling flows' stylesheets read */
  --brand: #51121A;
  --ink: #383A18;
  --ink-soft: #626B24;
  --ivory: #FFFFFF;
  --ivory-2: #F8F3D3;
  --navy: #51121A;
  --gold: #DCDDCF;
  --line-ink: rgba(56, 58, 24, 0.2);
  --danger: #840823;
  --radius: 14px;

  /* the guide names Venice Blvd for English headlines (a licensed face we do not have) and Alexandria for everything
     else, in Arabic and English; Alexandria carries both until the Venice Blvd files arrive */
  --font-latin: "Alexandria Latin", "Alexandria Arabic", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-ar: "Alexandria Arabic", "Alexandria Latin", Tahoma, Arial, system-ui, sans-serif;
  --font-body: var(--font-latin);
  --font-display: var(--font-latin);
  --font-family: var(--font-body);

  --header-h: 62px;
  --gutter: 20px;
  --section-y: 56px;
  --max: 1360px;
  --corner: 56px;       /* the hero photo's softly rounded opposing corners */
  --corner-small: 6px;

  --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);
  --ease-carriage: cubic-bezier(0.22, 0.7, 0.2, 1);
  --dir: 1;
}
[dir="rtl"] { --dir: -1; }
html[lang^="ar"] { --font-body: var(--font-ar); --font-display: var(--font-ar); --font-family: var(--font-ar); }
@media (min-width: 768px) { :root { --gutter: clamp(28px, 5.5vw, 80px); --section-y: clamp(72px, 7.5vw, 104px); --header-h: 76px; --corner: clamp(72px, 9vw, 130px); } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body { margin: 0; background: #fff; color: var(--text); font-family: var(--font-body); font-size: 1rem; line-height: 1.65; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: clip; }
html[lang^="ar"] body { line-height: 1.85; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-underline-offset: 0.2em; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; padding: 0; }
ul[role="list"], ol[role="list"] { list-style: none; }
button { font: inherit; color: inherit; }
[hidden] { display: none !important; }
html[lang^="ar"] * { letter-spacing: normal !important; }
:focus-visible { outline: 2px solid var(--oxblood); outline-offset: 3px; border-radius: 4px; }
.on-dark :focus-visible, .site-footer :focus-visible { outline-color: var(--cream); }
::selection { background: var(--pink); color: var(--oxblood); }

.container { width: 100%; max-width: calc(var(--max) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; inset-block-start: 8px; inset-inline-start: 8px; z-index: 100; padding: 10px 16px; border-radius: 999px; background: var(--oxblood); color: var(--cream); transform: translateY(-160%); transition: transform 160ms var(--ease-out); }
.skip-link:focus { transform: none; }
.num, .latin { font-variant-numeric: lining-nums tabular-nums; }
.riyal { display: inline-block; width: 0.9em; height: 0.9em; margin-inline-start: 0.2em; vertical-align: -0.1em; }
.arrow { flex: none; width: 1.1em; height: 1.1em; transition: translate 200ms var(--ease-out); }
[dir="rtl"] .arrow, [dir="rtl"] .chev { scale: -1 1; }

/* buttons: rounded, compact, one primary action per place */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.55em; min-height: 46px; padding: 0 1.4rem; border: 1px solid var(--oxblood); border-radius: 999px; background: var(--oxblood); color: var(--cream); font-size: 0.9375rem; font-weight: 500; line-height: 1.2; text-decoration: none; cursor: pointer; white-space: nowrap; -webkit-tap-highlight-color: transparent; transition: transform 160ms var(--ease-out), background-color 150ms ease, color 150ms ease, border-color 150ms ease; }
.btn:active { transform: scale(0.97); }
.btn--ghost, .btn--line { background: transparent; color: var(--oxblood); }
.btn--ink { background: var(--oxblood); color: var(--cream); }
.btn--small { min-height: 44px; padding-inline: 1.1rem; font-size: 0.875rem; }
.btn--block { display: flex; width: 100%; white-space: normal; }
.btn--light { background: var(--cream); border-color: var(--cream); color: var(--oxblood); }
.btn--outline-light { background: transparent; border-color: rgba(248, 242, 233, 0.6); color: var(--cream); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.5; cursor: not-allowed; transform: none; }
@media (hover: hover) and (pointer: fine) {
  .btn:hover { background: var(--oxblood-deep); border-color: var(--oxblood-deep); }
  .btn--ghost:hover, .btn--line:hover { background: var(--oxblood); color: var(--cream); border-color: var(--oxblood); }
  .btn--light:hover { background: #fff; border-color: #fff; color: var(--oxblood); }
  .btn--outline-light:hover { background: var(--cream); color: var(--oxblood); border-color: var(--cream); }
  .btn:hover .arrow, .link:hover .arrow { translate: calc(var(--dir) * 4px) 0; }
}
.btn:focus-visible .arrow, .link:focus-visible .arrow { translate: calc(var(--dir) * 4px) 0; }
.link { display: inline-flex; align-items: center; gap: 0.4em; min-height: 44px; font-weight: 500; color: var(--oxblood); text-decoration: none; }
.link:hover { text-decoration: underline; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .link .arrow, .arrow { transition: none; }
}
