/* ==========================================================================
   Homepage, sections below the tour and quote form.
   Hanken Grotesk throughout (loaded in the page head). Scoped to .hm so nothing
   leaks into the shared header, footer or other pages.
   Colours, radii and spacing come from the site tokens in style.css (white /
   stone / navy, brand green for decoration, button green for actions).
   The last block in this file holds the tour and quote card at their old values.
   ========================================================================== */

.hm {
  /* the page's names for the site tokens in style.css */
  --hm-navy: var(--color-secondary);
  --hm-navy-deep: var(--color-secondary-deep);
  --hm-stone: var(--color-stone);
  --hm-brand: var(--color-primary);
  --hm-btn: var(--color-btn);
  --hm-btn-hover: var(--color-btn-hover);
  --hm-sage: var(--color-sage);
  --hm-muted: var(--color-ink-soft);
  --hm-radius: var(--radius-md);
  --hm-space: var(--space-section);
  --hm-font: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;

  position: relative;
  padding-block: var(--hm-space);
  font-family: var(--hm-font);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.65;
  color: var(--hm-navy);
  background: #fff;
}
.hm--stone { background: var(--hm-stone); }
.hm--navy { background: var(--hm-navy); color: #fff; }

.hm h2, .hm h3 {
  font-family: var(--hm-font);
  font-weight: 600;
  color: inherit;
  margin: 0;
}
.hm h2 {
  font-size: clamp(32px, 4.2vw, 52px);
  line-height: 1.08;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
.hm h3 {
  font-size: 24px;
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.hm p { margin: 0; }
.hm img { display: block; max-width: 100%; height: auto; }

/* Buttons: the site's green, Hanken Grotesk, sentence case */
.hm .btn.hm-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  font-family: var(--hm-font);
  font-size: 17px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  line-height: 1.2;
  text-align: center;
  background-color: var(--hm-btn);
  color: #fff !important;
  transition: background-color 200ms ease, border-color 200ms ease, transform 160ms var(--ease-out);
}
.hm .btn.hm-btn:hover { background-color: var(--hm-btn-hover); }
.hm .btn.hm-btn--ghost {
  background-color: transparent;
  border-color: rgba(255, 255, 255, 0.7);
}
.hm .btn.hm-btn--ghost:hover { background-color: rgba(255, 255, 255, 0.14); border-color: #fff; }

.hm a:focus-visible,
.hm .btn:focus-visible {
  outline: 3px solid var(--hm-brand);
  outline-offset: 3px;
}
.hm--navy a:focus-visible, .hm-cta a:focus-visible { outline-color: var(--hm-sage); }

/* ---------- Turn your garden room dreams into reality: three linked photos ---------- */
.hm-dreams__head { margin-bottom: 48px; }
.hm-dreams__head h2 { max-width: 20ch; }
.hm-tiles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  list-style: none;
  margin: 0;
  padding: 0;
}
/* a taller photo with its title set on it, bottom-left, over a bottom scrim */
.hm-tile { position: relative; display: block; overflow: hidden; border-radius: var(--hm-radius); color: #fff; text-decoration: none; }
.hm-tile__media {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--hm-stone);
}
.hm-tile__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(28, 36, 40, 0) 35%, rgba(28, 36, 40, 0.84) 100%); /* white title: 4:1 or better on all three photos */
}
/* the photos in assets/images/tiles/ are 17:10 crops, so 4:3 is as tall as they go without going soft;
   captions are live text */
