@import url("https://fonts.googleapis.com/css2?family=Caveat:wght@400;500;600&family=Cormorant+Garamond:wght@500;600;700&display=swap");

.site-footer {
  padding: clamp(52px, 6.5vw, 88px) 0 0 !important;
  background: #ede4d7 !important;
  color: #eadfce !important;
}

.footer-shell {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  filter: none !important;
}

.footer-panel {
  position: relative;
  overflow: hidden;
  min-height: 500px;
  border: 1px solid rgba(241, 211, 167, .12);
  border-radius: 0;
  background:
    linear-gradient(90deg, rgba(26, 18, 13, .94), rgba(26, 18, 13, .70)),
    #1d1511;
  box-shadow: 0 24px 70px rgba(36, 27, 22, .24);
}

.footer-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255,255,255,.035), transparent 28%, rgba(0,0,0,.1));
}

.footer-media {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 80px;
  width: 30%;
  min-width: 310px;
  overflow: hidden;
  border-radius: 0;
  background: #1a120e;
}

.footer-media img {
  width: 100%;
  height: 100%;
  min-height: 0 !important;
  object-fit: cover;
  object-position: 56% center;
  filter: saturate(1.02) contrast(1.05) brightness(.96);
  transform: scale(1.015);
}

.footer-media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(19, 13, 10, .08) 0%, rgba(19, 13, 10, .16) 34%, rgba(19, 13, 10, .72) 96%, #1a120e 100%),
    linear-gradient(180deg, rgba(19, 13, 10, .08) 0%, transparent 44%, rgba(19, 13, 10, .34) 100%);
}

.footer-content {
  position: relative;
  z-index: 1;
  padding: clamp(42px, 4.4vw, 62px) clamp(30px, 3.8vw, 56px) 0 calc(30% + clamp(30px, 3.6vw, 58px));
}

.footer-columns {
  display: grid;
  grid-template-columns: minmax(132px, .72fr) minmax(260px, 1fr);
  align-items: center;
  gap: clamp(26px, 4vw, 68px);
  min-height: 280px;
}

.footer-brand,
.footer-col,
.footer-contact {
  min-width: 0;
  padding: 0 clamp(14px, 1.45vw, 24px) !important;
}

.footer-brand {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-height: 220px;
  padding-left: 0 !important;
}

.footer-contact { padding-right: 0 !important; }

.footer-col,
.footer-contact {
  position: relative;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 0 !important;
}

.footer-col::before,
.footer-contact::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10%;
  height: 80%;
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(241, 211, 167, .15), transparent);
}

.footer-logo {
  width: clamp(128px, 9.5vw, 154px) !important;
  height: auto !important;
  opacity: .98 !important;
  filter: drop-shadow(0 14px 24px rgba(0,0,0,.24));
}

.footer-claim {
  margin: 18px 0 14px !important;
  color: #f1d3a7 !important;
  font-family: "Caveat", "Brush Script MT", cursive !important;
  font-size: clamp(32px, 2.55vw, 44px) !important;
  font-weight: 500 !important;
  line-height: 1.08 !important;
  letter-spacing: 0 !important;
}

.footer-brand p:not(.footer-claim) {
  max-width: 330px !important;
  margin: 0 !important;
  color: rgba(237, 228, 215, .76) !important;
  font-size: 35px !important;
  line-height: 1.72 !important;
}

.footer-icon {
  width: 38px !important;
  height: 38px !important;
  margin: 0 0 18px;
  color: #f1d3a7;
  stroke-width: 1.45 !important;
  flex: 0 0 38px;
}

.footer-icon-img {
  display: block !important;
  object-fit: contain !important;
  object-position: center center !important;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, .18));
}

.footer-col h3,
.footer-contact h3 {
  margin: 0 0 21px !important;
  color: #f1d3a7 !important;
  font-family: Inter, system-ui, sans-serif !important;
  font-size: 12px !important;
  font-weight: 850 !important;
  letter-spacing: .12em !important;
  text-transform: uppercase !important;
}

.footer-col h3::after,
.footer-contact h3::after { display: none !important; }

.footer-col a {
  display: block !important;
  width: fit-content !important;
  margin: 0 0 11px !important;
  color: rgba(242, 232, 218, .77) !important;
  font-size: 14px !important;
  line-height: 1.38 !important;
  transition: color .18s ease, transform .18s ease, text-decoration-color .18s ease !important;
}

