/* Hol Desert Hotel — base, layout, components */
@import url("tokens.css");

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; background: var(--bg); scrollbar-color: var(--line-strong) var(--bg); }
body {
  font-family: var(--sans);
  font-size: var(--fs-base);
  line-height: var(--lh-body);
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, video, svg, canvas { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-underline-offset: 0.22em; text-decoration-thickness: 1px; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }
::selection { background: var(--accent); color: var(--bg); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
input, textarea, select { caret-color: var(--accent); accent-color: var(--accent); }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 300; line-height: var(--lh-head); text-wrap: balance; }
p { text-wrap: pretty; }
.nowrap, .ltr { white-space: nowrap; unicode-bidi: isolate; }
.num { font-variant-numeric: tabular-nums lining-nums; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: fixed; inset-block-start: 8px; inset-inline-start: 8px; z-index: 100; padding: 12px 18px; background: var(--fg); color: var(--bg); border-radius: var(--pill); transform: translateY(-160%); transition: transform var(--dur-ui) var(--ease-out); }
.skip:focus { transform: none; }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); background: var(--bg); color: var(--fg); position: relative; }
.lead { font-size: var(--fs-lg); line-height: 1.6; color: var(--fg-2); max-width: 46ch; }
.prose p + p { margin-block-start: 1em; }
.prose { max-width: 68ch; }
.muted { color: var(--fg-2); }
.h2 { font-size: var(--fs-h2); line-height: var(--lh-tight); letter-spacing: -0.01em; }
.h3 { font-size: var(--fs-h3); line-height: 1.12; }
.rule { border: 0; border-top: 1px solid var(--line); }

/* ---------- Logo ---------- */
.logo { display: inline-flex; align-items: center; gap: 14px; min-height: 44px; text-decoration: none; color: inherit; }
.logo__word { position: relative; font-family: var(--serif); font-weight: 400; font-size: 32px; line-height: 1; padding-inline: 2px; }
.logo__word::after { content: ""; position: absolute; inset-inline: -10px; inset-block-end: 3px; height: 1px; background: currentColor; opacity: 0.75; }
.logo__sub { font-size: 12px; letter-spacing: 0.24em; line-height: 1.5; text-transform: uppercase; opacity: 0.85; direction: ltr; }

