/* ==========================================================================
   PIE Builders & Developers — Footer
   Angled architectural CTA banner (headline · photograph · gold value panel)
   above a five-column dark footer and a slim copyright bar.
   Scoped to .pie-footer.

   Buildero Theme copy of html/css/footer.css. Every selector is prefixed
   with #buildero-footer (the wrapper in footer.php) so Elementor Site
   Settings cannot restyle the footer and these rules cannot reach Elementor
   content. WordPress-specific additions are at the end of this file.
   ========================================================================== */

#buildero-footer .pie-footer {
  /* Colour tokens */
  --pie-gold: #D99A00;
  --pie-gold-light: #F1B947;
  --pie-gold-dark: #A96C08;
  --pie-brown: #3F2916;
  --pie-charcoal: #191713;
  --pie-charcoal-light: #252019;
  --pie-white: #FFFFFF;
  --pie-text: #D7D4CE;
  --pie-muted: #AAA69E;
  --pie-border: rgba(217, 154, 0, 0.22);
  --pie-icon-bg: #2E261C;

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

  /* Layout */
  --pie-footer-max: 1550px;
  --pie-footer-gutter: clamp(20px, 6.5vw, 116px);
  --pie-footer-col-pad: clamp(16px, calc(4.5vw - 38px), 40px);

  /* CTA geometry (percentages of the banner; see the media queries) */
  --pie-cta-height: 360px;
  --pie-cta-content-width: 47%;
  --pie-cta-image-left: 38%;
  --pie-cta-image-clip: polygon(3.2% 0, 82.3% 0, 61.3% 100%, 27.4% 100%);
  --pie-cta-edge-clip: polygon(39.98% 0, calc(39.98% + 3px) 0, calc(54.99% + 3px) 100%, 54.99% 100%);
  --pie-cta-gold-clip: polygon(89% 0, 100% 0, 100% 72%, 76% 100%);

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

  position: relative;
  overflow: hidden;
  background: var(--pie-charcoal);
  color: var(--pie-text);
  font-family: var(--pie-footer-font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

#buildero-footer .pie-footer *,
#buildero-footer .pie-footer *::before,
#buildero-footer .pie-footer *::after {
  box-sizing: border-box;
}

#buildero-footer .pie-footer img {
  display: block;
  max-width: 100%;
  height: auto;
}

#buildero-footer .pie-footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

#buildero-footer .pie-footer a {
  color: inherit;
  text-decoration: none;
}

#buildero-footer .pie-footer a:focus-visible {
  outline: 2px solid var(--pie-gold-light);
  outline-offset: 3px;
  border-radius: 4px;
}

#buildero-footer .pie-footer__sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

#buildero-footer .pie-footer__icon,
#buildero-footer .pie-footer__chevron {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

#buildero-footer .pie-footer__icon-fill {
  fill: currentColor;
  stroke: none;
}

#buildero-footer .pie-footer__gold-line {
  display: block;
  width: 66px;
  height: 2px;
  background: var(--pie-gold);
  transform-origin: left center;
}

/* --------------------------------------------------------------------------
   CTA banner
   -------------------------------------------------------------------------- */
#buildero-footer .pie-footer__cta {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  min-height: var(--pie-cta-height);
  background:
    linear-gradient(100deg, var(--pie-charcoal-light) 0%, #211C16 40%, var(--pie-charcoal) 70%);
}

/* Thin gold rule along the bottom edge of the dark panel */
#buildero-footer .pie-footer__cta::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 58%;
  height: 1px;
  background: linear-gradient(90deg, rgba(217, 154, 0, 0.15), rgba(217, 154, 0, 0.55) 70%, rgba(217, 154, 0, 0));
  z-index: 2;
}

#buildero-footer .pie-footer__cta-lineart {
  position: absolute;
  left: -330px;
  bottom: -40px;
  width: 560px;
  opacity: 0.1;
  pointer-events: none;
  z-index: -1;
}

