/* ===== THEME: edit these to match your logo colors ===== */
:root {
  --bg: #f5f8f7;
  --surface: #ffffff;
  --ink: #10302b;
  --muted: #55696a;
  --line: #d8e2e0;
  --brand: #0e5b4f;
  --brand-ink: #ffffff;
  --cta: #f5813d;
  --cta-ink: #1c1000;
  --head: "Bricolage Grotesque", system-ui, sans-serif;
  --body: "Instrument Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 1.0625rem/1.6 var(--body); }
h1, h2, h3 { font-family: var(--head); line-height: 1.15; margin: 0; }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); margin-bottom: 1rem; }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1rem; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); }
a:focus-visible { outline: 3px solid var(--cta); outline-offset: 3px; border-radius: 4px; }

.skip { position: absolute; left: -999px; top: 0; background: var(--cta); color: var(--cta-ink); padding: .5rem 1rem; z-index: 20; }
.skip:focus { left: 0; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 4rem 1.5rem 0; }
.lead { color: var(--muted); max-width: 60ch; }
.center { text-align: center; margin-top: 2.5rem; }

/* Header */
.top {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .75rem 1.5rem;
  background: var(--surface); border-bottom: 1px solid var(--line);
}
.brand { display: block; line-height: 0; }
.brand img { height: 44px; width: auto; }
.top nav { display: flex; align-items: center; gap: .35rem; }
.top nav a:not(.btn) {
  position: relative;
  padding: .5rem .85rem;
  color: var(--ink);
  font-weight: 500;
  text-decoration: none;
  border-radius: 8px;
  transition: color .2s ease, background-color .2s ease;
}
/* colourful underline that slides in from the left */
.top nav a:not(.btn)::after {
  content: "";
  position: absolute; left: .85rem; right: .85rem; bottom: .2rem;
  height: 3px; border-radius: 3px;
  background: linear-gradient(90deg, var(--brand), var(--cta));
  transform: scaleX(0); transform-origin: left;
  transition: transform .25s ease;
}
.top nav a:not(.btn):hover,
.top nav a:not(.btn):focus-visible {
  color: var(--brand);
  background: #eaf4f1;
}
.top nav a:not(.btn):hover::after,
.top nav a:not(.btn):focus-visible::after { transform: scaleX(1); }
.top nav .btn { margin-left: .5rem; transition: transform .2s ease, box-shadow .2s ease, filter .2s ease; }
.top nav .btn:hover { transform: translateY(-2px); box-shadow: 0 6px 14px rgba(245, 129, 61, .4); }

/* Buttons */
.btn {
  display: inline-block; padding: .8rem 1.5rem; border-radius: 8px;
  background: var(--cta); color: var(--cta-ink); font-weight: 600; text-decoration: none;
}
.btn:hover { filter: brightness(1.07); }
.btn.outline { background: transparent; color: var(--brand); border: 2px solid currentColor; padding: calc(.8rem - 2px) calc(1.5rem - 2px); }
.btn.small { padding: .45rem 1rem; }
.more { font-weight: 600; }

