/* =====================================================================
   Vryheid Autoclinic
   dark "night garage" sections + light reading sections,
   clinic red as the pulse, amber for dashboard lights
   ===================================================================== */
:root {
  --bg: #0b0f15;
  --bg2: #10161f;
  --panel: #151d29;
  --line: rgba(255, 255, 255, .08);
  --text: #eef2f7;
  --mute: #9aa6b6;
  --red: #ff7a1a;
  --alert: #ff3347;
  --red2: #f05f00;
  --amber: #ffb020;
  --green: #2ee59d;
  --light: #f3f5f8;
  --ink: #0f1620;
  --ink2: #4a5666;
  --head: "Archivo", "Arial Narrow", system-ui, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --r: 22px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 16px/1.65 var(--body); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-family: var(--head); font-stretch: 112%; line-height: 1.02; letter-spacing: -.01em; }
p { margin: 0; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; border-radius: 8px; }
.wrap { width: min(1180px, 100% - 40px); margin-inline: auto; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 200; background: var(--amber); color: #000; padding: 10px 14px; border-radius: 8px; font-weight: 600; }
.skip:focus { left: 8px; }

.red { color: var(--red); }
.amber { color: var(--amber); }
.wide { font-stretch: 125%; }

.beat { width: 9px; height: 9px; border-radius: 50%; background: var(--red); flex: none; animation: beat 1.4s infinite; }
@keyframes beat {
  0%, 100% { box-shadow: 0 0 0 0 rgba(250, 100, 4, .6); transform: scale(1); }
  12% { transform: scale(1.35); }
  24% { transform: scale(1); }
  36% { transform: scale(1.2); }
  60% { box-shadow: 0 0 0 10px rgba(250, 100, 4, 0); }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 24px; border-radius: 14px; border: 1px solid transparent;
  font: 700 15px/1.2 var(--body); text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s, border-color .25s;
}
.btn svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.btn:hover { transform: translateY(-2px); }
.btn-red { background: linear-gradient(135deg, var(--red), var(--red2)); color: #fff; box-shadow: 0 14px 30px -12px rgba(250, 100, 4, .75); }
.btn-red:hover { box-shadow: 0 20px 38px -12px rgba(250, 100, 4, .9); }
.btn-glass { background: rgba(255, 255, 255, .05); border-color: rgba(255, 255, 255, .16); color: var(--text); backdrop-filter: blur(8px); }
.btn-glass:hover { border-color: rgba(255, 255, 255, .35); background: rgba(255, 255, 255, .09); }
.btn-ink { background: var(--ink); color: #fff; }
.btn-sm { padding: 11px 16px; font-size: 14px; border-radius: 12px; }

/* ---------- header ---------- */
.nav { position: fixed; inset: 0 0 auto; z-index: 100; padding: 14px 0; transition: background .3s, padding .3s, box-shadow .3s; }
.nav.solid { background: rgba(11, 15, 21, .86); backdrop-filter: saturate(1.4) blur(14px); padding: 10px 0; box-shadow: 0 1px 0 var(--line); }
.nav-in { display: flex; align-items: center; gap: 22px; }
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; margin-right: auto; }
.mark { width: 42px; height: 42px; flex: none; filter: drop-shadow(0 6px 14px rgba(240, 95, 0, .45)); }
.brand-txt { display: flex; flex-direction: column; line-height: 1; }
.brand-txt small { font: 600 11px var(--body); letter-spacing: .32em; text-transform: uppercase; color: var(--mute); margin-bottom: 4px; }
.brand-txt b { font: 800 20px var(--head); font-stretch: 125%; letter-spacing: -.01em; }
.links { display: flex; gap: 4px; }
.links a { padding: 8px 13px; border-radius: 10px; text-decoration: none; font-size: 14.5px; font-weight: 500; color: rgba(238, 242, 247, .78); transition: color .2s, background .2s; }
.links a:hover { color: #fff; background: rgba(255, 255, 255, .06); }
.next-pill { display: inline-flex; align-items: center; gap: 9px; padding: 8px 14px; border-radius: 999px; background: rgba(250, 100, 4, .12); border: 1px solid rgba(250, 100, 4, .35); font-size: 13px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.next-pill[hidden] { display: none; }

/* ---------- hero ---------- */
.hero { position: relative; isolation: isolate; overflow: hidden; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; padding: 120px 0 130px;
  background: radial-gradient(900px 600px at 78% 40%, rgba(250, 100, 4, .16), transparent 60%), radial-gradient(700px 500px at 0% 100%, rgba(255, 176, 32, .07), transparent 60%), var(--bg); }
.grid-bg { position: absolute; inset: 0; z-index: -1; opacity: .5;
  background-image: linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 56px 56px; mask-image: radial-gradient(ellipse 70% 60% at 50% 45%, #000 30%, transparent 75%); }
.hero-in { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; }
.tag { display: inline-flex; align-items: center; gap: 10px; padding: 8px 15px; border-radius: 999px; background: rgba(255, 255, 255, .05); border: 1px solid var(--line); font-size: 13.5px; font-weight: 600; color: rgba(238, 242, 247, .85); }
.hero h1 { font-size: clamp(42px, 5.3vw, 76px); font-weight: 850; margin: 22px 0 22px; }
.hero h1 .red { display: inline-block; text-shadow: 0 0 40px rgba(250, 100, 4, .35); }
.lead { font-size: clamp(16.5px, 1.35vw, 19px); color: rgba(238, 242, 247, .78); max-width: 540px; }
.lead b { color: #fff; font-weight: 600; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

.appt { display: inline-flex; align-items: center; gap: 14px; margin-top: 30px; padding: 12px 14px 12px 12px; border-radius: 18px; text-decoration: none;
  background: linear-gradient(135deg, rgba(250, 100, 4, .16), rgba(255, 255, 255, .04)); border: 1px solid rgba(250, 100, 4, .35); box-shadow: 0 18px 40px -22px rgba(250, 100, 4, .8); animation: rise .7s var(--ease) both; }
.appt[hidden] { display: none; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
.appt-ring { position: relative; width: 52px; height: 52px; flex: none; }
.appt-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.appt-ring circle { fill: none; stroke: rgba(255, 255, 255, .12); stroke-width: 4; }
.appt-ring circle + circle { stroke: var(--red); stroke-linecap: round; stroke-dasharray: 119.4; transition: stroke-dashoffset 1s var(--ease); }
.appt-ring b { position: absolute; inset: 0; display: grid; place-items: center; font: 800 15px var(--head); }
.appt-txt { display: flex; flex-direction: column; line-height: 1.25; }
.appt-txt small { font-size: 12.5px; color: var(--mute); }
.appt-txt b { font: 700 17px var(--head); font-stretch: 110%; }
.appt-go { margin-left: 6px; padding: 8px 14px; border-radius: 10px; background: var(--red); font-weight: 700; font-size: 13.5px; }

.morph { position: relative; aspect-ratio: 4 / 3.1; }
.morph canvas { width: 100%; height: 100%; }
.morph::before { content: ""; position: absolute; inset: 10% 8%; border-radius: 50%; background: radial-gradient(circle, rgba(250, 100, 4, .14), transparent 65%); filter: blur(10px); z-index: -1; }
.morph-cap { position: absolute; left: 50%; bottom: 4%; translate: -50% 0; display: flex; align-items: center; gap: 12px; padding: 9px 16px 9px 9px; border-radius: 14px; background: rgba(16, 22, 31, .78); border: 1px solid var(--line); backdrop-filter: blur(10px); white-space: nowrap; }
.mc-tag { padding: 5px 10px; border-radius: 9px; background: var(--red); font: 700 12.5px var(--body); letter-spacing: .04em; text-transform: uppercase; transition: background .4s; }
.mc-txt { font-size: 14.5px; font-weight: 500; color: rgba(238, 242, 247, .9); }
.morph-dots { position: absolute; left: 50%; bottom: -26px; translate: -50% 0; display: flex; gap: 8px; }
.morph-dots button { width: 9px; height: 9px; padding: 0; border-radius: 99px; border: 0; background: rgba(255, 255, 255, .22); cursor: pointer; transition: width .35s var(--ease), background .35s; }
.morph-dots button[aria-selected="true"] { width: 28px; background: var(--red); }

.ecg { position: absolute; left: 0; right: 0; bottom: 18px; width: 100%; height: 90px; z-index: -1; }
.ecg path, .flow-ecg path { fill: none; stroke: var(--red); stroke-width: 2.4; stroke-linejoin: round; stroke-linecap: round; filter: drop-shadow(0 0 6px rgba(250, 100, 4, .8));
  stroke-dasharray: 260 2400; animation: trace 3.2s linear infinite; }
.ecg::before { content: none; }
@keyframes trace { from { stroke-dashoffset: 2660; } to { stroke-dashoffset: 0; } }

/* ---------- section basics ---------- */
section { position: relative; }
.head { text-align: center; max-width: 720px; margin: 0 auto 48px; }
.head.left { text-align: left; margin-left: 0; }
.kicker { display: inline-flex; align-items: center; gap: 10px; font: 700 12.5px var(--body); letter-spacing: .26em; text-transform: uppercase; color: var(--red); margin-bottom: 14px; }
.kicker::before { content: ""; width: 22px; height: 2px; border-radius: 2px; background: currentColor; }
.head h2 { font-size: clamp(32px, 4.4vw, 56px); font-weight: 800; }
.sub { margin-top: 16px; font-size: 17.5px; color: var(--mute); }
.sub.dark { color: var(--ink2); }
.fine { margin-top: 22px; font-size: 13px; color: var(--mute); text-align: center; }
.fine.center { text-align: center; }

/* ---------- warning lights ---------- */
.lights { padding: 110px 0 100px; background: linear-gradient(180deg, var(--bg), var(--bg2)); }
.dash { display: grid; grid-template-columns: 1.1fr 1fr; gap: 26px; padding: 26px; border-radius: 30px;
  background: linear-gradient(160deg, #141b26, #0c1118); border: 1px solid var(--line); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05), 0 40px 80px -40px #000; }
.dash-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.lamp { position: relative; aspect-ratio: 1.15; border-radius: 18px; border: 1px solid rgba(255, 255, 255, .06); background: #0a0e14; cursor: pointer; display: grid; place-items: center;
  transition: transform .25s var(--ease), border-color .25s, background .25s, box-shadow .25s; }
.lamp svg { width: 46%; fill: none; stroke: #2a3340; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; transition: stroke .25s, filter .25s; }
.lamp svg text { fill: #2a3340; stroke: none; font: 800 10px var(--body); transition: fill .25s; }
.lamp:hover { transform: translateY(-3px); border-color: rgba(255, 255, 255, .14); }
.lamp.red:hover svg, .lamp.red.on svg { stroke: var(--alert); filter: drop-shadow(0 0 8px rgba(255, 51, 71, .9)); }
.lamp.red:hover svg text, .lamp.red.on svg text { fill: var(--alert); }
.lamp.amber:hover svg, .lamp.amber.on svg { stroke: var(--amber); filter: drop-shadow(0 0 8px rgba(255, 176, 32, .9)); }
.lamp.amber:hover svg text, .lamp.amber.on svg text { fill: var(--amber); }
.lamp.on { background: #121a25; }
.lamp.red.on { border-color: rgba(255, 51, 71, .5); box-shadow: 0 0 30px -8px rgba(255, 51, 71, .6); }
.lamp.amber.on { border-color: rgba(255, 176, 32, .5); box-shadow: 0 0 30px -8px rgba(255, 176, 32, .55); }
.dash.idle .lamp svg { animation: flicker 6s infinite; }
.dash.idle .lamp:nth-child(2) svg { animation-delay: .7s; } .dash.idle .lamp:nth-child(3) svg { animation-delay: 1.4s; }
.dash.idle .lamp:nth-child(4) svg { animation-delay: 2.1s; } .dash.idle .lamp:nth-child(5) svg { animation-delay: 2.8s; }
.dash.idle .lamp:nth-child(6) svg { animation-delay: 3.5s; } .dash.idle .lamp:nth-child(7) svg { animation-delay: 4.2s; }
.dash.idle .lamp:nth-child(8) svg { animation-delay: 4.9s; } .dash.idle .lamp:nth-child(9) svg { animation-delay: 5.6s; }
@keyframes flicker { 0%, 9%, 100% { stroke: #2a3340; } 3%, 6% { stroke: #7a8697; } }
.dash-panel { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding: 30px; border-radius: 22px; background: rgba(255, 255, 255, .03); border: 1px solid var(--line); min-height: 320px; }
.urg { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; background: rgba(255, 255, 255, .07); color: var(--mute); }
.urg.red { background: rgba(255, 51, 71, .15); color: #ff7c8a; }
.urg.amber { background: rgba(255, 176, 32, .15); color: var(--amber); }
.dash-panel h3 { font-size: clamp(24px, 2.6vw, 32px); font-weight: 800; margin: 16px 0 12px; }
.dash-panel p { color: rgba(238, 242, 247, .8); }
.dash-panel .do { margin-top: 14px; padding: 14px 16px; border-radius: 14px; background: rgba(255, 255, 255, .04); border-left: 3px solid var(--amber); color: #fff; }
.dash-panel .do[hidden] { display: none; }
.dash-panel.is-red .do { border-left-color: var(--alert); }
.dash-panel .btn { margin-top: 20px; }
.dash-panel .btn[hidden] { display: none; }
.dash-panel > * { animation: rise .45s var(--ease) both; }

/* ---------- light sections ---------- */
.services, .steps, .visit { background: var(--light); color: var(--ink); }
.services h2, .steps h2, .visit h2, .services h3, .steps h3 { color: var(--ink); }
.kicker.dark { color: var(--red2); }
.services { padding: 110px 0 60px; }
.svc-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.svc { padding: 26px 22px; border-radius: var(--r); background: #fff; border: 1px solid #e3e8ef; box-shadow: 0 1px 2px rgba(15, 22, 32, .04);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s; }
.svc:hover { transform: translateY(-5px); border-color: rgba(240, 95, 0, .3); box-shadow: 0 24px 40px -24px rgba(15, 22, 32, .35); }
.svc-ico { width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center; background: #fff0e4; color: var(--red2); margin-bottom: 18px; transition: background .3s, color .3s; }
.svc:hover .svc-ico { background: var(--red2); color: #fff; }
.svc-ico svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.svc h3 { font-size: 19px; font-weight: 750; margin-bottom: 8px; line-height: 1.2; }
.svc p { font-size: 15px; color: var(--ink2); }

.steps { padding: 60px 0 120px; overflow: hidden; }
.flow { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; position: relative; z-index: 1; }
.flow li { padding: 30px 26px; border-radius: var(--r); background: #fff; border: 1px solid #e3e8ef; }
.num { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--ink); color: #fff; font: 800 20px var(--head); margin-bottom: 18px; box-shadow: 0 0 0 6px #fff, 0 0 0 7px #e3e8ef; }
.flow li:last-child .num { background: var(--red2); }
.flow h3 { font-size: 24px; font-weight: 800; margin-bottom: 8px; }
.flow p { color: var(--ink2); }
.flow-ecg { position: absolute; left: 0; right: 0; bottom: 40px; width: 100%; height: 80px; opacity: .55; }
.steps .wrap { position: relative; }

/* ---------- planner ---------- */
.planner { padding: 120px 0; overflow: hidden; isolation: isolate;
  background: radial-gradient(800px 500px at 85% 30%, rgba(250, 100, 4, .14), transparent 60%), var(--bg); }
.planner-in { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.pform { display: grid; gap: 18px; }
.field { display: grid; gap: 8px; border: 0; padding: 0; margin: 0; min-width: 0; }
.field > span, .field legend { font-size: 14px; font-weight: 600; color: rgba(238, 242, 247, .86); padding: 0; }
.field i { font-style: normal; color: var(--mute); font-weight: 400; }
.field input, .field select { width: 100%; padding: 14px 16px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .14); background: rgba(255, 255, 255, .04); color: var(--text); font: 500 15.5px var(--body); color-scheme: dark; }
.field select option { background: var(--panel); }
.field input:focus, .field select:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 4px rgba(250, 100, 4, .18); }
.chips { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 2px; }
.chips label { position: relative; cursor: pointer; }
.chips input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chips span { display: flex; flex-direction: column; gap: 2px; height: 100%; padding: 11px 12px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .14); font-weight: 600; font-size: 14px; transition: all .2s; }
.chips small { font-weight: 400; font-size: 12px; color: var(--mute); }
.chips input:checked + span { border-color: var(--red); background: rgba(250, 100, 4, .14); }
.chips input:focus-visible + span { outline: 2px solid var(--amber); outline-offset: 2px; }
.pform .btn { justify-self: start; margin-top: 4px; }
.err { color: #ff8b97; font-size: 14px; min-height: 1em; }

.ticket-wrap { perspective: 1200px; }
.ticket { position: relative; border-radius: 26px; background: #fff; color: var(--ink); overflow: hidden; box-shadow: 0 50px 90px -40px rgba(0, 0, 0, .9), 0 0 0 1px rgba(255, 255, 255, .06);
  transform: rotate(-2deg); transition: transform .6s var(--ease); }
.ticket:hover { transform: rotate(0); }
.ticket.pop { animation: pop .7s var(--ease); }
@keyframes pop { 0% { transform: rotate(-2deg) scale(.96); } 50% { transform: rotate(1deg) scale(1.03); } 100% { transform: rotate(-2deg) scale(1); } }
.t-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 18px 24px; background: var(--ink); color: #fff; }
.t-brand { display: flex; align-items: center; gap: 10px; font: 800 15px var(--head); font-stretch: 118%; }
.t-brand .mark { width: 30px; height: 30px; filter: none; }
.t-label { font-size: 11.5px; letter-spacing: .22em; text-transform: uppercase; color: var(--mute); font-weight: 600; }
.t-body { padding: 28px 28px 18px; border-bottom: 2px dashed #dde3ea; }
.t-car { font-weight: 600; color: var(--ink2); }
.t-k { margin-top: 18px; font-size: 12.5px; letter-spacing: .2em; text-transform: uppercase; font-weight: 700; color: var(--red2); }
.t-date { font: 850 clamp(34px, 4.2vw, 50px)/1 var(--head); font-stretch: 118%; margin: 8px 0 10px; letter-spacing: -.02em; }
.t-why { color: var(--ink2); font-size: 15px; }
.t-meter { padding: 18px 28px 6px; }
.t-bar { height: 10px; border-radius: 99px; background: #e9edf2; overflow: hidden; }
.t-bar i { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--green), var(--amber) 70%, var(--red)); transition: width 1.1s var(--ease); }
.t-meta { display: flex; justify-content: space-between; gap: 12px; margin-top: 10px; font-size: 13.5px; color: var(--ink2); font-weight: 600; }
.t-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 16px 28px 26px; }
.t-actions[hidden] { display: none; }
.t-clear { margin-left: auto; border: 0; background: none; color: var(--ink2); font-size: 13.5px; text-decoration: underline; cursor: pointer; }
.t-notch { position: absolute; top: calc(var(--notch-y, 0px) - 14px); width: 28px; height: 28px; border-radius: 50%; background: var(--bg); }
.t-notch.l { left: -14px; } .t-notch.r { right: -14px; }

/* ---------- visit ---------- */
.visit { padding: 110px 0 120px; }
.visit-in { display: grid; grid-template-columns: .9fr 1.1fr; gap: 50px; align-items: start; }
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.c-card { display: flex; align-items: center; gap: 14px; padding: 18px; border-radius: 18px; background: #fff; border: 1px solid #e3e8ef; text-decoration: none; color: var(--ink); cursor: pointer;
  transition: transform .25s var(--ease), border-color .25s, box-shadow .25s; }
a.c-card:hover { transform: translateY(-3px); border-color: rgba(240, 95, 0, .35); box-shadow: 0 18px 34px -22px rgba(15, 22, 32, .4); }
.c-card[hidden] { display: none; }
.c-card b { display: block; font-size: 15.5px; }
.c-card small { display: block; color: var(--ink2); font-size: 14px; }
.c-ico { width: 46px; height: 46px; flex: none; border-radius: 13px; display: grid; place-items: center; background: #fff0e4; color: var(--red2); }
.c-ico.wa { background: #e6f9ee; color: #14a44d; }
.c-ico svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.c-card.hours { grid-column: 1 / -1; align-items: flex-start; cursor: default; }
.hours dl { margin: 0; display: grid; grid-template-columns: auto auto; gap: 4px 24px; font-size: 15px; }
.hours dt { color: var(--ink2); } .hours dd { margin: 0; font-weight: 600; }
.soon { grid-column: 1 / -1; padding: 18px 20px; border-radius: 16px; background: #fff; border: 1px dashed #cdd5df; color: var(--ink2); }
.soon[hidden] { display: none; }

/* ---------- footer & mobile bar ---------- */
.foot { padding: 50px 0 40px; background: var(--bg); border-top: 1px solid var(--line); }
.foot-in { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 30px; color: var(--mute); font-size: 14.5px; }
.foot .brand { margin-right: 0; }
.foot .copy { margin-left: auto; }
.bar { display: none; }

/* ---------- reveal ---------- */
.js .rv { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .rv.in { opacity: 1; transform: none; }

/* =====================================================================
   responsive
   ===================================================================== */
@media (max-width: 1080px) {
  .links { display: none; }
  .svc-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .hero { padding: 104px 0 120px; min-height: auto; }
  .hero-in, .planner-in, .visit-in { grid-template-columns: minmax(0, 1fr); }
  .morph { order: -1; max-width: 520px; width: 100%; margin: 0 auto 10px; }
  .dash { grid-template-columns: minmax(0, 1fr); padding: 16px; }
  .dash-panel { min-height: 0; padding: 22px; }
  .flow { grid-template-columns: minmax(0, 1fr); }
  .flow-ecg { display: none; }
  .planner-in { gap: 44px; }
  .ticket { transform: none; }
}
@media (max-width: 640px) {
  .wrap { width: calc(100% - 32px); }
  body { padding-bottom: 76px; }
  .nav .btn-sm { display: none; }
  .next-pill { font-size: 12px; padding: 7px 11px; }
  .brand-txt b { font-size: 18px; }
  .mark { width: 38px; height: 38px; }
  .hero h1 { font-size: clamp(38px, 11vw, 52px); }
  .cta .btn { flex: 1 1 100%; }
  .appt { width: 100%; }
  .svc-grid, .contact { grid-template-columns: minmax(0, 1fr); }
  .chips { grid-template-columns: 1fr 1fr; }
  .dash-grid { gap: 8px; }
  .lamp { border-radius: 14px; }
  .t-body, .t-meter, .t-actions { padding-left: 20px; padding-right: 20px; }
  .t-top { padding: 14px 20px; }
  .t-label { display: none; }
  .foot .copy { margin-left: 0; }
  .bar { position: fixed; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 90; display: grid; grid-template-columns: 1.3fr 1fr; gap: 8px; padding: 8px; border-radius: 18px;
    background: rgba(16, 22, 31, .92); backdrop-filter: blur(14px); border: 1px solid var(--line); box-shadow: 0 20px 40px -10px rgba(0, 0, 0, .7); }
  .bar > * { display: grid; place-items: center; padding: 13px 10px; border-radius: 12px; font-weight: 700; font-size: 15px; text-decoration: none; border: 0; cursor: pointer; }
  .bar-book { background: linear-gradient(135deg, var(--red), var(--red2)); color: #fff; }
  .bar-next { background: rgba(255, 255, 255, .08); color: #fff; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js .rv { opacity: 1; transform: none; }
}

/* ---------- hero greeting (cycles Sawubona / Goeiedag / Hello) ---------- */
.hello { position: relative; display: inline-grid; height: 1.5em; line-height: 1.5em; align-items: center; overflow: hidden; padding-right: 8px; margin-right: 2px; border-right: 1px solid rgba(255, 255, 255, .2); color: #fff; }
.hello span { grid-area: 1 / 1; animation: hello 7.5s infinite both; opacity: 0; }
.hello span:nth-child(2) { animation-delay: 2.5s; } .hello span:nth-child(3) { animation-delay: 5s; }
@keyframes hello { 0% { opacity: 0; transform: translateY(100%); } 5%, 30% { opacity: 1; transform: none; } 35%, 100% { opacity: 0; transform: translateY(-100%); } }

/* ---------- X-ray check-up (scroll-driven) ---------- */
.scan { height: 280vh; background: linear-gradient(180deg, var(--bg2), var(--bg)); }
.scan-sticky { position: sticky; top: 0; height: 100vh; height: 100svh; display: flex; align-items: center; overflow: hidden; }
.scan-sticky::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(46, 229, 157, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(46, 229, 157, .05) 1px, transparent 1px); background-size: 40px 40px; mask-image: radial-gradient(ellipse 60% 55% at 50% 55%, #000 20%, transparent 75%); }
.scan-in { position: relative; display: flex; flex-direction: column; gap: 10px; padding-top: 60px; }
.scan-head { margin-bottom: 8px; }
.scan-stage { display: grid; grid-template-columns: 1fr 260px; gap: 36px; align-items: center; }
.xray { width: 100%; overflow: visible; }
.x-road { stroke: rgba(255, 255, 255, .14); stroke-width: 1; stroke-dasharray: 6 6; }
.x-ghost path, .x-ghost circle { fill: none; stroke: rgba(255, 255, 255, .22); stroke-width: 1.3; stroke-linejoin: round; }
.x-in path, .x-in rect, .x-in circle, .x-in ellipse { fill: none; stroke: var(--green); stroke-width: 1.4; stroke-linejoin: round; stroke-linecap: round; filter: drop-shadow(0 0 3px rgba(46, 229, 157, .8)); }
.x-in > path:first-child { stroke-width: 1.8; fill: rgba(46, 229, 157, .06); }
.x-beam { stroke: #ff8a3d; stroke-width: 1.6; filter: drop-shadow(0 0 4px #ff3347) drop-shadow(0 0 10px #ff3347); }
.x-dots circle { fill: #0b0f15; stroke: rgba(255, 255, 255, .35); stroke-width: 1.2; transition: fill .35s, stroke .35s, r .35s; }
.x-dots circle.hit { fill: var(--green); stroke: #fff; animation: ping-dot 1.6s infinite; }
@keyframes ping-dot { 0%, 100% { stroke-width: 1.2; } 50% { stroke-width: 3; } }
.x-stamp { opacity: 0; transform-box: fill-box; transform-origin: center; transform: scale(.6) rotate(-6deg); transition: opacity .4s var(--ease), transform .5s var(--ease); }
.x-stamp rect { fill: var(--green); }
.x-stamp text { fill: #04241a; font: 800 10.5px var(--body); letter-spacing: .08em; }
.x-stamp.on { opacity: 1; transform: rotate(-4deg); }
.x-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; counter-reset: x; }
.x-list li { counter-increment: x; display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-radius: 12px; font-size: 14.5px; font-weight: 500; color: var(--mute); border: 1px solid transparent; transition: color .35s, background .35s, border-color .35s; }
.x-list li::before { content: counter(x); flex: none; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 700; border: 1px solid rgba(255, 255, 255, .2); transition: all .35s; }
.x-list li.hit { color: #fff; background: rgba(46, 229, 157, .07); border-color: rgba(46, 229, 157, .22); }
.x-list li.hit::before { content: "✓"; background: var(--green); border-color: var(--green); color: #04241a; }
.scan-foot { display: flex; align-items: center; gap: 20px; margin-top: 8px; }
.scan-prog { flex: 1; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.scan-prog i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--red), var(--green)); }

@media (max-width: 900px) {
  .scan { height: 240vh; }
  .scan-in { padding-top: 70px; }
  .scan-stage { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .x-list { grid-template-columns: 1fr 1fr; gap: 4px 8px; }
  .x-list li { padding: 5px 6px; font-size: 13px; gap: 8px; }
  .x-list li::before { width: 20px; height: 20px; font-size: 11px; }
  .scan-head h2 { font-size: clamp(28px, 8vw, 40px); }
  .scan-head .sub { font-size: 15px; margin-top: 8px; }
}
@media (max-height: 640px) and (max-width: 900px) { .scan-head .sub { display: none; } }
@media (prefers-reduced-motion: reduce) { .scan { height: auto; } .scan-sticky { position: static; height: auto; padding: 90px 0; } }

/* Google rating card */
.c-card.rating { grid-column: 1 / -1; }
.stars { position: relative; flex: none; font-size: 26px; line-height: 1; letter-spacing: 2px; color: #dfe4ea; }
.stars i { position: absolute; inset: 0 auto 0 0; overflow: hidden; white-space: nowrap; color: #f5b301; font-style: normal; width: 0; }

/* ---------- Ian's logo ---------- */
.nav .logo { height: 46px; width: auto; transition: height .3s; }
.nav.solid .logo { height: 40px; }
.foot .logo { height: 56px; width: auto; }
.t-brand img { height: 30px; width: auto; }
.visit-logo { width: min(360px, 100%); height: auto; margin-bottom: 26px; }
@media (max-width: 640px) {
  .nav .logo { height: 36px; }
  .nav.solid .logo { height: 34px; }
}
