/* Thymebridge site styles — shared by every page */

:root {
  --bg: #0B2E21;
  --bg-deep: #082318;
  --panel: rgba(8, 35, 24, 0.86);
  --line: rgba(243, 246, 241, 0.16);
  --text: #F3F6F1;
  --muted: #C9D8CF;
  --quiet: #A9C2B4;
  --accent: #B8F25C;
  --accent-ink: #0B2E21;
  --error: #FFB4A8;
  --radius: 14px;
  --display: 'Bricolage Grotesque', 'Figtree', system-ui, sans-serif;
  --body: 'Figtree', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

[hidden] { display: none !important; }

/* Spam trap field: invisible to people, bots fill it in */
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); }
a:hover { color: #D4F99A; }

img, svg { max-width: 100%; }

/* Background illustration sits behind everything and never scrolls */
.bg {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.page {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  min-height: 100dvh;           /* real visible height on phones */
  display: flex;
  flex-direction: column;
}

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

.site-header {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  color: var(--text);
  text-decoration: none;
  font-family: var(--display);
  font-weight: 800;
  font-size: 19px;
  white-space: nowrap;
}
.logo:hover { color: var(--text); }
.logo-icon { display: block; height: 28px; width: auto; }

.nav {
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px;
  padding: 0 10px;
  border-radius: 999px;
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  white-space: nowrap;
}
.nav a:hover { color: var(--text); }

.nav a.quote {
  margin-left: 4px;
  padding: 0 14px;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 700;
}
.nav a.quote:hover { background: #C9F77F; color: var(--accent-ink); }

.nav a.call {
  margin-left: 4px;
  padding: 0 14px;
  border: 1.5px solid rgba(184, 242, 92, 0.7);
  color: var(--text);
}

/* ---------- Quiz layout ---------- */

.quiz-main {
  flex: 1 1 auto;
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 8px 16px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card {
  width: 100%;
  max-width: 520px;
  padding: 24px 20px;
  border-radius: 22px;
  background: var(--panel);
  border: 1px solid rgba(243, 246, 241, 0.12);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.progress {
  margin-bottom: 18px;
}

.progress-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
  font-size: 14px;
  color: var(--quiet);
}

.back {
  min-height: 44px;
  min-width: 44px;
  padding: 0 8px 0 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.back.is-hidden { visibility: hidden; }

.bar {
  height: 6px;
  border-radius: 999px;
  background: rgba(243, 246, 241, 0.14);
  overflow: hidden;
}
.bar span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: var(--accent);
  transition: width 0.25s ease;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--accent);
  font-weight: 600;
  font-size: 14px;
}

.card h1 {
  margin: 0;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(25px, 6.5vw, 36px);
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.card h1:focus { outline: none; }

.sub {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 15px;
}

.options {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 18px;
}

.option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-height: 54px;
  padding: 10px 18px;
  border-radius: var(--radius);
  border: 1.5px solid rgba(243, 246, 241, 0.22);
  background: rgba(243, 246, 241, 0.06);
  color: var(--text);
  font: inherit;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.3;
  text-align: left;
  cursor: pointer;
}
.option::after {
  content: '';
  flex: none;
  width: 9px;
  height: 9px;
  border-top: 2px solid var(--quiet);
  border-right: 2px solid var(--quiet);
  transform: rotate(45deg);
}
.option:hover,
.option:focus-visible {
  border-color: var(--accent);
  background: rgba(184, 242, 92, 0.12);
  outline: none;
}
.option.selected { border-color: var(--accent); }

.hint {
  margin: 14px 0 0;
  font-size: 14px;
  color: var(--quiet);
}

.fields {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 18px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
}
.field .optional { font-weight: 400; color: var(--quiet); }

.field input,
.field textarea,
.field select {
  width: 100%;
  min-height: 52px;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1.5px solid transparent;
  background: #FFFFFF;
  color: #10231A;
  font: inherit;
  font-size: 17px;            /* 16px+ stops iPhones zooming in */
  font-weight: 500;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(184, 242, 92, 0.4);
}
.field input.upper { text-transform: uppercase; }
.field input[aria-invalid="true"] { border-color: var(--error); }

.error {
  margin: 0;
  min-height: 0;
  color: var(--error);
  font-size: 14px;
  font-weight: 600;
}
.error:empty { display: none; }

.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 56px;
  margin-top: 18px;
  padding: 0 20px;
  border: 0;
  border-radius: var(--radius);
  background: var(--accent);
  color: var(--accent-ink);
  font-family: var(--display);
  font-weight: 800;
  font-size: 19px;
  text-decoration: none;
  cursor: pointer;
}
.btn:hover { background: #C9F77F; color: var(--accent-ink); }
.btn:disabled { opacity: 0.6; cursor: wait; }

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1.5px solid rgba(243, 246, 241, 0.5);
  font-family: var(--body);
  font-weight: 700;
  font-size: 17px;
}
.btn-outline:hover { background: rgba(243, 246, 241, 0.08); color: var(--text); }

.small {
  margin: 12px 0 0;
  font-size: 13px;
  color: var(--quiet);
}

.tick {
  width: 56px;
  height: 56px;
  margin-bottom: 16px;
  border-radius: 999px;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
}

.link-btn {
  display: block;
  margin: 10px auto 0;
  min-height: 44px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-weight: 600;
  text-decoration: underline;
  cursor: pointer;
}

.trust {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 14px;
  margin: 0;
  padding: 0 16px 6px;
  list-style: none;
  font-size: 13px;
  color: var(--muted);
}
.trust li::before { content: '✓ '; color: var(--accent); font-weight: 700; }

/* ---------- Content pages (About, Contact) ---------- */

.content-main {
  flex: 1 1 auto;
  width: 100%;
  max-width: 880px;
  margin: 0 auto;
  padding: 16px 16px 40px;
}

.content-main h1 {
  margin: 8px 0 12px;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(32px, 8vw, 52px);
  line-height: 1.05;
  letter-spacing: -0.025em;
}

.content-main h2 {
  margin: 0 0 10px;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(22px, 5vw, 28px);
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.lead {
  margin: 0 0 28px;
  font-size: 18px;
  color: var(--muted);
  max-width: 60ch;
}

.section { margin-top: 36px; }

.panel {
  padding: 22px 20px;
  border-radius: 18px;
  background: rgba(243, 246, 241, 0.06);
  border: 1px solid rgba(243, 246, 241, 0.12);
}
.panel p { margin: 0; color: var(--muted); }
.panel h3 {
  margin: 0 0 6px;
  font-size: 19px;
  font-weight: 700;
  color: var(--text);
}

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

a.service {
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: var(--text);
  text-decoration: none;
}
a.service:hover { border-color: var(--accent); color: var(--text); }
a.service .go { margin-top: 6px; color: var(--accent); font-weight: 700; }

.contact-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}
.contact-list a { font-weight: 700; word-break: break-word; }

/* ---------- Homepage ---------- */

.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;
}

.call-note a { font-weight: 700; white-space: nowrap; }

.home-main { flex: 1 1 auto; width: 100%; }

.wrap {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 16px;
}

.home-section { padding: 48px 0; }
.home-section h2 {
  margin: 0 0 10px;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(26px, 6vw, 38px);
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.section-lead { margin: 0 0 24px; color: var(--muted); font-size: 17px; max-width: 60ch; }

/* hero */
.hero { padding: 16px 0 36px; }
.hero .wrap {
  display: grid;
  gap: 28px;
  align-items: center;
}
.hero h1 {
  margin: 0 0 14px;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(34px, 9vw, 60px);
  line-height: 1.02;
  letter-spacing: -0.03em;
}
.hero h1 em { font-style: normal; color: var(--accent); }
.hero p.hero-sub { margin: 0; font-size: 18px; color: var(--muted); max-width: 46ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.hero-actions .btn { width: auto; flex: 1 1 200px; margin-top: 0; }
.hero-photo {
  margin: 0;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--line);
  aspect-ratio: 4 / 3;
  max-height: 520px;
  background: var(--bg-deep);
}
.hero-photo img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }

@media (min-width: 860px) {
  .hero-photo { aspect-ratio: 4 / 5; }
  .hero { padding: 40px 0 56px; }
  .hero .wrap { grid-template-columns: 1.15fr 0.85fr; gap: 48px; }
}

/* trust strip */
.trust-strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.14);
}
.trust-strip ul {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 10px 24px;
  margin: 0 auto;
  padding: 18px 16px;
  max-width: 1120px;
  list-style: none;
}
.trust-strip li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.35;
}
.trust-strip li::before {
  content: '✓';
  flex: none;
  color: var(--accent);
  font-weight: 800;
}

