/*
 * Footer styles
 *
 * Footer-related CSS separated from assets/css/homepage.css.
 * Loaded site-wide because footer.php is included on every page.
 */

/* 26. Footer  -  Devsinc-style layout */
.pkf {
  background: #0A0A0A;
  color: #fff;
  font-family: "Metrophobic", sans-serif;
}

.pkf-wrap {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

@media (min-width: 640px) {
  .pkf-wrap {
    padding: 0 2rem;
  }
}

@media (min-width: 768px) {
  .pkf-wrap {
    padding: 0 3rem;
  }
}


/* ── TRUST BAR ── */
.pkf-trust {
  padding: 1.5rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.pkf-trust__row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.pkf-trust__item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.pkf-trust__icon {
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #C92F25;
}

.pkf-trust__icon svg {
  width: 18px;
  height: 18px;
}

.pkf-trust__item div {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.pkf-trust__item strong {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #fff;
}

.pkf-trust__item span {
  font-size: 0.6875rem;
  color: rgba(255, 255, 255, 0.5);
}

/* ── MAIN NAV GRID ── */
.pkf-main {
  padding: 3.5rem 0 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.pkf-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.pkf-acc {
  border: 0;
}

.pkf-acc-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
  cursor: pointer;
  list-style: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.pkf-acc-head::-webkit-details-marker {
  display: none;
}

.pkf-acc-head span {
  font-size: 0.9375rem;
  font-weight: 500;
  color: #fff;
  letter-spacing: -0.005em;
}

.pkf-acc-chev {
  width: 12px;
  height: 12px;
  color: rgba(255, 255, 255, 0.5);
  transition: transform 0.25s ease;
}

.pkf-acc[open] .pkf-acc-chev {
  transform: rotate(180deg);
}

.pkf-acc-body {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  padding: 1rem 0 1.25rem;
}

.pkf-acc-body a {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.55);
  text-decoration: none;
  transition: color 0.2s ease, transform 0.2s ease;
}

.pkf-acc-body a:hover {
  color: #fff;
  transform: translateX(3px);
}

/* Newsletter column */
.pkf-col--newsletter {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.pkf-newsletter-title {
  font-size: 0.9375rem;
  font-weight: 500;
  color: #fff;
  margin: 0;
}

.pkf-newsletter-intro {
  font-size: 0.8125rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.55);
  margin: 0;
}

.pkf-newsletter-form {
  margin: 0;
}

.pkf-newsletter-form p {
  margin: 0 !important;
  width: 100%;
}

.pkf-newsletter-form br {
  display: none;
}

.pkf-newsletter-form .wpcf7-form-control-wrap {
  display: block;
  width: 100%;
}

.pkf-newsletter-form input:not([type="submit"]) {
  display: block;
  width: 100%;
  padding: 0.65rem 0.85rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  font-size: 0.8125rem;
  font-family: "Metrophobic", sans-serif;
  margin-bottom: 0.5rem;
  box-sizing: border-box;
}

.pkf-newsletter-form input::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

.pkf-newsletter-form input[type="submit"] {
  display: block;
  width: 100%;
  padding: 0.65rem 1rem;
  border-radius: 8px;
  border: none;
  background: #600000;
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.pkf-newsletter-form input[type="submit"]:hover {
  background: #4A0000;
}

.pkf-newsletter-note {
  font-size: 0.6875rem;
  color: rgba(255, 255, 255, 0.4);
  margin: 0;
}

/* ── PARTNERS / RECOGNITIONS / OFFICES rows ── */
.pkf-row {
  padding: 2rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.pkf-row-label {
  display: block;
  font-size: 0.6875rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  font-weight: 600;
  margin-bottom: 1rem;
}

/* ── Partners + Recognitions side by side ── */
.pkf-pr-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: start;
}

.pkf-pr-col {
  display: flex;
  flex-direction: column;
}

.pkf-logos {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 0.5rem;
}

.pkf-logos--badges {
  gap: 0.5rem;
}

.pkf-logo-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 38px;
  min-width: 76px;
  padding: 0 0.7rem;
  background: rgba(255, 255, 255, 0.94);
  border-radius: 8px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.pkf-logo-box img {
  max-height: 20px;
  max-width: 68px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.pkf-logo-ph {
  font-family: "Domine", serif;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #600000;
  letter-spacing: 0.02em;
}

/* Ensure both column labels align */
.pkf-pr-col .pkf-row-label {
  margin-bottom: 1rem;
  line-height: 1;
  min-height: 1rem;
}

/* Recognition badges  -  bigger, dark boxes */
.pkf-logo-box--badge {
  height: 52px;
  min-width: 62px;
  padding: 0 0.55rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  transition: background-color 0.25s ease, border-color 0.25s ease;
}

.pkf-logo-box--badge img {
  max-height: 38px;
  max-width: 62px;
  opacity: 0.95;
}

.pkf-logo-box--badge:hover {
  background: rgba(255, 255, 255, 0.10);
  border-color: rgba(255, 255, 255, 0.16);
}

.pkf-logo-box--badge .pkf-logo-ph {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-family: "Metrophobic", sans-serif;
}

/* Desktop  -  side by side (grid already set above with divider) */
@media (min-width: 900px) {
  .pkf-pr-grid {
    grid-template-columns: 1.2fr 1fr;
    gap: 0;
    align-items: start;
  }

  .pkf-pr-col:first-child {
    padding-right: 2.5rem;
  }

  .pkf-pr-col:nth-child(2) {
    padding-left: 2.5rem;
    border-left: 1px solid rgba(255, 255, 255, 0.08);
  }
}

/* Desktop  -  side by side */


/* Offices */
.pkf-offices {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.pkf-office {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.pkf-office-country {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.9375rem;
  color: #fff;
  font-weight: 500;
}

.pkf-office-country img {
  border-radius: 2px;
}

.pkf-office-addr {
  font-size: 0.8125rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.55);
  margin: 0;
}

/* ── LEGAL BAR ── */
.pkf-legal {
  padding: 1.75rem 0;
}

.pkf-legal-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
}

.pkf-legal-left,
.pkf-legal-right {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem 1.25rem;
}

.pkf-legal-left span,
.pkf-legal-left a,
.pkf-legal-right a {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  transition: color 0.2s ease;
}

.pkf-legal-left a:hover,
.pkf-legal-right a:hover {
  color: #fff;
}

/* ── Desktop ── */
@media (min-width: 640px) {
  .pkf-trust__row {
    grid-template-columns: repeat(4, 1fr);
  }

  .pkf-offices {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 768px) {
  .pkf-main {
    padding: 5rem 0 3rem;
  }

  .pkf-grid {
    grid-template-columns: repeat(3, 1fr) 1.4fr;
    gap: 3rem;
    align-items: start;
  }

  .pkf-acc-head {
    cursor: default;
    padding-bottom: 1rem;
  }

  .pkf-acc-head::-webkit-details-marker {
    display: none;
  }

  .pkf-acc-chev {
    display: none;
  }

  .pkf-acc-body {
    padding: 0;
  }

  .pkf-legal-inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

/* Partner logos from ACF  -  styled to sit in white boxes */
/* Partner logos  -  actual ACF structure */
.pkf-pr-col--partners .pkf-logos>p {
  display: none !important;
}

.pkf-pr-col--partners .pkf-logos br {
  display: none !important;
}

.pkf-pr-col--partners .pkf-logos>div {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 0.5rem !important;
  width: 100% !important;
  margin: 0 !important;
}

.pkf-pr-col--partners .pkf-logos a {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  height: 44px;
  min-width: 84px;
  padding: 0 0.7rem;
  background: #fff;
  border-radius: 8px;
  margin: 0 !important;
  text-decoration: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.pkf-pr-col--partners .pkf-logos a:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}

.pkf-pr-col--partners .pkf-logos img {
  max-height: 22px !important;
  max-width: 72px !important;
  width: auto !important;
  height: auto !important;
  object-fit: contain;
  margin: 0 !important;
  display: block;
  /* override Tailwind h-14 w-14 h-20 w-36 */
}

/* ============================================ */
/* 64. Footer recognitions  -  dark surface        */
/* Same treatment as partner logo boxes, but     */
/* dark. Makes the badges read as distinct tiles */
/* on the black footer.                          */
/* ============================================ */

.pkf-logo-box--badge {
  background: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
}

.pkf-logo-box--badge:hover {
  background: #1A1A1A !important;
  border-color: rgba(255, 255, 255, 0.24) !important;
}

.pkf-logo-box--badge img {
  opacity: 1 !important;
}

/* ============================================ */
/* 65. Footer logos  -  transparent tiles          */
/* Both Partners and Recognitions sit directly   */
/* on the black footer, no tile background.      */
/* ============================================ */

/* Partner logo boxes */
.pkf-pr-col--partners .pkf-logos a {
  background: transparent !important;
  border: none !important;
}

.pkf-pr-col--partners .pkf-logos a:hover {
  background: transparent !important;
  box-shadow: none !important;
  transform: none !important;
}

/* Recognition tiles */
.pkf-logo-box--badge {
  background: transparent !important;
  border: none !important;
}

.pkf-logo-box--badge:hover {
  background: transparent !important;
  border: none !important;
}

/* ============================================ */
/* 66. Footer logos  -  light grey bubbles         */
/* Both Partners and Recognitions get a subtle   */
/* grey pill background so they read as tiles    */
/* without stealing focus.                        */
/* ============================================ */

/* Partner boxes */
.pkf-pr-col--partners .pkf-logos a {
  background: rgba(255, 255, 255, 0.06) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 10px !important;
  transition: background-color 0.25s ease, border-color 0.25s ease !important;
}

.pkf-pr-col--partners .pkf-logos a:hover {
  background: rgba(255, 255, 255, 0.10) !important;
  border-color: rgba(255, 255, 255, 0.16) !important;
}

/* Recognition tiles */
.pkf-logo-box--badge {
  background: rgba(255, 255, 255, 0.06) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 10px !important;
  transition: background-color 0.25s ease, border-color 0.25s ease !important;
}

.pkf-logo-box--badge:hover {
  background: rgba(255, 255, 255, 0.10) !important;
  border-color: rgba(255, 255, 255, 0.16) !important;
}

/* ============================================ */
/* 68. Footer newsletter  -  phone field + dropdown */
/* One consolidated block. Dark theme, readable   */
/* dropdown that's wider than the narrow column.  */
/* ============================================ */

/* Make the wrapper the positioning context */
html body .pkf-newsletter-form .intl-tel-input {
  width: 100% !important;
  max-width: 100% !important;
  display: block !important;
  position: relative !important;
  margin-bottom: 1rem !important;
}

/* Flag button  -  solid black, white text */
html body .pkf-newsletter-form .intl-tel-input .flag-container,
html body .pkf-newsletter-form .intl-tel-input .selected-flag {
  background-color: #000000 !important;
  background-image: none !important;
  border-right: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 8px 0 0 8px !important;
}

html body .pkf-newsletter-form .intl-tel-input .selected-flag:hover,
html body .pkf-newsletter-form .intl-tel-input .selected-flag:focus,
html body .pkf-newsletter-form .intl-tel-input .selected-flag.open {
  background-color: #111111 !important;
}

/* Dial code  -  white */
html body .pkf-newsletter-form .intl-tel-input .selected-dial-code {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  font-weight: 500 !important;
}

/* Arrow  -  white */
html body .pkf-newsletter-form .intl-tel-input .iti-arrow {
  border-top-color: #ffffff !important;
}

/* Flag image  -  colored */
html body .pkf-newsletter-form .intl-tel-input .iti-flag {
  filter: none !important;
  -webkit-filter: none !important;
  opacity: 1 !important;
}

/* Input  -  dark, padded past flag */
html body .pkf-newsletter-form .intl-tel-input input {
  background: rgba(255, 255, 255, 0.04) !important;
  color: #ffffff !important;
  padding-left: 84px !important;
  width: 100% !important;
}

html body .pkf-newsletter-form .intl-tel-input input::placeholder {
  color: rgba(255, 255, 255, 0.4) !important;
}

/* ============================================ */
/* Dropdown  -  wider than the field, clean dark    */
/* ============================================ */

/* The list is wide enough for full country names + dial code, anchored at left */
html body .pkf-newsletter-form .intl-tel-input .country-list {
  width: 320px !important;
  min-width: 320px !important;
  max-width: min(90vw, 380px) !important;
  left: 0 !important;
  right: auto !important;
  margin: 4px 0 0 0 !important;
  padding: 6px !important;
  box-sizing: border-box !important;
  background-color: #0A0A0A !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 12px !important;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6) !important;
  white-space: normal !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  max-height: 280px !important;
}

/* Country row  -  clean, roomy, hover */
html body .pkf-newsletter-form .intl-tel-input .country-list .country,
html body .pkf-newsletter-form .intl-tel-input .country-list li.country {
  display: flex !important;
  align-items: center !important;
  gap: 0.65rem !important;
  padding: 0.6rem 0.7rem !important;
  border-radius: 8px !important;
  white-space: nowrap !important;
  background-color: transparent !important;
  cursor: pointer !important;
  transition: background-color 0.15s ease !important;
}

html body .pkf-newsletter-form .intl-tel-input .country-list .country:hover,
html body .pkf-newsletter-form .intl-tel-input .country-list .country.highlight,
html body .pkf-newsletter-form .intl-tel-input .country-list .country.active,
html body .pkf-newsletter-form .intl-tel-input .country-list .country.preferred {
  background-color: rgba(255, 255, 255, 0.08) !important;
}

/* Flag box */
html body .pkf-newsletter-form .intl-tel-input .country-list .flag-box {
  flex: 0 0 20px !important;
  width: 20px !important;
  height: 15px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin: 0 !important;
}

html body .pkf-newsletter-form .intl-tel-input .country-list .flag-box .iti-flag {
  width: 20px !important;
  height: 15px !important;
  display: block !important;
}

/* Country name  -  white, ellipsis if long */
html body .pkf-newsletter-form .intl-tel-input .country-list .country-name {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  font-size: 0.8125rem !important;
  line-height: 1.3 !important;
  flex: 1 !important;
  min-width: 0 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
  margin: 0 !important;
}

/* Dial code  -  muted, right-aligned, always visible */
html body .pkf-newsletter-form .intl-tel-input .country-list .dial-code {
  color: rgba(255, 255, 255, 0.55) !important;
  -webkit-text-fill-color: rgba(255, 255, 255, 0.55) !important;
  font-size: 0.75rem !important;
  font-weight: 500 !important;
  margin-left: auto !important;
  padding-left: 0.65rem !important;
  flex-shrink: 0 !important;
}

/* Divider */
html body .pkf-newsletter-form .intl-tel-input .country-list .divider {
  background-color: rgba(255, 255, 255, 0.06) !important;
  border-color: rgba(255, 255, 255, 0.06) !important;
  padding: 3px 0 !important;
  margin: 4px 0 !important;
  list-style: none !important;
}

/* Scrollbar */
html body .pkf-newsletter-form .intl-tel-input .country-list::-webkit-scrollbar {
  width: 6px !important;
}

html body .pkf-newsletter-form .intl-tel-input .country-list::-webkit-scrollbar-track {
  background: transparent !important;
}

html body .pkf-newsletter-form .intl-tel-input .country-list::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15) !important;
  border-radius: 9999px !important;
}

html body .pkf-newsletter-form .intl-tel-input .country-list::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.28) !important;
}

/* ============================================ */
/* Space between the phone field and the submit   */
/* ============================================ */
html body .pkf-newsletter-form .wpcf7-form-control-wrap[data-name*="phone"] {
  display: block !important;
  margin-bottom: 1.1rem !important;
}

html body .pkf-newsletter-form p {
  margin-bottom: 1rem !important;
}

html body .pkf-newsletter-form input[type="submit"] {
  margin-top: 0.5rem !important;
}

/* ============================================ */
/* 80. Footer Newsletter Form - Force Stack     */
/* Ensures fields stack vertically regardless   */
/* of the CF7 markup from the new database.     */
/* ============================================ */

/* Force the form to be a vertical column */
.pkf-newsletter-form form {
  display: flex !important;
  flex-direction: column !important;
  gap: 0.75rem !important;
  margin: 0 !important;
}

/* Force wrappers to take full width */
.pkf-newsletter-form p,
.pkf-newsletter-form .wpcf7-form-control-wrap {
  display: block !important;
  width: 100% !important;
  margin: 0 !important;
}

/* Force inputs to take full width */
.pkf-newsletter-form input[type="text"],
.pkf-newsletter-form input[type="email"],
.pkf-newsletter-form input[type="tel"],
.pkf-newsletter-form .intl-tel-input {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
}

/* Fix the submit button width */
.pkf-newsletter-form input[type="submit"] {
  display: block !important;
  width: 100% !important;
  margin: 0 !important;
}

/* Hide any stray <br> tags causing issues */
.pkf-newsletter-form br {
  display: none !important;
}

/* ============================================ */
/* Footer office addresses  -  clickable map links */
/* ============================================ */

.pkf-office-addr a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
  display: inline-block;
}

.pkf-office-addr a:hover {
  color: #ffffff;
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.4);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.pkf-office-addr a:focus-visible {
  outline: 2px solid #FF8B8B;
  outline-offset: 2px;
  border-radius: 2px;
}

/* ============================================ */
/* Footer  -  disable dropdown on mobile           */
/* Keeps columns open and removes the toggle     */
/* ============================================ */
@media (max-width: 767px) {
  .pkf-acc-head {
    pointer-events: none !important;
    /* Prevents clicking */
    cursor: default !important;
  }

  .pkf-acc-chev {
    display: none !important;
    /* Hides the arrow */
  }

  .pkf-acc-body {
    display: flex !important;
    /* Forces the links to show */
    padding-bottom: 1.5rem !important;
  }
}

/* ============================================ */
/* Footer mobile cleanup                         */
/* ============================================ */
@media (max-width: 767px) {
  /* Footer cleanup */
  .pkf-main {
    padding-top: 2rem !important;
    padding-bottom: 1.5rem !important;
  }

  .pkf-legal-inner {
    flex-direction: column !important;
    text-align: center !important;
    gap: 0.75rem !important;
  }

  .pkf-legal-left,
  .pkf-legal-right {
    justify-content: center !important;
  }
}
