/*
 * Session 31 Step 20 — Comprehensive footer.
 *
 * Cream-tinted variant on cream pages (.surface-cream), dark variant
 * on dark pages (default). Mobile collapses to accordion sections.
 *
 * Three-column top section: Preferred Hotel Partners, Affiliate Partners,
 * Become a Partner. Middle: Editorial. Bottom: trust + legal.
 */

footer.bt-footer {
  margin-top: 6rem;
  padding: 5rem 2rem 2rem;
  border-top: 1px solid var(--border, rgba(196, 160, 82, 0.15));
  background: var(--black, #1A2B4A);
  color: var(--text, #E8E2D5);
  font-family: 'Jost', sans-serif;
}

.surface-cream footer.bt-footer {
  background: #F5EFE6;
  color: #1A2B4A;
  border-top-color: rgba(196, 160, 82, 0.3);
}

.bt-footer__inner {
  max-width: 1280px;
  margin: 0 auto;
}

/* -------------------------------------------------------------------------- */
/* Top — partner relationships (3-column)                                     */
/* -------------------------------------------------------------------------- */

.bt-footer__partners {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4rem;
  padding-bottom: 4rem;
  border-bottom: 1px solid rgba(196, 160, 82, 0.15);
}

.surface-cream .bt-footer__partners {
  border-bottom-color: rgba(196, 160, 82, 0.25);
}

@media (max-width: 900px) {
  .bt-footer__partners {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

.bt-footer__col h3 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: 1.375rem;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  color: inherit;
}

.bt-footer__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.5rem;
}

.bt-footer__list a {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1rem;
  color: inherit;
  text-decoration: none;
  transition: color 200ms ease;
}

.bt-footer__list a:hover {
  color: var(--gold, #C4A052);
}

.surface-cream .bt-footer__list a:hover {
  color: #C4A052;
}

.bt-footer__viewall {
  margin-top: 1rem;
  display: inline-block;
  font-family: 'Jost', sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold, #C4A052);
  position: relative;
  padding-bottom: 2px;
}

.surface-cream .bt-footer__viewall {
  color: #C4A052;
}

.bt-footer__viewall::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: currentColor;
  transition: width 300ms ease;
}

.bt-footer__viewall:hover::after {
  width: 100%;
}

/* CTAs in the Become a Partner column get the gold-rule treatment */

.bt-footer__cta-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 1.25rem;
}

.bt-footer__cta-list a {
  display: block;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.0625rem;
  line-height: 1.4;
  color: inherit;
  text-decoration: none;
  padding-left: 1rem;
  border-left: 1px solid var(--gold, #C4A052);
  transition: padding-left 200ms ease;
}

.bt-footer__cta-list a:hover {
  padding-left: 1.5rem;
}

.surface-cream .bt-footer__cta-list a {
  border-left-color: #C4A052;
}

/* -------------------------------------------------------------------------- */
/* Middle — editorial                                                         */
/* -------------------------------------------------------------------------- */

.bt-footer__editorial {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 3rem;
  padding: 4rem 0;
  border-bottom: 1px solid rgba(196, 160, 82, 0.15);
}

.surface-cream .bt-footer__editorial {
  border-bottom-color: rgba(196, 160, 82, 0.25);
}

@media (max-width: 900px) {
  .bt-footer__editorial {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
}

@media (max-width: 600px) {
  .bt-footer__editorial {
    grid-template-columns: 1fr;
  }
}

.bt-footer__newsletter {
  grid-column: span 1;
}

.bt-footer__newsletter p {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 0.95rem;
  color: var(--text-mid, #B0AEAB);
  margin-bottom: 1rem;
  line-height: 1.5;
}

.surface-cream .bt-footer__newsletter p {
  color: rgba(26, 43, 74, 0.7);
}

.bt-footer__newsletter form {
  display: flex;
  gap: 0.5rem;
}

.bt-footer__newsletter input[type="email"] {
  flex: 1;
  padding: 0.6rem 0.75rem;
  background: transparent;
  border: 1px solid var(--border, rgba(196, 160, 82, 0.2));
  color: inherit;
  font-family: 'Jost', sans-serif;
  font-size: 0.875rem;
}

.bt-footer__newsletter input[type="email"]:focus {
  outline: none;
  border-color: var(--gold, #C4A052);
}

.surface-cream .bt-footer__newsletter input[type="email"] {
  border-color: rgba(26, 43, 74, 0.2);
}

.bt-footer__newsletter button {
  padding: 0.6rem 1rem;
  background: var(--gold, #C4A052);
  color: #1F3050;
  border: 0;
  font-family: 'Jost', sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
  transition: box-shadow 200ms ease;
}

.bt-footer__newsletter button:hover {
  box-shadow: 0 0 16px rgba(196, 160, 82, 0.4);
}

.surface-cream .bt-footer__newsletter button {
  background: #C4A052;
  color: #FFFFFF;
}

/* -------------------------------------------------------------------------- */
/* Bottom — trust + legal                                                     */
/* -------------------------------------------------------------------------- */

.bt-footer__trust {
  padding: 3rem 0 0;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: center;
}

@media (max-width: 720px) {
  .bt-footer__trust {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

.bt-footer__wordmark {
  /* Wave 51g — anchor was expanding to fill the .bt-footer__trust 1fr
   * grid column, so the clickable region stretched from the logo all
   * the way across to the legal links on the right. Constrain to the
   * logo image's intrinsic width. */
  display: inline-flex;
  align-items: center;
  width: fit-content;
  justify-self: start;
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: 0.95rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold, #C4A052);
}

.surface-cream .bt-footer__wordmark {
  color: #C4A052;
}

.bt-footer__legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: flex-end;
  font-family: 'Jost', sans-serif;
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

@media (max-width: 720px) {
  .bt-footer__legal-links {
    justify-content: center;
  }
}

.bt-footer__legal-links a {
  color: inherit;
  opacity: 0.7;
  text-decoration: none;
  transition: opacity 200ms ease, color 200ms ease;
}

.bt-footer__legal-links a:hover {
  opacity: 1;
  color: var(--gold, #C4A052);
}

.surface-cream .bt-footer__legal-links a:hover {
  color: #C4A052;
}

.bt-footer__copyright {
  margin-top: 2rem;
  font-family: 'Jost', sans-serif;
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  opacity: 0.5;
  text-align: center;
}

/* -------------------------------------------------------------------------- */
/* Mobile accordion                                                           */
/* -------------------------------------------------------------------------- */

@media (max-width: 900px) {
  .bt-footer__col {
    border-bottom: 1px solid rgba(196, 160, 82, 0.15);
    padding-bottom: 1.5rem;
  }

  .surface-cream .bt-footer__col {
    border-bottom-color: rgba(196, 160, 82, 0.25);
  }

  .bt-footer__col[data-collapsible] h3 {
    cursor: pointer;
    margin-bottom: 0;
    padding: 0.5rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .bt-footer__col[data-collapsible] h3::after {
    content: '+';
    font-size: 1.5rem;
    line-height: 1;
    transition: transform 200ms ease;
  }

  .bt-footer__col[data-collapsible].is-open h3::after {
    content: '−';
  }

  .bt-footer__col[data-collapsible] .bt-footer__collapsible-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 300ms ease;
  }

  .bt-footer__col[data-collapsible].is-open .bt-footer__collapsible-content {
    max-height: 600px;
    padding-top: 1rem;
  }
}

@media (min-width: 901px) {
  .bt-footer__col[data-collapsible] .bt-footer__collapsible-content {
    max-height: none !important;
  }
}
