/* ==========================================================================
   Gardener — static rebuild
   Mobile-first. Breakpoints: 810px (tablet) and 1200px (desktop).
   ========================================================================== */

/* ---------- Fonts ---------- */
@font-face {
  font-family: "Inter";
  src: url("assets/fonts/inter-latin-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("assets/fonts/inter-latin-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  /* Palette */
  --green: #218544;
  --black: #000;
  --white: #fff;
  --grey-700: #555;       /* body copy */
  --grey-500: #7a7a7a;    /* captions, dates, roles */
  --grey-300: #ddd;       /* hero paragraphs, icon hover */
  --grey-100: #f2f2f2;    /* tinted sections, mobile menu */
  --star: #ffc966;
  --input-border: rgba(0, 0, 0, 0.2);
  --input-placeholder: #888;
  --input-focus: #09f;
  --glass: rgba(255, 255, 255, 0.15);
  --glass-border: rgba(255, 255, 255, 0.1);

  /* Type scale (phone) */
  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --fs-h1: 40px;   --lh-h1: 1.3;
  --fs-h2: 32px;   --lh-h2: 1.35;
  --fs-h3: 18.4px; --lh-h3: 1.4;
  --fs-h5: 16.8px; --lh-h5: 1.5;
  --fs-h6: 16px;   --lh-h6: 1.5;
  --fs-lead: 16px;
  --fs-body: 15.2px;
  --fs-small: 14.4px;
  --lh-text: 1.7;
  --ls-text: -0.03em;
  --ls-h1: -0.04em;
  --ls-h2: -0.05em;

  /* Spacing & layout (phone) */
  --gutter: 20px;
  --container: 400px;
  --section-pad: 75px;
  --stack-gap: 50px;
  --grid-gap: 30px;

  /* Radii */
  --r-sm: 10px;
  --r-md: 15px;
  --r-lg: 20px;

  /* Motion — real spring physics.
     Each curve is the solved motion of a damped spring (mass 1), sampled
     into a CSS linear() easing. The duration is the time the spring takes
     to settle. The stiffness/damping pairs are the original site's. */
  --spring-quick: linear(0, 0.0541, 0.1554, 0.2686, 0.3748, 0.4689, 0.5481, 0.6179, 0.6772, 0.7274, 0.7687, 0.8047, 0.8351, 0.8601, 0.8819, 0.9003, 0.9158, 0.9286, 0.9397, 0.9491, 0.9568, 0.9635, 0.9692, 0.974, 0.978, 0.9814, 0.9843, 0.9867, 0.9887, 0.9905, 0.992, 0.9932, 0.9943, 0.9952, 0.9959, 0.9965, 0.9971, 0.9975, 0.9979, 0.9982, 1);
  --spring-quick-duration: 0.67s;   /* stiffness 500, damping 60 */
  --spring-gentle: linear(0, 0.0609, 0.1727, 0.2885, 0.3939, 0.4857, 0.5642, 0.6311, 0.6877, 0.7357, 0.7763, 0.8107, 0.8398, 0.8644, 0.8853, 0.9029, 0.9178, 0.9305, 0.9412, 0.9502, 0.9579, 0.9643, 0.9698, 0.9745, 0.9784, 0.9817, 0.9845, 0.9869, 0.9889, 0.9906, 0.9921, 0.9933, 0.9943, 0.9952, 0.9959, 0.9966, 0.9971, 0.9975, 0.9979, 0.9982, 1);
  --spring-gentle-duration: 0.96s;  /* stiffness 300, damping 50 */
  --spring-bouncy: linear(0, 0.0227, 0.0794, 0.1621, 0.2536, 0.3502, 0.4462, 0.5421, 0.6266, 0.7027, 0.7695, 0.8269, 0.8773, 0.9167, 0.9485, 0.9734, 0.993, 1.0067, 1.0163, 1.0225, 1.0261, 1.0274, 1.0273, 1.026, 1.024, 1.0215, 1.0189, 1.0162, 1.0137, 1.0111, 1.009, 1.007, 1.0053, 1.0039, 1.0027, 1.0017, 1.001, 1.0004, 0.9999, 0.9996, 1);
  --spring-bouncy-duration: 0.44s;  /* stiffness 400, damping 30 */
  --reveal-step: 0.2s;              /* stagger between items */
}

/* Browsers without linear() get close cubic-bezier approximations */
@supports not (transition-timing-function: linear(0, 1)) {
  :root {
    --spring-quick: cubic-bezier(0.2, 0.75, 0.3, 1);
    --spring-gentle: cubic-bezier(0.2, 0.7, 0.3, 1);
    --spring-bouncy: cubic-bezier(0.3, 1.35, 0.5, 1);
  }
}

@media (min-width: 810px) {
  :root {
    --fs-h1: 49.6px; --lh-h1: 1.2;
    --fs-h2: 35.2px; --lh-h2: 1.3;
    --fs-h3: 22.4px;
    --fs-h5: 18.4px;
    --fs-h6: 16px;
    --fs-lead: 16px;
    --fs-body: 15.2px;
    --gutter: 30px;
    --container: 850px;
    --section-pad: 100px;
    --stack-gap: 75px;
  }
}

@media (min-width: 1200px) {
  :root {
    --fs-h1: 73.6px; --lh-h1: 1.15;
    --fs-h2: 51.2px; --lh-h2: 1.2;
    --fs-h3: 25.6px;
    --fs-h5: 20px;
    --fs-h6: 17.6px;
    --fs-lead: 18.4px;
    --fs-body: 16px;
    --container: 1200px;
    --section-pad: 125px;
  }
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: var(--lh-text);
  letter-spacing: var(--ls-text);
  color: var(--grey-700);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Tracking is in em, so each element resolves it against its own font size */
:where(body *) { letter-spacing: var(--ls-text); }

img, svg { display: block; max-width: 100%; }
img { height: auto; }
ul { list-style: none; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; letter-spacing: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
blockquote, figure { margin: 0; }
cite { font-style: normal; }

h1, h2, h3, h4, h5, h6,
.t-h2, .t-h3, .t-h5, .t-h6 {
  font-weight: 500;
  color: var(--black);
}
h1 { font-size: var(--fs-h1); line-height: var(--lh-h1); letter-spacing: var(--ls-h1); }
h2, .t-h2 { font-size: var(--fs-h2); line-height: var(--lh-h2); letter-spacing: var(--ls-h2); }
.t-h3 { font-size: var(--fs-h3); line-height: var(--lh-h3); letter-spacing: var(--ls-text); }
.t-h5 { font-size: var(--fs-h5); line-height: var(--lh-h5); letter-spacing: var(--ls-text); }
.t-h6 { font-size: var(--fs-h6); line-height: var(--lh-h6); letter-spacing: var(--ls-text); }

.lead { font-size: var(--fs-lead); line-height: var(--lh-text); }
.balance { text-wrap: balance; }
.small-text { font-size: var(--fs-small); line-height: var(--lh-text); color: var(--grey-500); }

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

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
}
.section { padding: var(--section-pad) var(--gutter); }
.section--tint { background: var(--grey-100); }
.stack { display: flex; flex-direction: column; gap: var(--stack-gap); }

.section-head {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 650px;
  margin-inline: auto;
  text-align: center;
}

.grid-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--grid-gap);
}
@media (min-width: 810px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .services .section-head,
  .blog .section-head { max-width: 450px; }
  .services, .works, .reviews, .blog { padding-top: 90px; }
}
@media (min-width: 1200px) {
  .services .section-head,
  .blog .section-head { max-width: 650px; }
  .services, .works, .reviews, .blog { padding-top: var(--section-pad); }
}

