/* Discover Local – site styles */
@font-face {
  font-family: 'Bricolage';
  src: url('/fonts/bricolage.woff2') format('woff2-variations');
  font-weight: 200 800; font-stretch: 75% 100%; font-display: swap;
}
@font-face {
  font-family: 'Figtree';
  src: url('/fonts/figtree.woff2') format('woff2-variations');
  font-weight: 300 900; font-display: swap;
}

:root {
  /* Discover Newent blues */
  --blue: #0077A8;
  --sky: #00AAEF;
  --ink: #06283A;
  --mist: #E3F5FD;
  --paper: #F5F8FA;
  --text: #1F2A30;
  --muted: #4E5C64;
  /* Newent Hosting colour accents */
  --orange: #FF8A3D; --orange-d: #B5520F;
  --violet: #7A5CFF; --violet-d: #5A3FE0;
  --green:  #22C38E; --green-d:  #0B7D58;
  --pink:   #FF5D8F; --pink-d:   #C2245A;
  --teal:   #00B4C5; --teal-d:   #00737E;

  --display: 'Bricolage', 'Segoe UI', system-ui, sans-serif;
  --body: 'Figtree', 'Segoe UI', system-ui, sans-serif;
  --wrap: 1180px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--body); font-size: 1.0625rem; line-height: 1.6;
  color: var(--text); background: #fff;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--blue); text-underline-offset: .18em; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--display); color: var(--ink); line-height: 1.1; margin: 0 0 .5em; letter-spacing: -0.01em; }
h2 { font-size: clamp(2rem, 3.6vw, 3rem); font-weight: 750; font-stretch: 88%; }
h3 { font-size: 1.3125rem; font-weight: 700; line-height: 1.25; }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: .75rem 1rem; z-index: 100; }
.skip:focus { left: 1rem; top: 1rem; }

