/* ==========================================================================
   components/footer.css
   The site footer on every page:
     components/layout/footer/GroupFooter.jsx    footer.footer.footer-reference
     components/layout/footer/ResortFooter.jsx   footer.footer-reference
   (brand + socials, link columns, reservations cards, newsletter, bottom bar)

   Loaded AFTER the page file (see PageStyles.jsx).
   Variants: components/footer.decorated.css (circles on the group home,
   offers and meetings pages), components/footer.inner.css (inner pages).
   The scroll-in animation of the columns comes from the shared .reveal styles.

   Note: rules are written as html[data-cc-page] .x — that prefix only gives
   them the weight they need over globals.css / CSS modules / library CSS.
   ========================================================================== */

/* Hotel footer newsletter text: same look as the group footer text
   (.footer-reference-newsletter > p below). !important because
   pages/hotel-index.css forces .newsletter-note to 9px !important */
html[data-cc-page] .footer-reference-newsletter > p.newsletter-note {
  line-height: 1.65 !important;
  margin: 0 0 14px !important;
  font-size: 13px !important;
  color: rgba(255,255,255,.68) !important;
}

@media (max-width: 820px) {
  html[data-cc-page] .footer-reference-bottom {
    padding-bottom: calc(66px + env(safe-area-inset-bottom,0px));
  }

  html[data-cc-page] .footer-reference .footer-reference-bottom > .container {
    align-items: center;
    text-align: center;
  }

  html[data-cc-page] .footer-reference .footer-reference-bottom > .container > div {
    justify-items: center;
  }

  html[data-cc-page] .footer-reference .footer-reference-bottom > .container > nav {
    justify-content: center;
  }
}

@media (max-width: 1024px) {
  html[data-cc-page] footer {
    overflow-x: clip;
  }
}

html[data-cc-page] .footer h4 {
  margin-bottom: 20px;
}

html[data-cc-page] .footer-reference-bottom .container {
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  color: rgba(255,255,255,.56);
  font-size: 11px !important;
  line-height: 1.6 !important;
}

html[data-cc-page] .footer-powered {
  font-size: 9.5px !important;
}

html[data-cc-page] .footer-reference-bottom nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 28px;
  font-size: 10px !important;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

html[data-cc-page] .footer-reference {
  padding: 0 !important;
  position: relative;
  background: #121214 !important;
  color: #fff;
  overflow: hidden;
}

html[data-cc-page] .footer-reference::before {
  content: "" !important;
  position: absolute;
  width: 620px;
  height: 620px;
  pointer-events: none;
  display: block !important;
  left: -180px;
  bottom: -220px;
  background: radial-gradient(circle,rgba(169,0,97,.12) 0%,rgba(169,0,97,.04) 40%,rgba(169,0,97,0) 72%);
}

html[data-cc-page] .footer-reference::after {
  display: none !important;
}

html[data-cc-page] .footer-reference-main {
  display: grid;
  grid-template-columns: 1.05fr .72fr .95fr 1.55fr;
  gap: clamp(38px,4.8vw,78px);
  padding-top: 72px;
  padding-bottom: 72px;
  position: relative;
  z-index: 2;
}

html[data-cc-page] .footer-reference-logo {
  display: inline-block;
}

html[data-cc-page] .footer-reference-logo img {
  width: 190px;
  height: auto;
}

html[data-cc-page] .footer-destination-line {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255,255,255,.82);
}

html[data-cc-page] .footer-follow-label {
  margin-top: 32px;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(255,255,255,.48);
}

html[data-cc-page] .footer-reference-socials {
  display: flex;
  gap: 9px;
  margin-top: 14px;
}

html[data-cc-page] .footer-reference-socials a {
  color: #fff;
  width: 39px;
  height: 39px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.17);
  font-size: 12px;
  transition: background .28s ease,border-color .28s ease,transform .28s ease;
}

html[data-cc-page] .footer-reference h4 {
  margin: 0 0 24px !important;
  font-size: 10px !important;
  text-transform: uppercase !important;
  letter-spacing: .2em !important;
  color: #fff !important;
  font-weight: 700 !important;
}

html[data-cc-page] .footer-reference-column nav {
  display: grid;
  gap: 16px;
}

html[data-cc-page] .footer-reference-column nav a {
  color: rgba(255,255,255,.72);
  width: fit-content;
  font-size: 13px;
  line-height: 1.45;
  transition: color .22s ease,transform .22s ease;
}