/* Two-column split used by the intro, about story and contact sections */
.split {
  display: grid;
  gap: 50px;
  align-items: center;
}
@media (min-width: 810px) {
  .split { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1200px) {
  .split { gap: 75px; }
}

/* Green accent frame, drawn as an overlay so it doesn't affect layout.
   --accent-top / --accent-bottom set the thick edge. */
.card-accent { position: relative; }
.card-accent::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid var(--green);
  border-top-width: var(--accent-top, 5px);
  border-bottom-width: var(--accent-bottom, 1px);
  border-radius: inherit;
  pointer-events: none;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 50px;
  padding: 10px 20px;
  border-radius: var(--r-sm);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.9;
  color: var(--white);
  white-space: nowrap;
  transition: opacity var(--spring-quick-duration) var(--spring-quick);
}
.btn:hover { opacity: 0.5; }
.btn--primary { background: var(--green); }
.btn--outline { position: relative; }
.btn--outline::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: inherit;
}
.btn--block { width: 100%; }

/* ---------- Icon helpers ---------- */
.stars { display: flex; color: var(--star); }
.stars svg { width: 15px; height: 15px; --icon-fill: 1; }
.stars svg.is-empty { --icon-fill: 0; }

.icon-tile {
  display: grid;
  place-items: center;
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: var(--r-sm);
  background: var(--green);
  color: var(--white);
}
.icon-tile svg { width: 20px; height: 20px; }
.icon-tile--lg { width: 50px; height: 50px; }
.icon-tile--lg svg { width: 30px; height: 30px; }

/* ==========================================================================
   Header / navigation
   ========================================================================== */
.site-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 50;
  padding: 20px var(--gutter) 0;
}

.nav {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--container);
  height: 70px;
  margin-inline: auto;
  padding: 15px 20px;
  border-radius: var(--r-md);
  background: var(--glass);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.nav::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid var(--glass-border);
  border-radius: inherit;
  pointer-events: none;
}
.nav__logo img { width: 100px; height: auto; }
.nav__logo--badge img { width: auto; height: 44px; border-radius: 6px; }
.nav__logo { flex: none; }
.nav__links a { white-space: nowrap; }
/* no blue flash when a menu link is tapped on phones */
.nav a, .nav button { -webkit-tap-highlight-color: transparent; }
.nav__logo--lockup img { width: auto; height: 40px; }
.footer__brand img.footer__logo--lockup { width: auto; height: 42px; }