.footer-col a:hover,
.footer-contact a:hover,
.footer-bottom a:hover {
  color: #f1d3a7 !important;
  text-decoration: underline;
  text-decoration-color: rgba(241, 211, 167, .42);
  text-underline-offset: 4px;
  transform: translateX(2px) !important;
}

.footer-col a:focus-visible,
.footer-contact a:focus-visible,
.footer-bottom a:focus-visible,
.footer-social a:focus-visible {
  border-radius: 999px;
  outline: 2px solid rgba(241, 211, 167, .52) !important;
  outline-offset: 4px !important;
}

.footer-social {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 10px !important;
  margin-top: 18px !important;
}

.footer-social .icon-link {
  width: 38px !important;
  height: 38px !important;
  border: 1px solid rgba(241, 211, 167, .28) !important;
  border-radius: 50% !important;
  background: rgba(255, 255, 255, .035) !important;
  color: #f1d3a7 !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04) !important;
  transition: background .18s ease, border-color .18s ease, transform .18s ease, color .18s ease !important;
}

.footer-social .icon-link:hover,
.footer-social .icon-link:focus-visible {
  background: rgba(241, 211, 167, .13) !important;
  border-color: rgba(241, 211, 167, .62) !important;
  color: #f1d3a7 !important;
  transform: translateY(-2px) !important;
}