#buildero-footer .pie-footer__cta-content {
  position: relative;
  z-index: 1;
  width: var(--pie-cta-content-width);
  padding-block: 64px;
  padding-left: max(var(--pie-footer-gutter), calc((100vw - var(--pie-footer-max)) / 2));
  padding-right: 24px;
}

#buildero-footer .pie-footer__cta-title {
  margin: 0 0 22px;
  font-family: var(--pie-footer-font-display);
  font-size: clamp(34px, 3.65vw, 68px);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: var(--pie-white);
}

#buildero-footer .pie-footer__cta-title span {
  display: block;
}

#buildero-footer .pie-footer__cta-title em {
  font-style: normal;
  color: var(--pie-gold-light);
}

#buildero-footer .pie-footer__cta-description {
  max-width: 34em;
  margin: 0 0 28px;
  font-size: clamp(16px, 1.15vw, 21px);
  line-height: 1.5;
  color: var(--pie-text);
}

/* Photograph + gold panel share one layer that covers the banner on desktop */
#buildero-footer .pie-footer__cta-media {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

/* Gold hairline along the photograph's angled left edge */
#buildero-footer .pie-footer__cta-media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  clip-path: var(--pie-cta-edge-clip);
  background: var(--pie-gold);
}

#buildero-footer .pie-footer__cta-image {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--pie-cta-image-left);
  right: 0;
  clip-path: var(--pie-cta-image-clip);
  background: var(--pie-charcoal-light);  /* placeholder while the photo loads */
}

#buildero-footer .pie-footer__cta-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 62%;
}

#buildero-footer .pie-footer__cta-values {
  position: absolute;
  inset: 0;
  clip-path: var(--pie-cta-gold-clip);
  /* Darker towards the top right, where the text sits, for contrast */
  background: linear-gradient(215deg, #8F5C0E 0%, var(--pie-gold-dark) 30%, var(--pie-gold) 62%, var(--pie-gold-light) 100%);
}

#buildero-footer .pie-footer__values-body {
  position: absolute;
  top: 26%;
  right: var(--pie-footer-gutter);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 30px;
}

#buildero-footer .pie-footer__values-list {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  margin: 0;
  font-size: clamp(11px, 0.82vw, 14px);
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--pie-white);
  text-shadow: 0 1px 2px rgba(63, 41, 22, 0.35);
}

#buildero-footer .pie-footer__values-list li {
  margin-right: -0.3em;                  /* cancel trailing letter-spacing */
}

#buildero-footer .pie-footer__values-line {
  display: block;
  width: 60px;
  height: 2px;
  background: #F6DFA6;
}

/* --------------------------------------------------------------------------
   Main footer
   -------------------------------------------------------------------------- */
#buildero-footer .pie-footer__main {
  position: relative;
  isolation: isolate;
  padding-block: clamp(40px, 3.6vw, 60px);
  padding-inline: var(--pie-footer-gutter);
}

#buildero-footer .pie-footer__main-lineart {
  position: absolute;
  right: -60px;
  bottom: -70px;
  width: 520px;
  opacity: 0.07;
  pointer-events: none;
  z-index: -1;
}

#buildero-footer .pie-footer__container {
  display: grid;
  grid-template-columns: minmax(200px, 0.95fr) minmax(0, 1.3fr) minmax(0, 1.1fr) minmax(0, 1.25fr) auto;
  max-width: var(--pie-footer-max);
  margin-inline: auto;
}

/* Named areas only where the footer is a single row of columns (≥1024px) */
@media (min-width: 1024px) {
  #buildero-footer .pie-footer__container {
    grid-template-areas: "brand office quick services social";
  }

  #buildero-footer .pie-footer__brand { grid-area: brand; }
  #buildero-footer .pie-footer__office { grid-area: office; }
  #buildero-footer .pie-footer__quick-links { grid-area: quick; }
  #buildero-footer .pie-footer__services { grid-area: services; }
  #buildero-footer .pie-footer__social { grid-area: social; }
}