/* Hamburger */
.nav__toggle {
  position: relative;
  width: 40px;
  height: 40px;
  margin-right: -10px;
}
.nav__toggle span {
  position: absolute;
  left: 12.5px;
  width: 15px;
  height: 2px;
  border-radius: 2px;
  background: var(--white);
  transition:
    transform var(--spring-quick-duration) var(--spring-quick),
    top var(--spring-quick-duration) var(--spring-quick);
}
.nav__toggle span:first-child { top: 14px; }
.nav__toggle span:last-child  { top: 24px; }
.nav.is-open .nav__toggle span:first-child { top: 19px; transform: rotate(45deg) scaleX(1.33); }
.nav.is-open .nav__toggle span:last-child  { top: 19px; transform: rotate(-45deg) scaleX(1.33); }

/* Mobile dropdown */
.nav__menu {
  position: absolute;
  top: calc(100% - 5px);
  left: 20px;
  right: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 37px 20px 41px;
  border-radius: var(--r-md);
  background: var(--grey-100);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px) scale(0.97);
  transform-origin: top center;
  transition:
    opacity var(--spring-quick-duration) var(--spring-quick),
    transform var(--spring-bouncy-duration) var(--spring-bouncy),
    visibility 0s linear var(--spring-quick-duration);
}
.nav.is-open .nav__menu {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition-delay: 0s;
}
.nav__links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.nav__links a {
  font-size: 16px;
  line-height: 1.9;
  color: var(--black);
}

@media (min-width: 810px) {
  .nav { height: 90px; padding: 20px; }
  .nav__logo img { width: 125px; }
  .nav__logo--badge img { width: auto; height: 56px; }
  .nav__logo--lockup img { width: auto; height: 50px; }
  .nav__toggle { display: none; }
  .nav__menu {
    position: static;
    flex-direction: row;
    gap: 40px;
    padding: 0;
    background: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: none;
  }
  .nav__links { flex-direction: row; gap: 20px; }
  .nav__links a { color: var(--white); }
}
@media (min-width: 1200px) {
  .site-header { padding-top: 25px; }
  .nav__menu { gap: 60px; }
  .nav__links { gap: 30px; }
}

/* Tablet: a wide logo + 6 links needs a little less spacing to fit */
@media (min-width: 810px) and (max-width: 1199.98px) {
  .nav__logo--lockup img { height: 40px; }
  .nav__logo--lockup ~ .nav__menu { gap: 24px; }
  .nav__logo--lockup ~ .nav__menu .nav__links { gap: 16px; }
}

/* ==========================================================================
   Shared image-backed hero (inner pages, service & post pages, 404)
   ========================================================================== */
.page-hero {
  position: relative;
  overflow: hidden;
  padding: 150px var(--gutter) 75px;
  color: var(--white);
  text-align: center;
}
.page-hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.page-hero__inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  max-width: 400px;
  margin-inline: auto;
}
.page-hero h1 { color: var(--white); }
.page-hero .lead { color: var(--grey-300); }
.page-hero .t-h3 { color: var(--white); }

.page-hero__icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border-radius: var(--r-sm);
  color: var(--white);
}
.page-hero__icon::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid var(--white);
  border-radius: inherit;
}
.page-hero__icon svg { width: 30px; height: 30px; }

.page-hero--post .page-hero__inner { gap: 10px; max-width: 900px; }
.page-hero--post time,
.page-hero__meta { font-size: var(--fs-body); line-height: var(--lh-text); color: var(--grey-300); }

.page-hero--404 {
  display: grid;
  place-items: center;
  min-height: 100vh;
  min-height: 100svh;
  padding: 200px var(--gutter) 100px;
}
.page-hero--404 .page-hero__inner { gap: 30px; max-width: 350px; }
.page-hero--404 h1 { margin-bottom: -20px; } /* the original sits the text 10px under the number */

@media (min-width: 810px) {
  .page-hero { padding: 200px var(--gutter) 100px; }
  .page-hero__inner { gap: 30px; max-width: 500px; }
  .page-hero--service .page-hero__inner { gap: 20px; }
  .page-hero--post { padding: 175px var(--gutter) 100px; }
  .page-hero--post .page-hero__inner { gap: 10px; max-width: 750px; }
  .page-hero--404 { padding: 200px var(--gutter) 100px; }
  .page-hero--404 .page-hero__inner { max-width: 600px; }
}
@media (min-width: 1200px) {
  .page-hero { padding: 250px var(--gutter) 150px; }
  .page-hero__inner { max-width: 700px; }
  .page-hero--service { padding: 275px 50px 150px; }
  .page-hero--service .page-hero__inner { gap: 30px; max-width: 620px; }
  .page-hero--post { padding: 225px var(--gutter) 150px; }
  .page-hero--post .page-hero__inner { max-width: 900px; }
  .page-hero--404 .page-hero__inner { max-width: 700px; }
}

/* Darkened photo backgrounds: an overlay gives exactly the same result as
   filter: brightness() but is much cheaper to paint while scrolling. */
.page-hero::after,
.hero::after,
.banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  pointer-events: none;
}
.banner::after { background: rgba(0, 0, 0, 0.5); }
.page-hero__inner,
.hero__inner,
.banner__inner { z-index: 1; }

/* ==========================================================================
   Home — hero
   ========================================================================== */
