/* ==========================================================================
   BRELLON — Homepage (header, footer and mobile bar live in chrome.css)
   Warm white, soft stone, muted bronze, charcoal type. Square, architectural.
   ========================================================================== */

@font-face { font-family: "Jost"; src: url("/assets/fonts/jost-latin.woff2") format("woff2"); font-weight: 300 700; font-display: swap; }
@font-face { font-family: "Cormorant Garamond"; src: url("/assets/fonts/cormorant-garamond-latin.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }
@font-face { font-family: "Jost Fallback"; src: local("Arial"); size-adjust: 97%; ascent-override: 104%; descent-override: 30%; }
@font-face { font-family: "Cormorant Fallback"; src: local("Georgia"); size-adjust: 86%; ascent-override: 106%; descent-override: 32%; }

:root {
  --white: #fff;
  --bg: #fbfaf7;          /* warm white */
  --tint: #f5f1ea;        /* off-white / light beige */
  --stone: #ece6db;       /* soft stone */
  --line: #e2dbcf;
  --grey: #8a847c;
  --text-2: #5f5a54;
  --text: #2e2c29;
  --charcoal: #1f1e1c;
  --bronze: #8e6e44;      /* fills: white text 4.7:1 */
  --bronze-dark: #775b37;
  --bronze-text: #7d6039; /* accent text on light: 5.1:1 */
  --champagne: #d9c4a0;

  --serif: "Cormorant Garamond", "Cormorant Fallback", Georgia, serif;
  --sans: "Jost", "Jost Fallback", Arial, Helvetica, sans-serif;

  --gutter: clamp(18px, 5vw, 64.8px);   /* same side gutter as the header and inner pages */
  /* content width shared with the header, footer and inner pages (.container) */
  --content: 1200px;
  /* side padding that keeps content on the shared 1200px column while backgrounds run full width */
  --edge: max(var(--gutter), calc((100% - var(--content)) / 2));
  --section: clamp(3rem, 6vw, 4.5rem);
  --header-h: 72px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --shadow: 0 1px 2px rgba(31, 30, 28, .05), 0 14px 32px -14px rgba(31, 30, 28, .22);
}
@media (min-width: 1200px) { :root { --header-h: 88px; } }

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 1rem/1.6 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg { display: block; max-width: 100%; }
img { height: auto; background: var(--stone); }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3 { margin: 0; font-weight: 500; line-height: 1.1; text-wrap: balance; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
figure, blockquote { margin: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--bronze); outline-offset: 3px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.skip-link { position: absolute; left: 1rem; top: -100px; z-index: 300; background: var(--charcoal); color: #fff; padding: .7rem 1rem; }
.skip-link:focus { top: 1rem; }
.icon { width: 1.1em; height: 1.1em; flex: none; }
.icon--flip { transform: scaleX(-1); }
.hp { position: absolute; left: -9999px; }

/* ---------- type ---------- */
.eyebrow { font-size: .75rem; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--bronze-text); margin-bottom: .6rem; }
.h2 { font-family: var(--serif); font-size: clamp(1.9rem, 1.2rem + 2vw, 2.6rem); color: var(--charcoal); }
.h3 { font-family: var(--serif); font-size: clamp(1.5rem, 1.1rem + 1vw, 1.9rem); color: var(--charcoal); }
.section__lead { color: var(--text-2); margin-top: .6rem; max-width: 62ch; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .65rem; min-height: 46px; padding: .7rem 1.35rem; border: 1px solid transparent; border-radius: 1px; font-size: .78rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; line-height: 1.2; transition: background-color .2s, color .2s, border-color .2s; }
.btn .icon { transition: transform .25s var(--ease); }
.btn:hover .icon { transform: translateX(3px); }
.btn--lg { min-height: 54px; padding-inline: 1.7rem; }
.btn--block { width: 100%; }
.btn--bronze { background: var(--bronze); color: #fff; }
.btn--bronze:hover { background: var(--bronze-dark); }
.btn--outline { background: var(--white); border-color: var(--charcoal); color: var(--charcoal); }
.btn--outline:hover { background: var(--charcoal); color: #fff; }
.btn--ghost { border-color: var(--charcoal); color: var(--charcoal); font-size: .72rem; min-height: 40px; }
.btn--ghost:hover { background: var(--charcoal); color: #fff; }
.btn--white { background: #fff; color: var(--charcoal); }
.btn--white:hover { background: var(--tint); }
.btn-row { display: flex; flex-wrap: wrap; gap: .8rem; }
/* inline so the arrow wraps with the last word instead of floating beside a two-line label */
.more { display: inline-block; font-size: .7rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--bronze-text); }
.more .icon { display: inline-block; vertical-align: -.2em; margin-left: .45rem; transition: transform .25s var(--ease); }
.more__end { white-space: nowrap; }   /* last word + arrow never split */
.more:hover .icon { transform: translateX(3px); }

/* ==========================================================================
   PAGE LAYOUT
   ========================================================================== */
.page__main { display: block; min-width: 0; }
.section { padding: var(--section) var(--edge); }
.section--tint { background: var(--tint); }
.section__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1.2rem 2rem; margin-bottom: 2rem; }


/* ==========================================================================
   HERO
   ========================================================================== */
.hero { position: relative; background: var(--bg); display: grid; }
.hero__media { display: block; margin: 1.25rem var(--edge) 0; aspect-ratio: 4 / 3; overflow: hidden; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 55% 80%; }
@media (min-width: 600px) and (max-width: 899px) { .hero__media { aspect-ratio: 16 / 9; } }
.hero__content { padding: 2rem var(--edge) 0; }
.hero__title { font-family: var(--serif); font-size: clamp(2.2rem, 1.2rem + 3.6vw, 3.6rem); line-height: 1.04; color: var(--charcoal); letter-spacing: -.005em; max-width: 15ch; }
.hero__lead { margin-top: 1.1rem; color: var(--text-2); font-size: 1.02rem; max-width: 56ch; }
.hero .btn-row { margin-top: 1.8rem; }

.trust { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem 1.2rem; padding: 2rem var(--edge); }
.trust li { display: flex; align-items: center; gap: .7rem; font-size: .66rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; line-height: 1.35; color: var(--text); }
.trust .icon { width: 26px; height: 26px; color: var(--bronze); }

@media (min-width: 900px) {
  .hero { grid-template-columns: minmax(0, 1fr); min-height: 600px; overflow: hidden; }
  /* photo sits inside the centred content column (right edge = content edge) */
  .hero__media { position: absolute; inset: 0 var(--edge) 0 max(38%, calc(var(--edge) + 460px)); margin: 0; aspect-ratio: auto; }
  .hero__media::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, var(--bg) 0%, rgba(251, 250, 247, .75) 22%, rgba(251, 250, 247, 0) 48%); }
  .hero__content { position: relative; z-index: 2; padding: 3.2rem var(--edge) 0; }
  .hero__title { max-width: 19ch; }
  .hero__lead { max-width: 52ch; }
  .trust { position: relative; z-index: 2; display: flex; flex-wrap: wrap; gap: 1rem 1.8rem; padding: 2.2rem var(--edge) 2.4rem; }
}

/* ==========================================================================
   SERVICES
   ========================================================================== */
/* 6 cards: 2 → 3 → 6 columns, so no row is left with an orphan */
.cards { display: grid; gap: 1rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 700px) { .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .cards--6 { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.card { background: #fff; border: 1px solid var(--line); transition: box-shadow .25s, transform .25s var(--ease); }
.card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.card__link { display: flex; flex-direction: column; height: 100%; }
.card__media { overflow: hidden; aspect-ratio: 4 / 3; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.card:hover .card__media img { transform: scale(1.04); }
.card__body { display: flex; flex-direction: column; gap: .4rem; padding: 1rem 1rem 1.1rem; flex: 1; }
.card__title { font-family: var(--serif); font-size: 1.3rem; color: var(--charcoal); }
.card__text { font-size: .82rem; color: var(--text-2); line-height: 1.5; flex: 1; }
.card__more { display: inline-flex; align-items: center; gap: .4rem; margin-top: .6rem; font-size: .66rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--bronze-text); }

/* ==========================================================================
   WORK IN PROGRESS
   ========================================================================== */
.stages { display: grid; gap: 1.2rem; margin-top: 1.8rem; }
.stage { background: #fff; border: 1px solid var(--line); position: relative; }
.stage img { width: 100%; aspect-ratio: 4 / 2.8; object-fit: cover; }
.stage__label { padding: .9rem 1rem 0; font-family: var(--sans); font-size: .72rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--bronze-text); }
.stage p { padding: .3rem 1rem 1rem; font-size: .84rem; color: var(--text-2); }
@media (min-width: 640px) {
  .stages { grid-template-columns: repeat(3, 1fr); gap: 2rem; }
  .stage + .stage::before { content: "→"; position: absolute; left: -1.45rem; top: 32%; font-size: 1.1rem; color: var(--charcoal); }
}

/* ==========================================================================
   PROJECTS
   ========================================================================== */
/* 6 projects: 1 → 2 → 3 → 6 columns */
.projects { display: grid; gap: 1.6rem 1.2rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 480px) { .projects { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 760px) { .projects { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .projects { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.project a { display: grid; gap: .3rem; }
.project img { width: 100%; aspect-ratio: 4 / 2.9; object-fit: cover; margin-bottom: .5rem; transition: filter .3s; }
.project a:hover img { filter: brightness(1.05) saturate(1.05); }
.project__title { display: flex; justify-content: space-between; gap: .5rem; font-family: var(--serif); font-size: 1.1rem; color: var(--charcoal); line-height: 1.2; }
.project__title .icon { color: var(--bronze); margin-top: .1rem; transition: transform .25s var(--ease); }
.project a:hover .project__title .icon { transform: translateX(3px); }
.project__place { font-size: .78rem; color: var(--grey); }
.tags { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .45rem; }
.tags span { padding: .2rem .55rem; background: var(--tint); border: 1px solid var(--line); font-size: .68rem; color: var(--text-2); }
.tags .tag--on { background: var(--stone); color: var(--charcoal); }

/* ==========================================================================
   AREAS + MAP
   ========================================================================== */
.areas { display: grid; gap: 2rem; }
/* 5 areas: 2 → 3 → 5 columns (5 only once each column is wide enough for its label) */
.area-list { display: grid; gap: 1.6rem 1.2rem; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 1.8rem; }
@media (min-width: 700px) { .area-list { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1300px) { .area-list { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.area img { width: 100%; aspect-ratio: 4 / 2.6; object-fit: cover; margin-bottom: .7rem; }
.area h3 { font-family: var(--serif); font-size: 1.15rem; color: var(--charcoal); }
.area p { font-size: .78rem; color: var(--text-2); line-height: 1.5; margin: .25rem 0 .6rem; }

.map { position: relative; min-height: 360px; max-width: 420px; width: 100%; justify-self: center; }
.map__svg { width: 100%; height: auto; }
.map__county { fill: #e6d8bf; stroke: #fff; stroke-width: 2; }
.map__county--b { fill: #eee3cf; }
.map__county--c { fill: #dcc8a6; }
.map__river { fill: none; stroke: #c9d3d6; stroke-width: 4; stroke-linecap: round; }
.map__pins { position: absolute; inset: 0; }
.pin { position: absolute; transform: translate(-10%, -100%); }
.pin a { display: inline-flex; align-items: center; gap: .3rem; font-family: var(--serif); font-size: 1.05rem; color: var(--charcoal); white-space: nowrap; }
.pin a:hover { color: var(--bronze-text); }
.pin .icon { color: var(--bronze); width: 1.25em; height: 1.25em; }
.pin--cambridge { left: 52%; top: 12%; }
.pin--herts { left: 22%; top: 36%; }
.pin--essex { left: 68%; top: 42%; }
.pin--london { left: 40%; top: 55%; }
.pin--surrey { left: 16%; top: 78%; }
.map__note { position: absolute; right: 0; bottom: 0; display: flex; gap: .6rem; align-items: center; max-width: 220px; padding: .8rem 1rem; background: #fff; border: 1px solid var(--line); font-size: .74rem; color: var(--text-2); line-height: 1.4; }
.map__note .icon { color: var(--bronze); width: 1.5em; height: 1.5em; }

@media (min-width: 1100px) {
  .areas { grid-template-columns: minmax(0, 1fr) 340px; align-items: center; }
}

/* ==========================================================================
   COMMERCIAL
   ========================================================================== */
/* boxed inside the centred content column, like every other section */
.commercial { display: grid; margin: var(--section) var(--edge); background: #f1ede6; }
.commercial__img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; object-position: 50% 40%; }
.commercial__body { padding: 2.2rem var(--gutter); display: grid; gap: 1rem; align-content: center; }
.commercial__body > p { color: var(--text-2); font-size: .92rem; max-width: 60ch; }
.checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: .45rem 1.5rem; font-size: .86rem; }
.checks li { display: flex; align-items: center; gap: .5rem; }
.checks .icon { color: var(--bronze); border: 1px solid var(--bronze); border-radius: 50%; padding: 2px; width: 18px; height: 18px; }
@media (min-width: 900px) {
  .commercial { grid-template-columns: 1fr 1.5fr; }
  .commercial__img { height: 100%; min-height: 320px; aspect-ratio: auto; }
}

/* ==========================================================================
   WHY CHOOSE US strip
   ========================================================================== */
.why { background: var(--bg); border-block: 1px solid var(--line); padding: 1.4rem var(--edge); }
.why__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem 1.5rem; }
@media (min-width: 640px) { .why__list { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 960px) { .why__list { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.why__list li { display: flex; align-items: center; gap: .8rem; font-size: .68rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; }
.why__list li > span { display: grid; }
.why__list small { font-size: .62rem; letter-spacing: .08em; color: var(--grey); font-weight: 400; }
.why__list .icon { width: 28px; height: 28px; color: var(--bronze); }

/* ==========================================================================
   REVIEWS + PROCESS
   ========================================================================== */
.duo { display: grid; gap: 3rem; }
@media (min-width: 1000px) { .duo { grid-template-columns: minmax(260px, .8fr) 2fr; gap: 3.5rem; } }
.reviews__head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 1.2rem; }
.reviews__nav { display: flex; gap: .4rem; }
.round-btn { width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid var(--line); background: #fff; transition: border-color .2s; }
.round-btn:hover { border-color: var(--charcoal); }
.round-btn .icon { width: 15px; height: 15px; }
.review { display: none; }
.review.is-active { display: block; animation: fade .4s var(--ease); }
.review p { font-family: var(--serif); font-size: 1.25rem; line-height: 1.4; color: var(--charcoal); }
.review footer { margin-top: .8rem; font-size: .8rem; font-weight: 500; color: var(--text-2); }
.reviews__note { margin-top: 1rem; font-size: .7rem; color: var(--grey); }
@keyframes fade { from { opacity: 0; transform: translateY(4px); } }

/* 4 steps sized by the column they sit in: 1 → 2 → 4, never 3 + 1 */
.process { container-type: inline-size; }
.process__steps { display: grid; gap: 1.4rem; margin-top: 1.4rem; grid-template-columns: minmax(0, 1fr); counter-reset: s; }
@container (min-width: 400px) { .process__steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@container (min-width: 720px) { .process__steps { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.process__steps li { display: grid; grid-template-columns: 52px 1fr; column-gap: .9rem; align-items: start; position: relative; }
.process__icon { grid-row: span 2; width: 52px; height: 52px; border: 1px solid var(--bronze); border-radius: 50%; display: grid; place-items: center; color: var(--bronze); }
.process__icon .icon { width: 24px; height: 24px; }
.process__steps strong { font-size: .88rem; font-weight: 600; }
.process__steps li > span:last-child { font-size: .8rem; color: var(--text-2); line-height: 1.45; }

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq { display: grid; gap: 2rem; }
@media (min-width: 1000px) { .faq { grid-template-columns: minmax(240px, .8fr) 2fr; gap: 3.5rem; } }
.faq__list details { border-bottom: 1px solid var(--line); }
.faq__list details:first-child { border-top: 1px solid var(--line); }
.faq__list summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 1rem; padding: 1.1rem 0; font-family: var(--serif); font-size: 1.25rem; color: var(--charcoal); }
.faq__list summary::-webkit-details-marker { display: none; }
.faq__list summary::after { content: "+"; font-family: var(--sans); font-weight: 300; font-size: 1.4rem; line-height: 1; color: var(--bronze); transition: transform .2s; }
.faq__list details[open] summary::after { transform: rotate(45deg); }
.faq__list details p { padding: 0 0 1.2rem; color: var(--text-2); max-width: 70ch; }

/* ==========================================================================
   FINAL CTA
   ========================================================================== */
.final-cta { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1.5rem 3rem; padding: var(--section) var(--edge); background: var(--stone); }
.final-cta p { margin-top: .6rem; color: var(--text-2); max-width: 55ch; }

/* ==========================================================================
   INSIGHTS
   ========================================================================== */
/* 4 articles: 1 → 2 → 4 columns */
.articles { display: grid; gap: 1.4rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 560px) { .articles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .articles { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.article-card a { display: grid; gap: .5rem; height: 100%; background: #fff; border: 1px solid var(--line); padding-bottom: 1.1rem; transition: box-shadow .25s, transform .25s var(--ease); }
.article-card a:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.article-card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; margin-bottom: .4rem; }
.article-card time, .article-card h3, .article-card .more { padding-inline: 1.1rem; }
.article-card time { font-size: .74rem; color: var(--grey); }
.article-card h3 { font-family: var(--serif); font-size: 1.3rem; line-height: 1.2; color: var(--charcoal); }
.article-card .more { margin-top: auto; padding-top: .4rem; }

/* ---------- reveal on scroll (added by JS only) ---------- */
.js .js-reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.js .js-reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js .js-reveal { opacity: 1; transform: none; }
}

/* ---------- small phones ---------- */
@media (max-width: 400px) {
  .btn-row .btn { flex: 1 1 100%; }
}
