/* David Hayes V1 "The Colour Room" - light heritage editorial
   Brand colours sampled from his own logo: navy #26265E, azure #3B62AF */

@font-face { font-family:'Fraunces'; src:url('fonts/fraunces-500.woff2') format('woff2'); font-weight:500; font-style:normal; font-display:swap; }
@font-face { font-family:'Fraunces'; src:url('fonts/fraunces-600.woff2') format('woff2'); font-weight:600; font-style:normal; font-display:swap; }
@font-face { font-family:'Inter'; src:url('fonts/inter-400.woff2') format('woff2'); font-weight:400; font-style:normal; font-display:swap; }
@font-face { font-family:'Inter'; src:url('fonts/inter-500.woff2') format('woff2'); font-weight:500; font-style:normal; font-display:swap; }
@font-face { font-family:'Inter'; src:url('fonts/inter-600.woff2') format('woff2'); font-weight:600; font-style:normal; font-display:swap; }

:root {
  color-scheme: light;
  --bg: #F8F5EF;
  --card: #FFFFFF;
  --ink: #23253A;
  --navy: #26265E;
  --azure: #3B62AF;
  --muted: #5A5C6E;
  --line: #E5E0D5;
  --cream: #F8F5EF;
  --pad: 96px;
  --maxw: 1100px;
}

* { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior:smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior:auto; }
  *, *::before, *::after {
    transition-duration: .001ms !important;
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
  }
}
body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-align: center;
}
img { max-width:100%; height:auto; display:block; }

/* skip link - visible only on focus */
.skip {
  position:absolute; left:50%; transform:translateX(-50%) translateY(-140%);
  top:8px; z-index:100;
  background:var(--navy); color:var(--cream);
  padding:12px 20px; border-radius:999px;
  font-size:14px; font-weight:600; text-decoration:none;
  transition: transform .18s ease;
}
.skip:focus { transform:translateX(-50%) translateY(0); }

/* focus ring - one visible style everywhere, recoloured on the dark bands */
:focus-visible { outline:3px solid var(--azure); outline-offset:3px; border-radius:4px; }
.cta-band :focus-visible, .sticky-bar :focus-visible, .skip:focus-visible { outline-color: var(--cream); }

