/* Redcrest Willows Ltd: shared styles
   Palette from the company profile (Sep 2023): crimson #A20E20, red #E8223B / #C00000, charcoal #2A2E3A, blush #EDB6B6.
   Layout and components follow the Jocate site; colours and type are Redcrest's own. */
:root {
  --red-900: #5e0812;
  --red-800: #a20e20;
  --red-700: #c00000;
  --red-500: #e8223b;
  --red-100: #fbe8ea;
  --blush: #edb6b6;
  --char-900: #1c1f27;
  --char-800: #2a2e3a;
  --char-600: #4a5060;
  --ink: #1f2229;
  --bg: #faf8f6;
  --surface: #ffffff;
  --surface-2: #f3efec;
  --cream: #fbf1ec;
  --text: #1f2229;
  --muted: #555b67;
  --line: #e6dfda;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(42, 46, 58, .06), 0 8px 24px rgba(42, 46, 58, .07);
  --max: 1160px;
  --font-display: "Archivo", "Segoe UI", system-ui, sans-serif;
  --font-body: "Source Sans 3", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font-body); font-size: 1.0625rem; line-height: 1.6; }
img, svg { max-width: 100%; display: block; }
a { color: var(--red-800); text-underline-offset: 3px; }
a:hover { color: var(--red-900); }
:focus-visible { outline: 3px solid var(--red-500); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 { font-family: var(--font-display); line-height: 1.1; letter-spacing: -.02em; margin: 0 0 .5em; color: var(--ink); text-wrap: balance; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.5rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; letter-spacing: -.01em; }
p { margin: 0 0 1em; text-wrap: pretty; }

.wrap { width: min(var(--max), 100% - 32px); margin-inline: auto; }
.section { padding: clamp(64px, 9vw, 112px) 0; }
.section--alt { background: var(--surface-2); }
.section--dark { background: var(--char-800); color: #e7e8ec; }
.section--dark h2, .section--dark h3 { color: #fff; }
.eyebrow { display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--red-800); margin-bottom: 14px; }
.section--dark .eyebrow { color: var(--blush); }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 62ch; }
.section--dark .lead { color: #c9ccd4; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--char-900); color: #fff; padding: 10px 14px; z-index: 100; }
.skip:focus { left: 8px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(250, 248, 246, .94); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand-mark { width: 44px; height: 44px; }
.brand-name { font-family: var(--font-display); font-weight: 800; font-size: 1.22rem; line-height: 1; text-transform: uppercase; letter-spacing: .02em; color: var(--ink); }
.brand-name b { color: var(--red-800); font-weight: 800; }
.brand-name small { display: block; font-weight: 700; font-size: .6rem; letter-spacing: .24em; color: var(--muted); margin-top: 4px; }
/* Diagonal charcoal + crimson + red bands, used as a header stripe and hero corner */
.site-header::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 4px; background: linear-gradient(100deg, var(--char-800) 0 40%, var(--red-800) 40% 72%, var(--red-500) 72% 100%); }
.hero, .page-hero { position: relative; overflow: hidden; }
.hero > .wrap, .page-hero > .wrap { position: relative; z-index: 1; }
.hero::before, .page-hero::before { content: ""; position: absolute; top: 0; right: 0; width: min(46vw, 620px); height: 92px; background: linear-gradient(100deg, var(--red-800) 0 72%, var(--red-500) 72% 100%); clip-path: polygon(0 0, 100% 0, 100% 100%); }
.hero::after, .page-hero::after { content: ""; position: absolute; top: 0; right: 0; width: min(30vw, 400px); height: 46px; background: var(--char-800); clip-path: polygon(0 0, 100% 0, 100% 100%); }
@media (max-width: 860px) { .hero::before, .page-hero::before { height: 48px; width: 60vw; } .hero::after, .page-hero::after { height: 24px; width: 40vw; } }
.hero h1 em, .page-hero h1 em { font-style: normal; color: var(--red-800); background: linear-gradient(transparent 62%, rgba(237, 182, 182, .75) 62% 92%, transparent 92%); padding: 0 .08em; }
.nav-links { display: flex; align-items: center; gap: 6px; list-style: none; margin: 0; padding: 0; }
.nav-links a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 999px; text-decoration: none; color: var(--text); font-weight: 600; font-size: .98rem; transition: background .2s, color .2s; white-space: nowrap; }
.nav-links a:hover { background: var(--surface-2); color: var(--red-900); }
.nav-links a[aria-current="page"] { color: var(--red-800); background: var(--red-100); box-shadow: inset 0 -2px 0 var(--red-500); }
.nav-toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--line); background: var(--surface); border-radius: 10px; cursor: pointer; }
.nav-toggle span { display: block; width: 20px; height: 2px; background: var(--char-800); margin: 4px auto; }
@media (max-width: 980px) {
  .nav-toggle { display: block; }
  .nav-links { position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; align-items: stretch; background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px 16px 16px; gap: 2px; display: none; }
  .nav-links.open { display: flex; }
  .nav-links a { border-radius: 10px; }
  .nav-links .btn { justify-content: center; margin-top: 6px; }
}

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 22px; border-radius: 999px; font-family: inherit; font-weight: 700; font-size: 1rem; text-decoration: none; cursor: pointer; border: 2px solid transparent; transition: background .2s, color .2s, transform .15s, border-color .2s; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--red-800); color: #fff; }
.btn-primary:hover { background: var(--red-900); color: #fff; }
.btn-ghost { border-color: var(--char-800); color: var(--char-800); background: transparent; }
.btn-ghost:hover { background: var(--char-800); color: #fff; }
.btn-light { background: #fff; color: var(--red-800); }
.btn-light:hover { background: var(--blush); color: var(--red-900); }
.btn svg { width: 18px; height: 18px; }
.nav-links .btn { min-height: 44px; color: #fff; }
.nav-links .btn:hover { color: #fff; background: var(--red-900); }

/* Hero */
.hero { padding: clamp(56px, 8vw, 104px) 0 clamp(64px, 8vw, 96px); }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; } }
.page-hero { padding: clamp(56px, 8vw, 96px) 0 clamp(40px, 6vw, 64px); border-bottom: 1px solid var(--line); }
.page-hero .lead { margin-top: 8px; }
.page-hero .split { align-items: center; }

/* Grids & cards */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 960px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; transition: border-color .2s, box-shadow .2s; }
.card:hover { border-color: #d6ccc5; box-shadow: var(--shadow); }
.card p:last-child { margin-bottom: 0; }
.icon { width: 48px; height: 48px; border-radius: 12px; background: var(--red-100); color: var(--red-800); display: grid; place-items: center; margin-bottom: 16px; flex: none; }
.icon svg { width: 24px; height: 24px; }
.icon.dark { background: #e6e7eb; color: var(--char-800); }
.card-meta { font-size: .85rem; color: var(--muted); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

/* Residue strip (in place of Jocate's stats row) */
.strip { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.strip > div { padding: 28px 22px; border-right: 1px solid var(--line); }
.strip > div:last-child { border-right: 0; }
.strip strong { display: block; font-family: var(--font-display); font-size: clamp(1.5rem, 2.6vw, 2rem); color: var(--red-800); line-height: 1.1; margin-bottom: 4px; }
.strip span { color: var(--muted); font-size: .97rem; }
@media (max-width: 760px) { .strip { grid-template-columns: 1fr; } .strip > div { border-right: 0; border-bottom: 1px solid var(--line); } .strip > div:last-child { border-bottom: 0; } }

/* Pills */
.pills { display: flex; flex-wrap: wrap; gap: 10px; }
.pill { padding: 12px 18px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); font-weight: 600; color: var(--char-800); font-size: .98rem; text-decoration: none; }
a.pill:hover { border-color: var(--red-800); color: var(--red-800); }

/* Steps */
.steps { counter-reset: step; display: grid; gap: 16px; list-style: none; padding: 0; margin: 0; }
.steps li { counter-increment: step; position: relative; padding: 22px 22px 22px 76px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.steps li::before { content: counter(step, decimal-leading-zero); position: absolute; left: 20px; top: 20px; width: 40px; height: 40px; border-radius: 50%; background: var(--red-800); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: .9rem; }
.steps h3 { margin-bottom: 4px; font-size: 1.1rem; }
.steps p { margin: 0; color: var(--muted); }

/* Tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
table { width: 100%; border-collapse: collapse; font-size: .97rem; }
th, td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--surface-2); font-weight: 700; color: var(--char-800); font-size: .9rem; }
tr:last-child td, tr:last-child th { border-bottom: 0; }

/* Callout, quote, checklist */
.callout { border-left: 4px solid var(--red-800); background: var(--red-100); padding: 18px 22px; border-radius: 0 var(--radius) var(--radius) 0; }
.callout p:last-child { margin: 0; }
.quote { font-family: var(--font-display); font-size: clamp(1.35rem, 2.5vw, 1.9rem); line-height: 1.3; color: #fff; font-weight: 600; margin: 0 0 18px; }
.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; }
.checklist li { display: grid; grid-template-columns: 24px 1fr; gap: 14px; }
.checklist svg { width: 22px; height: 22px; color: var(--red-800); margin-top: 2px; }
.section--dark .checklist svg { color: var(--blush); }
.section--dark .checklist strong { color: #fff; }

/* Leadership */
.person { display: flex; gap: 20px; align-items: center; }
.monogram { width: 88px; height: 88px; border-radius: 50%; background: var(--red-800); color: #fff; display: grid; place-items: center; font-family: var(--font-display); font-weight: 800; font-size: 1.8rem; letter-spacing: .02em; flex: none; box-shadow: inset 0 0 0 4px rgba(255,255,255,.18); }
.person h3 { margin: 0 0 2px; font-size: 1.3rem; }
.person p { margin: 0; color: var(--muted); }

/* Forms */
.form { display: grid; gap: 18px; position: relative; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 620px) { .form-row { grid-template-columns: 1fr; } }
label, .label { display: block; font-weight: 700; font-size: .95rem; margin-bottom: 6px; color: var(--char-800); }
.hint { font-size: .87rem; color: var(--muted); margin-top: 6px; }
input, select, textarea { width: 100%; min-height: 48px; padding: 12px 14px; font: inherit; font-size: 1rem; color: var(--text); background: var(--surface); border: 1.5px solid #d6ccc5; border-radius: 10px; transition: border-color .2s, box-shadow .2s; }
textarea { min-height: 130px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--red-800); box-shadow: 0 0 0 4px rgba(162, 14, 32, .15); }
.field-error { color: #b91c1c; font-size: .87rem; margin-top: 6px; display: none; }
.invalid input, .invalid select, .invalid textarea { border-color: #b91c1c; }
.invalid .field-error { display: block; }
.form-status { display: none; padding: 14px 16px; border-radius: 10px; background: var(--red-100); color: var(--red-900); font-weight: 600; }
.form-status.show { display: block; }
.form-status a { color: var(--red-800); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; margin: 0; font-weight: 400; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; min-height: 0; }
.chip span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border: 1.5px solid #d6ccc5; border-radius: 999px; font-weight: 600; cursor: pointer; background: var(--surface); transition: background .2s, border-color .2s, color .2s; }
.chip input:checked + span { background: var(--red-800); border-color: var(--red-800); color: #fff; }
.chip input:focus-visible + span { outline: 3px solid var(--red-500); outline-offset: 2px; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
legend { padding: 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; }
.contact-list li { display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: start; }
.contact-list .icon { width: 44px; height: 44px; margin: 0; }
.contact-list .icon svg { width: 20px; height: 20px; }
.contact-list strong { display: block; color: var(--char-800); }

/* Do / don't */
.dos { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 760px) { .dos { grid-template-columns: 1fr; } }
.dos h3 { display: flex; align-items: center; gap: 10px; }
.dos h3 svg { width: 22px; height: 22px; }
.dos .yes h3 svg { color: #15803d; }
.dos .no h3 svg { color: #b91c1c; }
.dos ul { margin: 0; padding-left: 1.1em; display: grid; gap: 8px; }

/* CTA band */
.cta-band { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.cta-band h2 { margin: 0; max-width: 22ch; }
.cta-red { background: var(--red-800); color: #fbe8ea; border-radius: 24px; padding: clamp(28px, 5vw, 56px); position: relative; overflow: hidden; }
.cta-red h2 { color: #fff; }
.cta-red::after { content: ""; position: absolute; right: -40px; bottom: -40px; width: 220px; height: 220px; border-radius: 50%; border: 28px solid rgba(255,255,255,.08); }
.cta-red > * { position: relative; z-index: 1; }

/* Footer */
.site-footer { background: var(--char-900); color: #b9bdc7; padding: 56px 0 28px; font-size: .95rem; border-top: 4px solid var(--red-800); }
.site-footer .brand-name { color: #fff; }
.site-footer .brand-name b { color: var(--blush); }
.site-footer .brand-name small { color: #9aa0ad; }
.site-footer a { color: #eceef2; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 32px; }
.footer-grid h3 { color: #fff; font-family: var(--font-body); font-size: .85rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 14px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 40px; padding-top: 20px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: .85rem; }
.footer-credit { color: #9aa0ad !important; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }

/* Photographs */
.photo { margin: 0; overflow: hidden; background: var(--surface-2); }
.photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.photo-43 { aspect-ratio: 4 / 3; }
.photo-32 { aspect-ratio: 3 / 2; }
.photo-card { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; box-shadow: var(--shadow); width: 100%; }
.photo-card figcaption { display: flex; gap: 16px; align-items: center; padding: 16px 20px; }
.photo-card figcaption strong { font-family: var(--font-display); font-size: 2rem; color: var(--red-800); line-height: 1; flex: none; }
.photo-card figcaption span { font-size: .93rem; color: var(--muted); line-height: 1.4; }
.hero-photo { max-width: 560px; justify-self: end; }
@media (max-width: 860px) { .hero-photo { justify-self: start; } }

.fuel-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 900px) { .fuel-grid { grid-template-columns: 1fr; max-width: 560px; } }
.fuel-tile { display: flex; flex-direction: column; margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; text-decoration: none; color: var(--text); transition: box-shadow .25s, transform .25s, border-color .25s; }
a.fuel-tile:hover { box-shadow: var(--shadow); transform: translateY(-2px); border-color: #d6ccc5; color: var(--text); }
.fuel-tile .photo { aspect-ratio: 3 / 2; }
.fuel-tile .photo img { transition: transform .6s ease; }
a.fuel-tile:hover .photo img { transform: scale(1.03); }
.fuel-tile .body { padding: 18px 20px 20px; display: grid; gap: 6px; }
.fuel-tile h3 { margin: 0; }
.fuel-tile p { margin: 0; font-size: .97rem; color: var(--muted); }
.fuel-tile .more { margin-top: 6px; font-weight: 700; color: var(--red-800); font-size: .95rem; }

/* Biofuel detail rows */
.fuel-row { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.fuel-row + .fuel-row { margin-top: clamp(56px, 8vw, 96px); }
.fuel-row.flip > figure { order: 2; }
@media (max-width: 860px) { .fuel-row { grid-template-columns: 1fr; } .fuel-row.flip > figure { order: 0; } }
.fuel-row figure { margin: 0; border-radius: 18px; overflow: hidden; border: 1px solid var(--line); background: var(--surface); }
.fuel-row figcaption { font-size: .83rem; color: var(--muted); padding: 8px 14px; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 18px 0 0; }
@media (max-width: 520px) { .facts { grid-template-columns: 1fr; } }
.facts div { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.facts dt { font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--red-800); margin-bottom: 4px; }
.facts dd { margin: 0; font-size: .97rem; }

/* Illustrated chain */
.chain { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: chain; list-style: none; padding: 0; margin: 0; }
@media (max-width: 960px) { .chain { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .chain { grid-template-columns: 1fr; } }
.chain li { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; counter-increment: chain; }
.chain svg { display: block; width: 100%; height: auto; background: var(--cream); }
.chain .chain-text { padding: 16px 18px 18px; }
.chain .chain-text::before { content: "Step " counter(chain); display: block; font-size: .75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--red-800); margin-bottom: 6px; }
.chain h3 { font-size: 1.1rem; margin-bottom: 4px; }
.chain p { margin: 0; font-size: .95rem; color: var(--muted); }

/* FAQ, legal */
.faq details { border-bottom: 1px solid var(--line); padding: 16px 0; }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary { font-weight: 700; color: var(--char-800); cursor: pointer; }
.faq details p { margin: 10px 0 0; }
.legal-text h2 { font-size: 1.35rem; margin: 36px 0 10px; }
.legal-text h2:first-child { margin-top: 0; }
.legal-text ul { padding-left: 1.2em; display: grid; gap: 8px; }
.legal-text .table-wrap { margin: 12px 0 16px; }

/* Reveal */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
