/* Always Active — public enquiry site design tokens + components.
 * Customer-facing tenant brand (teal), distinct from the internal Candere "ink" app (tokens.css).
 * Source of truth: design/candere-childcare-website-mockup.html. Candere is a discreet footer credit.
 * Authored MOBILE-FIRST (single column base, min-width breakpoints add the desktop layout). */
:root {
  --brand: #12868A;
  --brand-1: #2AA7AA;
  --brand-2: #0E7377;
  --brand-soft: #E4F2F2;
  --grad: linear-gradient(135deg, #16A3A6, #0B6165);
  --ink: #16221F;
  --ink-2: #2C3E3A;
  --ink-soft: #16221F88;
  --paper: #F3FAFA;
  --paper-2: #FBFEFE;
  --white: #ffffff;
  --line: #DCEAEA;
  --line-2: #E9F3F3;
  --muted: #5C6B68;
  --ok: #1FAE64;
  --amber: #F5A623;
  --red: #E5484D;
  --shadow-sm: 0 2px 10px rgba(18,134,138,.08);
  --shadow-md: 0 12px 30px rgba(18,134,138,.14);
  --shadow-lg: 0 26px 60px rgba(11,71,74,.20);
  --r-sm: 12px;
  --r-md: 16px;
  --r-lg: 22px;
  --r-xl: 30px;
  --font-body: 'Nunito', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --font-script: 'Caveat', 'Segoe Script', cursive;
  --max: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

a { color: var(--brand-2); }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }
img { max-width: 100%; }
h1, h2, h3 { font-weight: 800; letter-spacing: -.015em; line-height: 1.12; margin: 0 0 .4em; }
h1 { font-size: 34px; }
h2 { font-size: 26px; }
h3 { font-size: 20px; }
p { margin: 0 0 1em; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: 12px; font-weight: 700;
  color: var(--brand-2); margin: 0 0 10px; }
.lede { color: var(--muted); font-size: 17px; }
.script { font-family: var(--font-script); font-weight: 700; }

/* ---- Header ---------------------------------------------------------------- */
header.nav { position: sticky; top: 0; z-index: 40; background: #f3fafabf;
  backdrop-filter: saturate(180%) blur(14px); border-bottom: 1px solid var(--line-2); }
header.nav .wrap { display: flex; align-items: center; gap: 14px; height: 62px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.mark { width: 38px; height: 38px; border-radius: 50%; background: var(--grad); flex: 0 0 auto;
  box-shadow: 0 6px 14px rgba(14,115,119,.35); display: grid; place-items: center; }
.mark svg { width: 20px; height: 20px; }
.brand .name { font-family: var(--font-script); font-size: 25px; line-height: 1; }
.brand .sub { display: block; font-size: 10px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--muted); font-weight: 700; }
header.nav .links { display: none; margin-left: auto; gap: 4px; }
header.nav .links a { text-decoration: none; color: var(--ink-2); font-weight: 700; font-size: 15px;
  padding: 8px 12px; border-radius: 999px; }
header.nav .links a:hover { background: var(--brand-soft); }
header.nav .spacer { margin-left: auto; }

/* ---- Buttons --------------------------------------------------------------- */
.cta { display: inline-block; border: 0; cursor: pointer; text-decoration: none; text-align: center;
  background: var(--grad); color: #fff; font-family: var(--font-body); font-weight: 800; font-size: 15px;
  padding: 12px 22px; border-radius: 999px; box-shadow: var(--shadow-sm); transition: transform .12s; }
.cta:hover { transform: translateY(-1px); }
.cta:focus-visible { outline: 3px solid var(--brand-2); outline-offset: 3px; }
.cta.ghost { background: transparent; color: var(--ink); border: 1.6px solid var(--ink); box-shadow: none; }
.cta.ghost:hover { background: var(--ink); color: #fff; }
.cta.sm { padding: 9px 16px; font-size: 14px; }
.cta.block { display: block; width: 100%; }
.linkbtn { background: none; border: 0; color: var(--brand-2); font: inherit; font-weight: 700;
  text-decoration: underline; cursor: pointer; padding: 0; }

/* ---- Sections + cards ------------------------------------------------------ */
section { padding: 48px 0; }
.hero { padding-top: 34px; }
.hero h1 em { color: var(--brand); font-style: normal; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; }
.chip { background: var(--white); border: 1px solid var(--line); border-radius: 999px;
  padding: 7px 13px; font-size: 13px; font-weight: 700; color: var(--ink-2); }
.grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 20px; box-shadow: var(--shadow-sm); }
.prog { position: relative; }
.prog.core { border-color: var(--brand-1); box-shadow: 0 0 0 3px var(--brand-soft), var(--shadow-sm); }
.prog .tag { position: absolute; top: 16px; right: 16px; background: var(--brand-soft); color: var(--brand-2);
  font-size: 11px; font-weight: 800; padding: 4px 9px; border-radius: 999px; text-transform: uppercase;
  letter-spacing: .05em; }
.prog h3 { margin-bottom: 6px; padding-right: 70px; }
.prog p { margin: 0; color: var(--muted); font-size: 15px; }
.loc h3 { margin-bottom: 4px; }
.loc .meta { color: var(--muted); font-size: 14px; margin: 2px 0; }
.camp { background: var(--grad); color: #fff; border-radius: var(--r-xl); padding: 30px 24px; }
.camp .eyebrow { color: #d8f3f2; }
.camp h2 { color: #fff; }
.camp .stats { display: flex; gap: 26px; flex-wrap: wrap; margin: 18px 0 22px; }
.camp .stats b { font-family: var(--font-script); font-size: 40px; display: block; line-height: 1; }
.camp .stats span { font-size: 13px; opacity: .9; }
.camp .cta { background: #fff; color: var(--brand-2); }

/* ---- FAQ ------------------------------------------------------------------- */
.faq details { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 4px 18px; margin-bottom: 10px; }
.faq summary { list-style: none; cursor: pointer; font-weight: 800; padding: 14px 0; display: flex;
  justify-content: space-between; align-items: center; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--brand); font-size: 22px; font-weight: 700; }
.faq details[open] summary::after { content: '\00d7'; }
.faq p { color: var(--muted); margin: 0 0 14px; }

/* ---- Enquiry wizard -------------------------------------------------------- */
.enq-grid { display: grid; grid-template-columns: 1fr; gap: 20px; }
.wizard { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--shadow-md); overflow: hidden; }
.wz-top { padding: 20px 20px 0; }
.trail { display: flex; gap: 6px; margin: 0 0 6px; }
.trail .seg { flex: 1; height: 5px; border-radius: 999px; background: var(--line); }
.trail .seg.done, .trail .seg.current { background: var(--brand); }
.trail-labels { display: flex; justify-content: space-between; font-size: 11px; color: var(--muted);
  font-weight: 700; margin-bottom: 6px; }
.wz-body { padding: 8px 20px 4px; }
.step { display: none; }
.step.active { display: block; }
.step h3 { margin-bottom: 4px; }
.step .hint { color: var(--muted); font-size: 14px; margin: 0 0 16px; }
.enc { background: var(--brand-soft); color: var(--brand-2); font-weight: 700; font-size: 13px;
  border-radius: var(--r-sm); padding: 9px 12px; margin: 0 0 16px; }
.wz-banner { background: var(--brand-soft); color: var(--ink-2); border-radius: var(--r-sm);
  padding: 10px 12px; font-size: 13.5px; margin: 0 0 16px; }
.field { margin-bottom: 14px; }
.field label { display: block; font-weight: 700; font-size: 14px; margin-bottom: 6px; }
.field input, .field select { width: 100%; border: 1.5px solid var(--line); border-radius: var(--r-sm);
  background: var(--paper-2); padding: 12px 13px; font: inherit; color: var(--ink); }
.field input:focus, .field select:focus { outline: none; border-color: var(--brand);
  box-shadow: 0 0 0 4px #12868a1f; }
.field.two { display: grid; grid-template-columns: 1fr; gap: 14px; }
.opts { display: grid; grid-template-columns: 1fr; gap: 10px; }
.opt { border: 1.5px solid var(--line); border-radius: var(--r-md); padding: 13px 14px; cursor: pointer;
  background: var(--paper-2); display: block; }
.opt input { position: absolute; opacity: 0; }
.opt .t { font-weight: 800; display: block; }
.opt .s { color: var(--muted); font-size: 13px; }
.opt.on { border-color: var(--brand); background: var(--brand-soft); box-shadow: 0 0 0 3px #12868a1f; }
.days { display: flex; flex-wrap: wrap; gap: 8px; }
.day { border: 1.5px solid var(--line); border-radius: 999px; padding: 8px 15px; cursor: pointer;
  font-weight: 700; font-size: 14px; background: var(--paper-2); user-select: none; }
.day.on { border-color: var(--brand); background: var(--brand); color: #fff; }
.day input { position: absolute; opacity: 0; }
.wz-foot { display: flex; align-items: center; gap: 10px; padding: 16px 20px 20px;
  border-top: 1px solid var(--line-2); margin-top: 8px; flex-wrap: wrap; }
.wz-foot .grow { margin-left: auto; }

/* Availability side card */
.side { position: static; }
.avail { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 20px; box-shadow: var(--shadow-sm); }
.avail .hd { display: flex; align-items: center; gap: 8px; font-weight: 800; margin-bottom: 12px; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px #1fae6433;
  animation: pulse 1.8s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .35; } }
.avail .big { font-size: 30px; font-weight: 800; line-height: 1.1; }
.avail .row { margin: 12px 0; }
.avail .bar { height: 8px; border-radius: 999px; background: var(--line); overflow: hidden; margin-top: 6px; }
.avail .bar > i { display: block; height: 100%; background: var(--ok); }
.avail .bar.amber > i { background: var(--amber); }
.avail .bar.red > i { background: var(--red); }
.avail .reassure { background: var(--brand-soft); border-radius: var(--r-sm); padding: 12px;
  font-size: 13px; color: var(--ink-2); margin-top: 14px; }

/* Success */
.success .card { text-align: left; }
.refchip { display: inline-block; background: var(--brand-soft); color: var(--brand-2); font-weight: 800;
  border-radius: 999px; padding: 8px 16px; letter-spacing: .04em; margin: 6px 0 18px; }
.recap { width: 100%; border-collapse: collapse; margin: 8px 0 18px; }
.recap th, .recap td { text-align: left; padding: 8px 0; border-bottom: 1px solid var(--line-2);
  font-size: 15px; vertical-align: top; }
.recap th { color: var(--muted); font-weight: 700; width: 38%; }
.next { list-style: none; padding: 0; margin: 0; counter-reset: n; }
.next li { position: relative; padding: 4px 0 14px 42px; counter-increment: n; }
.next li::before { content: counter(n); position: absolute; left: 0; top: 2px; width: 28px; height: 28px;
  border-radius: 50%; background: var(--grad); color: #fff; font-weight: 800; display: grid;
  place-items: center; }
.next li b { display: block; }

/* Errors */
.formerr { background: #fdecec; color: var(--red); border: 1px solid #f5c2c2; border-radius: var(--r-sm);
  padding: 12px 14px; margin: 0 0 16px; font-weight: 700; font-size: 14px; }

/* ---- Footer ---------------------------------------------------------------- */
footer.ft { background: var(--ink); color: #cfe0dd; margin-top: 20px; }
footer.ft .wrap { padding: 34px 20px; }
footer.ft .name { font-family: var(--font-script); font-size: 26px; color: #fff; }
footer.ft a { color: #cfe0dd; text-decoration: none; }
footer.ft a:hover { color: #fff; }
footer.ft .legal { border-top: 1px solid #2c3e3a; margin-top: 22px; padding-top: 16px; font-size: 12.5px;
  color: #9fb4b0; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }

/* ---- Responsive (desktop layer) ------------------------------------------- */
@media (min-width: 720px) {
  h1 { font-size: 48px; }
  h2 { font-size: 32px; }
  section { padding: 64px 0; }
  .field.two { grid-template-columns: 1fr 1fr; }
  .opts { grid-template-columns: 1fr 1fr; }
  .grid.cols2 { grid-template-columns: 1fr 1fr; }
  .grid.cols3 { grid-template-columns: repeat(3, 1fr); }
  header.nav .links { display: flex; }
  .enq-grid { grid-template-columns: 1.5fr 1fr; align-items: start; }
  .side { position: sticky; top: 78px; }
  footer.ft .cols { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 30px; }
}
@media (min-width: 980px) {
  .hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
}

/* ---- Photography (real club/activity imagery) --------------------------------------------- */
.herophoto { position: relative; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-md); }
.herophoto img { display: block; width: 100%; height: 100%; object-fit: cover; }
.herophoto .badge { position: absolute; left: 14px; bottom: 14px; background: #ffffffee; color: var(--ink);
  font-weight: 800; font-size: 13px; padding: 8px 14px; border-radius: 999px; box-shadow: var(--shadow-sm); }
.photostrip { display: grid; grid-template-columns: 1fr; gap: 16px; margin-top: 8px; }
.photostrip figure { margin: 0; }
.photostrip img { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover;
  border-radius: var(--r-lg); box-shadow: var(--shadow-sm); }
.photostrip figcaption { color: var(--muted); font-size: 14px; margin-top: 8px; font-weight: 700; }
@media (min-width: 720px) { .photostrip { grid-template-columns: 1fr 1fr; } }

/* Footer "Software by Candere" credit — mark + underlined link to candere.net. */
.credit a { color: #fff; text-decoration: underline; text-underline-offset: 2px; font-weight: 700;
  display: inline-flex; align-items: center; gap: 5px; }
.credit a svg { flex: 0 0 auto; }

/* Real Always Active logo badge in the header (replaces the old inline mark). */
.brandmark { width: 44px; height: 44px; object-fit: contain; flex: 0 0 auto; }

/* Big brand logo drifting behind everything (Andrew: 4x, under the content). Fixed + faint; content
   scrolls over it, and it peeks through wherever a section has no solid background. */
body::after {
  content: ""; position: fixed; z-index: -1; pointer-events: none;
  right: -60px; bottom: -50px; width: 400px; height: 400px; max-width: 60vw; max-height: 60vw;
  background: url("/static/img/logo-badge.png") no-repeat center / contain; opacity: .07;
}
