﻿/* BookedSafely - Tecal Systems Limited
   Blues only. No gradients, no shadows. Depth = spacing, borders, colour blocks. */

:root {
  --navy: #022989;
  --blue: #0157BB;
  --action: #026DD1;
  --sky: #41A4F3;
  --ice: #E7F2FB;
  --ice-2: #D8EAF9;
  --line: #C0D8EE;
  --ink: #0E1B38;
  --muted: #44516E;
  --white: #fff;
  --foot: #011B63;
  --error: #B3261E;
  --r-card: 8px;   /* cards, panels, boxes */
  --r-btn: 6px;    /* buttons, inputs, nav items */
  --r-chip: 3px;   /* small badges, chips, pills */
  --mark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 28'%3E%3Cpath d='M12 1 22 4.8V13c0 7.5-4.2 11.8-10 14C6.2 24.8 2 20.5 2 13V4.8Z' fill='none' stroke='%2341A4F3' stroke-width='1.1'/%3E%3Cpath d='m7.6 13.8 3 3 5.8-6.6' fill='none' stroke='%2341A4F3' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  overflow-x: hidden;
}

img, svg { display: block; }
svg { width: 1.25em; height: 1.25em; }
a { color: var(--action); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { color: var(--navy); line-height: 1.2; margin: 0 0 .5em; text-wrap: balance; }
a, button, summary, label { -webkit-tap-highlight-color: rgba(2,109,209,.12); }
h1 { font-size: clamp(1.65rem, 4.5vw, 2.5rem); font-weight: 800; letter-spacing: -.01em; }
h2 { font-size: clamp(1.25rem, 3vw, 1.65rem); font-weight: 700; }
h3 { font-size: 1.05rem; font-weight: 600; }
p { margin: 0 0 1em; max-width: 68ch; }
ul, ol { margin: 0 0 1em; padding-left: 1.2em; }
li { margin-bottom: .35em; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.lede { font-size: 1.1rem; color: var(--muted); max-width: 56ch; }
.lede-sm { color: var(--muted); }
.h-sm { font-size: 1.15rem; }
.side-fine { font-size: .85rem; color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.skip {
  position: absolute; left: 8px; top: -60px; z-index: 300;
  background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 0 0 8px 8px;
  transition: top .15s;
}
.skip:focus { top: 0; color: #fff; text-decoration: none; }

:focus-visible { outline: 3px solid var(--sky); outline-offset: 2px; border-radius: 3px; }

/* ------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 22px;
  background: var(--action); color: #fff; border: 1.5px solid var(--action);
  border-radius: var(--r-btn); font-weight: 600; font-size: .98rem;
  cursor: pointer; text-align: center; line-height: 1.3;
}
.btn:hover { background: var(--blue); border-color: var(--blue); color: #fff; text-decoration: none; }
.btn-outline { background: transparent; color: var(--action); }
.btn-outline:hover { background: var(--ice); color: var(--action); border-color: var(--action); }
.btn-quiet { background: transparent; color: var(--action); border-color: var(--line); }
.btn-quiet:hover { background: var(--ice); color: var(--action); border-color: var(--sky); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.btn-ghost:hover { background: rgba(255,255,255,.12); color: #fff; }
.btn-lg { min-height: 50px; padding: 12px 28px; font-size: 1.05rem; }
.btn-block { width: 100%; }
.btn-danger { color: var(--error); border-color: var(--line); background: transparent; }
.btn-danger:hover { background: #FBEBEA; color: var(--error); border-color: var(--error); }
.btn[disabled] { opacity: .6; cursor: wait; }

/* On small screens, paired CTAs sit on one line: equal columns, 44px tall,
   one line of text scaled to fit - no stacking, no overflow. */
@media (max-width: 640px) {
  .hero-cta, .prod-actions, .band-cta, .confirm-actions,
  .svc-detail-cta, .review-actions, .err-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .hero-cta .btn, .prod-actions .btn, .band-cta .btn,
  .confirm-actions .btn, .svc-detail-cta .btn,
  .review-actions .btn, .err-links .btn {
    width: 100%;
    min-height: 44px;
    padding: 9px 8px;
    font-size: clamp(.74rem, 3.4vw, .95rem);
    font-weight: 600;
    letter-spacing: -.015em;
    white-space: nowrap;
    gap: 6px;
  }
}

/* ------------------------------------------------------------- header */
.site-head { background: var(--white); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 60; }
.head-row { display: flex; align-items: center; gap: 16px; padding-top: 10px; padding-bottom: 10px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--navy); flex-shrink: 0; }
.brand:hover { text-decoration: none; }
.brand-logo { height: 44px; width: auto; display: block; }
.brand-tag {
  font-size: .7rem; font-weight: 600; color: var(--muted);
  text-transform: uppercase; letter-spacing: .06em;
}
.brand-sm .brand-logo { height: 30px; }

.nav { display: none; margin-left: auto; gap: 4px; }
.nav a {
  color: var(--ink); font-weight: 500; padding: 10px 14px; border-radius: var(--r-btn);
  min-height: 44px; display: inline-flex; align-items: center;
}
.nav a:hover { background: var(--ice); text-decoration: none; }
.nav a[aria-current="page"] { color: var(--action); font-weight: 700; }
.nav-toggle {
  display: flex; align-items: center; gap: 6px; margin-left: auto;
  background: var(--ice); color: var(--navy); border: 1px solid var(--line);
  border-radius: var(--r-btn); padding: 10px 14px; font: inherit; font-weight: 600;
  min-height: 44px; cursor: pointer;
}
.nav-toggle .i-close { display: none; }
.nav-toggle[aria-expanded="true"] .i-open { display: none; }
.nav-toggle[aria-expanded="true"] .i-close { display: block; }
.head-cta { display: flex; align-items: center; gap: 10px; }
.head-call {
  display: none; align-items: center; gap: 8px; color: var(--navy); font-weight: 600;
  min-height: 44px; padding: 0 8px;
}
.head-call:hover { text-decoration: none; color: var(--action); }
.head-call svg { color: var(--action); }

@media (max-width: 859px) {
  .nav.open {
    display: flex; flex-direction: column; gap: 2px;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--white); border-bottom: 1px solid var(--line);
    padding: 8px 20px 16px; z-index: 60;
  }
  .nav.open a { border-bottom: 1px solid var(--ice); border-radius: 0; padding: 13px 4px; min-height: 48px; }
}
@media (max-width: 519px) {
  .head-row { gap: 8px; }
  .brand-logo { height: 32px; }
  .nav-toggle { padding: 8px 10px; }
  .head-cta .btn { display: none; } /* covered by the sticky action bar */
}
@media (min-width: 520px) and (max-width: 859px) {
  .brand-logo { height: 38px; }
}
@media (min-width: 860px) {
  .nav { display: flex; }
  .nav-toggle { display: none; }
  .head-call { display: flex; }
  .head-call-num { display: none; }
  .brand-logo { height: 54px; }
}
@media (min-width: 1100px) {
  .head-call-num { display: inline; }
}

/* ------------------------------------------------------------- hero */
.hero {
  background-color: var(--navy);
  /* darker under the copy (left), photo breathes on the card side (right) */
  background-image: linear-gradient(105deg, rgba(2,41,137,.64) 0%, rgba(2,41,137,.40) 55%, rgba(2,41,137,.22) 100%),
    var(--hero, none);
  background-size: cover; background-position: center;
  border-bottom: 1px solid var(--line); padding: 32px 0;
}
/* stacked layout: keep contrast under the headline, let the photo show
   toward the bottom where the white booking card sits */
@media (max-width: 899px) {
  .hero { background-image: linear-gradient(170deg, rgba(2,41,137,.60) 30%, rgba(2,41,137,.40) 100%), var(--hero, none); }
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--sky); font-weight: 600; font-size: .85rem;
  text-transform: uppercase; letter-spacing: .05em; margin-bottom: 14px;
}
.hero-copy h1 { margin-bottom: .4em; color: #fff; text-shadow: 0 1px 14px rgba(2,41,137,.45); }
.hero-copy .lede { color: #EAF2FD; text-shadow: 0 1px 10px rgba(2,41,137,.4); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 22px 0 18px; }
.hero-points { list-style: none; padding: 0; margin: 0; }
.hero-points li { display: flex; align-items: center; gap: 10px; font-weight: 500; color: #E4EEFA; }
.hero-points svg { color: var(--sky); flex: none; }
.hero .btn-outline {
  background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.55);
}
.hero .btn-outline:hover { background: rgba(255,255,255,.22); color: #fff; border-color: #fff; }

.book-panel {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--r-card); padding: 22px; margin-top: 28px;
  box-shadow: 0 1px 2px rgba(2,41,137,.05), 0 10px 30px rgba(2,41,137,.07);
}
.book-panel-head h2 { margin-bottom: 2px; }
.book-panel-head p { font-size: .9rem; color: var(--muted); margin-bottom: 16px; }

@media (min-width: 900px) {
  .hero { padding: 56px 0; }
  .hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: start; }
  .book-panel { margin-top: 0; padding: 26px; }
}

/* ------------------------------------------------------------ sections */
.section { padding: 48px 0; }
@media (min-width: 860px) { .section { padding: 72px 0; } }
.section-ice { background: var(--ice); }
.band-navy { background: var(--navy); color: #E4EEFA; padding: 48px 0; }
@media (min-width: 860px) { .band-navy { padding: 64px 0; } }
.band-navy h2, .band-navy h3 { color: #fff; }
.band-navy a { color: var(--sky); }

.sec-head { margin-bottom: 28px; }
.sec-head p { color: var(--muted); margin-bottom: 0; }
.sec-head-light p { color: var(--ice-2); }
.sec-head-split { display: flex; flex-wrap: wrap; align-items: end; gap: 16px; justify-content: space-between; }

/* --------------------------------------------------------- service rows */
.svc-rows { border-top: 1px solid var(--line); }
.svc-row {
  display: grid; grid-template-columns: 52px 1fr; gap: 14px;
  padding: 20px 0; border-bottom: 1px solid var(--line); align-items: start;
}
.svc-icon {
  width: 52px; height: 52px; border-radius: var(--r-card);
  background: var(--ice); color: var(--blue);
  display: flex; align-items: center; justify-content: center; flex: none;
}
.svc-icon svg { width: 26px; height: 26px; }
.svc-icon-lg { width: 72px; height: 72px; }
.svc-icon-lg svg { width: 36px; height: 36px; }
.svc-name { font-weight: 700; font-size: 1.1rem; color: var(--navy); }
.svc-body p { margin-bottom: .35em; }
.svc-price { font-weight: 600; color: var(--blue); font-size: .92rem; }
.svc-price-lg { font-size: 1rem; }
.svc-more { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: .9rem; }
.svc-book { grid-column: 2; justify-self: start; }
@media (min-width: 700px) {
  .svc-row { grid-template-columns: 60px 1fr auto; gap: 20px; align-items: center; }
  .svc-book { grid-column: auto; justify-self: end; white-space: nowrap; }
}

/* ---------------------------------------------------------------- steps */
.steps { display: grid; gap: 28px; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 36px; } }
.step-icon {
  width: 56px; height: 56px; border-radius: 50%;
  background: rgba(255,255,255,.1); color: var(--sky);
  display: flex; align-items: center; justify-content: center; margin-bottom: 14px;
}
.step-icon svg { width: 30px; height: 30px; }
.step p { color: var(--ice-2); margin-bottom: 0; }

/* ----------------------------------------------------------- products */
.prod-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
@media (min-width: 700px) { .prod-grid { grid-template-columns: repeat(3, 1fr); gap: 18px; } }
@media (min-width: 1020px) { .prod-grid { grid-template-columns: repeat(4, 1fr); } }
.prod-card {
  border: 1px solid var(--line); border-radius: var(--r-card);
  background: var(--white); overflow: hidden; display: flex; flex-direction: column;
}
.prod-card .prod-img { border: 0; border-radius: 0; border-bottom: 1px solid var(--line); }
.prod-body { padding: 12px 14px; flex: 1; }
.prod-cat { font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin-bottom: 2px; }
.prod-body h3 { font-size: .98rem; margin-bottom: 4px; }
.prod-body h3 a { color: var(--navy); }
.prod-price { font-weight: 700; color: var(--blue); margin-bottom: 0; }
.prod-price-lg { font-size: 1.3rem; }
.stock { font-weight: 500; font-size: .78rem; color: var(--muted); margin-left: 6px; }
.prod-card .btn-quiet { border: 0; border-top: 1px solid var(--line); border-radius: 0; }
.prod-note { font-size: .82rem; color: var(--muted); margin-top: 16px; }
.prod-grid-sm { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 700px) { .prod-grid-sm { grid-template-columns: repeat(4, 1fr); } }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.chip {
  border: 1px solid var(--line); border-radius: var(--r-chip); padding: 8px 16px;
  color: var(--ink); font-weight: 500; font-size: .9rem; min-height: 44px;
  display: inline-flex; align-items: center;
}
.chip:hover { border-color: var(--sky); text-decoration: none; background: var(--ice); }
.chip-on { background: var(--navy); border-color: var(--navy); color: #fff; font-weight: 600; }
.chip-on:hover { background: var(--navy); color: #fff; }

/* ------------------------------------------ home: category side menu */
#products { scroll-margin-top: 84px; }
.shop-layout { display: grid; gap: 18px; }

/* mobile: sticky horizontal pill bar under the site header */
.cat-menu {
  display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none;
  position: sticky; top: 54px; z-index: 40;
  margin: 0 -8px; padding: 6px 8px 10px;
  background: var(--white); scroll-margin-top: 64px;
}
.cat-menu::-webkit-scrollbar { display: none; }
.cat-menu-title { display: none; }
.cat-item {
  flex: none; display: inline-flex; align-items: center; gap: 7px;
  border: 1px solid var(--line); border-radius: var(--r-chip);
  padding: 8px 14px; color: var(--ink); font-weight: 500; font-size: .88rem;
  min-height: 40px; white-space: nowrap; background: var(--white);
}
.cat-item:hover { border-color: var(--sky); background: var(--ice); text-decoration: none; }
.cat-item.cat-on { background: var(--navy); border-color: var(--navy); color: #fff; font-weight: 600; }
.cat-item.cat-on:hover { background: var(--navy); color: #fff; }
.cat-n {
  font-size: .72rem; font-weight: 700; color: var(--muted);
  background: var(--ice); border-radius: 99px; padding: 1px 8px;
}
.cat-on .cat-n { background: rgba(255,255,255,.18); color: #fff; }
.cat-menu-foot {
  flex: none; display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 10px; color: var(--action); font-weight: 600; font-size: .85rem;
  white-space: nowrap; min-height: 40px;
}
.cat-menu-foot:hover { text-decoration: underline; }
.cat-menu-foot svg { width: 15px; height: 15px; }

/* [hidden] must beat .prod-card's display:flex, or filtered cards stay put */
.prod-card[hidden] { display: none; }
/* defer off-screen card paint/fetch on the long home grid */
.prod-grid-home .prod-card { content-visibility: auto; contain-intrinsic-size: auto 300px; }

@media (min-width: 520px) and (max-width: 859px) {
  .cat-menu { top: 60px; }
}

/* desktop: vertical sticky sidebar beside the grid */
@media (min-width: 860px) {
  .shop-layout { grid-template-columns: 236px 1fr; gap: 30px; align-items: start; }
  .cat-menu {
    flex-direction: column; gap: 2px; overflow: visible;
    top: 92px; margin: 0; padding: 10px;
    border: 1px solid var(--line); border-radius: var(--r-card);
    scroll-margin-top: 92px;
  }
  .cat-menu-title {
    display: block; margin: 2px 8px 8px;
    font-size: .72rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: .07em; color: var(--muted);
  }
  .cat-item { width: 100%; justify-content: space-between; border: 0; border-radius: 8px; min-height: 42px; }
  .cat-item.cat-on { background: var(--ice); color: var(--navy); box-shadow: inset 3px 0 0 var(--action); }
  .cat-item.cat-on:hover { background: var(--ice); color: var(--navy); }
  .cat-on .cat-n { background: var(--white); color: var(--action); }
  .cat-menu-foot { width: 100%; border-top: 1px solid var(--ice); border-radius: 0; margin-top: 6px; padding: 12px 14px 4px; }
  /* keep cards roomy in the narrower grid area */
  .prod-grid-home { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
}

.prod-detail { display: grid; gap: 28px; }
@media (min-width: 860px) { .prod-detail { grid-template-columns: 1fr 1fr; gap: 48px; } }
.prod-meta { list-style: none; padding: 0; margin: 18px 0; }
.prod-meta li { display: flex; align-items: center; gap: 10px; color: var(--navy); font-weight: 500; }
.prod-meta svg { color: var(--action); flex: none; }
.prod-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }

.prod-facts { display: grid; gap: 20px; }
@media (min-width: 860px) { .prod-facts { grid-template-columns: repeat(3, 1fr); } }
.fact-box { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-card); padding: 20px; }
.spec-list div, .fact-list div { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--ice); }
.spec-list dt, .fact-list dt { font-weight: 600; color: var(--navy); font-size: .9rem; }
.spec-list dd, .fact-list dd { margin: 0; text-align: right; color: var(--muted); font-size: .9rem; }
.spec-list div:last-child, .fact-list div:last-child { border-bottom: 0; }

.enquire-wrap { max-width: 640px; }

/* ------------------------------------------------------------ why us */
.why-grid { display: grid; gap: 32px; }
@media (min-width: 860px) { .why-grid { grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; } }
.why-list { list-style: none; padding: 0; margin: 0; }
.why-list li {
  display: flex; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line);
}
.why-list li:first-child { padding-top: 0; }
.why-list svg { color: var(--action); flex: none; width: 28px; height: 28px; }
.why-list strong { display: block; color: var(--navy); }
.why-list span { color: var(--muted); font-size: .92rem; }

/* ----------------------------------------------------------- courses */
.course-rows { border-top: 1px solid var(--line); }
.course-row {
  display: grid; gap: 12px; padding: 20px 0;
  border-bottom: 1px solid var(--line); align-items: center;
}
.date-chip {
  width: 74px; border: 1.5px solid var(--action); border-radius: var(--r-chip);
  text-align: center; padding: 8px 0; color: var(--navy);
}
.date-chip strong { display: block; font-size: 1.3rem; line-height: 1; }
.date-chip span { font-size: .75rem; color: var(--muted); }
.course-name { font-weight: 700; font-size: 1.05rem; color: var(--navy); }
.course-body p { margin-bottom: .2em; }
.course-meta { font-size: .88rem; color: var(--muted); }
.course-price { font-weight: 700; color: var(--blue); }
.course-side { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.course-img { width: 100%; max-width: 120px; }
@media (min-width: 700px) {
  .course-row { grid-template-columns: auto 1fr auto; gap: 20px; }
  .course-row-lg { grid-template-columns: 120px 1fr auto; }
  .course-dates { flex-direction: column; align-items: end; }
}
.date-pill {
  display: inline-block; background: var(--ice); border: 1px solid var(--line);
  color: var(--navy); font-weight: 600; font-size: .82rem;
  padding: 4px 12px; border-radius: var(--r-chip); margin: 2px 4px 2px 0;
}
.date-list { margin-bottom: 8px; }

/* ---------------------------------------------------------- quotes/faq */
/* Reviews: one-line looping strip. Cards carry margin-right (not flex gap)
   so translateX(-50%) lands exactly for a seamless loop. */
.reviews-strip { overflow: hidden; }
.reviews-track {
  display: flex; width: max-content; padding: 4px 0;
  animation: reviews-loop 70s linear infinite;
}
.reviews-strip:hover .reviews-track,
.reviews-strip:focus-within .reviews-track { animation-play-state: paused; }
.review-card {
  width: min(300px, 78vw); flex: none; margin: 0 16px 0 0;
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--r-card); padding: 18px;
}
.review-card p { font-size: .92rem; margin-bottom: 14px; }
.review-card footer strong { display: block; color: var(--navy); font-size: .9rem; }
.review-card footer > span:not(.review-tag) { font-size: .82rem; color: var(--muted); }
.review-tag {
  display: inline-block; margin-top: 8px;
  font-size: .72rem; font-weight: 600; color: var(--action);
  background: var(--ice); border: 1px solid var(--line);
  border-radius: var(--r-chip); padding: 3px 10px;
}
@keyframes reviews-loop { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .reviews-track { animation: none; }
  .reviews-strip { overflow-x: auto; }
}

.faq-wrap { max-width: 760px; }
.faq-list { border-top: 1px solid var(--line); }
.faq { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 16px 40px 16px 0;
  font-weight: 600; color: var(--navy); position: relative; min-height: 44px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 4px; top: 14px;
  font-size: 1.4rem; font-weight: 400; color: var(--action); line-height: 1;
}
.faq[open] summary::after { content: "−"; }
.faq p { padding: 0 40px 16px 0; margin: 0; color: var(--muted); }
.faq-more, .faq-cta { margin-top: 24px; }
.faq-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }

/* ---------------------------------------------------------- contact */
.contact-band { display: grid; gap: 28px; }
@media (min-width: 860px) { .contact-band { grid-template-columns: 1fr 1.3fr; align-items: center; } }
.band-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.contact-cards { display: grid; grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 520px) { .contact-cards { grid-template-columns: repeat(2, 1fr); } }
.contact-card {
  display: flex; flex-direction: column; gap: 4px;
  background: var(--white); color: var(--ink);
  border-radius: var(--r-card); padding: 16px; min-height: 56px;
}
a.contact-card:hover { text-decoration: none; background: var(--ice); }
.contact-card svg { color: var(--action); width: 22px; height: 22px; margin-bottom: 4px; }
.contact-card strong { color: var(--navy); }
.contact-card span { font-size: .85rem; color: var(--muted); }
.contact-cards-light .contact-card { border: 1px solid var(--line); }

.contact-grid { display: grid; gap: 36px; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 1fr 1fr; } }
.contact-info { display: grid; gap: 16px; align-content: start; }
.map-card {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 6px; text-align: center; min-height: 220px; padding: 24px;
  background: var(--ice); border: 1px solid var(--line); border-radius: var(--r-card);
}
.map-card .map-pin {
  width: 56px; height: 56px; border-radius: 50%; background: var(--white);
  border: 1px solid var(--line); display: flex; align-items: center; justify-content: center;
  margin-bottom: 6px;
}
.map-card .map-pin svg { width: 30px; height: 30px; color: var(--action); }
.map-card strong { color: var(--navy); font-size: 1.05rem; }
.map-card > span { color: var(--muted); font-size: .9rem; }
.contact-form-box { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-card); padding: 24px; }
.contact-form-box h2 { margin-bottom: 14px; }
.sent-box { text-align: center; padding: 20px 0; }

/* ------------------------------------------------------------- forms */
.form .field { margin-bottom: 14px; }
.field label { display: block; font-weight: 600; font-size: .9rem; color: var(--navy); margin-bottom: 5px; }
.field .opt { font-weight: 400; color: var(--muted); font-size: .82rem; }
.field input, .field select, .field textarea,
.form-inline select {
  width: 100%; min-height: 46px; padding: 10px 12px;
  border: 1.5px solid var(--line); border-radius: var(--r-btn);
  font: inherit; font-size: 16px; color: var(--ink); background: var(--white);
}
.field select, .form-inline select {
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%230157BB' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; background-size: 16px;
  padding-right: 40px;
}
.field textarea { min-height: 0; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--action); outline: 3px solid var(--ice-2); outline-offset: 0;
}
.field-row { display: grid; gap: 0 14px; }
@media (min-width: 560px) { .field-row { grid-template-columns: 1fr 1fr; } }
.field-error { color: var(--error); font-size: .84rem; font-weight: 500; margin: 4px 0 0; }
.alert {
  background: #FBEBEA; border: 1px solid var(--error); color: var(--error);
  border-radius: var(--r-card); padding: 12px 16px; font-weight: 500; margin-bottom: 16px;
}
.alert a { color: var(--error); font-weight: 700; }
.notice {
  background: var(--ice); border: 1px solid var(--sky); color: var(--navy);
  border-radius: var(--r-card); padding: 12px 16px; font-weight: 600; margin-bottom: 16px;
}
.hp { position: absolute; left: -9999px; top: -9999px; visibility: hidden; }
.consent {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: .88rem; color: var(--ink); margin: 10px 0 16px; cursor: pointer;
  border: 1.5px solid var(--line); border-radius: var(--r-btn);
  padding: 12px 14px; background: var(--white);
}
.consent:has(input:checked) { border-color: var(--action); background: var(--ice); }
.consent input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--action); flex: none; }

