/* SOFT SPA: shell (header, footer) and the hero. Colours come from theme.css tokens, all derived from the logo. */
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }

/* ---------- header ---------- */
.site-header { position: sticky; inset-block-start: 0; z-index: 50; background: rgb(250 251 248 / 0.94); border-block-end: 1px solid var(--sage-200); backdrop-filter: blur(10px); }
.site-header__bar { display: flex; align-items: center; gap: 1.5rem; min-height: var(--header-h); }
.logo { display: inline-flex; flex: none; color: var(--sage-700); text-decoration: none; font-weight: 600; }
.logo img { block-size: 2.5rem; inline-size: auto; }
.site-nav { display: flex; flex: 1; align-items: center; justify-content: space-between; gap: 1.5rem; }
.site-nav__links { display: flex; gap: clamp(1rem, 2vw, 2rem); }
.site-nav a { text-decoration: none; font-size: 0.95rem; color: var(--sage-800); padding-block: 0.4rem; background: linear-gradient(var(--sage-600), var(--sage-600)) no-repeat 0 100% / 0 1px; transition: background-size 220ms var(--ease-out), color 150ms ease; }
[dir="rtl"] .site-nav a { background-position: 100% 100%; }
@media (hover: hover) and (pointer: fine) { .site-nav a:hover { background-size: 100% 1px; color: var(--sage-950); } }
.site-nav__extra { display: flex; align-items: center; gap: 1.25rem; }
.site-nav__lang { font-weight: 500; }
.site-header__actions { display: flex; align-items: center; gap: 0.75rem; margin-inline-start: auto; }
.site-header__lang { display: none; font-size: 0.9rem; font-weight: 500; color: var(--sage-800); text-decoration: none; padding: 0.5rem 0.25rem; }
.site-header__toggle { display: none; place-items: center; inline-size: 2.75rem; block-size: 2.75rem; border: 0; border-radius: 999px; background: transparent; color: var(--sage-800); cursor: pointer; }
.site-header__toggle path { transition: transform 220ms var(--ease-out); transform-origin: center; transform-box: fill-box; }
[data-nav-open] .bar-top { transform: translateY(4px) rotate(45deg); }
[data-nav-open] .bar-bottom { transform: translateY(-4px) rotate(-45deg); }
@media (max-width: 61.99rem) {
  .site-header__lang { display: inline-block; }
  .site-header__toggle { display: grid; }
  .site-nav { position: fixed; inset-inline: 0; inset-block-start: var(--header-h); flex-direction: column; align-items: stretch; gap: 0; padding: 0.5rem var(--gutter) 1.5rem; background: var(--paper); border-block-end: 1px solid var(--sage-200); box-shadow: var(--shadow-soft); max-block-size: calc(100dvh - var(--header-h)); overflow-y: auto;
    visibility: hidden; opacity: 0; transform: translateY(-0.5rem); transition: opacity 200ms var(--ease-out), transform 200ms var(--ease-out), visibility 0s linear 200ms; }
  [data-nav-open] .site-nav { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
  .site-nav__links { flex-direction: column; gap: 0; }
  .site-nav__links a, .site-nav__extra a { display: block; padding-block: 0.9rem; font-size: 1.05rem; border-block-end: 1px solid var(--sage-100); background: none; }
  .site-nav__extra { flex-direction: column; align-items: stretch; gap: 0; }
}
@media (max-width: 30rem) { .site-header__book { padding-inline: 1rem; min-height: 2.5rem; font-size: 0.9rem; } .site-header__bar { gap: 0.5rem; } .logo img { block-size: 2.1rem; } }

/* ---------- footer ---------- */
.site-footer { background: var(--sage-950); color: var(--sage-200); padding-block: clamp(3rem, 6vw, 5rem) 1.5rem; margin-block-start: 0; }
.site-footer__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 2.5rem; }
.site-footer h2 { font-size: 0.95rem; font-weight: 600; color: #fff; margin-block-end: 1rem; }
.site-footer li + li { margin-block-start: 0.65rem; }
.site-footer a { color: var(--sage-200); text-decoration-color: var(--sage-500); text-underline-offset: 0.25em; }
@media (hover: hover) and (pointer: fine) { .site-footer a:hover { color: #fff; } }
.site-footer__brand p { margin-block-start: 1rem; color: var(--sage-300); max-inline-size: 22rem; font-family: var(--font-display); font-size: 1.2rem; line-height: 1.6; }
.site-footer .logo { background: var(--paper); padding: 0.5rem 0.9rem; border-radius: 0.75rem; }
.site-footer small { color: var(--sage-300); }
.site-footer__social { display: flex; gap: 1rem; }
.site-footer__legal { margin-block-start: 3rem; padding-block-start: 1.25rem; border-block-start: 1px solid var(--sage-800); display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.5rem 1.5rem; }
.site-footer__legal a { font-size: 0.875rem; }

/* ---------- hero: the spa photograph, with a scrim on the text side only ---------- */
.hero { position: relative; isolation: isolate; overflow: hidden; background: var(--sage-950); color: #fff; min-block-size: clamp(34rem, 86svh, 46rem); display: grid; align-items: center; --ox: 50%; }
.hero__art { position: absolute; inset: 0; z-index: -2; inline-size: 100%; block-size: 100%; object-fit: cover; object-position: 30% 50%; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background:
  linear-gradient(to top, rgb(29 36 28 / 0.35), rgb(29 36 28 / 0) 40%),
  linear-gradient(to right, rgb(29 36 28 / 0.92) 0%, rgb(29 36 28 / 0.84) 46%, rgb(29 36 28 / 0.4) 68%, rgb(29 36 28 / 0) 88%); }
[dir="rtl"] .hero::after { background:
  linear-gradient(to top, rgb(29 36 28 / 0.35), rgb(29 36 28 / 0) 40%),
  linear-gradient(to left, rgb(29 36 28 / 0.92) 0%, rgb(29 36 28 / 0.84) 46%, rgb(29 36 28 / 0.4) 68%, rgb(29 36 28 / 0) 88%); }
.hero__ripples { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero__ripples i { position: absolute; inset-block-start: 62%; inset-inline-start: var(--ox); inline-size: 56rem; aspect-ratio: 1.9; border: 1px solid rgb(245 246 242 / 0.5); border-radius: 50%; translate: -50% -50%; opacity: 0; }
.hero__body { padding-block: clamp(4rem, 9vw, 7rem); max-inline-size: 36rem; }
.hero__title { text-shadow: 0 1px 24px rgb(29 36 28 / 0.45); font-family: var(--font-display); font-weight: 600; font-size: clamp(2.5rem, 6vw, 4.5rem); line-height: 1.12; text-wrap: balance; letter-spacing: -0.01em; }
[lang="ar"] .hero__title { line-height: 1.35; letter-spacing: 0; font-weight: 600; }
.hero__text { margin-block-start: 1.25rem; font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--sage-100); max-inline-size: 30rem; text-wrap: pretty; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-block-start: 2rem; }
.hero__actions .button, .hero__actions .button-quiet { min-height: 3rem; padding-inline: 1.7rem; }
/* a branch button turns the brand green the moment it is pressed, and stays so while its page opens */
.hero__actions .button--light:active, .hero__actions .button--light[data-pressed] { background: var(--brand); color: #fff; }
@media (max-width: 40rem) { .hero { align-items: end; } .hero__art { object-position: 14% 50%; } .hero::after, [dir="rtl"] .hero::after { background: linear-gradient(to top, rgb(29 36 28 / 0.92) 0%, rgb(29 36 28 / 0.82) 45%, rgb(29 36 28 / 0.2) 80%, rgb(29 36 28 / 0) 100%); } .hero__actions .button, .hero__actions .button-quiet { flex: 1 1 100%; } }

/* THE SOFT RIPPLE: the artwork opens from the ripple's centre, the words rise once, three rings drift out and stop. */
@media (prefers-reduced-motion: no-preference) {
  .hero__art { animation: ripple-open 1800ms var(--ease-out) both; }
  .hero__body > * { animation: rise 800ms var(--ease-out) both; }
  .hero__body > :nth-child(1) { animation-delay: 380ms; }
  .hero__body > :nth-child(2) { animation-delay: 520ms; }
  .hero__body > :nth-child(3) { animation-delay: 660ms; }
  .hero__ripples i { animation: ripple-ring 4200ms var(--ease-out) 2; }
  .hero__ripples i:nth-child(2) { animation-delay: 700ms; }
  .hero__ripples i:nth-child(3) { animation-delay: 1400ms; }
}
@keyframes ripple-open { from { clip-path: circle(0% at 50% 62%); } to { clip-path: circle(150% at 50% 62%); } }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes ripple-ring { 0% { opacity: 0.55; scale: 0.08; } 100% { opacity: 0; scale: 1; } }
