/* 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;

  --teal: #006e79;
  --teal-deep: #005861;
  --peach: #e29579;
  --peach-soft: #f6dfd5;
  --paper: #fbf8f4;
  --mist: #eaf3f1;
  --ink: #183d42;
  --ink-soft: #3d5f63;
  --white: #ffffff;
  --line: #dfe7e4;
  --line-warm: #ece4dc;

  --r-lg: 28px;
  --r-md: 22px;
  --r-sm: 14px;
  --shadow: 0 1px 2px rgb(24 61 66 / 0.04), 0 12px 32px -18px rgb(24 61 66 / 0.18);
  --wrap: 1240px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --bar-h: 0px;

  --font: "Plex Arabic", "IBM Plex Sans Arabic", "Noto Sans Arabic", Tahoma, system-ui, sans-serif;
}

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

:lang(en) {
  --font: "Inter", "Plex Arabic", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-block-start: 96px;
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.75;
  background: var(--paper);
  color: var(--ink);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  padding-block-end: var(--bar-h);
}

:lang(en) body,
body:lang(en) {
  line-height: 1.65;
}

::selection {
  background: var(--peach-soft);
  color: var(--ink);
}

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

img {
  height: auto;
  display: block;
}

h1, h2, h3, h4 {
  margin: 0;
  line-height: 1.3;
  font-weight: 700;
  text-wrap: balance;
  color: var(--ink);
}

:lang(en) :is(h1, h2, h3) {
  letter-spacing: -0.02em;
  line-height: 1.18;
}

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

a {
  color: var(--teal);
  text-underline-offset: 0.22em;
  text-decoration-thickness: 1px;
}

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

main:focus {
  outline: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  inset-inline-start: 1rem;
  inset-block-start: -4rem;
  z-index: 100;
  background: var(--ink);
  color: var(--white);
  padding: 0.75rem 1.25rem;
  border-radius: var(--r-sm);
  text-decoration: none;
}

.skip-link:focus {
  inset-block-start: 1rem;
}

.wrap {
  width: min(100% - 2 * var(--gutter), var(--wrap));
  margin-inline: auto;
}

.icon {
  flex: none;
  width: 1.15em;
  height: 1.15em;
}

[dir="rtl"] .icon .flip {
  transform: scaleX(-1);
  transform-origin: center;
}

.riyal {
  display: inline-block;
  width: 0.9em;
  height: 0.9em;
  vertical-align: -0.05em;
  margin-inline-start: 0.2em;
}

.num {
  font-variant-numeric: tabular-nums lining-nums;
}

/* buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 48px;
  padding: 0.7rem 1.5rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font: inherit;
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.3;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 150ms ease, color 150ms ease, border-color 150ms ease, transform 160ms var(--ease-out);
}

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

.btn--primary {
  background: var(--teal);
  color: var(--white);
}

.btn--ghost {
  background: transparent;
  color: var(--teal);
  border-color: color-mix(in srgb, var(--teal) 35%, transparent);
}

.btn--light {
  background: var(--white);
  color: var(--ink);
}

.btn--sm {
  min-height: 44px;
  padding: 0.5rem 1.15rem;
  font-size: 0.95rem;
}

@media (hover: hover) and (pointer: fine) {
  .btn--primary:hover { background: var(--teal-deep); }
  .btn--ghost:hover { background: var(--mist); border-color: var(--teal); }
  .btn--light:hover { background: var(--mist); }
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 44px;
  font-weight: 600;
  color: var(--teal);
  text-decoration: none;
}

.text-link .icon {
  transition: transform 200ms var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {
  .text-link:hover { text-decoration: underline; }
  .text-link:hover .icon { transform: translateX(calc(var(--dir) * 3px)); }
}

/* section rhythm */
.section {
  padding-block: clamp(4rem, 9vw, 7.5rem);
}

.section-head {
  max-width: 44rem;
  margin-block-end: clamp(2rem, 4vw, 3.25rem);
}

.section-head h2 {
  font-size: clamp(1.75rem, 1.2rem + 2.2vw, 2.75rem);
}

.section-head p {
  margin-block-start: 1rem;
  color: var(--ink-soft);
  font-size: 1.0625rem;
  max-width: 38rem;
}

.lede {
  font-size: clamp(1.0625rem, 1rem + 0.35vw, 1.2rem);
  color: var(--ink-soft);
  max-width: 36rem;
}

/* scroll reveal (assets/theme.js): only content still below the screen at load; never booking or account pages */
.reveal {
  /* wins over a card's own hover transition until the reveal has finished and the class is removed */
  transition: opacity 560ms var(--ease-out), transform 560ms var(--ease-out) !important;
}
.reveal:not([data-visible]) {
  opacity: 0;
  transform: translateY(18px);
}
.final-cta.reveal .final-cta__line path {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset 1400ms var(--ease-in-out) 200ms;
}
.final-cta.reveal[data-visible] .final-cta__line path {
  stroke-dashoffset: 0;
}
@media (prefers-reduced-motion: reduce) {
  .reveal { transition: opacity 400ms ease !important; }
  .reveal:not([data-visible]) { transform: none; }
  .final-cta.reveal .final-cta__line path { stroke-dashoffset: 0; transition: none; }
}