/* ---------- Buttons ---------- */
.btn {
  --b-bg: var(--btn-bg); --b-fg: var(--btn-fg);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding-inline: 28px; border-radius: var(--pill);
  background: var(--b-bg); color: var(--b-fg); border: 1px solid var(--b-bg);
  font-family: var(--sans); font-weight: 600; font-size: 1rem; line-height: 1; text-decoration: none; white-space: nowrap;
  transition: transform var(--dur-press) var(--ease-out), background-color var(--dur-ui) var(--ease-out), color var(--dur-ui) var(--ease-out), border-color var(--dur-ui) var(--ease-out);
}
.btn:active { transform: scale(0.97); }
.btn--light { --b-bg: var(--star); --b-fg: var(--ink); }
.btn--ghost { background: transparent; color: inherit; border-color: currentColor; }
.btn--ghost-light { background: rgba(13, 18, 32, 0.18); color: var(--star); border-color: rgba(243, 233, 216, 0.7); backdrop-filter: blur(6px); }
.btn svg { width: 18px; height: 18px; flex: none; }
@media (hover: hover) and (pointer: fine) {
  .btn:hover { --b-bg: var(--accent); --b-fg: var(--bg); }
  .btn--light:hover { --b-bg: #fff; --b-fg: var(--ink); }
  .btn--ghost:hover, .btn--ghost-light:hover { background: var(--fg); color: var(--bg); border-color: var(--fg); }
  .btn--ghost-light:hover { background: var(--star); color: var(--ink); border-color: var(--star); }
}
.link { color: var(--accent); text-decoration: underline; text-underline-offset: 0.25em; font-weight: 600; }
.arrow-link { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; text-decoration: none; padding-block: 10px; border-bottom: 1px solid currentColor; }
.arrow-link svg { width: 16px; height: 16px; transition: transform var(--dur-ui) var(--ease-out); }
[dir="ltr"] .arrow-link svg { transform: scaleX(-1); }
@media (hover: hover) and (pointer: fine) { .arrow-link:hover svg { transform: translateX(-4px); } [dir="ltr"] .arrow-link:hover svg { transform: scaleX(-1) translateX(-4px); } }

/* ---------- Header ---------- */
.hdr {
  position: fixed; inset-inline: 0; inset-block-start: 0; z-index: 50;
  color: var(--fg);
  transition: background-color 240ms var(--ease-out), color 240ms var(--ease-out), transform 300ms var(--ease-out), box-shadow 240ms var(--ease-out);
}
.hdr__in { display: flex; align-items: center; gap: var(--s8); min-height: 76px; }
.hdr__nav { display: flex; gap: clamp(18px, 2vw, 34px); margin-inline-start: auto; }
.hdr__nav a { font-size: var(--fs-sm); font-weight: 400; text-decoration: none; padding-block: 12px; position: relative; }
.hdr__nav a::after { content: ""; position: absolute; inset-inline: 0; inset-block-end: 6px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform var(--dur-ui) var(--ease-out); }
.hdr__nav a[aria-current="page"]::after { transform: scaleX(1); }
[dir="ltr"] .hdr__nav a::after { transform-origin: left; }
@media (hover: hover) and (pointer: fine) { .hdr__nav a:hover::after { transform: scaleX(1); } }
.hdr__tools { display: flex; align-items: center; gap: var(--s4); }
.hdr__clock { display: inline-flex; align-items: center; gap: 8px; font-size: var(--fs-xs); letter-spacing: 0.02em; opacity: 0.9; white-space: nowrap; }
.hdr__clock .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--sun-dot); }
html[data-time="night"] .hdr__clock .dot { background: var(--star); }
.hdr .btn { min-height: 44px; padding-inline: 20px; font-size: var(--fs-sm); }
.hdr__menu { display: none; width: 44px; height: 44px; align-items: center; justify-content: center; border-radius: 50%; border: 1px solid currentColor; }
.hdr__menu svg { width: 18px; height: 18px; }
/* over a dark hero */
body[data-hero="media"] .hdr:not(.is-solid) { color: var(--star); }
body[data-hero="media"] .hdr:not(.is-solid) .btn { --b-bg: var(--star); --b-fg: var(--ink); }
.hdr.is-solid { background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2); box-shadow: 0 1px 0 var(--line); } /* taste-skill-ignore: sticky header overlay */
.hdr.is-hidden { transform: translateY(-100%); }

/* day / night switch */
.daynight { position: relative; display: inline-flex; align-items: center; height: 36px; padding: 3px; border: 1px solid color-mix(in srgb, currentColor 45%, transparent); border-radius: var(--pill); font-size: var(--fs-xs); }
.daynight button { position: relative; z-index: 1; min-width: 44px; height: 28px; padding-inline: 10px; border-radius: var(--pill); transition: color var(--dur-ui) var(--ease-out); }
.daynight::before { content: ""; position: absolute; inset-block: 3px; inset-inline-start: 3px; width: calc(50% - 3px); border-radius: var(--pill); background: currentColor; opacity: 0.16; transition: transform 240ms var(--ease-out); }
html[data-time="night"] .daynight::before { transform: translateX(-100%); }
html[dir="ltr"][data-time="night"] .daynight::before { transform: translateX(100%); }
.daynight button[aria-pressed="true"] { font-weight: 600; }
/* touch target expansion on the toggle */
.daynight button::after { content: ""; position: absolute; inset: -8px -2px; }

/* mobile menu */
.menu { position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; border: 0; padding: 0; background: var(--night); color: var(--star); }
.menu::backdrop { background: transparent; }
.menu[open] { display: flex; flex-direction: column; }
.menu__top { display: flex; justify-content: space-between; align-items: center; min-height: 76px; padding-inline: var(--gutter); }
.menu__close { width: 44px; height: 44px; border-radius: 50%; border: 1px solid currentColor; display: grid; place-items: center; }
.menu__close svg { width: 18px; height: 18px; }
.menu__nav { display: flex; flex-direction: column; padding: var(--s10) var(--gutter); gap: var(--s2); }
.menu__nav a { font-family: var(--serif); font-weight: 300; font-size: clamp(40px, 11vw, 64px); line-height: 1.15; text-decoration: none; }
.menu__foot { margin-top: auto; padding: var(--s8) var(--gutter) var(--s10); display: grid; gap: var(--s4); border-top: 1px solid rgba(243, 233, 216, 0.14); }
.menu__foot .btn { width: 100%; }
.menu__foot p { font-size: var(--fs-sm); color: var(--star-2); }
@media (prefers-reduced-motion: no-preference) {
  .menu[open] .menu__nav a { animation: menuIn 420ms var(--ease-out) both; }
  .menu[open] .menu__nav a:nth-child(2) { animation-delay: 40ms; }
  .menu[open] .menu__nav a:nth-child(3) { animation-delay: 80ms; }
  .menu[open] .menu__nav a:nth-child(4) { animation-delay: 120ms; }
  .menu[open] .menu__nav a:nth-child(5) { animation-delay: 160ms; }
  .menu[open] .menu__nav a:nth-child(6) { animation-delay: 200ms; }
}
@keyframes menuIn { from { opacity: 0; transform: translateY(24px); } }

