/* Shared Terra layout, type scale and navigation. */
:root {
  --terra-content-width: 1320px;
  --terra-gutter: clamp(20px, 2.8vw, 38px);
  --terra-nav-height: 70px;
  --terra-title-size: clamp(30px, calc(24px + 1.35vw), 44px);
  --terra-section-title-size: clamp(24px, calc(17px + 1vw), 36px);
  --terra-intro-gap: 12px;
}

.terra-ux .wrap {
  max-width: var(--terra-content-width);
  padding-inline: var(--terra-gutter);
}

.terra-ux main h1 {
  font-size: var(--terra-title-size);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -.03em;
  margin-bottom: 12px;
  overflow-wrap: anywhere;
}

.terra-ux main h2 {
  font-size: var(--terra-section-title-size);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -.02em;
}

.terra-ux .section { padding-block: clamp(28px, 4vw, 56px); }
.terra-ux .crumbs { font-size: 13px; padding-block: 12px 6px; }
.terra-ux main > .crumbs + :is(.section, .category-head, .product-hero) {
  padding-block-start: var(--terra-intro-gap);
}
.terra-ux .button { min-height: 44px; gap: 10px; font-size: 16px; text-align: center; }
.terra-ux .text-link, .terra-ux .card-arrow { font-size: 15px; }
.terra-ux .hero-actions { margin-top: 22px; gap: 12px; }
.terra-ux .hero-copy { padding-block: 48px; }
.terra-ux .hero-copy p { font-size: 17px; }
.terra-ux .hero-copy .button.dark { border-color: #9bb4a8; }
.terra-ux .hero-copy .text-link { margin-left: 0; }
.terra-ux .section-heading { margin-bottom: 20px; }
.terra-ux .service-content p { font-size: 16px; }
.terra-ux .groundworks-hero {
  align-items: start;
  gap: clamp(20px, 3vw, 38px);
  padding-block: 10px clamp(22px, 3vw, 36px);
}
.terra-ux .groundworks-hero img { height: clamp(260px, 24vw, 350px); }
.terra-ux .groundworks-hero .hero-actions { margin-top: 16px; }
.terra-ux .groundworks-hero .micro { margin-top: 14px; font-size: 15px; }
.terra-ux .groundworks-hero + #services { padding-top: 18px; }
.terra-ux a.groundworks-card:is(:hover, :focus-visible) { border-color: var(--ink); }
.terra-ux a.groundworks-card:is(:hover, :focus-visible) h3 { text-decoration: underline; text-underline-offset: 3px; }
.terra-ux .work-service-uses { margin-top: 22px; }
.terra-ux main .card p { font-size: 14px; }
.terra-ux main .card-spec, .terra-ux main .card-vat { font-size: 13px; }
.terra-ux :is(.card, .groundworks-card) h3 { font-size: clamp(18px, 1.45vw, 22px); }
.terra-ux .card-arrow { min-height: 44px; align-items: center; gap: 6px; }
.terra-ux .category-head { padding-block: var(--terra-intro-gap) 16px; }
.terra-ux .category-head h1 { margin-bottom: 10px; }
.terra-ux .catalogue-heading p { margin-bottom: 0; }
.terra-ux .catalogue-heading .text-link { display: inline-block; margin-top: 6px; }
.terra-ux .catalogue-toolbar { margin-bottom: 14px; }
.terra-ux .catalogue-toolbar label,
.terra-ux .catalogue-toolbar input,
.terra-ux .filter-links button { font-size: 15px; }
.terra-ux .catalogue-toolbar input,
.terra-ux .filter-links button { min-height: 44px; }
.terra-ux .catalogue-note { max-width: 78ch; margin-inline: auto; font-size: 15px; }
.terra-material-catalogue .collection-nav { margin-bottom: 10px; }
.terra-material-catalogue .collection-nav .chip { min-height: 40px; font-size: 14px; }
.terra-material-catalogue .card-tag { position: static; display: none; }
.terra-material-catalogue .card-price { margin-top: auto; padding-top: 6px; font-size: 16px; }
.terra-material-catalogue .card-img { border-bottom: 1px solid var(--line); }
.terra-plant-catalogue .card-price { margin-top: 6px; padding-top: 0; border-top: 0; }
.terra-plant-catalogue .card-arrow { margin-block: 8px 10px; }

.terra-ux .product-head .summary,
.terra-ux .article > p,
.terra-ux .product-guide-section p { font-size: 16px; }
.terra-ux .product-hero .price-box { margin-top: 12px; }
.terra-ux .product-hero .price-box > .eyebrow { margin-bottom: 6px; }
.terra-ux .price-box .gross, .terra-ux .price-box .micro { font-size: 14px; }
.terra-ux .price-box .field { font-size: 15px; }
.terra-ux .field input, .terra-ux .field select, .terra-ux .field textarea {
  min-height: 44px;
  font-size: 16px;
}

.terra-ux .price-box .field small { font-size: 14px; }
.terra-ux .optional-details { margin-block: 12px; border-top: 1px solid var(--line); }
.terra-ux .optional-details > summary {
  width: fit-content;
  min-height: 44px;
  padding-block: 10px;
  font-weight: 600;
  cursor: pointer;
}

.terra-ux .optional-details > summary:focus-visible { outline: 3px solid #df7d2d; outline-offset: 3px; }
.terra-ux .optional-details > .field + .field { margin-top: 12px; }
.terra-ux .product-head .rate-tabs button { min-height: 52px; font-size: 13px; }
.terra-ux .product-head .rate-tabs small { font-size: 12px; }
.terra-ux .hire-availability-summary { font-size: 14px; }
.terra-hire-detail .hire-availability-summary { margin: 10px 0; padding: 0; background: transparent; border: 0; }
.terra-ux .hire-availability-summary:empty { display: none; }
.terra-ux .product-hero .price-box .form-row:empty { display: none; }
.terra-ux #details .spec span { font-size: 13px; }
.terra-ux #details .spec strong { font-size: 16px; }
.terra-enquiry-page .basket-layout > .price-box { min-width: 0; }
.terra-enquiry-page #main:not(.has-selection) .basket-layout { display: block; max-width: 680px; }
.terra-enquiry-page #main:not(.has-selection) .basket-layout > :first-child { display: none; }
.terra-enquiry-page .basket-layout > .price-box > h2 { font-size: 22px; margin-bottom: 12px; }
.terra-enquiry-page #enquiry-form > .field,
.terra-enquiry-page #enquiry-form > .check { margin-top: 14px; }
.terra-enquiry-page #enquiry-form > .form-row { margin-block: 10px; }
.terra-enquiry-page .price-box #enquiry-form > .check {
  align-items: center;
  min-height: 44px;
  margin-bottom: 12px;
  font-size: 15px;
}

.terra-enquiry-page .check input { min-height: 20px; min-width: 20px; }
.terra-enquiry-page .check a { text-decoration: underline; }
.terra-enquiry-page .request-call { margin: 13px 0 0; font-size: 15px; }
.terra-enquiry-page .request-selection {
  padding: 12px;
  background: #edf1e8;
  border-radius: 6px;
}

.terra-enquiry-page .request-selection .text-link { margin-left: 8px; }
.terra-enquiry-page .basket-layout .notice { font-size: 15px; }
.terra-ux [id="enquiry-form"], .terra-ux [id="order"], .terra-enquiry-page #basket-items { scroll-margin-top: 110px; }

.terra-ux .utility { padding-block: 6px; }
.terra-ux .nav {
  height: var(--terra-nav-height);
  gap: clamp(10px, 1.25vw, 22px);
}
.terra-ux .nav .brand { min-width: 0; }
.terra-ux .nav .brand img { display: block; width: 176px; max-width: 100%; height: auto; }
.terra-ux .nav-links { gap: clamp(14px, 1.45vw, 24px); white-space: nowrap; }
.terra-ux .nav :is(.phone, .basket-button) {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  white-space: nowrap;
}
.terra-ux .nav .phone { font-size: 18px; }
.terra-ux .nav .basket-button { flex-shrink: 0; }

@media (max-width: 1023px) {
  .terra-ux .product-head .rate-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .terra-ux .nav .brand img { width: 152px; }
  .terra-ux .nav .menu-toggle {
    display: block;
    min-height: 44px;
    flex-shrink: 0;
    border: 0;
    padding: 7px;
    background: transparent;
    color: var(--ink);
    font-size: 14px;
  }
  .terra-ux .nav-links {
    display: none;
    position: absolute;
    inset: 100% 0 auto;
    padding: 10px var(--terra-gutter);
    background: white;
    box-shadow: 0 12px 24px #193c321c;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
  }
  .terra-ux .nav-links.open { display: flex; }
}

@media (max-width: 760px) {
  .terra-ux .nav { gap: 8px; }
  .terra-ux .nav .phone { display: none; }
  .terra-ux .nav .brand img { width: clamp(96px, 33vw, 146px); }
}

@media (max-width: 760px) {
  .terra-ux .utility { display: none; }
  .terra-ux .hero { min-height: auto; }
  .terra-ux .hero-copy { padding-block: 28px 23px; }
  .terra-ux .hero-photo { min-height: 0; max-height: 200px; }
  .terra-ux .hero-photo img { min-height: 146px; }
  .terra-ux .hero-copy .button { padding-inline: 13px; }
  .terra-ux .call-mobile { padding: 9px 16px calc(9px + env(safe-area-inset-bottom)); font-size: 16px; }
  .terra-ux .call-mobile a[href^="tel:"] { display: grid; place-items: center; min-height: 44px; font-weight: 700; }
  .terra-ux .menu-toggle { min-height: 44px; }
  .terra-ux .card-body { padding: 13px; }
  .terra-ux .card-arrow { font-size: 14px; }
  .terra-ux .catalogue-note { margin-inline: 20px; }
  .terra-ux .product-hero .product-image { max-height: 230px; }
  .terra-ux .product-hero .price-box { margin-top: 0; }
  .terra-ux .product-hero .price-box .form-row label:has(#start-date) { min-width: 0; }
  .terra-ux .product-head .rate-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .terra-ux .groundworks-hero img { height: auto; max-height: 230px; aspect-ratio: 1.7; }
  .terra-enquiry-page .basket-layout { gap: 20px; }
  .terra-enquiry-page .basket-layout > .price-box { grid-row: 1; }
  .terra-enquiry-page .call-mobile { display: none; }
  .terra-ux [id="enquiry-form"], .terra-ux [id="order"], .terra-enquiry-page #basket-items { scroll-margin-top: 8px; }
}

/* Common page layout and keyboard targets. */
html {
  scroll-padding-top: 92px;
}
.terra-ux :is(a, button, summary, input, select, textarea):focus-visible {
  outline: 3px solid #b55b19;
  outline-offset: 4px;
}
.terra-ux a[aria-current="page"] {
  box-shadow: inset 0 -3px var(--orange);
}
.terra-home .hero {
  width: calc(min(100%, var(--terra-content-width)) - 2 * var(--terra-gutter));
  margin: clamp(15px, 2vw, 28px) auto 0;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  border-radius: 12px;
  overflow: hidden;
  min-height: 0;
}
.terra-home .hero-copy {
  margin: 0;
  padding: clamp(24px, 3.5vw, 48px);
}
.terra-home .hero-photo {
  height: auto;
  min-height: 0;
  aspect-ratio: 3 / 2;
  align-self: stretch;
}
.terra-home .hero-photo img {
  position: absolute;
  inset: 0;
  object-position: 56% center;
}
.terra-home .hero-photo::after {
  background: none;
}
.terra-home .hero-actions .button {
  padding-inline: 18px;
}
.terra-home .hero-copy .text-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.terra-home .hero + .section {
  padding-top: clamp(24px, 3vw, 38px);
}
.terra-ux .catalogue-grid a.card {
  color: var(--ink);
  text-decoration: none;
}
.terra-ux .catalogue-grid a.card[hidden] {
  display: none;
}
.terra-ux .catalogue-grid a.card:hover {
  border-color: #6d8778;
}
.terra-ux .catalogue-grid a.card:hover h3,
.terra-ux .catalogue-grid a.card:focus-visible h3 {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.terra-ux .catalogue-grid .card-arrow {
  justify-content: space-between;
}
.terra-ux .catalogue-grid a.card .card-img {
  display: block;
}
.terra-ux .menu-toggle {
  cursor: pointer;
}
@media (min-width: 761px) and (max-width: 950px) {
  .terra-home .hero-copy {
    padding: 25px;
  }
}
@media (max-width: 760px) {
  html {
    scroll-padding-top: 70px;
  }
  .terra-home .hero {
    display: flex;
    flex-direction: column;
  }
  .terra-home .hero-copy {
    padding: 20px 16px 14px;
    align-self: stretch;
  }
  .terra-home .hero-copy p {
    line-height: 1.5;
  }
  .terra-home .hero-photo {
    aspect-ratio: 16 / 9;
    max-height: 240px;
  }
  .terra-home .hero-actions {
    gap: 8px;
    margin-top: 15px;
  }
  .terra-home .hero-actions .button {
    padding-inline: 11px;
  }
  .terra-home .hero-copy .text-link {
    padding-inline: 5px;
  }
  .terra-ux .catalogue-toolbar input {
    flex: 1 1 160px;
    min-width: 0;
  }
}

/* The cards support scanning. Product pages carry the detailed descriptions. */
.terra-ux main a.card[data-name] .card-body > p:not([class]) {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.terra-ux .catalogue-photo-note {
  color: var(--muted);
  font-size: .875rem;
  line-height: 1.45;
}
@media (max-width: 600px) {
  .terra-ux main a.card[data-name] .card-body > p:not([class]) {
    display: none;
  }
  .terra-ux .catalogue-grid .card-arrow {
    line-height: 1.25;
  }
}

.terra-ux main a.card[data-name] {
  color: var(--ink);
  text-decoration: none;
}
.terra-ux main a.card[data-name]:is(:hover, :focus-visible) h3 {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.terra-ux main a.card[data-name] .card-img {
  display: block;
}

.terra-ux .work-service-photo {
  margin: 20px 0 0;
  max-width: 620px;
}
.terra-ux .work-service-photo img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 285px;
  aspect-ratio: 8 / 5;
  object-fit: cover;
  border-radius: 8px;
}
.terra-ux .work-service-photo figcaption {
  margin-top: 6px;
  font-size: .875rem;
  color: var(--muted);
}
@media (max-width: 760px) {
  .terra-ux .work-service-photo {
    margin-top: 14px;
  }
  .terra-ux .work-service-photo img {
    max-height: 220px;
  }
}

@media (max-width: 520px) {
  .terra-home .hero-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 152px), 1fr));
    align-items: stretch;
  }
  .terra-home .hero-actions .button {
    padding-inline: 8px;
    text-align: center;
  }
  .terra-home .hero-actions .button:first-child {
    grid-column: 1 / -1;
  }
}

.terra-home .hero-hire-offer {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: #e9af74;
  font-size: 15px;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.terra-home .hero-hire-offer:not([hidden]) + .hero-actions {
  margin-top: 5px;
}
