/* WeSurvey — C3 "Plum & Lilac" theme.
   Plum masthead and closing band, lilac reading surface, white bands for emphasis.
   Newsreader (display serif) over Figtree (body sans). */

/* Fonts are served from this site (../fonts/), not Google. Figtree and Newsreader are
   licensed under the SIL Open Font License 1.1. Variable fonts: Figtree 400-600,
   Newsreader 400-500 with optical sizing; latin and latin-ext subsets only. */
@font-face {
  font-family: 'Figtree';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("../fonts/figtree-normal-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Figtree';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("../fonts/figtree-normal-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Newsreader';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/newsreader-italic-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Newsreader';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/newsreader-italic-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Newsreader';
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url("../fonts/newsreader-normal-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Newsreader';
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url("../fonts/newsreader-normal-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --plum: #5A2450;
  --plum-deep: #4A1D42;
  --on-plum: #FCEFF7;
  --on-plum-muted: #E6CCDD;
  --pink: #FF9ACD;
  --pink-ink: #3A1234;
  --lilac: #F3ECF2;
  --white: #FFFFFF;
  --ink: #2B1428;
  --muted: #5E4A5B;
  --muted-2: #7A6377;
  --line: #DCCBD8;
  --line-soft: #E6D8E2;
  --accent: #A3195B;
  --accent-hover: #6E0F3C;

  --font-display: Newsreader, Georgia, "Times New Roman", serif;
  --font-body: Figtree, "Segoe UI", Helvetica, Arial, sans-serif;
}

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

body {
  margin: 0;
  background: var(--lilac);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--accent); }
a:hover { color: var(--accent-hover); }
a:focus-visible, .btn:focus-visible { outline: 3px solid var(--pink); outline-offset: 3px; }

.wrap { max-width: 1220px; margin: 0 auto; padding-inline: 24px; }

/* ---------- Masthead (header + hero on plum) ---------- */

.masthead { background: var(--plum); color: var(--on-plum); }
.masthead a { color: var(--on-plum); }

.site-header .wrap {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 16px; padding-block: 26px;
}
.logo {
  text-decoration: none; font-family: var(--font-display); font-size: 28px; font-weight: 500;
  letter-spacing: -0.01em; color: var(--on-plum);
}
.logo span { color: var(--pink); font-style: italic; }

.site-nav { display: flex; flex-wrap: wrap; gap: 6px 28px; font-size: 15px; font-weight: 500; }
.site-nav a { text-decoration: none; color: var(--on-plum-muted); padding-block: 2px; }
.site-nav a:hover { color: var(--on-plum); }
.site-nav a[aria-current="page"] { color: var(--on-plum); border-bottom: 1px solid var(--pink); }

.hero .wrap { padding-block: 64px 72px; }
.eyebrow {
  margin: 0 0 18px; font-size: 13px; font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--pink);
}
.hero h1 {
  margin: 0 0 28px; font-family: var(--font-display); font-weight: 400;
  font-size: clamp(40px, 6vw, 80px); line-height: 1; letter-spacing: -0.03em;
  text-wrap: balance; max-width: 13em;
}
.hero h1 em { color: var(--pink); }
.hero--home .wrap { padding-block: 72px; }
.hero--home h1 { font-size: clamp(48px, 8vw, 112px); line-height: 0.98; max-width: 11em; margin-bottom: 40px; }

.hero-foot {
  display: flex; flex-wrap: wrap; gap: 32px 64px; align-items: flex-end; justify-content: space-between;
}
.lead { margin: 0; flex: 1 1 460px; min-width: 0; max-width: 38em; font-size: 19px; color: var(--on-plum-muted); }

.btn {
  display: inline-flex; gap: 12px; align-items: center; text-decoration: none; font-weight: 600;
  background: var(--pink); color: var(--pink-ink); padding: 16px 28px; border-radius: 999px;
}
.masthead .btn, .cta .btn { color: var(--pink-ink); }
.btn:hover { background: #FFB8DA; color: var(--pink-ink); }

/* ---------- Bands ---------- */

.statement { background: var(--white); border-bottom: 1px solid var(--line); }
.statement .wrap { padding-block: 28px; }
.statement p {
  margin: 0; font-family: var(--font-display); font-size: clamp(26px, 3.4vw, 40px);
  line-height: 1.2; text-wrap: balance;
}
.statement em { color: var(--accent); }

.section .wrap { padding-block: 88px; }
.section--white { background: var(--white); border-block: 1px solid var(--line); }

.label {
  margin: 0 0 24px; font-size: 13px; font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--muted-2);
}
.label--accent { color: var(--accent); }

/* Home: services list */
.service-list { display: flex; flex-direction: column; }
.service-row {
  display: flex; flex-wrap: wrap; gap: 12px 48px; align-items: baseline; padding-block: 30px;
  border-top: 1px solid var(--line); text-decoration: none; color: var(--ink);
}
.service-row:last-child { border-bottom: 1px solid var(--line); }
.service-row h3 {
  margin: 0; flex: 0 1 300px; font-family: var(--font-display); font-weight: 400;
  font-size: 44px; line-height: 1;
}
.service-row p { margin: 0; flex: 1 1 420px; min-width: 0; color: var(--muted); }
.service-row .arrow { color: var(--accent); font-size: 26px; transition: transform 0.2s ease; }
.service-row:hover { color: var(--ink); }
.service-row:hover .arrow { transform: translateX(6px); }

/* Trust band */
.trust { display: flex; flex-wrap: wrap; gap: 48px 80px; }
.trust > div:first-child { flex: 1 1 420px; min-width: 0; }
.trust-quote {
  margin: 0; font-family: var(--font-display); font-size: clamp(28px, 3.4vw, 42px);
  line-height: 1.2; letter-spacing: -0.01em; text-wrap: balance;
}
.trust-list { flex: 1 1 360px; min-width: 0; display: flex; flex-direction: column; padding-top: 6px; }
.trust-item { display: flex; flex-direction: column; gap: 4px; padding-block: 20px; border-bottom: 1px solid var(--line-soft); }
.trust-item:first-child { padding-top: 0; }
.trust-item:last-child { border-bottom: 0; }
.trust-item strong { font-weight: 600; }
.trust-item span { color: var(--muted); font-size: 16px; }

/* Closing call to action */
.cta { background: var(--plum); color: var(--on-plum); }
.cta .wrap {
  padding-block: 88px 80px; display: flex; flex-wrap: wrap; gap: 32px 64px;
  align-items: flex-end; justify-content: space-between;
}
.cta-text { flex: 1 1 520px; min-width: 0; }
.cta h2 {
  margin: 0 0 16px; font-family: var(--font-display); font-weight: 400;
  font-size: clamp(36px, 5vw, 64px); line-height: 1.05; letter-spacing: -0.02em; text-wrap: balance;
}
.cta h2 em { color: var(--pink); }
.cta p { margin: 0; font-size: 19px; color: var(--on-plum-muted); max-width: 34em; }
.cta p a { color: var(--on-plum); }
.cta-actions { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.cta-actions .phone { color: var(--on-plum-muted); font-size: 16px; }

.site-footer { background: var(--plum-deep); color: var(--on-plum-muted); }
.site-footer .wrap {
  padding-block: 32px 40px; display: flex; flex-wrap: wrap; gap: 16px 24px; font-size: 15px;
}
.site-footer .wrap > span { margin-right: auto; }
.site-footer a { color: var(--on-plum); }

/* ---------- Inner pages: article + aside ---------- */

.page-body .wrap {
  padding-block: 80px 96px;
  display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 64px; align-items: start;
}
.page-body--single .wrap { grid-template-columns: minmax(0, 1fr); }

.prose { max-width: 40em; min-width: 0; }
.prose > * + * { margin-top: 0; }
.prose p { margin: 0 0 20px; }
.prose h2 {
  margin: 56px 0 16px; font-family: var(--font-display); font-weight: 400;
  font-size: clamp(28px, 3vw, 36px); line-height: 1.15; letter-spacing: -0.01em; text-wrap: balance;
}
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin: 32px 0 8px; font-size: 19px; font-weight: 600; }
.prose strong { font-weight: 600; }

.ticks { list-style: none; margin: 0 0 24px; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.ticks li { position: relative; padding-left: 32px; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 4px; width: 18px; height: 18px; border-radius: 4px;
  background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M4.5 9.5l3 3 6-6.5' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 18px no-repeat;
}

.aside { display: flex; flex-direction: column; gap: 24px; }
/* Artefact images have white grounds, so they sit directly on a white panel without a frame */
.examples { display: flex; flex-direction: column; gap: 20px; align-items: center; }
.figure-panel {
  width: fit-content; max-width: 100%;
  margin: 32px 0; padding: 20px; background: var(--white); border: 1px solid var(--line); border-radius: 14px;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
}
.figure-panel figcaption { font-size: 14px; color: var(--muted-2); }
.panel { background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 26px; }
.panel h2 { margin: 0 0 16px; font-size: 13px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); }
.panel p { margin: 0; color: var(--muted); font-size: 16px; }
.fact + .fact { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line-soft); }
.fact strong {
  display: block; font-family: var(--font-display); font-weight: 400; font-size: 34px;
  line-height: 1.1; color: var(--ink);
}
.fact span { display: block; color: var(--muted); font-size: 15px; margin-top: 4px; }
.panel .btn { margin-top: 18px; background: var(--accent); color: var(--white); padding: 12px 22px; }
.panel .btn:hover { background: var(--accent-hover); color: var(--white); }

