/* =========================================================
   P.A.R.T. Texas Custom Footer — WP Code 34
   ========================================================= */

.parttexas-site-footer,
.parttexas-site-footer * {
  box-sizing: border-box;
}

.parttexas-site-footer {
  width: 100vw !important;
  max-width: 100vw !important;
  margin-left: calc(50% - 50vw) !important;
  margin-right: calc(50% - 50vw) !important;
  position: relative;
  z-index: 20;
  overflow: hidden;
  font-family: Georgia, "Times New Roman", serif;
  color: #fff8e8;

  background:
    radial-gradient(circle at 16% 18%, rgba(255,255,255,0.22), transparent 25%),
    radial-gradient(circle at 86% 72%, rgba(255,255,255,0.14), transparent 28%),
    linear-gradient(
      90deg,
      #3f8f46 0%,
      #f4c542 35%,
      #f28c28 67%,
      #b8322a 100%
    );

  border-top: 3px solid rgba(255, 248, 232, 0.78);
  box-shadow: 0 -8px 26px rgba(0, 0, 0, 0.2);
}

.parttexas-site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle, rgba(255,255,255,0.22) 1px, transparent 1.5px);
  background-size: 42px 42px;
  opacity: 0.22;
  pointer-events: none;
}

.parttexas-site-footer::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 3px;
  background: linear-gradient(90deg, #1f7a38, #f4c542, #f28c28, #b8322a);
  box-shadow: 0 0 12px rgba(244, 197, 66, 0.75);
}

.parttexas-footer-inner {
  width: min(1560px, 100%);
  margin: 0 auto;
  padding: 30px 38px 24px;
  position: relative;
  z-index: 2;

  display: grid;
  grid-template-columns: minmax(300px, 1.1fr) minmax(420px, 1.6fr) minmax(230px, 0.9fr);
  align-items: center;
  gap: 28px;
}

.parttexas-footer-brand {
  display: flex;
  align-items: center;
  gap: 18px;
  min-width: 0;
}

.parttexas-footer-logo-wrap {
  display: inline-flex;
  text-decoration: none;
  flex: 0 0 auto;
}

.parttexas-footer-logo {
  width: 108px;
  height: auto;
  display: block;
  border-radius: 10px;
  box-shadow: 0 5px 18px rgba(0, 0, 0, 0.28);
}

.parttexas-footer-brand-text {
  min-width: 0;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.34);
}

.parttexas-footer-title {
  font-size: clamp(17px, 1.3vw, 21px);
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.parttexas-footer-tagline {
  margin-top: 6px;
  color: #fff3bd;
  font-size: clamp(15px, 1.05vw, 18px);
  line-height: 1.1;
  font-style: italic;
}

.parttexas-footer-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px 22px;
  flex-wrap: wrap;
  text-align: center;
}

.parttexas-footer-links a,
.parttexas-footer-contact a {
  color: #fff8e8;
  text-decoration: none;
  font-size: 15px;
  font-weight: 700;
  white-space: nowrap;
  text-shadow: 0 2px 7px rgba(0, 0, 0, 0.36);
  transition: color 0.2s ease, transform 0.2s ease, text-shadow 0.2s ease;
}

.parttexas-footer-links a:hover,
.parttexas-footer-contact a:hover {
  color: #ffffff;
  transform: translateY(-1px);
  text-shadow:
    0 0 10px rgba(255, 248, 232, 0.95),
    0 2px 7px rgba(0, 0, 0, 0.42);
}

