/* Feeding Warwickshire
   Colours: Feeding Warwickshire green, with the Lillington Community Pantry orange (#e16f2e) as the accent. */

:root {
  --green-900: #143328;
  --green-700: #1f5a45;
  --green-100: #e6efe9;
  --orange: #e16f2e;
  --orange-text: #b04f18;   /* darker orange that passes contrast for text and buttons */
  --orange-100: #fcebdf;
  --cream: #fbf7f1;
  --white: #ffffff;
  --ink: #1f2a26;
  --muted: #56615c;
  --line: #e4ddd2;

  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(20, 51, 40, .06), 0 8px 24px rgba(20, 51, 40, .07);
  --container: 1120px;
  --gutter: 20px;

  --font: "Lato", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }
address { font-style: normal; }

h1, h2, h3, h4 {
  margin: 0 0 .5em;
  line-height: 1.15;
  color: var(--green-900);
}
h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); font-weight: 900; letter-spacing: -.015em; }
h2 { font-size: clamp(1.75rem, 3.2vw, 2.4rem); font-weight: 900; letter-spacing: -.01em; }
h3 { font-size: 1.3rem; font-weight: 900; }
h4 { font-size: 1.1rem; font-weight: 900; }
p { margin: 0 0 1em; }

a { color: var(--green-700); text-underline-offset: .18em; }
a:hover { color: var(--orange-text); }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 4px; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 10;
  padding: 10px 16px;
  background: var(--green-900);
  color: var(--white);
  border-radius: var(--radius-sm);
  font-weight: 700;
}
.skip-link:focus { top: 12px; color: var(--white); }

/* ---------- Header ---------- */

.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 32px;
  padding-top: 18px;
  padding-bottom: 18px;
}

.wordmark {
  display: inline-flex;
  flex-direction: column;
  margin: 0;
  line-height: 1;
  text-decoration: none;
}
.wordmark__top {
  color: var(--orange-text);
  font-size: .9rem;
  font-weight: 700;
  letter-spacing: .32em;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.wordmark__bottom {
  color: var(--green-700);
  font-size: 1.7rem;
  font-weight: 900;
  letter-spacing: -.01em;
}
a.wordmark:hover .wordmark__bottom { color: var(--green-900); }

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.site-nav a {
  display: block;
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--ink);
  font-weight: 700;
  font-size: .98rem;
  text-decoration: none;
}
.site-nav a:hover { background: var(--green-100); color: var(--green-900); }

/* ---------- Buttons & links ---------- */

