/* J Lister Mulching. Colours and layout match the old WordPress (Total theme) site. */
@font-face { font-family: "Roboto Slab"; font-weight: 400; font-display: swap; src: url("/assets/fonts/roboto-slab-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Roboto Slab"; font-weight: 600; font-display: swap; src: url("/assets/fonts/roboto-slab-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Roboto Slab"; font-weight: 700; font-display: swap; src: url("/assets/fonts/roboto-slab-latin-700-normal.woff2") format("woff2"); }

:root {
  --green: #4cb34a;
  --green-dark: #3d9a3b;
  --text: #555;
  --heading: #222;
  --border: #e6e6e6;
  --footer: #222;
  --max: 980px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 20px; }
body { margin: 0; font-family: "Roboto Slab", Georgia, serif; font-size: 15px; line-height: 1.75; color: var(--text); background: #fff; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green); }
a:hover { color: var(--green-dark); }
p { margin: 0 0 1.2em; }
h1, h2, h3 { color: var(--heading); line-height: 1.3; font-weight: 600; margin: 0 0 .6em; }
h1 { font-size: 1.9rem; }
h2 { font-size: 1.45rem; }
h3 { font-size: 1.1rem; }
.container { width: min(var(--max), 100% - 40px); margin-inline: auto; }
main.container { padding-block: 30px 50px; }
.skip, .visually-hidden { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.skip:focus { left: 10px; top: 10px; width: auto; height: auto; z-index: 100; background: #fff; color: #000; padding: 8px 12px; }
.lead { font-size: 1.05rem; }

/* Header and menu */
.site-header { background: var(--green); display: flex; justify-content: center; padding: 8px 20px 20px; }
.logo img { width: 170px; height: auto; }
.nav { border-bottom: 1px solid var(--border); background: #fff; }
.nav ul { list-style: none; margin: 0 auto; padding: 0 10px; display: flex; flex-wrap: wrap; justify-content: center; gap: 0 40px; }
.nav a { display: block; padding: 12px 0; font-weight: 600; font-size: 16px; text-transform: uppercase; text-decoration: none; color: #555; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--green); }
@media (max-width: 760px) {
  .logo img { width: 130px; }
  .nav ul { gap: 0 18px; }
  .nav a { font-size: 14px; padding: 10px 0; }
}

/* Buttons */
.btn { display: inline-block; background: var(--green); color: #fff; border: 0; border-radius: 3px; font: inherit; padding: 8px 16px; text-decoration: none; cursor: pointer; text-align: center; }
.btn:hover { background: var(--green-dark); color: #fff; }
.btn[disabled] { opacity: .7; cursor: wait; }
.btn-big { text-transform: uppercase; font-size: 16px; padding: 14px 28px; min-width: 222px; }
.btn-block { display: block; text-transform: uppercase; font-size: 13px; padding: 10px; }
.btn-light { background: #fff; color: var(--green); font-weight: 600; }
.btn-light:hover { background: #f0f0f0; color: var(--green-dark); }

/* Home */
.intro { display: grid; grid-template-columns: 2fr 1fr; gap: 40px; align-items: center; padding-top: 10px; }
.intro h1 { font-size: 1.6rem; }
.big-logo { width: 100%; max-width: 300px; justify-self: center; }
.buttons { display: flex; justify-content: center; flex-wrap: wrap; gap: 30px; margin: 30px 0 40px; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; align-items: center; }
.split h2 { font-size: 1.2rem; margin-bottom: .4em; }
.ticks { margin: 0 0 1.2em; padding-left: 1.4em; }
.ticks a { color: inherit; text-decoration-color: rgba(76, 179, 74, .5); }
.ticks a:hover { color: var(--green); }
@media (max-width: 760px) {
  .intro, .split { grid-template-columns: 1fr; }
  .big-logo { display: none; }
  .buttons { gap: 12px; }
  .btn-big { min-width: 0; flex: 1 1 200px; }
}

/* Services */
.service-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px 20px; margin-top: 40px; }
.service-card { background: var(--green); color: #fff; text-align: center; padding: 24px 20px 20px; display: flex; flex-direction: column; justify-content: center; }
.service-card h2 { color: #fff; font-size: 1.05rem; margin: 10px 0 .5em; }
.service-card p { margin-bottom: .6em; }
.service-card ul { text-align: center; padding-left: 1.2em; margin: 0; }
.service-card .icon { width: 28px; height: 28px; margin: 0 auto; }
@media (max-width: 700px) { .service-grid { grid-template-columns: 1fr; } }


/* Our work */
.case-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 15px; margin-bottom: 50px; }
.case-card { border: 1px solid var(--border); padding: 25px 22px; text-align: center; font-size: 14px; display: flex; flex-direction: column; }
.case-card h2, .case-card h3 { font-size: 1.05rem; margin-bottom: .7em; }
.case-card h2 a, .case-card h3 a { color: var(--heading); text-decoration: none; }
.case-card h2 a:hover, .case-card h3 a:hover { color: var(--green); }
.case-card .more { margin-top: auto; font-weight: 600; text-decoration: none; }
.gallery { columns: 5 160px; column-gap: 4px; }
.gallery a { display: block; margin-bottom: 4px; break-inside: avoid; }
.gallery img { width: 100%; }
.crumbs { font-size: 13px; margin-bottom: 14px; }
.crumbs a { color: var(--text); }
.case .lead { font-style: italic; }
.case h2 { margin-top: 40px; padding-bottom: 10px; border-bottom: 1px solid var(--border); font-size: 1.15rem; }
.pager { display: flex; justify-content: space-between; border-top: 1px solid var(--border); padding-top: 20px; }
.pager a { color: var(--text); text-decoration: none; }
.pager a:hover { color: var(--green); }

/* Contact */
.contact { display: grid; grid-template-columns: 2fr 1fr; gap: 30px; }
@media (max-width: 760px) { .contact { grid-template-columns: 1fr; } }
label { display: block; margin-bottom: 14px; font-size: 14px; }
input[type="text"], input[type="email"], input[type="tel"], textarea {
  display: block; width: 100%; margin-top: 6px; font: inherit; font-size: 16px; color: #333;
  background: #fff; border: 1px solid #ddd; border-radius: 3px; padding: 8px 10px;
}
textarea { min-height: 180px; resize: vertical; }
input:focus, textarea:focus { outline: 2px solid var(--green); outline-offset: 0; border-color: var(--green); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.cf-turnstile { margin: 6px 0 10px; min-height: 65px; }
.notice { padding: 12px 16px; border-radius: 3px; margin: 16px 0 0; color: #fff; }
.notice.ok { background: #2f7d2e; }
.notice.err { background: #b3261e; }
.contact-details { list-style: none; padding: 0; margin: 0; font-size: 17px; }
.contact-details li { margin-bottom: 10px; }
.contact-details a { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.contact-details .icon { width: 18px; height: 18px; }

/* Call to action and footer */
.cta { background: var(--green); color: #fff; padding-block: 26px; }
.cta .container { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.cta p { margin: 0; font-size: 1.05rem; }
.cta p a { color: #fff; font-weight: 600; white-space: nowrap; }
@media (max-width: 700px) { .cta .container { flex-direction: column; text-align: center; } }
.site-footer { background: var(--footer); color: #999; font-size: 13px; padding-block: 18px; }
.site-footer p { margin: 0; }
.site-footer .container { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 6px 20px; }
.site-footer a { color: #ccc; text-decoration: none; }
.site-footer a:hover { color: #fff; }

/* Lightbox */
dialog.lightbox { border: 0; padding: 0; background: transparent; max-width: 95vw; max-height: 95vh; }
dialog.lightbox::backdrop { background: rgba(0, 0, 0, .85); }
dialog.lightbox img { max-width: 95vw; max-height: 90vh; width: auto; }
dialog.lightbox button { position: fixed; top: 10px; right: 14px; background: none; border: 0; color: #fff; font-size: 40px; line-height: 1; cursor: pointer; }

/* Mobile menu: a hamburger button opens the menu (site.js). Without JavaScript the menu just shows. */
.menu-toggle { display: none; }
@media (max-width: 760px) {
  .js .menu-toggle { display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; padding: 0; background: none; border: 0; cursor: pointer; color: inherit; }
  .menu-toggle span, .menu-toggle span::before, .menu-toggle span::after { display: block; width: 26px; height: 3px; border-radius: 2px; background: currentColor; position: relative; transition: transform .2s, background .2s; }
  .menu-toggle span::before, .menu-toggle span::after { content: ""; position: absolute; left: 0; }
  .menu-toggle span::before { top: -8px; } .menu-toggle span::after { top: 8px; }
  .menu-toggle[aria-expanded="true"] span { background: transparent; }
  .menu-toggle[aria-expanded="true"] span::before { transform: translateY(8px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span::after { transform: translateY(-8px) rotate(-45deg); }
  .js #menu:not(.open) { display: none; }
}

@media (max-width: 760px) {
  .nav { text-align: center; }
  .nav ul { flex-direction: column; gap: 0; padding: 0; text-align: left; border-top: 1px solid var(--border); }
  .nav a { padding: 12px 20px; font-size: 15px; border-bottom: 1px solid var(--border); }
  .nav li:last-child a { border-bottom: 0; }
}
.js .menu-toggle { color: #555; }
.js .menu-toggle { width: auto; gap: 12px; font: inherit; font-weight: 600; text-transform: uppercase; }
.menu-toggle b { font-weight: 600; }
