/* Self-hosted fonts. No third-party requests, so no IP address is shared
   with Google and no consent banner is needed. Both faces are SIL Open Font
   Licence 1.1 — licences in /fonts. */
@font-face {
  font-family: "Fraunces";
  src: url("fonts/fraunces-600.woff2") format("woff2");
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Karla";
  src: url("fonts/karla-400.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Karla";
  src: url("fonts/karla-700.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
}

/* Maple Tree & Gardens — Troon, Ayrshire
   Original stylesheet, written from scratch. */

:root {
  --ink: #203324;
  --moss: #2f5c41;
  --moss-soft: #3f6b54;
  --hivis: #cbe44f;
  --sandstone: #b0654b;
  --paper: #f3f5ee;
  --paper-deep: #e6ebdd;
  --line: #cfd8c3;
  --body: #33413a;
  --wa: #25d366;

  --measure: 66ch;
  --gap: clamp(1rem, 3vw, 2rem);
  --pad-x: clamp(1.15rem, 5vw, 4rem);
  --section-y: clamp(3.5rem, 9vw, 6.5rem);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--body);
  font-family: "Karla", "Segoe UI", system-ui, sans-serif;
  font-size: clamp(1.02rem, 0.98rem + 0.3vw, 1.14rem);
  line-height: 1.65;
  padding-bottom: 4.6rem; /* room for the mobile action bar */
}
@media (min-width: 760px) { body { padding-bottom: 0; } }

img { max-width: 100%; display: block; }

h1, h2, h3 {
  font-family: "Fraunces", Georgia, serif;
  color: var(--ink);
  line-height: 1.08;
  letter-spacing: -0.015em;
  margin: 0 0 0.5em;
  font-weight: 600;
}
h1 { font-size: clamp(2.3rem, 1.5rem + 3.6vw, 4.3rem); }
h2 { font-size: clamp(1.85rem, 1.3rem + 2.1vw, 2.9rem); }
h3 { font-size: clamp(1.25rem, 1.1rem + 0.7vw, 1.6rem); }
p { margin: 0 0 1.05em; max-width: var(--measure); }

a { color: var(--moss); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--sandstone); }

:focus-visible {
  outline: 3px solid var(--sandstone);
  outline-offset: 3px;
  border-radius: 2px;
}

.wrap { width: min(1180px, 100%); margin-inline: auto; padding-inline: var(--pad-x); }
.section { padding-block: var(--section-y); }
.section--tint { background: var(--paper-deep); }
.skip {
  position: absolute; left: -9999px; top: 0; background: var(--hivis);
  color: var(--ink); padding: 0.7rem 1.1rem; z-index: 99; font-weight: 700;
}
.skip:focus { left: 0.5rem; top: 0.5rem; }

