/* Swimora: the academy's current look, navy (#1F3245) on a light grey page, in Cairo.
   motion tokens: see the skill's reference/motion.md before adding any animation */
: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;
  --ink: var(--brand);
  --muted: #5b6b7b;
  --line: #e3e7eb;
  --surface: #ffffff;
  --radius: 12px;
}

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

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-family);
  background: var(--background);
  color: var(--ink);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.3;
}

.container {
  width: min(100% - 2.5rem, 84rem);
  margin-inline: auto;
}

.center {
  text-align: center;
}

.icon {
  flex: none;
}

[hidden] {
  display: none !important;
}

/* arrows and chevrons point forward: left in Arabic, right in English */
[dir="ltr"] .icon--arrow,
[dir="ltr"] .icon--chevron {
  transform: scaleX(-1);
}

/* buttons, as the current site's: 44px tall, 12px corners */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 2.75rem;
  padding: 0.5rem 2.5rem;
  border: 1px solid var(--brand);
  border-radius: var(--radius);
  background: var(--brand);
  color: var(--background);
  font: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 160ms var(--ease-out), transform 160ms var(--ease-out);
}

.button:hover {
  background: color-mix(in srgb, var(--brand) 85%, #ffffff);
}

.button:active {
  transform: scale(0.97);
}

.button--outline {
  background: transparent;
  color: var(--brand);
}

.button--outline:hover {
  background: color-mix(in srgb, var(--brand) 6%, transparent);
}

.button .icon {
  width: 1.15rem;
  height: 1.15rem;
}

.icon-button {
  display: inline-grid;
  place-items: center;
  position: relative;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: inherit;
  cursor: pointer;
}

.icon-button:hover {
  background: color-mix(in srgb, var(--brand) 6%, transparent);
}

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

/* the announcement banner */
.banner {
  background: var(--brand);
  color: #fff;
  font-size: 0.875rem;
  text-align: center;
}

.banner > * {
  display: block;
  margin-block: 0;
  padding-block: 0.5rem;
  color: inherit;
  text-decoration: none;
}

/* the header: a plain bar that floats as a white card once the page scrolls; Rekaz wraps each section in a
   div, so that wrapper is what sticks */
body > :has(> .site-header) {
  position: sticky;
  top: 0;
  z-index: 40;
}

.site-header {
  padding: 0.5rem;
}

.site-header__bar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
  min-height: 4rem;
  padding-inline: 1rem;
  border-radius: 16px;
  transition: background-color 200ms var(--ease-out), box-shadow 200ms var(--ease-out);
}

.site-header.is-floating .site-header__bar {
  background: var(--surface);
  box-shadow: 0 6px 24px rgb(31 50 69 / 0.1);
}

.logo {
  justify-self: start;
  display: inline-flex;
  color: inherit;
  font-weight: 800;
  font-size: 1.25rem;
  text-decoration: none;
}

.logo img {
  height: 1.2rem;
  width: auto;
}

.site-header__nav {
  display: flex;
  gap: 2rem;
  font-size: 0.9375rem;
}

.site-header__nav a {
  text-decoration: none;
  padding-block: 0.4rem;
  border-block-end: 2px solid transparent;
}

.site-header__nav a:hover,
.site-header__nav a[aria-current="page"] {
  border-block-end-color: currentColor;
}

.site-header__actions {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.site-header__branch {
  min-height: 2.75rem;
  padding-inline: 0.75rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 0.875rem;
  cursor: pointer;
}

.site-header__languages {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding-inline: 0.5rem;
  font-size: 0.875rem;
  font-weight: 700;
}

.languages {
  display: flex;
  gap: 0.75rem;
}

.languages a {
  text-decoration: none;
}

.cart-count {
  position: absolute;
  top: 0.25rem;
  inset-inline-end: 0.2rem;
  min-width: 1.1rem;
  height: 1.1rem;
  padding-inline: 0.25rem;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-size: 0.6875rem;
  font-weight: 700;
  line-height: 1.1rem;
  text-align: center;
}

.site-header__menu-open {
  display: none;
}