.hero {
  position: relative;
  overflow: hidden;
  padding: 150px var(--gutter) 75px;
  color: var(--white);
}
.hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero__inner {
  position: relative;
  display: grid;
  align-items: center;
  gap: 50px;
}
.hero__text {
  display: flex;
  flex-direction: column;
  gap: 20px;
  text-align: center;
}
.hero h1 { color: var(--white); }
/* Sean's home title: "Garden Maintenance / in Newquay & Cornwall" on two lines */
.hero__title--2 br { display: none; }
@media (min-width: 810px) {
  .hero__title--2 { font-size: clamp(34px, 4.4vw, 58px); white-space: nowrap; }
  .hero__title--2 br { display: inline; }
}
.hero .lead { color: var(--grey-300); }

.ratings {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  margin-top: 21px;
}
.ratings__faces { display: flex; }
.ratings__faces img {
  width: 40px;
  height: 40px;
  border: 2px solid var(--white);
  border-radius: 50%;
  object-fit: cover;
}
.ratings__faces img + img { margin-left: -15px; }
.ratings__meta { display: flex; flex-direction: column; gap: 5px; text-align: left; }
.ratings .t-h6 { color: var(--white); }

/* Booking form — hidden on phones, as in the original */
.booking {
  display: none;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  max-width: 400px;
  padding: 40px;
  border-radius: var(--r-md);
  background: var(--white);
}
.booking .t-h5 { margin-bottom: 10px; text-align: center; }

/* ---------- Form fields (booking + contact) ---------- */
.field input,
.field select,
.field textarea {
  display: block;
  width: 100%;
  height: 50px;
  padding: 12px;
  border: 1px solid var(--input-border);
  border-radius: var(--r-sm);
  background: transparent;
  font-size: 14px;
  line-height: 1.2;
  color: var(--grey-700);
  outline: none;
  transition: border-color 0.2s ease;
}
.field textarea { height: 150px; resize: vertical; }
/* 16px stops iPhones zooming the page when a field is tapped */
@media (max-width: 1199.98px) {
  .field input, .field select, .field textarea { font-size: 16px; }
}
.field input::placeholder,
.field textarea::placeholder { color: var(--input-placeholder); opacity: 1; }
.field input:focus,
.field select:focus,
.field textarea:focus { border-color: var(--input-focus); }
.field--select { position: relative; }
.field select {
  -webkit-appearance: none;
  appearance: none;
  padding-right: 36px;
  cursor: pointer;
}
.field select:invalid,
.field select:has(option[value=""]:checked) { color: var(--input-placeholder); }  /* "Please select a service" matches the other placeholders */
.field select option { color: var(--grey-700); }
.field--select::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 16px;
  width: 7px;
  height: 7px;
  margin-top: -5px;
  border-right: 1.5px solid var(--input-placeholder);
  border-bottom: 1.5px solid var(--input-placeholder);
  transform: rotate(45deg);
  pointer-events: none;
}
.hp-field { display: none !important; } /* Web3Forms spam honeypot */

@media (min-width: 810px) {
  .hero { padding: 200px var(--gutter) 100px; }
  .hero__inner { grid-template-columns: 1fr 1fr; }
  .hero__text { text-align: left; }
  .ratings { justify-content: flex-start; }
  .booking { display: flex; justify-self: end; }
}
@media (min-width: 1200px) {
  .hero { padding: 240px var(--gutter) 125px; }
  .booking { padding: 50px; }
  .booking .field,
  .booking .btn { width: 300px; align-self: center; }
}

/* ==========================================================================
   Home — introduction
   ========================================================================== */
.intro__media {
  position: relative;
  display: flex;
  align-items: flex-end;
  height: 400px;
  padding: 20px;
  border-radius: var(--r-md);
  overflow: hidden;
}
.intro__media > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.quote-card {
  position: relative;
  display: flex;
  gap: 20px;
  width: 100%;
  padding: 20px;
  border-radius: var(--r-sm);
  background: var(--white);
}
.quote-card__icon { flex: none; width: 30px; height: 30px; color: var(--green); }
.quote-card > div { display: flex; flex-direction: column; gap: 10px; }
.quote-card cite { font-size: var(--fs-small); line-height: var(--lh-text); color: var(--grey-500); }

.text-block { display: flex; flex-direction: column; gap: 20px; }
.key-points {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 30px;
}
@media (min-width: 810px) { .key-points { margin-top: 21px; } }
.key-points li { display: flex; align-items: center; gap: 20px; }

@media (min-width: 1200px) {
  .intro__media { height: 500px; padding: 30px; }
  .quote-card { padding: 30px; }
}

/* ==========================================================================
   Home — info banner
   ========================================================================== */
.banner {
  position: relative;
  overflow: hidden;
  padding: 40px var(--gutter);
}
.banner__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.banner__inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  text-align: center;
}
.banner .t-h3 { max-width: 400px; color: var(--white); }

.phone-card {
  --accent-top: 3px;
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 15px 15px 12px;
  border-radius: var(--r-lg);
  background: var(--white);
  text-align: left;
}
.phone-card__icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: var(--r-sm);
  background: var(--green);
  color: var(--white);
  transition:
    background-color var(--spring-quick-duration) var(--spring-quick),
    color var(--spring-quick-duration) var(--spring-quick);
}
.phone-card__icon svg { width: 24px; height: 24px; }
.phone-card:hover .phone-card__icon { background: var(--grey-300); color: var(--green); }
.phone-card__text { display: flex; flex-direction: column; }
.phone-card .small-text { font-size: var(--fs-body); color: var(--grey-700); }

