/*
 * Loaded after current.css in layout.tsx.
 * current.css forces headroom--unpinned to translateY(0), which disables hide-on-scroll.
 * Reference: base.css + Headroom.js — down scroll hides, up scroll shows.
 */

/* Drop legacy Black Tomato web-font fallbacks (Cabin, Josefin Sans) from the active stack. */
body,
.font-base {
  font-family: Poppins, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
}
.header .headroom.headroom--pinned,
.header.headroom.headroom--pinned {
  transform: translateY(0) !important;
}

.header .headroom.headroom--unpinned,
.header.headroom.headroom--unpinned {
  transform: translateY(-100%) !important;
}

.header.headroom,
.header .headroom {
  transition: transform 0.2s linear;
  will-change: transform;
}

body.has-hero-banner .header.headroom {
  transition: transform 0.2s linear, background 0.5s;
}

/* Terra brand — horizontal wordmark logos */
.header img.logo,
.header__logo img {
  display: block;
  background: transparent !important;
  height: 28px;
  max-width: 140px;
  object-fit: contain;
  object-position: left center;
  width: auto;
}

.header.header--mega-menu--desktop .header__left img.logo {
  height: 30px;
  max-width: 150px;
}

.header.header--mega-menu--mobile .header__logo img {
  height: 26px;
  max-width: 130px;
}

body.has-hero-banner
  .header.header--mega-menu.header--mega-menu--desktop
  .header__left
  img.logo {
  height: 30px !important;
  max-width: 150px;
  width: auto;
}

