/* [Pharmacy Name] — design system
   Style: Trust & Authority (healthcare). Calm cyan + health green.
   Type: Figtree (headings) / Noto Sans (body). */

:root {
  /* Brand */
  --cyan-700: #0e7490;
  --cyan-600: #0891b2; /* primary */
  --cyan-500: #06b6d4;
  --cyan-400: #22d3ee;
  --cyan-100: #cff5fb;
  --cyan-50:  #ecfeff; /* tint */
  --green-700: #047857;
  --green-600: #059669; /* CTA */
  --green-100: #d1fae5;

  --ink:    #133b4a; /* primary text — deep cyan */
  --muted:  #557885; /* secondary text */
  --faint:  #557885; /* tertiary text — darkened from #84a0ab to meet WCAG AA (4.5:1) */
  --line:   #d6e7ec; /* borders */
  --line-2: #c2dbe2;
  --bg:     #f4fafb; /* page background */
  --surface:#ffffff;

  --amber-500: #d97706;
  --amber-50:  #fff7ed;
  --danger:    #b42318;
  --danger-50: #fef3f2;
  --success:   #047857;

  --radius:    16px;
  --radius-sm: 10px;
  --radius-xs: 8px;
  --maxw: 1120px;

  --shadow-sm: 0 1px 2px rgba(15, 60, 75, 0.06);
  --shadow:    0 2px 4px rgba(15, 60, 75, 0.05), 0 10px 24px rgba(15, 60, 75, 0.07);
  --shadow-lg: 0 8px 40px rgba(15, 60, 75, 0.12);

  --font-head: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Noto Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --z-header: 50;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 600; line-height: 1.18; letter-spacing: -0.01em; }

a { color: var(--cyan-700); }

img, svg { display: block; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* --- Icons --------------------------------------------------------------- */

.ic { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.ic-sm { width: 18px; height: 18px; }
.ic-lg { width: 26px; height: 26px; }

/* --- Header / nav -------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}

.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; }

.brand { display: flex; align-items: center; gap: 11px; font-family: var(--font-head); font-weight: 700; color: var(--ink); text-decoration: none; font-size: 1.15rem; letter-spacing: -0.02em; }

/* Green pharmacy cross logo mark (SVG). */
.brand-group { display: flex; align-items: center; gap: 14px; }
.brand-mark-img { width: 36px; height: 36px; display: block; flex: none; }

.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-links a { display: flex; align-items: center; color: var(--muted); text-decoration: none; padding: 9px 14px; border-radius: var(--radius-xs); font-size: 0.97rem; font-weight: 500; transition: color 0.18s var(--ease), background 0.18s var(--ease); }
.nav-links a:hover { color: var(--cyan-700); background: var(--cyan-50); }
.nav-links a.active { color: var(--cyan-700); }
.nav-links a.active::after { content: ""; }
/* Keep the header Book button white — outrank the grey `.nav-links a` colour. */
.nav-links .btn, .nav-links .btn:hover { margin-left: 8px; color: #fff; background: var(--green-700); }
.nav-links .btn:hover { background: #036848; }

/* Top-nav dropdowns (Services / Travel vaccines / Aesthetics) */
.nav-drop { position: relative; }
.nav-caret { font-size: 0.7em; opacity: 0.65; margin-left: 2px; transition: transform 0.15s var(--ease); }
.nav-menu {
  position: absolute; top: 100%; left: 0; min-width: 236px; margin-top: 4px; padding: 8px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity 0.15s var(--ease), transform 0.15s var(--ease), visibility 0.15s; z-index: var(--z-header);
}
.nav-menu::before { content: ""; position: absolute; top: -6px; left: 0; right: 0; height: 6px; } /* hover bridge */
.nav-drop:hover > .nav-menu, .nav-drop:focus-within > .nav-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-drop:hover .nav-caret { transform: rotate(180deg); }
.nav-menu-row { display: flex; justify-content: space-between; gap: 16px; padding: 7px 10px; font-size: 0.9rem; color: var(--ink); border-bottom: 1px solid var(--line); }
.nav-menu-row:last-of-type { border-bottom: 0; }
.nav-price { color: var(--green-700); font-weight: 600; white-space: nowrap; }
.nav-menu-link { display: block !important; padding: 8px 10px; border-radius: var(--radius-xs); color: var(--muted); font-size: 0.9rem; }
.nav-menu-link.strong { color: var(--cyan-700); font-weight: 600; }
.nav-menu-link:hover { background: var(--cyan-50); color: var(--cyan-700); }

@media (max-width: 680px) {
  .nav-menu {
    position: static; opacity: 1; visibility: visible; transform: none; display: none;
    box-shadow: none; border: 0; border-left: 2px solid var(--line); border-radius: 0;
    margin: 2px 0 6px 14px; padding: 0 0 0 6px; min-width: 0;
  }
  .nav-drop.open > .nav-menu { display: block; }
  .nav-drop.open .nav-caret { transform: rotate(180deg); }
}

.nav-toggle { display: none; background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--radius-xs); padding: 8px; cursor: pointer; color: var(--ink); }

/* --- Buttons ------------------------------------------------------------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  background: var(--green-700); color: #fff; border: 1px solid transparent;
  text-decoration: none; padding: 12px 22px; border-radius: var(--radius-sm);
  font-family: var(--font-head); font-size: 0.98rem; font-weight: 600; cursor: pointer;
  transition: background 0.18s var(--ease), transform 0.12s var(--ease), box-shadow 0.18s var(--ease);
  box-shadow: var(--shadow-sm);
}
.btn:hover { background: #036848; }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 3px solid var(--cyan-700); outline-offset: 2px; }
.btn:disabled { opacity: 0.65; cursor: progress; }
.btn .ic { width: 19px; height: 19px; }

.btn-cyan { background: var(--cyan-700); }
.btn-cyan:hover { background: #0b5a72; }

.btn-ghost { background: var(--surface); color: var(--cyan-700); border-color: var(--line-2); box-shadow: none; }
.btn-ghost:hover { background: var(--cyan-50); border-color: var(--cyan-400); }

.btn-block { width: 100%; }

/* --- Hero ---------------------------------------------------------------- */

.hero { position: relative; overflow: hidden; background: linear-gradient(180deg, var(--cyan-50) 0%, var(--surface) 100%); }
.hero::before {
  content: ""; position: absolute; top: -40%; right: -10%; width: 520px; height: 520px;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.18), transparent 70%); pointer-events: none;
}
.hero-inner { position: relative; text-align: center; padding: 84px 24px 76px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; background: var(--surface); border: 1px solid var(--line-2); color: var(--cyan-700); font-weight: 600; font-size: 0.82rem; padding: 7px 14px; border-radius: 999px; margin-bottom: 22px; box-shadow: var(--shadow-sm); }
.eyebrow .ic { width: 16px; height: 16px; color: var(--green-600); }
.hero h1 { margin: 0 0 16px; font-size: clamp(2.1rem, 5vw, 3.1rem); color: var(--ink); }
.hero p.lead { margin: 0 auto 30px; max-width: 560px; color: var(--muted); font-size: 1.15rem; line-height: 1.6; }
.hero-actions { display: flex; gap: 13px; justify-content: center; flex-wrap: wrap; }

.trust-row { display: flex; gap: 28px; justify-content: center; flex-wrap: wrap; margin-top: 40px; }
.trust-item { display: flex; align-items: center; gap: 9px; color: var(--muted); font-size: 0.92rem; font-weight: 500; }
.trust-item .ic { width: 19px; height: 19px; color: var(--cyan-600); }

/* Hero variant: full-width background image, content left over a soft scrim. */
.hero-bg { background-image: url("../assets/hero-bg.png"); background-size: cover; background-position: center right; background-repeat: no-repeat; }
.hero-bg::before { content: none; }
.hero-bg::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.82) 32%, rgba(255, 255, 255, 0.32) 58%, rgba(255, 255, 255, 0) 78%);
}
.hero-bg .hero-inner { position: relative; z-index: 2; text-align: left; padding: 0 24px; min-height: 520px; display: flex; align-items: center; }
.hero-content { max-width: 540px; }
.hero-bg p.lead { margin: 0 0 28px; }
.hero-bg .hero-actions, .hero-bg .trust-row { justify-content: flex-start; }

