/* ==========================================================================
   UmraPay — stylesheet
   Bidirectional by design: every inline offset uses CSS logical properties,
   so LTR and RTL are served by this one file. Only `dir` on <html> changes.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */
:root {
  /* Brand — teal is inherited from the existing UmraPay identity */
  --teal-900: #10453A;
  --teal-700: #1B7A67;
  --teal-600: #259D84;
  --teal-400: #57B8A2;
  --teal-100: #C9E7DF;
  --teal-050: #EAF6F2;

  /* Gold — restrained accent, used only for the card + eyebrow marks */
  --gold-600: #A87C22;
  --gold-500: #C89B3C;
  --gold-100: #F5E9CE;

  /* Ground — warm sand, a nod to Hijaz light */
  --sand-050: #FAF8F3;
  --sand-100: #F3F0E8;
  --sand-200: #E7E2D6;

  /* Ink */
  --ink-900: #14201D;
  --ink-700: #2C3A36;
  --ink-500: #5C6B67;
  --ink-400: #849490;
  --ink-300: #A6B2AE;

  /* Dark surfaces (footer) */
  --dark-900: #1A201E;
  --dark-800: #232A28;
  --dark-700: #303836;

  --white: #FFFFFF;
  --danger: #C0392B;
  --success: #1B7A67;

  /* Type */
  --font-sans: "IBM Plex Sans", ui-sans-serif, system-ui, -apple-system,
    "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-arabic: "IBM Plex Sans Arabic", "IBM Plex Sans", ui-sans-serif,
    system-ui, "Segoe UI", Tahoma, Arial, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --font-body: var(--font-sans);

  /* Fluid type scale */
  --fs-eyebrow: 0.75rem;
  --fs-small: 0.875rem;
  --fs-body: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  --fs-lead: clamp(1.0625rem, 1rem + 0.35vw, 1.1875rem);
  --fs-h5: clamp(1.0625rem, 1rem + 0.3vw, 1.1875rem);
  --fs-h3: clamp(1.375rem, 1.2rem + 0.8vw, 1.75rem);
  --fs-h2: clamp(1.75rem, 1.45rem + 1.5vw, 2.5rem);
  --fs-h1: clamp(2.125rem, 1.6rem + 2.6vw, 3.5rem);
  --fs-stat: clamp(2.25rem, 1.8rem + 2.2vw, 3.25rem);

  /* Space */
  --space-band: clamp(3.5rem, 2.2rem + 6vw, 7rem);
  --gutter: clamp(1.125rem, 0.6rem + 2.2vw, 2rem);
  --container: 1200px;

  /* Shape + depth */
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(20, 32, 29, 0.06),
    0 2px 8px rgba(20, 32, 29, 0.04);
  --shadow-md: 0 4px 12px rgba(20, 32, 29, 0.07),
    0 12px 32px rgba(20, 32, 29, 0.07);
  --shadow-lg: 0 10px 24px rgba(20, 32, 29, 0.09),
    0 28px 64px rgba(20, 32, 29, 0.1);

  --nav-h: 76px;
  --ease: cubic-bezier(0.22, 0.68, 0.34, 1);
}

/* Arabic gets its own family + a touch more line-height for the taller script */
html[lang="ar"] {
  --font-body: var(--font-arabic);
  --leading-body: 1.9;
}
html[lang="en"] {
  --leading-body: 1.7;
}

/* --------------------------------------------------------------------------
   2. Reset
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--leading-body);
  color: var(--ink-700);
  background-color: var(--sand-050);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5 {
  margin: 0;
  color: var(--ink-900);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

/* Arabic doesn't take negative tracking well */
html[lang="ar"] h1,
html[lang="ar"] h2,
html[lang="ar"] h3,
html[lang="ar"] h4,
html[lang="ar"] h5 {
  letter-spacing: 0;
  line-height: 1.45;
}

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

a {
  color: var(--teal-700);
  text-decoration: none;
}

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