@media (max-width: 1080px) { .hdr__nav, .hdr__clock { display: none; } .hdr__tools { margin-inline-start: auto; } }
@media (max-width: 720px) {
  .hdr__in { min-height: 64px; gap: var(--s3); }
  .hdr__menu { display: inline-flex; }
  .hdr .hdr__cta, .hdr .daynight { display: none; }
  .logo__sub { display: none; }
}

/* mobile action bar */
.actionbar { position: fixed; inset-inline: 12px; inset-block-end: max(12px, env(safe-area-inset-bottom)); z-index: 45; display: none; gap: 8px; padding: 8px; border-radius: var(--pill); background: color-mix(in srgb, var(--night) 92%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 12px 30px -10px rgba(13, 18, 32, 0.5); transform: translateY(140%); transition: transform 300ms var(--ease-out); } /* taste-skill-ignore: fixed mobile action bar */
.actionbar.is-on { transform: none; }
.actionbar.is-on.is-away { transform: translateY(140%); }
.actionbar .btn { flex: 1; min-height: 48px; padding-inline: 14px; }
.actionbar .btn--wa { --b-bg: transparent; --b-fg: var(--star); border-color: rgba(243, 233, 216, 0.35); }
.actionbar .btn--go { --b-bg: var(--glow); --b-fg: var(--ink); }
@media (max-width: 720px) { .actionbar { display: flex; } }

/* ---------- Page hero (inner pages) ---------- */
.phero { position: relative; min-height: 88svh; display: grid; align-items: end; color: var(--star); overflow: hidden; background: var(--night); isolation: isolate; }
.phero__media { position: absolute; inset: 0; z-index: -1; }
.phero__media img, .phero__media video { width: 100%; height: 100%; object-fit: cover; }
.phero__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(18, 13, 10, 0.72) 0%, rgba(18, 13, 10, 0.2) 45%, rgba(18, 13, 10, 0.35) 100%); }
.phero__in { padding-block: var(--s32) clamp(56px, 10vh, 112px); display: grid; gap: var(--s6); }
.phero h1 { font-size: var(--fs-display); line-height: 0.9; letter-spacing: -0.02em; }
.phero p { font-size: var(--fs-lg); max-width: 42ch; color: rgba(243, 233, 216, 0.92); }
.crumbs { font-size: var(--fs-sm); color: rgba(243, 233, 216, 0.85); }
.crumbs a { text-decoration: none; }

/* ---------- Reveal (motion only when allowed; content visible by default) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity var(--dur-reveal) var(--ease-out), transform var(--dur-reveal) var(--ease-out); }
  .js [data-reveal].is-in { opacity: 1; transform: none; }
  /* clip the child, not the observed element: a fully clipped target never intersects */
  .js [data-reveal="clip"] { opacity: 1; transform: none; }
  .js [data-reveal="clip"] > * { clip-path: inset(100% 0 0 0); transform: scale(1.12); transition: clip-path 1.4s var(--ease-out), transform 1.8s var(--ease-out); }
  .js [data-reveal="clip"].is-in > * { clip-path: inset(0); transform: none; }
}

/* ---------- Window frame (shared motif) ---------- */
.window { position: relative; overflow: hidden; background: var(--night-2); }
.window img, .window video { width: 100%; height: 100%; object-fit: cover; }
.window--framed { outline: 1px solid var(--line-strong); outline-offset: 12px; }

