/* ============================================================
   LEVAL — global stylesheet
   Brand: ivory / sage / sand. RTL-first, Arabic.
   ============================================================ */

@font-face {
  font-family: "Leval Arabic";
  src: url("/assets/brand/font-ar.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Leval Latin";
  src: url("/assets/brand/font-latin.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  /* brand palette */
  --sage: #40584c;
  --sage-deep: #263a31;
  --sage-soft: #6e7d73;
  --sand: #c6b9a4;
  --sand-light: #ded6c9;
  --ivory: #f4f0e7;
  --paper: #fbf9f4;
  --ink: #1d2b25;
  /* nudged a shade darker than the mockup swatch so body copy clears WCAG AA on ivory */
  --muted: #6b6359;
  /* readable counterpart to --sage-soft, for small uppercase eyebrow text */
  --sage-soft-text: #566658;

  /* semantic aliases — kept so older rules keep resolving */
  --green: var(--sage-deep);
  --green-deep: var(--sage-deep);
  --gold: var(--sand);
  --gold-strong: var(--sand-light);
  --hairline: #e4dcd0;
  --hairline-strong: #d5cabb;
  --leval-sand: var(--sand);

  --container: 1280px;
  --header-h: 92px;
  --radius: 0px;
}

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

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

body {
  margin: 0;
  font-family: "Leval Arabic", "Leval Latin", Tahoma, Arial, sans-serif;
  font-weight: 400;
  line-height: 1.75;
  color: var(--ink);
  background: var(--ivory);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, p {
  margin: 0;
}

h1, h2, h3, h4 {
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.28;
}

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

a {
  color: inherit;
  text-decoration: none;
}

svg {
  display: block;
}

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

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

::selection {
  background: var(--sand);
  color: var(--sage-deep);
}

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

.container,
.shell {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 2.25rem);
}

.skip-link {
  position: absolute;
  inset-inline-start: 1rem;
  top: -4rem;
  z-index: 60;
  padding: 0.6rem 1rem;
  background: var(--sage);
  color: var(--ivory);
  font-weight: 600;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 1rem;
}

/* ─────────── Typography helpers ─────────── */

.eyebrow {
  margin: 0 0 1.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--sage-soft-text);
}

.eyebrow--sand {
  color: var(--sand);
}

.eyebrow--light {
  color: var(--sand-light);
}

.display {
  font-size: clamp(2.5rem, 5vw, 4.6rem);
  line-height: 1.16;
  font-weight: 500;
  letter-spacing: -0.04em;
}

.lede {
  color: var(--muted);
  font-size: 1rem;
  line-height: 2.1;
}

.serif-num {
  font-family: Georgia, "Times New Roman", serif;
}

/* ─────────── Buttons ─────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 1.35rem;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1;
  padding: 1.05rem 1.5rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn svg {
  width: 1.25rem;
  height: 1.25rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
}

/* primary — sand on dark, used over imagery */
.btn--gold,
.btn--sand {
  background: var(--sand);
  color: var(--sage-deep);
}

.btn--gold:hover,
.btn--sand:hover {
  background: var(--sand-light);
}

/* primary — sage, used on light backgrounds */
.btn--sage {
  background: var(--sage);
  color: var(--ivory);
}

.btn--sage:hover {
  background: var(--sage-deep);
}

/* non-interactive state, e.g. a unit that is already booked */
.btn--off {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
}

.btn--ghost {
  background: transparent;
  border-color: var(--hairline-strong);
  color: var(--sage);
}

.btn--ghost:hover {
  border-color: var(--sage);
  background: var(--paper);
}

/* bordered link used over dark imagery */
.btn--outline-light {
  border-color: rgba(244, 240, 231, 0.55);
  color: var(--ivory);
}

.btn--outline-light:hover {
  background: var(--ivory);
  color: var(--sage-deep);
}

/* underlined text link with arrow */
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 1.35rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--sage-soft);
  font-size: 0.82rem;
  color: var(--sage);
  transition: gap 0.2s ease, border-color 0.2s ease;
}

.text-link:hover {
  gap: 1.7rem;
}

.text-link svg {
  width: 1.25rem;
  height: 1.25rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
}

.text-link--light {
  border-bottom-color: rgba(244, 240, 231, 0.55);
  color: var(--ivory);
}

/* arrows point with the reading direction */
html[dir="rtl"] .btn svg,
html[dir="rtl"] .text-link svg,
html[dir="rtl"] .arrow-ico {
  transform: scaleX(-1);
}

/* ─────────── Brand lockup ─────────── */

.leval-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--sage-deep);
}

.leval-logo__mark {
  width: auto;
  height: 46px;
  flex-shrink: 0;
}

.leval-logo__accent {
  fill: var(--sand);
}

.leval-logo__text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.leval-logo__word {
  font-family: "Leval Latin", Arial, sans-serif;
  font-size: 1.5rem;
  font-weight: 400;
  letter-spacing: 0.34em;
  padding-inline-start: 0.34em;
}

/* On light surfaces the lockup follows the printed artwork: green wordmark,
   muted tan strapline. The sand treatment is reserved for dark surfaces. */
.leval-logo__ar {
  margin-top: 0.3em;
  font-size: 1rem;
  color: var(--sage);
}

.leval-logo__tag {
  margin-top: 0.5em;
  font-family: "Leval Latin", Arial, sans-serif;
  font-size: 0.4rem;
  letter-spacing: 0.18em;
  color: #8a7d6b;
  white-space: nowrap;
}

/* on dark backgrounds */
.on-dark .leval-logo,
.site-header--overlay .leval-logo,
.site-footer .leval-logo {
  color: var(--ivory);
}