img {
  height: auto;
}

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

button,
input,
textarea {
  font: inherit;
  color: inherit;
}

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

.sr-only {
  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: absolute;
  inset-inline-start: 1rem;
  top: -100px;
  z-index: 200;
  padding: 0.75rem 1.25rem;
  background: var(--teal-600);
  color: var(--white);
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  transition: top 0.2s var(--ease);
}
.skip-link:focus {
  top: 0;
}

/* --------------------------------------------------------------------------
   3. Layout primitives
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.band {
  padding-block: var(--space-band);
  position: relative;
}
.band--tight {
  padding-block: calc(var(--space-band) * 0.62);
}
.band--sand {
  background: var(--sand-100);
}
.band--dark {
  background: var(--dark-900);
  color: var(--sand-100);
}

/* Section heading block */
.band-head {
  max-width: 46rem;
  margin-inline: auto;
  margin-block-end: clamp(2rem, 1.2rem + 2.4vw, 3.25rem);
  text-align: center;
}
.band-head h2 {
  font-size: var(--fs-h2);
}
.band-head p {
  margin-block-start: 0.85rem;
  color: var(--ink-500);
  font-size: var(--fs-lead);
}

/* Signature device: a mono ledger label with a hairline that runs to the edge
   of its column. Encodes the payments/ledger domain rather than decorating. */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-block-end: 0.9rem;
  font-family: var(--font-mono);
  font-size: var(--fs-eyebrow);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-600);
}
.eyebrow::after {
  content: "";
  flex: 1 1 auto;
  height: 1px;
  background: linear-gradient(
    to var(--flow-end, right),
    var(--gold-500),
    transparent
  );
  opacity: 0.55;
}
.eyebrow--center {
  justify-content: center;
}
.eyebrow--center::before,
.eyebrow--center::after {
  content: "";
  flex: 0 1 4.5rem;
  height: 1px;
  background: var(--gold-500);
  opacity: 0.5;
}
/* Arabic is not uppercased and needs looser tracking at small sizes */
html[lang="ar"] .eyebrow {
  text-transform: none;
  letter-spacing: 0.02em;
  font-family: var(--font-arabic);
  font-weight: 600;
}
[dir="rtl"] {
  --flow-end: left;
}

/* --------------------------------------------------------------------------
   4. Buttons
   -------------------------------------------------------------------------- */
.btn {
  --btn-bg: var(--teal-600);
  --btn-fg: var(--white);
  --btn-bd: var(--teal-600);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.72rem 1.5rem;
  border: 1px solid var(--btn-bd);
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-size: var(--fs-small);
  font-weight: 600;
  line-height: 1.4;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease),
    color 0.2s var(--ease), transform 0.2s var(--ease),
    box-shadow 0.2s var(--ease);
}
.btn:hover {
  --btn-bg: var(--teal-700);
  --btn-bd: var(--teal-700);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}
.btn:active {
  transform: translateY(0);
}
.btn[disabled],
.btn[aria-busy="true"] {
  opacity: 0.62;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--teal-700);
  --btn-bd: var(--teal-100);
}
.btn--ghost:hover {
  --btn-bg: var(--teal-050);
  --btn-fg: var(--teal-700);
  --btn-bd: var(--teal-400);
}

.btn--onDark {
  --btn-bg: transparent;
  --btn-fg: var(--sand-100);
  --btn-bd: rgba(250, 248, 243, 0.28);
}
.btn--onDark:hover {
  --btn-bg: var(--teal-600);
  --btn-fg: var(--white);
  --btn-bd: var(--teal-600);
}

.btn--block {
  width: 100%;
}
.btn--lg {
  padding: 0.9rem 1.9rem;
  font-size: var(--fs-body);
}

.btn .icon {
  width: 1.05em;
  height: 1.05em;
  flex: none;
}
/* Directional glyphs mirror in RTL; symmetric ones must not. */
[dir="rtl"] .icon--flip {
  transform: scaleX(-1);
}

