/* Gallery + about block: links to horse profiles / gallery */
a.fcf-gallery-horse-link:focus-visible .gallery-img {
  outline: 3px solid var(--secondary-color);
  outline-offset: 4px;
}

.img-box1 .img1 > a.fcf-gallery-horse-link:focus-visible img,
.img-box1 .img2 .img > a.fcf-gallery-horse-link:focus-visible img {
  outline: 3px solid var(--secondary-color);
  outline-offset: 4px;
}

/**
 * Contact “Send Message” + prefooter CTA link — same vs-btn treatment site-wide
 * (horse-template form submit + contact.html CTA pattern; forest fill, no flip animation).
 */
.vs-btn.fcf-contact-send-btn,
a.vs-btn.fcf-contact-send-btn {
  background-color: var(--fcf-contact-forest, #2d4739) !important;
  color: #fff !important;
  border: none;
  border-radius: 14px;
  padding: 14px 36px;
  font-weight: 600;
  text-decoration: none !important;
}

.vs-btn.fcf-contact-send-btn::before,
.vs-btn.fcf-contact-send-btn::after,
a.vs-btn.fcf-contact-send-btn::before,
a.vs-btn.fcf-contact-send-btn::after {
  display: none !important;
}

.vs-btn.fcf-contact-send-btn:hover,
a.vs-btn.fcf-contact-send-btn:hover {
  background-color: #24382c !important;
  color: #fff !important;
}

/* Mission & vision — choose-list-box photo only (replaces intro + checklist) */
.choose-list-box.fcf-choose-list-box--image-only {
  padding-top: 24px;
  padding-bottom: 24px;
}

.choose-list-box .fcf-choose-list-photo {
  border-radius: 20px;
  object-fit: cover;
  aspect-ratio: 3 / 4;
  min-height: 280px;
}

/* Contact section: wider column — slightly landscape-friendly next to form */
.choose-list-box.fcf-choose-list-box--contact-aside .fcf-choose-list-photo {
  aspect-ratio: 4 / 3;
  min-height: 240px;
  max-height: 380px;
}

/* Header search: no strong hover “overlay” on the icon button */
.header-search button:hover {
  background-color: var(--secondary-color);
  color: var(--body-color);
}

/* Placeholder visible when empty: black + bold */
.header-search input::placeholder {
  color: #000 !important;
  font-weight: 700 !important;
  opacity: 1 !important;
}

/* Site search popup: drop heavy dark overlay; light scrim + readable field */
.popup-search-box.show {
  background-color: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
}

.popup-search-box form input {
  border-color: #d1d5db;
  color: var(--body-color, #374151);
  background-color: #fff;
}

.popup-search-box form input::placeholder {
  color: #000 !important;
  font-weight: 700 !important;
  opacity: 1 !important;
}

.popup-search-box form button {
  color: var(--title-color, #1f2937);
}

.popup-search-box button.searchClose {
  background-color: var(--secondary-color);
  color: var(--white-color, #fff);
}

.popup-search-box button.searchClose:hover {
  background-color: var(--theme-color);
  color: var(--white-color, #fff);
}

/* --------------------------------------------------------------------------
   Prefooter CTA — full-width strip (screenshot: Contact Us / Need Consultation?)
   -------------------------------------------------------------------------- */
.fcf-prefooter-cta {
  --fcf-cta-forest: #3d5244;
  --fcf-cta-forest-deep: #243528;
  --fcf-cta-forest-shadow: #1a2820;
  --fcf-cta-gold: #e4c84a;
  position: relative;
  overflow: hidden;
  background-color: var(--fcf-cta-forest);
  padding: clamp(3rem, 6vw, 5.25rem) 0;
  z-index: 1;
}

.fcf-prefooter-cta__layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

/* Light geometric line art — top-left (cuboid grid feel) */
.fcf-prefooter-cta__geo {
  position: absolute;
  left: -2%;
  top: -8%;
  width: min(42%, 320px);
  height: 70%;
  max-height: 200px;
  opacity: 0.22;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 100' fill='none' stroke='%23a8c4b0' stroke-width='0.35'%3E%3Cpath d='M20 20h30l15 10v25l-15 10H20l-15-10V30z'/%3E%3Cpath d='M50 20l15 10v25M35 30v25M20 45h30M65 35h25l12 8v20l-12 8H65l-12-8V43z'/%3E%3Cpath d='M90 43l12 8v20'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: left top;
  background-size: contain;
}

/* 4×4 dot grids */
.fcf-prefooter-cta__dots {
  position: absolute;
  width: 44px;
  height: 44px;
  background-image: radial-gradient(
    circle at center,
    rgba(255, 255, 255, 0.38) 1.5px,
    transparent 2px
  );
  background-size: 11px 11px;
  opacity: 0.85;
}

.fcf-prefooter-cta__dots--bl {
  left: 4%;
  bottom: 12%;
}

.fcf-prefooter-cta__dots--tc {
  left: 52%;
  top: 14%;
  transform: translateX(-50%);
}

@media (max-width: 991px) {
  .fcf-prefooter-cta__dots--tc {
    left: 78%;
    top: 8%;
  }
}

/* Dark slanted panel behind button area */
.fcf-prefooter-cta__slant {
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    115deg,
    transparent 0%,
    transparent 12%,
    var(--fcf-cta-forest-deep) 12.2%,
    var(--fcf-cta-forest-shadow) 100%
  );
  clip-path: polygon(22% 0, 100% 0, 100% 100%, 0 100%);
}

@media (max-width: 991px) {
  .fcf-prefooter-cta__slant {
    width: 100%;
    clip-path: none;
    background: linear-gradient(
      180deg,
      transparent 0%,
      transparent 42%,
      rgba(26, 40, 32, 0.45) 100%
    );
  }
}

/* Subtle right edge line */
.fcf-prefooter-cta__edge {
  position: absolute;
  top: 0;
  right: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.12),
    rgba(0, 0, 0, 0.28)
  );
  opacity: 0.6;
}

.fcf-prefooter-cta__inner {
  z-index: 2;
}

.fcf-prefooter-cta__eyebrow {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin: 0 0 0.5rem;
  font-family: var(--body-font, "Poppins", sans-serif);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.95);
}

.fcf-prefooter-cta__eyeline {
  display: inline-block;
  width: 28px;
  height: 2px;
  background: var(--fcf-cta-gold);
  border-radius: 1px;
  flex-shrink: 0;
}

.fcf-prefooter-cta__title {
  margin: 0;
  font-family: var(--title-font, "Unbounded", sans-serif);
  font-size: clamp(1.75rem, 3.2vw + 0.5rem, 2.625rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: #fff;
}

/* Middle area: centered column, full-width button like home_contact Submit Now */
.fcf-prefooter-cta__btn-col {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-left: 1rem;
  padding-right: 1rem;
  min-height: 3.25rem;
}

.fcf-prefooter-cta__btn-inner {
  width: 100%;
  max-width: 440px;
  z-index: 3;
  position: relative;
}

/* Same as .form-style1 .vs-btn (home_contact “Submit Now”) — theme fill + flip hover */
.fcf-prefooter-cta a.vs-btn.fcf-prefooter-cta__contact-btn {
  margin-top: 0;
  text-decoration: none !important;
  color: var(--title-color);
  background-color: var(--theme-color2);
}

.fcf-prefooter-cta a.vs-btn.fcf-prefooter-cta__contact-btn::before,
.fcf-prefooter-cta a.vs-btn.fcf-prefooter-cta__contact-btn::after {
  background-color: var(--theme-color);
}

.fcf-prefooter-cta a.vs-btn.fcf-prefooter-cta__contact-btn:hover {
  color: var(--white-color);
}

@media (max-width: 991px) {
  .fcf-prefooter-cta__btn-inner {
    max-width: 400px;
  }

  .fcf-prefooter-cta .col-lg-6:first-child {
    text-align: center;
  }

  .fcf-prefooter-cta__eyebrow {
    justify-content: center;
  }
}

/* Footer contact strip: consistent mobile alignment for all 3 rows */
@media (max-width: 991px) {
  .footer-layout1 .contact-box {
    text-align: center;
  }

  .footer-layout1 .contact-box .contact-body {
    display: inline-flex;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 12px;
    text-align: left;
    width: min(100%, 340px);
    margin: 0 auto;
  }

  .footer-layout1 .contact-box .icon {
    width: 36px;
    min-width: 36px;
    max-width: 36px;
    margin-right: 0;
    margin-top: 1px;
  }

  .footer-layout1 .contact-box .contact-inner,
  .footer-layout1 .contact-box .title {
    text-align: left;
    min-width: 0;
    max-width: none;
  }

  .footer-layout1 .contact-box .title {
    font-size: 15px;
    line-height: 1.3;
    max-width: none;
  }

  .footer-layout1 .contact-box .title a {
    font-size: 14px;
    line-height: 1.3;
    white-space: normal;
    overflow-wrap: break-word;
    word-break: normal;
  }

  .footer-layout1 .contact-box .sub-title {
    font-size: 12px;
    line-height: 1.3;
  }
}

/* Ultra-small devices: keep footer contact strip readable and untruncated */
@media (max-width: 360px) {
  .footer-layout1 .contact-box {
    padding-top: 28px;
    padding-bottom: 28px;
  }

  .footer-layout1 .contact-box .contact-body {
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 10px;
    width: 100%;
  }

  .footer-layout1 .contact-box .icon {
    width: 28px;
    min-width: 28px;
    max-width: 28px;
    margin-right: 0;
    margin-top: 2px;
  }

  .footer-layout1 .contact-box .contact-inner,
  .footer-layout1 .contact-box .title {
    min-width: 0;
    max-width: 100%;
  }

  .footer-layout1 .contact-box .title {
    max-width: none;
    line-height: 1.35;
    font-size: 15px;
  }

  .footer-layout1 .contact-box .sub-title {
    font-size: 12px;
    line-height: 1.35;
  }

  .footer-layout1 .contact-box .title a {
    display: block;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .footer-layout1 .copyright-text {
    overflow-wrap: anywhere;
  }
}

/* Home contact section (left side): circle icon + CTA link */
.home-contact-circle-wrap {
  margin-top: 22px;
  margin-bottom: 6px;
}

.home-contact-circle {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background-color: rgba(52, 78, 65, 0.12);
  border: 1px solid rgba(52, 78, 65, 0.22);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  overflow: hidden;
}

.home-contact-circle img {
  width: 60px;
  height: 60px;
  display: block;
  object-fit: contain;
}

/* Home horse gallery: normalize card image sizes */
.gallery-layout1 .gallery-img {
  overflow: hidden;
  border-radius: 24px;
  background: linear-gradient(180deg, #f9f9f6 0%, #f1f3ed 100%);
  border: 1px solid rgba(61, 82, 68, 0.08);
  box-shadow: 0 8px 22px rgba(30, 44, 36, 0.06);
  transition: box-shadow 0.35s ease, transform 0.35s ease;
}

.gallery-layout1 .gallery-img > img {
  width: 100%;
  height: clamp(260px, 30vw, 420px);
  object-fit: cover;
  object-position: center;
  display: block;
  border-radius: 24px;
  background-color: transparent;
  padding: 0;
  transition: transform 0.45s ease;
}

.gallery-layout1 .gallery-box:hover .gallery-img {
  box-shadow: 0 14px 30px rgba(30, 44, 36, 0.12);
  transform: translateY(-3px);
}

.gallery-layout1 .gallery-box:hover .gallery-img > img {
  transform: scale(1.04);
}

@media (prefers-reduced-motion: reduce) {
  .gallery-layout1 .gallery-img,
  .gallery-layout1 .gallery-img > img {
    transition: none;
  }

  .gallery-layout1 .gallery-box:hover .gallery-img,
  .gallery-layout1 .gallery-box:hover .gallery-img > img {
    transform: none;
  }
}

@media (max-width: 575px) {
  .home-contact-circle {
    width: 110px;
    height: 110px;
  }

  .home-contact-circle img {
    width: 52px;
    height: 52px;
  }
}
