/* Merchant portal base styles. Logical properties only: the page flips with <html dir>. */
@font-face { font-family: 'Readex Pro'; font-weight: 400; font-style: normal; font-display: swap; src: url('../fonts/readex-pro-400') format('truetype'); }
@font-face { font-family: 'Readex Pro'; font-weight: 600; font-style: normal; font-display: swap; src: url('../fonts/readex-pro-600') format('truetype'); }

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

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

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: var(--fs-base);
  line-height: 1.6;
}

.container {
  width: 100%;
  max-inline-size: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

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

.skip-link {
  position: absolute;
  inset-inline-start: var(--space-2);
  inset-block-start: -100px;
  padding: var(--space-1) var(--space-2);
  background: var(--text);
  color: var(--navy);
  border-radius: var(--radius-control);
  z-index: 10;
}
.skip-link:focus { inset-block-start: var(--space-1); }

/* Header */
.site-header { border-block-end: 1px solid var(--border); }
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  min-block-size: 80px;
}
.brand { display: inline-flex; align-items: center; }
.brand img { block-size: 44px; inline-size: auto; display: block; }

.lang-switch { display: flex; gap: var(--space-1); margin: 0; }
.lang-switch__btn {
  font: inherit;
  font-size: var(--fs-sm);
  min-block-size: 44px;
  min-inline-size: 44px;
  padding-inline: var(--space-2);
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-control);
  cursor: pointer;
}
.lang-switch__btn:hover { border-color: var(--text-muted); }
.header-link[aria-current='page'] { border-color: var(--brand); color: #fff; box-shadow: inset 0 -2px 0 var(--brand); }
.lang-switch__btn[aria-current='true'] { background: var(--brand); border-color: var(--brand); font-weight: 600; cursor: default; }

/* Content */
.site-main { flex: 1 0 auto; padding-block: var(--space-5); }
.hero__eyebrow {
  display: inline-block;
  padding: 4px var(--space-2);
  font-size: var(--fs-sm);
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
}
.hero__title { margin: var(--space-3) 0 var(--space-2); font-size: var(--fs-h1); line-height: 1.2; font-weight: 600; }
.hero__lead { margin: 0; max-inline-size: 36rem; font-size: var(--fs-lg); color: var(--text-muted); }

/* Footer */
.site-footer { border-block-start: 1px solid var(--border); padding-block: var(--space-4) var(--space-3); color: var(--text-muted); font-size: var(--fs-sm); }
.site-footer__grid { display: grid; gap: var(--space-3); }
.site-footer .brand img { block-size: 36px; }
.site-footer__tagline { margin: var(--space-1) 0 0; color: var(--text); font-size: var(--fs-base); }
.site-footer__text { margin: 4px 0 0; }
.site-footer a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.site-footer__contact { margin: 0; }
.site-footer__copy { margin: var(--space-3) 0 0; padding-block-start: var(--space-2); border-block-start: 1px solid var(--border); text-align: center; }

/* Contact details + app links */
.site-footer__heading { margin: 0 0 var(--space-1); font-size: var(--fs-sm); font-weight: 600; color: var(--text-muted); }
.site-footer__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.site-footer__list li { display: flex; align-items: center; gap: 10px; color: var(--text); }
.site-footer__list svg, .store-badge svg { flex: none; inline-size: 18px; block-size: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.site-footer__list svg { color: var(--accent-text); }
.site-footer__list a { text-decoration: none; }
.site-footer__list a:hover { text-decoration: underline; }
.site-footer__stores { display: flex; flex-wrap: wrap; gap: 10px; }
.site-footer .store-badge { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border: 1px solid var(--border);
  border-radius: var(--radius-control); background: var(--surface); color: var(--text); text-decoration: none; font-weight: 600; }
.site-footer .store-badge:hover { border-color: var(--text-muted); }
.store-badge svg { fill: currentColor; stroke: none; }
.site-footer .sr-only { position: absolute; inline-size: 1px; block-size: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

@media (min-width: 768px) {
  .site-footer__grid { grid-template-columns: 2fr 1.2fr 1fr; align-items: start; }
}

@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
