/* Kokonut-inspired surfaces and GSAP motion. Brand colours remain token-driven.
   See docs/VISUAL_DESIGN.md for the component adaptation and motion budget. */
:root {
  --visual-radius: 18px;
  --visual-depth: 0 12px 32px -24px rgb(5 7 10 / .24);
  --visual-edge: color-mix(in srgb, var(--accent-text) 16%, var(--line));
  --visual-hero: #073b45;
  --visual-hero-line: #5dded5;
}
:root[data-experience="park"] { --visual-hero: #171710; --visual-hero-line: #f0c219; }
:root[data-service] { --visual-hero: var(--service-deep); --visual-hero-line: var(--service-glow); }
:root[data-experience="abeer"] { --visual-radius: 14px; --visual-hero-line: var(--gold); }

.main { background-image: radial-gradient(ellipse at 100% 0%, var(--accent-wash), transparent 58%); background-size: 100% 680px; background-repeat: no-repeat; }
.topbar { padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.welcome { text-wrap: balance; }
.eyebrow { display: flex; align-items: center; gap: 8px; }
#screen > .eyebrow::before { content: ''; width: 18px; height: 2px; background: var(--teal-text); border-radius: 2px; }
.hero, .service-hero { background: var(--visual-hero); border: 1px solid color-mix(in srgb, var(--visual-hero-line) 22%, transparent); border-radius: 22px; isolation: isolate; }
.hero { padding: 30px; min-height: 250px; }
.hero h2 { font-size: clamp(1.5rem, 2.2vw, 1.875rem); line-height: 1.65; }
.hero p { max-width: 72%; }
.hero > :not(.hero-art, .visual-paths), .service-hero > :not(.hero-art, .visual-paths) { position: relative; z-index: 1; }
.hero-art { opacity: .8; top: 52px; }
.visual-paths { position: absolute; inset: 0; width: 100%; height: 100%; color: var(--visual-hero-line); pointer-events: none; z-index: -1; mask-image: linear-gradient(90deg, #000, #000 35%, transparent 94%); }
.visual-paths path { fill: none; stroke: currentColor; stroke-width: 1; vector-effect: non-scaling-stroke; }
.hero button, .service-hero .primary { box-shadow: 0 4px 16px -10px #000; }
.section-head, .service-header { margin-top: 30px; }
.quick-grid { gap: 10px; }
.quick { position: relative; padding: 20px 16px; gap: 16px; border-radius: var(--visual-radius); border-color: var(--visual-edge); box-shadow: var(--visual-depth); }
.quick svg { box-sizing: content-box; padding: 10px; border-radius: 12px; background: var(--accent-wash); }
.order-card, .zone-card, .session-card, .service-card { border-radius: var(--visual-radius); border-color: var(--visual-edge); box-shadow: var(--visual-depth); }
.order-card, .zone-card { padding: 20px; }
.product { border-radius: 14px; background: var(--accent-wash); }
.order-bottom, .zone-bottom { padding-top: 16px; }
.pill { padding: 5px 10px; }
.search { border-radius: 14px; box-shadow: inset 0 1px 3px rgb(5 7 10 / .04); }
.detail-box, .help-card, .service-panel { border-radius: var(--visual-radius); }
.service-card { gap: 10px; }
.service-card .service-icon { border-radius: 12px; }
.service-card .card-arrow { align-self: flex-end; line-height: 1; }
.park-map { border-radius: var(--visual-radius); overflow: hidden; }

/* A single selection plate moves between tabs, without moving hit targets. */
.nav, .mobile-nav { position: relative; isolation: isolate; }
.nav-indicator { position: absolute; top: 0; left: 0; pointer-events: none; z-index: -1; border-radius: 12px; background: var(--accent-wash); border: 1px solid var(--accent-line); }
.has-nav-indicator a.active { background: transparent; }
.has-nav-indicator a.active::before { display: none; }
.nav a { border-radius: 12px; }
.mobile-nav { position: fixed; }
.mobile-nav .nav-indicator { border-radius: 12px; }
.mobile-nav a { min-width: 0; flex: 1; }
.mobile-nav.has-nav-indicator a.active { color: var(--accent-text); }

/* The portrait remains the same persistent media element in every layout. */
.assistant { border-color: var(--visual-edge); }
.assistant-head { padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.assistant-presence { display: flex; align-items: center; gap: 6px; margin-top: 7px; color: var(--muted); font-size: .6875rem; min-height: 18px; }
.assistant-presence::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--muted); }
.assistant-presence[data-state="listening"] { color: var(--accent-text); }
.assistant-presence[data-state="listening"]::before { background: var(--accent-text); box-shadow: 0 0 0 4px var(--accent-wash); }
.assistant-presence[data-state="speaking"]::before { background: var(--accent-text); }
.avatar-stage { border: 1px solid var(--line); border-radius: 18px; }
.stage-state { backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.assistant:not(.is-docked) .call-controls { border: 1px solid var(--line); border-radius: 18px; padding: 10px 6px; background: var(--paper); }
.assistant:not(.is-docked) .ctl-icon { background: var(--surface); }
.assistant:not(.is-docked) .start-btn { min-height: 44px; }
:root[data-service] .start-btn::before { background: var(--accent-text); }
.assistant:not(.is-docked) .msg--assistant { padding: 12px 14px; background: var(--paper); border: 1px solid var(--line-soft); border-radius: 16px 4px 16px 16px; }
.assistant:not(.is-docked) .msg--user { border-radius: 4px 16px 16px 16px; }
.assistant:not(.is-docked) .suggestions { gap: 7px; }
.chip { border-radius: 12px; }
.input-row { border-radius: 16px; min-height: 52px; background: var(--surface); border-color: var(--field-line); }
.send { width: 40px; min-width: 40px; height: 40px; border-radius: 12px; }
.assistant.is-docked { border-radius: 20px; box-shadow: 0 8px 32px -12px rgb(5 7 10 / .25); background: var(--float); }
.is-docked .assistant-head { padding: 0; border: 0; }
.is-docked .assistant-presence { display: none; }
.is-docked .avatar-stage { border-radius: 14px; }
.is-docked .chat { padding-inline: 4px; }
.is-docked .dock-stop { border-radius: 12px; background: var(--paper); }
.is-docked .chip--strong { border-radius: 14px; }
.is-docked #minimize { border: 1px solid var(--line); background: var(--paper); }

/* GSAP owns these effects only when motion is available and allowed. */
[data-gsap-motion="on"] .property-photo img { transition: none; }
[data-gsap-motion="on"] .property-photo:hover img,
[data-gsap-motion="on"] .service-card:hover { transform: none; }
[data-gsap-motion="on"] .modal[open] { animation: none; }
.assistant.is-docked::after {
  content: ''; position: absolute; inset: -1px; border: 2px solid var(--accent-text);
  border-radius: inherit; pointer-events: none; opacity: var(--dock-arrival, 0);
  box-shadow: 0 0 0 5px var(--accent-wash);
}
[data-gsap-motion="on"] .timeline .step.done { border-inline-start-color: transparent; }
[data-gsap-motion="on"] .timeline .step.done:not(:last-child)::after {
  content: ''; position: absolute; inset-inline-start: -2px; top: 0; width: 2px;
  height: 100%; background: var(--teal-text); transform: scaleY(var(--step-reveal, 1));
  transform-origin: top; pointer-events: none;
}

/* Safwah retains its warm editorial type and gold. Cards become framed objects. */
[data-experience="abeer"] .intro { isolation: isolate; }
[data-experience="abeer"] .intro .visual-paths { opacity: .5; mask-image: linear-gradient(90deg, #000, transparent 78%); }
[data-experience="abeer"] .intro h1 { position: relative; }
[data-experience="abeer"] .start-paths { border-radius: 16px; overflow: hidden; box-shadow: var(--visual-depth); }
[data-experience="abeer"] .path-number { display: grid; place-items: center; background: var(--panel); border: 1px solid var(--line); border-radius: 50%; width: 30px; height: 30px; flex: none; padding: 0; }
[data-experience="abeer"] .property-card { padding: 8px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); box-shadow: var(--visual-depth); }
[data-experience="abeer"] .property-photo { border-radius: 10px; }
[data-experience="abeer"] .property-copy { padding: 16px 10px 10px; }
[data-experience="abeer"] .property-bottom { padding-top: 14px; border-top: 1px solid var(--line); }
[data-experience="abeer"] .filters, [data-experience="abeer"] .enquiry-form { border-radius: 16px; }
[data-experience="abeer"] .primary, [data-experience="abeer"] .secondary, [data-experience="abeer"] .talk-btn { border-radius: 10px; }
[data-experience="abeer"] .assistant { background: var(--surface); }
[data-experience="abeer"] .avatar-stage { border-radius: 90px 90px 16px 16px; }
[data-experience="abeer"] .is-docked .avatar-stage { border-radius: 14px; }
[data-experience="abeer"] .site-header .nav-indicator { border-color: var(--line); }
[data-experience="abeer"] .site-header .nav a { padding-inline: 10px; }
[data-experience="abeer"] .site-header .has-nav-indicator a.active { border-bottom-color: transparent; }

@media (min-width: 851px) {
  .assistant { margin: 12px; top: 12px; height: calc(100dvh - 24px); border: 1px solid var(--visual-edge); border-radius: 22px; padding: 22px 18px 16px; box-shadow: var(--visual-depth); }
  .sidebar { background: var(--surface); }
  .nav { gap: 6px; }
  [data-experience="abeer"] .site-header .nav { gap: 6px; }
  [data-experience="abeer"] .assistant { margin: 12px; top: 12px; height: calc(100dvh - 24px); }
}
@media (max-width: 850px) {
  .topbar { padding-bottom: 12px; margin-bottom: 24px; }
  .hero { padding: 24px; min-height: 240px; margin-block: 24px; }
  .hero h2 { max-width: 80%; font-size: 1.625rem; }
  .hero-art { width: 72px; inset-inline-end: 16px; top: 38px; opacity: .45; }
  .hero p { max-width: 82%; }
  .service-hero { min-height: 270px; }
  .service-hero h1 { max-width: 100%; }
  .quick { padding: 16px 12px; gap: 12px; }
  .quick svg { padding: 8px; }
  .order-card, .zone-card { padding: 18px; }
  .assistant:not(.is-docked) .call-controls { padding-block: 6px; }
  .assistant-head { padding-bottom: 8px; }
  .assistant-presence { margin-top: 3px; }
  .mobile-nav { padding-inline: 8px; }
  [data-experience="abeer"] .topbar { border-bottom: 0; }
  [data-experience="abeer"] .intro h1 { font-size: clamp(3.4rem, 14vw, 4.4rem); }
}
@media (max-width: 360px) {
  .hero h2 { font-size: 1.5rem; }
  .quick { padding: 14px 9px; font-size: .75rem; }
  .quick svg { padding: 7px; }
  [data-experience="abeer"] .property-copy { padding: 12px 8px 8px; }
  [data-experience="abeer"] .property-bottom { padding-top: 12px; }
}
@media (max-height: 740px) {
  .assistant-presence { display: none; }
  .assistant-head { padding-bottom: 6px; }
  .assistant:not(.is-docked) .call-controls { padding-block: 4px; }
}
@media (prefers-reduced-motion: reduce) {
  .nav-indicator { transition: none; }
}
@media (forced-colors: active) {
  .nav-indicator { border: 2px solid Highlight; }
  .visual-paths { display: none; }
  .assistant-presence::before { background: CanvasText; }
}
