/* Shared navigation, controls and reading margins. */
:root {
  --page-gutter: clamp(16px, 3.6vw, 52px);
  --page-rail: min(calc(100% - 2 * var(--page-gutter)), 1280px);
  --control-height: 46px;
  --masthead-height: 78px;
}
.wrap, .nav .navrow, footer.closing { width: var(--page-rail); }
.intro-copy { padding-inline: max(var(--page-gutter), calc((100% - 1280px) / 2)); }
.nav .navrow, .masthead .nav-inner {
  display: flex;
  align-items: center;
  height: var(--masthead-height);
  min-height: 0;
  gap: clamp(16px, 1.8vw, 26px);
  padding-block: 0;
}
.nav .brand, .masthead .wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 34px;
  flex-shrink: 0;
  text-decoration: none;
}
.nav .brand img, .masthead .wordmark img { width: 38px; height: 38px; }
.nav .brand small, .masthead .wordmark small { margin-top: 6px; }
.navrow .nav__links, .nav-inner .primary {
  display: flex;
  align-items: center;
  gap: clamp(12px, 1.4vw, 20px);
  margin-inline-start: auto;
}
.navrow .nav__links a, .nav-inner .primary a {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  font: 500 15px/1.2 var(--font-text);
  white-space: nowrap;
  text-decoration: none;
}
.navrow .nav__links a::after, .nav-inner .primary a::after {
  content: "";
  position: absolute;
  height: 1px;
  inset: auto 0 7px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease-out;
}
:is(.nav__links, .primary) a:is([aria-current], :focus-visible)::after { transform: scaleX(1); }
.nav .quote-nav, .masthead .quote-nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 8px 13px;
  min-height: var(--control-height);
  font: 550 14px/1 var(--font-text);
  white-space: nowrap;
  text-decoration: none;
}
.quote-nav[aria-current] { box-shadow: inset 0 0 0 1px currentColor; }
.action-icon {
  display: inline-block;
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.55;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
}
footer.closing, footer.footer { align-items: center; }
footer.closing a, footer.footer a { display: inline-flex; align-items: center; min-height: 44px; }
footer.closing small { max-width: 48ch; }
.product-info .description, .enquiry-panel > p, .calc-page .intro, .calculator-callout p {
  max-width: 54ch;
  text-wrap: pretty;
}
.product-info h1, .quote-line .line-name, .related-head h2 { text-wrap: balance; }
.detail-actions { align-items: center; gap: 5px 18px; }
.detail-actions .action, .estimate-quote, .enquiry-panel .action, #showroom .button,
.finish-actions #family-link { justify-content: center; gap: 10px; min-height: var(--control-height); }
.quote-feedback a, .line-calculate, .remove { min-height: 44px; }
.card button, .action, .secondary, #showroom .button, .finish-actions .button {
  transition: background-color 180ms, color 180ms, border-color 180ms, transform 180ms;
}
@media (hover: hover) {
  :is(.nav__links, .primary) a:hover::after { transform: scaleX(1); }
  .nav .quote-nav:hover { background-color: rgba(32, 39, 30, .82); }
  .card button:hover, .secondary:hover { background: #e6e8dd; border-color: #68735e; }
  .action:hover, .secondary:hover { transform: translateY(-1px); }
}
:is(.action, .secondary, .card button):active { transform: translateY(1px); }
@media (max-width: 1280px) {
  :root { --masthead-height: 100px; }
  .nav .navrow, .masthead .nav-inner {
    height: auto;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 3px 12px;
    padding-top: 9px;
  }
  .nav .brand, .masthead .wordmark { font-size: 29px; gap: 8px; }
  .nav .brand img, .masthead .wordmark img { width: 32px; height: 32px; }
  .navrow .nav__links, .nav-inner .primary {
    grid-column: 1 / -1;
    grid-row: 2;
    width: 100%;
    justify-content: space-between;
    gap: 4px;
    margin: 0;
  }
  .navrow .nav__links a, .nav-inner .primary a { min-width: 44px; font-size: 14px; }
  .nav .quote-nav, .masthead .quote-nav { grid-area: 1 / 2; gap: 7px; min-height: 44px; font-size: 13px; }
}
@media (max-width: 940px) {
  :root { --masthead-height: 144px; }
  .navrow .nav__links, .nav-inner .primary {
    display: grid;
    grid-template-columns: repeat(4, auto);
    justify-content: stretch;
    column-gap: 8px;
    row-gap: 0;
  }
}
@media (max-width: 600px) {
  :root { --masthead-height: 188px; }
  .navrow .nav__links, .nav-inner .primary { grid-template-columns: auto minmax(0, 1fr) auto; }
  .navrow .nav__links a:last-child, .nav-inner .primary a:last-child { grid-column: span 2; }
}
@media (max-width: 360px) {
  .nav .quote-nav, .masthead .quote-nav { gap: 6px; padding-inline: 10px; }
}
@media (max-width: 760px) and (max-height: 580px) {
  .intro-copy { padding-top: calc(var(--masthead-height) + 12px); }
}
@media (max-width: 600px) {
  :is(.quote-layout, .calc-layout, .detail-layout) input:not([type="radio"]),
  :is(.quote-layout, .calc-layout, .detail-layout) :is(select, textarea) { font-size: 16px; }
  .stepper :is(button,input) { min-width: 44px; height: 44px; }
  .detail-actions .action, .estimate-quote { width: 100%; }
  footer.closing, footer.footer { display: flex; justify-content: flex-start; gap: 2px 17px; }
  footer.closing strong, footer.footer a:first-child { flex-basis: 100%; }
  footer.closing small { margin-top: 2px; }
}
@media (prefers-reduced-motion: reduce) {
  :is(.action, .secondary, .card button, .nav__links a, .primary a, .button):is(:hover, :active) { transform: none; }
}

.jf-service-links{display:flex;flex-wrap:wrap;justify-content:center;gap:.65rem 1.5rem;padding:1.1rem 1rem;font-size:.85rem;background:#f5f2e9;color:#353b30}.jf-service-links a{color:inherit;text-underline-offset:.22em}