/* services */
.small-jobs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 14px;
  padding: 0;
  list-style: none;
}
.small-jobs a {
  display: flex;
  align-items: center;
  min-height: 56px;
  height: 100%;
  padding: 12px 14px;
  border-radius: var(--radius);
  background: rgba(243, 246, 241, 0.06);
  border: 1px solid rgba(243, 246, 241, 0.12);
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  line-height: 1.3;
}
.small-jobs a:hover { border-color: var(--accent); color: var(--text); }
.more-jobs { margin: 0 0 28px; color: var(--muted); }
.more-jobs a { font-weight: 700; }
.big-jobs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 14px;
}
.big-jobs .service h3 { font-size: 20px; }
.big-jobs .service p { flex: 1 1 auto; }

@media (min-width: 760px) {
  .small-jobs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* emergency band */
.emergency {
  background: var(--accent);
  color: var(--accent-ink);
  padding: 36px 0;
}
.emergency .wrap { display: grid; gap: 16px; align-items: center; }
.emergency h2 {
  margin: 0;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(26px, 6.5vw, 40px);
  line-height: 1.08;
  letter-spacing: -0.02em;
}
.emergency p { margin: 8px 0 0; font-size: 17px; font-weight: 500; }
.emergency .safety { font-size: 14px; opacity: 0.85; }
.btn-dark {
  background: var(--accent-ink);
  color: var(--text);
}
.btn-dark:hover { background: #123B2B; color: var(--text); }
.emergency .btn { margin-top: 0; }
@media (min-width: 860px) {
  .emergency .wrap { grid-template-columns: 1fr auto; gap: 40px; }
  .emergency .btn { width: auto; padding: 0 32px; }
}

/* recent work */
.gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
@media (min-width: 760px) { .gallery { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.gallery figure { margin: 0; }
.gallery img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--bg-deep);
}
.gallery figcaption { margin-top: 8px; font-size: 14px; color: var(--muted); }

/* reviews */
.reviews {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}
.review .stars { color: var(--accent); letter-spacing: 2px; margin-bottom: 8px; }
.review p { color: var(--text); }
.review .who { margin-top: 10px; color: var(--muted); font-weight: 600; font-size: 14px; }
.rating-line { margin: -8px 0 22px; color: var(--muted); font-weight: 600; }

/* steps */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}
.steps li { counter-increment: step; }
.steps li::before {
  content: counter(step);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin-bottom: 12px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  font-family: var(--display);
  font-weight: 800;
}

/* FAQ */
.faq { display: flex; flex-direction: column; gap: 10px; max-width: 760px; }
.faq details {
  border-radius: var(--radius);
  background: rgba(243, 246, 241, 0.06);
  border: 1px solid rgba(243, 246, 241, 0.12);
}
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 56px;
  padding: 12px 18px;
  font-weight: 700;
  font-size: 17px;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; flex: none; color: var(--accent); font-size: 24px; font-weight: 600; line-height: 1; }
