/* Benettexpo — contact form integrations (Contact Form 7) and form slot layout */

/* ---------------------------------------------------------
   Form slot (contact section)
   --------------------------------------------------------- */
.benettexpo-form-slot {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  justify-content: center;
}

.benettexpo-form-slot__inner {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.benettexpo-form-slot .benettexpo-form-note {
  margin: 0;
  color: var(--wp--preset--color--muted);
}

/* ---------------------------------------------------------
   Contact Form 7 — layout
   --------------------------------------------------------- */
.benettexpo-form-slot .wpcf7 form,
.benettexpo-contact-form form {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.15rem;
}

.benettexpo-form-slot .wpcf7 form p,
.benettexpo-contact-form form p {
  margin: 0;
}

.benettexpo-form-slot .wpcf7 .wpcf7-form-control-wrap,
.benettexpo-contact-form .wpcf7-form-control-wrap {
  display: block;
  width: 100%;
}

.benettexpo-form-slot .wpcf7 label,
.benettexpo-contact-form label {
  display: block;
  margin: 0 0 .45rem;
  color: var(--wp--preset--color--muted);
  font-family: var(--wp--preset--font-family--modern-sans);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .07em;
  line-height: 1.5;
  text-transform: uppercase;
}

/* ---------------------------------------------------------
   Contact Form 7 — fields
   --------------------------------------------------------- */
.benettexpo-form-slot .wpcf7 input[type="text"],
.benettexpo-form-slot .wpcf7 input[type="email"],
.benettexpo-form-slot .wpcf7 input[type="tel"],
.benettexpo-form-slot .wpcf7 input[type="url"],
.benettexpo-form-slot .wpcf7 input[type="number"],
.benettexpo-form-slot .wpcf7 input[type="date"],
.benettexpo-form-slot .wpcf7 textarea,
.benettexpo-form-slot .wpcf7 select,
.benettexpo-contact-form input[type="text"],
.benettexpo-contact-form input[type="email"],
.benettexpo-contact-form input[type="tel"],
.benettexpo-contact-form textarea,
.benettexpo-contact-form select {
  width: 100%;
  padding: .95rem 1.05rem;
  border: 1px solid var(--wp--preset--color--line);
  border-radius: 0;
  background: var(--wp--preset--color--paper);
  color: var(--wp--preset--color--ink);
  font-family: var(--wp--preset--font-family--modern-sans);
  font-size: 1rem;
  line-height: 1.5;
  transition: border-color var(--benettexpo-transition-fast), box-shadow var(--benettexpo-transition-fast);
}

.benettexpo-form-slot .wpcf7 textarea,
.benettexpo-contact-form textarea {
  min-height: 150px;
  resize: vertical;
}

.benettexpo-form-slot .wpcf7 input:focus,
.benettexpo-form-slot .wpcf7 textarea:focus,
.benettexpo-form-slot .wpcf7 select:focus,
.benettexpo-contact-form input:focus,
.benettexpo-contact-form textarea:focus,
.benettexpo-contact-form select:focus {
  border-color: var(--wp--preset--color--forest);
  box-shadow: 0 6px 18px rgba(17, 19, 18, .08);
  outline: none;
}

.benettexpo-form-slot .wpcf7 input::placeholder,
.benettexpo-contact-form input::placeholder,
.benettexpo-form-slot .wpcf7 textarea::placeholder,
.benettexpo-contact-form textarea::placeholder {
  color: rgba(91, 97, 92, .65);
}

/* Acceptance / checkbox rows */
.benettexpo-form-slot .wpcf7 .wpcf7-acceptance,
.benettexpo-contact-form .wpcf7-acceptance {
  display: flex;
  gap: .7rem;
  align-items: flex-start;
}

.benettexpo-form-slot .wpcf7 .wpcf7-acceptance label,
.benettexpo-contact-form .wpcf7-acceptance label {
  margin: 0;
  font-size: .82rem;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.65;
  text-transform: none;
}

.benettexpo-form-slot .wpcf7 input[type="checkbox"],
.benettexpo-contact-form input[type="checkbox"] {
  flex: 0 0 auto;
  width: 1.15rem;
  height: 1.15rem;
  margin-top: .18rem;
  accent-color: var(--wp--preset--color--forest);
}

/* ---------------------------------------------------------
   Contact Form 7 — submit button (matches theme buttons)
   --------------------------------------------------------- */
.benettexpo-form-slot .wpcf7 input[type="submit"],
.benettexpo-contact-form input[type="submit"] {
  display: inline-flex;
  gap: 1.2rem;
  align-items: center;
  justify-content: space-between;
  width: auto;
  padding: 1.05rem 1.9rem;
  border: 0;
  border-radius: 0;
  background: var(--wp--preset--color--forest);
  color: var(--wp--preset--color--paper);
  font-family: var(--wp--preset--font-family--modern-sans);
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .09em;
  line-height: 1;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform var(--benettexpo-transition-fast), box-shadow var(--benettexpo-transition-fast), background-color var(--benettexpo-transition-fast);
}

.benettexpo-form-slot .wpcf7 input[type="submit"]::after,
.benettexpo-contact-form input[type="submit"]::after {
  content: "";
  flex: 0 0 auto;
  width: 1.05em;
  height: 1.05em;
  background-color: currentColor;
  -webkit-mask-image: var(--benettexpo-arrow-up-right);
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  -webkit-mask-size: contain;
  mask-image: var(--benettexpo-arrow-up-right);
  mask-repeat: no-repeat;
  mask-position: center;
  mask-size: contain;
  transition: transform var(--benettexpo-transition-fast);
}

.benettexpo-form-slot .wpcf7 input[type="submit"]:hover,
.benettexpo-form-slot .wpcf7 input[type="submit"]:focus-visible,
.benettexpo-contact-form input[type="submit"]:hover,
.benettexpo-contact-form input[type="submit"]:focus-visible {
  box-shadow: 0 9px 24px rgba(17, 19, 18, .16);
  transform: translateY(-2px);
}

.benettexpo-form-slot .wpcf7 input[type="submit"]:hover::after,
.benettexpo-contact-form input[type="submit"]:hover::after {
  transform: translate(3px, -3px);
}

.benettexpo-form-slot .wpcf7 input[type="submit"]:active,
.benettexpo-contact-form input[type="submit"]:active {
  transform: translateY(0) scale(.985);
}

.benettexpo-form-slot .wpcf7 input.wpcf7-form-control[disabled],
.benettexpo-contact-form input.wpcf7-form-control[disabled] {
  cursor: not-allowed;
  opacity: .65;
}

.wpcf7-spinner {
  margin-left: .75rem;
  vertical-align: middle;
}

/* ---------------------------------------------------------
   Contact Form 7 — validation and response messages
   --------------------------------------------------------- */
.wpcf7-not-valid-tip {
  display: block;
  margin-top: .35rem;
  color: #a1433a;
  font-family: var(--wp--preset--font-family--modern-sans);
  font-size: .82rem;
  line-height: 1.5;
}

.wpcf7 form .wpcf7-response-output {
  margin: 0;
  padding: .95rem 1.15rem;
  border: 1px solid var(--wp--preset--color--line);
  border-left-width: 3px;
  background: var(--wp--preset--color--paper);
  font-family: var(--wp--preset--font-family--modern-sans);
  font-size: .92rem;
  line-height: 1.6;
}

.wpcf7 form.sent .wpcf7-response-output {
  border-color: var(--wp--preset--color--forest);
  color: var(--wp--preset--color--forest);
}

.wpcf7 form.failed .wpcf7-response-output,
.wpcf7 form.aborted .wpcf7-response-output,
.wpcf7 form.spam .wpcf7-response-output {
  border-color: #a1433a;
  color: #a1433a;
}

.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.unaccepted .wpcf7-response-output {
  border-color: var(--wp--preset--color--accent);
  color: var(--wp--preset--color--ink);
}

.screen-reader-response {
  position: absolute;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  word-wrap: normal !important;
}

/* ---------------------------------------------------------
   Fallback (no form plugin configured yet)
   --------------------------------------------------------- */
.benettexpo-form-fallback {
  display: grid;
  gap: 1rem;
}

.benettexpo-form-fallback p {
  margin: 0;
}

.benettexpo-form-fallback__link {
  color: var(--wp--preset--color--forest);
  font-family: var(--wp--preset--font-family--editorial-serif);
  font-size: clamp(1.35rem, 2.4vw, 1.9rem);
}

.benettexpo-form-fallback__admin {
  padding: .85rem 1.05rem;
  border: 1px dashed var(--wp--preset--color--line);
  color: var(--wp--preset--color--muted);
  font-size: .85rem;
}

/* ---------------------------------------------------------
   Service page closing CTA
   --------------------------------------------------------- */
.benettexpo-service-cta {
  background: var(--wp--preset--color--forest);
  color: var(--wp--preset--color--paper);
}

.benettexpo-service-cta__inner {
  display: flex;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: flex-end;
  justify-content: space-between;
  width: min(var(--wp--style--global--wide-size, 1480px), 100% - 2 * clamp(1rem, 2.5vw, 2.5rem));
  margin-inline: auto;
  padding-block: clamp(3.5rem, 7vw, 6.5rem);
}

.benettexpo-service-cta__copy {
  max-width: 46rem;
}

.benettexpo-service-cta .benettexpo-eyebrow {
  color: rgba(255, 255, 255, .62);
}

.benettexpo-service-cta h2 {
  margin: 0 0 1.15rem;
  color: var(--wp--preset--color--paper);
  font-family: var(--wp--preset--font-family--editorial-serif);
  font-size: clamp(1.9rem, 3.4vw, 3.1rem);
  font-weight: 400;
  letter-spacing: -.015em;
  line-height: 1.12;
}

.benettexpo-service-cta__copy > p:not(.benettexpo-eyebrow) {
  margin: 0 0 2rem;
  color: rgba(255, 255, 255, .82);
  font-size: 1.05rem;
  line-height: 1.75;
}

.benettexpo-service-cta .wp-block-button__link {
  background: var(--wp--preset--color--paper);
  color: var(--wp--preset--color--forest);
}

.benettexpo-service-cta .benettexpo-text-link {
  flex: 0 0 auto;
  margin: 0 0 .55rem;
}

.benettexpo-service-cta .benettexpo-text-link a {
  color: rgba(255, 255, 255, .85);
}

@media (max-width: 860px) {
  .benettexpo-service-cta__inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  .benettexpo-form-slot .wpcf7 input[type="submit"],
  .benettexpo-contact-form input[type="submit"] {
    transition: none;
  }
}

/* ============================================================
   9.9.8 — Layout corrections & contact form design
   ============================================================ */

/* Footer: drop the decorative wordmark under the bottom bar */
.benettexpo-footer::after {
  display: none;
  content: none;
}

/* Full-bleed sections stack flush: no canvas-coloured gaps between blocks */
.benettexpo-main > * + *,
.benettexpo-main .wp-block-post-content > * + *,
.benettexpo-editorial-main > * + * {
  margin-top: 0 !important;
}

/* Archive heroes sit inside the same container as filters and listings.
 * Inset equals the content-page grid (root padding + shell padding). */
.benettexpo-project-archive,
.benettexpo-service-archive {
  padding-inline: 0 !important;
}
.benettexpo-project-archive__hero,
.benettexpo-project-archive__filters,
.benettexpo-project-archive__content,
.benettexpo-service-archive-hero,
.benettexpo-service-archive-list {
  box-sizing: border-box;
  width: min(
    calc(100% - 2 * (var(--wp--style--root--padding, 20px) + var(--benettexpo-shell-pad, clamp(16px, 2.5vw, 40px)))),
    var(--wp--style--global--wide-size, 1600px)
  ) !important;
  max-width: var(--wp--style--global--wide-size, 1600px) !important;
  margin-inline: auto !important;
  padding-inline: 0 !important;
}

.benettexpo-project-archive__hero > *,
.benettexpo-service-archive-hero > * {
  margin-inline-start: 0 !important;
  margin-inline-end: 0 !important;
}

/* Contact form — polished layout (2-column rhythm, design-system controls) */
.benettexpo-form-slot .wpcf7 form,
.benettexpo-contact-form form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px 24px;
}
.benettexpo-form-slot .wpcf7 form p,
.benettexpo-contact-form form p { margin: 0; min-width: 0; }
/* full-width rows: event, message, consent, submit */
.benettexpo-form-slot .wpcf7 form p:has(.wpcf7-textarea),
.benettexpo-form-slot .wpcf7 form p:has(.wpcf7-acceptance),
.benettexpo-form-slot .wpcf7 form p:has(.wpcf7-submit),
.benettexpo-contact-form form p:has(textarea),
.benettexpo-contact-form form p:has(.wpcf7-acceptance),
.benettexpo-contact-form form p:has(.wpcf7-submit) { grid-column: 1 / -1; }

