/* Desert Shine demo site — design system "Price Board" (direction 1)
   with the time grouping from direction 2 ("Morning Window").

   HOW TO CHANGE THE LOOK
   - Everything visual comes from the tokens in section 1. Change a token, change the whole site.
   - Palette: <html data-palette="board"> (default) or data-palette="paint" (the oxblood palette of direction 3).
   - Dark mode follows the visitor's device setting (prefers-color-scheme), for both palettes.

   RULES THAT KEEP THE PAGE CONSISTENT
   - One page background (--bg). "Paper" (--paper) is only for things you read or fill in: price board, ticket, forms.
   - The action colour (--action) means one thing: "press here". It is never used for decoration.
   - One corner radius (--radius), one border weight (--border). No shadows, no gradients.
*/

/* ---------- 1. Design tokens ---------- */
@font-face { font-family: "Barlow Condensed"; font-weight: 600; font-display: swap; src: url(fonts/barlow-condensed-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 700; font-display: swap; src: url(fonts/barlow-condensed-latin-700-normal.woff2) format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 400; font-display: swap; src: url(fonts/barlow-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 600; font-display: swap; src: url(fonts/barlow-latin-600-normal.woff2) format("woff2"); }

:root {
  /* colour: palette "board", light */
  --bg: #E9ECEB;           /* the page */
  --paper: #FAFAF8;        /* price board, ticket, forms */
  --ink: #1F2B33;          /* text and strong lines */
  --steel: #4A5963;        /* secondary text */
  --rule: #B5BEC3;         /* quiet dividers (decorative only) */
  --line-strong: #66757F;  /* borders of controls (3:1 or more against paper) */
  --action: #FFC21A;       /* "press here" */
  --on-action: #1F2B33;
  --action-hover: #FFD04D;
  --inv: #1F2B33;          /* inverted bars: demo bar, table head, phone bar */
  --on-inv: #FAFAF8;
  --danger: #B3261E;

  /* type */
  --font-display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --font-body: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;
  --fs-body: 17px;
  --fs-small: 15px;
  --fs-xs: 14px;           /* never smaller than this */
  --fs-lead: 20px;
  --fs-h1: clamp(50px, 9vw, 104px);
  --fs-h2: clamp(38px, 5.4vw, 60px);
  --fs-h3: 28px;

  /* space: 4 / 8 rhythm */
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px; --s8: 64px; --s9: 96px;
  --gutter: 16px;
  --section-y: 56px;

  /* shape */
  --radius: 3px;
  --border: 2px solid var(--ink);
  --tap: 48px;             /* comfortable tap height; 44px is the minimum anywhere */
}
@media (min-width: 900px) { :root { --section-y: 80px; } }

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121A1F; --paper: #1B262D; --ink: #E8EDEF; --steel: #A9B7BE; --rule: #33424B; --line-strong: #7E8F99;
    --action: #FFC21A; --on-action: #14202A; --action-hover: #FFD04D;
    --inv: #0C1216; --on-inv: #E8EDEF; --danger: #FF9189;
  }
}
/* palette "paint": deep oxblood, chrome grey (direction 3 colours) */
:root[data-palette="paint"] {
  --bg: #E7E8EA; --paper: #F6F6F7; --ink: #25272C; --steel: #51565F; --rule: #BDC1C7; --line-strong: #6F747C;
  --action: #7A1F2B; --on-action: #FFFFFF; --action-hover: #8F2634;
  --inv: #25272C; --on-inv: #F6F6F7; --danger: #B3261E;
}
@media (prefers-color-scheme: dark) {
  :root[data-palette="paint"] {
    --bg: #1B1C20; --paper: #25272C; --ink: #ECECEE; --steel: #AAAEB6; --rule: #3F4249; --line-strong: #8A8E96;
    --action: #B84A5C; --on-action: #FFFFFF; --action-hover: #C24F62;
    --inv: #101114; --on-inv: #ECECEE; --danger: #FF9189;
  }
}

/* ---------- 2. Base ---------- */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: var(--s4); scroll-padding-bottom: 96px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 var(--fs-body)/1.5 var(--font-body); padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
@media (min-width: 900px) { body { padding-bottom: 0; } html { scroll-padding-bottom: var(--s4); } }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
h1, h2, h3 { margin: 0; text-wrap: balance; }
p { margin: 0 0 var(--s3); }
.wrap { width: min(1160px, 100% - 2 * var(--gutter)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: var(--s2); z-index: 40; background: var(--paper); color: var(--ink); border: var(--border); padding: var(--s2) var(--s4); border-radius: var(--radius); }
.skip:focus { left: var(--s2); }

/* ---------- 3. Components ---------- */
/* buttons: one shape, one action colour */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: var(--tap); padding: 0 22px; border: var(--border); border-radius: var(--radius); font: 600 var(--fs-body)/1 var(--font-body); text-decoration: none; white-space: nowrap; background: var(--action); color: var(--on-action); cursor: pointer; transition: background .15s; }
.btn:hover { background: var(--action-hover); }
.btn:active { filter: brightness(.95); }
.btn.secondary { background: transparent; color: var(--ink); }
.btn.secondary:hover { background: var(--paper); }
.btn.small { min-height: 44px; padding: 0 var(--s4); }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