/* --------------------------------------------------------------------------
   5. Navigation
   -------------------------------------------------------------------------- */
.nav {
  position: fixed;
  inset-block-start: 0;
  inset-inline: 0;
  z-index: 100;
  background: rgba(250, 248, 243, 0.82);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-block-end: 1px solid transparent;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease),
    background-color 0.25s var(--ease);
}
.nav.is-stuck {
  border-block-end-color: var(--sand-200);
  box-shadow: 0 1px 20px rgba(20, 32, 29, 0.05);
}

.nav__inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: var(--nav-h);
}

.nav__brand {
  flex: none;
  display: inline-flex;
  align-items: center;
}
.nav__brand img {
  height: 34px;
  width: auto;
}

.nav__menu {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-inline-start: auto;
}

.nav__link {
  display: block;
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius-sm);
  color: var(--ink-700);
  font-size: var(--fs-small);
  font-weight: 500;
  transition: color 0.18s var(--ease), background-color 0.18s var(--ease);
}
.nav__link:hover {
  color: var(--teal-700);
  background: var(--teal-050);
}
.nav__link.is-active {
  color: var(--teal-700);
  font-weight: 600;
}

.nav__actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex: none;
}

/* Language switch — a two-state segmented control, always shows the
   language you'd switch *to* in that language's own script. */
.lang {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.9rem;
  border: 1px solid var(--sand-200);
  border-radius: 999px;
  background: var(--white);
  color: var(--ink-700);
  font-size: var(--fs-small);
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease),
    background-color 0.2s var(--ease);
}
.lang:hover {
  border-color: var(--teal-400);
  color: var(--teal-700);
  background: var(--teal-050);
}
.lang .icon {
  width: 1rem;
  height: 1rem;
  flex: none;
  opacity: 0.7;
}
/* The target-language label is set in its own script, so lock its font */
.lang__label {
  font-family: var(--font-sans);
}
.lang__label[data-script="ar"] {
  font-family: var(--font-arabic);
}

.nav__toggle {
  display: none;
  flex: none;
  width: 44px;
  height: 44px;
  padding: 0;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--sand-200);
  border-radius: var(--radius-sm);
  background: var(--white);
  cursor: pointer;
}
.nav__toggle span {
  position: relative;
  display: block;
  width: 18px;
  height: 1.5px;
  border-radius: 2px;
  background: var(--ink-700);
  transition: transform 0.25s var(--ease), background-color 0.15s var(--ease);
}
.nav__toggle span::before,
.nav__toggle span::after {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  width: 100%;
  height: 100%;
  border-radius: 2px;
  background: inherit;
  transition: transform 0.25s var(--ease);
}
.nav__toggle span::before {
  transform: translateY(-6px);
}
.nav__toggle span::after {
  transform: translateY(6px);
}
.nav__toggle[aria-expanded="true"] span {
  background: transparent;
}
.nav__toggle[aria-expanded="true"] span::before {
  transform: translateY(0) rotate(45deg);
  background: var(--ink-700);
}
.nav__toggle[aria-expanded="true"] span::after {
  transform: translateY(0) rotate(-45deg);
  background: var(--ink-700);
}

@media (max-width: 991px) {
  .nav__toggle {
    display: inline-flex;
    margin-inline-start: auto;
  }
  .nav__panel {
    position: absolute;
    inset-inline: 0;
    inset-block-start: 100%;
    display: grid;
    grid-template-rows: 0fr;
    background: var(--sand-050);
    border-block-end: 1px solid var(--sand-200);
    box-shadow: var(--shadow-md);
    transition: grid-template-rows 0.3s var(--ease);
  }
  .nav__panel > div {
    overflow: hidden;
  }
  .nav__panel.is-open {
    grid-template-rows: 1fr;
  }
  .nav__panel-inner {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 0.75rem var(--gutter) 1.5rem;
  }
  .nav__menu {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin-inline-start: 0;
  }
  .nav__link {
    padding: 0.8rem 0.5rem;
    border-block-end: 1px solid var(--sand-200);
    border-radius: 0;
    font-size: var(--fs-body);
  }
  .nav__actions {
    flex-direction: column;
    align-items: stretch;
    gap: 0.6rem;
    margin-block-start: 1rem;
  }
  .nav__actions .btn,
  .nav__actions .lang {
    width: 100%;
    justify-content: center;
  }
}

