/* ==========================================================================
   BeeProton AI — sample client websites (/demos/<slug>/).

   Deliberately NOT built on the main site's tokens: a demo has to look like
   somebody else's website, not like ours wearing a different colour. Each
   theme sets its own palette, type and shape, so a doctor's demo and a law
   firm's demo do not read as the same template twice.

   The demo banner and the disclaimer keep our own colours on purpose — they
   are our voice interrupting the sample, and should look like it.
   ========================================================================== */

:root {
  --d-accent: #0E7C7B;
  --d-ink: #1b1f24;
  --d-muted: #5e6670;
  --d-line: #e5e8ec;
  --d-bg: #ffffff;
  --d-alt: #f6f8fa;
  --d-radius: 14px;
  --d-font: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", sans-serif;
  --d-display: var(--d-font);
  --d-wrap: 1120px;
}

/* ---------- themes ---------- */
.d-theme-clinic { --d-accent: #0E7C7B; --d-alt: #f1f8f8; --d-radius: 18px; --d-ink: #17282b; }
.d-theme-legal  { --d-accent: #1B3A5C; --d-alt: #f4f6f9; --d-radius: 4px;  --d-ink: #141a21;
  --d-display: Georgia, "Times New Roman", serif; }
.d-theme-ledger { --d-accent: #17694A; --d-alt: #f5f7f6; --d-radius: 8px;  --d-ink: #1d2224; }
.d-theme-cause  { --d-accent: #B4532A; --d-alt: #fdf6f1; --d-radius: 22px; --d-ink: #2a1d16; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }   /* iOS inflates body text on rotation without this */
body { margin: 0; background: var(--d-bg); color: var(--d-ink); font: 16px/1.65 var(--d-font);
  -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; height: auto; }
a { color: var(--d-accent); }
h1, h2, h3 { font-family: var(--d-display); line-height: 1.2; letter-spacing: -.015em; margin: 0 0 .5em; }
h1 { font-size: clamp(1.9rem, 4.4vw, 3rem); }
h2 { font-size: clamp(1.4rem, 2.8vw, 2rem); }
h3 { font-size: 1.1rem; }
p { margin: 0 0 1rem; }
.d-wrap { width: 100%; max-width: var(--d-wrap); margin: 0 auto; padding: 0 20px; }
.d-narrow { max-width: 780px; }
.d-centre { text-align: center; }
.d-tiny { font-size: .78rem; color: var(--d-muted); margin: .5rem 0 0; }
.d-lead { font-size: clamp(1rem, 1.6vw, 1.12rem); color: var(--d-muted); max-width: 58ch; }
.d-eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .73rem; font-weight: 700;
  color: var(--d-accent); margin: 0 0 .6rem; }
.d-prose p { color: var(--d-muted); }
.d-prose h2, .d-prose h3 { color: var(--d-ink); margin-top: 1.6em; }
.d-prose ul { color: var(--d-muted); padding-left: 20px; }

/* ---------- our interruption: the demo banner ---------- */
.d-demobar { background: #10182B; color: #fff; font-size: .84rem; position: relative; z-index: 20; }
.d-demobar-in { max-width: var(--d-wrap); margin: 0 auto; padding: 9px 20px; display: flex;
  align-items: center; gap: 12px; flex-wrap: wrap; }
.d-demobar p { margin: 0; flex: 1; min-width: 260px; line-height: 1.5; color: #d7dbe6; }
.d-demobar b { color: #fff; }
.d-chip { background: #F5A524; color: #1A1203; font-weight: 800; font-size: .7rem; letter-spacing: .1em;
  padding: 3px 9px; border-radius: 4px; flex-shrink: 0; }
.d-demobar-cta { color: #FFCF5C; font-weight: 700; text-decoration: none; white-space: nowrap; }
.d-demobar-cta:hover { text-decoration: underline; }

/* ---------- the sample site's own chrome ---------- */
.d-head { border-bottom: 1px solid var(--d-line); background: var(--d-bg); position: sticky; top: 0; z-index: 15; }
.d-head-in { display: flex; align-items: center; gap: 18px; padding-block: 14px; }
.d-brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; color: inherit; }
.d-brand-mark { width: 40px; height: 40px; border-radius: calc(var(--d-radius) / 1.6); display: grid;
  place-items: center; background: var(--d-accent); color: #fff; font-weight: 800; font-size: 1.15rem;
  font-family: var(--d-display); flex-shrink: 0; }
.d-brand b { display: block; font-size: 1.02rem; font-family: var(--d-display); }
.d-brand small { display: block; font-size: .73rem; color: var(--d-muted); }
.d-nav { margin-left: auto; display: flex; gap: 20px; }
.d-nav a { color: var(--d-muted); text-decoration: none; font-weight: 600; font-size: .92rem; padding: 4px 0;
  border-bottom: 2px solid transparent; }
.d-nav a:hover, .d-nav a[aria-current] { color: var(--d-accent); border-color: var(--d-accent); }
.d-cta { background: var(--d-accent); color: #fff; text-decoration: none; font-weight: 700; font-size: .88rem;
  padding: 9px 16px; border-radius: calc(var(--d-radius) / 2); white-space: nowrap; }

/* ---------- buttons ---------- */
.d-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none;
  font: 600 .95rem/1 var(--d-font); padding: 12px 20px; border-radius: calc(var(--d-radius) / 2);
  border: 1px solid var(--d-line); background: var(--d-bg); color: var(--d-ink); cursor: pointer; }
.d-btn:hover { border-color: var(--d-accent); color: var(--d-accent); }
.d-btn-primary { background: var(--d-accent); border-color: var(--d-accent); color: #fff; }
.d-btn-primary:hover { filter: brightness(1.08); color: #fff; }
.d-btn-lg { padding: 15px 26px; font-size: 1rem; }
.d-btn-block { width: 100%; }
.d-btn[disabled] { opacity: .55; cursor: not-allowed; flex-direction: column; gap: 2px; }

/* ---------- hero ---------- */
.d-hero { padding: clamp(36px, 6vw, 76px) 0; background:
  linear-gradient(180deg, var(--d-alt) 0%, var(--d-bg) 100%); }
.d-hero-in { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(24px, 4vw, 56px); align-items: center; }
.d-hero-centred .d-hero-in { grid-template-columns: 1fr; text-align: center; max-width: 760px; }
.d-hero-centred .d-lead { margin-inline: auto; }
.d-hero-centred .d-hero-cta { justify-content: center; }
.d-hero-banner { background: var(--d-accent); color: #fff; }
.d-hero-banner .d-eyebrow, .d-hero-banner .d-lead { color: rgba(255,255,255,.86); }
.d-hero-banner .d-btn { border-color: rgba(255,255,255,.5); background: transparent; color: #fff; }
.d-hero-banner .d-btn-primary { background: #fff; color: var(--d-accent); border-color: #fff; }
.d-hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 22px; }
.d-art { width: 100%; }

/* ---------- fact strip ---------- */
.d-facts { border-block: 1px solid var(--d-line); background: var(--d-bg); }
.d-facts-in { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px;
  padding-block: 18px; }
.d-facts-in div { text-align: center; }
.d-facts-in b { display: block; font-size: 1.35rem; font-family: var(--d-display); color: var(--d-accent); }
.d-facts-in span { font-size: .8rem; color: var(--d-muted); }

/* ---------- sections ---------- */
.d-sec { padding: clamp(36px, 5vw, 66px) 0; }
.d-sec-alt { background: var(--d-alt); }
.d-pagehead { padding: clamp(28px, 4vw, 52px) 0 0; }
.d-split { display: grid; grid-template-columns: 1.4fr .85fr; gap: clamp(22px, 3vw, 44px); align-items: start; }

.d-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; }
.d-card { border: 1px solid var(--d-line); border-radius: var(--d-radius); padding: 22px; background: var(--d-bg); }
.d-card h3 { color: var(--d-accent); }
.d-card p { color: var(--d-muted); margin-bottom: .4rem; }
.d-price { font-weight: 700; color: var(--d-ink); margin: 0; }
.d-more { margin-top: 20px; font-weight: 600; }

.d-ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 11px; }
.d-ticks-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.d-ticks li { padding-left: 30px; position: relative; color: var(--d-muted); }
.d-ticks li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 20px; height: 20px;
  display: grid; place-items: center; border-radius: 50%; background: var(--d-accent); color: #fff;
  font-size: .72rem; font-weight: 700; }

.d-panel { border: 1px solid var(--d-line); border-radius: var(--d-radius); padding: 22px; background: var(--d-bg); }
.d-panel h3 { margin-top: 0; }
.d-panel h3 + ul { margin-bottom: 18px; }
.d-timings { list-style: none; padding: 0; margin: 0 0 14px; display: grid; gap: 8px; }
.d-timings li { display: flex; justify-content: space-between; gap: 12px; font-size: .9rem;
  padding-bottom: 8px; border-bottom: 1px dashed var(--d-line); }
.d-timings span { color: var(--d-muted); }

.d-person { display: grid; grid-template-columns: 200px 1fr; gap: clamp(20px, 3vw, 40px); align-items: start; }
.d-person-photo { aspect-ratio: 1; border-radius: var(--d-radius); background: var(--d-alt);
  border: 1px dashed var(--d-line); display: grid; place-items: center; }
.d-person-photo span { font: 800 3.4rem/1 var(--d-display); color: var(--d-accent); opacity: .5; }
.d-role { color: var(--d-accent); font-weight: 600; margin-top: -.4rem; }

.d-numbered { counter-reset: n; list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.d-numbered li { counter-increment: n; position: relative; padding: 20px 20px 20px 66px;
  border: 1px solid var(--d-line); border-radius: var(--d-radius); }
.d-numbered li::before { content: counter(n, decimal-leading-zero); position: absolute; left: 22px; top: 20px;
  font: 800 1.3rem/1 var(--d-display); color: var(--d-accent); opacity: .5; }
.d-numbered h3 { margin-bottom: .2rem; }
.d-numbered p { color: var(--d-muted); margin: 0; }

.d-tablewrap { overflow-x: auto; border: 1px solid var(--d-line); border-radius: var(--d-radius); }
.d-table { width: 100%; border-collapse: collapse; min-width: 560px; }
.d-table th, .d-table td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--d-line);
  vertical-align: top; }
.d-table th { background: var(--d-alt); font-size: .78rem; text-transform: uppercase; letter-spacing: .07em;
  color: var(--d-muted); }
.d-table tr:last-child td { border-bottom: 0; }
.d-table td { color: var(--d-muted); }
.d-table td b { color: var(--d-ink); }
.d-num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }

.d-faq details { border: 1px solid var(--d-line); border-radius: var(--d-radius); padding: 14px 18px;
  margin-bottom: 10px; background: var(--d-bg); }
.d-faq summary { cursor: pointer; font-weight: 600; }
.d-faq p { margin: 10px 0 0; color: var(--d-muted); }

.d-band { background: var(--d-accent); color: #fff; padding: clamp(28px, 4vw, 52px) 0; }
.d-band h2 { margin-bottom: .3rem; }
.d-band p { color: rgba(255,255,255,.85); margin: 0; }
.d-band-in { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.d-band .d-btn-primary { background: #fff; color: var(--d-accent); border-color: #fff; }

/* ---------- forms ---------- */
.d-form { display: grid; gap: 14px; max-width: 560px; }
.d-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.d-field { display: grid; gap: 5px; }
.d-field label { font-weight: 600; font-size: .88rem; }
.d-field input, .d-field select, .d-field textarea { font: inherit; padding: 11px 13px; border-radius: 8px;
  border: 1px solid var(--d-line); background: var(--d-bg); color: var(--d-ink); width: 100%; }
.d-field input:focus, .d-field select:focus, .d-field textarea:focus { outline: 2px solid var(--d-accent);
  outline-offset: 1px; border-color: var(--d-accent); }
.d-formnote { display: flex; gap: 9px; align-items: flex-start; font-size: .84rem; color: var(--d-muted);
  background: var(--d-alt); border: 1px dashed var(--d-line); border-radius: 10px; padding: 12px 14px; margin: 0; }
.d-formnote svg { flex-shrink: 0; margin-top: 2px; color: var(--d-accent); }
.d-sent { border: 1px solid var(--d-accent); border-radius: var(--d-radius); padding: 16px 18px;
  margin-bottom: 20px; background: var(--d-alt); }
.d-sent p { margin: 6px 0 0; color: var(--d-muted); font-size: .92rem; }
.d-contactline { color: var(--d-muted); font-size: .92rem; }
.d-placeholder { border-bottom: 1px dotted var(--d-muted); }
.d-mapish { margin-top: 16px; aspect-ratio: 16/10; border-radius: var(--d-radius); border: 1px dashed var(--d-line);
  background: repeating-linear-gradient(45deg, var(--d-alt), var(--d-alt) 12px, transparent 12px, transparent 24px);
  display: grid; place-items: center; color: var(--d-muted); font-size: .84rem; }

/* ---------- footer and the disclaimer ---------- */
.d-foot { border-top: 1px solid var(--d-line); background: var(--d-alt); padding-top: clamp(28px, 4vw, 46px); }
.d-foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 28px; padding-bottom: 30px; }
.d-foot-name { font-family: var(--d-display); font-size: 1.05rem; }
.d-foot p { color: var(--d-muted); font-size: .9rem; }
.d-foot-contact small { display: block; margin-top: 6px; font-size: .78rem; }
.d-foot h3 { font-size: .84rem; text-transform: uppercase; letter-spacing: .08em; color: var(--d-muted); }
.d-foot-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 7px; font-size: .9rem; }
.d-foot-links a { color: var(--d-ink); text-decoration: none; }
.d-foot-links a:hover { color: var(--d-accent); }

.d-disclaimer { background: #10182B; color: #c2c8d6; padding: 18px 0; font-size: .82rem; line-height: 1.65; }
.d-disclaimer p { margin: 0 0 6px; }
.d-disclaimer b { color: #fff; }
.d-disclaimer a { color: #FFCF5C; }
.d-built { color: #8e97ac; }

/* ---------- our floating pitch button ---------- */
.d-float { position: fixed; right: 16px; bottom: 16px; z-index: 30; text-decoration: none;
  background: #10182B; color: #fff; border-radius: 12px; padding: 11px 16px; max-width: 280px;
  box-shadow: 0 16px 38px -18px rgba(0,0,0,.7); }
.d-float b { display: block; font-size: .92rem; }
.d-float span { display: block; font-size: .78rem; color: #FFCF5C; }
.d-float:hover { transform: translateY(-2px); }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .d-hero-in, .d-split, .d-person, .d-foot-grid { grid-template-columns: 1fr; }
  .d-person-photo { max-width: 160px; }
  /* The header was one flex row holding the practice name, the section links
     and the booking button. On a phone that squeezed the name into a three-word
     column beside a button, and the links were hidden outright — which left a
     visitor no way to reach About or Services without scrolling to the footer.
     The row wraps instead, and the links get a line of their own. */
  .d-head-in { flex-wrap: wrap; gap: 12px 14px; }
  .d-brand { flex: 1 1 auto; min-width: 0; }
  .d-cta { margin-left: auto; }
  .d-nav { order: 3; flex: 1 1 100%; margin-left: 0; gap: 20px;
    overflow-x: auto; padding-top: 10px; border-top: 1px solid var(--d-line); }
}
@media (max-width: 560px) {
  .d-row { grid-template-columns: 1fr; }
  .d-float { left: 16px; right: 16px; max-width: none; text-align: center; }
  .d-band-in { flex-direction: column; align-items: flex-start; }
  /* the name gets the full width, so it reads as a name rather than a column */
  .d-brand { flex: 1 1 100%; }
  .d-cta { flex: 1 1 100%; margin-left: 0; text-align: center; }
  /* three stacked rows pinned to the top would eat a fifth of a phone screen */
  .d-head { position: static; }
}
@media (prefers-reduced-motion: reduce) { .d-float:hover { transform: none; } }


/* ──────────────────────────────────────────────────────────────────────────
   Touch devices, iPhone especially

   These pages are standalone — they do not load the main stylesheet — so the
   same two corrections have to be repeated here. Safari zooms the page in when
   a field under 16px takes focus and never zooms back out, and a single line
   of link text is roughly half the 44px a fingertip needs.
   ────────────────────────────────────────────────────────────────────────── */
@media (max-width: 900px), (pointer: coarse) {
  .d-field input, .d-field select, .d-field textarea { font-size: 16px; }
  .d-demobar-cta { display: inline-block; padding: 9px 5px; margin: -9px -5px; }
  .d-nav a { padding: 10px 0; }
}
.d-field select { -webkit-appearance: none; appearance: none; padding-right: 36px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%238A94A6' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 13px center; background-size: 12px 8px; }
a, button, summary { -webkit-tap-highlight-color: transparent; }