.benettexpo-form-slot .wpcf7 label,
.benettexpo-contact-form label {
  display: block;
  margin: 0 0 10px;
  color: #6a736e;
  font-family: var(--wp--preset--font-family--modern-sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  line-height: 1.4;
  text-transform: uppercase;
}

.benettexpo-form-slot .wpcf7 input[type="text"],
.benettexpo-form-slot .wpcf7 input[type="email"],
.benettexpo-form-slot .wpcf7 input[type="tel"],
.benettexpo-form-slot .wpcf7 input[type="url"],
.benettexpo-form-slot .wpcf7 input[type="number"],
.benettexpo-form-slot .wpcf7 input[type="date"],
.benettexpo-form-slot .wpcf7 select,
.benettexpo-contact-form input[type="text"],
.benettexpo-contact-form input[type="email"],
.benettexpo-contact-form input[type="tel"],
.benettexpo-contact-form select {
  box-sizing: border-box;
  width: 100%;
  height: 54px;
  padding: 0 18px;
  border: 1px solid var(--wp--preset--color--line);
  border-radius: 0;
  background: var(--wp--preset--color--paper);
  color: var(--wp--preset--color--ink);
  font-family: var(--wp--preset--font-family--modern-sans);
  font-size: 15px;
  transition: border-color .25s, box-shadow .25s;
}
.benettexpo-form-slot .wpcf7 textarea,
.benettexpo-contact-form textarea {
  box-sizing: border-box;
  width: 100%;
  min-height: 168px;
  padding: 15px 18px;
  border: 1px solid var(--wp--preset--color--line);
  border-radius: 0;
  background: var(--wp--preset--color--paper);
  color: var(--wp--preset--color--ink);
  font-family: var(--wp--preset--font-family--modern-sans);
  font-size: 15px;
  line-height: 1.6;
  resize: vertical;
  transition: border-color .25s, box-shadow .25s;
}
.benettexpo-form-slot .wpcf7 input:focus,
.benettexpo-form-slot .wpcf7 textarea:focus,
.benettexpo-form-slot .wpcf7 select:focus,
.benettexpo-contact-form input:focus,
.benettexpo-contact-form textarea:focus,
.benettexpo-contact-form select:focus {
  border-color: var(--wp--preset--color--forest);
  box-shadow: 0 8px 22px rgba(17, 19, 18, .08);
  outline: none;
}

/* consent */
.benettexpo-form-slot .wpcf7 .wpcf7-acceptance,
.benettexpo-contact-form .wpcf7-acceptance {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-top: 2px;
}
.benettexpo-form-slot .wpcf7 .wpcf7-acceptance input[type="checkbox"],
.benettexpo-contact-form .wpcf7-acceptance input[type="checkbox"] {
  flex: 0 0 auto;
  appearance: none;
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  margin: 1px 0 0;
  border: 1px solid var(--wp--preset--color--ink);
  border-radius: 0;
  background: var(--wp--preset--color--paper);
  cursor: pointer;
  transition: background .25s, border-color .25s;
}
.benettexpo-form-slot .wpcf7 .wpcf7-acceptance input[type="checkbox"]:checked,
.benettexpo-contact-form .wpcf7-acceptance input[type="checkbox"]:checked {
  border-color: var(--wp--preset--color--forest);
  background: var(--wp--preset--color--forest)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath fill='none' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='2.4' d='M5 10.5l3.2 3.2L15 7'/%3E%3C/svg%3E")
    center / 14px no-repeat;
}
.benettexpo-form-slot .wpcf7 .wpcf7-acceptance label,
.benettexpo-contact-form .wpcf7-acceptance label {
  margin: 0;
  color: var(--wp--preset--color--muted);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.6;
  text-transform: none;
  cursor: pointer;
}

/* submit */
.benettexpo-form-slot .wpcf7 input[type="submit"],
.benettexpo-contact-form input[type="submit"] {
  display: inline-flex;
  gap: 1.2rem;
  align-items: center;
  justify-content: space-between;
  box-sizing: border-box;
  width: 100%;
  height: 58px;
  margin-top: 8px;
  padding: 0 26px;
  border: 0;
  border-radius: 0;
  background: var(--wp--preset--color--forest);
  color: var(--wp--preset--color--paper);
  font-family: var(--wp--preset--font-family--modern-sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  line-height: 1;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform .25s cubic-bezier(.2,.7,.2,1), box-shadow .25s, background-color .25s;
}
.benettexpo-form-slot .wpcf7 input[type="submit"]::after,
.benettexpo-contact-form input[type="submit"]::after {
  content: "";
  flex: 0 0 auto;
  width: 1.15em;
  height: 1.15em;
  background-color: currentColor;
  -webkit-mask-image: var(--benettexpo-arrow-up-right);
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  -webkit-mask-size: contain;
  mask-image: var(--benettexpo-arrow-up-right);
  mask-repeat: no-repeat;
  mask-position: center;
  mask-size: contain;
  transition: transform .25s;
}
.benettexpo-form-slot .wpcf7 input[type="submit"]:hover,
.benettexpo-form-slot .wpcf7 input[type="submit"]:focus-visible {
  box-shadow: 0 14px 30px rgba(17, 19, 18, .18);
  transform: translateY(-2px);
}
.benettexpo-form-slot .wpcf7 input[type="submit"]:hover::after { transform: translate(3px, -3px); }
.benettexpo-form-slot .wpcf7 input[type="submit"]:active { transform: translateY(0) scale(.99); }

@media (max-width: 720px) {
  .benettexpo-form-slot .wpcf7 form,
  .benettexpo-contact-form form { grid-template-columns: 1fr; }
}

/* Inner-page building blocks (process page & friends) */
.benettexpo-page-hero {
  width: min(calc(100% - 2 * var(--benettexpo-shell-pad, clamp(16px,2.5vw,40px))), var(--benettexpo-prototype-wrap, 1600px));
  max-width: var(--benettexpo-prototype-wrap, 1600px);
  margin-inline: auto;
}
.benettexpo-page-hero h1 {
  max-width: 14ch;
  margin: 22px 0 0;
  color: var(--wp--preset--color--ink);
  font-family: var(--wp--preset--font-family--editorial-serif);
  font-size: clamp(42px, 5.6vw, 78px);
  font-weight: 400;
  letter-spacing: -.015em;
  line-height: 1.05;
}
.benettexpo-page-hero > p:not(.benettexpo-eyebrow) {
  max-width: 620px;
  margin: 26px 0 0;
  color: var(--wp--preset--color--muted);
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.65;
}

.benettexpo-page-split {
  display: grid;
  width: min(calc(100% - 2 * var(--benettexpo-shell-pad, clamp(16px,2.5vw,40px))), var(--benettexpo-prototype-wrap, 1600px));
  max-width: var(--benettexpo-prototype-wrap, 1600px);
  margin-inline: auto;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}
.benettexpo-page-split figure { margin: 0; }
.benettexpo-page-split figure img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.benettexpo-page-split h2 {
  max-width: 12ch;
  margin: 22px 0 0;
  color: var(--wp--preset--color--ink);
  font-family: var(--wp--preset--font-family--editorial-serif);
  font-size: clamp(32px, 3.6vw, 52px);
  font-weight: 400;
  letter-spacing: -.012em;
  line-height: 1.12;
}
.benettexpo-page-split p:not(.benettexpo-eyebrow) {
  max-width: 52ch;
  margin: 20px 0 0;
  color: var(--wp--preset--color--muted);
  font-size: 16px;
  line-height: 1.75;
}

.benettexpo-page-gallery {
  display: grid;
  width: min(calc(100% - 2 * var(--benettexpo-shell-pad, clamp(16px,2.5vw,40px))), var(--benettexpo-prototype-wrap, 1600px));
  max-width: var(--benettexpo-prototype-wrap, 1600px);
  margin-inline: auto;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 40px);
}
.benettexpo-page-gallery figure { margin: 0; min-width: 0; }
.benettexpo-page-gallery figure img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}
.benettexpo-page-gallery figcaption {
  margin: 14px 0 0;
  color: var(--wp--preset--color--muted);
  font-size: 13px;
  line-height: 1.6;
}