html[data-cc-page] .footer-contact-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

html[data-cc-page] .footer-reference .footer-contact-card {
  padding: 14px;
  min-width: 0;
  min-height: 76px;
  display: grid;
  grid-template-columns: 38px minmax(0,1fr);
  gap: 12px;
  align-items: center;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.025);
  transition: border-color .25s ease,background .25s ease,transform .25s ease;
}

html[data-cc-page] .footer-contact-icon {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(169,0,97,.58);
  color: var(--pink);
}

html[data-cc-page] .footer-reference .footer-contact-card small {
  display: block;
  margin-bottom: 4px;
  font-size: 7px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255,255,255,.48);
}

html[data-cc-page] .footer-reference .footer-contact-card strong {
  display: block;
  overflow-wrap: anywhere;
  font-size: 10px;
  line-height: 1.45;
  color: #fff;
  font-weight: 600;
}

html[data-cc-page] .footer-reference-newsletter {
  margin-top: 30px;
}

html[data-cc-page] .footer-reference-newsletter h4 {
  margin-bottom: 16px !important;
}

html[data-cc-page] .footer-reference-newsletter > p {
  margin: 0 0 14px;
  font-size: 13px;
  line-height: 1.65;
  color: rgba(255,255,255,.68);
}

html[data-cc-page] .footer-reference-form {
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  min-height: 52px;
  border: 1px solid rgba(255,255,255,.15);
  background: rgba(255,255,255,.025);
}

html[data-cc-page] .footer-reference-form input {
  padding: 0 16px;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: #fff;
  font-size: 12px;
}

html[data-cc-page] .footer-reference-form button {
  padding: 0 18px;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  min-width: 142px;
  border: 0;
  background: var(--pink);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
  transition: transform .25s ease,filter .25s ease;
}

html[data-cc-page] .footer-reference-form button::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--pink-dark);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .4s cubic-bezier(.22,1,.36,1);
}

html[data-cc-page] .footer-reference-bottom {
  position: relative;
  z-index: 2;
  background: #0c0c0d;
  border-top: 1px solid rgba(255,255,255,.06);
}

html[data-cc-page] .footer-reference-bottom .container > div {
  display: grid;
  gap: 5px;
}

html[data-cc-page] .footer-reference-bottom a {
  color: rgba(255,255,255,.82);
  transition: color .2s ease;
}

