html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* Compact equipment overview on the same light surface as the product panel. */
.equipment {
  color-scheme: light;
  color: var(--navy);
  background: #fafafa;
  padding-block: clamp(48px, 5vw, 64px);
}
.equipment h2 {
  margin: 0 0 20px;
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  line-height: 1.2;
  text-align: center;
}
.equipment h2::after {
  content: "";
  display: block;
  width: 64px;
  height: 3px;
  margin: 16px auto 0;
  background: var(--orange);
}
.equipment-intro {
  max-width: 65ch;
  margin: 0 auto;
  font-size: 1rem;
  line-height: 1.7;
  text-align: center;
}
.equipment-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin: 40px 0 0;
  padding: 0;
  list-style: none;
}
.equipment-grid li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 24px 20px;
  border-left: 1px solid #d4d5d6;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.5;
}
.equipment-grid li:nth-child(4n + 1) { border-left: 0; }
.equipment-grid li:nth-child(n + 5) { border-top: 1px solid #d4d5d6; }
.equipment-grid li::before {
  content: "";
  flex: 0 0 7px;
  height: 12px;
  margin-top: 4px;
  border-right: 2px solid var(--orange);
  border-bottom: 2px solid var(--orange);
  transform: rotate(45deg);
}
@media (max-width: 960px) {
  .equipment-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .equipment-grid li:nth-child(odd) { border-left: 0; }
  .equipment-grid li:nth-child(n + 3) { border-top: 1px solid #d4d5d6; }
}
@media (max-width: 480px) {
  .equipment-grid { grid-template-columns: minmax(0, 1fr); }
  .equipment-grid li { border-left: 0; padding: 20px 8px; }
  .equipment-grid li + li { border-top: 1px solid #d4d5d6; }
}

/* Experience section: text first, with the original artwork alongside. */
.why-kerrwood {
  padding-block: clamp(40px, 6vw, 80px);
  border-top: 1px solid rgb(255 255 255 / 14%);
}
.why-kerrwood-inner {
  display: grid;
  grid-template-columns: minmax(0, 63fr) minmax(0, 37fr);
  align-items: start;
  gap: clamp(24px, 4vw, 56px);
}
.why-kerrwood-images {
  display: grid;
  gap: 20px;
  min-width: 0;
}
.why-kerrwood-image {
  width: 100%;
  height: auto;
}
.why-kerrwood-image-secondary {
  aspect-ratio: 3 / 2;
  height: auto;
  object-fit: cover;
}
.why-kerrwood h2 {
  margin: 0 0 24px;
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  line-height: 1.2;
}
.why-kerrwood h2::after {
  content: "";
  display: block;
  width: 64px;
  height: 3px;
  margin-top: 16px;
  background: var(--orange);
}
.why-kerrwood h3 {
  margin: 0 0 12px;
  font-size: 1.125rem;
  line-height: 1.4;
}
.why-kerrwood p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.7;
}
.why-kerrwood-content > p + p { margin-top: 1.25rem; }
.why-kerrwood-points {
  display: grid;
  gap: 24px;
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
}
.why-kerrwood-points li {
  padding-left: 20px;
  border-left: 2px solid var(--orange);
}
@media (max-width: 680px) {
  .why-kerrwood-inner { grid-template-columns: minmax(0, 1fr); }
  .why-kerrwood-images { width: min(100%, 360px); margin-inline: auto; }
}

:root {
  color-scheme: dark;
  --navy: #0d1b2a;
  --white: #fff;
  --orange: #ff6a00;
  --content-width: 1040px;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--navy);
  color: var(--white);
  font-family: Arial, Helvetica, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
.container {
  width: min(var(--content-width), calc(100% - 64px));
  margin-inline: auto;
}
.skip-link {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 1;
  padding: 12px 16px;
  background: var(--white);
  color: var(--navy);
  transform: translateY(-160%);
}
.skip-link:focus { transform: translateY(0); }
a:focus-visible { outline: 2px solid var(--orange); outline-offset: 6px; }

/* Brand panel: logo lockup and three equally weighted statements. */
.hero {
  padding-block: clamp(28px, 4vw, 48px) clamp(32px, 4vw, 48px);
  background: radial-gradient(ellipse at center, var(--navy), #040d16);
}
.brand { margin: 0; }
.hero-logo {
  width: min(100%, 790px);
  margin: clamp(18px, 3vw, 32px) auto 0;
}
.credibility, .service-list { list-style: none; padding: 0; }
.credibility {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: clamp(36px, 5vw, 60px) 0 0;
}
.credibility li {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(10px, 2vw, 20px);
  padding-inline: 16px;
  font-size: clamp(0.75rem, 1.5vw, 1rem);
  font-weight: 700;
  line-height: 1.35;
  text-transform: uppercase;
}
.credibility li + li { border-left: 1px solid rgb(255 255 255 / 65%); }
.credibility img { width: 48px; flex-shrink: 0; }

.hero-promise {
  margin: 18px 0 0;
  color: var(--white);
  font-size: clamp(0.6875rem, 2.2vw, 1.125rem);
  font-weight: 700;
  line-height: 1.4;
  text-align: center;
  text-transform: uppercase;
}
.hero-promise-separator {
  margin-inline: 0.4em;
  color: #a5adb5;
  font-weight: 400;
}
.hero-promise-accent { color: var(--orange); }

/* Compact desktop/tablet branding; retain the existing mobile presentation. */
@media (min-width: 681px) {
  .hero { padding-block: 24px 28px; }
  .hero .hero-logo {
    width: min(85%, 640px);
    margin-top: 12px;
  }
  .hero .credibility { margin-top: 28px; }
}

/* Light service panel. Icons are decorative; text supplies each label. */
.services {
  color-scheme: light;
  color: var(--navy);
  background: #fafafa;
  padding-block: clamp(32px, 4vw, 48px);
  text-align: center;
}
.services h2 {
  margin: 0;
  font-size: clamp(1rem, 2vw, 1.375rem);
  line-height: 1.4;
  text-transform: uppercase;
}
.services h2::after {
  content: "";
  display: block;
  width: 140px;
  height: 3px;
  margin: 10px auto 0;
  background: var(--orange);
}
.service-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 44px 0 0;
}
.service-list li { position: relative; padding-inline: 20px; }
.service-list li + li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 18px;
  bottom: 0;
  width: 1px;
  background: #b9b2ab;
}
.service-list img { width: 96px; height: 80px; margin-inline: auto; }
.service-list h3 {
  margin: 16px 0 12px;
  font-size: 0.9375rem;
  line-height: 1.35;
  text-transform: uppercase;
}
.service-list p {
  max-width: 180px;
  margin: 0 auto;
  font-size: 0.75rem;
  line-height: 1.5;
  text-transform: uppercase;
}

/* Compact the four-column product panel without changing its mobile layout. */
@media (min-width: 681px) {
  .services { padding-block: 28px; }
  .services .service-list { margin-top: 28px; }
  .services .service-list img { width: 84px; height: 70px; }
  .services .service-list h3 { margin: 10px 0 8px; }
  .services .service-list li + li::before { top: 14px; bottom: 4px; }
}

/* About panel: preserve the supplied artwork alongside editable copy. */
.about {
  padding-block: clamp(40px, 6vw, 80px);
}
.about-inner {
  display: grid;
  grid-template-columns: 43% minmax(0, 1fr);
  align-items: center;
  gap: clamp(24px, 4vw, 56px);
}
.about-image {
  width: 100%;
  height: auto;
}
.about-content h2 {
  margin: 0 0 24px;
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  line-height: 1.2;
}
.about-content h2::after {
  content: "";
  display: block;
  width: 64px;
  height: 3px;
  margin-top: 16px;
  background: var(--orange);
}
.about-content p {
  margin: 0;
  max-width: 60ch;
  font-size: 1rem;
  line-height: 1.7;
}
.about-content p + p {
  margin-top: 1.25rem;
}
.about-experience {
  color: var(--orange);
  font-weight: 600;
}

/* Homepage service overview; scoped separately from the brand service panel. */
.our-services {
  padding-block: clamp(40px, 6vw, 80px);
  border-top: 1px solid rgb(255 255 255 / 14%);
}
.our-services h2 {
  margin: 0 0 20px;
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  line-height: 1.2;
}
.our-services-intro {
  max-width: 100%;
  margin: 0;
  font-size: 1rem;
  line-height: 1.7;
}
.our-services-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 24px;
  list-style: none;
  margin: 36px 0 0;
  padding: 0;
}
.our-services-card {
  grid-column: span 2;
  padding: 28px;
  border: 1px solid rgb(255 255 255 / 6%);
  border-top: 2px solid var(--orange);
  background: #182635;
}
.our-services-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 20px;
}
/* Centre the final pair while keeping all five cards the same width. */
.our-services-card:nth-child(4) { grid-column: 2 / span 2; }
.our-services-card h3 {
  margin: 0 0 16px;
  font-size: 1.125rem;
  line-height: 1.4;
}
.our-services-card p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.7;
}