#buildero-footer .pie-footer__column {
  min-width: 0;
  padding-inline: var(--pie-footer-col-pad);
}

#buildero-footer .pie-footer__column + .pie-footer__column {
  border-left: 1px solid var(--pie-border);
}

#buildero-footer .pie-footer__brand {
  padding-left: 0;
}

#buildero-footer .pie-footer__heading {
  margin: 0 0 24px;
  font-family: var(--pie-footer-font-body);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: #F3EEE6;
  white-space: nowrap;
}

/* Brand */
#buildero-footer .pie-footer__logo {
  display: inline-block;
  width: clamp(150px, 12.5vw, 210px);
}

#buildero-footer .pie-footer__tagline {
  margin: 26px 0 26px;
  font-size: clamp(14px, 1.05vw, 18px);
  line-height: 1.55;
  color: var(--pie-text);
}

/* Office */
#buildero-footer .pie-footer__contact {
  display: grid;
  gap: 26px;
  font-style: normal;
}

#buildero-footer .pie-footer__contact-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

#buildero-footer .pie-footer__contact-item--center {
  align-items: center;
}

#buildero-footer .pie-footer__contact-icon {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--pie-icon-bg);
  color: var(--pie-gold-light);
}

#buildero-footer .pie-footer__contact-icon .pie-footer__icon {
  width: 20px;
  height: 20px;
}

#buildero-footer .pie-footer__contact-text {
  margin: 0;
  padding-top: 2px;
  font-size: clamp(14px, 0.95vw, 16px);
  line-height: 1.6;
  color: var(--pie-text);
  overflow-wrap: anywhere;
}

#buildero-footer .pie-footer__contact-link {
  transition: color var(--pie-footer-dur) var(--pie-footer-ease);
}

#buildero-footer .pie-footer__contact-link--email {
  font-size: 1.06em;
}

#buildero-footer .pie-footer__contact-link:hover {
  color: var(--pie-gold-light);
}

/* Quick links + services */
#buildero-footer .pie-footer__links {
  display: grid;
  gap: 6px;
}

#buildero-footer .pie-footer__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 34px;
  padding-block: 2px;
  font-size: clamp(14px, 0.92vw, 15.5px);
  line-height: 1.4;
  color: var(--pie-text);
  transition: color var(--pie-footer-dur) var(--pie-footer-ease);
}

#buildero-footer .pie-footer__chevron {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  color: var(--pie-muted);
  transition:
    color var(--pie-footer-dur) var(--pie-footer-ease),
    transform var(--pie-footer-dur) var(--pie-footer-ease);
}

#buildero-footer .pie-footer__link:hover,
#buildero-footer .pie-footer__link:focus-visible {
  color: var(--pie-gold-light);
}

#buildero-footer .pie-footer__link:hover .pie-footer__chevron,
#buildero-footer .pie-footer__link:focus-visible .pie-footer__chevron {
  color: var(--pie-gold-light);
  transform: translateX(4px);
}

/* Social */
#buildero-footer .pie-footer__social.pie-footer__column {
  padding-right: 0;
}

#buildero-footer .pie-footer__social-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

#buildero-footer .pie-footer__social-link {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(215, 212, 206, 0.45);
  border-radius: 50%;
  color: var(--pie-white);
  transition:
    color var(--pie-footer-dur) var(--pie-footer-ease),
    border-color var(--pie-footer-dur) var(--pie-footer-ease),
    background-color var(--pie-footer-dur) var(--pie-footer-ease),
    transform var(--pie-footer-dur) var(--pie-footer-ease);
}

#buildero-footer .pie-footer .pie-footer__social-link:focus-visible {
  border-radius: 50%;
}

#buildero-footer .pie-footer__social-link .pie-footer__icon {
  width: 19px;
  height: 19px;
}