/* ---- hi-vis rule: the one repeated motif, borrowed from the safety kit ---- */
.rule {
  width: 74px; height: 7px; background: var(--hivis);
  border-radius: 1px; margin-bottom: 1.4rem;
  box-shadow: 14px 0 0 -2px var(--sandstone);
}
.rule--light { box-shadow: 14px 0 0 -2px #97b07f; }

/* ---------- header ---------- */
.masthead { background: var(--ink); color: #eaf0e4; }
.masthead__inner {
  display: flex; align-items: center; gap: 1rem;
  min-height: 68px; flex-wrap: wrap;
}
.brand {
  display: flex; align-items: center; gap: 0.6rem;
  color: #fff; text-decoration: none; margin-right: auto;
  font-family: "Fraunces", Georgia, serif; font-weight: 600;
  font-size: 1.16rem; letter-spacing: -0.01em; line-height: 1.15;
}
.brand img { width: auto; height: 38px; flex: none; }
.brand span small { display: block; font-family: "Karla", sans-serif; font-weight: 400; font-size: 0.68rem; letter-spacing: 0.06em; color: var(--hivis); }
.nav { display: flex; gap: clamp(0.7rem, 2vw, 1.5rem); flex-wrap: wrap; }
.nav a { color: #d6e2cc; text-decoration: none; font-size: 0.95rem; padding: 0.35rem 0; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--hivis); }
.masthead__tel {
  color: #fff; text-decoration: none; font-weight: 700; white-space: nowrap;
  border: 1px solid #4d6555; border-radius: 999px; padding: 0.42rem 0.95rem; font-size: 0.95rem;
}
.masthead__tel:hover { background: var(--moss); color: #fff; border-color: var(--moss); }
@media (max-width: 620px) {
  .masthead__inner { padding-block: 0.7rem; }
  .brand { width: 100%; margin-right: 0; }
  .nav { order: 3; width: 100%; }
  .masthead__tel { display: none; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
  font: inherit; font-weight: 700; text-decoration: none; cursor: pointer;
  padding: 0.85rem 1.4rem; border-radius: 3px; border: 2px solid transparent;
  transition: transform 0.12s ease, background 0.15s ease;
}
.btn:active { transform: translateY(1px); }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn--wa { background: var(--wa); color: #06331a; }
.btn--wa:hover { background: #1fbb5a; color: #06331a; }
.btn--call { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--call:hover { background: var(--ink); color: #fff; }
.btn--onDark { background: transparent; color: #fff; border-color: rgba(255,255,255,0.55); }
.btn--onDark:hover { background: #fff; color: var(--ink); }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.6rem; }

/* ---------- hero ---------- */
.hero { position: relative; background: var(--ink); isolation: isolate; }
.hero img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 62% 34%; z-index: -2;
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(102deg, rgba(20,33,24,0.93) 0%, rgba(20,33,24,0.78) 42%, rgba(20,33,24,0.22) 78%, rgba(20,33,24,0.05) 100%);
}
.hero__inner {
  padding-block: clamp(3.5rem, 11vw, 7.5rem);
  min-height: min(78vh, 660px);
  display: flex; flex-direction: column; justify-content: center;
}
.hero h1 { color: #fff; max-width: 15ch; }
.hero p { color: #dfe8d8; max-width: 46ch; font-size: 1.09em; }
.hero .rule { box-shadow: 14px 0 0 -2px #d98d6f; }

.trustbar { background: var(--moss); color: #e9f1e3; }
.trustbar ul {
  list-style: none; margin: 0; padding-block: 0.9rem;
  display: flex; flex-wrap: wrap; gap: 0.5rem 2rem; font-size: 0.94rem;
}
.trustbar li { display: flex; align-items: center; gap: 0.45rem; }
.trustbar li::before {
  content: ""; width: 9px; height: 9px; background: var(--hivis);
  border-radius: 50%; flex: none;
}

/* ---------- intro ---------- */
.intro { display: grid; gap: var(--gap); grid-template-columns: 1fr; }
@media (min-width: 880px) { .intro { grid-template-columns: 1.15fr 0.85fr; align-items: start; } }
.creds { list-style: none; margin: 0; padding: 0; }
.creds li { padding: 0.85rem 0; border-top: 1px solid var(--line); }
.creds li:last-child { border-bottom: 1px solid var(--line); }
.creds strong { display: block; color: var(--ink); font-family: "Fraunces", serif; font-size: 1.06rem; }
.creds span { font-size: 0.94rem; }

/* ---------- services ---------- */
.job {
  display: grid; gap: clamp(1.2rem, 4vw, 3rem); align-items: center;
  padding-block: clamp(1.8rem, 4vw, 2.8rem);
  border-top: 1px solid var(--line);
}
.job:first-of-type { border-top: 0; }
@media (min-width: 820px) {
  .job { grid-template-columns: 0.95fr 1.05fr; }
  .job:nth-child(even) .job__media { order: 2; }
}
.job__media { position: relative; }
.job__media img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  border-radius: 2px;
}
.job h3 { margin-bottom: 0.35em; }
.job ul { list-style: none; margin: 0.9rem 0 0; padding: 0; }
.job li { padding-left: 1.5rem; position: relative; margin-bottom: 0.4rem; }
.job li::before {
  content: ""; position: absolute; left: 0; top: 0.62em;
  width: 12px; height: 3px; background: var(--sandstone);
}

/* ---------- gallery ---------- */
.gallery {
  display: grid; gap: 0.6rem;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  margin-top: 2rem;
}
.gallery figure { margin: 0; position: relative; }
.gallery img { width: 100%; height: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 2px; }
.gallery figcaption {
  position: absolute; left: 0; bottom: 0; right: 0;
  background: linear-gradient(transparent, rgba(20,33,24,0.85));
  color: #fff; font-size: 0.86rem; padding: 2rem 0.75rem 0.6rem;
}
.gallery figure:nth-child(1) { grid-row: span 2; }
.gallery figure:nth-child(1) img { aspect-ratio: 1 / 2.05; }
@media (max-width: 560px) {
  .gallery figure:nth-child(1) { grid-row: auto; }
  .gallery figure:nth-child(1) img { aspect-ratio: 1 / 1; }
}

/* ---------- reviews ---------- */
.reviews { background: var(--ink); color: #dbe6d3; }
.reviews h2 { color: #fff; }
.reviews .grid { display: grid; gap: 1.6rem; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); margin-top: 2rem; }
.reviews blockquote {
  margin: 0; padding-top: 1.1rem; border-top: 3px solid var(--hivis);
  font-size: 1.02rem;
}
.reviews blockquote p { max-width: none; }
.reviews cite {
  display: block; font-style: normal; color: var(--hivis);
  font-weight: 700; font-size: 0.92rem;
}
.reviews cite small { display: block; color: #a9bda0; font-weight: 400; }

/* ---------- areas ---------- */
.areas { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.4rem; padding: 0; list-style: none; }
.areas li {
  background: #fff; border: 1px solid var(--line); border-radius: 999px;
  padding: 0.4rem 1rem; font-size: 0.95rem; color: var(--ink);
}

/* ---------- faq ---------- */
.faq { max-width: 800px; margin-top: 1.8rem; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none; padding: 1.05rem 2.2rem 1.05rem 0;
  font-family: "Fraunces", serif; font-size: 1.09rem; color: var(--ink);
  position: relative; font-weight: 600;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 0.3rem; top: 0.85rem;
  font-size: 1.5rem; color: var(--sandstone); line-height: 1;
}
.faq details[open] summary::after { content: "–"; }
.faq details > p { padding-bottom: 1.1rem; margin: 0; }

/* ---------- cta band ---------- */
.cta { background: var(--moss); color: #fff; text-align: left; }
.cta h2 { color: #fff; }
.cta p { color: #dbe8d3; }

/* ---------- contact page ---------- */
.contact-grid { display: grid; gap: clamp(1.6rem, 5vw, 3.4rem); }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 1.05fr 0.95fr; align-items: start; } }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: 3px;
  padding: clamp(1.2rem, 4vw, 2rem);
}
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-weight: 700; color: var(--ink); margin-bottom: 0.35rem; font-size: 0.97rem; }
.field input[type="text"], .field textarea {
  width: 100%; font: inherit; color: var(--ink);
  padding: 0.7rem 0.8rem; border: 1px solid #b9c5ac; border-radius: 3px;
  background: var(--paper);
}
.field textarea { min-height: 110px; resize: vertical; }
.checks { display: grid; gap: 0.45rem; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.check {
  display: flex; align-items: center; gap: 0.6rem; cursor: pointer;
  border: 1px solid #b9c5ac; border-radius: 3px; padding: 0.6rem 0.75rem;
  background: var(--paper); font-size: 0.97rem;
}
.check input { width: 18px; height: 18px; accent-color: var(--moss); flex: none; }
.check:has(input:checked) { border-color: var(--moss); background: #eaf2e4; font-weight: 700; color: var(--ink); }
.note { font-size: 0.9rem; color: #5d6b62; }
.contact-list { list-style: none; padding: 0; margin: 0; }
.contact-list li { padding: 1rem 0; border-bottom: 1px solid var(--line); }
.contact-list a { font-weight: 700; font-size: 1.1rem; }
.contact-list small { display: block; color: #5d6b62; font-size: 0.9rem; }

/* ---------- footer ---------- */
.foot { background: var(--ink); color: #b9c9b0; padding-block: clamp(2.5rem, 6vw, 4rem) 1.5rem; font-size: 0.95rem; }
.foot h2, .foot h3 { color: #fff; font-size: 1.05rem; }
.foot__logo { height: 104px; width: auto; margin-bottom: 1rem; }
.foot a { color: #dbe8d3; }
.foot a:hover { color: var(--hivis); }
.foot__cols { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.foot ul { list-style: none; padding: 0; margin: 0; }
.foot li { margin-bottom: 0.4rem; }
.foot__legal {
  margin-top: 2.5rem; padding-top: 1.2rem; border-top: 1px solid #2e4436;
  font-size: 0.85rem; color: #8ba081;
}

/* ---------- mobile action bar ---------- */
.actionbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  display: grid; grid-template-columns: 1fr 1fr; gap: 1px;
  background: #2e4436; box-shadow: 0 -6px 18px rgba(20,33,24,0.22);
  padding-bottom: env(safe-area-inset-bottom);
}
.actionbar a {
  display: flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.95rem 0.5rem; font-weight: 700; text-decoration: none;
}
.actionbar svg { width: 19px; height: 19px; }
.actionbar .ab-call { background: var(--ink); color: #fff; }
.actionbar .ab-wa { background: var(--wa); color: #06331a; }
@media (min-width: 760px) { .actionbar { display: none; } }

/* ---------- utility classes (replace inline styles so a strict CSP can be used) ---------- */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.lede { font-size: 1.1em; max-width: 52ch; }
.h-sub { font-size: 1.35rem; }
.h-small { font-size: 1.1rem; }
.contact-grid { margin-top: 2.6rem; }
.card .btn--wa { width: 100%; }
.note { margin-top: 0.9rem; }
.contact-list strong { color: var(--ink); }
.card--alert { margin-top: 1.8rem; background: #eaf2e4; }
.card--alert p:last-child { margin-bottom: 0; }

/* ---------- long-form text pages (privacy notice) ---------- */
.prose { max-width: 74ch; }
.prose h1 { font-size: clamp(2rem, 1.5rem + 2.2vw, 3rem); }
.prose h2 { margin-top: 2.4rem; }
.prose .lede { color: var(--ink); border-left: 4px solid var(--hivis); padding-left: 1rem; }
.prose-list { padding-left: 1.2rem; max-width: var(--measure); }
.prose-list li { margin-bottom: 0.5rem; }

/* ---------- ratings and Google reviews ---------- */
.rating {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.8rem 1.4rem;
  margin: 1.6rem 0 0.6rem; padding-bottom: 1.8rem;
  border-bottom: 1px solid #3d5748;
}
.rating__score { margin: 0; color: #dbe6d3; max-width: none; }
.rating__score strong {
  color: #fff; font-family: "Fraunces", Georgia, serif;
  font-size: 1.5rem; margin-right: 0.15rem;
}
.rating .btn { margin-left: auto; }
@media (max-width: 620px) { .rating .btn { margin-left: 0; width: 100%; } }

.stars { display: block; height: 20px; width: auto; }
.rating .stars { height: 26px; }

.reviews blockquote .stars { margin-bottom: 0.7rem; }
.reviews blockquote { padding-top: 1.1rem; }

.reviews__ask {
  margin: 2.2rem 0 0; padding-top: 1.4rem;
  border-top: 1px solid #3d5748; color: #b9c9b0; font-size: 0.97rem;
}
.reviews__ask a { color: var(--hivis); font-weight: 700; }
.reviews__ask a:hover { color: #fff; }
