/* ==================================================================
   Bredis Healthcare — Meeting Booking
   Self-contained stylesheet. No external fonts, no CDN, no web calls.
   System font stack includes CJK faces bundled with Windows / macOS /
   iOS / Android in mainland China, so the page renders identically
   there without any network access to Google or other blocked hosts.
   ================================================================== */

:root{
  --brand:        #1c4e5a;
  --brand-700:    #143b45;
  --brand-900:    #0c2830;
  --brand-300:    #4e8695;
  --brand-100:    #d7e6ea;
  --brand-50:     #eef5f7;

  --ink:          #12222a;
  --ink-2:        #3c525b;
  --ink-3:        #6a7f88;
  --line:         #dbe4e8;
  --line-2:       #eaf0f2;
  --bg:           #ffffff;
  --bg-alt:       #f5f9fa;

  --ok:           #1d7a54;
  --ok-bg:        #e8f5ef;
  --danger:       #b3261e;
  --danger-bg:    #fdeceb;

  --radius:       10px;
  --radius-lg:    16px;
  --shadow-sm:    0 1px 2px rgba(12,40,48,.06), 0 1px 3px rgba(12,40,48,.05);
  --shadow:       0 6px 20px rgba(12,40,48,.09);
  --shadow-lg:    0 18px 48px rgba(12,40,48,.14);

  --wrap:         1160px;

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
          "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei UI", "Microsoft YaHei",
          "Noto Sans CJK SC", "Source Han Sans SC", "WenQuanYi Micro Hei",
          "Helvetica Neue", Arial, sans-serif;
}

*,*::before,*::after{ box-sizing:border-box; }
html{ -webkit-text-size-adjust:100%; scroll-behavior:smooth; }
body{
  margin:0; background:var(--bg); color:var(--ink);
  font-family:var(--font); font-size:16px; line-height:1.65;
  -webkit-font-smoothing:antialiased; text-rendering:optimizeLegibility;
}
img{ max-width:100%; height:auto; display:block; }
a{ color:var(--brand); text-decoration:none; }
a:hover{ text-decoration:underline; }
h1,h2,h3,h4,h5{ margin:0 0 .5em; line-height:1.25; font-weight:700; letter-spacing:-.01em; color:var(--brand-900); }
p{ margin:0 0 1em; }
ul{ margin:0; padding:0; list-style:none; }

.wrap{ width:100%; max-width:var(--wrap); margin:0 auto; padding:0 24px; }
.wrap-narrow{ max-width:840px; }

.skip{
  position:absolute; left:-9999px; top:0; z-index:200;
  background:var(--brand); color:#fff; padding:12px 18px; border-radius:0 0 8px 0;
}
.skip:focus{ left:0; }

:focus-visible{ outline:3px solid var(--brand-300); outline-offset:2px; border-radius:4px; }

/* ------------------------------- header ------------------------- */
.site-header{
  position:sticky; top:0; z-index:60;
  background:rgba(255,255,255,.94);
  backdrop-filter:saturate(1.6) blur(10px);
  border-bottom:1px solid var(--line);
}
.header-inner{ display:flex; align-items:center; gap:24px; min-height:72px; }
.brand{ flex:0 0 auto; }
.brand img{ width:auto; height:38px; }
.brand:hover{ text-decoration:none; }

.nav{ margin-left:auto; display:flex; gap:26px; }
.nav a{
  color:var(--ink-2); font-size:15px; font-weight:600; padding:6px 0;
  border-bottom:2px solid transparent;
}
.nav a:hover{ color:var(--brand); border-bottom-color:var(--brand); text-decoration:none; }

