/* Shared styles for every page: reset, brand tokens, header and footer. */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --teal:        #1d4f50;
  --teal-dark:   #005250;
  --lime:        #b8c800;
  --lime-bright: #c1d82f;
  --lime-btn:    #c5d32b;
  --lime-footer: #cad400;
  --lime-tint:   #eef3dc;
  --mint:        #f4f8ec;
  --text:        #374151;
  --muted:       #6b7280;
  --border:      #e3e8dc;
  --max:         1320px;
}

body {
  font-family: 'Gotham Rounded', sans-serif;
  background: #fff;
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Content width shared by header, sections and footer so everything lines up */
.wrap {
  max-width: var(--max);
  width: calc(100% - 48px);
  margin: 0 auto;
}

/* ── Header ── */
header {
  background: #fff;
  padding: 16px 0;
  box-shadow: 0 1px 0 rgba(0,0,0,0.06);
  position: relative;
  z-index: 1;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.logo-link { display: block; line-height: 0; border-radius: 6px; }
.logo-link:focus-visible { outline: 2px solid var(--teal); outline-offset: 4px; }
.logo-svg { display: block; width: 120px; height: auto; color: var(--teal-dark); }
.site-pill {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--mint);
  border: 1px solid var(--border);
  border-radius: 50px;
  padding: 9px 16px;
  font-size: 14px; font-weight: 600;
  color: var(--teal);
  max-width: 60%;
}
.site-pill svg { flex-shrink: 0; }
.site-pill span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ── Footer (mirrors olleco.co.uk) ── */
footer {
  background: var(--teal-dark);
  color: #fff;
  font-size: 13px;
}
.footer-main {
  display: grid;
  /* Logo | app block | services | links | support office. The three link columns
     size to their content and sit together on the right with equal gaps, ending at
     the right-hand edge; the app block takes the remaining space. Splitting the
     logo from the app block keeps every column a similar height. */
  grid-template-columns: auto 1fr auto auto auto;
  column-gap: 64px;
  row-gap: 32px;
  padding: 24px 0;
}
/* White logo with the "Supply. Collect. Convert." tagline (243x106 image) */
.footer-logo { display: block; width: 140px; height: auto; }
/* White pill buttons for the app stores and web portal */
.app-links { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
footer a.app-link {
  display: inline-flex; align-items: center; gap: 6px;
  background: #fff; color: #111;
  border-radius: 8px;
  padding: 5px 9px 5px 7px;
  font-size: 12px; font-weight: 700; line-height: 1.05;
  white-space: nowrap;
  transition: background 0.2s;
}
footer a.app-link:hover { background: var(--lime-tint); color: #111; }
.app-link svg { flex-shrink: 0; }
.app-link small { display: block; font-size: 8px; font-weight: 500; letter-spacing: 0.2px; }
.footer-blurb { line-height: 1.5; color: rgba(255,255,255,0.85); max-width: 340px; }
footer h4 {
  font-size: 14px; font-weight: 700;
  color: var(--lime-footer);
  margin-bottom: 8px;
}
footer ul { list-style: none; }
footer li + li { margin-top: 5px; }
footer a { color: #fff; text-decoration: none; }
footer a:hover { color: var(--lime-footer); }
footer a:focus-visible { outline: 2px solid var(--lime-footer); outline-offset: 2px; border-radius: 3px; }
footer address { font-style: normal; line-height: 1.5; color: rgba(255,255,255,0.85); }
footer address strong { color: #fff; font-weight: 700; }
.footer-contact { max-width: 260px; }   /* keeps a long depot address from widening the column */
.footer-contact a { overflow-wrap: anywhere; }
.socials { display: flex; gap: 8px; margin-top: 10px; }
.socials a {
  width: 30px; height: 30px;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,0.4);
  display: flex; align-items: center; justify-content: center;
  transition: border-color 0.2s, color 0.2s;
}
.socials a:hover { border-color: var(--lime-footer); }
/* Copyright sits under the logo */
.footer-copyright {
  margin-top: 10px;
  font-size: 12px;
  color: rgba(255,255,255,0.6);
  white-space: nowrap;
}

/* ── Simple message pages (home, not found, not ready, error) ── */
.message-main {
  flex: 1;
  display: flex; align-items: center; justify-content: center;
  background: var(--mint);
  padding: 48px 0 56px;
}
.message-card {
  max-width: 540px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 44px 40px 40px;
  text-align: center;
}
.message-card .icon-circle {
  width: 72px; height: 72px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: var(--lime-tint);
  display: flex; align-items: center; justify-content: center;
  color: #6b7600;
}
.message-card h1 {
  font-size: 26px; font-weight: 700;
  letter-spacing: -0.4px;
  color: var(--teal);
}
.message-card p {
  font-size: 15px; line-height: 1.65;
  color: var(--muted);
  margin-top: 14px;
}
.message-card p.note { font-size: 13px; margin-top: 22px; }
.message-card a.link { color: var(--teal); font-weight: 600; text-decoration: none; }
.message-card a.link:hover { text-decoration: underline; }

@media (max-width: 960px) {
  .footer-main { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 680px) {
  .wrap { width: calc(100% - 32px); }
  header { padding: 12px 0; }
  .logo-svg { width: 96px; }
  .site-pill { padding: 7px 12px; font-size: 13px; }
  .footer-main { grid-template-columns: 1fr; gap: 20px; padding: 28px 0 20px; }
  .message-main { padding: 24px 0 32px; }
  .message-card { padding: 32px 22px 28px; }
  .message-card h1 { font-size: 22px; }
}