.parttexas-footer-contact {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.parttexas-footer-contact a:first-child {
  color: #fff3bd;
  font-weight: 900;
  letter-spacing: 0.01em;
}

.parttexas-footer-bottom {
  width: min(1500px, calc(100% - 76px));
  margin: 0 auto;
  padding: 18px 0 24px;
  position: relative;
  z-index: 2;
  border-top: 1px solid rgba(255, 248, 232, 0.55);
  text-align: center;
}

.parttexas-footer-bottom p {
  margin: 6px 0;
  color: #fff8e8;
  font-size: 15px;
  line-height: 1.45;
  text-shadow: 0 2px 7px rgba(0, 0, 0, 0.34);
}

/* Colored PART letters */
.parttexas-footer-tagline .ptx-p,
.parttexas-footer-tagline .ptx-a,
.parttexas-footer-tagline .ptx-r,
.parttexas-footer-tagline .ptx-t {
  font-weight: 900;
  letter-spacing: 0.02em;
  text-shadow:
    0 0 7px rgba(255, 255, 255, 0.6),
    0 2px 6px rgba(0, 0, 0, 0.35);
}

.parttexas-footer-tagline .ptx-p {
  color: #59c28c;
}

.parttexas-footer-tagline .ptx-a {
  color: #f1e261;
}

.parttexas-footer-tagline .ptx-r {
  color: #ef7f2e;
}

.parttexas-footer-tagline .ptx-t {
  color: #c62414;
}

/* Tablet */
@media (max-width: 1100px) {
  .parttexas-footer-inner {
    grid-template-columns: 1fr;
    padding: 28px 22px 22px;
    text-align: center;
    gap: 22px;
  }

  .parttexas-footer-brand {
    justify-content: center;
    flex-wrap: wrap;
  }

  .parttexas-footer-title {
    white-space: normal;
  }

  .parttexas-footer-contact {
    align-items: center;
  }

  .parttexas-footer-bottom {
    width: min(100% - 44px, 900px);
  }
}

/* Mobile */
@media (max-width: 700px) {
  .parttexas-footer-inner {
    padding: 24px 16px 20px;
  }

  .parttexas-footer-logo {
    width: 104px;
  }

  .parttexas-footer-links {
    flex-direction: column;
    gap: 10px;
  }

  .parttexas-footer-links a,
  .parttexas-footer-contact a {
    font-size: 14px;
  }

  .parttexas-footer-bottom {
    width: calc(100% - 32px);
    padding-bottom: 22px;
  }

  .parttexas-footer-bottom p {
    font-size: 14px;
  }
}

/* Footer top-row spacing fix: stop brand text from overlapping links */
@media (min-width: 1101px) {
  .parttexas-footer-inner {
    grid-template-columns: 420px 1fr 300px !important;
    gap: 34px !important;
    align-items: center !important;
  }

  .parttexas-footer-brand {
    justify-content: flex-start !important;
    gap: 16px !important;
  }

  .parttexas-footer-logo {
    width: 100px !important;
  }

  .parttexas-footer-brand-text {
    max-width: 285px !important;
  }

  .parttexas-footer-title {
    font-size: 18px !important;
    line-height: 1.15 !important;
    white-space: normal !important;
  }

  .parttexas-footer-tagline {
    font-size: 16px !important;
    line-height: 1.15 !important;
  }

  .parttexas-footer-links {
    justify-content: center !important;
    gap: 14px 24px !important;
    padding: 0 10px !important;
  }

  .parttexas-footer-contact {
    align-items: flex-end !important;
    text-align: right !important;
  }
}

/* Laptop tightening */
@media (min-width: 1101px) and (max-width: 1450px) {
  .parttexas-footer-inner {
    grid-template-columns: 390px 1fr 280px !important;
    gap: 24px !important;
    padding-left: 32px !important;
    padding-right: 32px !important;
  }

  .parttexas-footer-logo {
    width: 92px !important;
  }

  .parttexas-footer-brand-text {
    max-width: 270px !important;
  }

  .parttexas-footer-title {
    font-size: 17px !important;
  }

  .parttexas-footer-tagline {
    font-size: 15px !important;
  }

  .parttexas-footer-links a,
  .parttexas-footer-contact a {
    font-size: 14px !important;
  }

  .parttexas-footer-links {
    gap: 12px 20px !important;
  }
}
/* Align footer phone number with the footer contact area */
@media (min-width: 1101px) {
  .parttexas-footer-contact a:first-child {
    position: relative !important;
    top: 2px !important;
  }
}
/* Final footer spacing cleanup: reduce extra bottom gap */
.parttexas-footer-bottom {
  padding-top: 14px !important;
  padding-bottom: 14px !important;
}

.parttexas-footer-bottom p {
  margin: 4px 0 !important;
}
/* Stronger footer polish: reduce empty lower space and lower contact info slightly */
@media (min-width: 1101px) {
  .parttexas-footer-inner {
    padding-top: 24px !important;
    padding-bottom: 8px !important;
    align-items: center !important;
  }

  .parttexas-footer-contact {
    transform: translateY(12px) !important;
  }

  .parttexas-footer-bottom {
    padding-top: 10px !important;
    padding-bottom: 10px !important;
  }

  .parttexas-footer-bottom p {
    margin: 3px 0 !important;
  }
}
/* Final footer tightening: reduce lower gap and lightly re-align phone */
@media (min-width: 1101px) {
  .parttexas-footer-inner {
    padding-bottom: 0 !important;
  }

  .parttexas-footer-bottom {
    padding-top: 6px !important;
    padding-bottom: 8px !important;
  }

  .parttexas-footer-bottom p {
    margin: 2px 0 !important;
  }

  .parttexas-footer-contact {
    transform: translateY(8px) !important;
  }
}