@media (min-width: 810px) {
  .banner { padding: 50px var(--gutter); }
  .banner__inner { flex-direction: row; justify-content: space-between; text-align: left; }
}
@media (min-width: 1200px) {
  .banner { padding: 75px var(--gutter); }
  .phone-card { --accent-top: 5px; gap: 20px; padding: 20px 20px 15px; }
  .phone-card__icon { width: 50px; height: 50px; }
  .phone-card__icon svg { width: 30px; height: 30px; }
}

/* ==========================================================================
   Service cards (home + services page)
   ========================================================================== */
.service-grid--page { gap: 20px; }
@media (min-width: 1200px) { .service-grid--page { gap: 30px; } }

.service-card {
  position: relative;
  display: flex;
  align-items: flex-end;
  height: 250px;
  padding: 30px;
  border-radius: var(--r-md);
  overflow: hidden;
  color: var(--white);
  isolation: isolate;
}
.service-card img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.service-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(rgba(0, 0, 0, 0.23), rgba(0, 0, 0, 0.71));
}
.service-card__title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
}
.service-card__title .t-h5 { color: var(--white); }
.service-card__title svg { display: none; width: 30px; height: 30px; }

.service-card__title svg { display: block; width: 26px; height: 26px; flex-shrink: 0; }
.service-card__text { display: none; }

@media (min-width: 1200px) {
  .service-card { height: 400px; padding: 40px; flex-direction: column; justify-content: flex-end; align-items: stretch; }
  .service-card__title svg { width: 30px; height: 30px; transition: transform var(--spring-quick-duration) var(--spring-quick); }
  /* short description slides open on hover */
  .service-card__text {
    display: grid;
    grid-template-rows: 0fr;
    margin-top: 0;
    opacity: 0;
    color: var(--grey-300);
    transition:
      grid-template-rows var(--spring-gentle-duration) var(--spring-gentle),
      margin-top var(--spring-gentle-duration) var(--spring-gentle),
      opacity 0.3s ease;
  }
  .service-card__text > span { overflow: hidden; }
  .service-card:hover .service-card__text,
  .service-card:focus-visible .service-card__text { grid-template-rows: 1fr; margin-top: 12px; opacity: 1; }
  .service-card:hover .service-card__title svg { transform: translateX(4px); }
}

/* ==========================================================================
   Home — FAQ
   ========================================================================== */
.faq__inner {
  display: grid;
  gap: 50px;
}
.faq__media {
  height: 300px;
  border-radius: var(--r-md);
  overflow: hidden;
}
.faq__media img { width: 100%; height: 100%; object-fit: cover; }

.accordion { display: flex; flex-direction: column; gap: 20px; }
.accordion__item {
  --accent-top: 3px;
  padding: 30px;
  border-radius: var(--r-sm);
  background: var(--white);
}
.accordion button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  width: 100%;
  font-weight: inherit;
  text-align: left;
  line-height: inherit;
}
.accordion button svg {
  flex: none;
  width: 20px;
  height: 20px;
  transition: transform var(--spring-quick-duration) var(--spring-quick);
}
.accordion__item.is-open button svg { transform: rotate(180deg); }
.accordion__panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows var(--spring-quick-duration) var(--spring-quick);
}
.accordion__item.is-open .accordion__panel { grid-template-rows: 1fr; }
.accordion__panel > div { overflow: hidden; }
.accordion__panel p {
  padding-top: 20px;
  opacity: 0;
  transition: opacity var(--spring-quick-duration) var(--spring-quick);
}
.accordion__item.is-open .accordion__panel p { opacity: 1; }

@media (min-width: 810px) {
  .faq__media { height: 500px; }
}
@media (min-width: 1200px) {
  .faq__inner { grid-template-columns: 1fr 1fr; gap: 75px; align-items: stretch; }
  /* The photo takes its height from the accordion beside it, so they always match
     (and it follows along as questions open and close). */
  .faq__media { position: relative; height: auto; min-height: 0; }
  .faq__media img { position: absolute; inset: 0; }
}

/* ==========================================================================
   Home — recent works (masonry-style grid)
   ========================================================================== */
.works .stack { gap: 75px; }
.gallery {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
.gallery img {
  width: 100%;
  height: 300px;
  border-radius: var(--r-sm);
  object-fit: cover;
}
@media (min-width: 810px) {
  .gallery {
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: 290px 83px 187px;
    grid-template-areas:
      "a b c"
      "d b e"
      "d f e";
  }
  .gallery img { height: 100%; }
  .g-a { grid-area: a; } .g-b { grid-area: b; } .g-c { grid-area: c; }
  .g-d { grid-area: d; } .g-e { grid-area: e; } .g-f { grid-area: f; }
  .works .section-head { max-width: 650px; }
}
@media (min-width: 1200px) {
  .gallery { gap: 30px; grid-template-rows: 435px 125px 280px; }
}

/* ==========================================================================
   Home — testimonials
   ========================================================================== */
.reviews__head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 50px;
  text-align: center;
}
.reviews__score { display: flex; flex-direction: column; align-items: center; }
.reviews__score-row { display: flex; align-items: center; gap: 10px; }
.reviews__caption.t-h6 { color: var(--grey-700); }

