/* Gloucester Grove TMO */
@font-face {
  font-family: "Quicksand";
  src: url("/assets/fonts/quicksand-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}

:root {
  --teal: #209399;        /* brand colour, from the logo */
  --teal-dark: #17767b;   /* links and buttons (passes contrast on white) */
  --ink: #0f3d40;         /* headings, footer */
  --text: #24383a;
  --muted: #55696b;
  --paper: #f6f4ee;
  --card: #ffffff;
  --line: #dcded6;
  --tint: #e3f1f1;
  --sun: #f4b942;
  --alert: #a3341f;
  --alert-tint: #fbece7;
  --radius: 14px;
  --wrap: 1140px;
  --head: "Quicksand", "Trebuchet MS", "Segoe UI", sans-serif;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 1.5rem; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font: 1.0625rem/1.65 var(--body);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal-dark); text-underline-offset: .18em; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--head); color: var(--ink); line-height: 1.2; text-wrap: balance; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 4.5vw, 3rem); font-weight: 700; letter-spacing: -.01em; }
h2 { font-size: clamp(1.45rem, 2.6vw, 1.85rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1.1em; }
address { font-style: normal; }
.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: .75rem 1rem; z-index: 10; }
.skip:focus { left: 0; }

/* Top bar and header */
.topbar { background: var(--ink); color: #d7e9e9; font-size: .875rem; }
.topbar__in { display: flex; justify-content: space-between; gap: 1rem; padding-block: .45rem; flex-wrap: wrap; }
.topbar a { color: #fff; text-decoration: none; font-weight: 600; }
.topbar a:hover { text-decoration: underline; }
.topbar__links { display: flex; gap: 1.25rem; flex-wrap: wrap; }

.site-header { background: var(--card); border-bottom: 1px solid var(--line); }
.site-header__in { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: .8rem; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: .75rem; text-decoration: none; color: var(--ink); }
.brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.brand__text strong { font: 700 1.4rem var(--head); }
.brand__text span { font-size: .72rem; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: .15rem; flex-wrap: wrap; }
.site-nav a {
  display: block; padding: .5rem .8rem; border-radius: 999px;
  font: 600 1rem var(--head); color: var(--ink); text-decoration: none;
}
.site-nav a:hover { background: var(--tint); }
.site-nav a[aria-current="page"], .site-nav a.is-section { background: var(--teal-dark); color: #fff; }
.nav-toggle {
  display: none; font: 600 1rem var(--head); color: var(--ink); background: var(--tint);
  border: 0; border-radius: 999px; padding: .55rem 1.1rem; cursor: pointer;
}
@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .site-nav { display: none; width: 100%; }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; gap: .25rem; padding-bottom: .5rem; }
  .site-nav a { border-radius: 10px; padding: .7rem .9rem; }
}

/* Buttons */
.btn {
  display: inline-block; padding: .8rem 1.4rem; border-radius: 999px; border: 2px solid transparent;
  font: 700 1.02rem var(--head); text-decoration: none; cursor: pointer;
  background: var(--teal-dark); color: #fff;
}
.btn:hover { background: var(--ink); color: #fff; }
.btn--sun { background: var(--sun); color: #2b2205; }
.btn--sun:hover { background: #ffd070; color: #2b2205; }
.btn--ghost { background: transparent; border-color: currentColor; color: #fff; }
.btn--ghost:hover { background: #fff; color: var(--ink); }
.btn-row { display: flex; gap: .75rem; flex-wrap: wrap; margin-top: 1.5rem; }

/* Home hero */
.hero { position: relative; background: var(--ink); color: #fff; isolation: isolate; overflow: hidden; }
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 40%; z-index: -2; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(95deg, rgba(10, 46, 49, .96) 0%, rgba(10, 46, 49, .86) 45%, rgba(15, 61, 64, .35) 100%);
}
.hero__in { padding-block: clamp(3rem, 9vw, 6.5rem); max-width: 44rem; margin-left: max(1.25rem, (100% - var(--wrap)) / 2); margin-right: 1.25rem; }
.hero h1 { color: #fff; font-size: clamp(2.2rem, 5.5vw, 3.6rem); }
.hero h1 .hero__hello { display: block; color: var(--sun); font-size: .5em; font-weight: 600; letter-spacing: .02em; margin-bottom: .35em; }
.hero p { font-size: 1.2rem; color: #e4f1f1; max-width: 36rem; margin: 0; }

/* Sections */
.section { padding-block: clamp(2.75rem, 6vw, 4.5rem); }
.section--tint { background: var(--tint); }
.section--card { background: var(--card); border-block: 1px solid var(--line); }
.section__head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.section__head h2 { margin: 0; }
.eyebrow { font: 700 .8rem var(--head); letter-spacing: .12em; text-transform: uppercase; color: var(--teal-dark); margin: 0 0 .5rem; }

.grid { display: grid; gap: 1.1rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); list-style: none; margin: 0; padding: 0; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }

/* Task tiles */
.tile {
  display: flex; flex-direction: column; gap: .35rem; height: 100%; padding: 1.35rem 1.4rem 1.25rem;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  border-top: 5px solid var(--teal); text-decoration: none; color: var(--text);
  transition: transform .15s ease, box-shadow .15s ease;
}
.tile strong { font: 700 1.2rem var(--head); color: var(--ink); }
.tile span { font-size: .97rem; color: var(--muted); }
.tile::after { content: "\2192"; margin-top: auto; padding-top: .5rem; font-weight: 700; color: var(--teal-dark); }
.tile:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(15, 61, 64, .12); color: var(--text); }
.tile--urgent { border-top-color: var(--sun); }
@media (prefers-reduced-motion: reduce) { .tile { transition: none; } html { scroll-behavior: auto; } }

/* Intro + facts */
.split { display: grid; gap: clamp(1.5rem, 4vw, 3.5rem); grid-template-columns: 1.25fr 1fr; align-items: start; }
@media (max-width: 800px) { .split { grid-template-columns: 1fr; } }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 0; }
.facts div { background: var(--card); border-radius: var(--radius); padding: 1.1rem 1.2rem; border: 1px solid var(--line); }
.facts dt { font: 700 2rem/1.1 var(--head); color: var(--teal-dark); }
.facts dd { margin: .25rem 0 0; font-size: .95rem; color: var(--muted); }

/* News cards */
.news-card { display: flex; flex-direction: column; }
.card__media { display: block; background: var(--tint); }
.card__media img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; object-position: 50% 30%; }
.card__blank {
  display: block; width: 100%; aspect-ratio: 3 / 2;
  background: var(--teal-dark) url("/assets/img/mark.svg") center / 84px no-repeat;
}
.card__body { padding: 1.1rem 1.25rem 1.2rem; }
.card__body time { font: 600 .82rem var(--head); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.card__body h3 { margin: .3rem 0 .45rem; }
.card__body h3 a { color: var(--ink); text-decoration: none; }
.card__body h3 a:hover { text-decoration: underline; }
.card__body p { margin: 0; font-size: .97rem; color: var(--muted); }

/* Contact band */
.band { background: var(--ink); color: #dcebeb; }
.band h2, .band h3 { color: #fff; }
.band a { color: #fff; font-weight: 600; }
.band__grid { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.band p { margin: 0 0 .6em; }
.big-number { font: 700 1.7rem var(--head); text-decoration: none; }

/* Inner pages */
.page-head { background: var(--tint); border-bottom: 1px solid var(--line); padding-block: clamp(1.75rem, 4vw, 3rem); }
.page-head h1 { margin: 0; }
.page-head .lead { margin: .8rem 0 0; }
.page-head__date { font: 600 .85rem var(--head); letter-spacing: .08em; text-transform: uppercase; color: var(--teal-dark); margin: 0 0 .4rem; }
.crumbs { font-size: .9rem; margin-bottom: .9rem; color: var(--muted); }
.crumbs span { margin-inline: .25rem; }
.lead { font-size: 1.22rem; line-height: 1.55; color: var(--ink); max-width: 44rem; }

.page { padding-block: clamp(2rem, 5vw, 3.5rem); }
.page--toc { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start; }
.toc { position: sticky; top: 1.25rem; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.2rem; }
.toc h2 { font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: .6rem; }
.toc ul { list-style: none; margin: 0; padding: 0; }
.toc a { display: block; padding: .32rem 0; text-decoration: none; font-weight: 600; font-size: .97rem; }
.toc a:hover { text-decoration: underline; }
@media (max-width: 860px) { .page--toc { grid-template-columns: 1fr; } .toc { position: static; } }

.prose { max-width: 46rem; }
.prose > h2 { margin-top: 2.2em; padding-top: 1.4rem; border-top: 1px solid var(--line); }
.prose > h2:first-child, .prose > .article-figure + h2 { margin-top: 0; padding-top: 0; border-top: 0; }
.prose h3 { margin-top: 1.7em; }
.prose ul, .prose ol { padding-left: 1.3rem; margin: 0 0 1.2em; }
.prose li { margin-bottom: .45em; }
.prose li::marker { color: var(--teal-dark); font-weight: 700; }
.prose .grid { margin-block: 1.5rem; }
.article-figure { margin: 0 0 1.75rem; }
.article-figure img { border-radius: var(--radius); max-height: 520px; width: auto; }
.back { margin-top: 2.5rem; font-weight: 600; }
.prose--wide { max-width: none; }
.prose--wide > h2 { border-top: 0; padding-top: 0; }
.empty { grid-column: 1 / -1; color: var(--muted); margin: 0; }
.card__where { margin-top: .5rem !important; font-weight: 600; color: var(--ink) !important; }
.event-facts { display: grid; gap: .5rem; margin: 0 0 1.75rem; padding: 1.1rem 1.3rem; background: var(--tint); border-left: 5px solid var(--teal); border-radius: var(--radius); }
.event-facts div { display: flex; gap: 1rem; }
.event-facts dt { font: 700 1rem var(--head); color: var(--ink); min-width: 4rem; }
.event-facts dd { margin: 0; }
.prose img { border-radius: var(--radius); margin-block: 1.25rem; }

.note, .alert { border-radius: var(--radius); padding: 1.1rem 1.3rem; margin: 1.5rem 0; }
.note { background: var(--tint); border-left: 5px solid var(--teal); }
.alert { background: var(--alert-tint); border-left: 5px solid var(--alert); }
.note > :last-child, .alert > :last-child { margin-bottom: 0; }
.note h3, .alert h3 { margin-top: 0; }

.people { list-style: none; padding: 0 !important; display: grid; gap: .75rem; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.people li { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: .8rem 1rem; margin: 0; }
.people strong { display: block; color: var(--ink); }
.people span { font-size: .9rem; color: var(--muted); }

.steps { list-style: none; counter-reset: step; padding: 0 !important; }
.steps li { counter-increment: step; position: relative; padding-left: 3.1rem; margin-bottom: 1.1rem; }
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: .1rem; width: 2.1rem; height: 2.1rem;
  display: grid; place-items: center; border-radius: 50%; background: var(--teal-dark); color: #fff; font: 700 1rem var(--head);
}

table { border-collapse: collapse; width: 100%; margin: 0 0 1.4em; background: var(--card); border-radius: 12px; overflow: hidden; border: 1px solid var(--line); }
th, td { text-align: left; padding: .7rem 1rem; border-bottom: 1px solid var(--line); vertical-align: top; }
tr:last-child > * { border-bottom: 0; }
thead th { background: var(--tint); font-family: var(--head); color: var(--ink); }
td a[href^="tel"] { white-space: nowrap; font-weight: 600; }

/* Form */
.form { display: grid; gap: 1rem; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; }
.form label { display: grid; gap: .3rem; font-weight: 600; color: var(--ink); }
.form input, .form select, .form textarea {
  font: inherit; padding: .7rem .8rem; border: 1.5px solid #9fb1b2; border-radius: 10px; background: #fff; color: var(--text); width: 100%;
}
.form textarea { min-height: 9rem; resize: vertical; }
.form small { font-weight: 400; color: var(--muted); }

/* Footer */
.site-footer { background: #0a2e31; color: #c9dcdc; font-size: .96rem; }
.site-footer__grid { display: grid; gap: 2rem; grid-template-columns: 1.3fr repeat(3, 1fr); padding-block: 3rem 2rem; }
@media (max-width: 900px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .site-footer__grid { grid-template-columns: 1fr; } }
.site-footer h2 { font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; color: var(--sun); margin-bottom: .8rem; }
.site-footer a { color: #fff; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: .4rem; }
.site-footer img { margin-bottom: 1rem; }
.site-footer__base { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding-block: 1.1rem; border-top: 1px solid rgba(255, 255, 255, .15); font-size: .88rem; }
.site-footer__base a { margin-left: 1.25rem; }
.site-footer__base span:last-child a:first-child { margin-left: 0; }

@media print {
  .topbar, .site-header, .site-footer, .toc, .btn-row { display: none; }
  body { background: #fff; }
}