.hm-tile__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 500ms var(--ease-out);
}
@media (hover: hover) and (pointer: fine) { .hm-tile:hover .hm-tile__media img { transform: scale(1.04); } }
.hm-tile:focus-visible .hm-tile__media img { transform: scale(1.04); }
.hm-tile__title {
  position: absolute;
  left: 24px;
  bottom: 20px;
  max-width: calc(100% - 48px);
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.2;
  color: #fff;
  background: linear-gradient(#fff, #fff) left bottom / 0 2px no-repeat;
  padding-bottom: 4px;
  transition: background-size 0.35s ease;
}
.hm-tile:hover .hm-tile__title,
.hm-tile:focus-visible .hm-tile__title { background-size: 100% 2px; }

/* ---------- Welcome: text left, photo right ---------- */
.hm-welcome__grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: clamp(40px, 5vw, 72px);
  align-items: center;
}
.hm-welcome__text h2 { margin-bottom: 28px; }
.hm-welcome__text h2 br { display: none; } /* the narrower text column balances the heading over two lines itself */
.hm-welcome__text p { max-width: 60ch; margin-bottom: 36px; }
.hm-welcome__photo { border-radius: var(--hm-radius); overflow: hidden; aspect-ratio: 3 / 2; background: var(--hm-stone); }
.hm-welcome__photo img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Why choose us: typographic row ---------- */
.hm-features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 56px 48px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.hm-feature {
  position: relative;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
}
.hm-feature::before {
  content: "";
  position: absolute;
  left: 0;
  top: -2px;
  width: 48px;
  height: 3px;
  background: var(--hm-brand);
}
.hm-feature h3 { margin-bottom: 14px; font-size: 26px; }
.hm-feature p { font-size: 17px; color: rgba(255, 255, 255, 0.82); }
.hm .hm-features-more { margin-top: 72px; }
.hm-link {
  display: inline-block;
  padding-block: 8px; margin-block: -8px; /* 44px tap target, same layout */
  font-size: 19px;
  font-weight: 500;
  color: var(--hm-sage);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
  text-decoration-color: rgba(207, 227, 180, 0.5);
  transition: text-decoration-color 0.2s ease, color 0.2s ease;
}
.hm-link:hover { color: #fff; text-decoration-color: #fff; }

/* ---------- Testimonials: calm, no autoplay ---------- */
.hm-reviews__head { margin-bottom: 48px; }
/* three cards side by side on desktop, stacked below that: nothing scrolls sideways */
.hm-reviews__track {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
}
@media (min-width: 1024px) {
  .hm-reviews__track { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
}
.hm-review {
  margin: 0;
  display: flex;
  flex-direction: column;
  background: var(--hm-stone);
  border-radius: var(--hm-radius);
  padding: clamp(28px, 3vw, 40px);
}
.hm-review__stars {
  color: var(--color-primary-dark);
  font-size: 20px;
  letter-spacing: 3px;
  line-height: 1;
  margin-bottom: 20px;
}
.hm .hm-review__text { font-size: 18px; line-height: 1.65; margin-bottom: 28px; }
.hm-review__who { margin-top: auto; display: flex; flex-direction: column; gap: 2px; }
.hm-review__name { font-size: 18px; font-weight: 600; color: var(--hm-navy); }
.hm-review__source { font-size: 15px; color: var(--hm-muted); }

/* ---------- Closing call to action: the strongest block on the page ---------- */
.hm-cta {
  --hm-space: var(--space-section-lg);
  background: var(--hm-navy-deep);
  color: #fff;
  text-align: center;
  overflow: hidden;
  isolation: isolate;
}
.hm-cta__bg { position: absolute; inset: 0; z-index: -2; }
.hm-cta__bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }
.hm-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(35, 45, 51, 0.62), rgba(35, 45, 51, 0.78));
}
.hm-cta h2 {
  font-size: clamp(34px, 5vw, 64px);
  line-height: 1.06;
  letter-spacing: -0.03em;
  max-width: 20ch;
  margin-inline: auto;
}
.hm .hm-cta__line {
  margin: 28px auto 44px;
  max-width: 36em;
  font-size: clamp(18px, 1.6vw, 20px);
  text-wrap: balance;
  color: rgba(255, 255, 255, 0.92);
}
.hm-cta__actions { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; }
.hm-cta .btn.hm-btn:not(.hm-btn--ghost) { background-color: #fff; color: var(--hm-navy) !important; }
.hm-cta .btn.hm-btn:not(.hm-btn--ghost):hover { background-color: var(--hm-sage); }
.hm .hm-cta__more { margin: 24px 0 0; font-size: 17px; }
.hm-cta__more a {
  display: inline-block;
  padding: 8px 2px;
  margin-block: -2px;
  color: #fff;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
}
.hm-cta__more a:hover { color: var(--hm-sage); }

/* ---------- Tablet ---------- */
@media (max-width: 1023px) {
  .hm-features { grid-template-columns: 1fr 1fr; }
  .hm-welcome__grid { grid-template-columns: 1fr; }
  .hm-welcome__photo { order: 2; }
}

/* ---------- Phones ---------- */
@media (max-width: 767px) {
  .hm { font-size: 16px; }
  .hm h3 { font-size: 22px; }
  .hm-dreams__head, .hm-reviews__head { margin-bottom: 32px; }
  .hm-tiles { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .hm-tile__title { left: 20px; bottom: 16px; max-width: calc(100% - 40px); font-size: 24px; }
  .hm-welcome__text p { margin-bottom: 28px; }
  .hm-features { grid-template-columns: 1fr; gap: 40px; }
  .hm-feature h3 { font-size: 24px; }
  .hm-feature p { font-size: 16px; }
  .hm .hm-features-more { margin-top: 48px; }
  .hm-link { font-size: 18px; }

  .hm-reviews__track { gap: 14px; }
  .hm-review { padding: 26px; }
  .hm .hm-review__text { font-size: 16px; margin-bottom: 22px; }
  .hm-review__name { font-size: 17px; }

  .hm-cta h2 br { display: none; }
  .hm .hm-cta__line { margin: 22px auto 32px; }
  .hm-cta__actions { flex-direction: column; align-items: stretch; }
  .hm .btn.hm-btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .hm-tile__media img, .hm-tile__title, .hm .btn.hm-btn, .hm-link { transition: none; }
  .hm-tile:hover .hm-tile__media img, .hm-tile:focus-visible .hm-tile__media img { transform: none; }
}

/* Welcome: local-area lines (Manchester targeting). Navy underlined links: ~9:1 on stone. */
.hm-welcome__text p.hm-welcome__local { margin-bottom: 16px; }
.hm-welcome__text p.hm-welcome__areas { font-size: 16px; color: var(--hm-muted); margin-bottom: 36px; }
.hm-welcome__text p a:not([class]) { color: var(--hm-navy); font-weight: 600; }
@media (max-width: 767px) { .hm-welcome__text p.hm-welcome__areas { margin-bottom: 28px; } }

/* ==========================================================================
   Tour, hero and quote card: held at their pre-upgrade values.
   assets/home/home-tour.css was written against the old base in style.css (10px card radius, 15px
   buttons with a 4px radius, loose heading lines, grey-blue body copy). The 2026-11 design pass
   changed that base for every other page; these rules put the old values back inside the tour and
   the quote section only, so they look exactly as they did. Low specificity (:where), so every rule
   in home-tour.css still wins. Delete this block when home-tour.css is moved onto the new tokens.
   ========================================================================== */
.ggr-tour, .ggr-quote { --radius-md: 10px; --container-max: 1140px; --color-secondary-alt: #3D5159; }
:where(.ggr-tour, .ggr-quote) .btn { min-height: auto; padding: 14px 26px; font-size: 15px; line-height: 1.6; border-radius: 4px; }
:where(.ggr-tour, .ggr-quote) :is(h1, h2, h3, h4, h5, h6) { line-height: inherit; letter-spacing: inherit; }
:where(.ggr-quote) .ggr-enquiry button[type="submit"] { line-height: 1.5; }
:where(.ggr-quote) .ggr-enquiry .success h2 { line-height: 1.5; letter-spacing: normal; }

/* the second heading in the welcome column (was an inline style) */
.hm-welcome__sub { font-size: clamp(22px, 2.2vw, 28px); line-height: 1.2; margin: 0 0 14px; }

/* Welcome: two text-beside-photo rows (the second flipped), so neither text block has an empty half beside it */
.hm-welcome__grid + .hm-welcome__grid { margin-top: 80px; }
.hm-welcome__text > :last-child { margin-bottom: 0; }
.hm-welcome__text p.hm-welcome__areas:last-child { margin-bottom: 0; }
@media (min-width: 1024px) {
  .hm-welcome__grid--flip { grid-template-columns: 7fr 5fr; }
  .hm-welcome__grid--flip .hm-welcome__photo { order: -1; }
}
@media (max-width: 1023px) { .hm-welcome__grid + .hm-welcome__grid { margin-top: 56px; } }