/* colour helpers */
.c-blue   { --c: var(--blue);   --cd: var(--blue); }
.c-orange { --c: var(--orange); --cd: var(--orange-d); }
.c-violet { --c: var(--violet); --cd: var(--violet-d); }
.c-green  { --c: var(--green);  --cd: var(--green-d); }
.c-pink   { --c: var(--pink);   --cd: var(--pink-d); }
.c-teal   { --c: var(--teal);   --cd: var(--teal-d); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font: 650 1rem/1 var(--body); padding: .95rem 1.4rem; border-radius: 999px;
  text-decoration: none; border: 2px solid transparent; cursor: pointer;
  transition: transform .15s ease, background-color .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn--light { background: #fff; color: var(--blue); }
.btn--light:hover { background: var(--mist); color: var(--ink); }
.btn--outline { border-color: rgba(255,255,255,.7); color: #fff; }
.btn--outline:hover { background: rgba(255,255,255,.12); color: #fff; }
.btn--blue { background: var(--blue); color: #fff; }
.btn--blue:hover { background: var(--ink); color: #fff; }
.btn--ink { background: var(--ink); color: #fff; }
.btn--ink:hover { background: var(--blue); color: #fff; }
.btn--sun { background: var(--orange); color: var(--ink); }
.btn--sun:hover { background: #fff; color: var(--ink); }

/* ---------- masthead ---------- */
.masthead { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); backdrop-filter: blur(8px); border-bottom: 1px solid #E1E8EC; }
.masthead__inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 72px; }
.brand { display: inline-flex; align-items: center; gap: .65rem; text-decoration: none; color: var(--ink); }
.brand__mark { width: 40px; height: 40px; }
.brand__name { font-family: var(--display); font-weight: 750; font-size: 1.3rem; font-stretch: 90%; }
.brand--light { color: #fff; }
.nav { display: flex; align-items: center; gap: 1.5rem; font-weight: 550; font-size: .97rem; }
.nav a { color: var(--text); text-decoration: none; }
.nav a:hover { color: var(--blue); }
.nav .nav__cta { background: var(--blue); color: #fff; padding: .6rem 1.1rem; border-radius: 999px; }
.nav .nav__cta:hover { background: var(--ink); color: #fff; }
@media (max-width: 960px) { .nav a:not(.nav__cta) { display: none; } }

/* ---------- hero ---------- */
.hero {
  background: var(--blue);
  background-image: radial-gradient(circle at 85% 20%, rgba(0,170,239,.55), transparent 55%);
  color: #fff; overflow: hidden;
}
.hero__inner { display: grid; grid-template-columns: 1.25fr .75fr; gap: 2rem; align-items: center; padding-top: clamp(3.5rem, 8vw, 6.5rem); padding-bottom: clamp(3.5rem, 8vw, 6rem); }
.hero__title { color: #fff; margin: 0 0 1.75rem; font-weight: 800; line-height: .92; letter-spacing: -0.03em; }
.hero__lead { display: block; font-size: clamp(2.25rem, 5vw, 3.75rem); font-stretch: 100%; font-weight: 600; opacity: .9; }
.hero__place { display: block; font-size: clamp(3.25rem, 9vw, 7.25rem); font-stretch: 78%; min-height: 1.05em; }
.hero__word {
  display: inline-block; padding: 0 .12em .04em; margin-left: -.12em;
  background: linear-gradient(transparent 62%, var(--marker, var(--orange)) 62%, var(--marker, var(--orange)) 92%, transparent 92%);
  transition: opacity .35s ease, transform .35s ease;
}
.hero__word.is-out { opacity: 0; transform: translateY(.15em); }
.hero__intro { font-size: clamp(1.1rem, 1.6vw, 1.25rem); max-width: 36em; color: rgba(255,255,255,.92); margin-bottom: 2rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .85rem; }
.hero__map { justify-self: center; width: min(100%, 420px); }
.pinmap text { font-family: var(--display); font-weight: 800; fill: #fff; font-size: 16px; }
.pinmap__dn { font-size: 26px; }
.pinmap__label { font-family: var(--body) !important; font-weight: 600 !important; font-size: 15px !important; fill: rgba(255,255,255,.9) !important; }
.pinmap__pulse { transform-origin: 0 0; animation: pulse 3.2s ease-out infinite; }
@keyframes pulse { 0% { transform: scale(.6); opacity: .9; } 100% { transform: scale(2.2); opacity: 0; } }
@media (max-width: 860px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__map { width: min(70%, 300px); order: -1; justify-self: start; }
}

/* ---------- sections ---------- */
.section { padding: clamp(4rem, 9vw, 7rem) 0; }
.section--mist { background: var(--paper); }
.section--ink { background: var(--ink); color: rgba(255,255,255,.88); }
.section--ink h2, .section--ink h3 { color: #fff; }
.section--blue { background: var(--blue); color: rgba(255,255,255,.92); }
.section--blue h2 { color: #fff; }
.section--sun { background: #FFF1E6; }
.section__head { max-width: 40rem; margin-bottom: clamp(2.5rem, 5vw, 3.5rem); }
.section__head p { font-size: 1.15rem; color: var(--muted); }
.section--ink .section__head p { color: rgba(255,255,255,.75); }

/* features: colourful, compact, not boxed cards */
.features { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem 2.25rem; }
.feature { padding-top: 1.1rem; border-top: 6px solid var(--c); }
.feature h3 { color: var(--ink); }
.feature p { color: var(--muted); margin: 0; }
@media (max-width: 860px) { .features { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .features { grid-template-columns: 1fr; } }

/* audiences */
.audiences { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem 4rem; }
.audience { position: relative; padding-left: 4.25rem; }
.audience__dot { position: absolute; left: 0; top: .1rem; width: 2.75rem; height: 2.75rem; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: var(--c); }
.audience__dot::after { content: ''; position: absolute; inset: .85rem; border-radius: 50%; background: #fff; }
.audience h3 { font-size: 1.6rem; }
.audience p { color: var(--muted); max-width: 32em; margin: 0; }
@media (max-width: 760px) { .audiences { grid-template-columns: 1fr; } }

/* growth timeline */
.growth { display: grid; grid-template-columns: .8fr 1.2fr; gap: 4rem; align-items: start; }
.growth__head { position: sticky; top: 110px; margin-bottom: 0; }
.growth__head .btn { margin-top: .5rem; }
.timeline { list-style: none; margin: 0; padding: 0 0 0 2.25rem; position: relative; }
.timeline::before { content: ''; position: absolute; left: .55rem; top: .5rem; bottom: .5rem; width: 3px; border-radius: 3px; background: linear-gradient(var(--blue), var(--orange), var(--green), var(--violet), var(--pink), var(--teal)); }
.timeline__item { position: relative; padding-bottom: 2.25rem; }
.timeline__item:last-child { padding-bottom: 0; }
.timeline__item::before { content: ''; position: absolute; left: -2.25rem; top: .3rem; width: 1.15rem; height: 1.15rem; border-radius: 50%; background: #fff; border: 4px solid var(--c); }
.timeline__when { font-weight: 700; font-size: .92rem; color: var(--cd); margin: 0 0 .2rem; }
.timeline__item h3 { margin-bottom: .3rem; }
.timeline__item p:last-child { color: var(--muted); margin: 0; max-width: 34em; }
@media (max-width: 860px) { .growth { grid-template-columns: 1fr; gap: 2.5rem; } .growth__head { position: static; } }

/* steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; counter-reset: none; }
.step { position: relative; }
.step__num { display: block; font-family: var(--display); font-weight: 800; font-size: 4.5rem; line-height: 1; font-stretch: 75%; color: var(--sky); margin-bottom: .75rem; }
.step:nth-child(2) .step__num { color: var(--orange); }
.step:nth-child(3) .step__num { color: var(--green); }
.step:nth-child(4) .step__num { color: var(--pink); }
.step p { margin: 0; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* towns */
.towns { display: grid; grid-template-columns: 1.4fr 1fr; gap: 1.5rem; }
.town { display: flex; gap: 1.5rem; padding: 2rem; border-radius: 28px; text-decoration: none; color: inherit; }
.town--live { background: var(--blue); color: #fff; transition: background-color .2s ease; }
.town--live:hover { background: var(--ink); color: #fff; }
.town--invite { border: 3px dashed #B9CBD5; background: #fff; }
.town__logo { flex: none; width: 76px; height: 76px; border-radius: 20px; background: #fff; color: var(--blue); display: grid; place-items: center; font-family: var(--display); font-weight: 800; font-size: 1.9rem; }
.town__logo--blank { background: var(--paper); color: var(--muted); }
.town__body { display: flex; flex-direction: column; gap: .35rem; align-items: flex-start; }
.town__status { display: inline-flex; align-items: center; gap: .4rem; font-weight: 700; font-size: .9rem; }
.town__status::before { content: ''; width: .6rem; height: .6rem; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(34,195,142,.3); }
.town__name { font-family: var(--display); font-weight: 750; font-size: 1.9rem; line-height: 1.1; font-stretch: 88%; color: inherit; }
.town--invite .town__name { color: var(--ink); }
.town__county { opacity: .8; font-weight: 550; }
.town__desc { max-width: 30em; margin-bottom: .75rem; }
.town--invite .town__desc { color: var(--muted); }
.town__go { font-weight: 700; text-decoration: underline; text-underline-offset: .2em; }
@media (max-width: 860px) { .towns { grid-template-columns: 1fr; } .town { flex-direction: column; } }

/* funders */
.funders { display: grid; grid-template-columns: 1.15fr .85fr; gap: 4rem; align-items: center; }
.funders__copy .prose { margin-bottom: 1.5rem; }
.funders__points { list-style: none; margin: 0; padding: 0; display: grid; gap: .9rem; }
.funders__points li { background: #fff; border-radius: 18px; padding: 1.1rem 1.25rem 1.1rem 3.25rem; position: relative; font-weight: 600; color: var(--ink); }
.funders__points li::before { content: ''; position: absolute; left: 1.2rem; top: 50%; width: 1.1rem; height: 1.1rem; margin-top: -.55rem; border-radius: 50%; background: var(--orange); }
.funders__points li:nth-child(2)::before { background: var(--green); }
.funders__points li:nth-child(3)::before { background: var(--violet); }
.funders__points li:nth-child(4)::before { background: var(--pink); }
@media (max-width: 860px) { .funders { grid-template-columns: 1fr; gap: 2rem; } }

/* about + faq */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; }
.about__operator { font-weight: 600; color: var(--ink); border-left: 4px solid var(--sky); padding-left: 1rem; }
.faq__title { font-size: clamp(1.6rem, 2.6vw, 2.1rem); }
.faq details { border-bottom: 1px solid #DCE5EA; }
.faq summary { cursor: pointer; list-style: none; padding: 1.1rem 2.5rem 1.1rem 0; font-weight: 650; color: var(--ink); position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: .25rem; top: .85rem; font: 700 1.6rem/1 var(--display); color: var(--blue); transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); padding-bottom: 1rem; margin: 0; }
@media (max-width: 860px) { .about { grid-template-columns: 1fr; gap: 3rem; } }

.prose { max-width: 38em; }
.prose p { color: inherit; }
.prose--page { padding-top: 1rem; }
.prose--page h1 { font-size: clamp(2.4rem, 5vw, 3.5rem); font-weight: 800; font-stretch: 85%; }
.prose--page h2 { font-size: 1.5rem; margin-top: 2rem; }

/* contact */
.contact { display: grid; grid-template-columns: .8fr 1.2fr; gap: 4rem; align-items: start; }
.contact__intro p { font-size: 1.15rem; }
.contact__email a { color: #fff; font-weight: 650; }
.form { background: #fff; color: var(--text); border-radius: 28px; padding: clamp(1.5rem, 4vw, 2.5rem); }
.form__row { margin-bottom: 1.15rem; border: 0; padding: 0; min-width: 0; }
.form__row--half { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form label, .form legend { display: block; font-weight: 650; color: var(--ink); margin-bottom: .4rem; font-size: .97rem; }
.opt { font-weight: 450; color: var(--muted); }
.form input[type=text], .form input[type=email], .form input[type=tel], .form textarea {
  width: 100%; font: inherit; color: var(--text); padding: .8rem .95rem; border: 2px solid #CFDBE2; border-radius: 12px; background: var(--paper);
}
.form input:focus, .form textarea:focus { outline: none; border-color: var(--blue); background: #fff; box-shadow: 0 0 0 4px rgba(0,119,168,.15); }
.form textarea { resize: vertical; min-height: 8rem; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip { margin: 0 !important; font-weight: 550 !important; cursor: pointer; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span { display: inline-block; padding: .5rem .9rem; border-radius: 999px; border: 2px solid #CFDBE2; background: #fff; transition: background-color .15s ease, border-color .15s ease; }
.chip input:checked + span { background: var(--blue); border-color: var(--blue); color: #fff; }
.chip input:focus-visible + span { outline: 3px solid var(--orange); outline-offset: 2px; }
.form__consent { display: flex !important; gap: .7rem; align-items: flex-start; font-weight: 450 !important; color: var(--muted) !important; margin: .5rem 0 1.5rem !important; }
.form__consent input { width: 1.25rem; height: 1.25rem; margin-top: .15rem; flex: none; accent-color: var(--blue); }
.form .btn--sun { width: 100%; font-size: 1.05rem; }
.form .btn--sun:hover { background: var(--ink); color: #fff; }
.form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__status { border-radius: 12px; padding: .9rem 1rem; margin-bottom: 1.25rem; font-weight: 600; }
.form__status[data-state=ok] { background: #E3F8EF; color: var(--green-d); }
.form__status[data-state=error] { background: #FDE8EF; color: var(--pink-d); }
.form.is-sending .btn { opacity: .6; pointer-events: none; }
@media (max-width: 860px) { .contact { grid-template-columns: 1fr; gap: 2rem; } }
@media (max-width: 520px) { .form__row--half { grid-template-columns: 1fr; } }

/* footer */
.footer { background: var(--ink); color: rgba(255,255,255,.75); padding: 3.5rem 0 2rem; font-size: .97rem; }
.footer__inner { display: flex; justify-content: space-between; gap: 2.5rem; flex-wrap: wrap; }
.footer__about { max-width: 30rem; }
.footer__about p { margin-top: 1rem; }
.footer__links { display: flex; flex-direction: column; gap: .5rem; }
.footer a { color: #fff; }
.footer__legal { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.12); font-size: .9rem; }
.footer__legal p { margin: 0; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* tidy-ups */
.form fieldset.form__row { margin: 0 0 1.15rem; }
.form legend { padding: 0; }
.footer__legal { border-top: 0; }
.footer__legal p { border-top: 1px solid rgba(255,255,255,.12); padding-top: 1.5rem; }

/* softer page background */
body { background: #EEF3F6; }
.masthead { background: rgba(238,243,246,.96); border-bottom-color: #D8E2E8; }
.section--mist { background: #E2EBF0; }
.town--invite { background: transparent; }
.timeline__item::before { background: #EEF3F6; }
.faq details { border-bottom-color: #D3DEE4; }