/* ---------- Split (suites, experiences) ---------- */
.feature { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 6vw, 112px); align-items: center; }
.feature--flip { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.feature--flip .feature__media { order: 2; }
.feature__media { aspect-ratio: 4 / 5; }
.feature__media.wide { aspect-ratio: 3 / 2; }
.feature__body { display: grid; gap: var(--s6); align-content: start; }
.feature__body h2 { font-size: var(--fs-h2); line-height: 1; }
.facts { display: grid; gap: 0; border-top: 1px solid var(--line); }
.facts li { list-style: none; display: flex; justify-content: space-between; gap: var(--s6); padding-block: 14px; border-bottom: 1px solid var(--line); font-size: var(--fs-sm); }
.facts li span:first-child { color: var(--fg-2); }
.facts li span:last-child { font-weight: 600; text-align: end; }
ul.facts { padding: 0; }
.price { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.price b { font-family: var(--serif); font-weight: 400; font-size: clamp(36px, 3.4vw, 52px); line-height: 1; }
.price span { font-size: var(--fs-sm); color: var(--fg-2); }
@media (max-width: 860px) {
  .feature, .feature--flip { grid-template-columns: minmax(0, 1fr); }
  .feature--flip .feature__media { order: 0; }
  .feature__media { aspect-ratio: 4 / 4.4; }
}

/* ---------- Promise strip ---------- */
.promise { display: flex; flex-wrap: wrap; gap: var(--s4) var(--s10); justify-content: center; padding-block: var(--s6); border-block: 1px solid var(--line); font-size: var(--fs-sm); color: var(--fg-2); }
.promise span { display: inline-flex; align-items: center; gap: 10px; }
.promise svg { width: 16px; height: 16px; color: var(--accent); flex: none; }

/* ---------- FAQ ---------- */
.faq { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 112px); }
.faq h2 { font-size: var(--fs-h2); line-height: 1; }
.faq__list { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: var(--s6); padding-block: 24px; cursor: pointer; font-family: var(--serif); font-size: clamp(20px, 1.6vw, 26px); line-height: 1.3; min-height: 44px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .pm { position: relative; width: 16px; height: 16px; flex: none; }
.faq summary .pm::before, .faq summary .pm::after { content: ""; position: absolute; inset-inline: 0; top: 50%; height: 1px; background: currentColor; transition: transform var(--dur-ui) var(--ease-out); }
.faq summary .pm::after { transform: rotate(90deg); }
.faq details[open] summary .pm::after { transform: rotate(0); }
.faq .ans { padding-block-end: 26px; color: var(--fg-2); max-width: 62ch; }
.faq .ans p + p { margin-top: 0.8em; }
@media (max-width: 860px) { .faq { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Booking teaser form (home + inner) ---------- */
.quick { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) auto; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 4px; overflow: hidden; }
.quick label { display: grid; gap: 2px; padding: 14px 18px; background: var(--surface); font-size: var(--fs-xs); color: var(--fg-2); cursor: pointer; }
.quick input, .quick select { border: 0; background: transparent; font-size: 1.0625rem; color: var(--fg); padding: 4px 0; min-height: 32px; width: 100%; }
.quick .btn { border-radius: 0; min-height: 100%; padding-inline: 32px; }
@media (max-width: 860px) { .quick { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .quick input, .quick select { min-width: 0; } .quick label:nth-child(3) { grid-column: span 2; } .quick .btn { grid-column: span 2; min-height: 56px; } }

/* ---------- Forms ---------- */
.form { display: grid; gap: var(--s6); }
.field { display: grid; gap: 8px; }
.field label, .field legend { font-size: var(--fs-sm); font-weight: 600; }
.field .hint { font-size: var(--fs-xs); color: var(--fg-2); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 54px; padding: 14px 16px; border-radius: 4px;
  border: 1px solid var(--line-strong); background: var(--surface); color: var(--fg); font-size: 1.0625rem;
  transition: border-color var(--dur-ui) var(--ease-out), box-shadow var(--dur-ui) var(--ease-out);
}
.field textarea { min-height: 128px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); } /* taste-skill-ignore: form focus ring */
.field input::placeholder, .field textarea::placeholder { color: color-mix(in srgb, var(--fg-2) 85%, transparent); }
.field .err { display: none; font-size: var(--fs-sm); color: var(--error); font-weight: 600; }
.field.is-invalid input, .field.is-invalid select, .field.is-invalid textarea { border-color: var(--error); }
.field.is-invalid .err { display: block; }
.row2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s6); }
@media (max-width: 640px) { .row2 { grid-template-columns: minmax(0, 1fr); } }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: var(--fs-sm); line-height: 1.55; cursor: pointer; }
.check input { width: 22px; height: 22px; margin-top: 2px; flex: none; }
.hp { position: absolute; inset-inline-start: -9999px; }

