/* Restore Britain Watford - site styles. Mobile first. */

@font-face {
  font-family: "Faustina";
  src: url("/fonts/faustina-700.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}

:root {
  --navy: #051D3F;
  --navy-2: #0b2a57;
  --red: #C8102E;
  --red-dark: #a00d25;
  --ink: #111827;
  --muted: #5b6474;
  --line: #d9dee7;
  --tint: #f1f4f8;
  --white: #fff;
  --radius: 6px;
  --wrap: 1120px;
  --serif: "Faustina", Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy-2); text-underline-offset: 2px; }
a:hover { color: var(--red); }
:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }

h1, h2, h3 { font-family: var(--serif); font-weight: 700; line-height: 1.2; color: var(--navy); margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 6vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 4vw, 2rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 760px; }
.muted { color: var(--muted); font-weight: 400; }
.lead { font-size: 1.15rem; }

.skip { position: absolute; left: -999px; top: 0; background: var(--white); padding: 8px 12px; z-index: 10; }
.skip:focus { left: 8px; top: 8px; }

/* Buttons */
.btn {
  display: inline-block;
  padding: .7em 1.2em;
  border-radius: var(--radius);
  font-weight: 700;
  text-decoration: none;
  border: 2px solid transparent;
  line-height: 1.2;
  font-size: 1rem;
  cursor: pointer;
  font-family: var(--sans);
}
.btn-red { background: var(--red); color: var(--white); }
.btn-red:hover { background: var(--red-dark); color: var(--white); }
.btn-navy { background: var(--navy); color: var(--white); }
.btn-navy:hover { background: var(--navy-2); color: var(--white); }
.btn-light { background: var(--white); color: var(--navy); }
.btn-light:hover { background: var(--tint); color: var(--navy); }
.btn-outline { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn-outline:hover { background: var(--navy); color: var(--white); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 1.25em 0 0; }

/* Header */
.site-header { background: var(--navy); color: var(--white); }
.header-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; padding-top: 12px; padding-bottom: 12px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--white); text-decoration: none; margin-right: auto; }
.brand:hover { color: var(--white); }
.brand img { width: auto; height: 46px; }
.brand-text { display: flex; flex-direction: column; font-family: var(--serif); line-height: 1.05; }
.brand-main { font-size: 1.25rem; letter-spacing: .02em; text-transform: uppercase; }
.brand-sub { font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; opacity: .9; }
.btn-join { padding: .5em 1em; }
.site-nav { order: 3; width: 100%; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 18px; }
.site-nav a { color: var(--white); text-decoration: none; font-weight: 600; font-size: .95rem; padding: 4px 0; display: inline-block; border-bottom: 2px solid transparent; }
.site-nav a:hover { color: var(--white); border-bottom-color: rgba(255,255,255,.6); }
.site-nav a[aria-current="page"] { border-bottom-color: var(--red); }

@media (min-width: 860px) {
  .site-nav { order: 0; width: auto; }
  .site-nav ul { gap: 26px; }
  .header-inner { flex-wrap: nowrap; padding-top: 16px; padding-bottom: 16px; }
}

