/* ============================================================
   WebsiteLink — mobile-first design system
   Direction: calm, trustworthy, fast. Not a flashy directory —
   a dependable "we'll sort this for you" tool. Ink navy + a single
   confident teal action colour, with a warm amber reserved ONLY for
   emergency states so urgency reads instantly and is never diluted.
   ============================================================ */
:root {
  --ink:      #14213D;   /* deep navy — headings, primary text */
  --ink-soft: #3D4A63;   /* secondary text */
  --muted:    #7A869A;   /* captions, meta */
  --line:     #E4E8EF;   /* hairlines */
  --paper:    #FBFCFE;   /* page bg */
  --card:     #FFFFFF;   /* surfaces */
  --teal:     #0E8F8B;   /* the one action colour */
  --teal-dk:  #0A6E6B;
  --teal-bg:  #E6F4F3;
  --amber:    #C25E00;   /* emergency ONLY */
  --amber-bg: #FCEEE2;
  --success:  #1F7A44;
  --success-bg:#E7F3EC;
  --radius:   14px;
  --shadow:   0 1px 2px rgba(20,33,61,.06), 0 4px 16px rgba(20,33,61,.05);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --display: 'Fraunces', Georgia, serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--teal-dk); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---- layout ---- */
.wrap { max-width: 760px; margin: 0 auto; padding: 0 18px; }
.wrap-wide { max-width: 1080px; margin: 0 auto; padding: 0 18px; }

/* ---- header ---- */
.site-head {
  background: var(--card);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 50;
}
.site-head .wrap-wide {
  display: flex; align-items: center; justify-content: space-between;
  height: 58px;
}
.brand {
  font-family: var(--display);
  font-weight: 600; font-size: 21px; color: var(--ink);
  letter-spacing: -.01em; display: flex; align-items: center; gap: 7px;
}
.brand:hover { text-decoration: none; }
.brand .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--teal); display:inline-block; }
.head-loc { font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 4px; }

/* ---- hero / problem header ---- */
.phead { padding: 26px 0 8px; }
.eyebrow { font-size: 12.5px; color: var(--teal-dk); font-weight: 600; letter-spacing: .02em; text-transform: uppercase; margin-bottom: 8px; }
.phead h1 {
  font-family: var(--display);
  font-weight: 600; font-size: clamp(26px, 6vw, 38px);
  line-height: 1.12; letter-spacing: -.02em; color: var(--ink);
}
.phead .sub { color: var(--ink-soft); font-size: 16px; margin-top: 10px; max-width: 52ch; }

