:root {
  --ink: #06443F;        /* shed green */
  --ink-deep: #032F2B;
  --orange: #F06A12;     /* roof + doors */
  --orange-text: #C24E04;/* orange dark enough for text on white */
  --yellow: #FBB010;
  --teal: #168A8A;
  --aqua: #2BAEB0;
  --cream: #FBF6EC;
  --paper: #FFFFFF;
  --line: #E6DDCB;
  --muted: #4E6663;
  --radius: 18px;
  --shadow: 0 2px 0 rgba(6, 68, 63, .08), 0 10px 28px -12px rgba(6, 68, 63, .25);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 1.0625rem/1.6 Nunito, system-ui, sans-serif;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal); }
h1, h2, h3 { font-family: Fredoka, Nunito, sans-serif; font-weight: 600; line-height: 1.15; margin: 0 0 .5em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); }
h3 { font-size: 1.3rem; }
.wrap { width: min(1140px, 100% - 32px); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .4em;
  background: var(--orange); color: #fff; text-decoration: none;
  font: 700 1rem/1 Nunito, sans-serif; padding: .85em 1.3em; border-radius: 999px;
  box-shadow: 0 3px 0 #B64A04; transition: transform .12s, box-shadow .12s;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 4px 0 #B64A04; }
.btn:active { transform: translateY(2px); box-shadow: 0 1px 0 #B64A04; }
.btn:focus-visible, a:focus-visible, button:focus-visible, input:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }

/* ---------- header ---------- */
.site-header { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 76px; }
.brand img { width: 168px; }
.site-nav ul { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; }
.site-nav a {
  display: block; padding: .55em .95em; border-radius: 999px; text-decoration: none;
  color: var(--ink); font-weight: 700;
}
.site-nav a:hover { background: var(--cream); }
.site-nav a[aria-current="page"] { background: var(--ink); color: #fff; }
.nav-toggle { display: none; }

@media (max-width: 760px) {
  .header-inner { min-height: 64px; gap: 12px; }
  .brand img { width: 132px; }
  .nav-toggle {
    order: 1; display: grid; gap: 5px; place-content: center;
    width: 48px; height: 48px; border: 0; border-radius: 12px; background: var(--cream); cursor: pointer;
  }
  .nav-toggle span { display: block; width: 22px; height: 3px; border-radius: 2px; background: var(--ink); transition: transform .2s, opacity .2s; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
  .site-nav {
    position: absolute; left: 0; right: 0; top: 100%;
    background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    display: none; padding: 8px 16px 16px;
  }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; }
  .site-nav a { padding: .8em 1em; font-size: 1.1rem; }
}

/* ---------- hero ---------- */
.hero { background: var(--cream); padding: clamp(40px, 7vw, 84px) 0; overflow: hidden; }
.hero-inner { display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: center; }
.kicker { font-weight: 800; color: var(--orange-text); text-transform: uppercase; letter-spacing: .08em; font-size: .85rem; margin: 0 0 .8em; }
.hero h1 span { color: var(--orange-text); }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 38em; margin: 0 0 1.4em; }
.hero-shed { width: clamp(150px, 22vw, 256px); transform: rotate(4deg); filter: drop-shadow(0 18px 24px rgba(6, 68, 63, .18)); }
.search input {
  width: 100%; max-width: 480px; font: 600 1.1rem Nunito, sans-serif; color: var(--ink);
  padding: .9em 1.2em .9em 3em; border: 2px solid var(--line); border-radius: 999px; background: #fff
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' fill='none' stroke='%2306443F' stroke-width='2.5' stroke-linecap='round'%3E%3Ccircle cx='9.5' cy='9.5' r='6.5'/%3E%3Cpath d='m14.5 14.5 5 5'/%3E%3C/svg%3E") no-repeat 1.1em center;
}
.search input:focus { border-color: var(--teal); outline: none; box-shadow: 0 0 0 4px rgba(22, 138, 138, .18); }
@media (max-width: 640px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-shed { order: -1; width: 120px; }
}

/* ---------- sections ---------- */
.section { padding: clamp(40px, 6vw, 72px) 0; }
.section-alt { background: var(--cream); }
.count { font: 700 1rem Nunito, sans-serif; color: var(--muted); margin-left: .4em; }
.empty { color: var(--muted); font-size: 1.1rem; }

/* colour themes from the four logo squares */
.c-teal   { --c: var(--teal);   --c-soft: #E3F3F2; --c-text: #0F6E6E; }
.c-orange { --c: var(--orange); --c-soft: #FDEBDD; --c-text: var(--orange-text); }
.c-yellow { --c: var(--yellow); --c-soft: #FEF3D6; --c-text: #8A5D00; }
.c-aqua   { --c: var(--aqua);   --c-soft: #E1F5F5; --c-text: #0F7375; }

/* ---------- category tiles ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; }
.cat-tile {
  display: grid; gap: 4px; padding: 22px; border-radius: var(--radius); text-decoration: none; color: var(--ink);
  background: var(--c-soft); border: 2px solid transparent; position: relative; overflow: hidden;
  transition: transform .15s, border-color .15s;
}
.cat-tile::after { content: ""; position: absolute; right: -26px; bottom: -26px; width: 96px; height: 96px; border-radius: 26px; background: var(--c); opacity: .9; transform: rotate(12deg); }
.cat-tile:hover { transform: translateY(-3px); border-color: var(--c); }
.cat-icon { font-size: 2rem; }
.cat-name { font: 600 1.5rem Fredoka, sans-serif; }
.cat-count { font-weight: 800; color: var(--c-text); }
.cat-subs { color: var(--muted); font-size: .95rem; padding-right: 70px; }

/* ---------- app cards ---------- */
.app-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 24px; }
.app-card {
  background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
  display: flex; flex-direction: column; border-top: 6px solid var(--c);
}
.app-shot { display: block; aspect-ratio: 1100 / 688; background: var(--c-soft); overflow: hidden; }
.app-shot img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .3s; }
.app-card:hover .app-shot img { transform: scale(1.03); }
.app-shot-blank { display: grid; place-items: center; height: 100%; font-size: 3rem; }
.app-body { padding: 18px 20px 22px; display: flex; flex-direction: column; flex: 1; }
.app-where { margin: 0 0 .3em; font-size: .9rem; font-weight: 700; color: var(--muted); }
.app-where a { color: var(--c-text); text-decoration: none; }
.app-where a:hover { text-decoration: underline; }
.app-blurb { color: var(--muted); margin: 0 0 1em; flex: 1; }
.tags { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 1.1em; padding: 0; }
.tags li { background: var(--cream); border-radius: 999px; padding: .2em .75em; font-size: .85rem; font-weight: 700; }
.tags li.price { background: var(--ink); color: #fff; }
.where-to { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 0 0 1em; font-size: .9rem; font-weight: 700; color: var(--muted); }
.where-to span::before { content: "✓ "; color: var(--teal); }
.install { margin: -.3em 0 1em; font-size: .92rem; color: var(--muted); background: var(--cream); border-radius: 12px; padding: .55em .9em; }
.install summary { cursor: pointer; font-weight: 700; color: var(--c-text); }
.install p { margin: .5em 0 0; }
.install b { color: var(--ink); }
.app-buttons { display: flex; flex-wrap: wrap; gap: 10px; }
.btn-alt { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); }
.btn-alt:hover, .btn-alt:active { box-shadow: inset 0 0 0 2px var(--ink); background: var(--cream); }

/* ---------- category / subcategory pages ---------- */
.cat-hero { background: var(--c-soft); padding: 28px 0 36px; border-bottom: 6px solid var(--c); }
.cat-hero h1 { margin-top: .3em; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; font-weight: 700; font-size: .95rem; }
.crumbs li + li::before { content: "›"; margin-right: 6px; color: var(--muted); }
.crumbs a { color: var(--c-text); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.crumbs [aria-current] { color: var(--muted); }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; }
.chip {
  display: inline-flex; align-items: center; gap: .5em; padding: .6em 1.1em; border-radius: 999px;
  background: #fff; color: var(--ink); text-decoration: none; font-weight: 700; border: 2px solid transparent;
}
.chip span { background: var(--c-soft); color: var(--c-text); border-radius: 999px; padding: 0 .55em; font-size: .85rem; }
.chip:hover { border-color: var(--c); }
.chip[aria-current="page"] { background: var(--ink); color: #fff; }
.chip[aria-current="page"] span { background: rgba(255,255,255,.2); color: #fff; }
.sub-section + .sub-section { padding-top: 0; }
.sub-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 16px; margin-bottom: 18px; }
.sub-head h2 { margin: 0; }
.sub-head h2 a { color: inherit; text-decoration: none; }
.sub-head h2 a:hover { text-decoration: underline; }
.sub-head p { margin: 0; color: var(--muted); }

/* ---------- about ---------- */
.about { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: start; }
.about p { color: var(--muted); }
.about-box { background: var(--ink); color: #fff; border-radius: var(--radius); padding: 28px; }
.about-box p { color: #D5E7E4; }
.about-box a:not(.btn) { color: var(--yellow); }
@media (max-width: 760px) { .about { grid-template-columns: 1fr; } }

/* ---------- footer ---------- */
.site-footer { background: var(--ink-deep); color: #CFE2DF; padding: 40px 0; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 24px 48px; align-items: center; justify-content: space-between; }
.footer-inner > div { display: flex; gap: 14px; align-items: center; }
.footer-shed { width: 56px; background: #fff; border-radius: 14px; padding: 4px; }
.site-footer p { margin: 0; }
.site-footer strong { color: #fff; font-family: Fredoka, sans-serif; font-size: 1.15rem; font-weight: 600; }
.site-footer ul { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 20px; margin: 0; padding: 0; }
.site-footer a { color: #fff; }
.footer-inner > .sister { flex-direction: column; align-items: flex-start; gap: 0; }
.sister p { font-weight: 800; color: #fff; margin-bottom: .3em; }
.sister ul { flex-direction: column; gap: 4px; }
.sister a { color: var(--yellow); font-weight: 700; }
.sister span { color: #9FBDB8; font-size: .9rem; }
.about-more { margin: 1.4em 0 0; padding-top: 1.1em; border-top: 1px solid rgba(255,255,255,.18); font-size: .95rem; }

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