@media (max-width: 960px) {
  .our-services-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .our-services-card,
  .our-services-card:nth-child(4) { grid-column: auto; }
}

@media (max-width: 600px) {
  .our-services-grid { grid-template-columns: minmax(0, 1fr); }
  .our-services-card { padding: 24px; }
}

@media (max-width: 680px) {
  .about-inner { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 680px) {
  .container { width: calc(100% - 32px); }
  .credibility li { flex-direction: column; gap: 10px; padding-inline: 8px; text-align: center; }
  .credibility img { width: 38px; }
  .service-list { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 36px; }
  .service-list li:nth-child(3)::before { display: none; }
}

@media (max-width: 360px) {
  .credibility li { font-size: 0.6875rem; }
  .service-list li { padding-inline: 10px; }
}

/* Enquiries: native form controls and a reserved direct-contact area. */
.enquiries {
  padding-block: clamp(48px, 6vw, 80px);
  background: var(--navy);
  color: var(--white);
  color-scheme: dark;
}
.enquiries h2 {
  margin: 0 0 24px;
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  line-height: 1.2;
}
.enquiries h2::after {
  content: "";
  display: block;
  width: 64px;
  height: 3px;
  margin-top: 16px;
  background: var(--orange);
}
.enquiries-intro {
  max-width: 75ch;
  margin: 0;
  font-size: 1rem;
  line-height: 1.7;
}
.enquiries-contacts {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
  margin: 32px 0 48px;
}
.enquiries-contacts > div {
  padding-left: 16px;
  border-left: 2px solid var(--orange);
}
.enquiries-contacts dt { font-weight: 700; line-height: 1.5; }
.enquiries-contacts dd { margin: 8px 0 0; color: #c5ccd3; line-height: 1.5; }
.enquiry-form {
  padding-top: 32px;
  border-top: 1px solid rgb(255 255 255 / 14%);
}
.enquiry-form h3 { margin: 0 0 28px; font-size: 1.5rem; line-height: 1.3; }
.enquiry-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}
.enquiry-field { min-width: 0; }
.enquiry-field-wide { grid-column: 1 / -1; }
.enquiry-field label { display: block; margin-bottom: 10px; font-weight: 600; line-height: 1.5; }
.enquiry-field input,
.enquiry-field select,
.enquiry-field textarea {
  display: block;
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid #617080;
  border-radius: 3px;
  background: #182635;
  color: var(--white);
  font: inherit;
  line-height: 1.5;
}
.enquiry-field textarea { resize: vertical; min-height: 180px; }
.enquiry-form :is(input, select, textarea, summary, button):focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 4px;
}
.enquiry-equipment { margin-top: 28px; border-block: 1px solid rgb(255 255 255 / 14%); }
.enquiry-equipment summary { padding-block: 18px; cursor: pointer; font-weight: 600; line-height: 1.5; }
.enquiry-equipment summary::marker { color: var(--orange); }
.enquiry-equipment .enquiry-fields { padding-block: 8px 24px; }
.enquiry-form-status { margin: 24px 0 16px; color: #c5ccd3; line-height: 1.5; }
.enquiry-submit {
  min-height: 48px;
  padding: 14px 28px;
  border: 0;
  border-radius: 3px;
  background: var(--orange);
  color: var(--navy);
  font: inherit;
  font-weight: 700;
}
.enquiry-submit:disabled { opacity: 0.65; cursor: not-allowed; }
@media (max-width: 680px) {
  .enquiries-contacts, .enquiry-fields { grid-template-columns: minmax(0, 1fr); }
}

/* URL fragments reveal the result after the PHP POST/redirect flow. */
.enquiry-result {
  display: none;
  margin: 0 0 24px;
  padding: 16px 20px;
  border-left: 3px solid var(--orange);
  background: #182635;
  line-height: 1.7;
  scroll-margin-top: 24px;
}
.enquiry-result:target { display: block; }
.enquiry-result:focus { outline: 2px solid var(--orange); outline-offset: 4px; }
.enquiry-submit { cursor: pointer; margin-top: 24px; }
.enquiry-submit:hover { background: #ff8126; }

/* Compact sticky navigation, independent of the approved hero styling. */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--navy);
  border-bottom: 1px solid rgb(255 255 255 / 14%);
}
.site-header-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 68px;
}
.site-header-logo { display: flex; align-items: center; min-height: 44px; flex-shrink: 0; }
.site-header-logo img { width: 200px; }
.desktop-nav { display: flex; align-items: center; gap: 18px; }
.site-header nav a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 4px;
  color: var(--white);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
}
.site-header nav a:hover { color: var(--orange); }
.site-header a:focus-visible,
.mobile-menu summary:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }
.site-header nav .nav-contact { padding-inline: 16px; border: 1px solid var(--orange); border-radius: 3px; }
.mobile-menu { display: none; }
/* Match the header's 68px inner height plus its 1px bottom border. */
#main, main section[id], .enquiry-result { scroll-margin-top: 69px; }
.skip-link { z-index: 20; }