@media (min-width: 992px) {
  .nav__panel {
    display: contents;
  }
  .nav__panel > div,
  .nav__panel-inner {
    display: contents;
  }
}

/* --------------------------------------------------------------------------
   6. Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  padding-block: calc(var(--nav-h) + clamp(2.5rem, 1rem + 6vw, 5rem))
    var(--space-band);
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: url("../img/gallery/hero-header-bg.png");
  background-position: top center;
  background-size: cover;
  background-repeat: no-repeat;
  opacity: 0.9;
}
/* Fade the artwork out toward the page so the band edge is soft */
.hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(250, 248, 243, 0.35),
    rgba(250, 248, 243, 0.9) 78%,
    var(--sand-050)
  );
}
.hero .container {
  position: relative;
  z-index: 1;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 1rem + 4vw, 3.5rem);
  align-items: center;
}

.hero__title {
  font-size: var(--fs-h1);
  margin-block-end: 1rem;
}
.hero__brandline {
  display: block;
  margin-block-end: 0.4rem;
  color: var(--teal-600);
  font-weight: 500;
  font-size: 0.42em;
  letter-spacing: 0.02em;
}
.hero__lead {
  max-width: 34rem;
  color: var(--ink-500);
  font-size: var(--fs-lead);
}

/* Service list — a ledger of what the product actually does */
.hero__list {
  display: grid;
  gap: 0.75rem;
  margin-block: 1.75rem 2.25rem;
  max-width: 34rem;
}
.hero__list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  color: var(--ink-700);
}
.hero__list .tick {
  flex: none;
  width: 1.4rem;
  height: 1.4rem;
  margin-block-start: 0.22em;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--teal-050);
  color: var(--teal-600);
}
.hero__list .tick svg {
  width: 0.8rem;
  height: 0.8rem;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}
/* Full-bleed buttons below the phone breakpoint read as one tidy stack
   rather than two ragged pills */
@media (max-width: 479px) {
  .hero__cta .btn {
    flex: 1 1 100%;
  }
}

.hero__art {
  position: relative;
}
.hero__art img {
  width: 100%;
  max-width: 620px;
  margin-inline: auto;
}

@media (min-width: 768px) {
  .hero__grid {
    grid-template-columns: 1fr 1fr;
  }
  /* Illustration sits on the far side of the reading direction, both ways */
  .hero__art {
    order: 2;
  }
}
@media (min-width: 1200px) {
  .hero__grid {
    grid-template-columns: 1.05fr 1fr;
  }
}

/* --------------------------------------------------------------------------
   7. Cards (services)
   -------------------------------------------------------------------------- */
.grid-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1rem, 0.5rem + 1.6vw, 1.75rem);
}
@media (min-width: 600px) {
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 992px) {
  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.card {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding: clamp(1.5rem, 1.1rem + 1.2vw, 2.15rem);
  background: var(--white);
  border: 1px solid var(--sand-200);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease),
    border-color 0.3s var(--ease);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--teal-100);
}

.card__icon {
  width: 3.25rem;
  height: 3.25rem;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  background: var(--teal-050);
  color: var(--teal-600);
}
.card__icon svg {
  width: 1.6rem;
  height: 1.6rem;
}
.card h3 {
  font-size: var(--fs-h5);
}
.card p {
  color: var(--ink-500);
  font-size: var(--fs-small);
  line-height: 1.75;
}
html[lang="ar"] .card p {
  line-height: 1.95;
}

/* --------------------------------------------------------------------------
   8. Stats — the ledger row (signature)
   -------------------------------------------------------------------------- */
