/* Footer section: deep green band with a curved top edge (the flyer's green wave), cream text, gold accents */

.section-footer { margin-top: auto; }

.site-footer {
  position: relative;
  z-index: 1;
  background-color: var(--c-green-deep);
  /* The first layer fades the glow in below the top edge, so the flat wave fill above meets the
     body without a straight colour step. */
  background-image:
    linear-gradient(to bottom, var(--c-green-deep), rgba(10, 61, 37, 0) 56px),
    radial-gradient(ellipse 60% 70% at 8% 0%, rgba(15, 90, 54, .95), rgba(15, 90, 54, 0) 70%),
    radial-gradient(ellipse 45% 60% at 100% 100%, rgba(184, 134, 43, .14), rgba(184, 134, 43, 0) 70%);
  color: var(--c-cream);
}

.site-footer__wave {
  position: absolute;
  left: 0;
  bottom: calc(100% - 1px);
  display: block;
  width: 100%;
  height: clamp(30px, 5vw, 72px);
  overflow: visible;
  pointer-events: none;
}
.site-footer__wave-fill { fill: var(--c-green-deep); }
.site-footer__wave-line { stroke: var(--c-gold); stroke-width: 1.5; opacity: .85; }

.site-footer__sparkles .sparkle { color: var(--c-gold-light); opacity: .45; }
/* Sparkles sit at fixed percentages (snippets/sparkles.liquid); hide the ones that land on the
   wordmark, the tagline and service area, the newsletter text, field and button, or the payment
   icons at each width (measured from 320 to 1920). Phones keep the top-left one only. */
@media (max-width: 749px) {
  .site-footer__sparkles .sparkle:nth-child(n+2) { display: none; }
}
@media (max-width: 369px) {
  .site-footer__sparkles .sparkle { display: none; }
}
@media (min-width: 750px) {
  .site-footer__sparkles .sparkle:nth-child(6) { display: none; }
}
@media (min-width: 750px) and (max-width: 1439px) {
  .site-footer__sparkles .sparkle:nth-child(-n+2) { display: none; }
}

.site-footer__inner {
  position: relative;
  z-index: 1;
  padding-top: clamp(24px, 4vw, 44px);
  padding-bottom: 28px;
}

.site-footer a { color: var(--c-cream); }
.site-footer a:hover { color: var(--c-gold-light); }
.site-footer :focus-visible { outline-color: var(--c-gold-light); }

.site-footer__grid {
  display: flex;
  flex-wrap: wrap;
  gap: 40px clamp(32px, 4vw, 64px);
}
.site-footer__brand { flex: 1.2 1 300px; }
.site-footer__col { flex: 0 1 200px; }
.site-footer__newsletter { flex: 1 1 320px; max-width: 460px; }

.wordmark--footer {
  font-size: clamp(2.5rem, 4.2vw, 3.3rem);
  margin-bottom: 14px;
}
/* Reversed on deep green (crimson and green would sink into it): "Naples" leads in cream, "Elves"
   keeps the two-tone in a warm antique gold, lighter than the gold tagline below so they don't merge.
   A touch more line gap here: without the hat, "Elves" sits nearer the p's descender. */
.wordmark--footer { padding-top: .1em; }
.wordmark--footer .wordmark__first { color: var(--c-cream); }
.wordmark--footer .wordmark__rest,
.wordmark--footer:hover .wordmark__rest { color: #EBD7A4; color: color-mix(in srgb, var(--c-gold-light) 80%, var(--c-cream)); }
.wordmark--footer.wordmark--stacked .wordmark__rest { margin-top: .06em; }

.site-footer__tagline {
  margin: 0 0 16px;
  font-family: var(--font-caps);
  font-weight: 700;
  font-size: .78rem;
  letter-spacing: .2em;
  line-height: 1.6;
  text-transform: uppercase;
  color: var(--c-gold-light);
}
.site-footer__area {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  font-size: .98rem;
  color: var(--c-cream);
}
.site-footer__area .icon { color: var(--c-gold-light); }
.site-footer__closing {
  max-width: 340px;
  margin: 0;
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  font-size: 1.4rem;
  line-height: 1.3;
  color: rgba(251, 246, 236, .9);
}

.site-footer__heading {
  margin: 6px 0 18px;
  font-family: var(--font-caps);
  font-weight: 700;
  font-size: .8rem;
  line-height: 1.4;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--c-gold-light);
}

