/* Hallmark · shape: headline, live panorama, two tours, three reasons, contact · genre: modern-minimal · theme: custom (client identity: Circles brand sheet) · job: hire · idea: "Quiet page, the tours do the talking: a deep green hero with a sand glow, the client's own panorama running live, then calm paper sections" · vibe: "calm, clean, unhurried, confident, desert"
 * paper: #F6F4EF · dark: #173A2E · accent: #C9A55C sand on dark and on buttons only, #1F5C46 green on light · display: Alexandria · body: Noto Sans Arabic · hero: headline and one sentence over a wide live panorama frame on the dark band · nav: wordmark, two links, language switch · footer: one quiet line on dark · imagery: frames rendered from the tours' own tiles · signature: the hero panorama is the real tour, turning slowly
 * axes: dark-light/geometric/warm · posture: Restrained · contrast: pass · fold: pass · v2.0.0 */
/* Hallmark · pre-emit critique: P4 H4 E4 S5 R4 V4 · weakest: E, the page is deliberately quiet; the panorama and the two tours carry it */
/* waive: 83, the two tours are the product, so their frames are the page */
@import url("./tokens.css?v=6");
@import url("./base.css?v=6");

html { background: var(--paper); scroll-padding-top: 80px; scroll-behavior: smooth; }
body { font-family: var(--font-body); font-size: var(--text-md); font-weight: 400; line-height: 1.7; color: var(--ink); background: var(--paper); }
body.is-locked { overflow: hidden; }
h1, h2, h3 { font-family: var(--font-head); font-weight: 600; line-height: 1.25; letter-spacing: 0; }
a { color: var(--accent-ink); }

.skip { position: absolute; inset-inline-start: var(--space-md); top: -100px; z-index: var(--z-tooltip); background: var(--accent); color: var(--on-accent); padding: var(--space-xs) var(--space-md); border-radius: var(--radius-pill); text-decoration: none; }
.skip:focus-visible { top: var(--space-md); }

/* ---------- Header (dark, continues into the hero) ---------- */
.site-header { position: sticky; top: 0; z-index: var(--z-sticky-nav); background: var(--dark); border-bottom: var(--rule-hair) solid transparent; transition: border-color var(--dur-short) var(--ease-out); }
.site-header.is-scrolled { border-bottom-color: var(--on-dark-rule); }
.site-header :focus-visible, .hero :focus-visible, .why :focus-visible, .site-footer :focus-visible { outline-color: var(--accent); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: var(--space-lg); height: 68px; }
.brand { display: inline-flex; align-items: center; gap: var(--space-sm); color: var(--on-dark); text-decoration: none; font-family: var(--font-head); font-weight: 600; font-size: var(--text-lg); }
.brand-mark { width: 26px; height: 26px; flex-shrink: 0; color: var(--accent); }
.brand-mark circle { fill: none; stroke: currentColor; stroke-width: 1.8; }
.nav-links { display: flex; align-items: center; gap: var(--space-2xs); list-style: none; margin: 0; padding: 0; }
.nav-links a { display: inline-flex; align-items: center; min-height: 44px; padding-inline: var(--space-sm); color: var(--on-dark-muted); text-decoration: none; font-size: var(--text-sm); border-radius: var(--radius-pill); transition: color var(--dur-short) var(--ease-out), background-color var(--dur-short) var(--ease-out); }
.nav-links a:hover { color: var(--on-dark); background: var(--on-dark-hover); }
.nav-links .lang { color: var(--on-dark); border: var(--rule-hair) solid var(--on-dark-border); padding-inline: var(--space-md); margin-inline-start: var(--space-xs); font-family: var(--font-head); }
@media (max-width: 40rem) { .nav-links .hide-s { display: none; } .nav { height: 60px; } }

/* ---------- Hero (dark band with a soft sand glow) ---------- */
.hero { background: radial-gradient(ellipse 70% 55% at 50% 0%, var(--glow), transparent 70%), var(--dark); color: var(--on-dark); padding-block: clamp(var(--space-xl), 7vh, var(--space-3xl)) clamp(var(--space-xl), 6vh, var(--space-2xl)); }
.hero-text { display: grid; gap: var(--space-md); max-width: 46rem; }
.hero h1 { font-size: var(--text-display); font-weight: 700; color: var(--on-dark); max-width: 18ch; }
:root[lang="ar"] .hero h1 { max-width: 20ch; }
.hero-sub { font-size: var(--text-lg); color: var(--on-dark-muted); max-width: 44ch; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-sm); margin-top: var(--space-xs); }