/* bars */
.demo-bar { background: var(--inv); color: var(--on-inv); font-size: var(--fs-xs); padding: var(--s2) 0; }
.demo-bar strong { background: var(--paper); color: var(--ink); padding: 0 6px; border-radius: 2px; margin-right: var(--s2); }
header.site { border-bottom: var(--border); }
.bar { display: flex; align-items: center; justify-content: space-between; gap: var(--s4); min-height: 68px; }
.logo { display: flex; align-items: center; min-height: 44px; gap: 10px; font: 700 30px/1 var(--font-display); text-decoration: none; white-space: nowrap; }
.logo i { width: 20px; height: 20px; background: var(--action); border: var(--border); border-radius: 2px; }
nav.links { display: none; gap: 26px; font-weight: 600; }
nav.links a { text-decoration: none; padding: var(--s3) 0; border-bottom: 2px solid transparent; }
nav.links a:hover { border-bottom-color: var(--ink); }
.head-cta { display: flex; align-items: center; gap: 18px; }
.phone { display: none; font: 700 24px/1 var(--font-display); text-decoration: none; padding: 10px 0; }
@media (min-width: 900px) { nav.links { display: flex; } .phone { display: block; } }
@media (max-width: 480px) { .logo { font-size: 26px; } }

.mbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; display: flex; gap: 10px; padding: 10px var(--s4) calc(10px + env(safe-area-inset-bottom)); background: var(--inv); }
.mbar a { flex: 1; min-height: var(--tap); display: grid; place-items: center; border: 2px solid var(--on-inv); border-radius: var(--radius); font-weight: 600; text-decoration: none; color: var(--on-inv); }
.mbar a.go { background: var(--action); border-color: var(--action); color: var(--on-action); }
.mbar a:focus-visible { outline-color: var(--on-inv); }
@media (min-width: 900px) { .mbar { display: none; } }

/* typography roles */
.place { font: 600 21px/1.2 var(--font-display); color: var(--steel); margin: 0 0 10px; letter-spacing: .01em; }
h1 { font: 700 var(--fs-h1)/.92 var(--font-display); letter-spacing: -.01em; margin-bottom: 22px; }
h2.title { font: 700 var(--fs-h2)/1 var(--font-display); margin-bottom: var(--s3); }
.lead { font-size: var(--fs-lead); max-width: 46ch; margin: 0 0 26px; }
.sub { color: var(--steel); max-width: 60ch; margin: 0 0 var(--s6); }
.notice { font-size: var(--fs-small); color: var(--steel); margin: 0; }
.notice.gap { margin: var(--s4) 0; }

/* paper surfaces: things you read or fill in */
.panel { background: var(--paper); border: var(--border); border-radius: var(--radius); }

/* ticket (quick facts) */
.ticket-top { padding: 22px 24px 18px; }
.ticket h2 { font: 700 36px/1 var(--font-display); margin: 0 0 var(--s1); }
.ticket-top p { margin: 0; color: var(--steel); font-weight: 600; }
.perf { border: 0; border-top: 2px dashed var(--ink); margin: 0; }
.ticket dl { margin: 0; padding: var(--s3) 24px 20px; }
.ticket .row { display: flex; align-items: baseline; gap: 10px; padding: 7px 0; }
.ticket dt { font-weight: 600; }
.ticket .row::after { content: ""; order: 1; flex: 1; border-bottom: 2px dotted var(--rule); transform: translateY(-4px); }
.ticket dd { order: 2; margin: 0; font-weight: 600; text-align: right; }
.ticket .big { font: 700 44px/1 var(--font-display); }

/* chips (radio choices): service, size, day, time */
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
legend { font: 700 22px/1.2 var(--font-display); padding: 0; margin-bottom: 10px; }
.chips { display: flex; flex-wrap: wrap; gap: var(--s2); }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.chip span { display: flex; flex-direction: column; justify-content: center; min-height: var(--tap); min-width: 64px; padding: 6px 14px; border: 2px solid var(--line-strong); border-radius: var(--radius); background: var(--paper); font-size: var(--fs-body); line-height: 1.25; text-align: center; }
.chip small { color: var(--steel); font-size: var(--fs-xs); }
.chip:hover span { border-color: var(--ink); }
.chip input:checked + span { border-color: var(--ink); background: var(--ink); color: var(--paper); }
.chip input:checked + span small { color: inherit; }
.chip input:focus-visible + span { outline: 3px solid var(--ink); outline-offset: 3px; }
.chip input:disabled { cursor: not-allowed; }
.chip input:disabled + span { border: 2px dashed var(--rule); color: var(--steel); text-decoration: line-through; background: transparent; }
.chips.left .chip span { align-items: flex-start; text-align: left; }