.site-footer__menu,
.site-footer__contact {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.site-footer__link {
  display: inline-block;
  padding: 2px 0;
  font-size: 1rem;
  color: var(--c-cream);
  text-decoration: none;
  background-image: linear-gradient(var(--c-gold-light), var(--c-gold-light));
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 0 1px;
  transition: background-size .3s var(--ease), color .2s var(--ease);
}
.site-footer__link:hover { background-size: 100% 1px; color: var(--c-gold-light); }
.site-footer__link[aria-current="page"] { background-size: 100% 1px; }
.site-footer__contact li { display: flex; align-items: center; gap: 10px; }
.site-footer__contact .icon { color: var(--c-gold-light); }

.site-footer__follow {
  margin: 20px 0 6px;
  font-size: .85rem;
  letter-spacing: .08em;
  color: rgba(251, 246, 236, .85);
}
.site-footer__social { margin-left: -12px; }
.site-footer__social .icon-button { color: var(--c-cream); }
.site-footer__social .icon-button:hover { background: rgba(230, 207, 148, .16); color: var(--c-gold-light); }

.site-footer__text { margin: 0 0 16px; font-size: .98rem; color: rgba(251, 246, 236, .88); }

.newsletter-form { margin: 0; }
.newsletter-form__label {
  margin-bottom: 8px;
  font-size: .74rem;
  color: var(--c-gold-light);
}
.newsletter-form__row { display: flex; flex-wrap: wrap; gap: 10px; }
.newsletter-form__input { flex: 1 1 200px; min-width: 0; border-color: transparent; border-radius: var(--radius-btn); padding-inline: 20px; background-color: var(--c-cream); }
.newsletter-form__input:hover { border-color: var(--c-gold-light); }
.newsletter-form__input:focus { border-color: var(--c-gold-light); box-shadow: 0 0 0 3px rgba(230, 207, 148, .35); }
.newsletter-form__input:focus-visible { outline: 3px solid var(--c-gold-light); }
.newsletter-form__button { flex: 0 0 auto; }
.site-footer .form-message--success { background: rgba(251, 246, 236, .1); color: var(--c-cream); border-color: rgba(230, 207, 148, .45); }
.site-footer .form-message--error { background: rgba(251, 246, 236, .95); color: var(--c-red-deep); border-color: var(--c-red); }
.site-footer .form-message--preview { background: rgba(251, 246, 236, .1); color: var(--c-cream); border: 1px solid rgba(230, 207, 148, .45); }

@media (max-width: 419px) {
  .newsletter-form__button { flex: 1 1 100%; }
}

.site-footer__motto {
  margin: clamp(44px, 6vw, 64px) 0 0;
  text-align: center;
}
.site-footer__motto-text {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px 16px;
  margin: 14px 0 0;
  font-family: var(--font-caps);
  font-weight: 700;
  font-size: clamp(.9rem, 1.5vw, 1.05rem);
  letter-spacing: .3em;
  line-height: 1.4;
  text-transform: uppercase;
  color: var(--c-gold-light);
}
.site-footer__motto-text > span { margin-right: -.3em; }
.site-footer__motto-heart { width: 12px; height: 12px; color: var(--c-gold); }

/* The booking banner already shows the closing line and motto (flyer bottom band); when it is
   the last section above the footer, do not repeat them in the footer. */
body:has(.content-for-layout > .section-cta-banner:last-child) .site-footer__closing,
body:has(.content-for-layout > .section-cta-banner:last-child) .site-footer__motto { display: none; }

.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  margin-top: clamp(28px, 4vw, 40px);
  padding-top: 22px;
  border-top: 1px solid rgba(230, 207, 148, .28);
}
.site-footer__copyright {
  margin: 0;
  font-size: .88rem;
  letter-spacing: .04em;
  color: rgba(251, 246, 236, .85);
}
.payment-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.payment-icons__item { display: flex; line-height: 0; }
.payment-icon { width: auto; height: 24px; border-radius: 4px; }

@media (max-width: 749px) {
  .site-footer__brand { text-align: center; }
  .site-footer__brand .wordmark--footer { justify-content: center; }
  .site-footer__area { justify-content: center; }
  .site-footer__closing { margin-inline: auto; }
  .site-footer__bottom { flex-direction: column-reverse; justify-content: center; text-align: center; }
  .payment-icons { justify-content: center; }
}