@media (max-width: 760px) {
  .hero-bg { background-position: 72% center; }
  .hero-bg::after { background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.82)); }
  .hero-bg .hero-inner { text-align: center; padding: 56px 24px; min-height: 0; }
  .hero-content { max-width: none; margin: 0 auto; }
  .hero-bg .hero-actions, .hero-bg .trust-row { justify-content: center; }
}

/* --- Sections ------------------------------------------------------------ */

section { padding: 64px 0; }
.section-head { text-align: center; max-width: 600px; margin: 0 auto 44px; }
.section-head .label { display: block; color: var(--cyan-700); font-weight: 700; font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 10px; }
.section-head h2 { margin: 0 0 10px; font-size: clamp(1.6rem, 3.5vw, 2.1rem); }
.section-head p { margin: 0; color: var(--muted); font-size: 1.05rem; }

/* --- Cards / grid -------------------------------------------------------- */

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(248px, 1fr)); gap: 22px; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-sm); transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), border-color 0.2s var(--ease); }
.card.interactive:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--cyan-100); }

.card .icon { width: 52px; height: 52px; border-radius: 14px; background: var(--cyan-50); color: var(--cyan-600); display: grid; place-items: center; margin-bottom: 18px; }
.card .icon .ic { width: 26px; height: 26px; }
.card h3 { margin: 0 0 8px; font-size: 1.18rem; }
.card p { margin: 0; color: var(--muted); font-size: 0.97rem; }
.card .meta { margin-top: 14px; display: inline-flex; align-items: center; gap: 7px; font-size: 0.85rem; color: var(--cyan-700); font-weight: 600; background: var(--cyan-50); padding: 5px 11px; border-radius: 999px; }
.card .meta .ic { width: 15px; height: 15px; }
.card .card-link { margin-top: 18px; }

/* --- Info strip (hours / location) -------------------------------------- */

.info-strip { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(256px, 1fr)); gap: 36px; padding: 52px 0; }
.info-grid h3 { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; font-size: 1.12rem; }
.info-grid h3 .ic { color: var(--cyan-600); }
.hours-row { display: flex; justify-content: space-between; max-width: 280px; color: var(--muted); padding: 5px 0; border-bottom: 1px dashed var(--line); }
.hours-row:last-child { border-bottom: none; }
.hours-row span:last-child { color: var(--ink); font-weight: 500; }

/* --- Forms --------------------------------------------------------------- */

.form-wrap { max-width: 680px; margin: 0 auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 38px; }
.field { margin-bottom: 22px; }
.field > label { display: block; font-family: var(--font-head); font-weight: 600; margin-bottom: 8px; font-size: 0.97rem; color: var(--ink); }
.field .hint { font-family: var(--font-body); font-weight: 400; color: var(--faint); font-size: 0.85rem; }

input, select, textarea {
  width: 100%; font-family: var(--font-body); font-size: 1rem; color: var(--ink);
  background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--radius-sm);
  padding: 12px 14px; transition: border-color 0.16s var(--ease), box-shadow 0.16s var(--ease);
}
input::placeholder, textarea::placeholder { color: var(--faint); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--cyan-500); box-shadow: 0 0 0 4px rgba(8, 145, 178, 0.14); }
textarea { min-height: 130px; resize: vertical; }

/* Selects: replace the native arrow with a custom chevron and reserve room for it
   on the right so long option text never collides with the arrow. */
select {
  appearance: none; -webkit-appearance: none; -moz-appearance: none;
  cursor: pointer; padding-right: 42px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 15px;
}
select::-ms-expand { display: none; }

.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--danger); }
.field.has-error input:focus, .field.has-error select:focus, .field.has-error textarea:focus { box-shadow: 0 0 0 4px rgba(180, 35, 24, 0.12); }
.error-text { color: var(--danger); font-size: 0.85rem; margin: 7px 0 0; min-height: 1em; display: flex; align-items: center; gap: 5px; }

.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

/* --- Services catalogue -------------------------------------------------- */

.svc-filters {
  position: sticky;
  top: 73px; /* header nav 72px + its 1px border-bottom */
  z-index: 40;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(10px);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.svc-filter-row { display: flex; align-items: center; gap: 16px; padding: 16px 0 12px; flex-wrap: wrap; }
.svc-search { position: relative; flex: 1; min-width: 220px; max-width: 420px; }
.svc-search .ic { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--faint); pointer-events: none; }
.svc-search input { padding-left: 40px; height: 42px; }
.svc-search input[type="search"]::-webkit-search-cancel-button { cursor: pointer; }
.svc-toggle { display: inline-flex; align-items: center; gap: 8px; font-size: 0.9rem; color: var(--muted); cursor: pointer; user-select: none; white-space: nowrap; }
.svc-toggle input { width: auto; accent-color: var(--cyan-600); width: 17px; height: 17px; cursor: pointer; }
/* Explicit focus rings — the global input:focus reset strips the native outline. */
.svc-search input:focus-visible,
.svc-toggle input:focus-visible { outline: 3px solid var(--cyan-700); outline-offset: 2px; }
.svc-count { margin-left: auto; font-size: 0.88rem; color: var(--muted); font-weight: 500; white-space: nowrap; }

.svc-chips { display: flex; gap: 8px; padding-bottom: 14px; overflow-x: auto; scrollbar-width: none; }
.svc-chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; white-space: nowrap; padding: 8px 15px; border-radius: 999px;
  border: 1px solid var(--line-2); background: var(--surface); color: var(--muted);
  font-family: var(--font-head); font-weight: 500; font-size: 0.9rem; cursor: pointer;
  transition: background 0.16s var(--ease), color 0.16s var(--ease), border-color 0.16s var(--ease);
}
.chip:hover { border-color: var(--cyan-400); color: var(--cyan-700); }
.chip.active { background: var(--cyan-700); color: #fff; border-color: var(--cyan-700); }
.chip:focus-visible { outline: 3px solid var(--cyan-700); outline-offset: 2px; }

.svc-section { margin-top: 40px; }
.svc-section:first-child { margin-top: 8px; }
.svc-section-title { font-size: 1.5rem; margin: 0 0 18px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }

.svc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(288px, 1fr)); gap: 16px; }

