/* Colour and spacing variables — this page owns its visual conventions. */
:root {
  --pine-teal: #145B53;
  --pine-teal-shadow: #083F39;
  --slate-blue: #53778D;
  --white: #FFFFFF;
  --light-silver: #DDE2DF;
  --warm-highlight: #F2F3EC;
  --deep-rose: #CA9EAE;
  --charcoal: #151D1C; /* Supporting neutral, outside the core brand palette. */
  --content-width: 74rem;
  --gutter: clamp(1rem, 4vw, 3rem);
  --small-radius: 0.25rem;
}

/* Base typography and accessible page navigation. */
* { box-sizing: border-box; }

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  background: var(--white);
  color: var(--charcoal);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.7;
}

/* Fill unused viewport space; future content can grow in normal flow. */
main { flex: 1 0 auto; }

[hidden] { display: none !important; }

img {
  display: block;
  max-width: 100%;
  height: auto;
}

h1, h2, h3, p { margin: 0; }

h1, h2, h3 {
  color: var(--pine-teal);
  font-weight: 600;
  line-height: 1.16;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.5rem, 4.2vw, 3.5rem); }
h2 { font-size: clamp(2rem, 3.1vw, 2.75rem); }
h3 { font-size: clamp(1.8rem, 2.6vw, 2.375rem); }

a {
  color: var(--pine-teal);
  text-underline-offset: 0.25em;
}

a:hover { color: var(--pine-teal-shadow); }
button { font: inherit; }

a:focus-visible, button:focus-visible {
  outline: 3px solid var(--slate-blue);
  outline-offset: 5px;
}

[tabindex="-1"]:focus { outline: none; }
[id] { scroll-margin-top: 1.5rem; }

.container {
  width: min(var(--content-width), calc(100% - var(--gutter) * 2));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  z-index: 2;
  inset: 0.75rem auto auto 0.75rem;
  padding: 0.75rem 1rem;
  transform: translateY(-200%);
  background: var(--pine-teal);
  color: var(--white);
  font-weight: 600;
}

.skip-link:focus {
  transform: translateY(0);
  color: var(--white);
}

/* Header and navigation. The mobile menu stays in normal document flow. */
.site-header {
  border-bottom: 1px solid var(--light-silver);
  background: var(--white);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  min-height: 7rem;
  padding-block: 1.25rem;
}

.brand-link {
  display: inline-block;
  max-width: 100%;
}

.header-logo { width: 22.5rem; }

.primary-navigation ul {
  display: flex;
  align-items: center;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  padding: 0;
  margin: 0;
  list-style: none;
}

.primary-navigation a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
}

.primary-navigation a:hover { text-decoration: underline; }

.primary-navigation .nav-contact {
  gap: 1rem;
  padding-inline: 1.25rem;
  border: 1px solid var(--pine-teal);
  border-radius: var(--small-radius);
}

.menu-toggle {
  display: inline-flex;
  flex: 0 0 2.75rem;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 1px solid var(--pine-teal);
  border-radius: var(--small-radius);
  background: var(--white);
  color: var(--pine-teal);
  cursor: pointer;
}

.menu-toggle:hover { background: var(--warm-highlight); }

.menu-icon {
  position: relative;
  width: 1.125rem;
  height: 0.75rem;
  border-block: 2px solid currentColor;
}

.menu-toggle[aria-expanded="true"] .menu-icon {
  height: 0;
  border-bottom: 0;
  transform: rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-icon::after {
  position: absolute;
  inset: -2px 0 auto;
  border-top: 2px solid currentColor;
  content: "";
  transform: rotate(90deg);
}

/* Centred photograph and introduction in normal reading order. */
.offerings-opening {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  justify-items: center;
  gap: 1rem;
  padding-block: 1rem clamp(2.5rem, 4vw, 3.5rem);
}

.offerings-opening h1 { text-align: center; }

.offerings-image {
  width: auto;
  max-width: min(100%, 56rem);
}

@media (min-width: 54.0625rem) {
  .offerings-image {
    /* The header, H1, supporting line and gaps use about 16.5rem.
       Reserve 18rem for them and clearance. Short windows can scroll. */
    max-height: max(16rem, calc(100svh - 18rem));
  }
}

.offerings-introduction {
  width: min(100%, 62rem);
  font-size: 1.125rem;
  overflow-wrap: anywhere;
}

.offerings-introduction p + p { margin-top: 1.25rem; }

.offerings-supporting {
  color: var(--slate-blue);
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  line-height: 1.5;
}

.offerings-introduction .offerings-supporting + p { margin-top: 2rem; }

.offerings-shortcuts {
  width: min(100%, 30rem);
  margin-top: 1rem;
  padding: 0.875rem clamp(0.75rem, 2vw, 1.5rem);
}

.offerings-shortcuts,
.enquiry-actions {
  border: 3px solid var(--deep-rose);
  border-bottom-width: 5px;
  border-bottom-color: color-mix(in srgb, var(--deep-rose) 85%, var(--charcoal));
  border-radius: 1.5rem;
  background: linear-gradient(180deg,
    color-mix(in srgb, var(--warm-highlight) 25%, var(--white)),
    var(--warm-highlight) 85%);
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 95%),
    0 8px 14px -3px rgb(21 29 28 / 22%);
  text-align: center;
}

