/*
 * The landing pages' one stylesheet. Phone first; the wider layout is added
 * from 900px up.
 *
 * Colours are the Your Property Team Design System's own (colors_and_type.css
 * in Claude Design), including its text-safe variants: electric blue is a
 * ground with midnight text on it, never text on white; blue text is deep blue;
 * muted text is #616B77. Every colour is a token below and nowhere else.
 */

@font-face { font-family: "Averta Std"; src: url("/assets/fonts/averta-regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Averta Std"; src: url("/assets/fonts/averta-semibold.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Averta Std"; src: url("/assets/fonts/averta-bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --navy: #27405f;          /* midnight blue: headings, the hero */
  --navy-deep: #1f3550;     /* a panel on the navy hero */
  --dark: #1a2b3c;          /* the footer */
  --electric: #41d3ff;      /* the brand blue - a ground, never text on light */
  --electric-hover: #37b8ff;
  --electric-tint: #e8f9ff;
  --deep: #15618c;          /* blue that is read: labels, links */
  --copy: #3f5468;          /* body text */
  --muted: #616b77;         /* secondary text */
  --line: #e8edf3;
  --line-strong: #c3cedb;
  --input-edge: #6f7d8e;    /* 3:1 against white, for input borders */
  --tint: #f5f7fa;
  --white: #ffffff;
  --on-navy: #e8edf3;
  --footer-text: #b4c0ce;
  --danger: #b42318;
  --danger-tint: #fdecea;

  --font: "Averta Std", "Helvetica Neue", Arial, sans-serif;
  --radius: 12px;
  --radius-lg: 16px;
  --shadow-card: 0 8px 32px rgba(39, 64, 95, 0.16);
  --shadow-bar: 0 -8px 32px rgba(39, 64, 95, 0.12);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; } }
body { margin: 0; font-family: var(--font); color: var(--navy); background: var(--white); line-height: 1.5; }
img { max-width: 100%; height: auto; display: block; }
p, h1, h2, h3, ul, ol, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: var(--deep); }
:focus-visible { outline: 3px solid var(--deep); outline-offset: 2px; }

.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 900px) { .wrap { padding: 0 32px; } }

/* ---- Type ---- */
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--deep); }
.eyebrow--on-navy { color: var(--electric); }
.h1 { font-size: 36px; line-height: 1.1; font-weight: 700; color: var(--white); letter-spacing: -0.01em; }
.h1--dark { color: var(--navy); }
.h2 { font-size: 28px; line-height: 1.2; font-weight: 700; color: var(--navy); margin-top: 10px; }
.accent { color: var(--electric); }
.lead { font-size: 17px; line-height: 1.55; color: var(--on-navy); }
.lead--dark { color: var(--copy); }
@media (min-width: 900px) {
  .h1 { font-size: 58px; }
  .h2 { font-size: 42px; max-width: 760px; }
  .lead { font-size: 20px; max-width: 520px; }
}

/* ---- Buttons ---- */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px; padding: 0 26px; border: 0; border-radius: var(--radius);
  background: var(--electric); color: var(--navy);
  font: 700 17px/1.2 var(--font); text-decoration: none; cursor: pointer;
  transition: background-color 150ms ease-out;
}
.button:hover { background: var(--electric-hover); }
.button--small { min-height: 44px; padding: 0 18px; font-size: 15px; }
.button--wide { width: 100%; }
.button--navy { background: var(--navy); color: var(--white); }
.button--navy:hover { background: var(--dark); }
.button[disabled] { opacity: 0.6; cursor: progress; }
.link-button { min-height: 44px; border: 0; background: none; padding: 0 4px; font: 600 14px var(--font); color: var(--deep); text-decoration: underline; cursor: pointer; }