.svc-card {
  display: flex; gap: 14px; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow-sm);
  transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease), border-color 0.18s var(--ease);
}
.svc-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--cyan-100); }
.svc-icon { flex: none; width: 44px; height: 44px; border-radius: 11px; background: var(--cyan-50); color: var(--cyan-600); display: grid; place-items: center; }
.svc-icon .ic { width: 23px; height: 23px; }
.svc-body { min-width: 0; display: flex; flex-direction: column; }
.svc-body h3 { margin: 2px 0 5px; font-size: 1.05rem; }
.svc-body p { margin: 0 0 12px; color: var(--muted); font-size: 0.92rem; line-height: 1.55; }

.svc-badges { display: flex; flex-wrap: wrap; gap: 7px; margin-top: auto; }
.pill { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 999px; font-size: 0.76rem; font-weight: 600; white-space: nowrap; }
.pill .ic { width: 13px; height: 13px; }
.pill.book { background: var(--cyan-50); color: var(--cyan-700); }
.pill.appt { background: var(--amber-50); color: #b45309; }
.pill.walkin { background: var(--green-100); color: var(--green-700); }
.pill.nhs { background: #e6f1fb; color: #185fa5; }
.pill.private { background: #f0eefb; color: #4c3fa3; }
.pill.order { background: #f1efe8; color: #5f5e5a; }
.pill.branch { background: var(--bg); color: var(--muted); border: 1px solid var(--line); }
.pill.price { background: var(--green-100); color: var(--green-700); }
.svc-elig { color: var(--muted); font-size: 0.82rem; margin: -4px 0 4px; line-height: 1.45; }

/* Expandable price list on a service card */
.svc-pricelist { margin: 2px 0 12px; }
.svc-pricelist summary { cursor: pointer; font-family: var(--font-head); font-weight: 600; font-size: 0.85rem; color: var(--cyan-700); list-style: none; display: inline-flex; align-items: center; gap: 6px; }
.svc-pricelist summary::-webkit-details-marker { display: none; }
.svc-pricelist summary::before { content: "▸"; font-size: 0.8em; transition: transform 0.15s var(--ease); }
.svc-pricelist[open] summary::before { transform: rotate(90deg); }
.svc-count-mini { color: var(--faint); font-weight: 500; }
.svc-items-list { list-style: none; margin: 8px 0 0; padding: 0; border-top: 1px solid var(--line); }
.svc-items-list li { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; font-size: 0.88rem; border-bottom: 1px solid var(--line); color: var(--muted); }
.svc-item-cost { font-weight: 600; color: var(--ink); white-space: nowrap; }

/* Admin: price-list editor rows */
.svc-item-row { display: flex; gap: 8px; margin-bottom: 8px; align-items: center; }
.svc-item-row .svc-item-name { flex: 1; }
.svc-item-row .svc-item-price { width: 92px; }

/* Promotions — homepage "What's new" cards */
.whats-new { padding: 56px 0; }
.promo-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.promo-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; transition: transform 0.16s var(--ease), box-shadow 0.16s var(--ease); }
.promo-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.promo-card-img { aspect-ratio: 16 / 9; background: var(--bg); }
.promo-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.promo-card-body { padding: 20px 22px; }
.promo-card-body h3 { margin: 0 0 8px; }
.promo-card-body p { margin: 0 0 14px; color: var(--muted); }
.promo-btn { display: inline-flex; align-items: center; gap: 6px; color: var(--green-700); font-family: var(--font-head); font-weight: 600; text-decoration: none; }
.promo-btn .ic { width: 16px; height: 16px; transition: transform 0.16s var(--ease); }
.promo-btn:hover .ic { transform: translateX(3px); }

/* Promotions — top announcement bar (every page) */
.announce-bar { background: var(--green-700); color: #fff; font-size: 0.92rem; }
.announce-item { max-width: var(--maxw); margin: 0 auto; padding: 9px 20px; display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; text-align: center; }
.announce-item a { color: #fff; font-weight: 700; text-decoration: underline; white-space: nowrap; }

/* Admin: promotions editor */
.promo-thumb { width: 46px; height: 46px; object-fit: cover; border-radius: var(--radius-xs); border: 1px solid var(--line); flex-shrink: 0; }
.promo-image-row { display: flex; gap: 14px; align-items: flex-start; }
.promo-preview { width: 128px; height: 84px; border: 1px dashed var(--line); border-radius: var(--radius-xs); display: flex; align-items: center; justify-content: center; overflow: hidden; background: var(--bg); flex-shrink: 0; font-size: 0.82rem; }
.promo-preview img { width: 100%; height: 100%; object-fit: cover; }
.promo-image-controls { display: flex; flex-direction: column; gap: 10px; }

/* Price-list pages (Travel vaccines / Aesthetics) */
.container-narrow { max-width: 760px; }
.pricelist-intro { color: var(--muted); max-width: 640px; margin: 0 0 24px; line-height: 1.6; }
.pricelist-table { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-bottom: 26px; background: var(--surface); box-shadow: var(--shadow-sm); }
.pricelist-row { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 20px; padding: 15px 22px; border-bottom: 1px solid var(--line); }
.pricelist-row:last-child { border-bottom: 0; }
.pricelist-name { font-weight: 600; color: var(--ink); }
.pricelist-price { color: var(--green-700); font-weight: 700; white-space: nowrap; }
.pricelist-book { display: inline-flex; align-items: center; gap: 5px; color: var(--cyan-700); font-family: var(--font-head); font-weight: 600; font-size: 0.9rem; text-decoration: none; white-space: nowrap; }
.pricelist-book .ic { width: 15px; height: 15px; transition: transform 0.16s var(--ease); }
.pricelist-book:hover .ic { transform: translateX(3px); }
.pricelist-empty { color: var(--muted); margin: 0 0 24px; line-height: 1.6; }
.cat-block { margin-bottom: 30px; }
.cat-block-title { font-size: 1.2rem; margin: 0 0 12px; }

/* Admin: tags / categories manager */
.cat-admin { margin-bottom: 18px; padding: 14px 16px; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.cat-admin-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.cat-admin-label { font-size: 0.85rem; color: var(--muted); max-width: 620px; }
.cat-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.cat-chip { display: inline-flex; align-items: center; gap: 7px; padding: 6px 13px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; font-family: var(--font-body); font-size: 0.88rem; font-weight: 500; color: var(--ink); cursor: pointer; transition: border-color 0.14s var(--ease); }
.cat-chip:hover { border-color: var(--cyan-400); }
.cat-chip-badge { font-size: 0.7rem; font-weight: 600; color: var(--green-700); background: var(--green-100); padding: 1px 8px; border-radius: 999px; }
@media (max-width: 560px) {
  .pricelist-row { grid-template-columns: 1fr auto; row-gap: 4px; }
  .pricelist-book { grid-column: 1 / -1; justify-self: start; }
}

.svc-book { display: inline-flex; align-items: center; gap: 5px; margin-top: 12px; color: var(--cyan-700); font-family: var(--font-head); font-weight: 600; font-size: 0.9rem; text-decoration: none; }
.svc-book .ic { width: 16px; height: 16px; transition: transform 0.16s var(--ease); }
.svc-book:hover .ic { transform: translateX(3px); }
.svc-book:focus-visible { outline: 3px solid var(--cyan-700); outline-offset: 2px; border-radius: 4px; }

.svc-empty { text-align: center; padding: 60px 20px; color: var(--muted); }
.svc-empty .ic { color: var(--faint); margin-bottom: 12px; }
.svc-empty p { margin: 0; }

.svc-cta { text-align: center; background: var(--cyan-50); border: 1px solid var(--cyan-100); border-radius: var(--radius); padding: 40px 24px; margin-top: 48px; }
.svc-cta h2 { margin: 0 0 8px; font-size: 1.25rem; }
.svc-cta p { margin: 0 auto 22px; max-width: 520px; color: var(--muted); }
.svc-cta-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

@media (max-width: 680px) {
  .svc-filters { top: 65px; } /* mobile nav 64px + 1px border */
  .svc-count { margin-left: 0; }
  .svc-grid { grid-template-columns: 1fr; }
}

/* --- Booking (Calendly) -------------------------------------------------- */

.booking-wrap { max-width: 820px; }

/* Service detail panel on the booking form (description, price note, vaccine/medicine picker) */
.svc-extra { margin: -6px 0 22px; padding: 16px 18px; background: var(--cyan-50); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.svc-extra.hidden { display: none; }
.svc-extra-desc { margin: 0; color: var(--ink); font-size: 0.95rem; line-height: 1.5; }
.svc-extra-meta { margin: 8px 0 0; color: var(--muted); font-size: 0.88rem; }
.svc-opts { margin: 14px 0 0; padding: 0; border: 0; }
.svc-opts legend { padding: 0; font-family: var(--font-head); font-weight: 600; font-size: 0.92rem; color: var(--ink); margin-bottom: 10px; }
.svc-opt { display: flex; align-items: center; gap: 10px; padding: 9px 12px; margin-bottom: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-xs); cursor: pointer; font-size: 0.92rem; color: var(--ink); transition: border-color 0.14s var(--ease), background 0.14s var(--ease); }
.svc-opt:last-child { margin-bottom: 0; }
.svc-opt:hover { border-color: var(--cyan-400); }
.svc-opt input { accent-color: var(--green-600); width: 17px; height: 17px; flex-shrink: 0; margin: 0; }
.svc-opt:has(input:checked) { border-color: var(--green-600); background: var(--green-100); }

/* Manage / cancel appointment page */
.cancel-summary { padding: 16px 18px; background: var(--cyan-50); border: 1px solid var(--line); border-radius: var(--radius-sm); margin-bottom: 6px; }
.cancel-summary p { margin: 3px 0; }
.btn-danger { background: var(--danger); border-color: var(--danger); }
.btn-danger:hover { background: #99160d; }
.booking-placeholder { text-align: center; color: var(--muted); padding: 48px 20px; border: 1px dashed var(--line-2); border-radius: var(--radius-sm); background: var(--bg); }
.booking-placeholder .ic { color: var(--cyan-600); margin-bottom: 10px; }
.booking-placeholder p { margin: 0; font-size: 1rem; }
.calendly-embed { min-width: 320px; min-height: 700px; border-radius: var(--radius-sm); overflow: hidden; }
.calendly-loading { text-align: center; color: var(--muted); padding: 40px; }
.booking-help { margin: 20px 0 0; text-align: center; color: var(--muted); font-size: 0.9rem; }

/* --- Availability calendar (legacy custom scheduler) --------------------- */

.calendar { border: 1px solid var(--line-2); border-radius: var(--radius-sm); padding: 16px; background: var(--surface); }
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.cal-title { font-family: var(--font-head); font-weight: 600; font-size: 1.05rem; }
.cal-nav { display: flex; gap: 6px; }
.cal-nav button { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid var(--line-2); background: var(--surface); border-radius: var(--radius-xs); cursor: pointer; color: var(--ink); transition: background 0.16s var(--ease), border-color 0.16s var(--ease); }
.cal-nav button:hover:not(:disabled) { background: var(--cyan-50); border-color: var(--cyan-400); }
.cal-nav button:disabled { opacity: 0.4; cursor: not-allowed; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.cal-dow { text-align: center; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--faint); padding: 4px 0 8px; }
.cal-day { position: relative; aspect-ratio: 1 / 1; min-height: 44px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; border: 1px solid transparent; border-radius: var(--radius-xs); background: var(--cyan-50); color: var(--ink); font-family: var(--font-head); font-weight: 500; font-size: 0.95rem; cursor: pointer; transition: background 0.14s var(--ease), border-color 0.14s var(--ease), transform 0.12s var(--ease); }
.cal-day .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green-600); }
.cal-day:hover { border-color: var(--cyan-500); transform: translateY(-1px); }
.cal-day:focus-visible { outline: 3px solid var(--cyan-700); outline-offset: 1px; }
.cal-day.is-selected { background: var(--cyan-700); color: #fff; border-color: var(--cyan-700); }
.cal-day.is-selected .dot { background: #fff; }
.cal-day.is-blank { background: transparent; cursor: default; }
.cal-day:disabled, .cal-day.is-disabled { cursor: not-allowed; }
.cal-day.is-full { background: var(--amber-50); color: #b45309; }
.cal-day.is-full .dot { background: var(--amber-500); border-radius: 0; }
.cal-day.is-closed, .cal-day.is-past { background: transparent; color: var(--faint); border: 1px solid var(--line); }
.cal-day.is-closed:hover, .cal-day.is-past:hover, .cal-day.is-full:hover { transform: none; border-color: var(--line); }
.cal-day.is-full:hover { border-color: var(--amber-500); }
.cal-legend { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 0.82rem; color: var(--muted); }
.cal-legend span { display: inline-flex; align-items: center; gap: 7px; }
.cal-legend .swatch { width: 12px; height: 12px; border-radius: 4px; }
.swatch.available { background: var(--cyan-50); border: 1px solid var(--cyan-400); }
.swatch.full { background: var(--amber-50); border: 1px solid var(--amber-500); }
.swatch.closed { background: transparent; border: 1px solid var(--line-2); }
.cal-loading { text-align: center; color: var(--faint); padding: 20px; font-size: 0.9rem; }

/* --- Time slots ---------------------------------------------------------- */

.slots-wrap { margin-top: 18px; }
.slots-wrap .slots-label { font-family: var(--font-head); font-weight: 600; font-size: 0.92rem; margin-bottom: 10px; display: flex; align-items: center; gap: 8px; color: var(--ink); }
.slots-wrap .slots-label .ic { width: 17px; height: 17px; color: var(--cyan-600); }
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); gap: 8px; }
.slot { text-align: center; padding: 11px 6px; border: 1px solid var(--line-2); border-radius: var(--radius-xs); background: var(--surface); cursor: pointer; font-size: 0.92rem; font-weight: 500; color: var(--ink); transition: border-color 0.14s var(--ease), background 0.14s var(--ease); }
.slot:hover { border-color: var(--cyan-500); background: var(--cyan-50); }
.slot.selected { background: var(--cyan-700); color: #fff; border-color: var(--cyan-700); }
.slot:focus-visible { outline: 3px solid var(--cyan-700); outline-offset: 1px; }
.slots-empty { color: var(--muted); font-size: 0.92rem; padding: 14px; text-align: center; background: var(--bg); border-radius: var(--radius-xs); }

/* --- Banners ------------------------------------------------------------- */

.banner { display: flex; align-items: flex-start; gap: 11px; border-radius: var(--radius-sm); padding: 15px 17px; margin-bottom: 22px; font-size: 0.96rem; }
.banner .ic { flex: none; margin-top: 1px; }
.banner.success { background: var(--green-100); color: var(--green-700); border: 1px solid #a7e8cf; }
.banner.error { background: var(--danger-50); color: var(--danger); border: 1px solid #fbcbc5; }
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* --- Footer -------------------------------------------------------------- */

.site-footer { background: var(--ink); color: #b9d4dd; padding: 56px 0 30px; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.site-footer .brand { color: #fff; margin-bottom: 14px; }
.site-footer h4 { color: #fff; margin: 0 0 14px; font-size: 1.02rem; }
.site-footer p { margin: 0; color: #9fc2cd; }
.site-footer a { color: #b9d4dd; text-decoration: none; transition: color 0.16s var(--ease); }
.site-footer a:hover { color: #fff; }
.footer-links { display: flex; flex-direction: column; gap: 9px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.13); margin-top: 40px; padding-top: 22px; font-size: 0.86rem; color: #7fa3af; }


/* --- Page header (sub-pages) -------------------------------------------- */

.page-head { position: relative; overflow: hidden; background: linear-gradient(180deg, var(--cyan-50), var(--surface)); text-align: center; padding: 64px 24px 56px; border-bottom: 1px solid var(--line); }
.page-head h1 { margin: 0 0 10px; color: var(--ink); font-size: clamp(1.9rem, 4vw, 2.5rem); }
.page-head p { margin: 0 auto; color: var(--muted); max-width: 520px; font-size: 1.08rem; }

/* --- Contact layout ------------------------------------------------------ */

.contact-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: 40px; align-items: start; }
.contact-card p { display: flex; flex-direction: column; gap: 2px; margin: 0 0 18px; }
.contact-card .label-inline { display: flex; align-items: center; gap: 8px; color: var(--cyan-700); font-weight: 600; font-size: 0.9rem; }
.contact-card .label-inline .ic { width: 17px; height: 17px; }
.map-placeholder { background: var(--cyan-50); border: 1px dashed var(--cyan-400); border-radius: var(--radius-sm); height: 180px; display: grid; place-items: center; color: var(--cyan-700); font-size: 0.9rem; gap: 8px; }

/* --- Admin --------------------------------------------------------------- */

.table-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
table.data { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
table.data th, table.data td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--line); white-space: nowrap; vertical-align: top; }
table.data th { background: var(--cyan-50); color: var(--cyan-700); font-family: var(--font-head); font-weight: 600; position: sticky; top: 0; }
table.data tr:last-child td { border-bottom: none; }
.badge { display: inline-block; padding: 3px 11px; border-radius: 999px; font-size: 0.78rem; font-weight: 600; }
.badge.new { background: var(--cyan-50); color: var(--cyan-700); }
.badge.confirmed { background: var(--green-100); color: var(--green-700); }
.badge.cancelled { background: var(--danger-50); color: var(--danger); }
.badge.read { background: #eef2f4; color: var(--muted); }
/* Admin section switcher as a full-width nav bar under the sticky header */
#dash-view { padding-top: 0; }
.admin-nav { background: var(--surface); border-bottom: 1px solid var(--line); box-shadow: 0 1px 5px rgba(0,0,0,0.05); position: sticky; top: 72px; z-index: 40; margin-bottom: 28px; }
.admin-nav-inner { display: flex; gap: 2px; overflow-x: auto; }
.tab { display: inline-flex; align-items: center; gap: 8px; padding: 15px 18px; border: none; background: transparent; cursor: pointer; font-family: var(--font-head); font-weight: 600; font-size: 0.95rem; color: var(--muted); border-bottom: 3px solid transparent; white-space: nowrap; transition: color 0.15s var(--ease), border-color 0.15s var(--ease), background 0.15s var(--ease); }
.tab .ic { width: 18px; height: 18px; }
.tab:hover { color: var(--ink); background: var(--cyan-50); }
.tab.active { color: var(--cyan-700); border-bottom-color: var(--cyan-700); }
@media (max-width: 680px) { .admin-nav { top: 64px; } }

/* --- Availability editor (admin) ---------------------------------------- */

.avail-toolbar { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.avail-toolbar label { font-family: var(--font-head); font-weight: 600; color: var(--ink); }
.avail-toolbar select { width: auto; min-width: 240px; }
.avail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
.avail-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 22px; }
.avail-card h3 { margin: 0 0 6px; font-size: 1.05rem; }
.avail-hint { color: var(--muted); font-size: 0.88rem; margin: 0 0 16px; }

.hours-row { display: grid; grid-template-columns: 108px 96px 1fr; align-items: center; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.hours-row:first-child { padding-top: 0; }
.hours-day { font-family: var(--font-head); font-weight: 600; color: var(--ink); }
.hours-toggle-label { display: inline-flex; align-items: center; gap: 7px; cursor: pointer; font-size: 0.9rem; color: var(--muted); }
.hours-toggle-label input { width: 16px; height: 16px; accent-color: var(--cyan-700); cursor: pointer; }
.hours-times { display: inline-flex; align-items: center; gap: 8px; }
.hours-times input[type="time"] { width: auto; padding: 8px 10px; }
.hours-sep { color: var(--faint); font-size: 0.85rem; }
.hours-times input:disabled { opacity: 0.45; }
#hours-form > .btn { margin-top: 18px; }

.block-form { margin-bottom: 8px; }
.block-inputs { display: flex; gap: 8px; margin-bottom: 12px; }
.block-inputs input[type="date"] { width: auto; }
.block-inputs input[type="text"] { flex: 1; min-width: 0; }
.blocked-list { list-style: none; margin: 10px 0 0; padding: 0; }
.blocked-empty { color: var(--faint); font-size: 0.9rem; padding: 8px 0; }
.blocked-item { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); font-size: 0.9rem; }
.btn-remove { border: 1px solid var(--line-2); background: var(--surface); color: var(--danger); border-radius: var(--radius-xs); padding: 5px 12px; font-size: 0.82rem; font-weight: 600; cursor: pointer; transition: background 0.14s var(--ease), border-color 0.14s var(--ease); }
.btn-remove:hover { background: var(--danger-50); border-color: var(--danger); }

/* --- Admin: user bar, small buttons, badges ------------------------------ */

.admin-userbar { display: flex; align-items: center; gap: 14px; }
.admin-whoami { display: inline-flex; align-items: center; gap: 7px; font-family: var(--font-head); font-weight: 600; color: var(--ink); font-size: 0.92rem; }
.admin-whoami .ic { width: 18px; height: 18px; color: var(--cyan-600); }
.admin-role-badge { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.03em; background: var(--cyan-50); color: var(--cyan-700); }
.admin-role-badge.admin { background: #ede9fe; color: #6d28d9; }
.admin-role-badge.staff { background: var(--cyan-50); color: var(--cyan-700); }

.btn-sm { padding: 8px 14px; font-size: 0.85rem; }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: #b91c1c; }
.icon-btn { width: 36px; height: 36px; display: grid; place-items: center; border: 1px solid var(--line-2); background: var(--surface); border-radius: var(--radius-xs); cursor: pointer; color: var(--ink); }
.icon-btn:hover { background: var(--cyan-50); border-color: var(--cyan-400); }
.icon-btn .ic { width: 18px; height: 18px; }
.btn-linky { border: none; background: none; padding: 0; color: var(--cyan-700); font-weight: 600; font-size: 0.85rem; cursor: pointer; display: inline-flex; align-items: center; gap: 5px; font-family: var(--font-head); }
.btn-linky:hover { text-decoration: underline; }
.btn-linky.danger { color: var(--danger); }
.btn-linky .ic { width: 15px; height: 15px; }
.row-cancelled { opacity: 0.55; }
.row-cancelled td { text-decoration: line-through; }
.row-cancelled td:last-child, .row-cancelled td:nth-child(6) { text-decoration: none; }

/* --- Calendar toolbar & filters ------------------------------------------ */

.cal-toolbar { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 14px; }
.cal-views { display: inline-flex; border: 1px solid var(--line-2); border-radius: var(--radius-xs); overflow: hidden; }
.cal-viewbtn { padding: 8px 16px; border: none; background: var(--surface); cursor: pointer; font-family: var(--font-head); font-weight: 600; font-size: 0.85rem; color: var(--muted); border-right: 1px solid var(--line-2); }
.cal-viewbtn:last-child { border-right: none; }
.cal-viewbtn.active { background: var(--cyan-700); color: #fff; }
.cal-nav-group { display: inline-flex; align-items: center; gap: 8px; }
.cal-range { font-family: var(--font-head); font-weight: 700; font-size: 1.05rem; color: var(--ink); min-width: 190px; }
.cal-actions { display: inline-flex; gap: 8px; margin-left: auto; }
.cal-filters { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; padding: 12px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.cal-filter-label { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-head); font-weight: 600; font-size: 0.85rem; color: var(--muted); }
.cal-filter-label .ic { width: 16px; height: 16px; }
.cal-filters select { width: auto; min-width: 150px; padding: 9px 36px 9px 12px; }

/* --- Calendar: month view ------------------------------------------------ */

.cal-month { border: 1px solid var(--line-2); border-radius: var(--radius-sm); overflow: hidden; background: var(--surface); }
.cm-dow { display: grid; grid-template-columns: repeat(7, 1fr); background: var(--bg); border-bottom: 1px solid var(--line); }
.cm-dow span { padding: 8px 10px; font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--faint); text-align: left; }
.cm-grid { display: grid; grid-template-columns: repeat(7, 1fr); }
.cm-cell { min-height: 126px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 6px; display: flex; flex-direction: column; gap: 3px; cursor: pointer; }
.cm-cell:nth-child(7n) { border-right: none; }
.cm-cell.is-empty { background: var(--bg); cursor: default; }
.cm-cell.is-closed { background: repeating-linear-gradient(45deg, var(--bg), var(--bg) 6px, #eef2f4 6px, #eef2f4 12px); }
.cm-cell:hover:not(.is-empty) { background: var(--cyan-50); }
.cm-daynum { font-family: var(--font-head); font-weight: 600; font-size: 0.85rem; color: var(--ink); width: 26px; height: 24px; display: grid; place-items: center; border-radius: 6px; }
.cm-daynum.is-today { background: var(--cyan-700); color: #fff; }
.cm-closed { font-size: 0.72rem; color: var(--muted); font-weight: 600; }
.cm-ev { text-align: left; border: none; border-left: 3px solid; border-radius: 4px; padding: 3px 7px; cursor: pointer; overflow: hidden; font-family: var(--font-body); display: flex; flex-direction: column; line-height: 1.28; }
.cm-ev-l1 { font-size: 0.72rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cm-ev-l2 { font-size: 0.68rem; opacity: 0.82; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cm-ev-t { font-weight: 700; }
.cm-more { text-align: left; border: none; background: none; color: var(--muted); font-size: 0.72rem; font-weight: 600; cursor: pointer; padding: 1px 6px; }
.cm-more:hover { color: var(--cyan-700); }

/* --- Calendar: week & day time grid -------------------------------------- */

.cal-week, .cal-dayview { border: 1px solid var(--line-2); border-radius: var(--radius-sm); overflow: hidden; background: var(--surface); }
.cw-head { display: grid; grid-template-columns: 52px repeat(7, 1fr); border-bottom: 1px solid var(--line); }
.cal-dayview .cw-head { display: none; }
.cw-corner { border-right: 1px solid var(--line); }
.cw-dayhead { border: none; border-right: 1px solid var(--line); background: var(--bg); padding: 8px 6px; text-align: center; cursor: pointer; font-family: var(--font-head); }
.cw-dayhead:last-child { border-right: none; }
.cw-dayhead:hover { background: var(--cyan-50); }
.cw-dow { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; color: var(--faint); }
.cw-date { font-size: 1.05rem; font-weight: 700; color: var(--ink); }
.cw-dayhead.is-today .cw-date { color: var(--cyan-700); }
.cw-body { display: grid; grid-template-columns: 52px repeat(7, 1fr); position: relative; overflow: hidden; }
.cw-body.single { grid-template-columns: 52px 1fr; }
.cal-gutter { border-right: 1px solid var(--line); }
.cal-hour { position: relative; border-bottom: 1px solid var(--line); }
.cal-hour span { position: absolute; top: -8px; right: 6px; font-size: 0.68rem; color: var(--faint); background: var(--surface); padding: 0 2px; }
.cal-col { position: relative; border-right: 1px solid var(--line); background-image: linear-gradient(to bottom, var(--line) 1px, transparent 1px); background-size: 100% 48px; }
.cal-col:last-child { border-right: none; }
.col-closed { position: absolute; inset: 0; background: repeating-linear-gradient(45deg, rgba(148,163,184,0.09), rgba(148,163,184,0.09) 7px, rgba(148,163,184,0.16) 7px, rgba(148,163,184,0.16) 14px); display: flex; align-items: flex-start; justify-content: center; padding-top: 8px; font-size: 0.72rem; font-weight: 600; color: var(--muted); z-index: 1; }
.ev { position: absolute; overflow: hidden; border: 1px solid rgba(255,255,255,0.5); border-left: 3px solid rgba(0,0,0,0.22); border-radius: 5px; padding: 3px 6px; text-align: left; cursor: pointer; display: flex; flex-direction: column; gap: 1px; line-height: 1.15; z-index: 2; box-shadow: 0 1px 3px rgba(0,0,0,0.22); }
.ev-time { font-size: 0.68rem; font-weight: 700; opacity: 0.92; }
.ev-title { font-size: 0.76rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ev-sub { font-size: 0.7rem; opacity: 0.9; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ev-block { background: repeating-linear-gradient(45deg, #64748b, #64748b 6px, #5b6675 6px, #5b6675 12px); color: #fff; border-left-color: #475569; }
.ev:hover { filter: brightness(1.07); box-shadow: 0 2px 7px rgba(0,0,0,0.22); z-index: 3; }
.cal-dayhead { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; padding: 12px 16px; border-bottom: 1px solid var(--line); background: var(--bg); font-family: var(--font-head); }
.cal-dayhead strong { font-size: 1.05rem; color: var(--ink); }
.cal-dayhead-hint { font-size: 0.85rem; color: var(--muted); font-family: var(--font-body); }

/* Rich (day-view) events: everything on one line using the full column width */
.ev.ev-rich { flex-direction: row; align-items: center; gap: 10px; padding: 0 10px; }
.ev-rich .ev-time { flex: 0 0 auto; min-width: 92px; font-size: 0.74rem; font-weight: 700; opacity: 0.95; }
.ev-rich .ev-body { flex: 1 1 auto; min-width: 0; display: flex; align-items: baseline; gap: 6px; overflow: hidden; }
.ev-rich .ev-title { font-size: 0.82rem; font-weight: 700; white-space: nowrap; }
.ev-rich .ev-patient { font-size: 0.78rem; opacity: 0.92; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ev-assignee { flex: 0 0 auto; font-size: 0.72rem; font-weight: 600; background: rgba(255,255,255,0.24); padding: 2px 10px; border-radius: 999px; white-space: nowrap; }
.ev-assignee.is-unassigned { background: rgba(255,255,255,0.14); font-style: italic; font-weight: 500; }

/* Compare-calendars picker + side-by-side person columns */
.cal-people-picker { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.cal-people-picker select { width: auto; min-width: 200px; padding: 9px 36px 9px 12px; }
.people-chips { display: inline-flex; gap: 8px; flex-wrap: wrap; }
.person-chip { display: inline-flex; align-items: center; gap: 8px; background: var(--cyan-50); color: var(--cyan-700); border: 1px solid var(--cyan-400); border-radius: 999px; padding: 4px 6px 4px 13px; font-size: 0.85rem; font-weight: 600; font-family: var(--font-head); }
.person-chip button { border: none; background: rgba(14,116,144,0.14); color: inherit; width: 18px; height: 18px; border-radius: 50%; cursor: pointer; line-height: 1; font-size: 0.95rem; display: grid; place-items: center; padding: 0; }
.person-chip button:hover { background: rgba(14,116,144,0.28); }
.cal-people { border: 1px solid var(--line-2); border-radius: var(--radius-sm); overflow: hidden; background: var(--surface); }
.cal-people-bar { padding: 10px 14px; border-bottom: 1px solid var(--line); font-family: var(--font-head); font-size: 0.9rem; color: var(--ink); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; background: var(--bg); }
.cal-people-scroll { overflow-x: auto; }
.pcol-head { border-right: 1px solid var(--line); padding: 9px 10px; text-align: center; display: flex; flex-direction: column; gap: 2px; background: var(--bg); }
.pcol-head:last-child { border-right: none; }
.pcol-name { font-family: var(--font-head); font-weight: 700; font-size: 0.92rem; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pcol-meta { font-size: 0.72rem; color: var(--muted); }

/* Branch colours (month chips = tinted, week/day events = filled) */
.cm-ev.br-0 { background: #cffafe; border-left-color: #0891b2; color: #0e5c6b; }
.cm-ev.br-1 { background: #ede9fe; border-left-color: #7c3aed; color: #5b21b6; }
.cm-ev.br-2 { background: #ffedd5; border-left-color: #ea580c; color: #9a3412; }
.ev.br-0 { background: #0891b2; color: #fff; border-left-color: #0e7490; }
.ev.br-1 { background: #7c3aed; color: #fff; border-left-color: #6d28d9; }
.ev.br-2 { background: #ea580c; color: #fff; border-left-color: #c2410c; }

/* --- Modal ---------------------------------------------------------------- */

.modal-root { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; padding: 20px; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(19, 59, 74, 0.42); backdrop-filter: blur(2px); }
.modal { position: relative; background: var(--surface); border-radius: var(--radius-sm); box-shadow: 0 20px 50px rgba(0,0,0,0.28); width: 100%; max-width: 520px; max-height: 90vh; overflow-y: auto; }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 22px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--surface); }
.modal-title { margin: 0; font-size: 1.15rem; }
.modal-close { border: none; background: none; cursor: pointer; color: var(--muted); width: 34px; height: 34px; display: grid; place-items: center; border-radius: var(--radius-xs); }
.modal-close:hover { background: var(--bg); color: var(--ink); }
.modal-body { padding: 20px 22px; }
.modal-row { display: grid; grid-template-columns: 96px 1fr; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 0.92rem; align-items: start; }
.modal-row:last-of-type { border-bottom: none; }
.m-label { color: var(--muted); font-weight: 600; font-size: 0.82rem; }
.m-dim { color: var(--faint); }
.modal-row select { padding: 8px 36px 8px 12px; }
.modal-actions { display: flex; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
.modal-body .row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

/* --- Users list ----------------------------------------------------------- */

.users-list { list-style: none; margin: 0; padding: 0; }
.user-item { display: flex; flex-direction: column; gap: 8px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.user-item:last-child { border-bottom: none; }
.user-line { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.user-meta { display: inline-flex; align-items: center; gap: 8px; font-size: 0.94rem; }
.user-meta .ic { width: 17px; height: 17px; color: var(--muted); }
.user-actions { display: inline-flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.user-caps { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; padding-left: 25px; }
.cap-chip { background: var(--cyan-50); color: var(--cyan-700); border-radius: 999px; padding: 2px 10px; font-size: 0.76rem; font-weight: 600; }
.cap-none { color: var(--faint); font-size: 0.82rem; font-style: italic; }
.cap-where { color: var(--muted); font-size: 0.8rem; margin-left: 4px; }
.cap-where::before { content: "· "; color: var(--faint); }

/* Skill/branch checkbox grids (add-user form + edit-skills modal) */
.chk-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 6px 14px; margin-top: 4px; }
.chk { display: inline-flex; align-items: center; gap: 8px; font-size: 0.9rem; color: var(--ink); cursor: pointer; padding: 3px 0; }
.chk input { width: 16px; height: 16px; accent-color: var(--cyan-700); cursor: pointer; flex: none; }

/* Services catalogue admin */
.svc-admin-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.svc-desc { color: var(--muted); font-size: 0.84rem; margin-top: 3px; max-width: 420px; }
.svc-actions { white-space: nowrap; }
.svc-actions .btn-linky { margin-right: 14px; }
.row-archived { opacity: 0.6; }

/* Nomination page */
.nominate-intro { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; max-width: 980px; margin: 0 auto 32px; }
.ni-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 24px 22px; text-align: center; }
.ni-icon { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--cyan-50); color: var(--cyan-700); margin-bottom: 12px; }
.ni-icon .ic { width: 24px; height: 24px; }
.ni-card h3 { margin: 2px 0 8px; font-size: 1.06rem; }
.ni-card p { color: var(--muted); font-size: 0.92rem; margin: 0; }
.field-consent { background: var(--cyan-50); border: 1px solid var(--line-2); border-radius: var(--radius-sm); padding: 14px 16px; }
.field-consent.has-error { border-color: var(--danger); }
.consent-check { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; font-family: var(--font-body); font-weight: 400; font-size: 0.92rem; color: var(--ink); margin: 0; }
.consent-check input { width: 20px; height: 20px; flex: none; margin-top: 1px; accent-color: var(--cyan-700); cursor: pointer; }
.field-consent .error-text { margin-top: 10px; }

/* Homepage "nominate us" call-to-action band */
.nominate-band { background: linear-gradient(135deg, var(--cyan-700), var(--cyan-600)); }
.nb-inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; padding: 44px 0; flex-wrap: wrap; }
.nb-text { max-width: 620px; }
.nb-label { display: inline-block; font-family: var(--font-head); font-weight: 700; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; color: rgba(255, 255, 255, 0.82); margin-bottom: 8px; }
.nb-text h2 { color: #fff; margin: 0 0 10px; }
.nb-text p { color: rgba(255, 255, 255, 0.94); margin: 0; font-size: 1.05rem; }
.nb-btn { background: #fff; color: var(--cyan-700); flex: none; }
.nb-btn:hover { background: var(--cyan-50); color: var(--cyan-700); }
.nb-btn .ic { color: var(--cyan-700); }

/* --- Responsive ---------------------------------------------------------- */

@media (max-width: 860px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .avail-grid { grid-template-columns: 1fr; }
  .nominate-intro { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  .nav { height: 64px; }
  .nav-toggle { display: grid; place-items: center; }
  .nav-links {
    display: none; position: absolute; top: 64px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; background: var(--surface);
    border-bottom: 1px solid var(--line); padding: 10px 16px 18px; gap: 4px; box-shadow: var(--shadow);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 13px; }
  .nav-links .btn { margin: 6px 0 0; }
  .row-2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .form-wrap { padding: 16px; }
  .hero-inner { padding: 60px 20px 56px; }
  /* Reclaim horizontal room so the 7-column calendar isn't cramped on phones. */
  .calendar { padding: 10px; }
  .cal-grid { gap: 4px; }
  .cal-day { aspect-ratio: auto; min-height: 46px; font-size: 0.9rem; }
}

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


/* --- Legal / long-form pages -------------------------------------------- */

.legal { max-width: 760px; margin: 0 auto; }
.legal .updated { color: var(--muted); font-size: 0.9rem; margin: 0 0 24px; }
.legal h2 { font-size: 1.3rem; margin: 34px 0 10px; }
.legal h3 { font-size: 1.06rem; margin: 22px 0 6px; }
.legal p { color: var(--ink); line-height: 1.75; margin: 0 0 12px; }
.legal ul { padding-left: 20px; margin: 0 0 14px; }
.legal li { color: var(--ink); line-height: 1.7; margin-bottom: 7px; }
.legal .note { background: var(--cyan-50); border: 1px solid var(--cyan-100); border-radius: var(--radius-sm); padding: 14px 16px; font-size: 0.92rem; color: var(--ink); margin: 0 0 20px; }

/* --- Footer legal block -------------------------------------------------- */

.footer-legal { border-top: 1px solid rgba(255, 255, 255, 0.13); margin-top: 40px; padding-top: 22px; }
.footer-legal-links { display: flex; flex-wrap: wrap; gap: 18px; margin-bottom: 14px; }
.footer-legal-links a { color: #cfeee2; font-size: 0.88rem; text-decoration: none; }
.footer-legal-links a:hover { color: #fff; text-decoration: underline; }
.footer-reg { color: #9fcdbd; font-size: 0.8rem; line-height: 1.6; margin: 0 0 12px; max-width: 940px; }
.footer-bottom-note { color: #7fa3af; font-size: 0.85rem; margin: 0; }

/* --- Cookie notice ------------------------------------------------------- */

.cookie-bar { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 100; max-width: 720px; margin: 0 auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 16px 20px; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; justify-content: space-between; }
.cookie-bar p { margin: 0; font-size: 0.92rem; color: var(--ink); flex: 1; min-width: 240px; line-height: 1.55; }
.cookie-bar a { color: var(--cyan-700); }
.cookie-actions { flex: none; }
@media (max-width: 480px) { .cookie-actions, .cookie-actions .btn { width: 100%; } }

/* --- About section (homepage) ------------------------------------------- */

.about-highlights { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin: 0 0 44px; }
.about-highlight { text-align: center; }
.ah-icon { width: 52px; height: 52px; border-radius: 14px; background: var(--cyan-50); color: var(--cyan-600); display: grid; place-items: center; margin: 0 auto 12px; }
.ah-icon .ic { width: 26px; height: 26px; }
.about-highlight strong { display: block; font-family: var(--font-head); font-weight: 600; color: var(--ink); font-size: 1rem; margin-bottom: 3px; }
.about-highlight p { margin: 0; color: var(--muted); font-size: 0.88rem; line-height: 1.45; }
.about-text { max-width: 780px; margin: 0 auto; }
.about-text p { color: var(--ink); line-height: 1.8; margin: 0 0 16px; font-size: 1.02rem; }
.about-text .btn { margin-top: 8px; }
@media (max-width: 800px) { .about-highlights { grid-template-columns: repeat(2, 1fr); gap: 26px; } }
@media (max-width: 460px) { .about-highlights { grid-template-columns: 1fr; } }

/* --- Branch tabs & maps (contact) --------------------------------------- */

.branch-tabs { display: flex; gap: 6px; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 5px; margin: 0 0 20px; }
.branch-tab { flex: 1; padding: 10px 12px; border: none; background: transparent; border-radius: var(--radius-xs); font-family: var(--font-head); font-weight: 600; font-size: 0.92rem; color: var(--muted); cursor: pointer; transition: background 0.16s var(--ease), color 0.16s var(--ease); }
.branch-tab:hover { color: var(--cyan-700); }
.branch-tab.active { background: var(--cyan-700); color: #fff; }
.branch-tab:focus-visible { outline: 3px solid var(--cyan-700); outline-offset: 2px; }
.contact-card .branch-hours-head { display: flex; flex-direction: row; align-items: center; gap: 8px; color: var(--cyan-700); font-weight: 600; font-size: 0.9rem; margin: 18px 0 8px; }
.branch-hours-head .ic { width: 17px; height: 17px; }
.contact-card .branch-shared { margin-top: 20px; }
.branch-map { margin-top: 16px; }
.branch-map iframe { width: 100%; height: 230px; border: 0; border-radius: var(--radius-sm); display: block; }

/* --- Find us / branch cards (homepage) ---------------------------------- */

.branches-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.branch-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow-sm); }
.branch-card .branch-map { margin: 0 0 18px; }
.branch-card .branch-map iframe { height: 220px; }
.branch-card h3 { margin: 0 0 8px; font-size: 1.15rem; }
.branch-card .b-addr { color: var(--muted); margin: 0 0 6px; font-size: 0.95rem; line-height: 1.5; }
.branch-card .b-phone { margin: 0 0 12px; }
.branch-hours-mini { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 0.88rem; margin: 0 0 16px; }
.branch-hours-mini .ic { width: 16px; height: 16px; color: var(--cyan-600); flex: none; }
.branch-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.branch-actions .btn { padding: 10px 16px; font-size: 0.92rem; }
@media (max-width: 760px) { .branches-grid { grid-template-columns: 1fr; } }

/* --- Health information page --------------------------------------------- */

.health-search { max-width: 580px; margin: 0 auto 44px; }
.health-search form { display: flex; gap: 10px; }
.health-search input { flex: 1; height: 46px; }
.health-search .btn { flex: none; }
.health-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; }
.health-tile { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-sm); text-decoration: none; transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease), border-color 0.18s var(--ease); }
.health-tile:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--cyan-100); }
.ht-icon { width: 48px; height: 48px; border-radius: 12px; background: var(--cyan-50); color: var(--cyan-600); display: grid; place-items: center; margin-bottom: 14px; }
.ht-icon .ic { width: 24px; height: 24px; }
.health-tile h3 { margin: 0 0 5px; font-size: 1.08rem; }
.health-tile p { margin: 0; color: var(--muted); font-size: 0.92rem; line-height: 1.5; }
.health-topics { display: flex; flex-wrap: wrap; gap: 10px; }
.health-topic { display: inline-flex; align-items: center; padding: 8px 15px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface); color: var(--cyan-700); font-family: var(--font-head); font-weight: 500; font-size: 0.9rem; text-decoration: none; transition: background 0.16s var(--ease), border-color 0.16s var(--ease); }
.health-topic:hover { background: var(--cyan-50); border-color: var(--cyan-400); }
.health-note { background: var(--cyan-50); border: 1px solid var(--cyan-100); border-radius: var(--radius-sm); padding: 16px 18px; color: var(--ink); font-size: 0.95rem; line-height: 1.6; }