.offerings-shortcuts p {
  font-weight: 600;
  line-height: 1.35;
}

.offerings-shortcuts ul,
.pricing-shortcuts ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-evenly;
  gap: 0.25rem 0.75rem;
  margin: 0.375rem 0 0;
  padding: 0;
  list-style: none;
}

.offerings-shortcuts a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.pricing-shortcuts {
  max-width: 100%;
  font-size: 1rem;
  text-align: center;
}

.pricing-shortcuts p { font-weight: 600; }

.pricing-shortcuts ul {
  justify-content: center;
  gap: 0 1.25rem;
  margin-top: 0;
}

.pricing-shortcuts a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
}

/* The construction sections use the same reading width as the introduction. */
.offering-section {
  max-width: 62rem;
  padding-block: clamp(2rem, 4vw, 3.5rem);
  border-top: 1px solid var(--light-silver);
  font-size: 1.125rem;
  overflow-wrap: break-word;
}

.offering-section h3 {
  margin-top: 2rem;
  font-size: clamp(1.375rem, 2vw, 1.75rem);
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.offering-section p { margin-top: 1rem; }

/* Fade only the backdrop into the white page, keeping the cutouts sharp. */
.offering-intro-image::before,
.camera-views::before,
.double-wall-image-band::before,
.double-sided-image-band::before,
.window-assembly-images::before {
  --feather: 22px;
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  border-radius: 0.875rem;
  background:
    linear-gradient(to right, var(--white), transparent var(--feather), transparent calc(100% - var(--feather)), var(--white)),
    linear-gradient(to bottom, var(--white), transparent var(--feather), transparent calc(100% - var(--feather)), var(--white)),
    #E5EBEE;
}

.offering-intro {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 3fr);
  align-items: center;
  gap: clamp(1.5rem, 3vw, 2rem);
  margin-top: 2rem;
}

.offering-intro h3 { margin-top: 0; }

.offering-intro-image {
  position: relative;
  isolation: isolate;
  width: min(100%, 22rem);
  justify-self: center;
  padding: 1rem;
}

.camera-views {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(0.625rem, 1.6vw, 1.25rem);
  padding: clamp(0.75rem, 2vw, 1.5rem);
  margin-top: 1.5rem;
}

.camera-views img {
  width: 100%;
  aspect-ratio: 10 / 7;
  object-fit: contain;
}

/* Center the stepped insert and keep its enlarged transparent margins inside the slot. */
.camera-views img[src$="/molded-pulp-camera-insert-7-p-2-t-photo.png"] {
  transform: translateY(-2.3%) scale(1.16);
  clip-path: inset(9% 7% 5%);
}

.double-wall-figure { margin: 1.5rem 0; }
.offering-intro + .double-wall-figure { margin-top: 2rem; }

.double-wall-figure figcaption {
  color: var(--pine-teal-shadow);
  font-size: 0.9375rem;
  line-height: 1.5;
  text-align: center;
  text-wrap: balance;
}

.double-wall-image-band,
.double-sided-image-band,
.window-assembly-images {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: center;
  justify-items: center;
  gap: clamp(1rem, 2.5vw, 2rem);
  padding: clamp(1rem, 2vw, 1.5rem);
}

.double-wall-image-band img,
.double-sided-image-band img,
.window-assembly-images img { width: 100%; }

.double-wall-measurements {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.45fr) minmax(0, 1.65fr);
}

.pump-case-images {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.double-sided-image-band {
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr) minmax(0, 3fr);
  margin-top: 1.5rem;
}