/* ---------- header ---------- */
.hdr {
  position: sticky; top:0; z-index:50;
  background: rgba(248,245,239,.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  transition: transform .28s ease;
}
.hdr.hdr-hide { transform: translateY(-100%); }
.hdr-in {
  max-width: var(--maxw);
  margin-inline:auto;
  padding: 14px 24px;
  display:flex; align-items:center; justify-content:space-between; gap:24px;
}
.brand { display:flex; align-items:center; gap:12px; min-height:44px; text-decoration:none; color:inherit; text-align:left; }
.brand-drop { width:20px; height:27px; flex:none; }
.brand-drop path { fill: var(--azure); }
.brand-txt { display:flex; flex-direction:column; }
.brand-name { font-family:'Fraunces', serif; font-weight:600; font-size:21px; line-height:1.1; color:var(--navy); letter-spacing:.01em; }
.brand-strap { white-space:nowrap; font-size:10px; font-weight:600; letter-spacing:.18em; text-transform:uppercase; color:var(--muted); margin-top:3px; }
.nav { display:flex; gap:28px; }
.nav a { font-size:14px; font-weight:500; color:var(--muted); text-decoration:none; transition:color .2s; }
.nav a:hover { color:var(--navy); }
.hdr-cta { flex:none; }
.menu-btn { display:none; background:none; border:0; cursor:pointer; color:var(--navy); padding:0; }
.mobnav { display:none; }
@media (max-width: 860px) {
  .nav { display:none; }
  .hdr .hdr-cta { display:none; }
  .hdr-in { display:grid; grid-template-columns: 44px 1fr 44px; align-items:center; }
  .brand { justify-self:center; }
  .menu-btn { display:flex; align-items:center; justify-content:center; width:44px; height:44px; }
  .menu-btn svg { width:22px; height:22px; }
  .mobnav.open { display:block; position:absolute; top:100%; left:0; right:0; background:var(--bg); border-bottom:1px solid var(--line); box-shadow: 0 12px 24px rgba(35,37,58,.08); }
  .mobnav a { display:block; padding:15px 24px; text-align:center; color:var(--ink); text-decoration:none; font-weight:500; font-size:15px; border-top:1px solid var(--line); }
  .mobnav a:last-child { color:var(--navy); font-weight:600; }
}
/* the strap cannot wrap, so below this it comes out rather than inflate the
   header. The footer still carries the full name. */
@media (max-width: 520px) {
  .brand-strap { display:none; }
  .brand-name { font-size:20px; }
}

/* ---------- buttons ---------- */
.btn {
  display:inline-flex; align-items:center; justify-content:center;
  padding: 14px 30px;
  border-radius: 999px;
  font-family:'Inter', sans-serif;
  font-size:15px; font-weight:600;
  text-decoration:none;
  cursor:pointer;
  border: 1px solid transparent;
  transition: background .2s, color .2s, border-color .2s, transform .1s;
}
.btn:active { transform: translateY(1px); }
.btn-solid { background: var(--navy); color: var(--cream); }
.btn-solid:hover { background: var(--azure); }
.btn-ghost { background: transparent; color: var(--ink); border-color: #C8C2B4; }
.btn-ghost:hover { border-color: var(--navy); color: var(--navy); }
.btn-cream { background: var(--cream); color: var(--navy); border:0; }
.btn-cream:hover { background:#fff; }
.btn-cream-ghost { background: transparent; color: var(--cream); border-color: rgba(248,245,239,.45); }
.btn-cream-ghost:hover { border-color: var(--cream); }
.hdr .btn { padding: 12px 22px; font-size:14px; }

/* ---------- sections ---------- */
.sec {
  max-width: var(--maxw);
  margin-inline:auto;
  padding: var(--pad) 24px;
  border-bottom: 1px solid var(--line);
}
.sec-tight { padding: calc(var(--pad) / 2) 24px; }
.eyebrow {
  font-size:12px; font-weight:600; letter-spacing:.16em; text-transform:uppercase;
  color: var(--azure);
  margin-bottom: 18px;
}
h1, h2, h3 { font-family:'Fraunces', serif; font-weight:600; color:var(--navy); }
h1 { font-size: clamp(40px, 6.5vw, 62px); line-height:1.08; letter-spacing:-.015em; max-width: 18ch; margin-inline:auto; margin-bottom:22px; }
h2 { font-size: clamp(30px, 4.4vw, 44px); line-height:1.12; letter-spacing:-.01em; margin-bottom: 44px; }
.lede { font-size:19px; color:var(--muted); max-width: 46ch; margin-inline:auto; margin-bottom: 36px; }
.cta-row { display:flex; gap:14px; justify-content:center; flex-wrap:wrap; }

/* hero */
.hero { padding-top: var(--pad); }
.hero-photo { margin-top: 56px; }
.hero-photo img { border-radius: 10px; border:1px solid var(--line); width:100%; height:auto; }
.hero-photo figcaption { font-size:13px; color:var(--muted); margin-top:12px; }

/* trust */
.trust { color: var(--muted); font-size:16px; max-width: 60ch; margin-inline:auto; }

/* services */
.svc-grid { display:grid; grid-template-columns: repeat(3, 1fr); gap:22px; }
.svc {
  background: var(--card);
  border:1px solid var(--line);
  border-radius:10px;
  padding: 18px 18px 26px;
  color:inherit;
}
.svc img { border-radius:6px; aspect-ratio:1; object-fit:cover; margin-bottom:20px; }
.svc h3 { font-size:22px; margin-bottom:8px; }
.svc p { font-size:15px; color:var(--muted); line-height:1.55; }
@media (max-width: 960px) { .svc-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .svc-grid { grid-template-columns: 1fr; } }

/* before/after */
.ba-wrap { display:grid; grid-template-columns:1fr 1fr; gap:18px; margin-bottom:36px; }
.ba { position:relative; }
.ba img { border-radius:10px; border:1px solid var(--line); }
.ba-tag {
  position:absolute; top:12px; left:12px;
  background: rgba(35,37,58,.82); color:#fff;
  font-size:11px; font-weight:600; letter-spacing:.14em; text-transform:uppercase;
  padding: 5px 12px; border-radius:999px;
}
.ba-tag-after { background: var(--azure); }
@media (max-width: 640px) { .ba-wrap { grid-template-columns:1fr; } }
.prose { max-width: 62ch; margin-inline:auto; }
.prose p { margin-bottom: 16px; color:var(--ink); }
.prose p:last-child { margin-bottom:0; }
.prose-narrow { max-width: 56ch; margin-inline:auto; color:var(--muted); }

/* colour swatches */
.swatches { display:flex; gap:34px; justify-content:center; flex-wrap:wrap; margin-bottom:40px; }
.sw { display:flex; flex-direction:column; align-items:center; gap:12px; }
.sw-dot { width:74px; height:74px; border-radius:50%; }
.sw-name { font-size:13px; font-weight:500; color:var(--ink); }

/* gallery */
.gal { display:grid; grid-template-columns: repeat(3, 1fr); gap:18px; }
.gal figure { text-align:center; }
.gal img { border-radius:10px; border:1px solid var(--line); }
.gal figcaption { font-size:13px; color:var(--muted); margin-top:10px; display:flex; align-items:center; justify-content:center; gap:8px; }
.chip { width:13px; height:13px; border-radius:50%; display:inline-block; box-shadow: inset 0 0 0 1px rgba(0,0,0,.08); }
.gal-note { font-size:13px; color:var(--muted); margin-top:28px; }
@media (max-width: 900px) { .gal { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .gal { grid-template-columns: 1fr; } }

/* steps */
.steps { list-style:none; display:grid; grid-template-columns:repeat(4, 1fr); gap:22px; counter-reset:step; }
.steps li { background:var(--card); border:1px solid var(--line); border-radius:10px; padding:30px 22px; }
.step-n {
  display:inline-flex; align-items:center; justify-content:center;
  width:38px; height:38px; border-radius:50%;
  background:var(--navy); color:var(--cream);
  font-family:'Fraunces', serif; font-weight:600; font-size:17px;
  margin-bottom:16px;
}
.steps h3 { font-size:19px; margin-bottom:8px; }
.steps p { font-size:14px; color:var(--muted); line-height:1.55; }
@media (max-width: 900px) { .steps { grid-template-columns:repeat(2, 1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns:1fr; } }

/* quote */
.quote p { font-family:'Fraunces', serif; font-weight:500; font-size: clamp(26px, 3.6vw, 36px); line-height:1.3; color:var(--navy); max-width: 26ch; margin-inline:auto; margin-bottom:20px; }
.quote cite { font-style:normal; font-size:15px; color:var(--muted); }

/* CTA band */
.cta-band { background: var(--navy); color: var(--cream); }
.cta-in { max-width: 640px; margin-inline:auto; padding: var(--pad) 24px; }
.cta-band h2 { color: var(--cream); margin-bottom:14px; }
.cta-band > .cta-in > p { color: rgba(248,245,239,.8); margin-bottom:32px; }
.qform { margin-top: 44px; text-align:left; display:flex; flex-direction:column; gap:8px; }
.qform label { font-size:13px; font-weight:600; letter-spacing:.04em; color:rgba(248,245,239,.85); margin-top:12px; }
.qform input, .qform textarea {
  width:100%;
  background: rgba(255,255,255,.08);
  border:1px solid rgba(248,245,239,.3);
  border-radius:8px;
  padding: 13px 14px;
  color: var(--cream);
  font-family:'Inter', sans-serif; font-size:16px;
}
.qform input:focus, .qform textarea:focus { border-color: var(--cream); }
.qform button { margin-top:22px; margin-inline:auto; }
.form-note { font-size:14px; color: rgba(248,245,239,.85); text-align:center; margin-top:14px; }

/* footer */
.foot {
  padding: 64px 24px calc(64px + 68px);
  display:flex; flex-direction:column; align-items:center; gap:22px;
}
.brand-foot { justify-content:center; }
.foot-nav { display:flex; gap:10px; flex-wrap:wrap; justify-content:center; }
.foot-nav a, .foot-contact a {
  display:inline-flex; align-items:center; min-height:44px; padding:0 6px;
  color: var(--muted); font-size:14px; text-decoration:underline;
  text-decoration-color: #CFC9BB; text-decoration-thickness:1px; text-underline-offset:4px;
  transition: color .2s, text-decoration-color .2s;
}
.foot-nav a:hover, .foot-contact a:hover { color:var(--navy); text-decoration-color: var(--navy); }
.foot-contact { color: var(--muted); font-size:14px; }
.foot-powered { font-size:13px; color:var(--muted); }
.foot-powered a {
  display:inline-flex; align-items:center; min-height:44px; padding:0 4px;
  color: inherit; text-decoration:underline;
  text-decoration-color:#CFC9BB; text-decoration-thickness:1px; text-underline-offset:4px;
}
.foot-powered a:hover { color: var(--navy); }
@media (min-width: 861px) { .foot { padding-bottom: 64px; } }

/* sticky mobile bar */
.sticky-bar {
  position:fixed; bottom:0; left:0; right:0; z-index:60;
  display:none;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
  background: var(--navy);
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
}
.sticky-bar a {
  display:flex; align-items:center; justify-content:center;
  padding: 13px 6px;
  color: var(--cream); font-size:14px; font-weight:600; text-decoration:none;
  border: 1px solid rgba(248,245,239,.4);
  border-radius: 999px;
}
.sticky-bar a:last-child { background: var(--azure); border-color: transparent; }
@media (max-width: 860px) { .sticky-bar { display:grid; } }

/* mobile rhythm */
@media (max-width: 640px) {
  :root { --pad: 64px; }
  body { font-size:16px; }
}

/* anchor offset under sticky header */
section[id], .sec, main[id] { scroll-margin-top: 96px; }

/* FAQ - open list, questions serif, answers left-aligned for reading */
.faq { max-width: 680px; margin-inline:auto; text-align:left; }
.qa { padding: 26px 0; border-bottom: 1px solid var(--line); }
.qa:last-child { border-bottom:0; }
.qa h3 { font-size: 21px; margin-bottom: 10px; }
.qa p { font-size: 15.5px; color: var(--muted); line-height: 1.65; }

/* ---------- even section rhythm ---------- */
.sec > :last-child { margin-bottom: 0; }
.qa:last-child { padding-bottom: 0; }

/* ---------- back to top: blurred chip, inverts to the ground under it ---------- */
.btt {
  position: fixed; right: 16px; bottom: 20px; z-index: 70;
  width: 46px; height: 46px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; padding: 0;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .25s, transform .25s, visibility .25s, background .25s, color .25s, border-color .25s;
}
.btt.btt-show { opacity: 1; visibility: visible; transform: none; }
.btt svg { width: 18px; height: 18px; }
.btt.on-light { background: rgba(35,37,58,.08); border: 1px solid rgba(35,37,58,.4); color: var(--ink); }
.btt.on-dark { background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.5); color: var(--cream); }
@media (max-width: 860px) { .btt { bottom: calc(84px + env(safe-area-inset-bottom)); right: 14px; } }
@media (prefers-reduced-motion: reduce) { .btt { transition: none; } }