@media (max-width: 860px) {
  .benettexpo-page-split { grid-template-columns: 1fr; }
  .benettexpo-page-gallery { grid-template-columns: 1fr; }
}

/* ============================================================
   9.9.9 — Buttons on dark fills, back-to-top, contact page
   ============================================================ */

/* Text on dark fills is always light (the old rule referenced a
   non-existent "ivory" preset, so the dark-on-dark text stayed). */
.benettexpo-project-pagination .page-numbers.current,
.benettexpo-project-pagination a:hover,
.benettexpo-project-pagination a:focus-visible {
  color: var(--wp--preset--color--paper) !important;
}

/* The shared button hover fills with ink — keep the text light there. */
.wp-element-button:hover,
.wp-block-button__link:hover,
.wp-element-button:focus-visible,
.wp-block-button__link:focus-visible {
  color: var(--benettexpo-light, var(--wp--preset--color--paper));
}

/* Back to top ---------------------------------------------------------- */
.benettexpo-back-to-top {
  position: fixed;
  z-index: 1200;
  right: max(var(--benettexpo-shell-pad, 20px), env(safe-area-inset-right));
  bottom: max(var(--benettexpo-shell-pad, 20px), env(safe-area-inset-bottom));
  display: inline-flex;
  gap: 12px;
  align-items: center;
  height: 52px;
  padding: 0 22px;
  border: 1px solid var(--wp--preset--color--forest);
  background: var(--wp--preset--color--forest);
  color: var(--wp--preset--color--paper);
  font-family: var(--wp--preset--font-family--modern-sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px);
  transition: opacity .35s, transform .35s, visibility .35s, background-color .3s, color .3s;
}
.benettexpo-back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.benettexpo-back-to-top::after {
  content: "";
  width: 14px;
  height: 14px;
  background-color: currentColor;
  transform: rotate(-45deg);
  -webkit-mask-image: var(--benettexpo-arrow-up-right);
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  -webkit-mask-size: contain;
  mask-image: var(--benettexpo-arrow-up-right);
  mask-repeat: no-repeat;
  mask-position: center;
  mask-size: contain;
}
.benettexpo-back-to-top:hover,
.benettexpo-back-to-top:focus-visible {
  background: var(--wp--preset--color--ink);
  border-color: var(--wp--preset--color--ink);
  color: var(--wp--preset--color--paper);
}
@media (max-width: 1080px) {
  .benettexpo-back-to-top { bottom: 96px; height: 46px; padding: 0 16px; }
}

