/* Leaks Tree Care. Colours and layout match the old WordPress (Total theme) site. */
@font-face { font-family: "Andada Pro"; font-weight: 400; font-display: swap; src: url("/assets/fonts/andada-pro-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "PT Serif"; font-weight: 400; font-display: swap; src: url("/assets/fonts/pt-serif-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "PT Serif"; font-weight: 700; font-display: swap; src: url("/assets/fonts/pt-serif-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "PT Sans"; font-weight: 700; font-display: swap; src: url("/assets/fonts/pt-sans-latin-700-normal.woff2") format("woff2"); }

:root {
  --green: #516e45;      /* accent */
  --header: #4a683b;
  --gold: #d29d3f;       /* top bar */
  --orange: #f2ac4f;     /* buttons */
  --text: #4b4b4b;
  --heading: #222;
  --border: #e6e6e6;
  --max: 1080px;
  --serif: "PT Serif", Georgia, serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: "Andada Pro", Georgia, serif; font-size: 16px; line-height: 1.65; color: var(--text); background: #fff; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green); }
p { margin: 0 0 1.2em; }
h1, h2, h3 { font-family: var(--serif); color: var(--heading); line-height: 1.25; font-weight: 400; margin: 0 0 .5em; }
.container { width: min(var(--max), 100% - 40px); margin-inline: auto; }
.skip, .hp { 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; }
.icon { width: 1em; height: 1em; flex: none; }

/* Top bar, header and menu */
.top-bar { background: var(--gold); display: flex; justify-content: center; flex-wrap: wrap; gap: 4px 30px; padding: 8px 20px; font-size: 14px; }
.top-bar a { color: #fff; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; }
.top-bar a:hover { text-decoration: underline; }
.top-bar .icon { width: 13px; height: 13px; }
.site-header { background: var(--header); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-block: 20px; }
.logo img { width: 266px; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 30px; }
.nav a { display: block; padding: 6px 0; color: #fff; font-family: "PT Sans", Arial, sans-serif; font-weight: 700; font-size: 15px; text-decoration: none; border-bottom: 2px solid transparent; }
.nav a:hover { color: #eee; }
.nav a[aria-current="page"] { border-bottom-color: #fff; }
@media (max-width: 700px) {
  .top-bar { font-size: 13px; gap: 2px 18px; }
  .site-header .container { flex-direction: column; gap: 10px; padding-block: 16px 8px; }
  .logo img { width: 230px; }
}

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 10px; background: var(--orange); color: #fff; border: 0; border-radius: 3px; font: inherit; font-size: 15px; padding: 9px 18px; text-decoration: none; cursor: pointer; }
.btn:hover { background: var(--green); color: #fff; }
.btn[disabled] { opacity: .7; cursor: wait; }
.btn .arrow { width: 14px; height: 14px; }

/* Home */
.hero { background: linear-gradient(rgba(0, 0, 0, .35), rgba(0, 0, 0, .35)), url("/assets/img/hero-1920.webp") center / cover no-repeat; color: #fff; text-align: center; padding: 50px 0 70px; }
@media (max-width: 960px) { .hero { background-image: linear-gradient(rgba(0, 0, 0, .35), rgba(0, 0, 0, .35)), url("/assets/img/hero-960.webp"); } }
.hero h1 { color: #fff; text-transform: uppercase; font-size: clamp(2rem, 5vw, 3rem); line-height: 1.15; margin-bottom: .6em; }
.hero h1 span { display: block; color: #e3e3e3; font-size: .78em; max-width: 26ch; margin: .2em auto 0; }
.hero p { max-width: 760px; margin: 0 auto 24px; text-shadow: 0 1px 2px rgba(0, 0, 0, .4); }
.badges { list-style: none; padding: 0; margin: 26px auto 0; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: 600px; }
.badges li { background: var(--green); color: #fff; text-transform: uppercase; padding: 10px; border-radius: 3px; display: flex; align-items: center; justify-content: center; gap: 12px; font-size: 15px; }
.badges .icon { color: var(--orange); }
@media (max-width: 520px) { .badges { grid-template-columns: 1fr; gap: 10px; } }

.band { padding-block: 60px; }
.band.grey { background: #f9f9f9; }
.band h2 { text-transform: uppercase; font-size: clamp(1.6rem, 3.4vw, 2.1rem); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.split img { width: 100%; }
.intro-row { display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.intro-row > div { max-width: 680px; }
.boxes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 25px; margin-top: 30px; }
.box { border: 1px solid var(--border); padding: 25px 20px; text-align: center; text-decoration: none; color: var(--text); font-size: 15px; transition: box-shadow .2s; }
.box:hover { box-shadow: 0 4px 16px rgba(0, 0, 0, .08); }
.box .icon { width: 26px; height: 26px; color: var(--green); margin: 0 auto 14px; }
.box h3 { text-transform: uppercase; font-weight: 700; font-size: 1.2rem; margin-bottom: .6em; }
.box p { margin: 0; }
@media (max-width: 900px) { .boxes { grid-template-columns: 1fr 1fr; } }
@media (max-width: 760px) { .split { grid-template-columns: 1fr; } .intro-row { flex-direction: column; align-items: flex-start; gap: 0; } .band { padding-block: 40px; } }
@media (max-width: 480px) { .boxes { grid-template-columns: 1fr; } }

/* Inner pages */
.page { padding-block: 30px 60px; }
.page-title { text-align: center; text-transform: uppercase; font-weight: 700; font-size: 1.9rem; border-bottom: 1px solid var(--border); margin-bottom: 40px; }
.page-title span, .page h2 span { display: inline-block; border-bottom: 2px solid var(--green); padding-bottom: 6px; margin-bottom: -1px; }
.page h2 { text-transform: uppercase; font-weight: 700; font-size: 1.3rem; border-bottom: 1px solid var(--border); margin: 0 0 20px; }
.service { padding-top: 30px; margin-bottom: 30px; scroll-margin-top: 10px; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.two-col ul { margin: 0 0 1.2em; padding-left: 1.2em; }
.photos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 10px; }
.photos img { width: 100%; aspect-ratio: 1; object-fit: cover; }
@media (max-width: 700px) { .two-col { grid-template-columns: 1fr; gap: 0; } .photos { gap: 8px; } }

/* Contact */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
@media (max-width: 760px) { .contact { grid-template-columns: 1fr; } }
.contact-details { list-style: none; padding: 0; margin: 20px 0 0; font-size: 18px; }
.contact-details li { margin-bottom: 6px; }
.contact-details a { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; overflow-wrap: anywhere; }
.contact-details .icon { width: 18px; height: 18px; color: var(--text); }
label { display: block; margin-bottom: 14px; font-size: 15px; }
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: 120px; resize: vertical; }
input:focus, textarea:focus { outline: 2px solid var(--green); outline-offset: 0; border-color: var(--green); }
.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: var(--green); }
.notice.err { background: #b3261e; }

/* Call to action and footer */
.callout { background: linear-gradient(rgba(0, 0, 0, .6), rgba(0, 0, 0, .6)), url("/assets/img/canopy-1280.webp") center / cover; color: #fff; padding-block: 30px; }
.callout .container { display: grid; grid-template-columns: 1fr 320px; gap: 40px; align-items: center; }
.callout h2 { color: #fff; font-weight: 700; font-size: 1.9rem; }
.callout .areas { background: #f4f4f4; color: var(--text); padding: 26px 30px; }
.callout .areas h2 { color: var(--heading); font-size: 1.3rem; }
.callout .areas p { font-size: 15px; }
.callout .areas ul { margin: 0; padding-left: 1.2em; font-size: 15px; }
@media (max-width: 760px) { .callout .container { grid-template-columns: 1fr; gap: 24px; } }
.site-footer { background: #222; color: #999; font-size: 14px; text-align: center; padding: 18px 20px; }
.site-footer p { margin: 0; }
.site-footer a { color: #ddd; text-decoration: none; }

/* 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: 700px) {
  .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: 700px) {
  .site-header .container { flex-direction: row; flex-wrap: wrap; justify-content: space-between; padding-block: 14px; }
  .logo img { width: 210px; }
  .nav { flex-basis: 100%; }
  .nav ul { flex-direction: column; gap: 0; border-top: 1px solid rgba(255, 255, 255, .25); }
  .nav a { padding: 12px 0; font-size: 16px; border-bottom: 1px solid rgba(255, 255, 255, .25); }
  .nav a[aria-current="page"] { border-bottom-color: rgba(255, 255, 255, .25); text-decoration: underline; }
}
.js .menu-toggle { color: #fff; }