#buildero-footer .pie-footer__social-link:hover,
#buildero-footer .pie-footer__social-link:focus-visible {
  color: var(--pie-gold-light);
  border-color: var(--pie-gold);
  background-color: rgba(217, 154, 0, 0.1);
  transform: translateY(-3px);
}

/* --------------------------------------------------------------------------
   Copyright bar
   -------------------------------------------------------------------------- */
#buildero-footer .pie-footer__bottom {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(16px, 2.4vw, 38px);
  padding: 26px var(--pie-footer-gutter);
  border-top: 1px solid var(--pie-border);
  background: #15130F;
}

#buildero-footer .pie-footer__bottom-line {
  flex: 0 0 auto;
  width: 52px;
  height: 2px;
  background: var(--pie-gold);
}

#buildero-footer .pie-footer__copyright {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  text-align: center;
  color: var(--pie-muted);
}

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

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

/* --------------------------------------------------------------------------
   iPad landscape — 1024–1199px
   -------------------------------------------------------------------------- */
@media (max-width: 1199px) {
  #buildero-footer .pie-footer {
    --pie-cta-height: 320px;
    --pie-cta-content-width: 52%;
    --pie-cta-image-left: 42%;
    --pie-cta-image-clip: polygon(6.9% 0, 75.9% 0, 55.2% 100%, 31% 100%);
    --pie-cta-edge-clip: polygon(46% 0, calc(46% + 3px) 0, calc(59.98% + 3px) 100%, 59.98% 100%);
    --pie-cta-gold-clip: polygon(86% 0, 100% 0, 100% 74%, 74% 100%);
    --pie-footer-gutter: clamp(20px, 4.5vw, 56px);
    --pie-footer-col-pad: 18px;
  }

  #buildero-footer .pie-footer__values-body {
    top: 22%;
    gap: 22px;
  }

  #buildero-footer .pie-footer__values-list {
    gap: 8px;
    letter-spacing: 0.24em;
  }

  #buildero-footer .pie-footer__contact-text {
    font-size: 14px;
  }

  #buildero-footer .pie-footer__contact-icon {
    width: 42px;
    height: 42px;
  }

  #buildero-footer .pie-footer__contact-item {
    gap: 12px;
  }

  #buildero-footer .pie-footer__social-list {
    gap: 10px;
  }

  #buildero-footer .pie-footer__social-link {
    width: 44px;
    height: 44px;
  }
}

/* iPad landscape only: social moves under the brand, leaving four roomier columns */
@media (min-width: 1024px) and (max-width: 1199px) {
  #buildero-footer .pie-footer__container {
    grid-template-columns: minmax(150px, 0.9fr) minmax(0, 1.35fr) minmax(0, 1.05fr) minmax(0, 1.25fr);
    grid-template-areas:
      "brand office quick services"
      "social office quick services";
    grid-template-rows: auto 1fr;
  }

  #buildero-footer .pie-footer__social.pie-footer__column {
    padding: 8px 0 0;
    border-left: 0;
  }
}

/* --------------------------------------------------------------------------
   iPad portrait — 768–1023px
   CTA stacks: text above an angled photograph + gold panel strip.
   Footer: brand | office | social, then quick links | services.
   -------------------------------------------------------------------------- */