.button-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.button {
  display: inline-block;
  padding: 14px 24px;
  border: 2px solid transparent;
  border-radius: 999px;
  font-weight: 900;
  font-size: 1rem;
  line-height: 1.2;
  text-decoration: none;
  transition: background-color .15s, color .15s, border-color .15s;
}
.button--primary { background: var(--orange-text); color: var(--white); }
.button--primary:hover { background: #8f3f12; color: var(--white); }
.button--secondary { border-color: var(--green-700); color: var(--green-700); }
.button--secondary:hover { background: var(--green-700); color: var(--white); }
.button--light { background: var(--white); color: var(--green-900); }
.button--light:hover { background: var(--orange-100); color: var(--green-900); }

.text-link { font-weight: 700; }

.eyebrow {
  margin: 0 0 10px;
  color: var(--orange-text);
  font-size: .85rem;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.eyebrow--light { color: #ffc9a6; }

.lead { font-size: 1.2rem; color: var(--muted); }

/* ---------- Hero ---------- */

.hero { padding: 56px 0 40px; }
.hero__inner {
  display: grid;
  gap: 40px;
  align-items: center;
}
.hero__media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: 45% 50%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 40px 0 0;
  padding: 0;
  list-style: none;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.facts li {
  padding: 18px 22px;
  border-left: 1px solid var(--line);
  line-height: 1.3;
}
.facts li:first-child { border-left: 0; }
.facts strong {
  display: block;
  color: var(--green-700);
  font-size: 1.45rem;
  font-weight: 900;
}
.facts span { color: var(--muted); font-size: .95rem; }

/* ---------- Sections ---------- */

.section { padding: 72px 0; }
.section--tint { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-intro { max-width: 60ch; color: var(--muted); font-size: 1.1rem; margin-bottom: 28px; }

.two-col { display: grid; gap: 40px; align-items: start; }
.two-col--media { align-items: center; margin-top: 8px; }

.photo img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.tick-list { margin: 0 0 1.2em; padding: 0; list-style: none; }
.tick-list li {
  position: relative;
  margin-bottom: .55em;
  padding-left: 32px;
}
.tick-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .3em;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--orange-100) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='%23b04f18' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 20px no-repeat;
}

.card {
  padding: 26px 28px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.card h3 { font-size: 1.1rem; margin-bottom: .4em; }
.card p:last-child { margin-bottom: 0; }

.card--details { border-top: 5px solid var(--green-700); }
.card--details dl { margin: 0 0 18px; }
.card--details dl > div { padding: 10px 0; border-bottom: 1px solid var(--line); }
.card--details dl > div:last-child { border-bottom: 0; }
.card--details dt {
  color: var(--muted);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.card--details dd { margin: 2px 0 0; font-weight: 700; line-height: 1.4; }

/* ---------- Pantry ---------- */

.pantry-intro {
  display: grid;
  gap: 24px;
  align-items: center;
  margin-bottom: 40px;
}
.pantry-logo { width: 100%; max-width: 360px; }
.pantry-intro h2 { margin-bottom: .3em; }
.pantry-intro .lead { margin-bottom: 0; }

.steps-title { margin-top: 64px; font-size: 1.6rem; scroll-margin-top: 24px; }

.steps {
  display: grid;
  gap: 16px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}
.steps li {
  position: relative;
  padding: 24px 22px 20px;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  counter-increment: step;
}
.steps li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-bottom: 14px;
  border-radius: 50%;
  background: var(--orange);
  color: var(--white);
  font-size: 1.2rem;
  font-weight: 900;
}
.steps h4 { margin-bottom: .35em; }
.steps p { margin: 0; color: var(--muted); font-size: 1rem; }

.more-than-food {
  margin-top: 48px;
  padding: 28px;
  background: var(--orange-100);
  border-radius: var(--radius);
}
.more-than-food p { max-width: 70ch; }
.pill-list { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.pill-list li {
  padding: 8px 16px;
  background: var(--white);
  border-radius: 999px;
  font-weight: 700;
  font-size: .98rem;
}

/* ---------- Visit (brand band) ---------- */

.section--brand {
  position: relative;
  overflow: hidden;
  background: var(--green-700);
  color: var(--white);
}
.section--brand::before {
  /* Lillington Community Pantry food pattern as a faint texture */
  content: "";
  position: absolute;
  inset: 0;
  background: url("../img/food-pattern-white.png") 0 0 / 260px repeat;
  opacity: .07;
  pointer-events: none;
}
.section--brand .container { position: relative; }
.section--brand h2,
.section--brand h3 { color: var(--white); }
.visit-block { margin: 24px 0; }
.visit-block h3 {
  margin-bottom: 6px;
  color: #ffc9a6;
  font-size: .85rem;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.visit-big { margin: 0; font-size: 1.5rem; font-weight: 900; line-height: 1.3; }
.section--brand address { font-size: 1.1rem; }
.photo--framed img { border: 6px solid var(--white); }

/* ---------- Other help ---------- */

.link-cards {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.link-cards a {
  display: block;
  height: 100%;
  padding: 22px 24px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-decoration: none;
  transition: border-color .15s, box-shadow .15s;
}
.link-cards a:hover { border-color: var(--green-700); box-shadow: var(--shadow); }
.link-cards__title {
  display: block;
  margin-bottom: 4px;
  color: var(--green-700);
  font-weight: 900;
  font-size: 1.08rem;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: .18em;
}
.link-cards__title::after { content: " \2197"; text-decoration: none; display: inline-block; margin-left: 2px; }
.link-cards__text { display: block; color: var(--muted); font-size: 1rem; }

/* ---------- Contact ---------- */

.contact-grid { display: grid; gap: 16px; }
.contact-value {
  font-size: 1.2rem;
  font-weight: 900;
  overflow-wrap: anywhere;
}

/* ---------- Footer ---------- */

.site-footer {
  padding: 48px 0;
  background: var(--green-900);
  color: #d5e2da;
  font-size: .95rem;
}
.site-footer__inner { display: grid; gap: 28px; }
.site-footer a { color: var(--white); }
.site-footer p { margin-bottom: .6em; }
.wordmark--footer { margin-bottom: 12px; }
.wordmark--footer .wordmark__top { color: #ffc9a6; }
.wordmark--footer .wordmark__bottom { color: var(--white); }

/* ---------- Larger screens ---------- */

@media (min-width: 640px) {
  .steps { grid-template-columns: repeat(2, 1fr); }
  .link-cards { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 900px) {
  :root { --gutter: 32px; }
  .hero { padding: 72px 0 48px; }
  .hero__inner { grid-template-columns: 1.1fr 1fr; gap: 56px; }
  .section { padding: 96px 0; }
  .two-col { grid-template-columns: 1.35fr 1fr; gap: 56px; }
  .two-col--media { grid-template-columns: 1fr 1fr; }
  .two-col--reverse > :first-child { order: 0; }
  .pantry-intro { grid-template-columns: 360px 1fr; gap: 48px; }
  .steps { grid-template-columns: repeat(4, 1fr); }
  .contact-grid { grid-template-columns: repeat(3, 1fr); }
  .site-footer__inner { grid-template-columns: 1fr 1.6fr; gap: 48px; }
}

@media (max-width: 560px) {
  .facts { grid-template-columns: 1fr; }
  .facts li { border-left: 0; border-top: 1px solid var(--line); display: flex; align-items: baseline; gap: 10px; }
  .facts li:first-child { border-top: 0; }
  .facts strong { font-size: 1.2rem; min-width: 6.5em; }
  .wordmark__bottom { font-size: 1.5rem; }
  .site-nav a { padding: 6px 10px; font-size: .95rem; }
}
