/* Theme overrides & block enhancements */

.custom-logo-link {
  display: inline-block;
  line-height: 1;
}

.custom-logo-link img,
.custom-logo {
  max-height: 80px;
  width: 100%;
}

.site-footer .footer-logo {
  display: block;
  width: auto;
  max-width: 220px;
  max-height: 72px;
  height: auto;
}

.hero-slider-block {
  position: relative;
}

.hero-slider-block .hero-scroll {
  position: absolute;
  bottom: 28px;
  left: 50%;
  width: 1px;
  height: 42px;
  background: rgba(255, 255, 255, 0.55);
  z-index: 5;
}

.hero-slider-block .hero-scroll span {
  display: block;
  height: 17px;
  background: white;
}

.hero-slider-block .hero {
  background-color: #514d40;
  background-position: center 53%;
  background-size: cover;
  background-repeat: no-repeat;
}

.applequist-hero-swiper .swiper-wrapper,
.applequist-hero-swiper .swiper-slide {
  height: auto;
}

.applequist-hero-swiper .swiper-slide {
  width: 100%;
}

.applequist-hero-swiper:not(.swiper-initialized) .swiper-slide:not(:first-child) {
  display: none;
}

/* Ensure custom logo sits cleanly in the translucent header */
.site-header .custom-logo-link {
  max-width: 220px;
}

.story-intro .wp-block-columns {
  align-items: center;
}

.story-intro .story-photo-frame img,
.story-intro .wp-block-image img {
  width: 100%;
  height: auto;
}

.framed-photo img {
  display: block;
}

.applequist-hero-swiper {
  width: 100%;
}

.applequist-hero-swiper .swiper-pagination-bullet {
  background: #fff;
  opacity: 0.55;
}

.applequist-hero-swiper .swiper-pagination-bullet-active {
  background: var(--color-accent, #a4744e);
  opacity: 1;
}

.applequist-hero-swiper .swiper-button-prev,
.applequist-hero-swiper .swiper-button-next {
  color: #fff;
}

.applequist-hero-swiper .swiper-button-prev::after,
.applequist-hero-swiper .swiper-button-next::after {
  font-size: 22px;
}

.page-hero-static {
  background-color: #514d40;
  background-position: center 53%;
  background-size: cover;
  background-repeat: no-repeat;
}

.inner-banner {
  background-position: center 72%;
  background-size: cover;
  background-repeat: no-repeat;
}

.company-logo-img {
  max-width: 100%;
  max-height: 200px;
  width: auto;
  height: auto;
  object-fit: contain;
}

@media (min-width: 992px) {
  .company-grid > div:nth-child(-n + 2) .company-logo-img {
    max-height: 108px;
  }
}

.contact-form-embed {
  max-width: 930px;
  margin: 0 auto;
}

.cognito-placeholder {
  color: #625e57;
  font-size: 14px;
}

.story-intro {
  padding: 72px 0 40px;
}

.page-content-section .story-intro,
.page-content-section .story-history {
  padding-left: 0;
  padding-right: 0;
}

.news-card + .news-card {
  margin-top: 28px;
}

.news-card-content h2 a {
  color: inherit;
  text-decoration: none;
}

.news-card-content h2 a:hover {
  color: var(--color-accent, #a4744e);
}

.team-portrait-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Mission highlight uses em from RichText italic */
.mission-section em,
.mission-section i {
  color: #c29a71;
  font-style: normal;
}

@media (max-width: 991.98px) {
  .applequist-hero-swiper .swiper-button-prev,
  .applequist-hero-swiper .swiper-button-next {
    display: none;
  }
}

.value-card--tan {
  background: #a07a52;
  color: #fff;
}

.value-card--cream {
  background: #e7dcc6;
  color: #3d3428;
}

.value-card--charcoal {
  background: #3c3935;
  color: #fff;
}

.value-card--cream:hover,
.value-card--tan:hover,
.value-card--charcoal:hover {
  color: #fff;
}

button.value-card {
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  cursor: pointer;
}

.value-card.is-active::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  transform: translate(-50%, -100%);
  border-left: 16px solid transparent;
  border-right: 16px solid transparent;
  border-bottom: 14px solid transparent;
	z-index: 999;
	background 0.2s
}

.value-card--tan.is-active::after {
  border-bottom-color: #a07a52;
}

.value-card--cream.is-active::after {
  border-bottom-color: #e7dcc6;
}

.value-card--charcoal.is-active::after {
  border-bottom-color: #3c3935;
}

.value-card--dark.is-active::after {
  border-bottom-color: #51483d;
}

.value-card--mid.is-active::after {
  border-bottom-color: #766858;
}

.value-card--light.is-active::after {
  border-bottom-color: #a08b72;
}
.value-card:hover::after{
border-bottom-color:#37342f;
}
.company-logo--name {
  text-decoration: none;
}

.hero-support {
  margin: 16px auto 0;
  max-width: 740px;
  color: #fff;
  font-size: 18px;
}

.hero-autoplay-toggle {
  position: absolute;
  z-index: 6;
  right: 18px;
  bottom: 18px;
  border: 1px solid rgba(255, 255, 255, 0.75);
  background: rgba(0, 0, 0, 0.25);
  color: #fff;
  font: 600 11px/1 "DM Sans", Arial, sans-serif;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 8px 12px;
}

.team-portrait-frame--empty {
  min-height: 320px;
  background: #1c1a19;
}

html,
body {
  overflow-x: clip;
}

.hero-value-row {
  flex-wrap: wrap;
}

.hero-value-row > .value-card-col {
  flex: 1 1 220px;
  max-width: 100%;
}

.history-tabs {
  display: flex;
  flex-wrap: wrap;
}

.history-tab-col {
  flex: 1 1 160px;
  min-width: 0;
  max-width: 100%;
}

@media (max-width: 767.98px) {
  .history-tabs .nav-link {
    white-space: normal;
    font-size: 16px;
  }
}

a:focus-visible,
button:focus-visible,
.nav-link:focus-visible,
.btn:focus-visible {
  outline: 2px solid #c29a71;
  outline-offset: 3px;
}

.site-header {
  background: linear-gradient(180deg, rgba(12, 12, 12, 0.72), rgba(12, 12, 12, 0.28));
  border-bottom: 0;
}

.hero h1 {
  overflow-wrap: break-word;
}

.company-logo-img,
.contact-map img,
.contact-form-embed iframe {
  max-width: 100%;
  height: auto;
}

.contact-form-embed {
  overflow-x: auto;
}

.news-pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  padding: 8px 16px 64px;
}

.news-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 0 12px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .value-card,
  .btn {
    transition: none;
  }
}

.site-header a.btn.btn-copper {
    background: #83371f;
    border-color: #83371f;
}
.site-header a.btn.btn-copper:hover {
    background: #a4744e;
    border-color: #a4744e;
}