/* Slider */
.slider { position: relative; overflow: hidden; background: #1b2b27; }
.track { display: flex; transition: transform .6s ease; }
.slide { flex: 0 0 100%; }
.slide a { display: block; }
.slide img { width: 100%; height: auto; aspect-ratio: 1240 / 500; }
.controls {
  position: absolute; left: 50%; bottom: .75rem; transform: translateX(-50%);
  display: flex; align-items: center; gap: .75rem;
  background: rgba(16, 48, 43, .65); padding: .35rem .75rem; border-radius: 999px;
}
.nav { width: 2rem; height: 2rem; border: 0; border-radius: 50%; background: #fff; color: var(--ink); font-size: 1.4rem; line-height: 1; cursor: pointer; }
.nav:hover { background: var(--cta); }
.nav:focus-visible, .dots button:focus-visible { outline: 3px solid var(--cta); outline-offset: 2px; }
.dots { display: flex; gap: .5rem; }
.dots button { width: .75rem; height: .75rem; padding: 0; border: 0; border-radius: 50%; background: rgba(255,255,255,.5); cursor: pointer; }
.dots button[aria-current="true"] { background: var(--cta); }

/* Intro under the slider */
.intro { padding-top: 3rem; text-align: center; }
.intro h1 { font-size: clamp(2rem, 4.5vw, 3.25rem); margin-bottom: 1rem; }
.intro .lead { margin-inline: auto; }
.intro .btn { margin: .5rem .35rem 0; }

/* Categories */
.cats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; }
.cats a {
  background: var(--surface); border: 1px solid var(--line); border-radius: 10px;
  overflow: hidden; text-decoration: none; color: var(--ink); font-weight: 600; text-align: center;
}
.cats img { aspect-ratio: 1; object-fit: cover; width: 100%; }
.cats span { display: block; padding: .75rem .5rem; }
.cats a:hover { border-color: var(--brand); }

/* Products: large images */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 2rem; }
.product { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 1rem 1rem 1.25rem; display: flex; flex-direction: column; }
.product img { width: 100%; aspect-ratio: 1; object-fit: contain; background: #fff; border-radius: 6px; margin-bottom: 1rem; }
.product h3 { margin-bottom: .4rem; }
.product p { color: var(--muted); font-size: 1rem; flex: 1; }

/* Brands */
.brands { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.brands a { display: block; padding: 1.25rem; border-left: 4px solid var(--cta); background: var(--surface); text-decoration: none; color: var(--ink); border-radius: 0 10px 10px 0; }
.brands a:hover { background: #fff3ea; }
.brands p { color: var(--muted); margin: .25rem 0 0; font-size: 1rem; }

/* About */
.about { margin-top: 4rem; background: var(--surface); border-block: 1px solid var(--line); padding-bottom: 4rem; }
.about-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 3rem; align-items: center; }
.about p { max-width: 55ch; }
.facts { list-style: none; margin: 0; padding: 0; }
.facts li { padding: .9rem 0; border-bottom: 1px solid var(--line); color: var(--muted); }
.facts li:last-child { border: 0; }
.facts strong { display: block; font: 700 1.6rem var(--head); color: var(--brand); }

/* Contact */
.contact ul { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem 2rem; }
.contact li strong { display: block; color: var(--muted); font-weight: 500; font-size: .95rem; }
.contact li a { font-size: 1.15rem; font-weight: 600; word-break: break-all; }

/* Footer */
.site-footer {
  margin-top: 5rem; background: #0b3d35; color: #cfe3de;
  border-top: 4px solid; border-image: linear-gradient(90deg, var(--brand), var(--cta)) 1;
}
.foot-grid {
  max-width: 1120px; margin: 0 auto; padding: 3.5rem 1.5rem 2.5rem;
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.3fr; gap: 2.5rem;
}
.site-footer h3 { color: #fff; font-size: 1rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 1rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: .6rem; }
.site-footer a { color: #cfe3de; text-decoration: none; }
.site-footer a:hover { color: var(--cta); text-decoration: underline; }
.site-footer a.btn { color: var(--cta-ink); text-decoration: none; }
.foot-brand img { height: 56px; width: auto; margin-bottom: 1rem; }
.foot-brand p { max-width: 34ch; color: #a9c6bf; margin-bottom: 1.25rem; }
.foot-bottom { border-top: 1px solid rgba(255,255,255,.14); }
.foot-bottom-in { max-width: 1120px; margin: 0 auto; padding: 1.25rem 1.5rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem 1.5rem; font-size: .95rem; color: #9ab9b2; }
.foot-bottom-in p { margin: 0; }

/* Inner pages */
.wrap-s { max-width: 780px; margin: 0 auto; padding: 0 1.5rem; }
.page-head { background: var(--surface); border-bottom: 1px solid var(--line); padding: 3rem 0 2.5rem; margin-bottom: 2.5rem; }
.page-head h1 { font-size: clamp(2rem, 4.5vw, 3rem); margin-bottom: .5rem; }
.page-head .lead { margin-bottom: 0; }
.prose h2 { font-size: 1.4rem; margin: 2rem 0 .5rem; }
.prose ul { padding-left: 1.25rem; }
.prose li { margin-bottom: .35rem; }
.prose .btn { margin: .5rem .5rem 0 0; }
.note { background: #fff3ea; border-left: 4px solid var(--cta); padding: .75rem 1rem; border-radius: 0 8px 8px 0; }
.facts-row { display: flex; flex-wrap: wrap; gap: 1rem 2.5rem; margin: 2rem 0; padding: 1.25rem 0; border-block: 1px solid var(--line); }
.facts-row p { margin: 0; color: var(--muted); }
.facts-row strong { display: block; font: 700 1.6rem var(--head); color: var(--brand); }
.top nav a[aria-current="page"] { color: var(--brand); }
.top nav a[aria-current="page"]::after { transform: scaleX(1); }

/* Products list page */
.filter { display: block; margin-top: 1.25rem; }
.filter input { width: 100%; max-width: 420px; padding: .7rem 1rem; font: inherit; border: 2px solid var(--line); border-radius: 8px; background: var(--bg); color: var(--ink); }
.filter input:focus { outline: none; border-color: var(--brand); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.pgroup { margin-bottom: 2rem; }
.pgroup h2 { font-size: 1.3rem; padding-bottom: .4rem; border-bottom: 3px solid var(--cta); display: inline-block; margin-bottom: .75rem; }
.pgroup ul { list-style: none; margin: 0; padding: 0; }
.pgroup li { border-bottom: 1px solid var(--line); }
.pgroup li a { display: block; padding: .65rem .25rem; color: var(--ink); text-decoration: none; font-weight: 500; }
.pgroup li a:hover { color: var(--brand); background: #eaf4f1; padding-left: .75rem; transition: padding .15s ease; }
[hidden] { display: none !important; }

/* Contact and careers */
.wrap-m { max-width: 1000px; margin: 0 auto; padding: 0 1.5rem; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.card { display: flex; flex-direction: column; gap: .25rem; padding: 1.5rem; background: var(--surface); border: 1px solid var(--line); border-top: 4px solid var(--cta); border-radius: 10px; text-decoration: none; color: var(--ink); transition: transform .2s ease, box-shadow .2s ease; }
.card:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(16,48,43,.12); }
.card-label { color: var(--muted); font-size: .95rem; }
.card strong { font: 700 1.2rem var(--head); color: var(--brand); word-break: break-word; }
.card span:last-child { color: var(--muted); font-size: .95rem; }
.contact-split { display: grid; grid-template-columns: 1.3fr 1fr; gap: 3rem; margin-top: 3.5rem; }
.cform { display: grid; gap: 1rem; }
.cform label { display: grid; gap: .35rem; font-weight: 500; }
.cform input, .cform textarea { font: inherit; padding: .7rem .9rem; border: 2px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--ink); }
.cform input:focus, .cform textarea:focus { outline: none; border-color: var(--brand); }
.cform .btn { border: 0; cursor: pointer; font: inherit; font-weight: 600; justify-self: start; }
.plain-list { list-style: none; margin: 0; padding: 0; }
.plain-list li { padding: .6rem 0; border-bottom: 1px solid var(--line); }
.job { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 1.25rem; margin-bottom: 1rem; }
.job .meta { color: var(--muted); margin-bottom: .5rem; }

/* Address, hours, map */
.addr { font-style: normal; margin-bottom: .75rem; }
.hours { border-collapse: collapse; width: 100%; max-width: 360px; margin-bottom: 2rem; }
.hours th, .hours td { text-align: left; padding: .55rem 0; border-bottom: 1px solid var(--line); font-weight: 500; }
.hours td { color: var(--muted); }
.map { margin-top: 3rem; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.map iframe { display: block; width: 100%; height: 380px; border: 0; }

/* Responsive */
@media (max-width: 900px) {
  .cats { grid-template-columns: repeat(3, 1fr); }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .brands { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .cards { grid-template-columns: 1fr; }
  .contact-split { grid-template-columns: 1fr; gap: 2rem; }
}
@media (max-width: 600px) {
  .top { flex-wrap: wrap; }
  .top nav { gap: .15rem; flex-wrap: wrap; font-size: .95rem; }
  .cats { grid-template-columns: repeat(2, 1fr); }
  .grid, .contact ul { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; }
  .wrap { padding-top: 3rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .top nav a, .top nav a::after, .top nav .btn, .track { transition: none; }
}