.window-assembly-images {
  grid-template-columns: minmax(0, 1.2fr) repeat(3, minmax(0, 1fr));
  gap: clamp(0.75rem, 1.5vw, 1.25rem);
  margin-top: 1.5rem;
}

@media (max-width: 48rem) {
  .offering-intro { grid-template-columns: minmax(0, 1fr); }
  .camera-views { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .double-wall-image-band,
  .double-sided-image-band,
  .window-assembly-images {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.5rem;
  }

  .double-wall-image-band img,
  .double-sided-image-band img,
  .window-assembly-images img { width: min(100%, 21rem); }
  .double-sided-image-band img:nth-child(2) { width: min(85%, 16rem); }
  .double-wall-measurements img:first-child { width: min(85%, 16rem); }
  .double-wall-measurements img:last-child { width: min(100%, 25.6rem); }
}

.offering-section p + table { margin-top: 1.25rem; }

.offering-section table {
  width: 100%;
  border-collapse: collapse;
  font-size: 1rem;
  line-height: 1.5;
  font-variant-numeric: tabular-nums;
}

.offering-section th,
.offering-section td {
  padding: 0.75rem clamp(0.375rem, 1.5vw, 1rem);
  border-bottom: 1px solid var(--light-silver);
  text-align: right;
}

.offering-section th:first-child { text-align: left; }
.offering-section th:nth-child(2),
.offering-section td:nth-child(2) { text-align: center; }
.offering-section th { font-weight: 600; }
.offering-section th .delivery-qualifier { font-weight: 400; }

.offering-section thead {
  background: var(--pine-teal);
  color: var(--white);
}

.offering-section tbody tr:nth-child(even) { background: var(--warm-highlight); }
.offering-section table + p { font-size: 1rem; }

.enquiry-actions {
  display: grid;
  gap: 0.625rem;
  width: min(100%, 46rem);
  margin: 1.5rem auto 0;
  padding: clamp(1rem, 2.5vw, 1.5rem);
}

.enquiry-actions p { margin: 0; }
.enquiry-actions small { font-size: 0.9375rem; }

.enquiry-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

.enquiry-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.5rem 1rem;
  border: 1px solid var(--pine-teal);
  border-radius: var(--small-radius);
  background: var(--white);
  color: var(--pine-teal);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.4;
  text-align: center;
  text-decoration: none;
}

.enquiry-links a:hover {
  background: var(--warm-highlight);
  color: var(--pine-teal-shadow);
}

.enquiry-links .sample-pack-link {
  background: var(--pine-teal);
  color: var(--white);
}

.enquiry-links .sample-pack-link:hover {
  background: var(--pine-teal-shadow);
  color: var(--white);
}

/* Dark footer with the supplied highlighted full logo. */
.site-footer {
  padding-top: 1rem;
  background: var(--charcoal);
  color: var(--light-silver);
}

.footer-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
  padding-bottom: 0.75rem;
}

.footer-brand { flex-shrink: 0; }
.footer-logo { width: 20rem; }

.footer-navigation {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
}

.site-footer a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  color: var(--white);
  font-size: 0.9375rem;
  text-decoration: none;
}

.site-footer a:hover { text-decoration: underline; }
.site-footer a:focus-visible { outline-color: var(--light-silver); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding-block: 0.25rem 0.5rem;
  border-top: 1px solid var(--slate-blue);
  font-size: 0.8125rem;
}

.footer-bottom a {
  gap: 1rem;
  font-size: 0.8125rem;
}

/* Responsive adjustments. Keep this breakpoint in sync with index.js. */
@media (max-width: 72rem) {
  .header-inner {
    flex-wrap: wrap;
    gap: 0 0.75rem;
    min-height: 5.5rem;
    padding-block: 1rem;
  }

  .header-inner > .brand-link {
    flex: 0 1 22.5rem;
    max-width: calc(100% - 3.5rem);
  }

  .primary-navigation {
    width: 100%;
    margin-top: 1rem;
    border-top: 1px solid var(--light-silver);
    padding-top: 0.5rem;
  }

  .primary-navigation ul {
    display: grid;
    gap: 0.25rem;
  }

  .primary-navigation a {
    width: 100%;
    min-height: 3rem;
    padding: 0.5rem 0.75rem;
  }

  .primary-navigation .nav-contact {
    border: 0;
    padding-inline: 0.75rem;
  }
}

@media (max-width: 54rem) {
  .footer-main {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.75rem;
  }
}