html[data-cc-page] .footer-reference > .container.footer-reference-main {
  width: min(1420px,calc(100% - 80px)) !important;
  max-width: 1420px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

html[data-cc-page] .footer-reference-bottom > .container {
  width: min(1420px,calc(100% - 80px)) !important;
  max-width: 1420px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

@media (max-width: 1180px) {
  html[data-cc-page] .footer-reference-main {
    grid-template-columns: 1fr 1fr 1fr;
  }

  html[data-cc-page] .footer-reference-reservations {
    grid-column: 1/-1;
  }

  html[data-cc-page] .footer-contact-cards {
    grid-template-columns: 1fr 1fr;
  }

  html[data-cc-page] .footer-reference-newsletter {
    max-width: 720px;
  }
}

@media (max-width: 1100px) {
  html[data-cc-page] .footer-reference > .container.footer-reference-main,
  html[data-cc-page] .footer-reference-bottom > .container {
    width: min(100% - 44px,1420px) !important;
  }
}

@media (max-width: 820px) {
  html[data-cc-page] .footer-reference-main {
    grid-template-columns: 1fr 1fr;
    gap: 46px 30px;
    padding-top: 58px;
    padding-bottom: 40px;
  }

  html[data-cc-page] .footer-reference-brand,
  html[data-cc-page] .footer-reference-reservations {
    grid-column: 1/-1;
  }

  html[data-cc-page] .footer-reference-bottom .container {
    justify-content: center;
    flex-direction: column;
    padding-top: 22px;
    padding-bottom: 22px;
  }

  html[data-cc-page] .footer-reference-bottom nav {
    gap: 18px;
    /* Mobile: legal links above the copyright (both footers) */
    order: -1;
  }

  /* Mobile: Green Star logo first, then legal links, then copyright */
  html[data-cc-page] .footer-reference-bottom .footer-greenstar-bottom {
    order: -2;
  }

  html[data-cc-page] .footer-reference > .container.footer-reference-main,
  html[data-cc-page] .footer-reference-bottom > .container {
    width: calc(100% - 30px) !important;
  }
}

@media (max-width: 560px) {
  html[data-cc-page] .footer-reference-main {
    grid-template-columns: 1fr;
    gap: 38px;
    padding-top: 50px;
    padding-bottom: 40px;
  }

  html[data-cc-page] .footer-reference-brand,
  html[data-cc-page] .footer-reference-reservations {
    grid-column: auto;
  }

  html[data-cc-page] .footer-reference-logo img {
    width: 172px;
  }

  html[data-cc-page] .footer-reference-column nav {
    gap: 13px;
  }

  html[data-cc-page] .footer-contact-cards {
    grid-template-columns: 1fr;
  }

  html[data-cc-page] .footer-reference-form {
    grid-template-columns: 1fr;
    border: 0;
    background: transparent;
    gap: 8px;
  }

  html[data-cc-page] .footer-reference-form input {
    border: 1px solid rgba(255,255,255,.15);
    background: rgba(255,255,255,.025);
    height: 52px;
  }

  html[data-cc-page] .footer-reference-form button {
    min-height: 52px;
  }
}

/* Newsletter field: focus and placeholder */
html[data-cc-page] .footer-reference-form:focus-within {
  border-color: rgba(169,0,97,.72);
}

html[data-cc-page] .footer-reference-form input::placeholder {
  color: rgba(255,255,255,.45);
}

/* Hover */
html[data-cc-page] .footer-reference-socials a:hover {
  background: var(--pink);
  border-color: var(--pink);
  transform: translateY(-3px);
}

html[data-cc-page] .footer-reference-column nav a:hover {
  color: #fff;
  transform: translateX(4px);
}

html[data-cc-page] .footer-reference .footer-contact-card:hover {
  border-color: rgba(169,0,97,.62);
  background: rgba(169,0,97,.06);
  transform: translateY(-2px);
}

html[data-cc-page] .footer-reference-form button:hover {
  transform: translateY(-2px);
  filter: brightness(1.06);
}

html[data-cc-page] .footer-reference-form button:hover::before {
  transform: scaleX(1);
}

html[data-cc-page] .footer-reference-bottom a:hover {
  color: var(--pink);
}

/* Phones / tablets: the room kept for the fixed "Book Now" bar moves from
   <body> to the bottom of the footer (see .footer-reference-bottom above) */
@media (max-width: 820px) {
  :root[data-cc-page] body:has(.footer-reference-bottom) {
    padding-bottom: 0 !important;
  }
}

/* Hotel footer: Green Star logo under the newsletter, centered in the
   Reservations column, at the file's natural size (171x147) */
html[data-cc-page] .footer-greenstar {
  display: flex;
  justify-content: center;
  margin-top: 28px;
}

html[data-cc-page] .footer-greenstar img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
}

/* Green Star logo in the bottom bar (between copyright and legal links) */
html[data-cc-page] .footer-reference-bottom .footer-greenstar-bottom {
  margin-top: 0;
  padding: 14px 0;
  display: flex;
  justify-content: center;
}

html[data-cc-page] .footer-greenstar-bottom img {
  width: auto;
  height: 100px;
  max-width: none;
}

/* Newsletter: API error under the form (both footers, dark background) */
html[data-cc-page] .footer-reference-newsletter .newsletter-error {
  margin: 10px 0 0;
  font-size: 12px;
  line-height: 1.5;
  color: #ff9db0;
}

/* =====================================================
   Group footer: top contact band
   logo | phone icon + "Label : number" list | email icon + emails
   aligned to the same columns as .footer-reference-main below,
   with a divider line under it
   ===================================================== */
html[data-cc-page] .footer-reference > .container.footer-directory {
  width: min(1420px,calc(100% - 80px)) !important;
  max-width: 1420px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding: 64px 0 52px !important;
}

html[data-cc-page] .footer-directory {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.05fr .72fr .95fr 1.55fr;
  gap: clamp(38px,4.8vw,78px);
  align-items: start;
  border-bottom: 1px solid rgba(255,255,255,.1);
}

/* the columns below already start after the divider */
html[data-cc-page] .footer-reference .footer-directory + .footer-reference-main {
  padding-top: 56px;
}

html[data-cc-page] .footer-directory-logo img {
  width: 190px;
  height: auto;
}

/* phones span the two link columns, emails sit over the last column */
html[data-cc-page] .footer-directory-phones {
  grid-column: span 2;
}

html[data-cc-page] .footer-directory-group {
  display: grid;
  grid-template-columns: 58px minmax(0,1fr);
  gap: 22px;
  align-items: start;
}

html[data-cc-page] .footer-directory-icon {
  width: 58px;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid rgba(169,0,97,.6);
  background: rgba(169,0,97,.08);
  color: var(--pink);
  font-size: 20px;
}

html[data-cc-page] .footer-directory ul {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 4px 0 0;
  list-style: none;
}

html[data-cc-page] .footer-directory li {
  font-size: 13px;
  line-height: 1.5;
  color: rgba(255,255,255,.72);
}

html[data-cc-page] .footer-directory-label {
  color: rgba(255,255,255,.55);
}

html[data-cc-page] .footer-directory a {
  color: #fff;
  overflow-wrap: anywhere;
  transition: color .2s ease;
}

html[data-cc-page] .footer-directory a:hover {
  color: var(--pink);
}

html[data-cc-page] .footer-directory li b {
  font-weight: 400;
  color: rgba(255,255,255,.4);
}

/* a phone number never breaks in the middle; the line wraps between numbers */
html[data-cc-page] .footer-directory-numbers a {
  white-space: nowrap;
  overflow-wrap: normal;
}

/* Laptop/tablet: logo on its own row, phones + emails side by side */
@media (max-width: 1180px) {
  html[data-cc-page] .footer-directory {
    grid-template-columns: 1fr 1fr;
    gap: 34px 40px;
  }

  html[data-cc-page] .footer-directory-logo {
    grid-column: 1/-1;
  }

  html[data-cc-page] .footer-directory-phones {
    grid-column: auto;
  }
}

@media (max-width: 1100px) {
  html[data-cc-page] .footer-reference > .container.footer-directory {
    width: min(100% - 44px,1420px) !important;
  }
}

/* Phones: everything stacked */
@media (max-width: 820px) {
  html[data-cc-page] .footer-reference > .container.footer-directory {
    width: calc(100% - 30px) !important;
    padding: 50px 0 40px !important;
  }

  html[data-cc-page] .footer-directory {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  html[data-cc-page] .footer-reference .footer-directory + .footer-reference-main {
    padding-top: 44px;
  }
}

@media (max-width: 560px) {
  html[data-cc-page] .footer-directory-logo img {
    width: 172px;
  }

  html[data-cc-page] .footer-directory-group {
    grid-template-columns: 46px minmax(0,1fr);
    gap: 16px;
  }

  html[data-cc-page] .footer-directory-icon {
    width: 46px;
    height: 46px;
    font-size: 16px;
  }

  html[data-cc-page] .footer-directory li {
    font-size: 12.5px;
  }
}

/* Group footer: the logo moved to the top band, so the address is now
   the first thing in the brand column */
html[data-cc-page] .footer-reference .footer-reference-brand > .footer-destination-line:first-child {
  margin-top: 0;
}

/* Group footer columns: slightly bigger headings (Explore / Our Resorts /
   Newsletter) and address, and all columns start on the same top line */
html[data-cc-page] .footer.footer-reference .footer-reference-main h4 {
  font-size: 12px !important;
  line-height: 1.4;
}

html[data-cc-page] .footer.footer-reference .footer-destination-line {
  font-size: 11px;
  line-height: 1.7;
  letter-spacing: .1em;
}

/* the Reservations cards are hidden, so the newsletter is the first item
   and should start level with the other columns */
html[data-cc-page] .footer.footer-reference .footer-reference-reservations > .footer-reference-newsletter:first-child {
  margin-top: 0;
}

/* Top band divider: only under the numbers + emails, not under the logo.
   It starts where the phones column starts (logo column 1.05fr of the
   1.05/.72/.95/1.55 grid, plus one gap) */
html[data-cc-page] .footer-directory {
  --dir-gap: clamp(38px,4.8vw,78px);
  border-bottom: 0;
}

html[data-cc-page] .footer-directory::after {
  content: "";
  position: absolute;
  bottom: 0;
  right: 0;
  left: calc((100% - 3 * var(--dir-gap)) * 1.05 / 4.27 + var(--dir-gap));
  height: 1px;
  background: rgba(255,255,255,.1);
  pointer-events: none;
}

/* logo on its own row / stacked: the line runs under the whole band */
@media (max-width: 1180px) {
  html[data-cc-page] .footer-directory::after {
    left: 0;
  }
}
