/* =========================================================
   ANCOR PROJECTS LIST PAGE
   ========================================================= */

.ancor-projects-page {
  min-height: 70vh;
  padding-top: clamp(92px, 10vw, 132px);
  padding-bottom: 80px;
  background:
    radial-gradient(
      circle at 10% 5%,
      rgba(219, 161, 79, 0.11),
      transparent 32%
    ),
    #FCFCFC;
}

.apl-container {
  width: min(1180px, calc(100% - 38px));
  margin: 0 auto;
}

.apl-hero {
  position: relative;
  overflow: hidden;
  margin-bottom: 25px;
  padding: clamp(27px, 5vw, 54px);
  border: 1px solid rgba(20, 52, 76, 0.09);
  border-radius: 25px;
  background:
    linear-gradient(
      125deg,
      rgba(255, 255, 255, 0.98),
      rgba(246, 240, 229, 0.96)
    );
  box-shadow: 0 18px 55px rgba(17, 42, 61, 0.09);
}

.apl-hero::after {
  content: "";
  position: absolute;
  top: -95px;
  left: -70px;
  width: 250px;
  height: 250px;
  border: 1px solid rgba(211, 154, 76, 0.22);
  border-radius: 50%;
}

.apl-eyebrow {
  position: relative;
  z-index: 1;
  display: inline-block;
  margin-bottom: 11px;
  color: #957A56;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.apl-title {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin: 0;
  color: #212121;
  font-size: clamp(31px, 5vw, 58px);
  font-weight: 850;
  line-height: 1.08;
}

.apl-intro {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 16px 0 0;
  color: #627482;
  font-size: clamp(14px, 1.6vw, 17px);
  line-height: 1.9;
}

.apl-hero-footer {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 13px;
  margin-top: 23px;
}

.apl-count {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 8px 14px;
  border: 1px solid rgba(18, 59, 93, 0.11);
  border-radius: 999px;
  color: #212121;
  font-size: 12px;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.78);
}

.apl-contact-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 9px 17px;
  border-radius: 999px;
  color: #FCFCFC !important;
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
  background: #212121;
  transition:
    transform 160ms ease,
    background 160ms ease;
}

.apl-contact-link:hover {
  transform: translateY(-2px);
  background: #0d2f4b;
}

.apl-toolbar {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) 210px 210px;
  gap: 10px;
  margin-bottom: 18px;
  padding: 12px;
  border: 1px solid rgba(20, 52, 76, 0.08);
  border-radius: 17px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 10px 30px rgba(17, 42, 61, 0.05);
}

.apl-field {
  position: relative;
}

.apl-field input,
.apl-field select {
  width: 100%;
  height: 45px;
  padding: 0 14px;
  border: 1px solid #dfe5e8;
  border-radius: 11px;
  outline: none;
  color: #16384f;
  font-family: inherit;
  font-size: 13px;
  background: #FCFCFC;
  transition:
    border-color 150ms ease,
    box-shadow 150ms ease;
}

.apl-field input:focus,
.apl-field select:focus {
  border-color: #cf9346;
  box-shadow: 0 0 0 3px rgba(207, 147, 70, 0.12);
}

.apl-results-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 26px;
  margin-bottom: 12px;
  color: #778690;
  font-size: 12px;
}

.apl-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 17px;
}

.apl-card {
  position: relative;
  overflow: hidden;
  min-width: 0;
  border: 1px solid rgba(18, 59, 93, 0.09);
  border-radius: 19px;
  background: #FCFCFC;
  box-shadow: 0 14px 36px rgba(17, 42, 61, 0.08);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease;
}

.apl-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 22px 45px rgba(17, 42, 61, 0.14);
}

.apl-card-media {
  position: relative;
  height: 222px;
  overflow: hidden;
  background:
    linear-gradient(135deg, #212121, #2f607e);
}

.apl-card-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 450ms ease;
}

.apl-card:hover .apl-card-image {
  transform: scale(1.045);
}

.apl-card-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: rgba(255, 255, 255, 0.9);
  font-size: 40px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.apl-status {
  position: absolute;
  top: 13px;
  right: 13px;
  max-width: calc(100% - 26px);
  padding: 7px 10px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 999px;
  color: #17384e;
  font-size: 10px;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
}

.apl-card-body {
  padding: 17px;
}

.apl-card-type {
  min-height: 18px;
  margin-bottom: 6px;
  color: #c08230;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.apl-card-title {
  margin: 0;
  overflow: hidden;
  color: #212121;
  font-size: 19px;
  font-weight: 850;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.apl-card-location {
  min-height: 22px;
  margin: 7px 0 0;
  overflow: hidden;
  color: #71818c;
  font-size: 12px;
  line-height: 1.6;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.apl-card-description {
  display: -webkit-box;
  min-height: 63px;
  margin: 12px 0 0;
  overflow: hidden;
  color: #526875;
  font-size: 12px;
  line-height: 1.75;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.apl-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  min-height: 27px;
  margin-top: 13px;
}

.apl-meta-item {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 5px 9px;
  border-radius: 8px;
  color: #536976;
  font-size: 10px;
  font-weight: 750;
  background: #FCFCFC;
}

.apl-card-actions {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid #FCFCFC;
}

.apl-primary-action,
.apl-secondary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 39px;
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 850;
  text-decoration: none;
  transition:
    transform 150ms ease,
    background 150ms ease;
}

.apl-primary-action {
  color: #FCFCFC !important;
  background: #212121;
}

.apl-primary-action:hover {
  transform: translateY(-1px);
  background: #0e304b;
}

.apl-secondary-action {
  border: 1px solid #dce3e7;
  color: #212121 !important;
  background: #FCFCFC;
}

.apl-secondary-action:hover {
  background: #FCFCFC;
}

.apl-loading,
.apl-empty,
.apl-error {
  grid-column: 1 / -1;
  padding: 58px 20px;
  border: 1px dashed #d2dade;
  border-radius: 18px;
  color: #6d7e88;
  text-align: center;
  font-size: 14px;
  background: rgba(255, 255, 255, 0.72);
}

.apl-loading-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin: 0 3px;
  border-radius: 50%;
  background: #c58c42;
  animation: aplPulse 1.1s infinite alternate;
}