.hero-media { position: relative; margin-top: clamp(var(--space-xl), 6vh, var(--space-2xl)); height: clamp(360px, 64svh, 700px); border-radius: var(--radius-card); overflow: clip; background: var(--color-media-shade); }
.hero-still, .hero-pano { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-still { object-fit: cover; }
.hero-pano { opacity: 0; transition: opacity 900ms var(--ease-out); }
.hero-pano.is-live { opacity: 1; }
.has-drag .hero-pano { cursor: grab; }
.has-drag .hero-pano:active { cursor: grabbing; }
.hero-caption { position: absolute; inset-inline-start: var(--space-md); bottom: var(--space-md); z-index: 2; padding: var(--space-2xs) var(--space-sm); border-radius: var(--radius-pill); background: var(--color-dark-glass); color: var(--on-dark); font-size: var(--text-xs); line-height: 1.6; pointer-events: none; }
.only-fine { display: none; }
@media (hover: hover) and (pointer: fine) { .only-fine { display: inline; } }
@media (max-width: 40rem) { .hero-media { height: 58svh; min-height: 320px; } }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-xs); min-height: 48px; padding-inline: var(--space-lg); border-radius: var(--radius-pill); font-family: var(--font-head); font-size: var(--text-sm); font-weight: 600; line-height: 1.2; text-decoration: none; cursor: pointer; border: var(--rule-hair) solid transparent; transition: background-color var(--dur-short) var(--ease-out), border-color var(--dur-short) var(--ease-out), color var(--dur-short) var(--ease-out), transform var(--dur-micro) var(--ease-out); }
.btn:active { transform: scale(0.98); }
.btn:disabled, .chip-btn:disabled, .btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; transform: none; }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: color-mix(in srgb, var(--accent) 86%, var(--card)); }
.btn-ghost { background: transparent; color: var(--on-dark); border-color: var(--on-dark-border); }
.btn-ghost:hover { border-color: var(--on-dark); }

/* ---------- One quiet reveal ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(12px); transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- Tours (light) ---------- */
.tour { padding-top: var(--section-gap); }
.tour-head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap-columns); row-gap: var(--space-md); align-items: end; margin-bottom: var(--space-xl); }
.tour-title { grid-column: 1 / span 6; font-size: var(--text-section); max-width: 20ch; }
.tour-desc { grid-column: 8 / -1; color: var(--muted); max-width: 42ch; }
.tour-note { grid-column: 8 / -1; display: flex; align-items: flex-start; gap: var(--space-xs); margin-top: calc(var(--space-xs) * -1); color: var(--accent-ink); font-size: var(--text-sm); font-weight: 500; max-width: 42ch; }
.tour-note svg { width: 20px; height: 20px; flex-shrink: 0; margin-top: 3px; }
@media (max-width: 60rem) { .tour-title, .tour-desc, .tour-note { grid-column: 1 / -1; } }

.tour-stage { position: relative; aspect-ratio: 16 / 9; max-height: 82svh; width: 100%; }
@media (max-width: 40rem) { .tour-stage { aspect-ratio: 4 / 5; max-height: 74svh; } }
.tour-frame { position: absolute; inset: 0; overflow: clip; border-radius: var(--radius-card); border: var(--rule-hair) solid var(--line); background: var(--card); transform-origin: 0 0; }
.tour-frame.is-expanded { position: fixed; inset: 0; z-index: var(--z-modal); border-radius: 0; border: 0; }
.tour-poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1200ms var(--ease-out); }
.tour-frame:hover .tour-poster { transform: scale(1.02); }
.tour-shade { position: absolute; inset: 0; pointer-events: none; background: color-mix(in srgb, var(--color-media-shade) 18%, transparent); transition: background-color var(--dur-long) var(--ease-out); }
.tour-frame:hover .tour-shade { background: color-mix(in srgb, var(--color-media-shade) 28%, transparent); }

.tour-count { position: absolute; inset-inline-start: var(--space-md); bottom: var(--space-md); z-index: 3; padding: var(--space-2xs) var(--space-md); border-radius: var(--radius-pill); background: var(--accent-soft); color: var(--tag-ink); font-family: var(--font-head); font-size: var(--text-xs); font-weight: 500; line-height: 1.6; pointer-events: none; }

