/* Shared emerald studio footer. Load after all page and shared UI styles. */
body.site-chrome:is(.refresh-home, .premium-site):not(.admin-page) {
  padding-bottom: 0;
}

body:is(.refresh-home, .premium-site):not(.admin-page) > :is(.site-footer, .premium-footer) {
  --footer-text: #fffefa;
  --footer-muted: #d2e1d6;
  --footer-line: rgba(235, 246, 237, .2);
  box-sizing: border-box;
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  gap: 30px;
  width: 100%;
  max-width: none;
  min-height: 0;
  margin: 40px 0 0;
  padding: 42px calc(18px + env(safe-area-inset-right, 0px))
    calc(30px + env(safe-area-inset-bottom, 0px))
    calc(18px + env(safe-area-inset-left, 0px));
  border: 0;
  border-top: 1px solid rgba(214, 237, 218, .24);
  border-radius: 0;
  background:
    radial-gradient(ellipse at 12% 0%, rgba(75, 133, 95, .2), transparent 58%),
    linear-gradient(145deg, #1c5943 0%, #174d3b 54%, #123f32 100%);
  box-shadow: inset 0 1px 0 rgba(240, 249, 237, .06);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  color: var(--footer-text);
  font-family: Manrope, Arial, sans-serif;
  font-size: 14px;
  line-height: 1.6;
}

body:is(.refresh-home, .premium-site):not(.admin-page) > .site-footer {
  margin-top: 0;
}

body:is(.refresh-home, .premium-site):not(.admin-page) > :is(.site-footer, .premium-footer)::before,
body:is(.refresh-home, .premium-site):not(.admin-page) > :is(.site-footer, .premium-footer)::after {
  content: none;
}

body:is(.refresh-home, .premium-site):not(.admin-page) > :is(.site-footer, .premium-footer) :is(.footer-layout, .footer-identity, .footer-brand-block, .footer-nav, .footer-operator, .footer-legal) {
  min-width: 0;
  max-width: 100%;
}

body:is(.refresh-home, .premium-site):not(.admin-page) > .site-footer .footer-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 30px;
  width: 100%;
  margin: 0;
}

body:is(.refresh-home, .premium-site):not(.admin-page) > :is(.site-footer, .premium-footer) :is(a, span, p) {
  max-width: 100%;
  color: var(--footer-muted);
  font-family: inherit;
  font-size: inherit;
  font-weight: 400;
  line-height: inherit;
  letter-spacing: normal;
  text-shadow: none;
}

body:is(.refresh-home, .premium-site):not(.admin-page) > :is(.site-footer, .premium-footer) a {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  min-height: 44px;
  padding: 8px 0;
  color: var(--footer-text);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
  text-decoration: none;
  text-underline-offset: 5px;
  text-decoration-thickness: 1px;
  overflow-wrap: anywhere;
  touch-action: manipulation;
  transition: color 160ms ease, text-decoration-color 160ms ease;
}

body:is(.refresh-home, .premium-site):not(.admin-page) > :is(.site-footer, .premium-footer) a:focus-visible {
  border-radius: 4px;
  outline: 2px solid #fffefa;
  outline-offset: 5px;
}

