/* ThinkFoundry — palette taken from the original Canva site */
:root {
  --cream: #fffdf8;      /* page / card background */
  --paper: #faf6ed;      /* header */
  --ivory: #fffaf2;      /* audience section */
  --sand: #f0e5d7;       /* approach section */
  --linen: #efe1d1;      /* enquiry section */
  --blush: #e9d1be;      /* trust strip, lesson section */
  --line: #e8d9ca;
  --clay: #bc7355;       /* programme card */
  --accent: #a44729;     /* terracotta */
  --accent-dark: #8a3a21;
  --ink: #382b24;        /* charcoal text */
  --ink-soft: #55463d;
  --muted: #66594f;
  --white: #ffffff;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(56, 43, 36, .05), 0 8px 24px rgba(56, 43, 36, .06);
  --serif: "Figtree", system-ui, -apple-system, "Segoe UI", Arial, sans-serif; /* display face */
  --sans: "Source Sans 3", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--cream); color: var(--ink);
  font-family: var(--sans); font-size: 1.0625rem; line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; height: auto; }
a { color: var(--accent); }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.15; margin: 0 0 .5em; color: var(--ink); letter-spacing: -0.01em; }
h1 { font-size: clamp(2.4rem, 7vw, 4.2rem); font-weight: 300; }
h2 { font-size: clamp(1.9rem, 4.6vw, 2.8rem); font-weight: 300; }
h3 { font-size: 1.25rem; font-weight: 600; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }

.container { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 780px; }
.visually-hidden, .hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--white); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip-link:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.eyebrow { font-size: .8rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: .9em; }
.muted { color: var(--muted); }
.intro, .lead { color: var(--muted); max-width: 46rem; }
.lead { font-size: 1.15rem; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .4em; font: 600 1rem/1.2 var(--sans); padding: .95em 1.5em; border-radius: 999px; border: 1px solid transparent; text-decoration: none; cursor: pointer; transition: background .2s, color .2s, transform .2s; }
.btn-primary { background: var(--accent); color: var(--white); }
.btn-primary:hover { background: var(--accent-dark); }
.btn-primary:active { transform: translateY(1px); }
.btn-link { color: var(--ink); padding-left: .4em; padding-right: .4em; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--blush); }
.btn-link:hover { text-decoration-color: var(--accent); }
.btn-small { padding: .7em 1.15em; font-size: .92rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .65; cursor: progress; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(250, 246, 237, .94); backdrop-filter: saturate(140%) blur(8px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 66px; }
.brand { font-family: var(--serif); font-size: 1.45rem; font-weight: 600; color: var(--ink); text-decoration: none; }
.nav-toggle { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; border-radius: 10px; }
.nav-toggle-bar, .nav-toggle-bar::before, .nav-toggle-bar::after { display: block; width: 22px; height: 2px; background: var(--ink); border-radius: 2px; position: relative; transition: transform .2s, background .2s; }
.nav-toggle-bar::before, .nav-toggle-bar::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bar::before { top: -7px; } .nav-toggle-bar::after { top: 7px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::after { transform: translateY(-7px) rotate(-45deg); }
.site-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--paper); border-bottom: 1px solid var(--line); padding: 8px 20px 20px; flex-direction: column; gap: 4px; }
.site-nav.is-open { display: flex; }
.site-nav a:not(.btn) { color: var(--ink); text-decoration: none; padding: 12px 0; border-bottom: 1px solid var(--line); font-weight: 500; }
.site-nav .btn { margin-top: 12px; }
.no-js .site-nav { display: flex; position: static; padding: 0 0 12px; }

/* Hero */
.hero { padding: 48px 0 56px; }
.hero-grid { display: grid; gap: 36px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin: 28px 0 24px; }
.hero-offer { font-size: .92rem; color: var(--muted); border-top: 1px solid var(--line); padding-top: 18px; margin: 0; }
.hero-media { margin: 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 4 / 3; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }

/* Trust strip */
.trust { background: var(--blush); }
.trust-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 32px; padding-top: 18px; padding-bottom: 18px; font-weight: 500; color: var(--ink-soft); }
.trust-list li { display: inline-flex; align-items: center; }
.trust-list .ti { width: 1.15em; height: 1.15em; margin-right: .45em; flex: 0 0 auto; fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Sections */
.section { padding: 64px 0; }
.audience { background: var(--ivory); }
.approach { background: var(--sand); }
.lesson { background: var(--blush); }
.enquiry { background: var(--linen); }
.two-col { display: grid; gap: 32px; align-items: start; }
.grid-2, .grid-3, .grid-4 { display: grid; gap: 16px; margin-top: 32px; }

.card { background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.card p { color: var(--muted); margin: 0; }
.card h3 { margin-bottom: .45em; }

.programme-card { background: var(--clay); color: var(--white); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.programme-card h3 { color: var(--white); font-size: 1.6rem; font-weight: 400; }
.programme-card .card-kicker { text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; font-weight: 600; opacity: .85; margin-bottom: .8em; }
.programme-card li { padding: 12px 0; border-top: 1px solid rgba(255, 255, 255, .3); }

.steps .step-num { display: inline-flex; width: 36px; height: 36px; border-radius: 50%; align-items: center; justify-content: center; background: var(--linen); color: var(--accent); font: 600 1rem var(--serif); margin-bottom: 14px; }

.rhythm { counter-reset: none; display: grid; gap: 10px; }
.rhythm li { background: var(--cream); border-radius: var(--radius-sm); padding: 16px 20px; display: flex; gap: 16px; align-items: baseline; font-weight: 500; box-shadow: var(--shadow); }
.rhythm span { font-family: var(--serif); color: var(--accent); font-weight: 600; min-width: 2ch; }

.checklist { display: grid; gap: 4px; }
.checklist li { position: relative; padding: 14px 0 14px 36px; border-bottom: 1px solid var(--line); }
.checklist li::before { content: ""; position: absolute; left: 4px; top: 21px; width: 14px; height: 8px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }

/* FAQ */
.faq-list { margin-top: 28px; border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { cursor: pointer; list-style: none; padding: 20px 40px 20px 0; position: relative; font-family: var(--serif); font-size: 1.2rem; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%); font-family: var(--sans); font-size: 1.5rem; color: var(--accent); transition: transform .2s; }
.faq-list details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-list details p { color: var(--muted); padding: 0 40px 20px 0; margin: 0; }

/* Enquiry form */
.enquiry-form { background: var(--cream); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); border: 1px solid var(--line); }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; font-size: .95rem; margin-bottom: 6px; }
.field input, .field select, .field textarea { width: 100%; font: inherit; font-size: 1rem; color: var(--ink); background: var(--white); border: 1px solid #d9c6b4; border-radius: 10px; padding: 12px 14px; transition: border-color .2s, box-shadow .2s; }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 20px) 52%, calc(100% - 14px) 52%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 40px; }
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(164, 71, 41, .15); }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: #b3261e; }
.field-error { color: #b3261e; font-size: .88rem; margin: 6px 0 0; }
.form-note { text-align: center; font-size: .9rem; color: var(--muted); margin: 12px 0 0; }
.form-status { margin: 16px 0 0; padding: 14px 16px; border-radius: 10px; font-weight: 500; }
.form-status.is-success { background: #eef3ea; color: #2f5130; border: 1px solid #c8d8c2; }
.form-status.is-error { background: #fbeeec; color: #8a1f17; border: 1px solid #efc7c1; }

/* Footer */
.site-footer { background: var(--ink); color: #e9ddd2; padding: 48px 0 28px; }
.footer-inner { display: grid; gap: 24px; }
.footer-brand { font-family: var(--serif); font-size: 1.6rem; color: var(--white); margin: 0 0 .25em; }
.footer-line { color: #cdbfb3; margin: 0; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 10px 24px; }
.footer-nav a { color: #e9ddd2; text-decoration: none; }
.footer-nav a:hover { color: var(--white); text-decoration: underline; }
.footer-meta { margin-top: 32px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: .85rem; color: #b5a69a; }
.footer-meta p { margin: 0; }

/* Tablet */
@media (min-width: 640px) {
  .container { padding: 0 32px; }
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .enquiry-form { padding: 32px; }
}

/* Desktop */
@media (min-width: 960px) {
  .section { padding: 96px 0; }
  .nav-toggle { display: none; }
  .site-nav, .no-js .site-nav { display: flex; position: static; flex-direction: row; align-items: center; gap: 28px; background: none; border: 0; padding: 0; }
  .site-nav a:not(.btn) { border: 0; padding: 6px 0; }
  .site-nav a:not(.btn):hover { color: var(--accent); }
  .site-nav .btn { margin-top: 0; }
  .hero { padding: 80px 0 96px; }
  .hero-grid { grid-template-columns: 1.05fr 1fr; align-items: center; gap: 64px; }
  .hero-media { aspect-ratio: 4 / 3; }
  .two-col { grid-template-columns: 1fr 1fr; gap: 64px; }
  .grid-3 { grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .grid-4 { grid-template-columns: repeat(4, 1fr); gap: 20px; }
  .card { padding: 28px; }
  .enquiry .two-col > div:first-child { position: sticky; top: 110px; }
  .footer-inner { grid-template-columns: 1fr auto; align-items: end; }
}

/* ---- Rework additions (Nov 2026) ---- */

/* Visible placeholder: must be replaced before launch */
.placeholder { background: #ffe94d; color: #1a1a1a; padding: .1em .35em; border-radius: 4px; outline: 2px dashed #b3261e; outline-offset: 1px; font-weight: 600; }

/* WhatsApp buttons */
.btn-whatsapp { background: var(--cream); color: var(--ink); border-color: var(--accent); }
.btn-whatsapp:hover { background: var(--accent); color: var(--white); }
.site-nav .btn-whatsapp { margin-top: 12px; }
.wa-float { position: fixed; right: 16px; bottom: 16px; z-index: 60; display: inline-flex; align-items: center; gap: .5em; background: #1f7a4d; color: var(--white); text-decoration: none; font-weight: 600; border-radius: 999px; padding: 12px; box-shadow: 0 6px 20px rgba(56, 43, 36, .25); transition: background .2s, transform .2s; }
.wa-float:hover { background: #17603c; transform: translateY(-1px); }
.wa-float-text { display: none; }
/* Footer padding for the floating contact buttons is set with the .page-fab rules below. */

/* Trust strip extra item */
.trust-list li { white-space: nowrap; }

/* Programme card fees line */
.programme-card .placeholder { font-size: .95rem; }

/* Tutor */
.tutor { background: var(--ivory); }
.tutor-grid { display: grid; gap: 28px; align-items: start; }
.tutor-mark { width: 112px; height: 112px; border-radius: 50%; background: var(--clay); color: var(--white); display: flex; align-items: center; justify-content: center; font: 400 2.6rem/1 var(--serif); letter-spacing: .02em; box-shadow: var(--shadow); }
.credentials { display: grid; gap: 10px; margin-top: 8px; }
.credentials li { background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px 16px 12px 44px; position: relative; font-weight: 500; }
.credentials li::before { content: ""; position: absolute; left: 18px; top: 19px; width: 12px; height: 7px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }

/* Classes & fees */
.classes { background: var(--sand); }
.fee-box { background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 16px 20px; margin: 8px 0 20px; box-shadow: var(--shadow); }
.fee-label { text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; font-weight: 600; color: var(--accent); margin: 0 0 .4em; }
.fee-amount { font-family: var(--serif); font-size: 1.25rem; margin: 0; }
.schedule-wrap { background: var(--cream); border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid var(--line); padding: 8px 20px 20px; }
.schedule { width: 100%; border-collapse: collapse; }
.schedule th, .schedule td { text-align: left; padding: 14px 8px 14px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.schedule thead th { font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); font-weight: 600; }
.schedule tbody th { font-family: var(--serif); font-weight: 600; }
.schedule-note { font-size: .92rem; color: var(--muted); margin: 16px 0 0; }

@media (min-width: 640px) {
  .tutor-grid { grid-template-columns: 140px 1fr; gap: 40px; }
  .tutor-mark { width: 140px; height: 140px; font-size: 3.2rem; }
  .wa-float { padding: 12px 18px 12px 14px; right: 24px; bottom: 24px; }
  .wa-float-text { display: inline; }
}
@media (min-width: 960px) {
  .site-nav, .no-js .site-nav { gap: 22px; }
  .site-nav .btn-whatsapp { margin-top: 0; margin-left: 4px; }
  .site-nav .btn + .btn { margin-left: -10px; }
  .tutor-grid { grid-template-columns: 180px 1fr; gap: 64px; max-width: 980px; }
  .tutor-mark { width: 180px; height: 180px; font-size: 4rem; }
  .credentials { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 960px) and (max-width: 1100px) {
  .site-nav a:not(.btn) { font-size: .95rem; }
  .site-nav, .no-js .site-nav { gap: 16px; }
}
.placeholder { -webkit-box-decoration-break: clone; box-decoration-break: clone; line-height: 1.8; }
.schedule tbody th, .schedule td { white-space: nowrap; }
@media (max-width: 479px) {
  .schedule-wrap { padding: 4px 14px 16px; }
  .schedule th, .schedule td { font-size: .92rem; padding-right: 6px; }
  .schedule td:last-child { white-space: normal; }
}

/* Wordmark: heavy Fraunces in ink with a terracotta full stop (see assets/logo.svg) */
.brand, .footer-brand { font-family: "Fraunces", Georgia, "Times New Roman", serif; font-weight: 700; letter-spacing: -0.015em; }
.brand { color: var(--ink); font-size: 1.55rem; }
.brand-dot { color: var(--accent); }
.footer-brand .brand-dot { color: #d0714f; } /* lighter terracotta for contrast on the dark footer */

/* Tutor mark: terracotta full-stop motif instead of a monogram */
.tutor-mark { font-size: 0; }
.tutor-grid .tutor-mark { width: 56px; height: 56px; border-radius: 50%; background: var(--accent); box-shadow: none; margin-top: 6px; }
@media (min-width: 640px) { .tutor-grid { grid-template-columns: 72px 1fr; } .tutor-grid .tutor-mark { width: 64px; height: 64px; } }
@media (min-width: 960px) { .tutor-grid { grid-template-columns: 96px 1fr; } .tutor-grid .tutor-mark { width: 80px; height: 80px; } }

/* Typography refresh: bold geometric headings (Figtree), humanist body (Source Sans 3) */
h1, h2, h3 { font-weight: 700; letter-spacing: -0.025em; line-height: 1.12; }
.programme-card h3, .faq-list summary { font-weight: 700; letter-spacing: -0.015em; }
.eyebrow, .fee-label, .btn, .site-nav a, .trust-list, .schedule thead th { font-family: var(--serif); }
.btn { font-weight: 700; }
.site-nav a:not(.btn) { font-weight: 600; }
.tutor-mark { font-weight: 700; }

/* Enquiry form: underline fields */
.field label { font-weight: 600; font-size: 1rem; margin-bottom: 2px; color: var(--ink); }
.field:has([required]) label::after { content: "*"; color: var(--accent); margin-left: 2px; }
.field input, .field select, .field textarea { background-color: transparent; border: 0; border-bottom: 1.5px solid var(--ink-soft); border-radius: 0; padding: 8px 0 10px; box-shadow: none; }
.field textarea { min-height: 96px; }
.field input::placeholder, .field textarea::placeholder { color: var(--muted); opacity: .8; }
.field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M0 0h14L7 9z' fill='%23382b24'/%3E%3C/svg%3E"); background-position: right 2px center; background-size: 14px 9px; padding-right: 28px; }
.field select:invalid, .field select option[value=""] { color: var(--muted); }
.field select option { color: var(--ink); }
.field input:focus, .field select:focus, .field textarea:focus { border-bottom-color: var(--accent); box-shadow: none; }
@media (min-width: 768px) {
  .enquiry-form { display: grid; grid-template-columns: 1fr 1fr; column-gap: 32px; }
  .enquiry-form > * { grid-column: 1 / -1; }
  .enquiry-form > .field:has(#parent_name), .enquiry-form > .field:has(#email), .enquiry-form > .field:has(#student_level), .enquiry-form > .field:has(#time_slot) { grid-column: auto; }
}

/* Footer call number */
.footer-contact { margin: 12px 0 0; color: #cdbfb3; }
.footer-contact a { color: #e9ddd2; text-decoration: underline; text-underline-offset: 3px; }
.footer-contact a:hover { color: var(--white); }

/* Floating contact buttons + FAQ chat launcher */
.page-fab {
  position: fixed;
  right: max(16px, env(safe-area-inset-right, 0px));
  bottom: max(16px, env(safe-area-inset-bottom, 0px));
  z-index: 60;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  pointer-events: none;
}
.page-fab > * { pointer-events: auto; }
.contact-floats {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}
.wa-float, .call-float {
  position: static;
  right: auto;
  bottom: auto;
  z-index: auto;
  display: inline-flex;
  align-items: center;
  gap: .5em;
  text-decoration: none;
  font-family: var(--serif);
  font-weight: 700;
  border-radius: 999px;
  padding: 12px;
  box-shadow: 0 6px 20px rgba(56, 43, 36, .25);
  transition: background .2s, transform .2s;
}
.call-float { background: var(--accent); color: var(--white); }
.call-float:hover { background: var(--accent-dark); transform: translateY(-1px); }
.call-float-text { display: none; }
.site-footer { padding-bottom: 140px; }
.enquiry { padding-bottom: 140px; }


.faq-bot { display: flex; flex-direction: column; align-items: flex-end; }
.faq-bot-launch {
  display: inline-flex;
  align-items: center;
  gap: .5em;
  font: 700 .95rem/1.2 var(--serif);
  color: var(--ink);
  background: var(--cream);
  border: 1.5px solid var(--accent);
  border-radius: 999px;
  padding: 12px 16px 12px 14px;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(56, 43, 36, .18);
  transition: background .2s, color .2s, transform .2s;
}
.faq-bot-launch:hover { background: var(--accent); color: var(--white); }
.no-js .faq-bot-launch, .no-js .faq-bot-panel { display: none; }
body.faq-bot-open { overflow: hidden; }
.faq-bot-panel {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 70;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-height: min(85vh, 640px);
  background: var(--cream);
  color: var(--ink);
  border-top: 1px solid var(--line);
  border-radius: 18px 18px 0 0;
  box-shadow: 0 -8px 32px rgba(56, 43, 36, .18);
  overflow: hidden;
}
.faq-bot-panel[hidden] { display: none; }
.page-fab.is-chat-open .contact-floats,
.page-fab.is-chat-open .faq-bot-launch { visibility: hidden; pointer-events: none; }
.faq-bot-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.faq-bot-title {
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0;
}
.faq-bot-close {
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
  border-radius: 10px;
}
.faq-bot-close:hover { color: var(--accent); }
.faq-bot-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--ivory);
  min-height: 180px;
}
.faq-bot-msg {
  max-width: 90%;
  padding: 10px 14px;
  font-size: .98rem;
  line-height: 1.5;
  overflow-wrap: break-word;
}
.faq-bot-msg p { margin: 0 0 .6em; }
.faq-bot-msg p:last-child { margin-bottom: 0; }
.faq-bot-msg-bot {
  align-self: flex-start;
  background: var(--cream);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 16px 16px 16px 4px;
  box-shadow: var(--shadow);
}
.faq-bot-msg-user {
  align-self: flex-end;
  background: var(--accent);
  color: var(--white);
  border-radius: 16px 16px 4px 16px;
}
.faq-bot-handoff { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.faq-bot-handoff .btn { padding: .65em 1.05em; font-size: .9rem; }
.faq-bot-call { color: var(--accent); font-weight: 700; font-family: var(--serif); text-decoration: none; display: inline-flex; align-items: center; padding: .65em .2em; }
.faq-bot-call:hover { text-decoration: underline; text-underline-offset: 3px; }
.faq-bot-chips {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  padding: 10px 16px 4px;
  background: var(--cream);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.faq-bot-chip { flex: 0 0 auto; white-space: nowrap; }
.faq-bot-chip {
  font: 600 .85rem/1.2 var(--serif);
  color: var(--ink);
  background: var(--sand);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: .55em .9em;
  cursor: pointer;
}
.faq-bot-chip:hover { border-color: var(--accent); color: var(--accent); }
.faq-bot-form {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 12px 16px 16px;
  background: var(--cream);
  border-top: 1px solid var(--line);
  margin-top: 10px;
}
.faq-bot-form input {
  flex: 1;
  min-width: 0;
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-bottom: 1.5px solid var(--ink-soft);
  border-radius: 0;
  padding: 8px 0 10px;
}
.faq-bot-form input:focus { outline: none; border-bottom-color: var(--accent); }
.faq-bot-send { flex: 0 0 auto; padding: .7em 1.15em; font-size: .92rem; }

@media (min-width: 640px) {
  .page-fab {
    right: max(24px, env(safe-area-inset-right, 0px));
    bottom: max(24px, env(safe-area-inset-bottom, 0px));
    flex-direction: row;
    align-items: center;
  }
  .contact-floats { flex-direction: row; }
  .wa-float, .call-float { padding: 12px 18px 12px 14px; }
  .call-float-text { display: inline; }
  .site-footer { padding-bottom: 112px; }
  .enquiry { padding-bottom: 96px; }
  .faq-bot-panel {
    left: auto;
    right: max(24px, env(safe-area-inset-right, 0px));
    bottom: max(88px, calc(env(safe-area-inset-bottom, 0px) + 72px));
    width: 400px;
    max-height: min(78vh, 640px);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: 0 12px 40px rgba(56, 43, 36, .2);
  }
  .page-fab.is-chat-open .contact-floats,
  .page-fab.is-chat-open .faq-bot-launch { visibility: visible; pointer-events: auto; }
  body.faq-bot-open { overflow: auto; }
}

@media (min-width: 960px) {
  .enquiry { padding-bottom: 96px; }
}

.hero-start { margin: -8px 0 16px; font-weight: 600; color: var(--accent); }