@media (max-width: 860px) {
  .site-header-inner { min-height: 60px; gap: 16px; }
  .site-header-logo img { width: 170px; }
  .desktop-nav { display: none; }
  .mobile-menu { display: block; }
  .mobile-menu summary {
    padding: 12px;
    min-height: 44px;
    color: var(--white);
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
  }
  .mobile-menu summary::marker { color: var(--orange); }
  .mobile-menu nav {
    position: absolute;
    top: 100%;
    right: 0;
    width: min(280px, 100%);
    padding: 12px;
    background: var(--navy);
    border: 1px solid rgb(255 255 255 / 20%);
  }
  .mobile-menu nav a { padding-inline: 12px; }
  .mobile-menu .nav-contact { margin-top: 8px; }
  /* The dropdown overlays the page; it does not increase the header height. */
  #main, main section[id], .enquiry-result { scroll-margin-top: 61px; }
}

/* Shared, understated contact link at the end of section content. */
.section-contact-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: 20px;
  color: var(--orange);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.5;
  text-decoration: underline;
  text-decoration-color: var(--orange);
  text-underline-offset: 5px;
  text-decoration-thickness: 1px;
}
.section-contact-link:hover { text-decoration-thickness: 2px; }
.section-contact-link:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
  text-decoration-thickness: 2px;
}
.equipment .section-contact-link { color: var(--navy); }