.ticker {
  min-height: 360px;   /* original strip height; grows if a review is longer */
  padding: 10px 0 28px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 5%, #000 95%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, #000 5%, #000 95%, transparent 100%);
}
.ticker__track {
  display: flex;
  gap: 30px;
  width: max-content;
  animation: ticker var(--ticker-duration, 76s) linear infinite;
}
@keyframes ticker {
  to { transform: translateX(calc(var(--ticker-distance, 1520px) * -1)); }
}

.review {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 350px;
  padding: 40px;
  border-radius: var(--r-md);
  background: var(--white);
}
.review__author { display: flex; align-items: center; gap: 20px; }
.review__author img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
}
.review__body { flex: 1; }

@media (min-width: 810px) {
  .reviews__head { flex-direction: row; justify-content: space-between; text-align: left; gap: 10px; }
  .reviews__head h2 { max-width: 300px; }
  .reviews__score { align-items: flex-end; }
}
@media (min-width: 1200px) {
  .reviews__head h2 { max-width: 400px; }
}

/* ==========================================================================
   Blog cards (home + blog page)
   ========================================================================== */
.post-list { gap: 50px; }
.post-list--archive { gap: 30px; }
.post-list--archive > li { padding-bottom: var(--post-pad, 0); }
.post-card { display: flex; flex-direction: column; }
.post-card__media {
  position: relative;
  display: block;
  height: 250px;
  margin-bottom: 20px;
  border-radius: var(--r-md);
  overflow: hidden;
}
.post-card__media img { width: 100%; height: 100%; object-fit: cover; }
.post-card__overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.5);
  color: var(--white);
  opacity: 0;
  transition: opacity var(--spring-quick-duration) var(--spring-quick);
}
.post-card__overlay svg {
  width: 40px;
  height: 40px;
  transform: scale(0.6);
  transition: transform var(--spring-bouncy-duration) var(--spring-bouncy);
}
.post-card:hover .post-card__overlay { opacity: 1; }
.post-card:hover .post-card__overlay svg { transform: none; }
.post-card time { margin-bottom: 10px; }
/* "Read article" cue so the cards obviously open the post */
.post-card h3 { transition: color var(--spring-quick-duration) var(--spring-quick); }
.post-card__more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  font-weight: 500;
  color: var(--green);
}
.post-card__more svg { width: 18px; height: 18px; transition: transform var(--spring-bouncy-duration) var(--spring-bouncy); }
.post-card:hover h3 { color: var(--green); }
.post-card:hover .post-card__more svg { transform: translateX(4px); }

@media (min-width: 810px) {
  .post-list { gap: 30px; }
  .post-list--archive { --post-pad: 10px; }
}
@media (min-width: 1200px) {
  .post-card__media { height: 329px; margin-bottom: 30px; }
  .post-list--archive { --post-pad: 30px; }
}

/* ==========================================================================
   About — story & team
   ========================================================================== */
.story__media {
  height: 350px;
  border-radius: var(--r-md);
  overflow: hidden;
}
.story__media img { width: 100%; height: 100%; object-fit: cover; }

.stats {
  display: flex;
  gap: 10px;
  margin-top: 21px;
}
.stat { display: flex; flex: 1; flex-direction: column; gap: 10px; }
.stat__num { color: var(--green); }

.team-grid { gap: 50px; }
.team-card {
  --accent-top: 1px;
  --accent-bottom: 5px;
  display: flex;
  flex-direction: column;
  border-radius: var(--r-md);
  background: var(--white);
  overflow: hidden;
}
.team-card img { width: 100%; height: 255px; object-fit: cover; }
.team-card__body {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 20px;
  text-align: center;
}

@media (min-width: 810px) {
  .story__media { height: 500px; }
  .team-grid { gap: 20px; }
  .team-card img { height: 253px; }
}
@media (min-width: 1200px) {
  .story__media { height: 700px; }
  .team-grid { gap: 30px; }
  .team-card img { height: 331px; }
  .team-card__body { padding: 30px; }
}

/* ==========================================================================
   Contact
   ========================================================================== */
.contact-split__media {
  order: -1;
  height: 300px;
  border-radius: var(--r-md);
  overflow: hidden;
}
.contact-split__media img { width: 100%; height: 100%; object-fit: cover; }
.contact-split__media iframe { display: block; width: 100%; height: 100%; border: 0; }

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 30px;
  margin-top: 21px;
}
.contact-info li { display: flex; align-items: center; gap: 20px; }

.contact-form-section { border-radius: var(--r-md); }
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  max-width: 650px;
  margin-inline: auto;
}
.contact-form__row { display: grid; gap: 10px; }
.contact-form .field input,
.contact-form .field select,
.contact-form .field textarea { background: var(--white); }

@media (min-width: 810px) {
  .contact-split__media { order: 0; height: 400px; }
  .contact-form__row { grid-template-columns: 1fr 1fr; }
  .contact-form-section { padding-top: 90px; }
}
@media (min-width: 1200px) {
  .contact-info { flex-direction: row; gap: 10px; }
  .contact-info li { flex: 1; }
  .contact-form-section { padding-top: var(--section-pad); }
}

