/*
Theme Name: RELMS
Description: Tema de bloques de REL MECANITZATS, S.L.
Version: 1.4.3
Requires at least: 6.5
Requires PHP: 7.4
Text Domain: relms
*/
:root {
  --red: #be272e;
  --red-dark: #991b22;
  --graphite: #2c2c34;
  --deep: #24242b;
  --paper: #f6f5f2;
  --white: #fff;
  --muted: #595961;
  --line: #deddda;
  --display: 'Barlow Condensed', 'Arial Narrow', Arial, sans-serif;
  --body: 'Barlow', Arial, sans-serif;
  --gutter: clamp(18px, 4vw, 56px);
  --radius: 10px;
  --surface-shadow: 0 12px 30px #24242b0c;
  --anchor-offset: 94px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--anchor-offset); }
html:has(body.admin-bar) { scroll-padding-top: calc(var(--anchor-offset) + var(--wp-admin--admin-bar--height, 32px)); }
body { margin: 0; background: var(--paper); color: var(--graphite); font: 17px/1.65 var(--body); }
[hidden] { display: none !important; }
img { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: 4px; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 4px; }
.quality :focus-visible, .contact :focus-visible { outline-color: white; }
.certificate :focus-visible { outline-color: var(--red); }
.wrap { width: min(1240px, calc(100% - 2 * var(--gutter))); margin-inline: auto; }
.skip { position: fixed; top: -100px; left: var(--gutter); z-index: 20; padding: 12px; background: white; }
.skip:focus { top: 12px; }
.preview { padding: 4px 16px; background: var(--deep); color: #e1e1e4; font-size: 11px; text-align: center; }
h1, h2, h3, h4, h5, p { margin-top: 0; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 600; }
h1, h2, h3 { text-wrap: balance; }
h1 { font-size: clamp(45px, 6vw, 91px); line-height: .99; letter-spacing: -.03em; margin-bottom: 23px; }
h1 span { color: var(--red); }
h2 { font-size: clamp(37px, 4.4vw, 66px); line-height: 1.03; letter-spacing: -.018em; margin-bottom: 0; }
h3 { font-size: clamp(31px, 3vw, 43px); line-height: 1.08; margin-bottom: 14px; }
.eyebrow { display: flex; align-items: center; gap: 11px; margin: 0 0 18px; font-size: 12px;
  font-weight: 700; text-transform: uppercase; letter-spacing: .12em; }
.eyebrow::before { content: ''; width: 24px; height: 2px; background: var(--red); flex: 0 0 24px; }
header { background: white; position: sticky; top: 0; z-index: 10; border-bottom: 1px solid var(--line); box-shadow: 0 4px 18px #24242b08; }
.header-inner { display: flex; align-items: center; min-height: 78px; gap: clamp(12px, 2vw, 26px); }
.relms-languages { flex: none; color: var(--graphite); font-size: 14px; line-height: 1.2; }
.language-picker { position: relative; }
.language-picker > summary {
  display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 7px 11px;
  border: 1px solid var(--line); border-radius: 8px; background: white;
  font-size: inherit; list-style: none; white-space: nowrap;
}
.language-picker > summary::-webkit-details-marker { display: none; }
.language-picker > summary::after {
  content: ''; width: 6px; height: 6px; margin: -3px 2px 0 1px;
  border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: rotate(45deg);
}
.language-picker[open] > summary, .language-picker > summary:hover { border-color: #d8a7a9; background: #fcf5f5; color: var(--red-dark); }
.language-picker[open] > summary::after { margin-top: 3px; transform: rotate(225deg); }
.language-flag { display: block; flex: 0 0 23px; width: 23px; height: 16px; border-radius: 3px; box-shadow: 0 0 0 1px #24242b18; }
.language-code { display: none; }
.language-options {
  position: absolute; z-index: 4; inset-inline-end: 0; top: calc(100% + 8px);
  min-width: 168px; max-height: min(360px, calc(100dvh - 115px)); overflow-y: auto;
  margin: 0; padding: 6px; list-style: none; border: 1px solid #e5dcdb; border-radius: 10px;
  background: white; box-shadow: 0 14px 38px #24242b26;
}
.language-options a { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 7px 9px; border-radius: 6px; font-weight: 600; text-decoration: none; }
.language-options a:hover, .language-options a[aria-current="page"] { background: #f8eded; color: var(--red-dark); }
.language-options a[aria-current="page"]::after {
  content: ''; flex: 0 0 9px; height: 5px; margin-inline-start: auto; border: solid currentColor;
  border-width: 0 0 2px 2px; transform: translateY(-2px) rotate(-45deg);
}
.language-options a:focus-visible { outline-offset: -3px; }
.brand { margin-right: auto; }
.brand img { width: clamp(130px, 13vw, 174px); height: auto; }
#navigation { display: flex; align-items: center; gap: clamp(14px, 2vw, 26px); }
#navigation a { padding: 12px 0; font-size: 15px; font-weight: 600; text-decoration: none; }
#navigation a:hover { color: var(--red); text-decoration: underline; }
.menu-button { display: none; min-height: 44px; padding: 8px 14px; border: 1px solid var(--line);
  border-radius: var(--radius); background: white; color: var(--graphite); font-size: 15px; font-weight: 600; }
.menu-scrim { display: none; }
.button { display: inline-flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 48px;
  padding: 10px 17px; border: 1px solid transparent; border-radius: var(--radius); background: var(--red);
  color: white; font-size: 15px; font-weight: 700; line-height: 1.3; text-decoration: none;
  transition: background-color .2s ease, box-shadow .2s ease; }
.button:hover { background: var(--red-dark); box-shadow: 0 3px 11px #25252c20; }
.button .arrow { font-size: 21px; line-height: 1; }
.text-link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-size: 15px;
  font-weight: 700; text-decoration: underline; text-decoration-color: #b5b4b8; }
.text-link:hover { color: var(--red); text-decoration-color: currentColor; }
.hero { overflow: hidden; border-bottom: 1px solid var(--line); background: linear-gradient(135deg, #fdfcfb, var(--paper) 68%); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.04fr) minmax(0, 1fr); min-height: clamp(490px, 46vw, 640px); }
.hero-copy { align-self: center; padding: clamp(40px, 6vw, 86px) clamp(20px, 4vw, 66px) clamp(40px, 6vw, 86px) 0; }
.hero-copy > p:not(.eyebrow) { max-width: 43ch; margin-bottom: 24px; color: var(--muted); font-size: clamp(16px, 1.4vw, 19px); }
.hero-links { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 22px; }
.hero-image { position: relative; min-height: 100%; margin-right: calc((min(1240px, 100vw - 2 * var(--gutter)) - 100vw) / 2);
  background: var(--deep); overflow: hidden; }
.hero-image > img { position: absolute; width: 100%; height: 100%; object-fit: cover; object-position: 54% center; }
.hero-image::after { content: ''; position: absolute; inset: 52% 0 0; background: linear-gradient(transparent, #17171bd6); pointer-events: none; }
.hero-image .corner { position: absolute; z-index: 1; top: 0; left: 0; width: 56px; height: 56px;
  border-top: 5px solid var(--red); border-left: 5px solid var(--red); }
.image-caption { position: absolute; z-index: 1; bottom: 25px; left: 28px; padding-left: 12px;
  border-left: 3px solid var(--red); color: white; font-size: 14px; }






.section { padding-block: clamp(55px, 7.5vw, 105px); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 28px; margin-bottom: clamp(24px, 3vw, 38px); }
.section-head > p { max-width: 36ch; margin: 0 0 3px; font-size: 16px; color: var(--muted); }
.service-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; padding: 4px; margin-bottom: 10px; border: 1px solid var(--line); border-radius: var(--radius); background: #eceae6; }
.service-tab { min-height: 49px; padding: 9px 14px; border: 1px solid transparent;
  border-radius: 7px; color: var(--muted); background: transparent;
  font: 600 clamp(18px, 2.3vw, 28px)/1.15 var(--display); text-align: center; transition: color .18s ease, background-color .18s ease; }
.service-tab[aria-selected="true"] { color: var(--red-dark); border-color: #ddd6d1; background: white; box-shadow: 0 2px 5px #24242b10; }
.service-tab:hover { color: var(--red-dark); }
.service-panel { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr);
  background: white; border: 1px solid var(--line); box-shadow: var(--surface-shadow);
  border-radius: var(--radius); overflow: hidden; }
.service-photo { width: 100%; height: 100%; min-height: 330px; max-height: 490px; object-fit: cover; }
#panel-fresado .service-photo { object-position: 62% center; }
#panel-torneado .service-photo { object-position: 48% center; }
#panel-soldadura .service-photo { object-position: 48% center; }
.service-copy { align-self: center; padding: clamp(25px, 4vw, 53px); }
.service-copy > p { font-size: 16px; color: var(--muted); max-width: 47ch; }
.specs { margin: 21px 0 8px; }
.specs > div { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0;
  border-top: 1px solid var(--line); font-size: 14px; }
dt { color: var(--muted); }
dd { margin: 0; text-align: right; font-weight: 700; }
summary { min-height: 44px; padding: 11px 0; cursor: pointer; font-size: 15px; font-weight: 700; }
summary::marker { color: var(--red); }
.service-description { grid-column: 1 / -1; border-top: 1px solid var(--line); background: #faf9f7; }
.service-description > summary { padding-inline: clamp(20px, 4vw, 46px); }
.service-description > summary:hover { background: #f2eeea; }
.service-description-body { max-width: 86ch; padding: 10px clamp(20px, 4vw, 46px) 22px; font-size: 16px; }
.service-description-body h4 { font-size: 26px; line-height: 1.15; margin: 4px 0 13px; }
.service-description-body h5 { font-size: 16px; margin: 20px 0 8px; }
.service-description-body p, .service-description-body ul { margin: 0 0 12px; }
.service-description-body li + li { margin-top: 6px; }
.quality { background: linear-gradient(132deg, #26262e, #34343e); color: white; }
.quality-grid, .company-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(32px, 6vw, 88px); align-items: center; }
.quality h2 { max-width: 13ch; margin-bottom: 19px; }
.quality-grid > div:first-child > p:not(.eyebrow) { max-width: 44ch; color: #dddde0; }
.quality .eyebrow::before { background: #f1797d; }
.quality-points { list-style: none; margin: 23px 0 0; padding: 0; max-width: 46ch; font-size: 15px; }
.quality-points li { padding: 10px 0; border-top: 1px solid #5a5a63; }
.quality-points li::before { content: '+'; margin-right: 11px; color: #f1797d; font-weight: 700; }
.certificate { position: relative; padding: clamp(20px, 3vw, 36px); border-radius: var(--radius);
  background: white; color: var(--graphite); border-top: 4px solid var(--red); box-shadow: 0 14px 35px #14141c44; }
.certificate-heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 13px; }
.certificate-label { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.certificate-heading strong { display: block; margin-top: 4px; font: 600 clamp(36px, 4vw, 57px)/1 var(--display); }
.certificate-mark { display: inline-block; padding: 6px; border-radius: 4px; }
.certificate-mark:hover { box-shadow: 0 0 0 1px var(--line); }
.certificate-mark img { width: clamp(74px, 8vw, 109px); height: auto; }
.certificate > p { margin-bottom: 13px; font-size: 15px; color: var(--muted); }
.certificate details { border-block: 1px solid var(--line); }
.certificate details p { margin: 0 0 13px; font-size: 15px; }
.certificate-links { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 16px; margin-top: 15px; }
.certificate-links > a:not(.button) { display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; font-weight: 700; }
.certificate small { display: block; margin-top: 14px; font-size: 13px; line-height: 1.45; color: var(--muted); }
.gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.gallery figure { min-width: 0; margin: 0; background: white; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--surface-shadow); }
.gallery img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.gallery figcaption { padding: 8px 10px; font-size: 13px; font-weight: 600; line-height: 1.4; color: var(--muted); }
.company-copy h2 { margin-bottom: 19px; }
.company-copy > p:not(.eyebrow) { max-width: 47ch; color: var(--muted); }
.downloads { margin-top: 23px; padding-top: 18px; border-top: 1px solid var(--line); }
.downloads p { font-size: 15px; font-weight: 700; margin-bottom: 9px; }
.brochures { display: flex; flex-wrap: wrap; gap: 8px; }
.brochures a { display: inline-flex; align-items: center; min-height: 44px; padding: 6px 12px;
  border: 1px solid var(--line); border-radius: var(--radius); background: white; font-size: 14px; font-weight: 600; text-decoration: none; }
.brochures a:hover { color: var(--red-dark); border-color: var(--red); }
.contact { background: linear-gradient(120deg, #ad222c, #861922); color: white; padding-block: clamp(44px, 6vw, 82px); }
.contact-grid { display: grid; grid-template: "intro request" auto "map request" 1fr / minmax(0, .8fr) minmax(0, 1.2fr); gap: 22px clamp(22px, 6vw, 76px); align-items: start; }
.contact-intro { grid-area: intro; }
.contact h2 { margin-bottom: 15px; }
.contact p { margin: 0; max-width: 44ch; }
.contact-map { grid-area: map; overflow: hidden; border: 1px solid #ffffff70; border-radius: var(--radius); background: #00000026; }
.contact-map iframe { display: block; width: 100%; height: 310px; border: 0; }
.contact-request { grid-area: request; min-width: 0; }
.contact-form {
  display: grid; gap: clamp(14px, 2vw, 20px); width: 100%; min-width: 0; padding: clamp(18px, 3vw, 34px);
  border: 1px solid #ffffff80; border-radius: 14px; background: white; color: var(--graphite); box-shadow: 0 14px 36px #4d0d1a42;
}
.contact-form-title {
  display: flex; align-items: center; gap: 12px; margin: 0; padding-bottom: 15px;
  border-bottom: 1px solid #eee6e5; font-size: clamp(27px, 3vw, 37px); text-wrap: unset;
}
.contact-form-title::before { content: ''; flex: 0 0 4px; height: .83em; border-radius: 3px; background: var(--red); }
.contact-form p { margin: 0; max-width: none; min-width: 0; }
.contact-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px 16px; }
.contact-form label { display: block; margin-bottom: 5px; font-size: 15px; font-weight: 700; }
.contact-form input:not([type="hidden"]), .contact-form textarea {
  display: block; width: 100%; min-width: 0; min-height: 46px; padding: 9px 11px;
  border: 1px solid #c9c3c4; border-radius: 8px; color: var(--graphite); background: #fcfbfa; font: inherit;
}
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--red); background: white; }
.contact-form textarea { resize: vertical; }
.contact-upload-control { position: relative; padding: 12px; border: 1px dashed #c98f94; border-radius: 10px; background: #fcf3f3; }
.contact-upload-control:hover, .contact-upload-control:focus-within { border-color: var(--red-dark); background: #faeaea; }
.contact-upload-control:focus-within { outline: 2px solid var(--red-dark); outline-offset: 3px; }
.contact-upload-control .contact-upload-label { display: flex; align-items: center; gap: 12px; margin: 0; line-height: 1.3; cursor: pointer; }
.contact-upload-icon { display: grid; place-items: center; flex: 0 0 40px; height: 40px; border-radius: 9px; background: var(--red-dark); color: white; }
.contact-upload-icon svg { width: 23px; height: 23px; }
.contact-upload-label strong { display: block; color: var(--red-dark); font-size: 15px; }
.contact-upload-label small { display: block; margin-top: 3px; color: var(--muted); font-size: 13px; font-weight: 500; }
.contact-upload-control input[type="file"] { margin-top: 9px; }
.has-file-picker .contact-upload-control input[type="file"] { position: absolute; inset: 0; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.contact-upload-selection {
  margin-top: 6px; padding: 0 10px; border: 1px solid #eee6e5; border-radius: 8px; font-size: 14px;
}
.contact-upload-list { margin: 0; padding: 0; list-style: none; }
.contact-upload-item { display: flex; align-items: center; justify-content: space-between; gap: 8px 12px; min-height: 44px; }
.contact-upload-item + .contact-upload-item { border-top: 1px solid #eee6e5; }
.contact-upload-filename { min-width: 0; overflow-wrap: anywhere; font-weight: 600; }
.contact-upload-clear, .contact-upload-remove { min-height: 44px; padding: 0 2px; border: 0; background: none; color: var(--red-dark); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.contact-upload-remove { text-align: end; }
.contact-form .contact-upload-error { margin: 6px 0 0; }
.contact-form :focus-visible { outline-color: var(--red-dark); }
.contact-form-actions { display: flex; justify-content: flex-end; }
.contact-form-actions .button { min-width: min(194px, 100%); }
.contact-direct { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: 9px; }
.contact-direct > a { display: inline-flex; align-items: center; min-height: 44px; font-size: 16px; font-weight: 600; }
.contact-honeypot { position: absolute; left: -9999px; }
.contact-form .contact-notice { padding: 11px 13px; border: 1px solid #d9a6a9; border-radius: 6px; background: #f9ecee; color: #821b25; font-weight: 600; }
.contact-form .contact-notice-success { border-color: #a8c9b2; background: #edf7f0; color: #245334; }
footer { padding-top: clamp(30px, 4.2vw, 57px); background: white; }
.footer-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(18px, 3vw, 43px); padding-bottom: 28px; }
.footer-brand img { width: 171px; height: auto; }
.footer-brand p { margin: 9px 0 0; color: var(--muted); font-size: 14px; }
footer address { font: normal 15px/1.65 var(--body); }
.footer-links { display: flex; flex-direction: column; align-items: start; gap: 7px; font-size: 14px; }
.footer-links a:hover, .footer-bottom a:hover { color: var(--red-dark); }










.footer-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 4px 18px;
  padding-block: 12px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.footer-bottom nav { display: flex; flex-wrap: wrap; gap: 0 17px; }
.footer-bottom nav a { display: inline-flex; align-items: center; min-height: 44px; }
.legal-dialog { width: min(730px, calc(100% - 28px)); max-height: 86dvh; padding: 0; border: 1px solid var(--line);
  border-radius: var(--radius); color: var(--graphite); background: white; }
.legal-dialog::backdrop { background: #24242bbd; }
.legal-dialog-header { position: sticky; z-index: 1; top: 0; display: flex; justify-content: space-between; align-items: center;
  gap: 12px; padding: 13px 20px; border-bottom: 1px solid var(--line); background: white; }
.legal-dialog-header h2 { margin: 0; font-size: clamp(24px, 4vw, 34px); }
.legal-dialog-header form { margin: 0; }
.legal-dialog-header button { min-height: 44px; padding: 7px 12px; border: 1px solid var(--line);
  border-radius: var(--radius); background: var(--paper); color: inherit; }
.legal-content { padding: 18px 22px; font-size: 16px; }
.legal-content h3 { font-size: 25px; margin: 22px 0 8px; }
.legal-content h3:first-child { margin-top: 0; }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .hero-image img { transition: transform .7s ease; }
  .hero-image:hover img { transform: scale(1.025); }
  .gallery img { transition: filter .25s ease; }
  .gallery figure:hover img { filter: contrast(1.06); }
}
@media (prefers-reduced-motion: no-preference) {
  .service-panel:not([hidden]), .service-description[open] .service-description-body, .legal-dialog[open] {
    animation: appear .22s ease-out;
  }
  @keyframes appear { from { opacity: .55; } to { opacity: 1; } }
}
@media (max-width: 1020px) {
  :root { --anchor-offset: 82px; }
  html { scrollbar-gutter: stable; }
  html.relms-menu-open { overflow: hidden; }
  .header-inner { min-height: 66px; padding-block: 8px; flex-wrap: wrap; gap: 8px 13px; }
  .header-cta { display: none; }
  .header-inner:not(.has-menu) #navigation { order: 1; width: 100%; flex-wrap: wrap; }
  .has-menu .menu-button {
    position: relative; z-index: 3; display: inline-flex; align-items: center; gap: 9px;
    border-color: #e5d6d5; background: #fbf5f4; color: var(--red-dark);
  }
  .menu-button span { display: inline-block; font-size: 20px; line-height: 1; transition: transform .22s ease; }
  .menu-button[aria-expanded="true"] { border-color: #ffffff80; background: #72121b; color: white; }
  .menu-button[aria-expanded="true"]:focus-visible { outline-color: white; }
  .menu-button[aria-expanded="true"] span { transform: rotate(45deg); }
  .has-menu #navigation, .has-menu .menu-scrim {
    position: fixed; inset-block: 0; visibility: hidden; pointer-events: none;
  }
  .has-menu .menu-scrim {
    z-index: 1; display: block; inset-inline: 0; background: #20191e50; opacity: 0; touch-action: none;
    transition: opacity .26s ease, visibility 0s linear .26s;
  }
  .has-menu .menu-scrim.open { visibility: visible; pointer-events: auto; opacity: 1; transition-delay: 0s; }
  .has-menu #navigation {
    z-index: 2; right: 0; width: min(87%, 410px);
    display: flex; flex-direction: column; align-items: stretch; gap: 0;
    padding: calc(80px + env(safe-area-inset-top, 0px)) clamp(22px, 6vw, 39px) max(24px, env(safe-area-inset-bottom, 0px));
    overflow-y: auto; overscroll-behavior: contain;
    color: white; background: linear-gradient(155deg, #851521b8, #a01626a6);
    -webkit-backdrop-filter: blur(9px); backdrop-filter: blur(9px);
    box-shadow: -12px 0 46px #29081242;
    transform: translateX(100%);
    transition: transform .28s cubic-bezier(.2,.7,.25,1), visibility 0s linear .28s;
  }
  .admin-bar .has-menu #navigation { padding-top: calc(80px + var(--wp-admin--admin-bar--height, 32px)); }
  .has-menu #navigation.open { visibility: visible; pointer-events: auto; transform: translateX(0); transition-delay: 0s; }
  .has-menu #navigation a {
    display: flex; align-items: center; flex: none; min-height: 61px; padding: 10px 2px;
    border-bottom: 1px solid #ffffff57; font: 600 clamp(26px, 7vw, 34px)/1.1 var(--display);
  }
  .has-menu #navigation a:hover { color: white; }
  .has-menu #navigation a:focus-visible { outline-color: white; outline-offset: 2px; }
}
@media (max-width: 760px) {
  .hero-grid { display: flex; flex-direction: column; min-height: auto; }
  .hero-copy { align-self: stretch; padding: clamp(30px, 6vw, 46px) 0 24px; }
  h1 { max-width: 17ch; font-size: clamp(42px, 9.1vw, 67px); }
  .hero-copy h1 { margin-bottom: 17px; }
  .hero-copy > p:not(.eyebrow) { margin-bottom: 17px; }
  .hero-links { gap: 2px 14px; }
  .hero-image { min-height: 0; margin-inline: calc(-1 * var(--gutter)); aspect-ratio: 1.64; }
  .hero-image > img { object-position: center 55%; }
  .hero-image .corner { left: var(--gutter); width: 38px; height: 38px; }
  .image-caption { bottom: 17px; left: var(--gutter); font-size: 13px; }
  .section-head { display: block; margin-bottom: 20px; }
  .section-head > p { margin-top: 11px; }
  .service-panel, .quality-grid, .company-grid { grid-template-columns: minmax(0, 1fr); }
  .service-photo { height: auto; min-height: 0; max-height: 360px; aspect-ratio: 1.67; }
  .company-copy { order: -1; }
  .contact-grid { grid-template: "intro" "request" "map" / minmax(0, 1fr); }
  .contact-map iframe { height: clamp(200px, 55vw, 280px); }
  .footer-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); }
  .footer-links { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; gap: 8px 16px; }
}
@media (max-width: 465px) {
  .eyebrow { font-size: 11px; letter-spacing: .085em; }
  .header-inner { gap: 7px; }
  .brand img { width: clamp(108px, 31vw, 130px); }
  .language-picker > summary { gap: 6px; padding-inline: 8px; }
  .language-code { display: inline; font-size: 12px; }
  .language-picker .language-name { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .has-menu .menu-button { padding-inline: 10px; gap: 5px; }
  .service-tab { padding-inline: 4px; font-size: clamp(16px, 4.3vw, 20px); overflow-wrap: anywhere; }
  .contact-form-grid { grid-template-columns: minmax(0, 1fr); }
  .contact-form .button { width: 100%; }
  .certificate-heading { flex-wrap: nowrap; align-items: start; }
  .certificate-label { font-size: 11px; }
  .certificate-heading strong { font-size: clamp(30px, 8.3vw, 36px); }
  .certificate-mark img { width: 62px; }
}
@media (max-width: 350px) {
  .header-inner { gap: 5px; }
  .brand img { width: 96px; }
  .has-menu .menu-button { padding-inline: 8px; }
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button, .service-tab, .menu-button span, .has-menu #navigation, .has-menu .menu-scrim { transition: none; }
}
  
.facts { padding: 22px 0; background: var(--paper); border-bottom: 1px solid var(--line); }
.fact-grid { display: grid; grid-template-columns: 1fr 1.28fr 1.12fr; gap: 12px; }
.fact { min-width: 0; padding: clamp(17px, 2vw, 26px); border: 1px solid var(--line);
  border-top: 3px solid var(--red); border-radius: var(--radius); background: white; box-shadow: var(--surface-shadow); }
.fact-label { display: block; margin-bottom: 8px; color: var(--muted); font-size: 12px;
  font-weight: 700; line-height: 1.35; letter-spacing: .045em; }
.fact-value { display: block; font: 600 clamp(35px, 4.7vw, 60px)/.98 var(--display);
  letter-spacing: -.015em; color: var(--graphite); }
.fact p { margin: 7px 0 0; color: var(--muted); font-size: 14px; line-height: 1.4; }
.fact-machines { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.fact-machines > div + div { border-left: 1px solid var(--line); padding-left: 12px; }
.fact-machines > div:last-child .fact-value { color: var(--red); }
.fact-quality { display: flex; align-items: center; justify-content: space-between; gap: 12px; text-decoration: none; }
.fact-quality .fact-value { font-size: clamp(29px, 3.65vw, 51px); }
.fact-quality img { width: clamp(44px, 5.2vw, 72px); height: auto; flex-shrink: 0; }
.fact-quality:hover .fact-value { color: var(--red-dark); }
.footer-grants { padding-block: clamp(24px, 3vw, 40px); border-top: 1px solid var(--line); }
.footer-grants h2 { margin: 0 0 15px; font-size: 27px; }
.grant-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.grant-card { display: flex; flex-direction: column; gap: 15px; min-width: 0;
  padding: clamp(15px, 2vw, 23px); border: 1px solid var(--line);
  border-radius: var(--radius); background: var(--paper); }
.grant-copy h3 { margin: 0 0 7px; font-size: 23px; }
.grant-copy p { margin: 0; font-size: 14px; color: var(--muted); }
.grant-media { flex: 1; display: grid; place-items: center; padding: 12px;
  background: white; border: 1px solid var(--line); border-radius: 4px; }
.grant-media img { display: block; width: 100%; height: auto; object-fit: contain; }
.grant-media-ivace img { max-width: 270px; }
.grant-media-solar img { max-width: 330px; }
@media (max-width: 760px) {
  .fact-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fact-quality { grid-column: 1 / -1; }
}
@media (max-width: 490px) {
  .fact-grid, .grant-grid { grid-template-columns: minmax(0, 1fr); gap: 9px; }
  .fact { padding: 15px 17px; }
  .fact-value { font-size: 41px; }
  .fact-quality .fact-value { font-size: 34px; }
  .grant-media { padding: 9px; }
}

body.admin-bar > .wp-site-blocks header { top: var(--wp-admin--admin-bar--height, 32px); }
.relms-interior .section { padding-top: clamp(30px, 6vw, 80px); }
.relms-interior > .wp-block-heading { margin-bottom: 25px; }
.relms-legacy > .wp-block-heading { max-width: 19ch; margin-bottom: clamp(24px, 4vw, 44px); }
.relms-legacy .wp-block-post-content { max-width: 80ch; }
.relms-legacy .wp-block-post-content h2 { margin-block: 1.15em .45em; font-size: clamp(27px, 3.2vw, 43px); }