.ledger {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--sand-200);
  border: 1px solid var(--sand-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
@media (min-width: 900px) {
  .ledger {
    grid-template-columns: repeat(4, 1fr);
  }
}

.ledger__cell {
  padding: clamp(1.5rem, 1rem + 1.6vw, 2.25rem) clamp(1rem, 0.6rem + 1.2vw, 1.75rem);
  background: var(--white);
  text-align: center;
}
.ledger__value {
  display: block;
  font-family: var(--font-mono);
  font-size: var(--fs-stat);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
  line-height: 1.05;
  color: var(--teal-600);
  /* Figures stay LTR even in the RTL layout — that's correct for numerals */
  direction: ltr;
  unicode-bidi: isolate;
}
.ledger__label {
  display: block;
  margin-block-start: 0.55rem;
  font-size: var(--fs-small);
  color: var(--ink-500);
}

/* --------------------------------------------------------------------------
   9. Media / video panel
   -------------------------------------------------------------------------- */
.media {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--dark-900);
  cursor: pointer;
  box-shadow: var(--shadow-md);
}
.media img.media__still {
  width: 100%;
  aspect-ratio: 1320 / 580;
  object-fit: cover;
  opacity: 0.55;
  transition: transform 0.6s var(--ease), opacity 0.4s var(--ease);
}
.media:hover img.media__still {
  transform: scale(1.03);
  opacity: 0.45;
}
.media__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1.5rem;
  text-align: center;
  color: var(--white);
  background: linear-gradient(
    0deg,
    rgba(10, 9, 13, 0.72),
    rgba(10, 9, 13, 0.42)
  );
}
.media__play {
  width: clamp(56px, 8vw, 76px);
  height: auto;
  margin-block-end: 0.6rem;
  transition: transform 0.3s var(--ease);
}
.media:hover .media__play {
  transform: scale(1.08);
}
.media__overlay h3 {
  color: var(--white);
  font-size: var(--fs-h3);
}
.media__overlay p {
  max-width: 30rem;
  color: rgba(255, 255, 255, 0.8);
  font-size: var(--fs-small);
}

/* --------------------------------------------------------------------------
   10. Modal
   -------------------------------------------------------------------------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: var(--gutter);
  background: rgba(20, 32, 29, 0.55);
  backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s var(--ease), visibility 0.25s var(--ease);
}
.modal.is-open {
  opacity: 1;
  visibility: visible;
}
.modal__dialog {
  width: min(560px, 100%);
  padding: clamp(1.75rem, 1.2rem + 2vw, 2.75rem);
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  text-align: center;
  transform: translateY(12px) scale(0.98);
  transition: transform 0.25s var(--ease);
}
.modal.is-open .modal__dialog {
  transform: none;
}
.modal__dialog h3 {
  margin-block-end: 0.75rem;
  color: var(--teal-700);
  font-size: var(--fs-h3);
}
.modal__dialog p {
  margin-block-end: 1.75rem;
  color: var(--ink-500);
}

/* --------------------------------------------------------------------------
   11. Card showcase (the physical UmraPay card)
   -------------------------------------------------------------------------- */
/* card.png is card.jpeg with its flat #F7F7F7 field cut away, so the card can
   carry a real shadow and sit on the band as an object rather than as a
   screenshot in a box. */
.showcase {
  position: relative;
  background: var(--sand-100);
}
.showcase__art {
  max-width: 720px;
  margin-inline: auto;
  perspective: 1200px;
}
.showcase__art img {
  width: 100%;
  border-radius: 26px;
  box-shadow: 0 18px 36px rgba(20, 32, 29, 0.18),
    0 48px 90px rgba(20, 32, 29, 0.16);
  transition: transform 0.5s var(--ease);
}
@media (hover: hover) and (min-width: 768px) {
  .showcase__art img {
    transform: rotateX(6deg) rotateY(-4deg);
  }
  [dir="rtl"] .showcase__art img {
    transform: rotateX(6deg) rotateY(4deg);
  }
  .showcase__art:hover img,
  [dir="rtl"] .showcase__art:hover img {
    transform: none;
  }
}