.footer-contact-list {
  display: grid !important;
  gap: 13px !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

.footer-contact-list li,
.footer-contact-list a {
  display: grid !important;
  grid-template-columns: 22px minmax(0, 1fr) !important;
  gap: 11px !important;
  align-items: start !important;
  color: rgba(242, 232, 218, .78) !important;
  font-size: 14px !important;
  line-height: 1.48 !important;
  transition: color .18s ease, transform .18s ease !important;
}

.footer-contact-list svg {
  width: 18px !important;
  height: 18px !important;
  margin-top: 2px !important;
  color: #f1d3a7 !important;
  stroke-width: 1.65 !important;
}

.footer-contact-list a[href^="mailto"] span {
  white-space: nowrap;
}

.footer-contact-list a[href^="tel"] span {
  white-space: nowrap;
}

.footer-contact .footer-social {
  padding-top: 17px !important;
  margin-top: 18px !important;
  border-top: 1px solid rgba(241, 211, 167, .12) !important;
  align-self: start;
}

.footer-bottom {
  position: relative;
  z-index: 1;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 24px !important;
  min-height: 80px !important;
  margin: 78px clamp(30px, 3.8vw, 56px) 0;
  padding: 20px 0 22px !important;
  border-top: 1px solid rgba(241, 211, 167, .14) !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: rgba(242, 232, 218, .66) !important;
  font-size: 13px !important;
}

.footer-copyright {
  display: inline-flex !important;
  align-items: center !important;
  gap: 11px !important;
}

.footer-heart {
  width: 22px !important;
  height: 22px !important;
  color: #f1d3a7 !important;
  stroke-width: 1.55 !important;
  flex: 0 0 auto;
}

.footer-bottom nav {
  display: flex !important;
  align-items: center !important;
  flex-wrap: wrap !important;
  justify-content: flex-end !important;
  gap: 13px !important;
}

.footer-bottom nav a {
  color: rgba(242, 232, 218, .72) !important;
  transition: color .18s ease, transform .18s ease !important;
}

.footer-bottom nav span { color: rgba(237, 228, 215, .28) !important; }
.footer-image,
.footer-divider { display: none !important; }

@media (max-width: 1220px) {
  .footer-media { width: 28%; min-width: 250px; }
  .footer-content { padding-left: calc(28% + 28px); padding-right: 34px; }
  .footer-columns {
    grid-template-columns: minmax(150px, .72fr) minmax(260px, 1fr);
    align-items: center;
    row-gap: 28px;
  }
  .footer-brand,
  .footer-col,
  .footer-contact { min-height: 0; }
  .footer-brand { align-items: flex-start; }
  .footer-contact { grid-column: auto; }
  .footer-bottom { margin-left: 34px; margin-right: 34px; }
  .footer-columns {
    grid-template-columns: minmax(132px, .72fr) minmax(260px, 1fr);
    gap: clamp(26px, 4vw, 68px);
    min-height: 280px;
  }
  .footer-brand,
  .footer-col,
  .footer-contact { min-height: 220px; }
  .footer-brand { align-items: center; }
  .footer-contact { grid-column: auto; }
}

@media (max-width: 860px) {
  .footer-shell { width: 100% !important; max-width: none !important; }
  .footer-panel { min-height: 0; }
  .footer-media {
    position: relative;
    width: 100%;
    min-width: 0;
    height: clamp(230px, 43vw, 330px);
    bottom: auto;
    border-radius: 0;
  }
  .footer-media::after {
    background:
      linear-gradient(180deg, rgba(19, 13, 10, .04) 0%, rgba(19, 13, 10, .28) 54%, #1a120e 100%),
      linear-gradient(90deg, rgba(19, 13, 10, .08), rgba(19, 13, 10, .32));
  }
  .footer-content { padding: 34px 28px 0; text-align: center; }
  .footer-columns { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 34px 24px; min-height: 0; justify-items: center; text-align: center; }
  .footer-brand { grid-column: 1 / -1; min-height: 0; padding: 0 !important; align-items: center !important; text-align: center !important; }
  .footer-logo { width: 132px !important; }
  .footer-col,
  .footer-contact { min-height: 0; padding: 0 !important; padding-top: 0 !important; align-items: center !important; text-align: center !important; }
  .footer-col a { margin-left: auto !important; margin-right: auto !important; }
  .footer-social { justify-content: center !important; align-self: center !important; }
  .footer-contact-list { width: 100% !important; justify-items: center !important; }
  .footer-contact-list li,
  .footer-contact-list a {
    grid-template-columns: 1fr !important;
    justify-items: center !important;
    text-align: center !important;
    gap: 7px !important;
  }
  .footer-contact-list svg { margin: 0 auto 2px !important; }
  .footer-col::before,
  .footer-contact::before { display: none; }
  .footer-contact { grid-column: 1 / -1; }
  .footer-bottom {
    margin: 34px 28px 0;
    align-items: center !important;
    flex-direction: column;
    justify-content: center !important;
    text-align: center;
    gap: 14px !important;
  }
  .footer-bottom nav { justify-content: center !important; }
}

@media (max-width: 560px) {
  .site-footer { padding-top: 44px !important; }
  .footer-media { height: 235px; }
  .footer-content { padding: 30px 24px 0; }
  .footer-columns { grid-template-columns: 1fr; gap: 30px; }
  .footer-logo { width: 124px !important; }
  .footer-icon { width: 36px !important; height: 36px !important; margin-bottom: 15px; }
  .footer-col h3,
  .footer-contact h3 { margin-bottom: 17px !important; }
  .footer-col a { margin-bottom: 10px !important; }
  .footer-social { gap: 9px !important; }
  .footer-social .icon-link { width: 37px !important; height: 37px !important; }
  .footer-bottom { margin: 30px 24px 0; padding-bottom: 26px !important; }
  .footer-copyright { align-items: center !important; justify-content: center !important; text-align: center; }
}

/* Footer logo ornament: reference-style line with horseshoe */
.footer-brand {
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  gap: 14px !important;
}

.footer-brand::after {
  content: "";
  display: block;
  width: clamp(116px, 10vw, 152px);
  height: 24px;
  margin-top: -2px;
  opacity: .9;
  background:
    url("/assets/icons/footer-horseshoe-gold.png") center / 20px 20px no-repeat,
    linear-gradient(90deg, transparent, rgba(241, 211, 167, .52)) left 50% / calc(50% - 18px) 1px no-repeat,
    linear-gradient(90deg, rgba(241, 211, 167, .52), transparent) right 50% / calc(50% - 18px) 1px no-repeat;
  filter: drop-shadow(0 5px 10px rgba(0, 0, 0, .16));
}

.footer-logo {
  display: block !important;
  margin: 0 auto !important;
}

.footer-logo { order: 1; }
.footer-brand::after { order: 2; }

.footer-brand p.footer-tagline {
  order: 3;
  margin: 2px 0 0 !important;
  color: #f1d3a7 !important;
  font-family: "Caveat", "Brush Script MT", cursive !important;
  font-size: clamp(30px, 2.35vw, 39px) !important;
  font-weight: 400 !important;
  line-height: 1.08 !important;
  letter-spacing: 0 !important;
  text-shadow: 0 2px 8px rgba(0, 0, 0, .24);
}

@media (max-width: 860px) {
  .footer-brand { align-items: center !important; }
  .footer-brand::after { width: 132px; }
}

/* Footer logo ornament uses the same horseshoe as the board divider */
.footer-brand::after {
  opacity: 1;
  background:
    url("/assets/icons/footer-horseshoe-gold.png") center / 18px 18px no-repeat,
    linear-gradient(90deg, transparent, rgba(241, 211, 167, .62)) left 50% / calc(50% - 19px) 1px no-repeat,
    linear-gradient(90deg, rgba(241, 211, 167, .62), transparent) right 50% / calc(50% - 19px) 1px no-repeat;
}

@media (max-width: 560px) {
  .footer-contact {
    align-items: center !important;
    text-align: center !important;
  }

  .footer-contact .footer-icon {
    margin-left: auto !important;
    margin-right: auto !important;
  }

  .footer-contact-list {
    width: 100% !important;
    justify-items: center !important;
  }

  .footer-contact-list li,
  .footer-contact-list a {
    grid-template-columns: 1fr !important;
    justify-items: center !important;
    text-align: center !important;
    gap: 7px !important;
  }

  .footer-contact-list svg {
    margin: 0 auto 2px !important;
  }

  .footer-contact .footer-social {
    width: 100% !important;
    align-self: center !important;
    justify-content: center !important;
  }
}

/* Enforce the shared legal-page footer layout on all pages while the pony image stays left. */
@media (min-width: 861px) and (max-width: 1220px) {
  .footer-panel { position: relative !important; overflow: hidden !important; min-height: 500px !important; }
  .footer-media { position: absolute !important; top: 0 !important; left: 0 !important; bottom: 80px !important; width: 28% !important; min-width: 250px !important; height: auto !important; border-radius: 0 !important; }
  .footer-content { position: relative !important; z-index: 1 !important; padding-left: calc(28% + 28px) !important; padding-right: 34px !important; text-align: left !important; }
  .footer-columns { display: grid !important; grid-template-columns: minmax(132px, .72fr) minmax(260px, 1fr) !important; align-items: center !important; gap: clamp(26px, 4vw, 68px) !important; min-height: 280px !important; justify-items: stretch !important; text-align: left !important; }
  .footer-brand, .footer-col, .footer-contact { min-height: 220px !important; text-align: left !important; }
  .footer-brand { grid-column: auto !important; align-items: center !important; justify-content: flex-start !important; }
  .footer-contact { grid-column: auto !important; align-items: flex-start !important; }
  .footer-contact-list { justify-items: stretch !important; }
  .footer-contact-list li, .footer-contact-list a { grid-template-columns: 22px minmax(0, 1fr) !important; justify-items: stretch !important; text-align: left !important; gap: 11px !important; }
  .footer-contact-list svg { margin: 2px 0 0 !important; }
  .footer-contact .footer-social { justify-content: flex-start !important; align-self: start !important; }
  .footer-bottom { margin-left: 34px !important; margin-right: 34px !important; }
}

@media (min-width: 1221px) {
  .footer-panel { position: relative !important; overflow: hidden !important; min-height: 500px !important; }
  .footer-media { position: absolute !important; top: 0 !important; left: 0 !important; bottom: 80px !important; width: 30% !important; min-width: 310px !important; height: auto !important; border-radius: 0 !important; }
  .footer-content { position: relative !important; z-index: 1 !important; padding: clamp(42px, 4.4vw, 62px) clamp(30px, 3.8vw, 56px) 0 calc(30% + clamp(30px, 3.6vw, 58px)) !important; text-align: left !important; }
  .footer-columns { display: grid !important; grid-template-columns: minmax(132px, .72fr) minmax(260px, 1fr) !important; align-items: center !important; gap: clamp(26px, 4vw, 68px) !important; min-height: 280px !important; justify-items: stretch !important; text-align: left !important; }
  .footer-brand, .footer-col, .footer-contact { min-height: 220px !important; text-align: left !important; }
  .footer-brand { grid-column: auto !important; align-items: center !important; justify-content: flex-start !important; }
  .footer-contact { grid-column: auto !important; align-items: flex-start !important; }
  .footer-contact-list { justify-items: stretch !important; }
  .footer-contact-list li, .footer-contact-list a { grid-template-columns: 22px minmax(0, 1fr) !important; justify-items: stretch !important; text-align: left !important; gap: 11px !important; }
  .footer-contact-list svg { margin: 2px 0 0 !important; }
  .footer-contact .footer-social { justify-content: flex-start !important; align-self: start !important; }
}

@media (min-width: 861px) {
  .footer-brand p.footer-tagline { white-space: nowrap !important; }
}