@media (max-width: 1023px) {
  #buildero-footer .pie-footer {
    --pie-cta-image-left: 0%;
    --pie-cta-image-clip: polygon(0 0, 74% 0, 62% 100%, 0 100%);
    --pie-cta-gold-clip: polygon(74% 0, 100% 0, 100% 100%, 62% 100%);
  }

  #buildero-footer .pie-footer__cta {
    display: block;
    min-height: 0;
  }

  #buildero-footer .pie-footer__cta::after,
  #buildero-footer .pie-footer__cta-media::after {
    display: none;
  }

  #buildero-footer .pie-footer__cta-content {
    width: 100%;
    padding: 56px var(--pie-footer-gutter) 40px;
  }

  #buildero-footer .pie-footer__cta-title {
    font-size: clamp(34px, 5.6vw, 52px);
  }

  #buildero-footer .pie-footer__cta-media {
    position: relative;
    height: clamp(240px, 36vw, 330px);
    border-bottom: 1px solid var(--pie-border);
  }

  #buildero-footer .pie-footer__values-body {
    top: 50%;
    transform: translateY(-50%);
  }

  #buildero-footer .pie-footer__values-list {
    font-size: 12px;
    gap: 10px;
  }

  /* Row 1: brand | office. Row 2: quick links | services | social. */
  #buildero-footer .pie-footer__container {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    row-gap: 40px;
  }

  #buildero-footer .pie-footer__brand {
    grid-column: span 5;
  }

  #buildero-footer .pie-footer__office {
    grid-column: span 7;
  }

  #buildero-footer .pie-footer__quick-links {
    grid-column: 1 / span 4;
    padding-left: 0;
  }

  #buildero-footer .pie-footer__services {
    grid-column: span 5;
  }

  #buildero-footer .pie-footer__social {
    grid-column: span 3;
    padding-right: 0;
  }

  #buildero-footer .pie-footer__quick-links,
  #buildero-footer .pie-footer__services,
  #buildero-footer .pie-footer__social {
    padding-top: 36px;
    border-top: 1px solid var(--pie-border);
  }

  #buildero-footer .pie-footer__quick-links.pie-footer__column {
    border-left: 0;
  }

  #buildero-footer .pie-footer__social-list {
    gap: 10px;
  }
}

/* --------------------------------------------------------------------------
   Mobile landscape — 576–767px
   -------------------------------------------------------------------------- */
@media (max-width: 767px) {
  #buildero-footer .pie-footer__container {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 0;
  }

  #buildero-footer .pie-footer__column {
    grid-column: auto;
    padding: 32px 0;
  }

  #buildero-footer .pie-footer__column + .pie-footer__column {
    border-left: 0;
    border-top: 1px solid var(--pie-border);
  }

  #buildero-footer .pie-footer__brand {
    grid-column: 1 / -1;
    padding-top: 8px;
  }

  #buildero-footer .pie-footer__office {
    grid-column: 1 / -1;
  }

  #buildero-footer .pie-footer__quick-links {
    grid-column: 1;
    padding-right: 16px;
    padding-top: 32px;
  }

  #buildero-footer .pie-footer__services.pie-footer__column {
    grid-column: 2;
    padding-left: 16px;
    padding-top: 32px;
    border-left: 1px solid var(--pie-border);
  }

  #buildero-footer .pie-footer__social {
    grid-column: 1 / -1;
    padding-bottom: 8px;
  }

  #buildero-footer .pie-footer__social-list {
    flex-direction: row;
  }

  #buildero-footer .pie-footer__contact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #buildero-footer .pie-footer__contact-item:first-child {
    grid-row: span 2;
  }

  #buildero-footer .pie-footer__main-lineart {
    width: 380px;
  }
}

/* --------------------------------------------------------------------------
   Mobile portrait — below 576px
   CTA: headline → photograph → gold value band.
   Footer: single column; quick links in two short columns.
   -------------------------------------------------------------------------- */