/* Contact page --------------------------------------------------------- */
.benettexpo-contact-details dl {
  display: grid;
  gap: 22px;
  margin: 28px 0 0;
}
.benettexpo-contact-details dt {
  color: rgba(246, 248, 247, .55);
  font-family: var(--wp--preset--font-family--modern-sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.benettexpo-contact-details dd {
  margin: 6px 0 0;
  color: var(--benettexpo-light, var(--wp--preset--color--paper));
  font-family: var(--wp--preset--font-family--editorial-serif);
  font-size: clamp(20px, 2vw, 26px);
  line-height: 1.25;
}
.benettexpo-contact-details dd a { color: inherit; text-decoration: none; }
.benettexpo-contact-details dd a:hover { color: var(--benettexpo-brass, var(--wp--preset--color--accent)); }

.benettexpo-page-steps {
  display: grid;
  width: min(calc(100% - 2 * var(--benettexpo-shell-pad, clamp(16px,2.5vw,40px))), var(--benettexpo-prototype-wrap, 1600px));
  max-width: var(--benettexpo-prototype-wrap, 1600px);
  margin-inline: auto;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--wp--preset--color--line);
}
.benettexpo-page-steps__item {
  padding: 34px 28px 34px 0;
  border-right: 1px solid var(--wp--preset--color--line);
}
.benettexpo-page-steps__item:last-child { border-right: 0; padding-right: 0; }
.benettexpo-page-steps__item:not(:first-child) { padding-left: 28px; }
.benettexpo-page-steps__num {
  margin: 0 0 14px;
  color: var(--wp--preset--color--muted);
  font-family: var(--wp--preset--font-family--editorial-serif);
  font-size: clamp(30px, 3vw, 44px);
  font-weight: 300;
  line-height: 1;
}
.benettexpo-page-steps__item h3 {
  margin: 0 0 10px;
  color: var(--wp--preset--color--ink);
  font-family: var(--wp--preset--font-family--modern-sans);
  font-size: 18px;
  font-weight: 600;
}
.benettexpo-page-steps__item p {
  margin: 0;
  color: var(--wp--preset--color--muted);
  font-size: 15px;
  line-height: 1.6;
}
@media (max-width: 860px) {
  .benettexpo-page-steps { grid-template-columns: 1fr; }
  .benettexpo-page-steps__item { border-right: 0; border-bottom: 1px solid var(--wp--preset--color--line); padding: 28px 0; }
  .benettexpo-page-steps__item:not(:first-child) { padding-left: 0; }
}

/* ============================================================
   9.9.10 — Unified headings, hero contain, hover steps,
   form polish, arrow icons, icon-only back-to-top
   ============================================================ */

/* --- Unified section heading scale (one rhythm site-wide) --- */
.benettexpo-services-layout .benettexpo-section-intro h2,
.benettexpo-services h2,
.benettexpo-featured-projects h2,
.benettexpo-featured-projects__title h2,
.benettexpo-process-intro h2,
.benettexpo-trust-intro h2,
.benettexpo-faq-intro h2,
.benettexpo-contact h2,
.benettexpo-page-split h2,
.benettexpo-page-steps-intro h2,
.benettexpo-page-hero h1,
.benettexpo-service-cta h2 {
  margin: 22px 0 0 !important;
  margin-inline-start: 0 !important;
  color: inherit;
  font-family: var(--wp--preset--font-family--editorial-serif);
  font-size: clamp(38px, 4vw, 62px) !important;
  font-weight: 400;
  letter-spacing: -.015em;
  line-height: 1.06 !important;
}
.benettexpo-services .benettexpo-section-intro h2,
.benettexpo-featured-projects h2,
.benettexpo-featured-projects__title h2 {
  max-width: min(100%, 680px) !important;
}
.benettexpo-faq-intro h2 { max-width: none !important; }
/* eyebrows share one baseline rhythm above the headings */
.benettexpo-services .benettexpo-eyebrow,
.benettexpo-featured-projects .benettexpo-eyebrow,
.benettexpo-process-intro .benettexpo-eyebrow,
.benettexpo-trust-intro .benettexpo-eyebrow,
.benettexpo-faq-intro .benettexpo-eyebrow,
.benettexpo-contact .benettexpo-eyebrow,
.benettexpo-page-split .benettexpo-eyebrow,
.benettexpo-page-steps-intro .benettexpo-eyebrow,
.benettexpo-page-hero .benettexpo-eyebrow {
  margin: 0 0 22px !important;
}

/* --- Hero comparison: contained, vertically centred images --- */
.benettexpo-hero-visual,
.benettexpo-compare {
  min-height: 0;
}
.benettexpo-compare > figure,
.benettexpo-compare > .benettexpo-compare-before,
.benettexpo-compare > .benettexpo-compare-after,
.benettexpo-compare-before-image,
.benettexpo-compare-after {
  height: 100%;
  margin: 0;
}
.benettexpo-compare img,
.benettexpo-hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: contain !important;
  object-position: 50% 50% !important;
}

/* --- Process steps: hover accent instead of the scroll state --- */
.benettexpo-process .benettexpo-process-step.is-active::before {
  width: 0 !important;
}
.benettexpo-process .benettexpo-process-step.is-active > .benettexpo-step-number {
  color: rgba(246, 248, 247, .42) !important;
}
.benettexpo-process .benettexpo-process-step:hover::before,
.benettexpo-process .benettexpo-process-step:focus-within::before {
  width: 56px !important;
}
.benettexpo-process .benettexpo-process-step:hover > .benettexpo-step-number,
.benettexpo-process .benettexpo-process-step:focus-within > .benettexpo-step-number {
  color: var(--benettexpo-brass, var(--wp--preset--color--accent)) !important;
}

/* --- Contact form polish --- */
.benettexpo-form-slot {
  min-height: 0 !important;
  justify-content: flex-start !important;
  gap: 1.15rem !important;
}
.benettexpo-form-slot .wpcf7 textarea,
.benettexpo-contact-form textarea {
  min-height: 232px;
}
.benettexpo-form-slot .wpcf7 .wpcf7-acceptance .wpcf7-list-item,
.benettexpo-contact-form .wpcf7-acceptance .wpcf7-list-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.benettexpo-form-slot .wpcf7 .wpcf7-acceptance .wpcf7-list-item label,
.benettexpo-contact-form .wpcf7-acceptance .wpcf7-list-item label {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin: 0;
}
.benettexpo-form-slot .wpcf7 .wpcf7-acceptance input[type="checkbox"],
.benettexpo-contact-form .wpcf7-acceptance input[type="checkbox"] {
  margin: 2px 0 0;
}
.benettexpo-form-slot .wpcf7 .wpcf7-acceptance label,
.benettexpo-contact-form .wpcf7-acceptance label {
  line-height: 20px;
}
.benettexpo-form-slot hr.wp-block-separator {
  margin: 0.35rem 0 0 !important;
}
.benettexpo-form-slot p.has-small-font-size {
  margin: 0 !important;
  text-align: left !important;
  line-height: 1.7;
}