.apl-loading-dot:nth-child(2) {
  animation-delay: 0.18s;
}

.apl-loading-dot:nth-child(3) {
  animation-delay: 0.36s;
}

@keyframes aplPulse {
  from {
    opacity: 0.28;
    transform: translateY(0);
  }

  to {
    opacity: 1;
    transform: translateY(-4px);
  }
}

@media (max-width: 940px) {
  .apl-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .apl-toolbar {
    grid-template-columns: 1fr 1fr;
  }

  .apl-toolbar .apl-field:first-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  .ancor-projects-page {
    padding-top: 82px;
    padding-bottom: 55px;
  }

  .apl-container {
    width: min(100% - 22px, 1180px);
  }

  .apl-hero {
    padding: 24px 19px;
    border-radius: 18px;
  }

  .apl-title {
    font-size: 33px;
  }

  .apl-intro {
    font-size: 13px;
  }

  .apl-hero-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .apl-count,
  .apl-contact-link {
    justify-content: center;
    width: 100%;
  }

  .apl-toolbar {
    grid-template-columns: 1fr;
    padding: 9px;
  }

  .apl-toolbar .apl-field:first-child {
    grid-column: auto;
  }

  .apl-grid {
    grid-template-columns: 1fr;
    gap: 13px;
  }

  .apl-card-media {
    height: 205px;
  }

  .apl-card-body {
    padding: 15px;
  }
}


/* =========================================================
   ANCOR PROJECTS — COMPACT SPACING
   ========================================================= */

.ancor-projects-page {
  padding-top: 82px !important;
  padding-bottom: 42px !important;
}

.apl-container {
  width: min(1240px, calc(100% - 24px)) !important;
}

.apl-hero {
  margin-bottom: 14px !important;
  padding: 26px 30px !important;
  border-radius: 18px !important;
}

.apl-eyebrow {
  margin-bottom: 7px !important;
}

.apl-intro {
  margin-top: 10px !important;
  line-height: 1.7 !important;
}

.apl-hero-footer {
  margin-top: 15px !important;
  gap: 8px !important;
}

.apl-toolbar {
  gap: 8px !important;
  margin-bottom: 10px !important;
  padding: 8px !important;
  border-radius: 13px !important;
}

.apl-field input,
.apl-field select {
  height: 41px !important;
}

.apl-results-info {
  min-height: 20px !important;
  margin-bottom: 8px !important;
}

.apl-grid {
  gap: 12px !important;
}

.apl-card {
  border-radius: 15px !important;
}

.apl-card-media {
  height: 195px !important;
}

.apl-card-body {
  padding: 14px !important;
}

.apl-card-title {
  font-size: 17px !important;
}

.apl-card-description {
  min-height: 48px !important;
  margin-top: 8px !important;
  line-height: 1.6 !important;
  -webkit-line-clamp: 2 !important;
}

.apl-card-meta {
  margin-top: 9px !important;
}

.apl-card-actions {
  margin-top: 11px !important;
  padding-top: 10px !important;
}

@media (max-width: 820px) {
  .ancor-projects-page {
    padding-top: 74px !important;
    padding-bottom: 30px !important;
  }

  .apl-container {
    width: calc(100% - 16px) !important;
  }

  .apl-hero {
    margin-bottom: 10px !important;
    padding: 20px 18px !important;
    border-radius: 15px !important;
  }

  .apl-title {
    font-size: 30px !important;
  }

  .apl-intro {
    font-size: 12px !important;
  }

  .apl-toolbar {
    margin-bottom: 8px !important;
    padding: 7px !important;
  }

  .apl-grid {
    gap: 10px !important;
  }

  .apl-card-media {
    height: 185px !important;
  }
}

@media (max-width: 480px) {
  .ancor-projects-page {
    padding-top: 68px !important;
    padding-bottom: 24px !important;
  }

  .apl-container {
    width: calc(100% - 12px) !important;
  }

  .apl-hero {
    padding: 17px 14px !important;
  }

  .apl-title {
    font-size: 27px !important;
  }

  .apl-hero-footer {
    margin-top: 11px !important;
  }

  .apl-count,
  .apl-contact-link {
    min-height: 36px !important;
  }

  .apl-card-media {
    height: 175px !important;
  }

  .apl-card-body {
    padding: 12px !important;
  }
}



/* =========================================================
   ACTIVE PROJECTS LINK IN GLOBAL NAVIGATION
   ========================================================= */

header a[aria-current="page"],
header a.is-active,
.site-header a[aria-current="page"],
.global-header a[aria-current="page"],
.ancor-global-header a[aria-current="page"] {
  color: #957A56 !important;
}

header a[aria-current="page"]::after,
.site-header a[aria-current="page"]::after,
.global-header a[aria-current="page"]::after {
  opacity: 1 !important;
  transform: scaleX(1) !important;
}

footer a[aria-current="page"],
footer a.is-active,
.site-footer a[aria-current="page"],
.global-footer a[aria-current="page"],
.ancor-global-footer a[aria-current="page"] {
  color: #d9a45e !important;
}