.form-step { border: 0; padding: 0; margin: 0; }
.form-step legend, .form-legend {
  font-weight: 700; color: var(--navy); font-size: 1.05rem;
  padding: 18px 0 10px; border-top: 1px solid var(--line); width: 100%;
  margin-bottom: 0;
}
.form-step legend:first-child { border-top: 0; padding-top: 0; }

.book-grid { display: grid; gap: 32px; }
@media (min-width: 900px) { .book-grid { grid-template-columns: 1.5fr 1fr; gap: 48px; } }
.book-side { display: grid; gap: 16px; align-content: start; }
.book-form { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-card); padding: 22px; }
@media (min-width: 860px) { .book-form { padding: 28px; } }

.side-box { background: var(--ice); border: 1px solid var(--line); border-radius: var(--r-card); padding: 20px; }
.side-box h2 { font-size: 1rem; display: flex; align-items: center; gap: 8px; }
.side-box h2 svg { color: var(--action); }
.side-steps { padding-left: 1.3em; }
.side-steps li { margin-bottom: .5em; }
.side-cta { background: var(--white); border-color: var(--sky); }

.review-panel { background: var(--ice); border: 1px solid var(--line); border-radius: var(--r-card); padding: 20px; }
.review-list div { display: flex; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--ice-2); }
.review-list dt { font-weight: 600; color: var(--navy); width: 110px; flex: none; }
.review-list dd { margin: 0; }
.review-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }

/* -------------------------------------------------------- confirmation */
.confirm-sec { text-align: center; }
.confirm-wrap { max-width: 640px; margin: 0 auto; }
.confirm-mark svg { width: 88px; height: 102px; margin: 0 auto 18px; }
.confirm-mark-sm svg { width: 56px; height: 66px; }
.confirm-tick { stroke-dasharray: 24; stroke-dashoffset: 24; animation: drawtick .8s ease .35s forwards; }
@keyframes drawtick { to { stroke-dashoffset: 0; } }
.ref-chip {
  display: inline-block; background: var(--ice); border: 1.5px dashed var(--sky);
  border-radius: var(--r-chip); padding: 8px 20px; font-weight: 500; margin-bottom: 20px;
}
.ref-chip strong { color: var(--navy); }
.confirm-summary {
  text-align: left; border: 1px solid var(--line); border-radius: var(--r-card);
  padding: 8px 20px; margin-bottom: 24px;
}
.confirm-summary div { display: flex; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--ice); }
.confirm-summary div:last-child { border-bottom: 0; }
.confirm-summary dt { font-weight: 600; color: var(--navy); width: 100px; flex: none; }
.confirm-summary dd { margin: 0; }
.confirm-next { text-align: left; background: var(--ice); border-radius: var(--r-card); padding: 20px; }
.confirm-next h2 { font-size: 1.05rem; }
.confirm-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 14px; }