/* ---------- Footer ---------- */
.ftr { background: var(--night); color: var(--star); overflow: hidden; position: relative; }
.ftr .wrap { padding-block: clamp(80px, 12vh, 140px) var(--s10); }
.ftr__grid { display: grid; grid-template-columns: minmax(0, 5fr) repeat(3, minmax(0, 2.4fr)); gap: var(--s10); }
.ftr h2 { font-size: clamp(28px, 2.6vw, 40px); line-height: 1.15; max-width: 16ch; }
.ftr h3 { font-family: var(--sans); font-size: var(--fs-xs); font-weight: 600; letter-spacing: 0.04em; color: var(--star-2); margin-bottom: var(--s4); }
.ftr ul { list-style: none; padding: 0; display: grid; gap: 4px; }
.ftr li a, .ftr address a { text-decoration: none; display: inline-block; padding-block: 6px; }
.ftr address { font-style: normal; display: grid; gap: 4px; }
@media (hover: hover) and (pointer: fine) { .ftr li a:hover, .ftr address a:hover { text-decoration: underline; } }
.ftr__word { font-family: var(--serif); font-weight: 300; font-size: clamp(160px, 34vw, 560px); line-height: 0.74; text-align: center; color: transparent; -webkit-text-stroke: 1px rgba(243, 233, 216, 0.28); margin-block: var(--s16) calc(-0.12em); user-select: none; pointer-events: none; position: relative; }
.ftr__word::after { content: ""; position: absolute; inset-inline: 0; top: 64%; height: 1px; background: rgba(243, 233, 216, 0.28); }
.ftr__legal { display: flex; flex-wrap: wrap; gap: var(--s3) var(--s8); justify-content: space-between; padding-block: var(--s6); border-top: 1px solid rgba(243, 233, 216, 0.14); font-size: var(--fs-xs); color: var(--star-2); position: relative; z-index: 1; background: var(--night); }
.ftr__legal a { text-decoration: none; }
@media (max-width: 960px) { .ftr__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .ftr__grid > :first-child { grid-column: 1 / -1; } }
@media (max-width: 720px) { .ftr .wrap { padding-block-end: 110px; } }

/* ---------- Utility layouts ---------- */
.split-head { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--s10); align-items: end; margin-bottom: clamp(48px, 8vh, 96px); }
@media (max-width: 860px) { .split-head { grid-template-columns: minmax(0, 1fr); } }
.cta-band { text-align: center; display: grid; justify-items: center; gap: var(--s8); }
.cta-band h2 { font-size: var(--fs-h1); line-height: 1; max-width: 16ch; }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--s3); justify-content: inherit; }
.legal h2 { font-size: var(--fs-h3); margin-block: 1.6em 0.5em; }
.legal ul { padding-inline-start: 1.2em; display: grid; gap: 6px; }

/* theme switch: one deliberate crossfade (rare action) */
html.is-switching, html.is-switching *:not(video):not(canvas):not(img) { transition: background-color 500ms var(--ease-in-out), color 500ms var(--ease-in-out), border-color 500ms var(--ease-in-out), fill 500ms var(--ease-in-out) !important; }

@media (prefers-reduced-motion: reduce) {
  /* gentler, not zero: reveals keep a short fade, no movement */
  .js [data-reveal] { opacity: 0; transition: opacity 200ms ease; }
  .js [data-reveal].is-in { opacity: 1; }
  *, *::before, *::after { scroll-behavior: auto !important; }
  .btn, .hdr, .actionbar { transition-duration: 1ms !important; }
}

/* break-ui: long compound words, unbreakable emails and figures never widen the page */
h1, h2, h3, h4, .lead, .suite p, .price b { overflow-wrap: anywhere; }
.feature__body, .feature > div { min-width: 0; }
.feature__body { grid-template-columns: minmax(0, 1fr); }
a[href^="mailto:"], .facts li span, .summary strong, address a { overflow-wrap: anywhere; min-width: 0; }
.facts li > span:first-child { flex: none; }
html { overflow-x: clip; }

/* Hebrew is never letter-spaced (open or tight); numerals and the English page keep optical tracking */
html[lang="he"] :is(.hero h1, .win__title, .retreat h2, .h2, .phero h1, .center-hero h1, .hero__cue, .hdr__clock, .ftr h3) { letter-spacing: 0; }