/* Screenshots of real work, shown as framed sheets */
.shot { margin: 32px 0; }
.shot img {
  background: var(--white); border: 1px solid var(--line); border-radius: 6px; padding: 10px;
  box-shadow: 0 14px 30px rgba(74, 29, 66, 0.10);
}
.shot figcaption { margin-top: 10px; font-size: 14px; color: var(--muted-2); }
.aside .shot { margin: 0; }

.gallery {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 24px;
  margin: 32px 0; align-items: start;
}
.gallery .shot { margin: 0; }

.logo-strip { margin: 40px 0 0; padding: 20px; background: var(--white); border: 1px solid var(--line); border-radius: 14px; }

/* Three project types */
.cards { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; margin: 24px 0 32px; }
.card { background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 24px; }
.card h3 { margin: 0 0 8px; font-family: var(--font-display); font-weight: 400; font-size: 26px; line-height: 1.15; }
.card p { margin: 0; font-size: 16px; color: var(--muted); }

/* Research project index */
.projects { list-style: none; margin: 24px 0 32px; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); border-top: 1px solid var(--line); }
.projects li { padding: 16px 16px 16px 0; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 2px; }
.projects small { font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); }

/* About: director */
.person { display: flex; gap: 24px; align-items: flex-start; margin: 32px 0; padding: 24px; background: var(--white); border: 1px solid var(--line); border-radius: 14px; }
.person img { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.person p { margin: 0; }
.person h3 { margin: 0 0 6px; font-family: var(--font-display); font-weight: 400; font-size: 26px; }
.badges { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; margin: 24px 0 0; }
.badges img { height: 72px; width: auto; background: var(--white); border: 1px solid var(--line); border-radius: 10px; padding: 10px; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.contact-grid .panel h2 { margin-bottom: 12px; }
.panel .contact-big { color: var(--ink); font-family: var(--font-display); font-size: 24px; line-height: 1.2; overflow-wrap: anywhere; }
address { font-style: normal; font-size: 19px; line-height: 1.6; }

/* Enquiry form */
.form-panel { padding: 32px; }
.form-panel > h2 { margin-bottom: 8px; }
.panel .form-intro { margin: 0 0 28px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 24px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field--wide { grid-column: 1 / -1; }
.field label { font-size: 15px; font-weight: 600; color: var(--ink); }
.field .optional { font-weight: 400; color: var(--muted-2); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--ink); background: var(--white);
  border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px;
}
.field textarea { min-height: 160px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(163, 25, 91, 0.18);
}
.field [aria-invalid="true"] { border-color: var(--accent); }
.field-error { font-size: 14px; color: var(--accent); }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-top: 28px; }
.form-note { margin: 0; font-size: 14px; color: var(--muted-2); max-width: 30em; }
button.btn { border: 0; font: inherit; font-weight: 600; cursor: pointer; }
.panel button.btn { margin-top: 0; }
button.btn[disabled] { opacity: 0.6; cursor: wait; }
.form-status { margin: 20px 0 0; padding: 14px 16px; border-radius: 8px; background: var(--lilac); color: var(--ink); }
.form-status[data-kind="error"] { background: #FBE3EE; }
.form-done h2 { margin: 0 0 12px; font-family: var(--font-display); font-weight: 400; font-size: 32px; letter-spacing: 0; text-transform: none; color: var(--ink); }
.form-done p { color: var(--ink); font-size: 17px; }
/* Honeypot: hidden from people and screen readers, visible to naive bots */
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

@media (max-width: 600px) {
  .form-grid { grid-template-columns: minmax(0, 1fr); }
  .form-panel { padding: 22px; }
}

/* Terms */
.legal h2 { font-size: 24px; margin-top: 40px; }
.legal h2.section-title { font-size: clamp(30px, 4vw, 42px); margin: 0 0 8px; }
.legal h2.section-title--break { margin-top: 80px; padding-top: 56px; border-top: 1px solid var(--line); }
.legal .updated { font-size: 14px; color: var(--muted-2); }
.page-contents {
  display: flex; flex-wrap: wrap; gap: 8px 24px; margin: 0 0 48px; padding: 16px 20px;
  background: var(--white); border: 1px solid var(--line); border-radius: 14px; font-weight: 600;
}
[id] { scroll-margin-top: 24px; }

@media (max-width: 900px) {
  .page-body .wrap { grid-template-columns: minmax(0, 1fr); gap: 48px; padding-block: 56px 72px; }
  .section .wrap { padding-block: 64px; }
  .service-row h3 { font-size: 38px; }
}

@media (max-width: 480px) {
  .person { flex-direction: column; }
  .hero .wrap { padding-block: 40px 56px; }
}

@media (prefers-reduced-motion: reduce) {
  .service-row .arrow { transition: none; }
}