/* form fields */
.field { display: grid; gap: 6px; }
.fields { display: grid; gap: var(--s4); }
@media (min-width: 640px) { .fields.two { grid-template-columns: 1fr 1fr; } .fields .full { grid-column: 1 / -1; } }
label.lbl { font-weight: 600; }
.lbl .opt { color: var(--steel); font-weight: 400; }
input[type=text], input[type=email], input[type=tel], select, textarea { width: 100%; min-height: var(--tap); padding: 10px 14px; font: inherit; color: var(--ink); background: var(--paper); border: 2px solid var(--line-strong); border-radius: var(--radius); }
textarea { min-height: 120px; resize: vertical; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
[aria-invalid="true"] { border-color: var(--danger) !important; border-width: 3px; }
.err { margin: 0; color: var(--danger); font-weight: 600; font-size: var(--fs-small); }
.err::before { content: "Problem: "; }
.errsum { border: 3px solid var(--danger); border-radius: var(--radius); background: var(--paper); padding: var(--s4); }
.errsum h3 { font: 700 24px/1.1 var(--font-display); margin-bottom: var(--s2); color: var(--danger); }
.errsum ul { margin: 0; padding-left: 20px; }
.errsum a { font-weight: 600; }

/* ---------- 4. Sections ---------- */
section, .hero { padding-block: var(--section-y); }
section + section { border-top: 1px solid var(--rule); }
.hero { border-bottom: var(--border); padding-top: var(--s7); }
.hero-grid { display: grid; gap: 36px; align-items: start; }
.cta-row { display: flex; flex-wrap: wrap; gap: var(--s3); }
.trust { display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 26px 0 0; padding: 0; list-style: none; font-weight: 600; font-size: 16px; }
.trust li::before { content: ""; display: inline-block; width: 9px; height: 9px; background: var(--ink); margin-right: 8px; }
.slot-note { margin: 22px 0 0; max-width: 46ch; padding: 10px 14px; border: 2px dashed var(--rule); border-radius: var(--radius); color: var(--steel); font-size: var(--fs-small); }
@media (min-width: 900px) { .hero { padding-top: var(--s8); } .hero-grid { grid-template-columns: 1.55fr 1fr; gap: var(--s8); } }

/* price board */
.heat { max-width: 60ch; margin: -16px 0 var(--s6); }
.board { width: 100%; border-collapse: collapse; background: var(--paper); border: var(--border); border-radius: var(--radius); overflow: hidden; }
.board caption { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.board th, .board td { text-align: left; padding: 18px; border-top: 1px solid var(--rule); vertical-align: top; }
.board thead th { border-top: 0; background: var(--inv); color: var(--on-inv); font: 600 16px/1 var(--font-body); padding: 14px 18px; }
.board thead th.num, .board td.num { text-align: right; width: 96px; }
.board tbody th { font: 700 var(--fs-h3)/1.05 var(--font-display); }
@media (min-width: 761px) { .board tbody th { width: 46%; } }
.board tbody th small { display: block; margin-top: 6px; font: 400 16px/1.4 var(--font-body); color: var(--steel); max-width: 40ch; }
.board .time { color: var(--steel); white-space: nowrap; }
.board td.num { font: 700 32px/1 var(--font-display); }
@media (max-width: 760px) {
  .board, .board tbody, .board tr, .board th, .board td { display: block; }
  .board thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .board tr { padding: var(--s4) var(--s4) 18px; border-top: 1px solid var(--rule); display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px var(--s2); }
  .board tr:first-child { border-top: 0; }
  .board th, .board td { border: 0; padding: 0; }
  .board tbody th, .board td.time { grid-column: 1 / -1; }
  .board td.time { margin-bottom: var(--s2); }
  .board thead th.num, .board td.num { width: auto; text-align: left; }
  .board td.num::before { content: attr(data-label); display: block; font: 600 var(--fs-xs)/1.2 var(--font-body); color: var(--steel); margin-bottom: 2px; }
}

/* steps: a real sequence, so numbers are justified */
.steps { counter-reset: s; display: grid; gap: var(--s4); margin: 0; padding: 0; list-style: none; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.steps li { counter-increment: s; padding: 22px; }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 40px; height: 40px; border: var(--border); border-radius: var(--radius); font: 700 26px/1 var(--font-display); margin-bottom: var(--s3); }
.steps h3 { font: 700 var(--fs-h3)/1.05 var(--font-display); margin-bottom: 6px; }
.steps p { margin: 0; color: var(--steel); }

/* booking widget */
.widget-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px var(--s4); padding: 14px 20px; background: var(--inv); color: var(--on-inv); font-size: var(--fs-xs); border-radius: var(--radius) var(--radius) 0 0; }
.widget form { padding: 20px; display: grid; gap: 26px; }
#booking-flow { gap: 26px; }
.widget .hint { color: var(--steel); font-size: var(--fs-small); margin: 0 0 var(--s3); }
.days { overflow-x: auto; padding-bottom: var(--s1); -webkit-overflow-scrolling: touch; }
.days .chips { flex-wrap: nowrap; }
.days .chip span { min-width: 64px; }
.parts { display: grid; gap: 0; }
.part { display: grid; grid-template-columns: 1fr; gap: 6px var(--s3); padding: var(--s3) 0; border-top: 1px solid var(--rule); }
.part:first-child { border-top: 0; padding-top: 0; }
.part b { font-weight: 600; }
.part small { display: block; color: var(--steel); font-size: var(--fs-xs); font-weight: 400; }
@media (min-width: 640px) { .part { grid-template-columns: 110px 1fr; align-items: center; } }
.summary { background: var(--bg); border: 2px dashed var(--line-strong); border-radius: var(--radius); padding: 14px var(--s4); }
.summary.ready { border-style: solid; border-color: var(--ink); }
.summary b { display: block; font: 700 24px/1.15 var(--font-display); }
.done { border: var(--border); border-radius: var(--radius); background: var(--paper); padding: 22px; margin: 20px; }
.done h3 { font: 700 34px/1 var(--font-display); margin-bottom: var(--s2); }
.done p { margin: 0 0 var(--s2); }
.done:focus { outline: 3px solid var(--ink); outline-offset: 3px; }

/* enquiry + area */
.two-col { display: grid; gap: var(--s6); }
@media (min-width: 900px) { .two-col { grid-template-columns: .9fr 1.1fr; gap: 44px; align-items: start; } }
.info { padding: 22px; margin-bottom: var(--s4); }
.info h3 { font: 700 var(--fs-h3)/1.05 var(--font-display); margin-bottom: var(--s2); }
.info ul { margin: 0; padding-left: 20px; color: var(--steel); }
.info li { margin: 4px 0; }
.info p { margin: 0; color: var(--steel); }
form.panel { padding: 22px; }
.status { margin: var(--s4) 0 0; font-weight: 600; }

/* sample slots for proof (never invented) */
.slots { display: grid; gap: var(--s4); }
@media (min-width: 760px) { .slots { grid-template-columns: 1fr 1fr; } }
.slot-card { padding: 22px; border: 2px dashed var(--line-strong); border-radius: var(--radius); }
.slot-card h3 { font: 700 var(--fs-h3)/1.05 var(--font-display); margin-bottom: 6px; }
.slot-card p { margin: 0; color: var(--steel); }

/* faq */
.faq { max-width: 780px; }
details { background: var(--paper); border: 2px solid var(--line-strong); border-radius: var(--radius); padding: 0 18px; margin-bottom: var(--s3); }
details[open] { border-color: var(--ink); }
summary { cursor: pointer; font-weight: 600; padding: 14px 0; min-height: var(--tap); display: flex; align-items: center; }
details p { margin: 0 0 var(--s4); color: var(--steel); }

/* about the sample (Clearmode Studio's voice, not the fictional business) */
.about { border-top: var(--border); background: var(--bg); }
.about-grid { display: grid; gap: var(--s5); }
@media (min-width: 900px) { .about-grid { grid-template-columns: 1fr 1.2fr; gap: var(--s8); } }
.about ul { margin: 0 0 var(--s3); padding-left: 20px; }
.about li { margin: 6px 0; }
.about h3 { font: 700 var(--fs-h3)/1.05 var(--font-display); margin: var(--s4) 0 var(--s2); }

footer { border-top: var(--border); padding: var(--s6) 0 var(--s7); color: var(--steel); font-size: var(--fs-small); }
footer .grid { display: grid; gap: var(--s4); }
@media (min-width: 760px) { footer .grid { grid-template-columns: 1.4fr 1fr 1fr; } }
footer h3 { color: var(--ink); margin: 0 0 6px; font: 700 20px/1.1 var(--font-display); }
footer p { margin: 0 0 4px; }
footer a { padding: 10px 0; display: inline-block; }
.credit { margin-top: var(--s5); padding-top: var(--s4); border-top: 1px solid var(--rule); }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }

/* standalone pages such as 404 */
.standalone { padding-block: var(--s8); }