/* --------------------------------------------------------------------------
   12. Data protection split
   -------------------------------------------------------------------------- */
.split {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 1rem + 4vw, 4rem);
  align-items: center;
}
@media (min-width: 768px) {
  .split {
    grid-template-columns: 1fr 1fr;
  }
}
.split__art img {
  width: 100%;
  max-width: 460px;
  margin-inline: auto;
}
.split__body h2 {
  font-size: var(--fs-h2);
  margin-block-end: 1rem;
}
.split__body > p {
  color: var(--ink-500);
  font-size: var(--fs-lead);
}
.split__list {
  display: grid;
  gap: 1.15rem;
  margin-block-start: 1.75rem;
}
.split__list li {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
}
.split__list .tick {
  flex: none;
  width: 1.55rem;
  height: 1.55rem;
  margin-block-start: 0.15em;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--teal-050);
  color: var(--teal-600);
}
.split__list .tick svg {
  width: 0.85rem;
  height: 0.85rem;
}
.split__list strong {
  display: block;
  color: var(--ink-900);
  font-weight: 600;
}
.split__list span {
  color: var(--ink-500);
  font-size: var(--fs-small);
}

/* --------------------------------------------------------------------------
   13. Contact
   -------------------------------------------------------------------------- */
.contact {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 1rem + 4vw, 4rem);
  align-items: start;
}
@media (min-width: 768px) {
  .contact {
    grid-template-columns: 1fr 1fr;
  }
}
@media (min-width: 992px) {
  .contact {
    grid-template-columns: 0.9fr 1.1fr;
  }
}

.contact__aside img {
  width: 200px;
  margin-block-end: 1.5rem;
}
.contact__aside h2 {
  font-size: var(--fs-h2);
  margin-block-end: 1rem;
}
.contact__aside p {
  color: var(--ink-500);
  max-width: 26rem;
}
.contact__direct {
  display: grid;
  gap: 0.6rem;
  margin-block-start: 2rem;
  padding-block-start: 1.75rem;
  border-block-start: 1px solid var(--sand-200);
}
.contact__direct a,
.contact__direct span {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--ink-700);
  font-size: var(--fs-small);
}
.contact__direct svg {
  width: 1.05rem;
  height: 1.05rem;
  flex: none;
  color: var(--teal-600);
}
.contact__direct a:hover {
  color: var(--teal-700);
}

/* Form */
.form {
  padding: clamp(1.5rem, 1rem + 2vw, 2.5rem);
  background: var(--white);
  border: 1px solid var(--sand-200);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.field {
  margin-block-end: 1.25rem;
}
.field__label {
  display: block;
  margin-block-end: 0.45rem;
  font-family: var(--font-mono);
  font-size: var(--fs-eyebrow);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-500);
}
html[lang="ar"] .field__label {
  font-family: var(--font-arabic);
  font-size: var(--fs-small);
  letter-spacing: 0;
  text-transform: none;
  font-weight: 600;
}

.input {
  display: block;
  width: 100%;
  padding: 0.8rem 1rem;
  background: var(--sand-050);
  border: 1px solid var(--sand-200);
  border-radius: var(--radius);
  font-size: var(--fs-body);
  transition: border-color 0.18s var(--ease), background-color 0.18s var(--ease),
    box-shadow 0.18s var(--ease);
}
.input::placeholder {
  color: var(--ink-300);
}
.input:focus {
  outline: none;
  background: var(--white);
  border-color: var(--teal-400);
  box-shadow: 0 0 0 3px var(--teal-050);
}
textarea.input {
  min-height: 150px;
  resize: vertical;
  line-height: 1.7;
}

/* Phone numbers read LTR in both languages */
.input[type="tel"] {
  direction: ltr;
  text-align: start;
}
[dir="rtl"] .input[type="tel"] {
  text-align: right;
}