/* ---- Header ---- */
.site-header { background: var(--white); border-bottom: 1px solid var(--line); }
.site-header-inner { min-height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.site-logo { width: 150px; }
.site-header-actions { display: flex; align-items: center; gap: 12px; }
.header-phone { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-width: 44px; min-height: 44px; border: 1px solid var(--line-strong); border-radius: var(--radius); color: var(--muted); text-decoration: none; font-size: 15px; }
.header-phone-number, .header-cta { display: none; }
@media (min-width: 900px) {
  .site-header-inner { min-height: 88px; }
  .site-logo { width: 210px; }
  .site-header-actions { gap: 24px; }
  .header-phone { border: 0; min-width: 0; }
  .header-phone-number, .header-cta { display: inline-flex; }
}

/* ---- Hero ---- */
.hero { background: var(--navy); padding: 36px 0 32px; }
.hero-grid { display: grid; gap: 28px; }
.hero-copy { display: flex; flex-direction: column; gap: 20px; }
.ticks { display: flex; flex-direction: column; gap: 12px; color: var(--white); font-size: 16px; }
.ticks li { display: flex; gap: 12px; align-items: flex-start; }
.ticks li::before { content: ""; flex: none; width: 22px; height: 22px; margin-top: 1px; background: var(--electric); -webkit-mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="2.6" stroke-linecap="round" stroke-linejoin="round"><path d="M20 6 9 17l-5-5"/></svg>') center / contain no-repeat; mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="2.6" stroke-linecap="round" stroke-linejoin="round"><path d="M20 6 9 17l-5-5"/></svg>') center / contain no-repeat; }
.hero-note { display: flex; gap: 12px; align-items: flex-start; padding: 16px 18px; border-radius: 14px; background: var(--navy-deep); color: var(--white); font-size: 15px; line-height: 1.5; }
.hero-note svg { flex: none; color: var(--electric); }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chips li { padding: 8px 14px; border: 1px solid #4a6484; border-radius: 999px; color: var(--white); font-size: 15px; }
@media (min-width: 900px) {
  .hero { padding: 80px 0 96px; }
  .hero-grid { grid-template-columns: minmax(0, 1fr) 460px; gap: 64px; align-items: start; }
  .hero-copy { gap: 28px; padding-top: 24px; }
  .ticks { font-size: 17px; }
}

/* ---- The enquiry form ---- */
.enquiry { background: var(--white); border-radius: var(--radius-lg); padding: 24px 20px; box-shadow: var(--shadow-card); display: flex; flex-direction: column; gap: 18px; scroll-margin-top: 16px; }
@media (min-width: 900px) { .enquiry { padding: 32px; } }
.enquiry-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.enquiry-count { font-size: 13px; font-weight: 600; color: var(--muted); }
.enquiry-progress { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.enquiry-progress span { height: 4px; border-radius: 999px; background: var(--electric); }
.enquiry-progress [data-progress-2] { background: var(--line); }
.enquiry.is-step-2 .enquiry-progress [data-progress-2] { background: var(--electric); }
.enquiry-step { border: 0; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.enquiry-question { padding: 0; margin-bottom: 4px; font-size: 24px; line-height: 1.25; font-weight: 700; color: var(--navy); }
.reasons { display: flex; flex-direction: column; gap: 10px; }
.reason { position: relative; display: flex; align-items: center; min-height: 56px; padding: 0 44px 0 18px; border: 1.5px solid var(--line-strong); border-radius: var(--radius); font-size: 16px; color: var(--navy); cursor: pointer; background: var(--white); }
.reason::after { content: "›"; position: absolute; right: 18px; font-size: 24px; color: var(--muted); }
.reason input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.reason:has(input:checked) { border: 2px solid var(--navy); background: var(--electric-tint); font-weight: 600; }
.reason:has(input:focus-visible) { outline: 3px solid var(--deep); outline-offset: 2px; }
.enquiry-note, .enquiry-promise { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; line-height: 1.45; color: var(--muted); }
.enquiry-note svg, .enquiry-promise svg { flex: none; color: var(--deep); margin-top: 1px; }
.enquiry-promise { color: var(--navy); font-weight: 600; }
.enquiry-picked { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 6px 6px 6px 14px; border-radius: var(--radius); background: var(--tint); }
.enquiry-picked p { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; }
.enquiry-picked svg { flex: none; color: var(--deep); }
.enquiry-heading { font-size: 24px; line-height: 1.25; font-weight: 700; color: var(--navy); outline: none; }
.enquiry-error { padding: 12px 14px; border-radius: var(--radius); background: var(--danger-tint); color: var(--danger); font-size: 14px; font-weight: 600; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; color: var(--navy); }
.field input, .field textarea { width: 100%; min-height: 48px; border: 1.5px solid var(--input-edge); border-radius: var(--radius); padding: 0 14px; font: 400 16px var(--font); color: var(--navy); background: var(--white); }
.field textarea { padding: 12px 14px; resize: vertical; }
.field input[aria-invalid="true"] { border-color: var(--danger); }
.field label { display: block; }

/* The property address, and the suggestions under it when places.js is on the
   page (only with a Google key). Each suggestion is a 44px touch target. */
.field--address { position: relative; }
.address-panel { position: absolute; left: 0; right: 0; top: 100%; z-index: 20; margin-top: 4px; overflow: hidden; background: var(--white); border: 1.5px solid var(--input-edge); border-radius: var(--radius); box-shadow: var(--shadow-card); }
.address-panel[hidden] { display: none; }
.address-list { max-height: 300px; overflow-y: auto; }
.address-option { min-height: 44px; padding: 10px 14px; display: flex; flex-direction: column; justify-content: center; gap: 2px; border-top: 1px solid var(--line); cursor: pointer; }
.address-option:first-child { border-top: 0; }
.address-option[aria-selected="true"], .address-option:hover { background: var(--electric-tint); }
.address-main { font-size: 16px; font-weight: 600; color: var(--navy); }
.address-rest { font-size: 14px; font-weight: 400; color: var(--muted); }
.address-credit { padding: 6px 14px; border-top: 1px solid var(--line); font-size: 12px; font-weight: 400; color: var(--muted); text-align: right; }
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.enquiry-small { display: flex; flex-direction: column; gap: 8px; font-size: 13px; line-height: 1.45; color: var(--muted); }
.enquiry-trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* With JavaScript the form is two steps; without it, everything shows at once. */
.js .enquiry [data-step="2"] { display: none; }
.js .enquiry.is-step-2 [data-step="1"] { display: none; }
.js .enquiry.is-step-2 [data-step="2"] { display: flex; }
.js .enquiry [data-message] { display: none; }
.js .enquiry.is-other [data-message] { display: flex; }
.enquiry:not(.is-step-2) .reason::after { content: "›"; }

/* ---- Sections ---- */
.section { padding: 56px 0; }
.section--tint { background: var(--tint); }
@media (min-width: 900px) { .section { padding: 104px 0; } }
.proof { background: var(--tint); border-bottom: 1px solid var(--line); padding: 24px 0; }
.proof-grid { display: grid; gap: 18px; }
.proof-figure { font-size: 19px; font-weight: 700; }
.proof-text { font-size: 14px; color: var(--muted); }
@media (min-width: 900px) { .proof-grid { grid-template-columns: repeat(3, 1fr); gap: 24px; } }

.commitments { display: grid; gap: 16px; margin: 32px 0; }
.commitments li { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px; display: flex; flex-direction: column; gap: 8px; color: var(--copy); font-size: 16px; }
.commitment-figure { font-size: 28px; line-height: 1.15; font-weight: 700; color: var(--deep); }
@media (min-width: 700px) { .commitments { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .commitments { grid-template-columns: repeat(3, 1fr); gap: 24px; margin: 48px 0; } .commitments li { padding: 32px; font-size: 17px; } .commitment-figure { font-size: 34px; } }

.cta-row { display: flex; flex-direction: column; gap: 10px; }
.cta-row p { font-size: 14px; color: var(--muted); text-align: center; }
@media (min-width: 700px) { .cta-row { flex-direction: row; align-items: center; gap: 20px; } .cta-row p { text-align: left; font-size: 15px; } }

.tiles { display: grid; gap: 16px; margin-top: 32px; }
.tile { display: flex; flex-direction: column; justify-content: space-between; gap: 24px; min-height: 200px; padding: 28px; border-radius: var(--radius-lg); background: var(--navy); text-decoration: none; }
.tile-text { font-size: 26px; line-height: 1.25; font-weight: 700; color: var(--white); }
.tile-go { display: flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 700; color: var(--white); }
.tile-go svg { color: var(--electric); }
@media (min-width: 900px) { .tiles { grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 48px; } .tile { min-height: 280px; padding: 36px; } .tile-text { font-size: 30px; } }

.compare { border: 1px solid var(--line); border-radius: 20px; overflow: hidden; margin: 32px 0; }
.compare-head { display: none; }
.compare-row { padding: 20px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; }
.compare-row:first-of-type { border-top: 0; }
.compare-was { font-size: 15px; color: var(--muted); text-decoration: line-through; text-decoration-color: var(--line-strong); }
.compare-now { display: flex; gap: 10px; font-size: 17px; font-weight: 600; color: var(--navy); }
.compare-now::before { content: "✓"; color: var(--deep); font-weight: 700; }
@media (min-width: 900px) {
  .compare { margin: 48px 0; }
  .compare-head { display: grid; grid-template-columns: 1fr 1fr; background: var(--tint); border-bottom: 1px solid var(--line); }
  .compare-head p { padding: 20px 36px; font-size: 13px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
  .compare-head p + p { color: var(--deep); border-left: 1px solid var(--line); }
  .compare-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0; padding: 0; }
  .compare-row:first-of-type { border-top: 1px solid var(--line); }
  .compare-row > p { padding: 24px 36px; font-size: 18px; }
  .compare-was { text-decoration: none; }
  .compare-now { border-left: 1px solid var(--line); }
}

.steps, .timeline { counter-reset: step; display: grid; gap: 16px; margin: 32px 0; }
.steps li, .timeline li { counter-increment: step; position: relative; padding: 24px 24px 24px 76px; border-radius: var(--radius-lg); background: var(--white); color: var(--copy); font-size: 16px; }
.timeline li { border: 1px solid var(--line); }
.steps li::before, .timeline li::before { content: counter(step); position: absolute; left: 20px; top: 22px; width: 40px; height: 40px; border-radius: 999px; background: var(--electric); color: var(--navy); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 17px; }
.timeline li::before { background: var(--navy); color: var(--white); }
.step-title { font-size: 19px; font-weight: 700; color: var(--navy); margin-bottom: 4px; }
@media (min-width: 900px) {
  .steps { grid-template-columns: repeat(4, 1fr); gap: 24px; margin: 48px 0; }
  .timeline { grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 48px 0; }
  .steps li, .timeline li { padding: 88px 28px 28px; }
  .steps li::before, .timeline li::before { left: 28px; top: 28px; width: 44px; height: 44px; }
}

.faq { display: grid; gap: 16px; margin: 32px 0; }
.faq > div { background: var(--white); border-radius: var(--radius-lg); padding: 24px; display: flex; flex-direction: column; gap: 8px; }
.faq h3 { font-size: 19px; font-weight: 700; color: var(--navy); }
.faq p { font-size: 16px; color: var(--copy); }
@media (min-width: 900px) { .faq { grid-template-columns: 1fr 1fr; gap: 20px; margin: 48px 0; } }

.team-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 32px; }
.team-card { display: flex; flex-direction: column; gap: 12px; }
.team-card--text { padding: 20px; border: 1px solid var(--line); border-radius: var(--radius-lg); justify-content: flex-end; min-height: 120px; }
.team-photo { border-radius: var(--radius-lg); aspect-ratio: 4 / 5; object-fit: cover; }
.team-name { font-size: 17px; font-weight: 700; }
.team-role { font-size: 14px; color: var(--muted); }
@media (min-width: 900px) { .team-grid { grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 48px; } }

.rating { margin-top: 12px; font-size: 16px; color: var(--muted); }
.rating-figure { font-size: 22px; font-weight: 700; color: var(--navy); }
.review-grid { display: grid; gap: 16px; margin-top: 24px; }
.review { background: var(--white); border-radius: 20px; padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.review blockquote { font-size: 19px; line-height: 1.45; font-weight: 600; color: var(--navy); }
.review figcaption { font-size: 14px; color: var(--muted); }
@media (min-width: 900px) { .review-grid { grid-template-columns: repeat(3, 1fr); gap: 24px; } }

.band { background: var(--electric); padding: 48px 0; }
.band-inner { display: flex; flex-direction: column; gap: 20px; }
.band .h2 { margin-top: 0; }
.band p { color: var(--navy); font-size: 17px; margin-top: 8px; }
@media (min-width: 900px) { .band { padding: 88px 0; } .band-inner { flex-direction: row; align-items: center; justify-content: space-between; gap: 48px; } }

/* ---- Thank-you page ---- */
.thanks { background: var(--tint); padding: 48px 0 64px; }
.thanks-inner { max-width: 560px; display: flex; flex-direction: column; gap: 22px; }
.thanks-mark { width: 64px; height: 64px; border-radius: 999px; background: var(--electric); color: var(--navy); display: flex; align-items: center; justify-content: center; }
.thanks-box { display: flex; gap: 14px; align-items: flex-start; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--white); color: var(--copy); }
.thanks-box svg { flex: none; color: var(--deep); }
.thanks-sooner { margin-top: 16px; padding-top: 24px; border-top: 1px solid var(--line-strong); color: var(--muted); font-size: 15px; }
.thanks-link { min-height: 44px; display: flex; align-items: center; font-weight: 600; }
/* Above "Need us sooner?" (Director, 06/10/2026): keep people with YPT first, the phone second. */
.thanks-social { margin-top: 8px; display: flex; flex-direction: column; gap: 12px; }
.thanks-social-title { font-size: 19px; font-weight: 700; color: var(--navy); }
.thanks-social ul { display: flex; flex-direction: column; gap: 10px; }
.thanks-social a { min-height: 48px; display: flex; align-items: center; gap: 12px; padding: 0 16px; border: 1.5px solid var(--line-strong); border-radius: var(--radius); background: var(--white); color: var(--navy); font-weight: 600; text-decoration: none; }
.thanks-social a:hover { border-color: var(--navy); }
.thanks-social svg { flex: none; color: var(--deep); }
@media (min-width: 560px) { .thanks-social ul { flex-direction: row; } .thanks-social li { flex: 1; } }

/* ---- Footer ---- */
.site-footer { background: var(--dark); color: var(--on-navy); padding: 48px 0 calc(48px + var(--bar-space, 0px)); }
.site-footer a { color: var(--on-navy); }
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px; }
.footer-contacts { display: flex; flex-wrap: wrap; gap: 28px 56px; font-size: 15px; }
.footer-label { font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--footer-text); margin-bottom: 4px; }
.footer-contacts a { font-weight: 600; text-decoration: none; }
.footer-rule { height: 1px; background: #33475c; margin: 28px 0; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; font-size: 13px; color: var(--footer-text); }

/* ---- The bar that follows you (site.js shows it once the form is out of sight) ---- */
.sticky-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; background: var(--white); border-top: 1px solid var(--line); box-shadow: var(--shadow-bar); padding: 12px 0 calc(12px + env(safe-area-inset-bottom)); transform: translateY(110%); transition: transform 200ms ease-out; }
.sticky-bar.is-shown { transform: translateY(0); }
.sticky-bar-inner { display: flex; align-items: center; gap: 10px; }
.sticky-bar-text { display: none; }
.sticky-bar-call { flex: none; width: 56px; min-height: 56px; display: flex; align-items: center; justify-content: center; border: 1.5px solid var(--line-strong); border-radius: var(--radius); color: var(--muted); }
.sticky-bar-button { flex: 1; }
body.has-bar { --bar-space: 80px; }
@media (min-width: 900px) {
  .sticky-bar-inner { justify-content: space-between; gap: 24px; }
  .sticky-bar-text { display: block; font-size: 15px; color: var(--muted); }
  .sticky-bar-text strong { font-size: 18px; color: var(--navy); margin-right: 10px; }
  .sticky-bar-call { display: none; }
  .sticky-bar-button { flex: none; }
}
