/* ==========================================================================
   PIE Builders & Developers — Final enquiry CTA section
   Split composition: off-white content panel (left) with an angled edge over
   a full-bleed architectural photograph, and a dark brown enquiry card (right).

   Elementor widget copy of html/css/cta.css. Every selector is prefixed with
   the widget root .buildero-cta (the <section>), so Elementor Site Settings
   (h2/h3/p typography) cannot restyle it and these rules never reach other
   widgets. Additions for the widget are at the end.
   ========================================================================== */

.buildero-cta {
  /* Brand tokens */
  --pie-gold: #D99A00;
  --pie-gold-dark: #A96C08;
  --pie-brown: #3F2916;
  --pie-brown-deep: #26190F;
  --pie-charcoal: #17191C;
  --pie-body: #626873;
  --pie-background: #FBFAF7;
  --pie-cream: #F5EFE3;
  --pie-white: #FFFFFF;
  --pie-border: rgba(255, 255, 255, 0.18);

  /* Section-specific tones */
  --pie-cta-eyebrow: #5B6470;                 /* muted grey-blue */
  --pie-cta-icon-bg: #F4E7D0;
  --pie-cta-separator: #E2DACB;
  --pie-cta-gold-light: #E8B54A;              /* gold on dark backgrounds */
  --pie-cta-error: #FFB59C;                   /* error text on the dark card */
  --pie-cta-error-border: #F08A68;

  /* Typography */
  --pie-cta-font-display: "Playfair Display", "DM Serif Display", Georgia, "Times New Roman", serif;
  --pie-cta-font-body: "Manrope", "Poppins", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;

  /* Layout */
  --pie-cta-max: 1550px;
  --pie-cta-gutter: clamp(20px, 4.4vw, 72px);
  --pie-cta-pad-block: clamp(72px, 7vw, 104px);
  /* Distance from the section edge to the container edge; used to place the
     angled panel edge relative to the content rather than the viewport. */
  --pie-cta-side: max(0px, (100% - var(--pie-cta-max)) / 2);
  --pie-cta-inner: min(100%, var(--pie-cta-max));
  --pie-cta-edge-top: 0.53;                   /* fractions of the container width */
  --pie-cta-edge-bottom: 0.37;
  --pie-cta-image-left: calc(var(--pie-cta-side) + var(--pie-cta-inner) * 0.2);

  /* Form controls */
  --pie-cta-control-h: 52px;
  --pie-cta-control-radius: 10px;

  /* Motion */
  --pie-cta-ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --pie-cta-dur: 0.35s;

  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--pie-background);
  color: var(--pie-body);
  font-family: var(--pie-cta-font-body);
  -webkit-font-smoothing: antialiased;
}

.buildero-cta *,
.buildero-cta *::before,
.buildero-cta *::after {
  box-sizing: border-box;
}

/* Zero-specificity reset so component classes can set their own margins. */
.buildero-cta :where(p, h1, h2, h3, h4, ul) {
  margin: 0;
}

/* --------------------------------------------------------------------------
   Background — photograph on the right, cream panel with an angled edge on
   the left, a thin gold edge line and a gold corner.
   -------------------------------------------------------------------------- */
.buildero-cta .pie-cta__background {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.buildero-cta .pie-cta__image {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: var(--pie-cta-image-left);
  width: calc(100% - var(--pie-cta-image-left));
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: var(--pie-cta-focal, 22% 62%);
  transform-origin: 60% 50%;
}

/* Gold edge line: the same polygon as the veil, shifted right by 3px and
   fading out towards the bottom. */
.buildero-cta .pie-cta__background::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, var(--pie-gold) 0%, rgba(217, 154, 0, 0.6) 35%, rgba(217, 154, 0, 0) 70%);
  clip-path: polygon(
    0 0,
    calc(var(--pie-cta-side) + var(--pie-cta-inner) * var(--pie-cta-edge-top) + 3px) 0,
    calc(var(--pie-cta-side) + var(--pie-cta-inner) * var(--pie-cta-edge-bottom) + 3px) 100%,
    0 100%
  );
}