/* --- SVG arrows instead of text glyphs --- */
.benettexpo-text-link a::after,
.benettexpo-mobile-nav-cta::after,
.benettexpo-mobile-cta__primary::after,
.benettexpo-arrow-icon {
  content: "" !important;
  position: static !important;
  display: inline-block !important;
  flex: 0 0 auto;
  width: 1.05em !important;
  height: 1.05em !important;
  margin: 0 0 0 .35em !important;
  background-color: currentColor;
  vertical-align: middle;
  -webkit-mask-image: var(--benettexpo-arrow-up-right);
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  -webkit-mask-size: contain;
  mask-image: var(--benettexpo-arrow-up-right);
  mask-repeat: no-repeat;
  mask-position: center;
  mask-size: contain;
  transition: transform .3s;
}
.benettexpo-text-link a:hover::after,
.benettexpo-mobile-nav-cta:hover::after,
.benettexpo-mobile-cta__primary:hover::after {
  transform: translate(3px, -3px);
}

/* --- Back to top: icon only --- */
.benettexpo-back-to-top {
  width: 52px;
  padding: 0;
  justify-content: center;
}
.benettexpo-back-to-top .benettexpo-back-to-top__label {
  position: absolute;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  width: 1px;
  height: 1px;
  white-space: nowrap;
}

/* Carousel / lightbox round buttons: glyph text -> SVG arrow */
.benettexpo-carousel-button,
.benettexpo-lightbox__prev,
.benettexpo-lightbox__next {
  position: relative;
  color: transparent !important;
}
.benettexpo-carousel-button::after,
.benettexpo-lightbox__prev::after,
.benettexpo-lightbox__next::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 14px;
  height: 14px;
  background-color: var(--wp--preset--color--ink);
  transform: translate(-50%, -50%) rotate(45deg);
  -webkit-mask-image: var(--benettexpo-arrow-up-right);
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  -webkit-mask-size: contain;
  mask-image: var(--benettexpo-arrow-up-right);
  mask-repeat: no-repeat;
  mask-position: center;
  mask-size: contain;
}
.benettexpo-carousel-button--prev::after,
.benettexpo-lightbox__prev::after {
  transform: translate(-50%, -50%) rotate(225deg);
}
.benettexpo-carousel-button:hover::after,
.benettexpo-lightbox__prev:hover::after,
.benettexpo-lightbox__next:hover::after {
  background-color: var(--wp--preset--color--forest);
}

/* --- One container edge for the whole site ---
 * Section intros sit at max(shell-pad, (100% - wide)/2); give every
 * container section the same gutter so grids, archives and page blocks
 * share one left edge. */
.benettexpo-faq,
.benettexpo-contact,
.benettexpo-page-hero-wrap,
.benettexpo-page-split-wrap,
.benettexpo-page-gallery-wrap,
.benettexpo-page-steps-wrap,
.benettexpo-project-archive,
.benettexpo-service-archive,
.benettexpo-service-cta {
  padding-inline: max(var(--benettexpo-shell-pad, clamp(16px, 2.5vw, 40px)), calc((100% - var(--wp--style--global--wide-size, 1600px)) / 2)) !important;
}
.benettexpo-faq-grid,
.benettexpo-contact-grid,
.benettexpo-page-hero,
.benettexpo-page-split,
.benettexpo-page-gallery,
.benettexpo-page-steps,
.benettexpo-page-steps-intro,
.benettexpo-project-archive__hero,
.benettexpo-project-archive__filters,
.benettexpo-project-archive__content,
.benettexpo-service-archive-hero,
.benettexpo-service-archive-list,
.benettexpo-service-cta__inner,
.benettexpo-faq-intro,
.benettexpo-page-steps-intro > * {
  box-sizing: border-box;
  width: 100% !important;
  max-width: none !important;
  margin-inline: 0 !important;
  padding-inline: 0 !important;
}

/* hero compare: never overflow the frame */
.benettexpo-compare > figure,
.benettexpo-compare > .benettexpo-compare-before,
.benettexpo-compare > .benettexpo-compare-after {
  overflow: hidden;
}
.benettexpo-compare img {
  max-height: 100%;
}

/* ============================================================
   9.9.11 — Mobile footer, compact form, stat words, arrows,
   process timeline states
   ============================================================ */

/* --- Mobile footer: the approved dark compact footer (the later
   canvas background rule had overridden its dark background, leaving
   light text on light paper). --- */
@media (max-width: 781px) {
  .benettexpo-footer {
    background: #111312 !important;
    color: #f4f2ec !important;
    border-top: 0 !important;
  }
  .benettexpo-footer .wp-block-social-link svg,
  .benettexpo-footer .wp-block-social-link svg path {
    fill: #f4f2ec !important;
  }
  .benettexpo-footer .benettexpo-legal-nav a { color: rgba(244, 242, 236, .82) !important; }
}

/* --- Stats: the word cell keeps its designed smaller size --- */
.benettexpo-stat-number--word {
  font-size: clamp(33px, 3vw, 45px) !important;
}

/* --- Compact enquiry form --- */
.benettexpo-form-slot {
  gap: 1rem !important;
}
.benettexpo-form-slot .wpcf7 form,
.benettexpo-contact-form form {
  gap: 14px 16px !important;
}
.benettexpo-form-slot .wpcf7 label,
.benettexpo-contact-form label {
  margin-bottom: 7px;
}
.benettexpo-form-slot .wpcf7 input[type="text"],
.benettexpo-form-slot .wpcf7 input[type="email"],
.benettexpo-form-slot .wpcf7 input[type="tel"],
.benettexpo-form-slot .wpcf7 input[type="url"],
.benettexpo-form-slot .wpcf7 input[type="number"],
.benettexpo-form-slot .wpcf7 input[type="date"],
.benettexpo-form-slot .wpcf7 select,
.benettexpo-contact-form input[type="text"],
.benettexpo-contact-form input[type="email"],
.benettexpo-contact-form input[type="tel"],
.benettexpo-contact-form select {
  height: 48px;
  padding: 0 14px;
}
.benettexpo-form-slot .wpcf7 textarea,
.benettexpo-contact-form textarea {
  min-height: 168px;
  padding: 12px 14px;
}
.benettexpo-form-slot .wpcf7 input[type="submit"],
.benettexpo-contact-form input[type="submit"] {
  height: 52px;
  margin-top: 4px;
}
.benettexpo-form-slot hr.wp-block-separator {
  margin: 0.25rem 0 0 !important;
}

/* --- Arrow icons: robust size + span-based icon support --- */
.benettexpo-text-link a::after,
.benettexpo-mobile-nav-cta::after,
.benettexpo-mobile-cta__primary::after {
  min-width: 13px;
  min-height: 13px;
  width: 1.15em !important;
  height: 1.15em !important;
}
.benettexpo-arrow-icon::after {
  content: "";
  display: block;
  width: 100%;
  height: 100%;
  background-color: currentColor;
  -webkit-mask-image: var(--benettexpo-arrow-up-right);
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  -webkit-mask-size: contain;
  mask-image: var(--benettexpo-arrow-up-right);
  mask-repeat: no-repeat;
  mask-position: center;
  mask-size: contain;
}