/* Moment landing hero */
body.page-moment,
body.page-template-template-see-you-in-the-moment,
body:has(main.main .syitm section.section.section--hero#top),
body:has(main.main .section.section--hero#top) {
  padding-top: 0 !important;
}

body.page-moment > main.main,
body.page-moment .syitm,
body.page-moment .main.main--moment-home,
body:has(main.main .syitm section.section.section--hero#top) > main.main,
body:has(main.main .syitm section.section.section--hero#top) .syitm,
body:has(main.main .syitm section.section.section--hero#top) .main.main--moment-home {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

body:has(main.main .syitm section.section.section--hero#top) .syitm section.section.section--hero {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

/* Transparent header over moment hero (SSR-safe via :has) */
body:has(main.main .syitm section.section.section--hero#top)
  .header.header--mega-menu.header--mega-menu--desktop.headroom--top:not(.active),
body.transparent-header:has(main.main .syitm section.section.section--hero#top)
  .header.header--mega-menu.header--mega-menu--desktop.headroom--top:not(.active) {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.4), transparent) !important;
  border-bottom: 0 !important;
}

body:has(main.main .syitm section.section.section--hero#top)
  .header.header--mega-menu.header--mega-menu--desktop.headroom--top:not(.active)
  .header__bar.header__bar--top,
body.transparent-header:has(main.main .syitm section.section.section--hero#top)
  .header.header--mega-menu.header--mega-menu--desktop.headroom--top:not(.active)
  .header__bar.header__bar--top {
  background-color: transparent !important;
}

body:has(main.main .syitm section.section.section--hero#top)
  .header.header--mega-menu.header--mega-menu--desktop.headroom--top:not(.active)
  .header__left
  .logo--light,
body.transparent-header:has(main.main .syitm section.section.section--hero#top)
  .header.header--mega-menu.header--mega-menu--desktop.headroom--top:not(.active)
  .header__left
  .logo--light {
  display: block !important;
  opacity: 1 !important;
}

body:has(main.main .syitm section.section.section--hero#top)
  .header.header--mega-menu.header--mega-menu--desktop.headroom--top:not(.active)
  .header__left
  .logo--dark,
body.transparent-header:has(main.main .syitm section.section.section--hero#top)
  .header.header--mega-menu.header--mega-menu--desktop.headroom--top:not(.active)
  .header__left
  .logo--dark {
  display: none !important;
  opacity: 0 !important;
}

body:has(main.main .syitm section.section.section--hero#top)
  .header.header--mega-menu.header--mega-menu--desktop.headroom--top:not(.active)
  .nav--menu--mega--desktop
  > li
  > a:not(.btn),
body:has(main.main .syitm section.section.section--hero#top)
  .header.header--mega-menu.header--mega-menu--desktop.headroom--top:not(.active)
  .header__tel,
body.transparent-header:has(main.main .syitm section.section.section--hero#top)
  .header.header--mega-menu.header--mega-menu--desktop.headroom--top:not(.active)
  .nav--menu--mega--desktop
  > li
  > a:not(.btn),
body.transparent-header:has(main.main .syitm section.section.section--hero#top)
  .header.header--mega-menu.header--mega-menu--desktop.headroom--top:not(.active)
  .header__tel {
  color: #fff !important;
}

.syitm section.section.section--hero .hero-logo img {
  display: inline-block;
  height: auto;
  max-height: min(200px, 30vh);
  max-width: min(180px, 42vw);
  width: auto;
}

/* Scrolled header / mega menu open — white bar with dark text & logo (all pages) */
.header.header--mega-menu.header--mega-menu--desktop.headroom--not-top,
.header.header--mega-menu.header--mega-menu--desktop.not-top,
.header.header--mega-menu.header--mega-menu--desktop.active {
  background: #fff !important;
  border-bottom: 0;
}

.header.header--mega-menu.header--mega-menu--desktop.headroom--not-top
  .header__bar.header__bar--top,
.header.header--mega-menu.header--mega-menu--desktop.not-top
  .header__bar.header__bar--top,
.header.header--mega-menu.header--mega-menu--desktop.active
  .header__bar.header__bar--top {
  background-color: #fff !important;
}

.header.header--mega-menu.header--mega-menu--desktop.headroom--not-top
  .header__left
  .logo--light,
.header.header--mega-menu.header--mega-menu--desktop.not-top
  .header__left
  .logo--light,
.header.header--mega-menu.header--mega-menu--desktop.active
  .header__left
  .logo--light {
  display: none !important;
  opacity: 0 !important;
}

.header.header--mega-menu.header--mega-menu--desktop.headroom--not-top
  .header__left
  .logo--dark,
.header.header--mega-menu.header--mega-menu--desktop.not-top
  .header__left
  .logo--dark,
.header.header--mega-menu.header--mega-menu--desktop.active
  .header__left
  .logo--dark {
  display: block !important;
  opacity: 1 !important;
}

.header.header--mega-menu.header--mega-menu--desktop.headroom--not-top
  .nav--menu--mega--desktop
  > li
  > a:not(.btn),
.header.header--mega-menu.header--mega-menu--desktop.not-top
  .nav--menu--mega--desktop
  > li
  > a:not(.btn),
.header.header--mega-menu.header--mega-menu--desktop.active
  .nav--menu--mega--desktop
  > li
  > a:not(.btn),
.header.header--mega-menu.header--mega-menu--desktop.headroom--not-top
  .header__tel,
.header.header--mega-menu.header--mega-menu--desktop.not-top
  .header__tel,
.header.header--mega-menu.header--mega-menu--desktop.active
  .header__tel,
.header.header--mega-menu.header--mega-menu--desktop.headroom--not-top
  .header__tel
  .header__tel__opening,
.header.header--mega-menu.header--mega-menu--desktop.not-top
  .header__tel
  .header__tel__opening,
.header.header--mega-menu.header--mega-menu--desktop.active
  .header__tel
  .header__tel__opening {
  color: #444 !important;
}

.header.header--mega-menu.header--mega-menu--desktop.headroom--not-top
  .menu--swiftsearch
  form
  button
  svg
  path,
.header.header--mega-menu.header--mega-menu--desktop.not-top
  .menu--swiftsearch
  form
  button
  svg
  path,
.header.header--mega-menu.header--mega-menu--desktop.active
  .menu--swiftsearch
  form
  button
  svg
  path {
  fill: #444 !important;
  stroke: #444 !important;
}

.header.header--mega-menu.header--mega-menu--desktop.headroom--not-top
  .header__toggle.header__toggle--desktop
  span,
.header.header--mega-menu.header--mega-menu--desktop.not-top
  .header__toggle.header__toggle--desktop
  span,
.header.header--mega-menu.header--mega-menu--desktop.active
  .header__toggle.header__toggle--desktop
  span {
  background-color: #444 !important;
}

/* Footer typography — titles above list links */
.footer .footer__title {
  font-size: 19px;
  font-size: 1.1875rem;
  line-height: 1.35;
}

.footer .footer__list {
  font-size: 15px;
  font-size: 0.9375rem;
}

.footer .footer__list li,
.footer .footer__list a {
  font-size: inherit;
}

.footer .footer__subscribe .footer__title {
  font-size: 15px;
  font-size: 0.9375rem;
  line-height: 1.3;
}

/* Footer first column — newsletter + social pinned to column bottom */
.footer .footer__main.is-desktop .row.row--flex {
  align-items: stretch;
}

.footer .footer__main.is-desktop .row.row--flex > .col:first-child {
  display: flex;
  flex-direction: column;
}

.footer .footer__column-bottom {
  margin-top: auto;
}

/* Footer social icons — below newsletter subscribe */
.footer .footer__subscribe {
  margin-bottom: 0;
}

.footer .footer__subscribe .form-footer-subscribe {
  margin-bottom: 0;
}

.footer .footer__social {
  align-items: center;
  display: flex;
  gap: 14px;
  margin-top: 12px;
}

.footer .footer__social-link {
  align-items: center;
  color: #adadad;
  display: inline-flex;
  line-height: 1;
  transition: color 0.2s ease;
}

.footer .footer__social-link:hover {
  color: #fff;
}

.footer .footer__social-link svg {
  display: block;
  height: 20px;
  width: 20px;
}

/* Mega menu — 4-column grid (quarter / season tiles) */
.nav__panel__grid--4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.nav__panel__grid .mega-menu-range-title {
  align-items: center;
  display: flex;
  flex-direction: column;
  gap: 0.2em;
  justify-content: center;
  line-height: 1.15;
  text-align: center;
}

.nav__panel__grid .mega-menu-range-title__month {
  display: block;
}

.nav__panel__grid .mega-menu-range-title__to {
  display: block;
  font-size: 0.72em;
  font-style: italic;
  font-weight: 400;
  letter-spacing: 0.14em;
  opacity: 0.92;
  text-transform: lowercase;
}

/* Mega menu & experience tiles — keep hover copy inside cards */
.nav__panel__grid li {
  overflow: hidden;
}

.nav__panel__grid li .item__hover {
  box-sizing: border-box;
  font-size: 12px;
  inset: 0;
  line-height: 1.45;
  overflow: hidden;
  overflow-wrap: anywhere;
  padding: 18px 14px;
  width: 100%;
  z-index: 3;
}

.nav__panel__grid li a:hover .item__hover {
  background: rgba(0, 0, 0, 0.45);
}

section.section.section--filtered_tiles
  .section__content
  .section__tab
  .col
  .panel__content.panel__content--hover-text {
  overflow: hidden;
}

section.section.section--filtered_tiles
  .section__content
  .section__tab
  .col
  .panel__content.panel__content--hover-text
  .hover {
  bottom: 0;
  box-sizing: border-box;
  height: 100%;
  left: 0;
  min-height: 0;
  overflow: hidden;
  padding: 20px 16px;
  top: 0;
  transform: none;
  width: 100%;
}

section.section.section--filtered_tiles
  .section__content
  .section__tab
  .col
  .panel__content.panel__content--hover-text
  .hover
  p {
  font-size: 13px;
  line-height: 1.45;
  margin: 0;
  max-height: 100%;
  min-height: 0;
  overflow: hidden;
  overflow-wrap: anywhere;
}

/* 404 page */
.page-not-found .not-found-hero .container--absolute {
  color: #444;
  text-align: center;
}

.page-not-found .not-found-code {
  color: #444;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(4rem, 12vw, 7rem);
  font-weight: 400;
  letter-spacing: 0.08em;
  line-height: 1;
  margin: 0 0 0.5rem;
  opacity: 0.9;
}

.page-not-found .not-found-content .home-cta-center {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 1.5rem;
}

.page-not-found .not-found-links {
  margin-top: 2.5rem;
}

.page-not-found .not-found-links ul {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  justify-content: center;
  list-style: none;
  margin: 0;
  padding: 0;
}

.page-not-found .not-found-links a {
  color: inherit;
  font-size: 14px;
  letter-spacing: 0.06em;
  text-decoration: none;
  text-transform: uppercase;
}

.page-not-found .not-found-links a:hover {
  text-decoration: underline;
}

/* Keep inspiration mega menu parent links above submenu hit targets. */
.nav-panel .nav__panel__menu > .menu-item > a {
  position: relative;
  z-index: 30;
}