/* ==========================================================================
   Service detail — content + sidebar
   ========================================================================== */
.service-layout {
  display: flex;
  flex-direction: column;
  gap: 75px;
}
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.related { display: flex; flex-direction: column; gap: 10px; }
.related-card {
  --accent-top: 3px;
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 20px;
  border-radius: var(--r-sm);
  background: var(--white);
}
.related-card img {
  display: none;
  flex: none;
  width: 50px;
  height: 50px;
  border-radius: var(--r-sm);
  object-fit: cover;
}
.related-card__title {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.related-card__title svg { flex: none; width: 20px; height: 20px; color: var(--black); }

@media (min-width: 810px) {
  .service-layout { flex-direction: row; align-items: flex-start; gap: 50px; }
  .service-layout .prose { flex: 1; }
  .sidebar { flex: none; width: 250px; }
}
@media (min-width: 1200px) {
  .service-layout { gap: 75px; }
  .sidebar { width: 350px; }
  .related-card img { display: block; }
}

/* ---------- Rich text (service & blog articles) ---------- */
.prose { max-width: 900px; margin-inline: auto; }
.service-layout .prose { max-width: none; margin: 0; }
.prose h3 {
  font-size: var(--fs-h3);
  line-height: var(--lh-h3);
  letter-spacing: var(--ls-text);
  margin-top: 40px;
}
.prose h3:first-child { margin-top: 0; }
.prose p,
.prose ul,
.prose ol { margin-top: 20px; }
.prose ul { list-style: disc; padding-left: 1.5em; }
.prose ol { list-style: decimal; padding-left: 1.5em; }
.prose strong { font-weight: 500; color: var(--black); }
.prose a { color: var(--green); text-decoration: underline; }

/* ==========================================================================
   Call to action
   ========================================================================== */
.cta {
  padding: 50px var(--gutter);
  background: var(--green);
}
.cta__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
  text-align: center;
}
.cta h2 { color: var(--white); }

@media (min-width: 810px) {
  .cta { padding: 75px var(--gutter); }
  .cta__inner { flex-direction: row; justify-content: space-between; text-align: left; }
}
@media (min-width: 1200px) {
  .cta { padding: 100px var(--gutter); }
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { padding: 50px var(--gutter); }
.footer__inner {
  display: grid;
  gap: 40px;
}
.footer__brand {
  display: flex;
  flex-direction: column;
  gap: 30px;
  padding-top: 5px;
}
.footer__brand img { width: 125px; }
.footer__brand p { font-size: var(--fs-small); color: var(--grey-500); }
.socials { display: flex; gap: 10px; }
.socials a {
  display: block;
  color: var(--green);
  transition: opacity var(--spring-quick-duration) var(--spring-quick);
}
.socials a:hover { opacity: 0.5; }
.socials svg { width: 20px; height: 20px; }

.footer__col { display: flex; flex-direction: column; gap: 25px; }
.footer__col ul { display: flex; flex-direction: column; gap: 5px; }
/* bigger tap area on phones without changing the spacing you see */
@media (max-width: 1199.98px) {
  .footer__col ul { gap: 0; }
  .footer__col li a { display: inline-block; padding-block: 3px; }
}
@media (max-width: 809.98px) {
  .footer__bottom a { display: inline-block; padding-block: 4px; }
}
.footer__bottom a { white-space: nowrap; }
.footer__bottom > span:last-child { white-space: nowrap; flex: none; }
@media (min-width: 810px) { .footer__bottom { gap: 30px; } }
.footer__col a { transition: color var(--spring-quick-duration) var(--spring-quick); }
.footer__col a:hover { color: var(--black); }

@media (min-width: 810px) {
  .site-footer { padding: 75px var(--gutter); }
  .footer__inner { grid-template-columns: repeat(4, 1fr); gap: 40px; }
}
@media (min-width: 1200px) {
  .site-footer { padding: 100px var(--gutter); }
  .footer__inner { grid-template-columns: 1fr repeat(3, 236px); }
  .footer__brand { max-width: 236px; }
  .footer__brand img { width: 150px; }
  .footer__brand img.footer__logo--lockup { width: auto; height: 50px; }
  .footer__brand p { font-size: var(--fs-body); color: var(--grey-700); }
}


/* Sean's site additions ---------------------------------------------------- */
/* Home: trust points as a 2 x 2 grid */
.key-points--grid { display: grid; grid-template-columns: repeat(2, max-content); gap: 20px 40px; }
.key-points--grid li { gap: 12px; }
@media (min-width: 810px) { .key-points--grid li { gap: 20px; } }

/* Service pages: "What's included" cards */
.feature-grid { gap: 20px; }
.feature-card {
  --accent-top: 3px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  padding: 30px;
  border-radius: var(--r-sm);
  background: var(--white);
}
@media (min-width: 1200px) { .feature-grid { gap: 30px; } }

/* Service intro: photo takes the height of the text beside it */
@media (min-width: 810px) {
  .split--stretch { align-items: stretch; }
  .split--stretch .contact-split__media { position: relative; height: auto; min-height: 400px; }
  .split--stretch .contact-split__media img { position: absolute; inset: 0; }
}

/* Contact page: contact details stacked */
.contact-info--stack { flex-direction: column !important; gap: 30px !important; }
.contact-info--stack li { flex: none !important; }
.contact-info--stack a:hover { color: var(--green); }

/* Get a Quote: form section straight after the hero */
.contact-form-section--first { border-radius: 0; }


/* Footer: phone + email grouped under the brand text; Facebook in a solid circle */
.footer__contact { display: flex; flex-direction: column; gap: 8px; margin-top: -10px; }
.footer__contact a { display: inline-flex; align-items: center; gap: 10px; color: var(--grey-700); transition: color var(--spring-quick-duration) var(--spring-quick); }
.footer__contact a:hover { color: var(--green); }
.footer__contact svg { flex: none; width: 18px; height: 18px; color: var(--green); }
.footer__contact a { white-space: nowrap; }
.socials--circle a {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--green);
  color: var(--white);
}
.socials--circle svg { width: 18px; height: 18px; }