/* --- Process timeline: scroll state is inert on touch; hover/focus
   carries the accent on pointer devices. --- */
@media (hover: none) {
  .benettexpo-process .benettexpo-process-step.is-active::before {
    width: 11px !important;
    background: var(--wp--preset--color--forest) !important;
    border: 1px solid rgba(246, 248, 247, .5);
  }
  .benettexpo-process .benettexpo-process-step.is-active > .benettexpo-step-number {
    color: rgba(246, 248, 247, .42) !important;
  }
}
@media (hover: hover) {
  .benettexpo-process .benettexpo-process-step::before {
    transition: width .5s var(--benettexpo-ease, cubic-bezier(.22,1,.36,1));
  }
}

/* textarea keeps the compact height regardless of the rows attribute */
.benettexpo-form-slot .wpcf7 textarea,
.benettexpo-contact-form textarea {
  height: 172px;
  min-height: 0;
}

/* Touch devices: tapping a step must not stretch the timeline dot.
   The 56px hover/focus accent is pointer-only; on touch the marker
   stays a neutral dot. */
@media (hover: none) {
  .benettexpo-process .benettexpo-process-step:hover::before,
  .benettexpo-process .benettexpo-process-step:focus-within::before,
  .benettexpo-process .benettexpo-process-step.is-active::before {
    width: 11px !important;
    background: var(--wp--preset--color--forest) !important;
    border: 1px solid rgba(246, 248, 247, .5);
  }
  .benettexpo-process .benettexpo-process-step:hover > .benettexpo-step-number,
  .benettexpo-process .benettexpo-process-step:focus-within > .benettexpo-step-number,
  .benettexpo-process .benettexpo-process-step.is-active > .benettexpo-step-number {
    color: rgba(246, 248, 247, .42) !important;
  }
  .benettexpo-process .benettexpo-process-step::before {
    transition: none;
  }
}

/* ============================================================
   9.9.12 — Uniform footer, arrow transform reset, stats layout,
   about-page rhythm
   ============================================================ */

/* --- Footer: one look on every page --- */
.benettexpo-footer {
  background: var(--wp--preset--color--canvas) !important;
}
@media (max-width: 781px) {
  .benettexpo-footer {
    background: #111312 !important;
    color: #f4f2ec !important;
    border-top: 0 !important;
  }
  /* single readable column instead of the squeezed desktop grid */
  .benettexpo-footer .benettexpo-footer-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 1.6rem !important;
    width: 100% !important;
  }
  .benettexpo-footer :is(h2, h3, h4, h5, h6) {
    color: inherit !important;
    margin-bottom: .85rem;
  }
  .benettexpo-footer p,
  .benettexpo-footer li,
  .benettexpo-footer a {
    color: inherit !important;
  }
  .benettexpo-footer .benettexpo-footer-contact a[href^="tel:"] {
    white-space: nowrap;
  }
  .benettexpo-footer .wp-block-social-links {
    flex-flow: row wrap !important;
    gap: 16px !important;
  }
  .benettexpo-footer .benettexpo-footer-bottom {
    border-top-color: rgba(255, 255, 255, .18) !important;
    color: rgba(244, 242, 236, .72) !important;
    margin-top: 1.25rem !important;
    padding-top: 1rem !important;
  }
  .benettexpo-footer .benettexpo-footer-bottom p {
    margin: .35rem 0 0 !important;
    font-size: .72rem !important;
    line-height: 1.6 !important;
  }
}

/* --- Text-link arrow: the underline animation used scaleX(.25) on the
   same pseudo-element — it squeezed the SVG arrow to a sliver. --- */
.benettexpo-text-link a::after,
.benettexpo-mobile-nav-cta::after,
.benettexpo-mobile-cta__primary::after {
  transform: none !important;
}
.benettexpo-text-link a:hover::after,
.benettexpo-mobile-nav-cta:hover::after,
.benettexpo-mobile-cta__primary:hover::after {
  transform: translate(3px, -3px) !important;
}

/* --- Stats: icon + number share one centred row, label centred below --- */
.benettexpo-stat {
  display: grid !important;
  grid-template-columns: auto auto;
  grid-template-areas: "icon number" "label label";
  align-items: center;
  justify-content: center;
  column-gap: 12px;
  row-gap: 10px;
  min-height: 118px;
  text-align: center;
}
.benettexpo-stat-icon { grid-area: icon; width: 28px !important; height: 28px !important; }
.benettexpo-stat-number { grid-area: number; align-self: auto !important; margin: 0 !important; line-height: 1.05; }
.benettexpo-stat-label { grid-area: label; align-self: auto !important; margin: 0 !important; text-align: center !important; }

/* --- About page: one vertical rhythm for all its sections --- */
.benettexpo-about-page-main .wp-block-post-content > * {
  padding-block: clamp(4rem, 8vw, 8rem) !important;
}
.benettexpo-about-page-main .benettexpo-stats {
  padding-block: 20px !important;
}
.benettexpo-about-page-main figure + p,
.benettexpo-about-page-main figure + .wp-block-group {
  margin-top: 1.5rem;
}
.benettexpo-about-page-main p + .wp-block-buttons {
  margin-top: 1.75rem;
}

/* Footer background must win over the global-styles preset class
   (.has-paper-background-color carries !important too — ties resolved
   differently per page). Higher specificity settles it everywhere. */
body .benettexpo-footer.benettexpo-footer {
  background-color: var(--wp--preset--color--canvas) !important;
}
@media (max-width: 781px) {
  body .benettexpo-footer.benettexpo-footer {
    background-color: #111312 !important;
  }
}

/* ============================================================
   9.9.13 — Element alignment: contact hero, service pages,
   about sections, CTA buttons
   ============================================================ */

/* Paragraphs inside constrained groups were auto-centred — pin them left. */
.benettexpo-page-hero > *,
.benettexpo-contact-details > *,
.benettexpo-page-split__copy > *,
.benettexpo-page-steps-intro > * {
  margin-inline: 0 !important;
}

/* Service pages: hero and content share the site container */
.benettexpo-service-single .benettexpo-service-hero,
.benettexpo-service-single .benettexpo-service-content {
  box-sizing: border-box;
  width: min(calc(100% - 2 * var(--benettexpo-shell-pad, clamp(16px, 2.5vw, 40px))), var(--wp--style--global--wide-size, 1600px)) !important;
  max-width: var(--wp--style--global--wide-size, 1600px) !important;
  margin-inline: auto !important;
  padding-inline: 0 !important;
}
.benettexpo-service-single .benettexpo-service-hero > *,
.benettexpo-service-single .benettexpo-service-content > * {
  margin-inline: 0 !important;
}

/* About page: full-bleed sections keep their backgrounds, content lives
   in the same container as every other page. */
.benettexpo-about-page-main .wp-block-post-content > section,
.benettexpo-about-page-main .wp-block-post-content > div {
  padding-inline: max(var(--benettexpo-shell-pad, clamp(16px, 2.5vw, 40px)), calc((100% - var(--wp--style--global--wide-size, 1600px)) / 2)) !important;
}
.benettexpo-about-page-main .wp-block-post-content > * > * {
  padding-inline: 0 !important;
  margin-inline: 0 !important;
}
/* the dark principles intro: heading left, above the grid */
.benettexpo-about-principles__intro {
  grid-template-columns: 1fr !important;
}
.benettexo-about-principles__intro h2 {
  max-width: 16ch !important;
}
/* disciplines list aligns with the copy column top */
.benettexpo-about-team__grid {
  align-items: start !important;
}