.on-dark .leval-logo__ar,
.site-header--overlay .leval-logo__ar,
.site-footer .leval-logo__ar,
.on-dark .leval-logo__tag,
.site-header--overlay .leval-logo__tag,
.site-footer .leval-logo__tag {
  color: var(--sand);
}

/* ─────────── Header ─────────── */

.site-header {
  position: relative;
  z-index: 30;
  background: var(--ivory);
  border-bottom: 1px solid var(--hairline);
}

/* transparent variant that sits on top of the hero image */
.site-header--overlay {
  background: transparent;
  border-bottom: 1px solid rgba(244, 240, 231, 0.25);
  color: var(--ivory);
}

.header-bar {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 2.25rem;
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.primary-nav ul {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2.4rem;
}

.primary-nav a {
  position: relative;
  display: inline-block;
  padding-block: 0.4rem;
  font-size: 0.9rem;
  color: var(--sage-deep);
  opacity: 0.85;
  transition: opacity 0.2s ease, color 0.2s ease;
}

.site-header--overlay .primary-nav a {
  color: var(--ivory);
}

.primary-nav a:hover,
.primary-nav a.is-active {
  opacity: 1;
}

.primary-nav a.is-active::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: -1px;
  height: 1px;
  background: var(--sand);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
}

/* the booking CTA only rides inside the menu once the header collapses */
.nav-cta-item {
  display: none;
}

.header-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 1.4rem;
  border: 1px solid var(--hairline-strong);
  font-size: 0.85rem;
  color: var(--sage);
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.header-action:hover {
  background: var(--sage);
  border-color: var(--sage);
  color: var(--ivory);
}

.site-header--overlay .header-action {
  border-color: rgba(244, 240, 231, 0.55);
  color: var(--ivory);
}

.site-header--overlay .header-action:hover {
  background: var(--ivory);
  border-color: var(--ivory);
  color: var(--sage-deep);
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 0.6rem;
  background: none;
  border: 0;
  padding: 0.4rem 0;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

.nav-toggle__bars {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
}

.nav-toggle__bars span {
  width: 24px;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(1) {
  transform: translateY(5.5px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(3) {
  transform: translateY(-5.5px) rotate(-45deg);
}

/* ─────────── Footer ─────────── */

.site-footer {
  background: var(--ink);
  color: var(--ivory);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 3rem;
  padding-block: clamp(3rem, 7vh, 4.5rem) 3rem;
}

.footer-brand .leval-logo {
  margin-bottom: 1.25rem;
}

.footer-tagline {
  max-width: 36ch;
  color: rgba(244, 240, 231, 0.7);
  font-size: 0.92rem;
  line-height: 2;
}

.footer-heading {
  margin-bottom: 1.1rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sand);
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.footer-col a,
.footer-contact li {
  color: rgba(244, 240, 231, 0.72);
  font-size: 0.92rem;
  transition: color 0.2s ease;
}

.footer-col a:hover {
  color: var(--sand);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1.5rem;
  border-top: 1px solid rgba(244, 240, 231, 0.14);
  font-size: 0.8rem;
  color: rgba(244, 240, 231, 0.5);
}

.footer-legal {
  display: flex;
  gap: 1.5rem;
}

.footer-legal a:hover {
  color: var(--sand);
}

/* ─────────── Floating call button ─────────── */

.float-call {
  position: fixed;
  z-index: 40;
  inset-inline-end: 1.15rem;
  bottom: 1.15rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--sand);
  color: var(--sage-deep);
  box-shadow: 0 12px 35px rgba(20, 36, 29, 0.24);
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.float-call:hover {
  transform: translateY(-2px);
  background: var(--sand-light);
}

.float-call svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ─────────── Form controls ─────────── */

select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2340584c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: left 0.85rem center;
  padding-inline-end: 1rem;
  padding-inline-start: 2.4rem;
}

html[dir="rtl"] select {
  background-position: right 0.85rem center;
  padding-inline-end: 2.4rem;
  padding-inline-start: 1rem;
}

/* ─────────── Responsive ─────────── */

@media (max-width: 980px) {
  .header-bar {
    grid-template-columns: auto 1fr;
  }

  .nav-toggle {
    display: inline-flex;
    justify-self: end;
  }

  .header-actions {
    display: none;
  }

  .primary-nav {
    position: absolute;
    top: 100%;
    inset-inline: 0;
    background: var(--ivory);
    border-bottom: 1px solid var(--hairline);
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.25s ease;
  }

  .primary-nav.is-open {
    grid-template-rows: 1fr;
  }

  .primary-nav ul {
    overflow: hidden;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .primary-nav li + li {
    border-top: 1px solid var(--hairline);
  }

  .primary-nav a {
    display: block;
    padding: 1rem clamp(1rem, 4vw, 2.25rem);
    color: var(--sage-deep);
  }

  .primary-nav a.is-active::after {
    display: none;
  }

  /* menu panel is always light, even under the overlay header */
  .site-header--overlay .primary-nav a {
    color: var(--sage-deep);
  }

  .nav-cta-item {
    display: list-item;
  }

  .nav-cta-item a,
  .site-header--overlay .nav-cta-item a {
    background: var(--sage);
    color: var(--ivory);
    font-weight: 500;
  }
}

@media (max-width: 640px) {
  :root {
    --header-h: 74px;
  }

  .leval-logo__mark {
    height: 34px;
  }

  .leval-logo__word {
    font-size: 1.1rem;
  }

  .leval-logo__ar {
    font-size: 0.8rem;
  }

  .leval-logo__tag {
    display: none;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2.25rem;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .float-call {
    width: 44px;
    height: 44px;
    inset-inline-end: 0.9rem;
    bottom: 0.9rem;
  }
}