/* Let each card's content grow above its bottom-aligned detail link. */
.our-services-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.our-services-card .section-contact-link {
  margin-top: auto;
  padding-top: 20px;
}
.our-services-card .our-services-icon { flex-shrink: 0; }

/* Detailed services page, using the shared navy surface and orange accents. */
.services-intro { padding-block: clamp(32px, 4vw, 48px); }
.services-intro h1 {
  margin: 0 0 24px;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.2;
}
.services-intro h1::after,
.service-detail h2::after {
  content: "";
  display: block;
  width: 64px;
  height: 3px;
  margin-top: 16px;
  background: var(--orange);
}
.service-jump-links { display: flex; flex-wrap: wrap; gap: 4px 24px; }
.service-jump-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--orange);
  font-size: 0.875rem;
  line-height: 1.5;
  text-underline-offset: 5px;
}
.service-jump-links a:hover { text-decoration-thickness: 2px; }
.service-detail {
  padding-block: clamp(40px, 6vw, 72px);
  border-top: 1px solid rgb(255 255 255 / 14%);
}
.service-detail-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(28px, 4vw, 56px);
}
.service-detail-reverse .service-detail-inner {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
}
.service-detail-reverse .service-detail-content { grid-column: 2; grid-row: 1; }
.service-detail-reverse .service-detail-image { grid-column: 1; grid-row: 1; }
.service-detail h2 {
  margin: 0 0 24px;
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  line-height: 1.2;
}
.service-detail h3 { margin: 0 0 20px; font-size: 1.125rem; line-height: 1.5; }
.service-detail p { margin: 0 0 20px; line-height: 1.7; }
.service-detail-list { margin: 0; padding-left: 22px; line-height: 1.6; }
.service-detail-list li { padding-left: 4px; }
.service-detail-list li + li { margin-top: 8px; }
.service-detail-list li::marker { color: var(--orange); }
.service-detail-image {
  width: 100%;
  height: auto;
  max-height: 520px;
  object-fit: cover;
  border-bottom: 3px solid var(--orange);
}
.service-detail-text .service-detail-inner { display: block; }
.service-detail-text .service-detail-content {
  max-width: 80ch;
  padding: clamp(24px, 4vw, 40px);
  border-left: 3px solid var(--orange);
  background: #182635;
}
@media (max-width: 760px) {
  .service-detail-inner,
  .service-detail-reverse .service-detail-inner { grid-template-columns: minmax(0, 1fr); }
  .service-detail-reverse .service-detail-content,
  .service-detail-reverse .service-detail-image { grid-column: auto; grid-row: auto; }
  .service-detail-image { max-width: 520px; max-height: 440px; margin-inline: auto; }
}