/* ---- chat intake ---- */
.chat { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px; margin: 20px 0; }
.chat.emergency { border-color: #EBC9A8; background: linear-gradient(180deg, var(--amber-bg) 0%, var(--card) 24%); }
.bubble-row { display: flex; gap: 9px; margin-bottom: 12px; align-items: flex-start; }
.avatar { width: 30px; height: 30px; border-radius: 50%; background: var(--teal-bg); color: var(--teal-dk); flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 15px; }
.emergency .avatar { background: var(--amber-bg); color: var(--amber); }
.bubble { background: var(--paper); border: 1px solid var(--line); border-radius: 4px 14px 14px 14px; padding: 10px 13px; font-size: 15px; line-height: 1.45; }
.bubble-you { display: flex; justify-content: flex-end; margin-bottom: 12px; }
.bubble-you .b { background: var(--teal-bg); color: var(--teal-dk); border-radius: 14px 4px 14px 14px; padding: 9px 13px; font-size: 15px; }

.opts { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin: 4px 0 6px; }
.opt {
  font: inherit; font-size: 14.5px; text-align: center;
  padding: 13px 10px; border: 1px solid var(--line); border-radius: 11px;
  background: var(--card); color: var(--ink); cursor: pointer;
  transition: all .12s ease; min-height: 48px;
}
.opt:hover, .opt:focus-visible { border-color: var(--teal); background: var(--teal-bg); color: var(--teal-dk); outline: none; }
.opt.full { grid-column: 1 / -1; }
.progress { font-size: 12.5px; color: var(--muted); padding-left: 39px; margin-top: 2px; }

/* ---- inputs ---- */
.field { width: 100%; font: inherit; font-size: 16px; padding: 13px 14px; border: 1px solid var(--line); border-radius: 11px; background: var(--card); margin-top: 10px; }
.field:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px var(--teal-bg); }
.btn { width: 100%; font: inherit; font-size: 16px; font-weight: 600; padding: 14px; border: none; border-radius: 11px; background: var(--teal); color: #fff; cursor: pointer; margin-top: 10px; min-height: 50px; transition: background .12s; }
.btn:hover { background: var(--teal-dk); }
.btn-amber { background: var(--amber); }
.btn-amber:hover { background: #A34E00; }
.fineprint { font-size: 12px; color: var(--muted); text-align: center; margin-top: 9px; line-height: 1.4; }

/* ---- reassurance ---- */
.reassure { background: var(--teal-bg); border-radius: 11px; padding: 13px 15px; font-size: 14.5px; color: var(--teal-dk); line-height: 1.5; margin: 4px 0 2px; }

/* ---- match cards ---- */
.matches { margin: 20px 0; }
.matches h3 { font-size: 15px; font-weight: 600; margin-bottom: 10px; display: flex; justify-content: space-between; align-items: baseline; }
.matches h3 .count { font-size: 12.5px; color: var(--muted); font-weight: 400; }
.mcard { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 13px; margin-bottom: 9px; }
.mcard.top { border-color: var(--teal); }
.mcard-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.mcard .bname { font-size: 15.5px; font-weight: 600; color: var(--ink); }
.mcard .bspec { font-size: 12.5px; color: var(--ink-soft); margin-top: 2px; }
.dist { font-size: 12px; font-weight: 600; background: var(--success-bg); color: var(--success); padding: 4px 9px; border-radius: 20px; white-space: nowrap; }
.mcard-meta { display: flex; gap: 12px; margin-top: 9px; font-size: 12px; color: var(--muted); }
.callnow { display: block; text-align: center; font-weight: 600; padding: 12px; background: var(--amber); color: #fff; border-radius: 9px; margin-top: 10px; font-size: 15px; }
.callnow:hover { text-decoration: none; background: #A34E00; }

.private-note { background: var(--paper); border: 1px dashed var(--line); border-radius: 11px; padding: 12px 14px; text-align: center; }
.private-note .big { font-size: 14px; font-weight: 600; color: var(--ink); }
.private-note .small { font-size: 12.5px; color: var(--muted); margin-top: 3px; }

/* ---- FAQ ---- */
.faq { border-top: 1px solid var(--line); margin-top: 26px; padding-top: 20px; }
.faq h3 { font-size: 16px; font-weight: 600; margin-bottom: 12px; }
.faq details { border-bottom: 1px solid var(--line); padding: 11px 0; }
.faq summary { cursor: pointer; font-size: 14.5px; color: var(--ink); font-weight: 500; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: '+'; color: var(--teal); font-weight: 700; margin-right: 9px; }
.faq details[open] summary::before { content: '–'; }
.faq p { font-size: 14px; color: var(--ink-soft); margin-top: 8px; padding-left: 20px; line-height: 1.55; }
.faq .note { font-size: 11.5px; color: var(--muted); font-style: italic; margin-top: 14px; }

/* ---- category / location grids ---- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin: 20px 0; }
.tile { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 15px; transition: all .12s; }
.tile:hover { border-color: var(--teal); text-decoration: none; box-shadow: var(--shadow); }
.tile .t { font-size: 15px; font-weight: 600; color: var(--ink); }
.tile .c { font-size: 12.5px; color: var(--muted); margin-top: 3px; }

/* ---- footer ---- */
.site-foot { border-top: 1px solid var(--line); margin-top: 50px; padding: 30px 0; color: var(--muted); font-size: 13px; }
.site-foot .cols { display: flex; flex-wrap: wrap; gap: 30px; justify-content: space-between; }
.site-foot a { color: var(--ink-soft); }
.site-foot .brand-sm { font-family: var(--display); font-size: 17px; color: var(--ink); }

/* ---- utility ---- */
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
@media (min-width: 620px) { .opts { grid-template-columns: 1fr 1fr; } }

/* Suburb autocomplete picker */
.loc-wrap { position: relative; }
.loc-list { display: flex; flex-direction: column; gap: 4px; margin-top: 6px; }
.loc-opt {
  text-align: left; background: #fff; border: 1px solid var(--line, #E4E8EF);
  border-radius: 9px; padding: 11px 13px; cursor: pointer; font: inherit;
  font-size: 14.5px; color: var(--ink, #14213D); transition: all .12s;
}
.loc-opt:hover { border-color: var(--teal, #0E8F8B); background: var(--teal-bg, #E6F4F3); }

/* Consent checkbox row */
.consent-row { display:flex; gap:9px; align-items:flex-start; margin:4px 0 10px; font-size:12.5px; color:var(--muted,#7A869A); line-height:1.5; cursor:pointer; }
.consent-row input[type=checkbox] { margin-top:2px; flex-shrink:0; width:16px; height:16px; cursor:pointer; }
.consent-row a { color:var(--teal,#0E8F8B); }