/* -------------------------------------------------------- M-Pesa pay */
.pay-wrap { display: grid; gap: 32px; }
@media (min-width: 860px) { .pay-wrap { grid-template-columns: 1.2fr .8fr; align-items: start; } }
.pay-form-box { border: 1px solid var(--line); border-radius: var(--r-card); padding: 24px; background: #fff; }
.pay-form-box h2 { margin-bottom: 14px; }
.pay-side { display: grid; gap: 18px; }
.pay-spin {
  width: 56px; height: 56px; margin: 0 auto 18px; border-radius: 50%;
  border: 4px solid rgba(2,41,137,.15); border-top-color: var(--navy);
  animation: payspin 1s linear infinite;
}
@keyframes payspin { to { transform: rotate(1turn); } }
.pay-side .fact-box { background: var(--ice); border-radius: var(--r-card); padding: 20px; }
.pay-side .fact-box h2 { font-size: 1.05rem; margin-bottom: 10px; }
.pay-side .fact-box p { margin: 0; font-size: .95rem; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .confirm-tick { animation: none; stroke-dashoffset: 0; }
  * { transition: none !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

/* --------------------------------------------------------- page heads */
.page-head { background: var(--ice); border-bottom: 1px solid var(--line); padding: 36px 0; }
.page-hero {
  background-color: var(--navy);
  background-image: linear-gradient(rgba(2,41,137,.55), rgba(2,41,137,.36)),
    var(--hero, none);
  background-size: cover; background-position: center;
  border-bottom: 1px solid var(--line);
  padding: 44px 0;
}
.page-hero h1 { color: #fff; text-shadow: 0 1px 14px rgba(2,41,137,.45); }
.page-hero p, .page-hero .lede { color: #EAF2FD; text-shadow: 0 1px 10px rgba(2,41,137,.4); }
.page-hero .svc-price { color: var(--sky); }
.page-hero .crumbs { color: #B9D2F5; }
.page-hero .crumbs a { color: #DCE9FB; }
.page-hero .crumbs a:hover { color: #fff; }
.page-hero .crumbs span:last-child { color: #B9D2F5; }
.page-hero .btn-outline {
  background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.55);
}
.page-hero .btn-outline:hover { background: rgba(255,255,255,.22); color: #fff; border-color: #fff; }
.page-hero .svc-icon {
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.28);
}
.page-hero .svc-icon svg { color: #fff; }
.page-head-flat { background: var(--white); padding: 16px 0 0; border-bottom: 0; }
.page-hero.page-head-flat { padding: 34px 0; border-bottom: 1px solid var(--line); }
.crumbs { font-size: .88rem; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.crumbs span:last-child { color: var(--muted); }
.svc-detail-head { display: grid; gap: 20px; }
.svc-detail-title { display: flex; gap: 18px; align-items: flex-start; }
.svc-detail-cta { display: flex; flex-wrap: wrap; gap: 12px; }
@media (min-width: 860px) {
  .svc-detail-head { grid-template-columns: 1fr auto; align-items: center; }
  .svc-detail-cta { flex-direction: column; align-items: stretch; }
}
.svc-detail-grid { display: grid; gap: 32px; }
@media (min-width: 900px) { .svc-detail-grid { grid-template-columns: 1.6fr 1fr; gap: 48px; } }
.svc-hero-img { margin-bottom: 20px; }
.svc-summary { font-size: 1.08rem; color: var(--ink); }
.tick-list { list-style: none; padding: 0; }
.tick-list li { display: flex; gap: 10px; align-items: flex-start; margin-bottom: .5em; }
.tick-list svg { color: var(--action); flex: none; margin-top: 3px; }
.honest-note {
  background: var(--ice-2); border: 1px solid var(--sky);
  border-radius: var(--r-card); padding: 16px 18px; margin-top: 24px;
}
.svc-detail-side { display: grid; gap: 16px; align-content: start; }
.svc-mini { display: grid; gap: 10px; }
@media (min-width: 700px) { .svc-mini { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .svc-mini { grid-template-columns: repeat(3, 1fr); } }
.svc-mini-item {
  display: flex; align-items: center; gap: 12px;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r-card);
  padding: 14px 16px; color: var(--navy); font-weight: 600;
}
.svc-mini-item:hover { border-color: var(--sky); text-decoration: none; background: var(--white); }
.svc-mini-item span { flex: 1; }
.svc-mini-item > svg:last-child { color: var(--action); }
.course-title { margin-top: 18px; }

/* ------------------------------------------------------------- about */
.about-grid { display: grid; gap: 32px; }
@media (min-width: 900px) { .about-grid { grid-template-columns: 1.6fr 1fr; gap: 48px; } }
.about-side { display: grid; gap: 16px; align-content: start; }

/* -------------------------------------------------------------- legal */
.legal-body { max-width: 760px; }
.legal-body h2 { margin-top: 1.6em; font-size: 1.15rem; }

/* -------------------------------------------------------------- misc */
.empty {
  text-align: center; border: 1px dashed var(--line); border-radius: var(--r-card);
  padding: 48px 20px; color: var(--muted);
}
.empty svg { width: 44px; height: 44px; color: var(--sky); margin: 0 auto 12px; }
.empty h2 { color: var(--navy); font-size: 1.2rem; }
.empty-sm { padding: 28px 16px; }
.err-sec { text-align: center; padding: 72px 0; }
.err-mark svg { width: 64px; height: 64px; color: var(--sky); margin: 0 auto 18px; }
.err-links { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin: 24px 0; }

/* image slot: the photo layer covers the shield watermark when the file exists */
.slot {
  aspect-ratio: var(--ar, 4/3);
  background-color: var(--ice);
  background-image: var(--photo, none), var(--mark);
  background-size: cover, 72px;
  background-position: center, center;
  background-repeat: no-repeat, no-repeat;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  display: block;
  overflow: hidden;
}

/* ----------------------------------------------------------- floaters */
.floaty { position: fixed; right: 14px; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); z-index: 80; display: grid; gap: 10px; }
@media (min-width: 861px) { .floaty { bottom: 24px; right: 24px; } }
.floaty-btn {
  width: 48px; height: 48px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
}
.floaty-btn svg { width: 26px; height: 26px; }
.floaty-wa { background: #25D366; }
.floaty-wa:hover { background: #1DA851; }
.floaty-call { background: var(--navy); }
.floaty-call:hover { background: var(--blue); }

/* ------------------------------------------------------------- footer */
.site-foot { background: var(--foot); color: #C9D9F5; }
.foot-grid {
  display: grid; gap: 32px; padding-top: 48px; padding-bottom: 32px;
}
@media (min-width: 700px) { .foot-grid { grid-template-columns: 2fr 1fr 1fr 1.2fr; gap: 40px; } }
.foot-brand p { font-size: .9rem; }
.foot-brand strong { color: #fff; }
.foot-logo {
  display: inline-block; background: var(--white); border-radius: var(--r-card);
  padding: 10px 16px; margin-bottom: 16px;
}
.foot-logo:hover { background: var(--ice); }
.foot-logo img { height: 48px; width: auto; display: block; }
.foot-col h2 { color: #fff; font-size: .8rem; text-transform: uppercase; letter-spacing: .07em; margin-bottom: 12px; }
.foot-col a, .foot-col span { display: block; color: #C9D9F5; font-size: .92rem; padding: 5px 0; }
.foot-col a:hover { color: #fff; }
.foot-base {
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between;
  border-top: 1px solid rgba(255,255,255,.15);
  padding-top: 16px; padding-bottom: 24px; font-size: .85rem;
}
.foot-legal a { color: #C9D9F5; margin-left: 18px; }
.foot-legal a:hover { color: #fff; }
.foot-credit a { color: #C9D9F5; }
.foot-credit a:hover { color: #fff; }

/* ================================================================== BLOG */
.blog-grid { margin-top: 20px; }
a.blog-card:hover { text-decoration: none; }
.blog-card .prod-body { display: flex; flex-direction: column; }
.blog-excerpt { font-size: .88rem; color: var(--muted); flex: 1; }
.blog-meta { font-size: .8rem; color: var(--muted); margin-top: 8px; }
.article-wrap { max-width: 720px; }
.article-title { font-size: clamp(1.7rem, 4vw, 2.3rem); line-height: 1.15; }
.article-hero { width: 100%; border-radius: var(--r-card); border: 1px solid var(--line); margin-bottom: 26px; }
.article-back { margin-top: 36px; }
.crumb { font-size: .85rem; color: var(--muted); margin-bottom: 10px; }

.prose { font-size: 1.02rem; line-height: 1.7; }
.prose h2 { font-size: 1.45rem; margin: 1.6em 0 .5em; }
.prose h3 { font-size: 1.2rem; margin: 1.5em 0 .4em; }
.prose h4 { font-size: 1.05rem; margin: 1.4em 0 .3em; }
.prose p { margin-bottom: 1em; }
.prose ul, .prose ol { margin: 0 0 1em 1.3em; }
.prose li { margin-bottom: .35em; }
.prose blockquote {
  border-left: 3px solid var(--sky); background: var(--ice);
  padding: 12px 18px; border-radius: 0 var(--r-card) var(--r-card) 0;
  margin: 1.2em 0; color: var(--navy);
}
.prose img { max-width: 100%; border-radius: var(--r-card); }
.prose pre {
  background: var(--navy); color: #DCE9FB; padding: 14px 18px;
  border-radius: var(--r-card); overflow-x: auto; font-size: .9rem;
}
.prose a { font-weight: 600; }

/* ==================================================================
   MOBILE CARD LAYOUT (single media block)
   2-per-line grids on a 6px rhythm: edge-to-card = gap = card padding.
   .wrap gives every screen an 8px edge; single-column cards keep that
   8px, while the 2-col grids bleed out 2px so their cards sit at 6px.
   Steps, forms and long-form blocks stay single-column.
   ================================================================== */
@media (max-width: 699px) {
  :root { --r-card: 6px; --r-btn: 5px; }
  .wrap { padding: 0 8px; }

  .prod-grid, .prod-grid-sm, .svc-mini, .contact-cards {
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
    margin-left: -2px;
    margin-right: -2px;
  }

  .prod-body { padding: 6px; }
  .prod-body h3 { font-size: .88rem; }
  .prod-cat { font-size: .66rem; }
  .prod-price { font-size: .9rem; }
  .prod-card .btn-quiet { font-size: .8rem; padding: 8px 6px; }

  .svc-mini-item { padding: 6px; gap: 8px; font-size: .82rem; }
  .svc-mini-item .svc-icon { width: 34px; height: 34px; }
  .svc-mini-item .svc-icon svg { width: 18px; height: 18px; }

  .contact-card { padding: 6px; }
  .contact-card span { font-size: .78rem; }

  /* breathing room on photo heroes */
  .hero { padding: 40px 0 44px; }
  .page-hero { padding: 36px 0; }
  .page-hero.page-head-flat { padding: 28px 0; }

  /* full-width tappable CTAs inside stacked rows */
  .svc-book { justify-self: stretch; }
  .course-side .btn { flex: 1 1 auto; }

  /* definition rows stack on narrow screens */
  .review-list div, .confirm-summary div { flex-direction: column; gap: 2px; }
  .review-list dt, .confirm-summary dt { width: auto; }

  /* larger section rhythm */
  .sec-head { margin-bottom: 20px; }

  /* service detail head: smaller icon tile */
  .svc-detail-title .svc-icon-lg { width: 56px; height: 56px; }
  .svc-detail-title .svc-icon-lg svg { width: 28px; height: 28px; }
}

@media (min-width: 1100px) {
  body { font-size: 17px; }
}

@media print {
  .site-head, .floaty, .foot-col, .foot-base .foot-legal { display: none !important; }
  .hero, .page-hero { background-image: none !important; background-color: var(--white) !important; }
  .hero-copy h1, .hero-copy .lede, .page-hero h1, .page-hero p, .page-hero .lede { color: var(--navy) !important; }
}