/* Privacy page only; shared header and navigation retain homepage styling. */
.privacy-page { padding-block: clamp(40px, 6vw, 72px); }
.privacy-content { max-width: 75ch; }
.privacy-content h1 {
  margin: 0 0 24px;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.2;
}
.privacy-content h1::after {
  content: "";
  display: block;
  width: 64px;
  height: 3px;
  margin-top: 16px;
  background: var(--orange);
}
.privacy-content h2 { margin: 32px 0 12px; font-size: 1.25rem; line-height: 1.4; }
.privacy-content p, .privacy-content ul { margin: 0 0 16px; line-height: 1.7; }
.privacy-content ul { padding-left: 24px; }
.privacy-content li + li { margin-top: 8px; }
.privacy-content a { color: var(--orange); text-underline-offset: 3px; overflow-wrap: anywhere; }
.privacy-content a:hover { text-decoration-thickness: 2px; }
.privacy-content .legal-placeholder { color: var(--orange); font-weight: 600; overflow-wrap: anywhere; }
.privacy-footer { padding-block: 24px; border-top: 1px solid rgb(255 255 255 / 14%); }
.privacy-footer p { margin: 0; line-height: 1.5; }
.privacy-footer .section-contact-link { margin-top: 8px; }

/* Compact homepage footer. */
.site-footer {
  padding-block: 32px;
  border-top: 1px solid rgb(255 255 255 / 14%);
  background: var(--navy);
  color: #c5ccd3;
  font-size: 0.875rem;
  line-height: 1.6;
}
.site-footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 16px 32px;
}
.site-footer-name { margin: 0 0 4px; color: var(--white); font-weight: 700; }
.site-footer a { text-underline-offset: 4px; }
.site-footer a:hover { color: var(--orange); }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 0 20px; }
.site-footer nav a { display: inline-flex; align-items: center; min-height: 44px; }
.site-footer-legal { margin-top: 20px; }
.site-footer-legal p { margin: 4px 0; overflow-wrap: anywhere; }
.site-footer-legal span { font-weight: 600; }
.site-footer-copyright { margin: 16px 0 0; }

.enquiry-privacy-notice {
  max-width: 75ch;
  margin: 24px 0 0;
  color: #c5ccd3;
  font-size: 0.875rem;
  line-height: 1.6;
}
.enquiry-privacy-notice a { color: var(--orange); text-underline-offset: 3px; }
.enquiry-privacy-notice a:hover { text-decoration-thickness: 2px; }

/* Keep keyboard targets clear of the sticky header, including form controls. */
:where(a, button, input, select, textarea, summary) { scroll-margin-top: 84px; }
.site-footer-top > div > a { display: inline-flex; align-items: center; min-height: 44px; }
.mobile-menu nav { max-height: calc(100dvh - 61px); overflow-y: auto; }
@media (max-width: 860px) {
  :where(a, button, input, select, textarea, summary) { scroll-margin-top: 76px; }
}