.tour-live { position: absolute; inset: 0; z-index: 4; opacity: 0; visibility: hidden; transition: opacity 600ms var(--ease-out), visibility 0s linear 600ms; background: var(--color-media-shade); }
.tour-live iframe { width: 100%; height: 100%; border: 0; display: block; }
.tour-frame.is-live .tour-live { opacity: 1; visibility: visible; transition: opacity 600ms var(--ease-out), visibility 0s; }
.tour-frame.is-live .tour-count { visibility: hidden; }

.tour-close { position: absolute; z-index: 6; bottom: var(--space-md); inset-inline-end: var(--space-md); display: none; }
.tour-frame.is-expanded .tour-close { display: inline-flex; }
.tour-frame.is-expanded .tour-close { bottom: max(var(--space-lg), env(safe-area-inset-bottom)); }
.chip-btn { align-items: center; gap: var(--space-xs); min-height: 44px; padding-inline: var(--space-md); border-radius: var(--radius-pill); border: var(--rule-hair) solid var(--line); background: var(--card); color: var(--ink); font-family: var(--font-head); font-size: var(--text-sm); font-weight: 500; line-height: 1.2; cursor: pointer; transition: border-color var(--dur-short) var(--ease-out), color var(--dur-short) var(--ease-out); }
.chip-btn:hover { border-color: var(--accent-ink); color: var(--accent-ink); }
.chip-btn svg { width: 18px; height: 18px; flex-shrink: 0; }

.tour-meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-md); margin-top: var(--space-md); color: var(--muted); font-size: var(--text-sm); }
.tour-meta .chip-btn { display: inline-flex; }

/* ---------- Why (dark separator band) ---------- */
.why-band { margin-top: var(--section-gap); padding-block: var(--section-gap-s); background: radial-gradient(ellipse 50% 70% at 100% 0%, var(--glow), transparent 70%), var(--dark); color: var(--on-dark); }
:root[dir="rtl"] .why-band { background: radial-gradient(ellipse 50% 70% at 0% 0%, var(--glow), transparent 70%), var(--dark); }
.why h2 { font-size: var(--text-section); color: var(--on-dark); max-width: 20ch; margin-bottom: var(--space-xl); }
.reasons { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: var(--gap-columns); row-gap: var(--space-lg); margin: 0; }
.reasons > div { display: grid; gap: var(--space-xs); align-content: start; padding-top: var(--space-md); border-top: 2px solid var(--accent); }
.reasons dt { font-family: var(--font-head); font-weight: 600; font-size: var(--text-lg); line-height: 1.4; color: var(--on-dark); }
.reasons dd { margin: 0; color: var(--on-dark-muted); max-width: 34ch; }
@media (max-width: 48rem) { .reasons { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Contact (light, one white card) ---------- */
.contact { padding-block: var(--section-gap-s); background: var(--paper); }
.contact-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap-columns); row-gap: var(--space-xl); align-items: center; padding: clamp(var(--space-lg), 4vw, var(--space-2xl)); background: var(--card); border: var(--rule-hair) solid var(--line); border-radius: var(--radius-card); }
.contact-text { grid-column: 1 / span 6; display: grid; gap: var(--space-lg); justify-items: start; }
.contact-text h2 { font-size: var(--text-section); max-width: 16ch; }
.contact-list { grid-column: 7 / -1; justify-self: end; display: grid; margin: 0; }
.contact-list > div { display: grid; gap: var(--space-3xs); }
.contact-list dt { font-size: var(--text-sm); color: var(--muted); }
.contact-list dd { margin: 0; white-space: nowrap; font-family: var(--font-head); font-weight: 700; font-size: var(--text-section); line-height: 1.25; }
.contact-list a { color: var(--accent-ink); text-decoration: none; }
.contact-list a:hover { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; }
@media (max-width: 60rem) { .contact-text, .contact-list { grid-column: 1 / -1; justify-self: start; } }

/* ---------- Footer (dark) ---------- */
.site-footer { padding-block: var(--space-xl); background: var(--dark); color: var(--on-dark-muted); font-size: var(--text-sm); }
.site-footer .row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-md); }
.site-footer nav { display: flex; gap: var(--space-md); }
.site-footer a { color: var(--on-dark); text-underline-offset: 4px; }
.site-footer a:hover { color: var(--accent); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js [data-reveal] { opacity: 1; transform: none; transition: none; }
  .tour-poster, .tour-frame:hover .tour-poster { transform: none; transition: none; }
  .tour-live, .hero-pano { transition: none; }
}