body:is(.refresh-home, .premium-site):not(.admin-page) > :is(.site-footer, .premium-footer) :is(.footer-identity, .footer-brand-block) {
  display: flex;
  grid-column: auto;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

body:is(.refresh-home, .premium-site):not(.admin-page) > :is(.site-footer, .premium-footer) :is(.footer-brand, .footer-brand-block > a) {
  width: max-content;
  margin: 0;
  padding: 0;
  color: var(--footer-text);
  font-family: "LaBeauty Display", "Cormorant Garamond", Georgia, serif;
  font-size: clamp(32px, 5vw, 38px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: .035em;
  text-decoration: none;
}

body:is(.refresh-home, .premium-site):not(.admin-page) > :is(.site-footer, .premium-footer) :is(.footer-identity > p, .footer-brand-block > span) {
  max-width: 290px;
  margin: 0;
  color: var(--footer-muted);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.65;
}

body:is(.refresh-home, .premium-site):not(.admin-page) > :is(.site-footer, .premium-footer) :is(.footer-nav, .footer-layout > nav) {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 0 20px;
  width: 100%;
  padding: 0;
}

body:is(.refresh-home, .premium-site):not(.admin-page) > :is(.site-footer, .premium-footer) :is(.footer-nav, .footer-layout > nav) a {
  color: var(--footer-text);
  font-size: 14px;
  line-height: 1.5;
}

body:is(.refresh-home, .premium-site):not(.admin-page) > :is(.site-footer, .premium-footer) .footer-operator {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
}

body:is(.refresh-home, .premium-site):not(.admin-page) > :is(.site-footer, .premium-footer) .footer-operator > span {
  color: var(--footer-muted);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.6;
}

body:is(.refresh-home, .premium-site):not(.admin-page) > :is(.site-footer, .premium-footer) a[href^="tel:"] {
  color: var(--footer-text);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: .01em;
  white-space: nowrap;
}

body:is(.refresh-home, .premium-site):not(.admin-page) > :is(.site-footer, .premium-footer) .footer-legal {
  display: flex;
  grid-column: 1 / -1;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 2px;
  margin: 0;
  padding: 20px 0 0;
  border: 0;
  border-top: 1px solid var(--footer-line);
  font-family: inherit;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.6;
}

body:is(.refresh-home, .premium-site):not(.admin-page) > :is(.site-footer, .premium-footer) .footer-legal span {
  margin: 0 0 10px;
  color: var(--footer-muted);
  font-size: 13px;
  line-height: 1.65;
}

body:is(.refresh-home, .premium-site):not(.admin-page) > :is(.site-footer, .premium-footer) .footer-legal a {
  color: var(--footer-muted);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.6;
  text-decoration: underline;
  text-decoration-color: rgba(210, 225, 214, .5);
  text-underline-offset: 4px;
}

@media (hover: hover) and (pointer: fine) {
  body:is(.refresh-home, .premium-site):not(.admin-page) > :is(.site-footer, .premium-footer) :is(.footer-nav a, .footer-layout > nav a, .footer-operator a, .footer-legal a):hover {
    color: #fffefa;
    text-decoration: underline;
    text-decoration-color: currentColor;
  }
}

@media (max-width: 980px) {
  body:is(.refresh-home, .premium-site):not(.admin-page) > :is(.site-footer, .premium-footer) a[href$="#bookings"] {
    display: none !important;
  }
}

@media (min-width: 700px) {
  body:is(.refresh-home, .premium-site):not(.admin-page) > :is(.site-footer, .premium-footer) {
    gap: 32px 40px;
    padding: 54px max(24px, calc((100% - 1180px) / 2))
      calc(34px + env(safe-area-inset-bottom, 0px));
  }

  body:is(.refresh-home, .premium-site):not(.admin-page) > .premium-footer {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  }

  body:is(.refresh-home, .premium-site):not(.admin-page) > .premium-footer .footer-operator {
    grid-column: 1 / -1;
  }

  body:is(.refresh-home, .premium-site):not(.admin-page) > .site-footer .footer-layout {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px 40px;
  }

  body:is(.refresh-home, .premium-site):not(.admin-page) > .site-footer .footer-legal {
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
    gap: 0 24px;
  }

  body:is(.refresh-home, .premium-site):not(.admin-page) > .site-footer .footer-legal span {
    flex: 1 1 100%;
  }

  body:is(.refresh-home, .premium-site):not(.admin-page) > .premium-footer .footer-legal {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0 24px;
  }
}

@media (min-width: 1100px) {
  body:is(.refresh-home, .premium-site):not(.admin-page) > :is(.site-footer, .premium-footer) {
    padding-top: 62px;
    padding-bottom: calc(38px + env(safe-area-inset-bottom, 0px));
  }

  body:is(.refresh-home, .premium-site):not(.admin-page) > .premium-footer,
  body:is(.refresh-home, .premium-site):not(.admin-page) > .site-footer .footer-layout {
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr) minmax(0, 1.1fr);
    gap: 32px 56px;
  }

  body:is(.refresh-home, .premium-site):not(.admin-page) > .premium-footer .footer-operator {
    grid-column: auto;
  }

  body:is(.refresh-home, .premium-site):not(.admin-page) > .site-footer .footer-legal {
    grid-column: auto;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    padding-top: 0;
    border-top: 0;
  }

  body:is(.refresh-home, .premium-site):not(.admin-page) > .site-footer .footer-legal span {
    flex: 0 0 auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  body:is(.refresh-home, .premium-site):not(.admin-page) > :is(.site-footer, .premium-footer) a {
    transition: none;
  }
}