.faq details[open] summary::after { content: '–'; }
.faq details p { margin: 0; padding: 0 18px 16px; color: var(--muted); }

/* final call to action */
.final-cta .panel { text-align: center; padding: 32px 20px; }
.final-cta .hero-actions { justify-content: center; max-width: 520px; margin-left: auto; margin-right: auto; }

/* sticky call / quote bar on phones */
.sticky-bar { display: none; }
@media (max-width: 719px) {
  .sticky-bar {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 20;
    display: flex;
    gap: 8px;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    background: rgba(8, 35, 24, 0.96);
    border-top: 1px solid var(--line);
  }
  .sticky-bar .btn { margin-top: 0; min-height: 50px; font-size: 17px; }
  body.has-sticky { padding-bottom: calc(72px + env(safe-area-inset-bottom)); }
  .nav a.quote { display: none; }
}

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

.site-footer {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 10px 16px 18px;
  text-align: center;
  font-size: 12px;
  color: var(--quiet);
}
.site-footer a { color: var(--muted); }

/* ---------- Phone tweaks ---------- */

@media (max-width: 520px) {
  .logo { font-size: 17px; gap: 6px; }
  .logo-icon { height: 22px; }
  .nav a { padding: 0 7px; font-size: 14px; }
  .nav a.quote {
  margin-left: 4px;
  padding: 0 14px;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 700;
}
.nav a.quote:hover { background: #C9F77F; color: var(--accent-ink); }

.nav a.call { width: 44px; padding: 0; }
  .nav a.call .label { display: none; }
  .card { padding: 20px 16px; border-radius: 18px; }
  .option { font-size: 16px; min-height: 52px; padding: 10px 16px; }
}

@media (max-width: 360px) {
  .nav a.hide-xs { display: none; }
}

@media (max-width: 430px) {
  .nav a.hide-sm { display: none; }
}

/* Short phones: tighten vertical spacing so a question fits on one screen */
@media (max-height: 760px) and (max-width: 520px) {
  .site-header { padding-top: 6px; padding-bottom: 6px; }
  .progress { margin-bottom: 12px; }
  .options { gap: 8px; margin-top: 14px; }
  .option { min-height: 48px; }
  .trust { display: none; }
  .card { padding: 16px 16px; }
  .card h1 { font-size: 24px; }
  .fields { gap: 8px; margin-top: 12px; }
  .field input { min-height: 46px; padding: 8px 14px; }
  .btn { min-height: 52px; margin-top: 10px; }
  .small { margin-top: 8px; font-size: 12px; }
  .site-footer { padding-bottom: 10px; }
}

/* ---------- Desktop: quiz on the left, illustration shows on the right ---------- */

@media (min-width: 960px) {
  .quiz-main { justify-content: flex-start; }
  .card { padding: 32px 30px; }
}

@media (prefers-reduced-motion: reduce) {
  .bar span { transition: none; }
}

/* ==========================================================
   Brand colours: sage background (#83986F, from the logo), dark green text and buttons.
   These override the base colours above. Change colours here.
   ========================================================== */
:root {
  --bg: #83986F;
  --bg-deep: #6F8360;
  --panel: #F4F6F0;
  --line: rgba(14, 32, 22, 0.18);
  --text: #0E2016;
  --muted: #142218;
  --quiet: #1F2E21;
  --accent: #0B2E21;
  --accent-ink: #FFFFFF;
}
a:hover { color: #000; }
.logo, .logo:hover { color: #FFFFFF; }
.nav a { color: #0E2016; }
.nav a.call { border-color: #0B2E21; color: #0B2E21; }
.nav a.quote:hover, .btn:hover { background: #164532; color: #fff; }
.btn-outline { color: var(--text); border-color: rgba(14,32,22,0.55); background: transparent; }
.btn-outline:hover { background: rgba(14,32,22,0.08); color: var(--text); }
.card { border-color: rgba(14,32,22,0.12); backdrop-filter: none; -webkit-backdrop-filter: none; box-shadow: 0 10px 30px rgba(14,32,22,0.18); }
.card .option { background: #FFFFFF; border-color: rgba(14,32,22,0.18); color: var(--text); }
.option:hover, .option:focus-visible { background: #E6ECE0; border-color: var(--accent); }
.bar { background: rgba(14,32,22,0.12); }
.eyebrow { color: #2F5A3F; }
.card .call-note a, .card a { color: #0B2E21; }
.field input, .field textarea { border-color: rgba(14,32,22,0.25); }
.field input:focus, .field textarea:focus { box-shadow: 0 0 0 3px rgba(11,46,33,0.25); }
.panel, .small-jobs a, .faq details { background: rgba(255,255,255,0.28); border-color: rgba(14,32,22,0.14); }
.trust-strip { background: rgba(255,255,255,0.18); }
.trust-strip li::before, .trust li::before { color: #0B2E21; }
a.service .go { color: #0B2E21; }
.faq summary::after { color: #0B2E21; }
.emergency { background: #0B2E21; color: #FFFFFF; }
.btn-dark { background: #83986F; color: #0E2016; }
.btn-dark:hover { background: #9BAE88; color: #0E2016; }
.steps li::before { background: #0B2E21; color: #fff; }
.sticky-bar { background: rgba(11,46,33,0.97); }
.sticky-bar .btn { background: #83986F; color: #0E2016; }
.sticky-bar .btn-outline { background: transparent; color: #fff; border-color: rgba(255,255,255,0.6); }
.site-footer a { color: var(--text); }
.hero h1 em { color: #FFFFFF; }
/* quiz background illustrations */
.bg > rect:first-of-type { fill: #83986F; }
.bg [fill="#082318"] { fill: #6F8360; }
.bg [fill="#B8F25C"] { fill: #FFFFFF; }
.bg [stroke="#B8F25C"] { stroke: #FFFFFF; }

.bg [fill="#123B2B"], .bg [fill="#0F3426"], .bg [fill="#163F2F"] { fill: #73875F; }
.bg [fill="#0E3326"] { fill: #6A7D58; }
.bg [stroke="#0E3326"] { stroke: #6A7D58; }
.bg [stroke="#0B2E21"] { stroke: #83986F; }
.bg [fill="#C9D8CF"] { fill: #FFFFFF; }
.error { color: #8A1C12; }
.field input[aria-invalid="true"] { border-color: #B3261E; }

/* Phones: hide the About link in the header so the logo has room (About is still in the footer) */
@media (max-width: 430px) {
  .nav a.hide-xs { display: none; }
}