/* Hero */
.hero { position: relative; background: var(--navy); color: var(--white); overflow: hidden; }
.hero picture, .hero-img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-img { object-fit: cover; object-position: center 60%; }
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(5,29,63,.88) 0%, rgba(5,29,63,.62) 45%, rgba(5,29,63,.12) 100%);
}
.hero-text { position: relative; z-index: 1; padding-top: 72px; padding-bottom: 72px; }
.hero h1 { color: var(--white); max-width: 14ch; }
.hero .lead { max-width: 30rem; }
.kicker { text-transform: uppercase; letter-spacing: .14em; font-size: .8rem; font-weight: 700; color: #ffd2d9; margin-bottom: .5em; }
@media (min-width: 860px) { .hero-text { padding-top: 120px; padding-bottom: 120px; } }

/* Page heads */
.page-head { background: var(--navy); color: var(--white); padding: 48px 0 40px; }
.page-head h1 { color: var(--white); }
.page-head .lead { max-width: 44rem; margin-bottom: 0; }
.page-head a:not(.btn) { color: var(--white); }
.page-head .btn { margin-top: 1.25em; }

/* Sections */
.section { padding: 48px 0; }
.section-tint { background: var(--tint); }
@media (min-width: 860px) { .section { padding: 72px 0; } }

.grid { display: grid; gap: 20px; }
@media (min-width: 760px) { .grid.three, .grid { grid-template-columns: repeat(3, 1fr); } }
.card { background: var(--white); border: 1px solid var(--line); border-top: 4px solid var(--red); border-radius: var(--radius); padding: 22px; }
.card p:last-child { margin-bottom: 0; }

.two-col { display: grid; gap: 32px; align-items: start; }
@media (min-width: 860px) { .two-col { grid-template-columns: 1fr 1fr; gap: 56px; } }

.cta-band { display: grid; gap: 8px; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 22px; }
@media (min-width: 860px) { .cta-band { grid-template-columns: 1fr auto; align-items: center; padding: 36px 40px; } .cta-band .actions { margin: 0; } }
.cta-band p { margin-bottom: 0; }

/* Lists */
.plain { list-style: none; margin: 0 0 1em; padding: 0; }
.plain li { margin-bottom: .35em; }
.links a { font-weight: 600; }
.ticks { list-style: none; margin: 0; padding: 0; }
.ticks li { position: relative; padding-left: 28px; margin-bottom: .8em; }
.ticks li::before { content: ""; position: absolute; left: 4px; top: .55em; width: 10px; height: 10px; background: var(--red); border-radius: 2px; }
.ward-list { columns: 2; list-style: none; padding: 0; margin: 0 0 1.25em; }
.ward-list li { padding: 2px 0; break-inside: avoid; }
@media (min-width: 560px) { .ward-list { columns: 3; } }

.steps { list-style: none; counter-reset: step; margin: 0; padding: 0; display: grid; gap: 20px; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.steps li { counter-increment: step; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; position: relative; }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--navy); color: var(--white); font-weight: 700; margin-bottom: 12px; }
.steps p:last-child { margin-bottom: 0; }

/* Figures */
figure { margin: 0; }
.map img { width: 100%; max-width: 480px; margin: 0 auto; }
.photo img { border-radius: var(--radius); }
figcaption { font-size: .9rem; color: var(--muted); margin-top: .5em; }

/* Forms */
.form { display: grid; gap: 6px; }
.form label { font-weight: 600; margin-top: 10px; }
.form input[type=text], .form input[type=email], .form input[type=tel], .form textarea {
  width: 100%; padding: .65em .75em; font: inherit; color: inherit;
  border: 1px solid #aab3c2; border-radius: var(--radius); background: var(--white);
}
.form input:focus, .form textarea:focus { border-color: var(--navy); }
.form fieldset { border: 0; padding: 0; margin: 14px 0 0; }
.form legend { font-weight: 600; padding: 0; margin-bottom: 4px; }
.form .check { display: flex; align-items: center; gap: 10px; font-weight: 400; margin: 6px 0 0; }
.form .check input { width: 20px; height: 20px; accent-color: var(--navy); }
.form button { justify-self: start; margin-top: 12px; }
.privacy-note { font-size: .9rem; color: var(--muted); margin: 14px 0 0; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.contact-aside { background: var(--tint); border-radius: var(--radius); padding: 22px; }
.contact-aside h2 { font-size: 1.3rem; }

/* News */
.meta { color: var(--muted); font-size: .9rem; margin-bottom: .4em; }
.post-card img { border-radius: var(--radius) var(--radius) 0 0; margin: -22px -22px 16px; max-width: calc(100% + 44px); }
.post-image { border-radius: var(--radius); margin: 1em 0 1.5em; }
.prose img { border-radius: var(--radius); }

/* Footer */
.site-footer { background: var(--navy); color: #dfe6f0; padding: 44px 0 24px; font-size: .95rem; }
.site-footer a { color: var(--white); }
.site-footer a:hover { color: #ffd2d9; }
.site-footer h2 { color: var(--white); font-family: var(--sans); font-size: .85rem; text-transform: uppercase; letter-spacing: .12em; margin-bottom: .8em; }
.footer-grid { display: grid; gap: 24px; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr; } }
.footer-brand { font-family: var(--serif); font-size: 1.3rem; text-transform: uppercase; color: var(--white); line-height: 1.1; }
.footer-brand span { font-size: .85rem; letter-spacing: .12em; }
.footer-legal { border-top: 1px solid rgba(255,255,255,.15); margin-top: 28px; padding-top: 18px; font-size: .82rem; color: #b9c4d6; }
.footer-legal p { margin-bottom: .6em; }
.footer-legal a { color: #dfe6f0; }