.field.has-error .input {
  border-color: var(--danger);
  background: #fdf5f4;
}
.field.has-error .input:focus {
  box-shadow: 0 0 0 3px rgba(192, 57, 43, 0.1);
}
.field__error {
  display: none;
  margin-block-start: 0.4rem;
  color: var(--danger);
  font-size: var(--fs-small);
}
.field.has-error .field__error {
  display: block;
}

/* Attribution shown in place of the reCAPTCHA badge. Hidden until the SDK is
   actually loaded, so a site with no captcha configured shows no claim. */
.form__notice {
  display: none;
  margin-block-start: 1rem;
  color: var(--ink-400);
  font-size: 0.75rem;
  line-height: 1.6;
  text-align: center;
}
.has-recaptcha .form__notice {
  display: block;
}
.form__notice a {
  color: var(--ink-500);
  text-decoration: underline;
}
.form__notice a:hover {
  color: var(--teal-700);
}

/* The floating badge collides with the back-to-top button. Google allows
   hiding it provided the attribution above is shown instead. */
.has-recaptcha .grecaptcha-badge {
  visibility: hidden;
}

/* Honeypot — hidden from people, visible to naive bots */
.hp {
  position: absolute !important;
  inset-inline-start: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.form__status {
  display: none;
  gap: 0.7rem;
  align-items: flex-start;
  margin-block-end: 1.25rem;
  padding: 0.9rem 1.1rem;
  border-radius: var(--radius);
  font-size: var(--fs-small);
  line-height: 1.6;
}
.form__status.is-visible {
  display: flex;
}
.form__status svg {
  width: 1.15rem;
  height: 1.15rem;
  flex: none;
  margin-block-start: 0.15em;
}
.form__status--ok {
  background: var(--teal-050);
  border: 1px solid var(--teal-100);
  color: var(--teal-900);
}
.form__status--err {
  background: #fdf3f2;
  border: 1px solid #f2d5d1;
  color: #8c2c20;
}
.form__status a {
  color: inherit;
  font-weight: 600;
  text-decoration: underline;
}

.spinner {
  width: 1em;
  height: 1em;
  border: 2px solid currentColor;
  border-block-start-color: transparent;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* --------------------------------------------------------------------------
   14. Location / about
   -------------------------------------------------------------------------- */
.location {
  display: grid;
  grid-template-columns: 1fr;
  background: var(--white);
  border: 1px solid var(--sand-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
@media (min-width: 768px) {
  .location {
    grid-template-columns: 1.2fr 0.8fr;
  }
}
/* A tinted ground behind the embed, so a slow or blocked map degrades to a
   quiet panel rather than a stark white gap. */
.location__map {
  min-height: 320px;
  background-color: var(--sand-100);
  background-image: radial-gradient(
    circle at 1px 1px,
    var(--sand-200) 1px,
    transparent 0
  );
  background-size: 22px 22px;
}
.location__map iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 320px;
  border: 0;
}
.location__body {
  padding: clamp(1.5rem, 1.1rem + 1.6vw, 2.5rem);
}
.location__body h3 {
  font-size: var(--fs-h3);
  margin-block-end: 1.25rem;
}
.location__rows {
  display: grid;
  gap: 1rem;
}
.location__rows li {
  display: flex;
  gap: 0.8rem;
  align-items: flex-start;
  font-size: var(--fs-small);
  color: var(--ink-500);
}
.location__rows svg {
  width: 1.05rem;
  height: 1.05rem;
  flex: none;
  margin-block-start: 0.3em;
  color: var(--teal-600);
}
.location__rows a {
  color: var(--ink-700);
}
.location__rows a:hover {
  color: var(--teal-700);
}

.social {
  display: flex;
  gap: 0.5rem;
  margin-block-start: 1.75rem;
}
.social a {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid var(--sand-200);
  border-radius: 50%;
  color: var(--ink-500);
  transition: all 0.2s var(--ease);
}
.social a:hover {
  background: var(--teal-600);
  border-color: var(--teal-600);
  color: var(--white);
  transform: translateY(-2px);
}
.social svg {
  width: 1.05rem;
  height: 1.05rem;
}

/* --------------------------------------------------------------------------
   15. App download strip
   -------------------------------------------------------------------------- */
.appstrip {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  text-align: center;
}
/* app.png carries a lot of internal padding, so it needs to run larger than
   its optical weight suggests to hold its own on the dark band. */
.appstrip__icon {
  width: 84px;
  height: auto;
  margin-block-end: -0.5rem;
}
.appstrip h3 {
  color: var(--sand-100);
  font-size: var(--fs-h3);
  max-width: 34rem;
}
.appstrip .btn img {
  width: 20px;
  height: auto;
}

/* --------------------------------------------------------------------------
   16. Footer
   -------------------------------------------------------------------------- */
.footer {
  background: var(--dark-800);
  color: var(--sand-200);
  padding-block: clamp(3rem, 2rem + 3vw, 4.5rem) 0;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}
@media (min-width: 600px) {
  .footer__grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .footer__brand {
    grid-column: 1 / -1;
  }
}
@media (min-width: 992px) {
  .footer__grid {
    grid-template-columns: 1.6fr repeat(3, 1fr);
  }
  .footer__brand {
    grid-column: auto;
  }
}

.footer__brand img {
  width: 60px;
  margin-block-end: 1rem;
}
.footer__brand p {
  color: var(--ink-300);
  font-size: var(--fs-small);
  max-width: 22rem;
}
.footer h4 {
  margin-block-end: 1.1rem;
  color: var(--white);
  font-size: var(--fs-small);
  font-weight: 600;
  letter-spacing: 0.02em;
}
.footer__links {
  display: grid;
  gap: 0.7rem;
}
.footer__links a {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--ink-300);
  font-size: var(--fs-small);
  transition: color 0.18s var(--ease);
}
.footer__links a::before {
  content: "";
  flex: none;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--teal-600);
  transition: transform 0.18s var(--ease);
}
.footer__links a:hover {
  color: var(--white);
}
.footer__links a:hover::before {
  transform: scale(1.5);
}

.footer__bar {
  margin-block-start: clamp(2.5rem, 2rem + 2vw, 3.5rem);
  padding-block: 1.5rem;
  border-block-start: 1px solid rgba(250, 248, 243, 0.1);
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  align-items: center;
  justify-content: space-between;
  font-size: var(--fs-small);
  color: var(--ink-400);
}
.footer__bar p {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.footer__bar a {
  color: var(--teal-400);
  font-weight: 600;
}
.footer__bar a:hover {
  color: var(--white);
}
.footer__bar svg {
  width: 0.85rem;
  height: 0.85rem;
  color: #e05a4c;
}
@media (max-width: 599px) {
  .footer__bar {
    justify-content: center;
    text-align: center;
  }
}

/* --------------------------------------------------------------------------
   17. Back to top
   -------------------------------------------------------------------------- */
.totop {
  position: fixed;
  inset-block-end: 1.25rem;
  inset-inline-end: 1.25rem;
  z-index: 90;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: var(--teal-600);
  color: var(--white);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  box-shadow: var(--shadow-md);
  transition: all 0.25s var(--ease);
}
.totop.is-visible {
  opacity: 1;
  visibility: visible;
  transform: none;
}
.totop:hover {
  background: var(--teal-700);
}
.totop svg {
  width: 1.1rem;
  height: 1.1rem;
}

/* --------------------------------------------------------------------------
   18. Scroll reveal
   -------------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.reveal.is-in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* Avoid a flash of unstyled/mis-directioned content before i18n boots */
html.is-booting body {
  opacity: 0;
}
body {
  transition: opacity 0.2s ease-in;
}

@media print {
  .nav,
  .totop,
  .modal {
    display: none !important;
  }
}