.buildero-cta .pie-cta__veil {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(90deg, var(--pie-background) 0%, var(--pie-background) 70%, #F8F3EA 100%);
  clip-path: polygon(
    0 0,
    calc(var(--pie-cta-side) + var(--pie-cta-inner) * var(--pie-cta-edge-top)) 0,
    calc(var(--pie-cta-side) + var(--pie-cta-inner) * var(--pie-cta-edge-bottom)) 100%,
    0 100%
  );
}

/* Soft warm haze where the panel edge meets the gardens (lower half), so the
   transition reads as light rather than a hard cut. */
.buildero-cta .pie-cta__background::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  background:
    radial-gradient(30% 42% at calc(var(--pie-cta-side) + var(--pie-cta-inner) * 0.36) 74%,
      rgba(251, 249, 244, 0.94) 0%, rgba(251, 249, 244, 0.6) 40%, rgba(251, 249, 244, 0) 78%);
}

.buildero-cta .pie-cta__corner {
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: 4;
  width: clamp(64px, 6vw, 104px);
  height: clamp(92px, 8.6vw, 150px);
  background: linear-gradient(160deg, var(--pie-gold) 0%, var(--pie-gold-dark) 100%);
  clip-path: polygon(0 0, 100% 100%, 0 100%);
}

/* --------------------------------------------------------------------------
   Layout
   -------------------------------------------------------------------------- */
.buildero-cta .pie-cta__container {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 500px);
  align-items: center;
  column-gap: clamp(32px, 5vw, 120px);
  max-width: calc(var(--pie-cta-max) + 2 * var(--pie-cta-gutter));
  margin: 0 auto;
  padding: var(--pie-cta-pad-block) var(--pie-cta-gutter);
}

.buildero-cta .pie-cta__content {
  max-width: 640px;
}

/* --------------------------------------------------------------------------
   Left content
   -------------------------------------------------------------------------- */
.buildero-cta .pie-cta__rule {
  display: block;
  width: 50px;
  height: 3px;
  margin-bottom: 26px;
  border-radius: 2px;
  background: var(--pie-gold);
}

.buildero-cta .pie-cta__eyebrow {
  color: var(--pie-cta-eyebrow);
  font-size: clamp(13px, 1vw, 15px);
  font-weight: 600;
  letter-spacing: 0.32em;
  line-height: 1.4;
  text-transform: uppercase;
}

