/* SAY HI Club — homepage gateway */

/* These start hidden so the hardcoded fallback image never flashes before
   homepage-settings.js swaps in the real one — it reveals them once set. */
#gw-hero-img, #gw-tile-travel-img, #gw-tile-events-img, #gw-tile-fashion-img, #gw-tile-society-img {
  opacity: 0;
  transition: opacity 0.15s ease;
}

.gw-hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.gw-hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 42% 40%;
  filter: grayscale(1) contrast(1.05);
}

.gw-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0.2) 35%, rgba(0,0,0,0.92) 100%);
}

.gw-hero-body {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 32px 32px 64px;
  max-width: 820px;
  margin: 0 auto;
}

.gw-hero-body .eyebrow {
  color: var(--muted-white);
  display: flex;
  justify-content: center;
}

.gw-hero-body h1 {
  color: #fff;
  font-size: clamp(40px, 9vw, 92px);
  font-weight: 800;
  line-height: 1.0;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 12px rgba(0,0,0,0.5);
  margin-top: 14px;
}

.gw-hero-body h1 .gw-underline {
  text-decoration: underline;
  text-decoration-color: var(--lime);
  text-decoration-thickness: 4px;
  text-underline-offset: 8px;
}

.gw-hero-copy {
  color: var(--muted-white);
  font-size: 15.5px;
  max-width: 420px;
  margin: 20px auto 0;
  line-height: 1.6;
}

@media (min-width: 900px) {
  .gw-hero-body { max-width: 1160px; }
}

/* Gateway grid */
.gw-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
  background: var(--line);
  max-width: 1200px;
  margin: 0 auto;
}

.gw-tile {
  position: relative;
  aspect-ratio: 16/11;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--black);
}

.gw-tile-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.05);
  transform: scale(var(--zoom, 1));
  transition: transform 0.4s ease;
}

.gw-tile:hover .gw-tile-img {
  transform: scale(calc(var(--zoom, 1) * 1.05));
}

.gw-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.15) 45%, rgba(0,0,0,0.85) 100%);
}

.gw-tile-body {
  position: relative;
  z-index: 2;
  padding: 24px clamp(20px, 3vw, 32px);
  width: 100%;
}

.gw-tile-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-white);
  margin-bottom: 6px;
}

.gw-tile-title {
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.01em;
}

/* Latest from the blog */
.latest-post {
  max-width: 1000px;
  margin: 0 auto;
  padding: 64px 32px;
}

.latest-post-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--grey);
  margin-bottom: 20px;
}

.latest-post-eyebrow--underline {
  display: inline-block;
  color: var(--grey);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.06em;
  margin-bottom: 20px;
}

.latest-post-eyebrow-underline-part {
  color: var(--black);
  text-decoration: underline;
  text-decoration-color: var(--lime);
  text-decoration-thickness: 3px;
  text-underline-offset: 6px;
}

.latest-post-subline {
  font-size: 14px;
  font-weight: 700;
  color: var(--black);
  margin-bottom: 8px;
}

.latest-post-card {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 32px;
  align-items: center;
  color: inherit;
  text-decoration: none;
}

.latest-post-img {
  display: block;
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--white);
}

.latest-post-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.05);
  transition: transform 0.4s ease;
}

.latest-post-img img.latest-post-img--color {
  filter: saturate(1.4) contrast(1.12) brightness(1.03);
}

.latest-post-card:hover .latest-post-img img {
  transform: scale(1.04);
}

.latest-post-date-pill {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  background: #fff;
  color: var(--black);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 6px 14px;
  border-radius: 999px;
}

.latest-post-tag {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--black);
  text-decoration: underline;
  text-decoration-color: var(--lime);
  text-decoration-thickness: 3px;
  text-underline-offset: 4px;
  margin-bottom: 12px;
  display: inline-block;
}

.latest-post-card h2 {
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.15;
  margin-bottom: 10px;
}

.latest-post-card p {
  font-size: 14.5px;
  color: var(--grey);
  line-height: 1.6;
}

.latest-post-read {
  display: inline-block;
  margin-top: 16px;
  font-size: 13px;
  font-weight: 700;
}

.latest-post-card .trip-explore {
  display: inline-block;
  margin-top: 22px;
}

.next-trip-link {
  display: block;
  margin-top: 16px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--black);
  text-decoration: underline;
  text-decoration-color: var(--lime);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

@media (max-width: 700px) {
  .gw-hero { min-height: 78vh; }
  .gw-hero-body { padding: 24px 20px 48px; }
  .gw-grid { grid-template-columns: 1fr; }
  .gw-tile { aspect-ratio: 16/10; }
  .latest-post { padding: 48px 20px; }
  .latest-post-card { grid-template-columns: 1fr; gap: 16px; }
}