/* CTA: outline button keeps the same SVG arrow as solid buttons */
.benettexpo-cta .wp-block-button .wp-block-button__link::after {
  content: "";
  display: inline-block;
  flex: 0 0 auto;
  width: 1.05em;
  height: 1.05em;
  margin-left: .35em;
  background-color: currentColor;
  vertical-align: middle;
  -webkit-mask-image: var(--benettexpo-arrow-up-right);
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  -webkit-mask-size: contain;
  mask-image: var(--benettexpo-arrow-up-right);
  mask-repeat: no-repeat;
  mask-position: center;
  mask-size: contain;
}

/* WP's inline layout rules (`.is-layout-constrained > :where(...)`) print after
   the theme stylesheets and carry !important — win the ties with specificity. */
body .benettexpo-page-hero > *,
body .benettexpo-contact-details > *,
body .benettexpo-page-split__copy > *,
body .benettexpo-page-steps-intro > *,
body .benettexpo-service-single .benettexpo-service-hero > *,
body .benettexpo-service-single .benettexpo-service-content > *,
body .benettexpo-project-archive__hero > *,
body .benettexpo-service-archive-hero > * {
  margin-inline: 0 !important;
}
body .benettexpo-service-cta__inner,
body .benettexpo-service-cta__copy {
  padding-inline: 0 !important;
  margin-inline: 0 !important;
}

/* The CTA wrapper's global padding double-counted with the section gutter */
body .benettexpo-service-cta-wrap,
body .benettexpo-page-hero-wrap,
body .benettexpo-page-split-wrap,
body .benettexpo-page-gallery-wrap,
body .benettexpo-page-steps-wrap {
  padding-inline: 0 !important;
}

/* Footer content sits on the same container edge as every page */
body .benettexpo-footer.benettexpo-footer {
  padding-inline: max(var(--benettexpo-shell-pad, clamp(16px, 2.5vw, 40px)), calc((100% - var(--wp--style--global--wide-size, 1600px)) / 2)) !important;
}
body .benettexpo-footer .has-global-padding {
  padding-inline: 0 !important;
}

/* Correction: hero/split/gallery/steps wrappers carry the container gutter
   (zeroing them pulled content to the viewport edge); the CTA wrapper keeps
   zero padding because its section already carries the gutter. */
body .benettexpo-page-hero-wrap,
body .benettexpo-page-split-wrap,
body .benettexpo-page-gallery-wrap,
body .benettexpo-page-steps-wrap {
  padding-inline: max(var(--benettexpo-shell-pad, clamp(16px, 2.5vw, 40px)), calc((100% - var(--wp--style--global--wide-size, 1600px)) / 2)) !important;
}

/* ============================================================
   9.9.14 — Home CTA block: aligned columns and uniform buttons
   ============================================================ */
.benettexpo-cta-grid {
  align-items: start !important;
}
.benettexpo-cta-grid > * {
  margin-inline: 0 !important;
}
.benettexpo-cta-grid p {
  max-width: none !important;
  margin: 22px 0 0 !important;
}
.benettexpo-cta h2 {
  margin: 0 !important;
  color: inherit;
  font-family: var(--wp--preset--font-family--editorial-serif);
  font-size: clamp(38px, 4vw, 62px) !important;
  font-weight: 400;
  letter-spacing: -.015em;
  line-height: 1.06 !important;
}
.benettexpo-cta .wp-block-buttons {
  display: flex !important;
  flex-wrap: wrap;
  gap: 16px;
  margin: 40px 0 0 !important;
}
.benettexpo-cta .wp-block-button {
  flex: 0 0 auto;
}
.benettexpo-cta .wp-block-button__link {
  box-sizing: border-box;
  display: inline-flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
  min-width: 232px;
  height: 54px;
  min-height: 54px;
  padding: 0 26px !important;
  line-height: 1 !important;
}

/* CTA: both parts start on the same line; buttons share one row */
.benettexpo-cta-grid p {
  margin: 0 !important;
}
.benettexpo-cta .wp-block-button__link {
  min-width: 210px;
}

/* CTA grid: two equal columns, flush children (the old template produced a
   phantom third track and a 24px offset on the right group) */
body .benettexpo-cta-grid {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
  align-items: start !important;
}
body .benettexpo-cta-grid > * {
  margin: 0 !important;
}
body .benettexpo-cta .wp-block-buttons {
  max-width: none !important;
}

/* Contact page "What happens next": keep text clear of the dividers */
body .benettexpo-page-steps__item {
  padding-top: 40px !important;
  padding-bottom: 44px !important;
  padding-right: 36px !important;
}
body .benettexpo-page-steps__item:first-child {
  padding-left: 0 !important;
}
body .benettexpo-page-steps__item:not(:first-child) {
  padding-left: 36px !important;
}
@media (max-width: 860px) {
  body .benettexpo-page-steps__item {
    padding: 28px 0 !important;
    padding-right: 0 !important;
    padding-left: 0 !important;
  }
}

/* No artificial line breaks in headings: forced <br> are replaced with spaces
   in content so headings wrap naturally (display:none would glue words). */
.benettexpo-page-hero h1,
.benettexpo-page-split h2,
.benettexpo-page-steps-intro h2,
.benettexpo-service-cta h2,
.benettexpo-cta h2,
.benettexpo-contact h2,
.benettexpo-services h2,
.benettexpo-featured-projects h2,
.benettexpo-process-intro h2,
.benettexpo-trust-intro h2,
.benettexpo-faq-intro h2 {
  text-wrap: balance;
}

/* Hero display heading: the column is narrow — cap the size so natural
   wrapping keeps long Ukrainian words on 2 lines like the English hero */
.benettexpo-hero-copy h1 {
  font-size: clamp(44px, 5.5vw, 84px) !important;
  text-wrap: balance;
}

/* ============================================================
   9.9.15 — Service hero image: compact editorial frame
   ============================================================ */
.benettexpo-service-hero-image {
  box-sizing: border-box;
  width: min(calc(100% - 2 * var(--benettexpo-shell-pad, clamp(16px, 2.5vw, 40px))), var(--wp--style--global--wide-size, 1600px)) !important;
  max-width: var(--wp--style--global--wide-size, 1600px) !important;
  margin: 0 auto clamp(3.5rem, 7vw, 6rem) !important;
  padding: 14px;
  border: 1px solid var(--wp--preset--color--line);
  background: var(--wp--preset--color--paper);
  overflow: hidden;
}
.benettexpo-service-hero-image img {
  display: block;
  width: 100%;
  height: clamp(300px, 40vw, 560px);
  object-fit: cover;
  transition: transform .8s cubic-bezier(.22, 1, .36, 1);
}
.benettexpo-service-hero-image:hover img {
  transform: scale(1.02);
}
@media (max-width: 781px) {
  .benettexpo-service-hero-image {
    padding: 10px;
  }
  .benettexpo-service-hero-image img {
    height: clamp(240px, 58vw, 420px);
  }
}

/* About hero: the heading was squeezed into a ~5ch box (368px at 68px font)
   which produced six artificial-looking lines. Let it use its column. */
.benettexpo-about-hero h1 {
  max-width: none !important;
  margin: 22px 0 0 !important;
  font-family: var(--wp--preset--font-family--editorial-serif);
  font-size: clamp(38px, 4vw, 62px) !important;
  font-weight: 400;
  letter-spacing: -.015em;
  line-height: 1.06 !important;
  text-wrap: balance;
}
.benettexpo-about-principles__intro h2 {
  max-width: none !important;
}