@media (max-width: 575px) {
  #buildero-footer .pie-footer {
    --pie-footer-gutter: 20px;
    --pie-cta-image-clip: polygon(0 0, 100% 0, 100% 84%, 0 100%);
  }

  #buildero-footer .pie-footer__cta-content {
    padding-block: 44px 32px;
  }

  #buildero-footer .pie-footer__cta-lineart {
    left: auto;
    right: -260px;
    top: -60px;
    bottom: auto;
    width: 460px;
  }

  #buildero-footer .pie-footer__cta-media {
    display: flex;
    flex-direction: column;
    height: auto;
    background: linear-gradient(200deg, #8F5C0E 0%, var(--pie-gold-dark) 45%, var(--pie-gold) 100%);
  }

  #buildero-footer .pie-footer__cta-image {
    position: relative;
    height: clamp(200px, 58vw, 280px);
  }

  #buildero-footer .pie-footer__cta-values {
    position: relative;
    inset: auto;
    clip-path: none;
    background: none;
    padding: 18px var(--pie-footer-gutter) 28px;
  }

  #buildero-footer .pie-footer__values-list {
    position: static;
    transform: none;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 22px;
    font-size: 11.5px;
    letter-spacing: 0.22em;
  }

  #buildero-footer .pie-footer__values-body {
    position: static;
    transform: none;
    align-items: center;
    gap: 16px;
  }

  #buildero-footer .pie-footer__container {
    grid-template-columns: minmax(0, 1fr);
  }

  #buildero-footer .pie-footer__column,
  #buildero-footer .pie-footer__quick-links,
  #buildero-footer .pie-footer__services {
    grid-column: 1;
    padding-inline: 0;
  }

  #buildero-footer .pie-footer__services.pie-footer__column {
    grid-column: 1;
    padding-inline: 0;
    border-left: 0;
  }

  #buildero-footer .pie-footer__quick-links .pie-footer__links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 24px;
  }

  #buildero-footer .pie-footer__contact {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }

  #buildero-footer .pie-footer__contact-item:first-child {
    grid-row: auto;
  }

  #buildero-footer .pie-footer__bottom {
    gap: 14px;
    padding-block: 22px;
  }

  #buildero-footer .pie-footer__bottom-line {
    width: 28px;
  }

  #buildero-footer .pie-footer__copyright {
    font-size: 13px;
    text-wrap: balance;
  }
}

/* --------------------------------------------------------------------------
   Reduced motion
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  #buildero-footer .pie-footer *,
  #buildero-footer .pie-footer *::before,
  #buildero-footer .pie-footer *::after {
    transition-duration: 0.01ms !important;
  }

  #buildero-footer .pie-footer__social-link:hover,
  #buildero-footer .pie-footer__social-link:focus-visible,
  #buildero-footer .pie-footer__link:hover .pie-footer__chevron,
  #buildero-footer .pie-footer__link:focus-visible .pie-footer__chevron {
    transform: none;
  }

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


/* ==========================================================================
   Buildero Theme additions (WordPress integration)
   ========================================================================== */

/* Uploaded logos with a taller aspect ratio stay in proportion */
#buildero-footer .pie-footer__logo img {
  max-height: 120px;
  object-fit: contain;
  object-position: left center;
}

/* Text fallback when no logo image is available at all */
#buildero-footer .pie-footer__logo-text {
  display: block;
  color: var(--pie-white);
  font-family: var(--pie-footer-font-display);
  font-size: 26px;
  font-weight: 600;
  line-height: 1.15;
}

/* Some columns switched off in the Customizer: the named five-column grid
   no longer applies, so the visible columns share the row evenly
   (--pie-footer-cols is set inline by footer-main.php). */
#buildero-footer .pie-footer__container--partial {
  grid-template-columns: repeat(var(--pie-footer-cols, 4), minmax(0, 1fr));
  grid-template-areas: none;
  grid-template-rows: auto;
}

#buildero-footer .pie-footer__container--partial > .pie-footer__column {
  grid-area: auto;
  grid-column: auto;
}

@media (max-width: 1023px) {
  #buildero-footer .pie-footer__container--partial {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 36px 32px;
  }

  #buildero-footer .pie-footer__container--partial > .pie-footer__column {
    padding: 0;
    border: 0;
  }
}

@media (max-width: 575px) {
  #buildero-footer .pie-footer__container--partial {
    grid-template-columns: minmax(0, 1fr);
  }
}