.buildero-cta .pie-cta__title {
  margin-top: clamp(18px, 1.8vw, 26px);
  color: var(--pie-charcoal);
  font-family: var(--pie-cta-font-display);
  /* font-size: clamp(46px, 5.5vw, 84px); */
  font-size: clamp(46px, 5.5vw, 54px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 0.95;
}

.buildero-cta .pie-cta__title-line {
  display: block;
  /* Clip the line reveal while keeping room for descenders (g, p). */
  overflow: hidden;
  padding-bottom: 0.2em;
  margin-bottom: -0.2em;
}

.buildero-cta .pie-cta__title-inner {
  display: inline-block;
  /* Extends the box (and so the background-clip: text area) below the baseline. */
  padding-bottom: 0.16em;
  margin-bottom: -0.16em;
}

.buildero-cta .pie-cta__title-accent {
  color: var(--pie-gold-dark);
}

@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .buildero-cta .pie-cta__title-accent .pie-cta__title-inner {
    background: linear-gradient(180deg, #C1840C 0%, #A96C08 60%, #93600B 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }
}

.buildero-cta .pie-cta__description {
  max-width: 540px;
  margin-top: clamp(18px, 1.6vw, 24px);
  font-size: clamp(16px, 1.35vw, 20px);
  line-height: 1.45;
}

/* Benefits */
.buildero-cta .pie-cta__benefits {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 570px;
  margin-top: clamp(28px, 2.6vw, 40px);
  padding: 0;
  list-style: none;
}

.buildero-cta .pie-cta__benefit {
  padding: 0 clamp(12px, 1.4vw, 24px);
  border-left: 1px solid var(--pie-cta-separator);
}

.buildero-cta .pie-cta__benefit:first-child {
  padding-left: 0;
  border-left: 0;
}

.buildero-cta .pie-cta__benefit-icon {
  display: grid;
  place-items: center;
  width: clamp(58px, 4.6vw, 68px);
  height: clamp(58px, 4.6vw, 68px);
  margin-bottom: 18px;
  border-radius: 50%;
  background: var(--pie-cta-icon-bg);
  color: var(--pie-gold-dark);
}

.buildero-cta .pie-cta__benefit-icon svg {
  width: 44%;
  height: 44%;
  stroke-width: 1.7;
}

.buildero-cta .pie-cta__benefit-title {
  max-width: 9em;
  color: var(--pie-charcoal);
  font-family: var(--pie-cta-font-display);
  font-size: clamp(17px, 1.45vw, 21px);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.18;
}

.buildero-cta .pie-cta__benefit-description {
  margin-top: 10px;
  font-size: clamp(13px, 1vw, 14.5px);
  line-height: 1.45;
}

/* Call button */
.buildero-cta .pie-cta__call-button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: 216px;
  max-width: 100%;
  min-height: 60px;
  margin-top: clamp(15px, 0.2vw, 8px);
  padding: 0 20px;
  border-radius: 26px;
  background: linear-gradient(135deg, #C88A12 0%, var(--pie-gold-dark) 55%, #8F5B08 100%);
  box-shadow: 0 16px 30px -14px rgba(143, 91, 8, 0.65);
  color: var(--pie-white);
  font-size: clamp(18px, 1.4vw, 21px);
  font-weight: 600;
  text-decoration: none;
  transition: transform var(--pie-cta-dur) var(--pie-cta-ease),
              box-shadow var(--pie-cta-dur) var(--pie-cta-ease),
              filter var(--pie-cta-dur) var(--pie-cta-ease);
}

.buildero-cta .pie-cta__call-icon,
.buildero-cta .pie-cta__call-arrow {
  display: inline-flex;
}

.buildero-cta .pie-cta__call-icon svg,
.buildero-cta .pie-cta__call-arrow svg {
  width: 24px;
  height: 24px;
  stroke-width: 1.8;
}

.buildero-cta .pie-cta__call-arrow {
  transition: transform var(--pie-cta-dur) var(--pie-cta-ease);
}

.buildero-cta .pie-cta__call-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 36px -16px rgba(143, 91, 8, 0.75);
  filter: brightness(1.05);
}

.buildero-cta .pie-cta__call-button:hover .pie-cta__call-arrow {
  transform: translateX(4px);
}

.buildero-cta .pie-cta__call-button:focus-visible {
  outline: 3px solid var(--pie-gold);
  outline-offset: 4px;
}

/* --------------------------------------------------------------------------
   Enquiry card
   -------------------------------------------------------------------------- */
.buildero-cta .pie-cta__form-wrapper {
  display: flex;
  justify-content: flex-end;
}

.buildero-cta .pie-cta__form-card {
  width: 100%;
  max-width: 500px;
  padding: clamp(28px, 2.6vw, 40px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 22px;
  background: linear-gradient(165deg, rgba(66, 43, 23, 0.95) 0%, rgba(48, 31, 17, 0.96) 55%, rgba(38, 25, 15, 0.97) 100%);
  box-shadow: 0 40px 80px -32px rgba(23, 14, 6, 0.7), 0 2px 0 rgba(255, 255, 255, 0.04) inset;
  color: var(--pie-white);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.buildero-cta .pie-cta__form-accent {
  display: block;
  width: 48px;
  height: 3px;
  margin-bottom: 18px;
  border-radius: 2px;
  background: var(--pie-gold);
}

.buildero-cta .pie-cta__form-eyebrow {
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(12px, 0.95vw, 14px);
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
}

.buildero-cta .pie-cta__form-title {
  margin-top: 10px;
  color: var(--pie-white);
  font-family: var(--pie-cta-font-display);
  font-size: clamp(30px, 2.7vw, 40px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.08;
}

.buildero-cta .pie-cta__form-title span {
  color: var(--pie-cta-gold-light);
  font-style: italic;
  font-weight: 600;
}

@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .buildero-cta .pie-cta__form-title span {
    /* Inline-block + side padding stops the italic overhang being clipped. */
    display: inline-block;
    padding-right: 0.08em;
    background: linear-gradient(180deg, #F0C25E 0%, #D99A00 65%, #C58A0A 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }
}

.buildero-cta .pie-cta__form-description {
  max-width: 460px;
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(15px, 1.05vw, 16.5px);
  line-height: 1.5;
}

/* --------------------------------------------------------------------------
   Form
   -------------------------------------------------------------------------- */
.buildero-cta .pie-cta__form {
  display: grid;
  gap: 12px;
  margin-top: clamp(20px, 1.8vw, 24px);
}

.buildero-cta .pie-cta__row--split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.buildero-cta .pie-cta__field {
  position: relative;
}

.buildero-cta .pie-cta__input,
.buildero-cta .pie-cta__select,
.buildero-cta .pie-cta__textarea {
  display: block;
  width: 100%;
  height: var(--pie-cta-control-h);
  margin: 0;
  padding: 21px 18px 5px 50px;
  border: 1px solid var(--pie-border);
  border-radius: var(--pie-cta-control-radius);
  background: rgba(255, 255, 255, 0.045);
  color: var(--pie-white);
  font: 500 15px/1.4 var(--pie-cta-font-body);
  /* Transparent outline keeps a focus indicator in forced-colours mode. */
  outline: 2px solid transparent;
  outline-offset: 2px;
  transition: border-color var(--pie-cta-dur) var(--pie-cta-ease),
              box-shadow var(--pie-cta-dur) var(--pie-cta-ease),
              background-color var(--pie-cta-dur) var(--pie-cta-ease);
  -webkit-appearance: none;
  appearance: none;
}

.buildero-cta .pie-cta__textarea {
  height: 96px;
  min-height: 96px;
  padding-top: 26px;
  resize: vertical;
}

.buildero-cta .pie-cta__input:hover,
.buildero-cta .pie-cta__select:hover,
.buildero-cta .pie-cta__textarea:hover {
  border-color: rgba(255, 255, 255, 0.3);
}

.buildero-cta .pie-cta__input:focus,
.buildero-cta .pie-cta__select:focus,
.buildero-cta .pie-cta__textarea:focus {
  border-color: var(--pie-gold);
  background-color: rgba(255, 255, 255, 0.07);
  box-shadow: 0 0 0 3px rgba(217, 154, 0, 0.3);
}

/* Autofill: keep the dark field instead of the browser's yellow/blue fill. */
.buildero-cta .pie-cta__input:-webkit-autofill {
  -webkit-text-fill-color: var(--pie-white);
  caret-color: var(--pie-white);
  transition: background-color 9999s ease 0s;
}

/* Select: hide the empty value so the label reads as the placeholder. */
.buildero-cta .pie-cta__select {
  padding-right: 52px;
  color: transparent;
  cursor: pointer;
}

.buildero-cta .pie-cta__select:valid {
  color: var(--pie-white);
}

.buildero-cta .pie-cta__select option {
  background: var(--pie-white);
  color: var(--pie-charcoal);
}

.buildero-cta .pie-cta__field-icon,
.buildero-cta .pie-cta__select-arrow {
  position: absolute;
  top: calc(var(--pie-cta-control-h) / 2);
  width: 20px;
  height: 20px;
  color: rgba(255, 255, 255, 0.78);
  stroke-width: 1.6;
  pointer-events: none;
  transform: translateY(-50%);
}

.buildero-cta .pie-cta__field-icon {
  left: 18px;
}

.buildero-cta .pie-cta__select-arrow {
  right: 20px;
}

.buildero-cta .pie-cta__field--textarea .pie-cta__field-icon {
  top: 26px;
}

/* Floating label: sits inside the field like a placeholder and moves up when
   the field is focused or filled. It is always present for assistive tech. */
.buildero-cta .pie-cta__label {
  position: absolute;
  top: calc(var(--pie-cta-control-h) / 2);
  left: 51px;
  right: 18px;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.8);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.2;
  white-space: nowrap;
  text-overflow: ellipsis;
  pointer-events: none;
  transform: translateY(-50%);
  transform-origin: left center;
  transition: top var(--pie-cta-dur) var(--pie-cta-ease),
              font-size var(--pie-cta-dur) var(--pie-cta-ease),
              color var(--pie-cta-dur) var(--pie-cta-ease);
}

.buildero-cta .pie-cta__field--textarea .pie-cta__label {
  top: 26px;
}

.buildero-cta .pie-cta__input:focus ~ .pie-cta__label,
.buildero-cta .pie-cta__input:not(:placeholder-shown) ~ .pie-cta__label,
.buildero-cta .pie-cta__input:-webkit-autofill ~ .pie-cta__label,
.buildero-cta .pie-cta__textarea:focus ~ .pie-cta__label,
.buildero-cta .pie-cta__textarea:not(:placeholder-shown) ~ .pie-cta__label,
.buildero-cta .pie-cta__select:focus ~ .pie-cta__label,
.buildero-cta .pie-cta__select:valid ~ .pie-cta__label {
  top: 14px;
  color: var(--pie-cta-gold-light);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.buildero-cta .pie-cta__field--textarea .pie-cta__textarea:focus ~ .pie-cta__label,
.buildero-cta .pie-cta__field--textarea .pie-cta__textarea:not(:placeholder-shown) ~ .pie-cta__label {
  top: 13px;
}

/* Validation state (set by js/cta.js after a submit attempt) */
.buildero-cta .pie-cta__field.is-invalid .pie-cta__input,
.buildero-cta .pie-cta__field.is-invalid .pie-cta__select,
.buildero-cta .pie-cta__field.is-invalid .pie-cta__textarea {
  border-color: var(--pie-cta-error-border);
}

.buildero-cta .pie-cta__field.is-invalid .pie-cta__input:focus,
.buildero-cta .pie-cta__field.is-invalid .pie-cta__select:focus,
.buildero-cta .pie-cta__field.is-invalid .pie-cta__textarea:focus {
  box-shadow: 0 0 0 3px rgba(240, 138, 104, 0.3);
}

.buildero-cta .pie-cta__error {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  margin-top: 7px;
  padding-left: 2px;
  color: var(--pie-cta-error);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
}

/* Text marker so errors are not communicated by colour alone. */
.buildero-cta .pie-cta__error::before {
  content: "!";
  flex: none;
  display: grid;
  place-items: center;
  width: 16px;
  height: 16px;
  margin-top: 1px;
  border-radius: 50%;
  background: var(--pie-cta-error);
  color: var(--pie-brown-deep);
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
}

.buildero-cta .pie-cta__error:empty {
  display: none;
}

/* Submit */
.buildero-cta .pie-cta__submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  width: 100%;
  min-height: 54px;
  margin-top: 6px;
  padding: 0 24px;
  border: 0;
  border-radius: 10px;
  background: linear-gradient(90deg, #B97C0B 0%, #CF9310 45%, #B47A0E 100%);
  box-shadow: 0 16px 30px -16px rgba(217, 154, 0, 0.6);
  color: var(--pie-white);
  font: 600 clamp(16px, 1.15vw, 17.5px)/1.2 var(--pie-cta-font-body);
  cursor: pointer;
  transition: filter var(--pie-cta-dur) var(--pie-cta-ease),
              box-shadow var(--pie-cta-dur) var(--pie-cta-ease);
}

.buildero-cta .pie-cta__submit-arrow {
  width: 22px;
  height: 22px;
  stroke-width: 1.8;
  transition: transform var(--pie-cta-dur) var(--pie-cta-ease);
}

.buildero-cta .pie-cta__submit:hover {
  filter: brightness(1.1);
  box-shadow: 0 20px 34px -16px rgba(217, 154, 0, 0.75);
}

.buildero-cta .pie-cta__submit:hover .pie-cta__submit-arrow {
  transform: translateX(4px);
}

.buildero-cta .pie-cta__submit:focus-visible {
  outline: 3px solid #F5D58A;
  outline-offset: 3px;
}

/* Status message (validation summary / front-end demo notice) */
.buildero-cta .pie-cta__status {
  padding: 14px 16px;
  border: 1px solid var(--pie-border);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--pie-white);
  font-size: 14px;
  line-height: 1.5;
}

.buildero-cta .pie-cta__status[hidden] {
  display: none;
}

.buildero-cta .pie-cta__status:focus {
  outline: 2px solid transparent;
}

.buildero-cta .pie-cta__status strong {
  font-weight: 700;
}

.buildero-cta .pie-cta__status.is-error {
  border-color: var(--pie-cta-error-border);
  background: rgba(240, 138, 104, 0.1);
}

.buildero-cta .pie-cta__status.is-demo {
  border-color: rgba(217, 154, 0, 0.7);
  background: rgba(217, 154, 0, 0.12);
}

.buildero-cta .pie-cta__status a {
  color: var(--pie-cta-gold-light);
  font-weight: 600;
}

.buildero-cta .pie-cta__status a:focus-visible {
  outline: 2px solid var(--pie-cta-gold-light);
  outline-offset: 2px;
}

/* Privacy note */
.buildero-cta .pie-cta__privacy {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 12.5px;
  line-height: 1.45;
  text-align: left;
}

.buildero-cta .pie-cta__privacy-icon {
  flex: none;
  width: 20px;
  height: 20px;
  color: var(--pie-white);
  stroke-width: 1.6;
}

/* --------------------------------------------------------------------------
   Entrance animation states
   Hidden only while JS is running (html.pie-js) until cta.js marks the
   section as set up. The failsafe reveals content if the script never runs.
   -------------------------------------------------------------------------- */
.pie-js .buildero-cta:not(.is-animated) [data-pie-cta-reveal],
.pie-js .buildero-cta:not(.is-animated) [data-pie-cta-card] {
  opacity: 0;
  animation: pie-cta-failsafe 0.4s ease 2.5s forwards;
}

@keyframes pie-cta-failsafe {
  to { opacity: 1; }
}

/* --------------------------------------------------------------------------
   iPad landscape — 1024–1199px
   -------------------------------------------------------------------------- */
@media (max-width: 1199px) {
  .buildero-cta {
    --pie-cta-control-h: 50px;
    --pie-cta-edge-top: 0.53;
    --pie-cta-edge-bottom: 0.45;
    --pie-cta-image-left: calc(var(--pie-cta-inner) * 0.3);
  }

  .buildero-cta .pie-cta__container {
    grid-template-columns: minmax(0, 1fr) minmax(0, 420px);
    column-gap: 40px;
  }

  .buildero-cta .pie-cta__description {
    max-width: 420px;
  }

  .buildero-cta .pie-cta__title {
    font-size: clamp(46px, 5.4vw, 64px);
  }

  .buildero-cta .pie-cta__benefit {
    padding: 0 12px;
  }

  .buildero-cta .pie-cta__form-card {
    padding: 28px 26px;
  }

  .buildero-cta .pie-cta__input,
  .buildero-cta .pie-cta__select,
  .buildero-cta .pie-cta__textarea {
    padding-left: 46px;
  }

  .buildero-cta .pie-cta__field-icon {
    left: 16px;
  }

  .buildero-cta .pie-cta__label {
    left: 47px;
    right: 12px;
  }

  .buildero-cta .pie-cta__textarea {
    height: 92px;
    min-height: 92px;
  }
}

/* --------------------------------------------------------------------------
   iPad portrait — 768–1023px
   Stacked: content on the cream panel, then a photo band that the enquiry
   card overlaps. The container is flattened (display: contents) so the
   photo can sit between the content and the card in the section grid.
   -------------------------------------------------------------------------- */
@media (max-width: 1023px) {
  .buildero-cta {
    --pie-cta-control-h: 52px;
    --pie-cta-band: clamp(240px, 48vw, 440px);
    --pie-cta-overlap: clamp(96px, 18vw, 170px);
    --pie-cta-image-left: 0px;

    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }

  .buildero-cta .pie-cta__container {
    display: contents;
  }

  .buildero-cta .pie-cta__content {
    grid-row: 1;
    width: 100%;
    max-width: 760px;
    margin: 0 auto;
    padding: var(--pie-cta-pad-block) var(--pie-cta-gutter) clamp(40px, 6vw, 56px);
  }

  .buildero-cta .pie-cta__background {
    position: relative;
    inset: auto;
    grid-row: 2;
    height: var(--pie-cta-band);
  }

  .buildero-cta .pie-cta__image {
    object-position: var(--pie-cta-focal-mobile, 30% 58%);
  }

  .buildero-cta .pie-cta__background::before,
  .buildero-cta .pie-cta__corner {
    display: none;
  }

  /* Blend the cream panel into the top of the photo. */
  .buildero-cta .pie-cta__veil {
    clip-path: none;
    background: linear-gradient(180deg, var(--pie-background) 0%, rgba(251, 250, 247, 0.55) 18%, rgba(251, 250, 247, 0) 42%);
  }

  .buildero-cta .pie-cta__background::after {
    background: none;
  }

  .buildero-cta .pie-cta__form-wrapper {
    position: relative;
    grid-row: 3;
    justify-content: center;
    margin-top: calc(-1 * var(--pie-cta-overlap));
    padding: 0 var(--pie-cta-gutter) var(--pie-cta-pad-block);
  }

  .buildero-cta .pie-cta__form-card {
    max-width: 680px;
  }

  .buildero-cta .pie-cta__title {
    font-size: clamp(46px, 8vw, 72px);
  }

  .buildero-cta .pie-cta__benefits {
    max-width: 640px;
  }

  .buildero-cta .pie-cta__benefit-title {
    max-width: none;
  }

  .buildero-cta .pie-cta__benefit {
    padding: 0 clamp(14px, 2.4vw, 24px);
  }
}

/* --------------------------------------------------------------------------
   Mobile landscape — 576–767px
   -------------------------------------------------------------------------- */
@media (max-width: 767px) {
  .buildero-cta {
    --pie-cta-gutter: clamp(18px, 4.5vw, 32px);
    --pie-cta-pad-block: clamp(56px, 10vw, 72px);
  }

  .buildero-cta .pie-cta__form-card {
    padding: 30px clamp(22px, 4.5vw, 32px);
    border-radius: 18px;
  }
}

/* --------------------------------------------------------------------------
   Mobile portrait — below 576px
   -------------------------------------------------------------------------- */
@media (max-width: 575px) {
  .buildero-cta {
    --pie-cta-band: clamp(220px, 64vw, 300px);
    --pie-cta-overlap: 72px;
  }

  .buildero-cta .pie-cta__rule {
    margin-bottom: 20px;
  }

  .buildero-cta .pie-cta__eyebrow {
    letter-spacing: 0.26em;
  }

  .buildero-cta .pie-cta__title {
    font-size: clamp(42px, 12.6vw, 56px);
    line-height: 0.98;
  }

  .buildero-cta .pie-cta__description {
    font-size: 16px;
  }

  /* Benefits become rows: icon left, text right, separated by hairlines. */
  .buildero-cta .pie-cta__benefits {
    grid-template-columns: minmax(0, 1fr);
    margin-top: 28px;
  }

  .buildero-cta .pie-cta__benefit,
  .buildero-cta .pie-cta__benefit:first-child {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    column-gap: 16px;
    align-items: center;
    padding: 16px 0;
    border-left: 0;
    border-top: 1px solid var(--pie-cta-separator);
  }

  .buildero-cta .pie-cta__benefit:first-child {
    padding-top: 0;
    border-top: 0;
  }

  .buildero-cta .pie-cta__benefit-icon {
    grid-row: span 2;
    width: 56px;
    height: 56px;
    margin-bottom: 0;
  }

  .buildero-cta .pie-cta__benefit-title {
    max-width: none;
    font-size: 18px;
  }

  .buildero-cta .pie-cta__benefit-description {
    margin-top: 4px;
    font-size: 14px;
  }

  .buildero-cta .pie-cta__call-button {
    width: 100%;
    max-width: 340px;
    min-height: 64px;
    margin-top: 28px;
    border-radius: 22px;
  }

  .buildero-cta .pie-cta__form-card {
    padding: 28px 22px 24px;
  }

  .buildero-cta .pie-cta__form-accent {
    margin-bottom: 20px;
  }

  .buildero-cta .pie-cta__form-eyebrow {
    letter-spacing: 0.26em;
  }

  .buildero-cta .pie-cta__form-title {
    font-size: clamp(32px, 9.6vw, 40px);
  }

  .buildero-cta .pie-cta__form-description {
    font-size: 16px;
  }

  .buildero-cta .pie-cta__row--split {
    grid-template-columns: minmax(0, 1fr);
    gap: 13px;
  }

  .buildero-cta .pie-cta__submit {
    min-height: 60px;
  }

  .buildero-cta .pie-cta__privacy {
    align-items: flex-start;
    justify-content: flex-start;
    font-size: 12.5px;
  }
}

/* --------------------------------------------------------------------------
   Reduced motion
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .buildero-cta .pie-cta__call-button,
  .buildero-cta .pie-cta__call-arrow,
  .buildero-cta .pie-cta__submit,
  .buildero-cta .pie-cta__submit-arrow,
  .buildero-cta .pie-cta__input,
  .buildero-cta .pie-cta__select,
  .buildero-cta .pie-cta__textarea,
  .buildero-cta .pie-cta__label {
    transition: none;
  }

  .buildero-cta .pie-cta__call-button:hover,
  .buildero-cta .pie-cta__call-button:hover .pie-cta__call-arrow,
  .buildero-cta .pie-cta__submit:hover .pie-cta__submit-arrow {
    transform: none;
  }

  .pie-js .buildero-cta:not(.is-animated) [data-pie-cta-reveal],
  .pie-js .buildero-cta:not(.is-animated) [data-pie-cta-card] {
    opacity: 1;
    animation: none;
  }
}

/* --------------------------------------------------------------------------
   Buildero Theme additions (Elementor widget)
   -------------------------------------------------------------------------- */

/* Text without its own line-height uses the browser default, as in the static
   page, so the theme or Elementor body line-height cannot shift the layout. */
.buildero-cta {
  line-height: normal;
}

/* More than three benefits wrap onto further rows of three: every row starts
   without a separator, as the first item does. */
@media (min-width: 576px) {
  .buildero-cta .pie-cta__benefits {
    row-gap: clamp(24px, 2.4vw, 32px);
  }

  .buildero-cta .pie-cta__benefit:nth-child(3n + 1) {
    padding-left: 0;
    border-left: 0;
  }
}

/* Icons chosen from Elementor's icon library: font icons are sized like the
   bundled Lucide SVGs; uploaded/Font Awesome SVGs follow the icon colour. */
.buildero-cta .pie-cta__benefit-icon i {
  display: block;
  font-size: clamp(25px, 2vw, 30px);
  line-height: 1;
}

.buildero-cta .pie-cta__call-icon i {
  display: block;
  font-size: 22px;
  line-height: 1;
}

.buildero-cta .pie-cta__benefit-icon svg:not(.lucide),
.buildero-cta .pie-cta__call-icon svg:not(.lucide) {
  fill: currentColor;
}

/* Enquiry form hidden: the content column takes the full width (desktop). */
@media (min-width: 1024px) {
  .buildero-cta.pie-cta--no-form .pie-cta__container {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Gold corner and edge line switched off in the widget. */
.buildero-cta.pie-cta--plain-edge .pie-cta__background::before {
  display: none;
}