/* Footer: original square logo */
.footer__brand img.footer__logo--badge { width: auto; height: 80px; border-radius: var(--r-sm); }

/* Cookie consent banner: full-width bar along the bottom, in the site's green (like the CTA band) */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 100;
  padding: 20px var(--gutter);
  background: var(--green);
  color: var(--white);
  box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.18);
  font-size: var(--fs-small);
  line-height: var(--lh-text);
  transform: translateY(100%);
  transition: transform var(--spring-quick-duration) var(--spring-quick);
}
.cookie-banner.is-visible { transform: none; }
.cookie-banner[hidden] { display: none; }
.cookie-banner__inner {
  display: flex;
  flex-direction: column;
  gap: 15px;
  max-width: var(--container);
  margin-inline: auto;
}
.cookie-banner p { color: rgba(255, 255, 255, 0.9); }
.cookie-banner a { color: var(--white); text-decoration: underline; }
.cookie-banner__actions { display: flex; gap: 10px; flex: none; }
.cookie-banner .btn { height: 44px; font-size: 15px; }
/* phones: the two buttons share the full width */
@media (max-width: 809.98px) {
  .cookie-banner__actions .btn { flex: 1; }
}
.btn--light { background: var(--white); color: var(--green); }
@media (min-width: 810px) {
  .cookie-banner__inner { flex-direction: row; align-items: center; justify-content: space-between; gap: 30px; }
}

/* Form thank-you message */
.form-success { margin-top: 5px; color: var(--green); font-weight: 500; text-align: center; }
.form-success[hidden] { display: none; }

/* Floating WhatsApp button (moves up while the cookie banner is showing) */
.whatsapp-fab {
  position: fixed;
  right: 20px;
  bottom: calc(20px + var(--cookie-h, 0px));
  z-index: 90;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25d366;
  color: var(--white);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  transition:
    bottom var(--spring-quick-duration) var(--spring-quick),
    transform var(--spring-bouncy-duration) var(--spring-bouncy);
}
.whatsapp-fab:hover { transform: scale(1.08); }
.whatsapp-fab svg { width: 30px; height: 30px; }
@media (min-width: 810px) {
  .whatsapp-fab { right: 30px; bottom: calc(30px + var(--cookie-h, 0px)); width: 60px; height: 60px; }
}

/* Footer bottom bar (copyright + credit) */
.footer__bottom {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 10px;
  padding-top: 25px;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  font-size: var(--fs-small);
  line-height: var(--lh-text);
  color: var(--grey-500);
  text-align: center;
}
.footer__bottom a { text-decoration: underline; }
.footer__bottom a:hover { color: var(--black); }
@media (min-width: 810px) {
  .footer__bottom { flex-direction: row; justify-content: space-between; text-align: left; }
}

/* Grass strip along the very bottom of the footer */
.site-footer--grass { padding-bottom: 0; }
.footer__grass {
  display: block;
  width: calc(100% + var(--gutter) * 2);
  max-width: none;
  height: auto;
  margin: 50px calc(var(--gutter) * -1) 0;
}

/* ==========================================================================
   Motion — reveals (enabled only when JS runs)
   data-reveal="fade" | "up" | "up-far"; data-delay="1".."3" staggers by 0.2s
   ========================================================================== */
.js [data-reveal] {
  opacity: 0;
  transition:
    opacity var(--spring-quick-duration) var(--spring-quick),
    transform var(--spring-quick-duration) var(--spring-quick);
  transition-delay: calc(var(--reveal-step) * var(--delay, 0));
}
.js [data-reveal="up"] { transform: translateY(50px); }
.js [data-reveal="up-far"] { transform: perspective(1200px) translateY(75px); }
.js [data-reveal].is-visible { opacity: 1; transform: none; }
[data-delay="1"] { --delay: 1; }
[data-delay="2"] { --delay: 2; }
[data-delay="3"] { --delay: 3; }

/* The nav fades in once on load, on the slower spring */
.js [data-reveal="nav"] {
  transition: opacity var(--spring-gentle-duration) var(--spring-gentle) 0.2s;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
    animation: none !important;
  }
  .js [data-reveal] { opacity: 1; transform: none; }
}