.lang{ display:flex; border:1px solid var(--line); border-radius:999px; overflow:hidden; flex:0 0 auto; }
.lang-btn{
  appearance:none; border:0; background:#fff; cursor:pointer;
  font-family:inherit; font-size:13px; font-weight:700; letter-spacing:.02em;
  color:var(--ink-3); padding:7px 15px; transition:background .15s,color .15s;
}
.lang-btn + .lang-btn{ border-left:1px solid var(--line); }
.lang-btn:hover{ background:var(--brand-50); color:var(--brand); }
.lang-btn[aria-pressed="true"]{ background:var(--brand); color:#fff; }

/* -------------------------------- hero -------------------------- */
.hero{ position:relative; overflow:hidden; background:var(--brand-900); color:#fff; }
.hero-bg{
  position:absolute; inset:0;
  background:
    radial-gradient(900px 480px at 88% -12%, rgba(78,134,149,.55), transparent 62%),
    radial-gradient(700px 420px at 6% 108%, rgba(28,78,90,.85), transparent 60%),
    linear-gradient(160deg, #123742 0%, #0c2830 58%, #0a2128 100%);
}
.hero-bg::after{
  content:""; position:absolute; inset:0; opacity:.28;
  background-image:
    linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size:56px 56px;
  mask-image:radial-gradient(1000px 520px at 70% 0%, #000, transparent 75%);
  -webkit-mask-image:radial-gradient(1000px 520px at 70% 0%, #000, transparent 75%);
}
.hero-inner{ position:relative; padding:78px 24px 68px; max-width:960px; margin:0 auto; }
.eyebrow{
  font-size:12.5px; font-weight:800; letter-spacing:.16em; text-transform:uppercase;
  color:#8fc0cc; margin:0 0 14px;
}
.hero h1{ color:#fff; font-size:clamp(28px,4.2vw,46px); margin:0 0 26px; max-width:20ch; }
.facts{ display:flex; flex-wrap:wrap; gap:10px 12px; margin:0 0 26px; }
.facts li{
  display:inline-flex; align-items:center; gap:9px;
  background:rgba(255,255,255,.09); border:1px solid rgba(255,255,255,.16);
  border-radius:999px; padding:8px 16px 8px 13px; font-size:14.5px; color:#e6f1f4;
}
.facts svg{ width:17px; height:17px; flex:0 0 auto; fill:none; stroke:#8fc0cc; stroke-width:1.7; stroke-linecap:round; stroke-linejoin:round; }
.lead{ font-size:17.5px; color:#cfe1e6; max-width:62ch; margin:0 0 30px; }
.hero-actions{ display:flex; flex-wrap:wrap; gap:12px; }
.hero-note{ margin:22px 0 0; font-size:14px; }
.hero-note a{ color:#9ecad6; border-bottom:1px solid rgba(158,202,214,.4); }

/* ------------------------------ buttons ------------------------- */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  font-family:inherit; font-size:15px; font-weight:700; line-height:1;
  padding:14px 24px; border-radius:var(--radius); border:1.5px solid transparent;
  cursor:pointer; text-decoration:none; transition:background .16s,color .16s,border-color .16s,transform .06s,box-shadow .16s;
  white-space:nowrap;
}
.btn:hover{ text-decoration:none; }
.btn:active{ transform:translateY(1px); }
.btn-primary{ background:var(--brand); color:#fff; box-shadow:var(--shadow-sm); }
.btn-primary:hover{ background:var(--brand-700); }
.btn-primary:disabled{ background:var(--brand-300); cursor:not-allowed; box-shadow:none; }
.btn-outline{ background:#fff; color:var(--brand); border-color:var(--brand); }
.btn-outline:hover{ background:var(--brand-50); }
.btn-ghost{ background:rgba(255,255,255,.08); color:#fff; border-color:rgba(255,255,255,.38); }
.btn-ghost:hover{ background:rgba(255,255,255,.16); }
.section .btn-ghost{ background:#fff; color:var(--ink-2); border-color:var(--line); }
.section .btn-ghost:hover{ background:var(--bg-alt); }
.btn-sm{ font-size:14px; padding:10px 18px; }
.btn-lg{ font-size:16.5px; padding:17px 34px; width:100%; }

/* ------------------------------- stats -------------------------- */
.stats{ background:var(--brand-50); border-bottom:1px solid var(--line-2); }
.stats-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:1px; padding:0; background:var(--line-2); }
.stat{ background:var(--brand-50); padding:26px 24px; text-align:center; }
.stat b{ display:block; font-size:26px; font-weight:800; color:var(--brand); letter-spacing:-.02em; }
.stat span{ display:block; font-size:13.5px; color:var(--ink-2); margin-top:5px; line-height:1.45; }

/* ------------------------------ sections ------------------------ */
.section{ padding:76px 0; }
.section-alt{ background:var(--bg-alt); border-top:1px solid var(--line-2); border-bottom:1px solid var(--line-2); }
.kicker{
  font-size:12.5px; font-weight:800; letter-spacing:.14em; text-transform:uppercase;
  color:var(--brand-300); margin:0 0 10px;
}
.section h2{ font-size:clamp(24px,3vw,34px); margin:0 0 12px; }
.section-sub{ color:var(--ink-2); max-width:70ch; margin:0 0 28px; }

.about-grid{ display:grid; grid-template-columns:minmax(0,1.35fr) minmax(0,1fr); gap:48px; margin-top:26px; }
.prose p{ color:var(--ink-2); font-size:16px; }
.prose p + p{ margin-top:1.05em; }

.cards-title{ font-size:15px; text-transform:uppercase; letter-spacing:.1em; color:var(--ink-3); margin:0 0 14px; }
.cards{ display:grid; gap:12px; align-content:start; }
.card{
  background:#fff; border:1px solid var(--line); border-left:3px solid var(--brand-300);
  border-radius:var(--radius); padding:16px 18px; box-shadow:var(--shadow-sm);
}
.card h4{ font-size:15px; margin:0 0 4px; color:var(--brand); }
.card p{ margin:0; font-size:14px; color:var(--ink-2); line-height:1.55; }

/* ------------------------------ calendar ------------------------ */
.legend{ display:flex; flex-wrap:wrap; gap:8px 22px; margin:0 0 16px; font-size:13.5px; color:var(--ink-2); }
.lg{ display:inline-flex; align-items:center; gap:8px; }
.sw{ width:15px; height:15px; border-radius:4px; border:1px solid var(--line); display:inline-block; }
.sw-free{ background:#fff; border-color:var(--brand-300); }
.sw-sel{ background:var(--brand); border-color:var(--brand); }
.sw-booked{ background:#e9eef0; border-color:#cfd9dd; }
.sw-closed{ background:repeating-linear-gradient(45deg,#f2f5f6,#f2f5f6 3px,#e6ebed 3px,#e6ebed 6px); }

.status{ font-size:14px; color:var(--ink-3); margin:0 0 14px; min-height:1.2em; }
.status.warn{ color:#8a5a00; background:#fff6e5; border:1px solid #ffe1a8; padding:10px 14px; border-radius:var(--radius); }

.daytabs{ display:none; gap:8px; margin:0 0 14px; flex-wrap:wrap; }
.daytab{
  appearance:none; font-family:inherit; font-size:14px; font-weight:700;
  border:1px solid var(--line); background:#fff; color:var(--ink-2);
  border-radius:999px; padding:9px 15px; cursor:pointer; line-height:1.2;
}
.daytab[aria-selected="true"]{ background:var(--brand); border-color:var(--brand); color:#fff; }

.cal-scroll{ overflow-x:auto; -webkit-overflow-scrolling:touch; padding-bottom:4px; }
.cal{
  display:grid; grid-template-columns:82px repeat(5, minmax(124px,1fr));
  gap:6px; min-width:740px;
  background:transparent;
}
.cal-head{
  position:sticky; top:72px; z-index:5;
  background:var(--bg-alt); padding:10px 6px 12px; text-align:center;
  border-bottom:2px solid var(--brand-100); border-radius:6px 6px 0 0;
}
.cal-head b{ display:block; font-size:15px; color:var(--brand-900); }
.cal-head span{ display:block; font-size:12px; color:var(--ink-3); margin-top:2px; }
.cal-head em{ display:block; font-style:normal; font-size:11.5px; color:var(--brand-300); margin-top:4px; letter-spacing:.02em; }
.cal-corner{ position:sticky; top:72px; z-index:5; background:var(--bg-alt); }

.cal-time{
  font-size:12.5px; color:var(--ink-3); text-align:right; padding:9px 10px 0 0;
  font-variant-numeric:tabular-nums; white-space:nowrap;
}

.slot{
  appearance:none; font-family:inherit; font-size:14px; font-weight:600;
  border:1.5px solid var(--brand-100); background:#fff; color:var(--brand);
  border-radius:8px; padding:11px 6px; cursor:pointer; min-height:44px;
  transition:background .13s,border-color .13s,color .13s,box-shadow .13s;
  font-variant-numeric:tabular-nums;
}
.slot:hover:not(:disabled){ background:var(--brand-50); border-color:var(--brand-300); box-shadow:var(--shadow-sm); }
.slot[aria-pressed="true"]{ background:var(--brand); border-color:var(--brand); color:#fff; box-shadow:var(--shadow); }
.slot.booked{ background:#eef2f3; border-color:#dde5e8; color:#94a6ad; cursor:not-allowed; font-weight:500; font-size:12.5px; }
.slot.closed{
  background:repeating-linear-gradient(45deg,#f4f7f8,#f4f7f8 4px,#eaeff1 4px,#eaeff1 8px);
  border-color:transparent; color:#c2ced3; cursor:default;
}

.selbar{
  margin-top:22px; background:#fff; border:1px solid var(--line); border-radius:var(--radius-lg);
  padding:18px 22px; display:flex; align-items:center; gap:16px; flex-wrap:wrap;
  box-shadow:var(--shadow-sm);
}
.selbar-none{ color:var(--ink-3); }
.selbar.has .selbar-label{ font-size:12.5px; font-weight:800; letter-spacing:.12em; text-transform:uppercase; color:var(--brand-300); display:block; }
.selbar.has .selbar-value{ font-size:19px; font-weight:700; color:var(--brand-900); }
.selbar .btn{ margin-left:auto; }

/* -------------------------------- form -------------------------- */
form{ margin-top:8px; }
.grid-2{ display:grid; grid-template-columns:1fr 1fr; gap:18px 20px; }
.field{ margin-bottom:0; min-width:0; }
.field-full{ margin-top:22px; }
.field label, fieldset legend{
  display:block; font-size:14px; font-weight:700; color:var(--ink); margin:0 0 7px; padding:0;
}
.req{ color:var(--danger); font-weight:800; }
.hint{ font-size:13px; color:var(--ink-3); margin:-2px 0 10px; }

input[type=text], input[type=email], select, textarea{
  width:100%; font-family:inherit; font-size:16px; color:var(--ink);
  background:#fff; border:1.5px solid var(--line); border-radius:var(--radius);
  padding:12px 14px; transition:border-color .15s, box-shadow .15s;
}
textarea{ resize:vertical; line-height:1.6; }
select{
  appearance:none;
  background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath fill='%236a7f88' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat:no-repeat; background-position:right 14px center; background-size:11px; padding-right:38px;
}
input:focus, select:focus, textarea:focus{
  outline:none; border-color:var(--brand); box-shadow:0 0 0 3px rgba(28,78,90,.13);
}
input.invalid, textarea.invalid{ border-color:var(--danger); background:var(--danger-bg); }

fieldset{ border:0; margin:0; padding:0; }

.chips{ display:flex; flex-wrap:wrap; gap:9px; }
.chip{ position:relative; }
.chip input{ position:absolute; opacity:0; width:0; height:0; }
.chip span{
  display:inline-block; border:1.5px solid var(--line); background:#fff; color:var(--ink-2);
  border-radius:999px; padding:9px 16px; font-size:14px; cursor:pointer; line-height:1.35;
  transition:background .14s,border-color .14s,color .14s;
}
.chip span:hover{ border-color:var(--brand-300); background:var(--brand-50); }
.chip input:checked + span{ background:var(--brand); border-color:var(--brand); color:#fff; font-weight:600; }
.chip input:focus-visible + span{ outline:3px solid var(--brand-300); outline-offset:2px; }

.consent{ background:var(--bg-alt); border:1px solid var(--line-2); border-radius:var(--radius); padding:16px 18px; }
.check{ display:flex; gap:11px; align-items:flex-start; font-weight:500 !important; font-size:14.5px !important; cursor:pointer; margin:0 !important; }
.check input{ width:19px; height:19px; margin:2px 0 0; flex:0 0 auto; accent-color:var(--brand); cursor:pointer; }
.consent .hint{ margin:9px 0 0 30px; }

.err{ color:var(--danger); font-size:13px; margin:6px 0 0; min-height:0; display:none; }
.err.show{ display:block; }
.err-form{ margin:18px 0 0; font-size:14.5px; font-weight:600; }
.hp{ position:absolute; left:-9999px; width:1px; height:1px; overflow:hidden; }

#bookingForm .btn-lg{ margin-top:26px; }

/* ------------------------------ success ------------------------- */
.success{ background:var(--bg-alt); }
.ok-card{
  background:#fff; border:1px solid var(--line); border-radius:var(--radius-lg);
  padding:44px 40px; box-shadow:var(--shadow-lg); text-align:center;
}
.ok-mark{
  width:66px; height:66px; margin:0 auto 20px; border-radius:50%;
  background:var(--ok-bg); display:flex; align-items:center; justify-content:center;
}
.ok-mark svg{ width:32px; height:32px; fill:none; stroke:var(--ok); stroke-width:2.6; stroke-linecap:round; stroke-linejoin:round; }
.ok-card.pending .ok-mark{ background:#fff6e5; }
.ok-card.pending .ok-mark svg{ stroke:#b07600; }
.ok-body{ color:var(--ink-2); max-width:56ch; margin:0 auto 26px; }
.ok-list{ display:grid; gap:1px; background:var(--line-2); border:1px solid var(--line-2); border-radius:var(--radius); overflow:hidden; margin:0 0 28px; text-align:left; }
.ok-list > div{ background:#fff; padding:14px 20px; display:flex; gap:16px; flex-wrap:wrap; align-items:baseline; }
.ok-list dt{ font-size:13px; font-weight:700; color:var(--ink-3); min-width:150px; }
.ok-list dd{ margin:0; font-size:16px; font-weight:600; color:var(--brand-900); }
#okRef{ font-family:ui-monospace,"SFMono-Regular",Consolas,"Liberation Mono",monospace; letter-spacing:.04em; }
.ok-actions{ display:flex; flex-wrap:wrap; gap:11px; justify-content:center; }
.mailto-box{ margin-top:26px; background:#fff6e5; border:1px solid #ffe1a8; border-radius:var(--radius); padding:16px 18px; text-align:left; }
.mailto-box p{ font-size:14px; color:#7a5200; margin:0 0 12px; }

/* ------------------------------- footer ------------------------- */
.site-footer{ background:var(--brand-900); color:#b9cfd6; padding:56px 0 28px; margin-top:0; }
.footer-grid{ display:grid; grid-template-columns:2fr 1fr 1fr; gap:36px; padding-bottom:34px; }
.footer-logo{ height:34px; width:auto; margin-bottom:14px; filter:brightness(0) invert(1); opacity:.94; }
.footer-tag{ font-size:14px; color:#93b1ba; margin:0; max-width:34ch; }
.site-footer h5{ color:#fff; font-size:13px; letter-spacing:.1em; text-transform:uppercase; margin:0 0 12px; }
.site-footer li{ margin-bottom:8px; font-size:14.5px; }
.site-footer a{ color:#b9cfd6; }
.site-footer a:hover{ color:#fff; }
.footer-bottom{
  border-top:1px solid rgba(255,255,255,.12); padding-top:20px;
  display:flex; justify-content:space-between; gap:16px; flex-wrap:wrap;
}
.footer-bottom p{ margin:0; font-size:12.5px; color:#7f9aa3; }

/* ----------------------------- responsive ----------------------- */
@media (max-width:1000px){
  .about-grid{ grid-template-columns:1fr; gap:34px; }
  .stats-grid{ grid-template-columns:repeat(2,1fr); }
  .footer-grid{ grid-template-columns:1fr 1fr; }
}

@media (max-width:820px){
  .nav{ display:none; }
  .lang{ margin-left:auto; }
  .hero-inner{ padding:56px 24px 52px; }
  .section{ padding:56px 0; }
  .grid-2{ grid-template-columns:1fr; }
  .ok-card{ padding:32px 22px; }
  .cal-head, .cal-corner{ top:64px; }
}

/* Mobile: one day at a time, driven by day tabs. Hidden cells are
   removed from the grid flow, so the layout collapses to 2 columns. */
@media (max-width:720px){
  .daytabs{ display:flex; }
  .cal-scroll{ overflow:visible; }
  .cal{ grid-template-columns:70px minmax(0,1fr); min-width:0; gap:8px; }
  .cal .d-hide{ display:none; }
  .cal-head{ text-align:left; padding-left:2px; }
  .slot{ font-size:15px; padding:14px 8px; }
  .header-inner{ min-height:64px; gap:12px; }
  .brand img{ height:32px; }
  .selbar .btn{ margin-left:0; width:100%; }
  .footer-grid{ grid-template-columns:1fr; gap:26px; }
}

@media (max-width:480px){
  .stats-grid{ grid-template-columns:1fr; }
  .wrap{ padding:0 18px; }
  .facts li{ font-size:13.5px; }
  .ok-list dt{ min-width:0; flex:0 0 100%; }
}

/* -------------------------------- print ------------------------- */
@media print{
  .site-header,.hero,.stats,#about,#booking,#details,.site-footer,.ok-actions,.mailto-box,.skip{ display:none !important; }
  .success{ background:#fff; padding:0; }
  .ok-card{ box-shadow:none; border:0; padding:0; text-align:left; }
  body{ font-size:12pt; }
}

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