/* Section-intro headings share the editorial measure (680px — the width of
   "Spaces that deliver more than presence.") instead of banner-wide lines */
.benettexpo-about-principles__intro h2,
.benettexpo-page-steps-intro h2,
.benettexpo-page-split h2,
.benettexpo-about-story__title h2,
.benettexpo-about-team__copy h2,
.benettexpo-about-international__copy h2 {
  max-width: min(100%, 680px) !important;
  text-wrap: balance;
}

/* Project page bottom navigation spans the full container */
body .benettexpo-project-navigation {
  box-sizing: border-box;
  width: calc(100% + 2 * var(--wp--style--root--padding, 20px)) !important;
  max-width: none !important;
  margin-inline: calc(var(--wp--style--root--padding, 20px) * -1) !important;
  padding-inline: 0 !important;
}

/* Project page bottom navigation: compensate both nested paddings so the
   prev / all / next row spans the exact site container */
body .benettexpo-project-navigation {
  width: calc(100% + 2 * (var(--wp--style--root--padding, 20px) + var(--benettexpo-shell-pad, clamp(16px, 2.5vw, 40px)))) !important;
  max-width: none !important;
  margin-inline: calc((var(--wp--style--root--padding, 20px) + var(--benettexpo-shell-pad, clamp(16px, 2.5vw, 40px))) * -1) !important;
}

/* About story: title and copy columns share one top line */
.benettexpo-about-story__copy {
  padding-top: 0 !important;
}

/* ============================================================
   9.9.12-QA — Full-page QA: typography parity, canonical buttons,
   container alignment, one vertical rhythm, responsive fixes
   ============================================================ */

/* --- 1. Same level = same heading metrics --- */
.benettexpo-legal h1,
.benettexpo-service-content h2,
.benettexpo-about-story__title h2,
.benettexpo-about-team__copy h2,
.benettexpo-about-international__copy h2,
.benettexpo-about-principles__intro h2 {
  margin: 22px 0 0 !important;
  margin-inline-start: 0 !important;
  color: inherit;
  font-family: var(--wp--preset--font-family--editorial-serif);
  font-size: clamp(38px, 4vw, 62px) !important;
  font-weight: 400;
  letter-spacing: -.015em;
  line-height: 1.06 !important;
}

/* --- 2. Feature/step titles: one size in both languages --- */
.benettexpo-process-step h3,
.benettexpo-process-step h4 {
  margin: 18px 0 10px !important;
  font-family: var(--wp--preset--font-family--modern-sans);
  font-size: 28px !important;
  line-height: 1.05 !important;
}
.benettexpo-trust-feature h3,
.benettexpo-trust-feature h4 {
  font-size: 24px !important;
}

/* --- 3. Canonical button (54px / 14px / one padding set) --- */
main .wp-block-button__link,
.benettexpo-hero-actions .wp-block-button__link {
  box-sizing: border-box;
  height: 54px;
  min-height: 54px;
  padding: 0 24px 0 20px !important;
  font-size: 14px !important;
  line-height: 1 !important;
  letter-spacing: .01em;
}

/* --- 4. Containers: project body/gallery + legal pages --- */
body .benettexpo-project-single {
  padding-inline: max(var(--benettexpo-shell-pad, clamp(16px, 2.5vw, 40px)), calc((100% - var(--wp--style--global--wide-size, 1600px)) / 2)) !important;
}
body .benettexpo-project-single__body {
  margin-inline: 0 !important;
  padding-inline: 0 !important;
}
body .benettexpo-project-gallery {
  width: 100% !important;
  margin-inline: 0 !important;
}
.benettexpo-legal {
  padding-inline: max(var(--benettexpo-shell-pad, clamp(16px, 2.5vw, 40px)), calc((100% - var(--wp--style--global--wide-size, 1600px)) / 2)) !important;
}

/* --- 5. One vertical rhythm for full-width sections --- */
main .benettexpo-section,
.benettexpo-about-hero,
.benettexpo-about-story,
.benettexpo-about-principles,
.benettexpo-about-international,
.benettexpo-about-team,
.benettexpo-legal {
  padding-block: clamp(4.5rem, 9vw, 9rem) !important;
}

/* --- 6. Responsive: tablet & mobile --- */
@media (max-width: 781px) {
  .benettexpo-project-navigation {
    grid-template-columns: 1fr !important;
    gap: 20px;
  }
  .benettexpo-project-navigation > * {
    width: 100%;
  }
}
@media (max-width: 560px) {
  .benettexpo-hero-actions .wp-block-button,
  .benettexpo-cta .wp-block-button {
    width: 100%;
  }
  .benettexpo-hero-actions .wp-block-button__link,
  .benettexpo-cta .wp-block-button__link {
    width: 100%;
  }
}

/* QA fixes: win the older about-page rhythm rule; header CTA joins the
   canonical button scale */
body .benettexpo-about-page-main .wp-block-post-content > *,
body main .benettexpo-section {
  padding-block: clamp(4.5rem, 9vw, 9rem) !important;
}
.benettexpo-header-actions .wp-block-button__link {
  height: 54px;
  min-height: 54px;
  padding: 0 24px 0 20px !important;
  font-size: 14px !important;
  line-height: 1 !important;
}

/* QA: about copy columns — paragraphs must start on the same line as the
   eyebrow/heading (WP constrained layouts were auto-centring them) */
body .benettexpo-about-team__copy > *,
body .benettexpo-about-story__copy > *,
body .benettexpo-about-international__copy > *,
body .benettexpo-about-principles__intro > *,
body .benettexo-about-team__copy p,
body .benettexpo-about-story__copy p,
body .benettexpo-about-international__copy p {
  margin-inline: 0 !important;
  text-align: left;
}

/* QA: kill the WP constrained-layout auto-centering inside content mains —
   the root cause of indented paragraphs (About, FAQ leads, etc.).
   alignwide/alignfull children keep their auto margins (they must centre
   in the wide container at large viewports). */
body .benettexpo-main .is-layout-constrained > *:not(.alignwide):not(.alignfull),
body .benettexpo-about-page-main .is-layout-constrained > *:not(.alignwide):not(.alignfull),
body .benettexpo-project-single .is-layout-constrained > *:not(.alignwide):not(.alignfull),
body .benettexpo-service-single .is-layout-constrained > *:not(.alignwide):not(.alignfull) {
  margin-inline: 0 !important;
  margin-inline-end: auto !important;
}
body .benettexpo-main .is-layout-constrained > .alignwide,
body .benettexpo-main .is-layout-constrained > .alignfull,
body .benettexpo-about-page-main .is-layout-constrained > .alignwide,
body .benettexpo-about-page-main .is-layout-constrained > .alignfull,
body .benettexpo-project-single .is-layout-constrained > .alignwide,
body .benettexpo-project-single .is-layout-constrained > .alignfull,
body .benettexpo-service-single .is-layout-constrained > .alignwide,
body .benettexpo-service-single .is-layout-constrained > .alignfull {
  margin-inline: auto !important;
}

/* Lists: bullets hang at the text edge, items align to a clean indent */
.benettexpo-legal ul, .benettexpo-legal ol,
.benettexpo-service-content ul, .benettexpo-service-content ol,
.benettexpo-page-split ul, .benettexpo-page-split ol,
.benettexo-about-page-main ul, .benettexpo-about-page-main ol {
  padding-left: 1.15em;
  list-style-position: outside;
}
.benettexpo-legal li, .benettexpo-service-content li {
  margin-block: .35em;
}
