/* 1001 Nights — migrated from Wix theme */
:root {
  --color-bg: #181818;
  --color-bg-section: #262626;
  --color-text: #ffffff;
  --color-text-muted: #c5c5c5;
  --color-accent: #6b703b;
  --color-primary: #6b703b;
  --color-primary-hover: #5a6132;
  --color-primary-active: #4d532c;
  --color-accent-dark: #6b703b;
  --color-header: #000000;
  --color-popup-bg: #fcf5f0;
  --color-popup-text: #181818;
  --color-join-form-bg: #3d3d3d;
  --radius-pill: 999px;
  --radius-form: 999px;
  --font-serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-sans: Raleway, Helvetica, Arial, sans-serif;
  --max-width: 980px;
  --header-height: 72px;
}

/* Lighter palette on English/Chinese home */
body.page-home {
  --color-bg: #2a2a2a;
  --color-bg-section: #383838;
  --color-header: #1c1c1c;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.75;
  color: var(--color-text);
  background: var(--color-bg);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(100% - 2rem, var(--max-width));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--color-header);
  height: var(--header-height);
  display: flex;
  align-items: center;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(100% - 2rem, var(--max-width));
  margin-inline: auto;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.site-logo__icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  object-fit: contain;
}

.site-logo__text {
  font-family: var(--font-serif);
  font-size: 1.375rem;
  font-weight: 400;
  color: #fff;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.9rem;
  font-weight: 400;
}

.site-nav > li > a:hover,
.site-nav > li > a.is-active {
  opacity: 0.75;
  text-decoration: none;
}

.site-nav__langs {
  position: relative;
}

.site-nav__lang-toggle {
  background: none;
  border: none;
  color: #fff;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.site-nav__lang-toggle:hover {
  opacity: 0.75;
}

.site-nav__lang-menu {
  position: absolute;
  top: 100%;
  right: 0;
  margin: 0.5rem 0 0;
  padding: 0.35rem 0;
  list-style: none;
  background: #1a1a1a;
  border: 1px solid rgba(255, 255, 255, 0.12);
  min-width: 140px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
  z-index: 1100;
}

.site-nav__langs.is-open .site-nav__lang-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.site-nav__lang-menu a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 1rem;
  font-size: 0.85rem;
  white-space: nowrap;
}

.site-nav__lang-flag {
  width: 22px;
  height: 16px;
  object-fit: cover;
  border-radius: 2px;
  flex-shrink: 0;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.15);
}

.site-nav__lang-toggle .site-nav__lang-flag {
  margin-right: 0.35rem;
}

.site-nav__lang-menu a:hover,
.site-nav__lang-menu a.is-active {
  background: rgba(107, 112, 59, 0.35);
  opacity: 1;
  text-decoration: none;
}

.site-nav__social {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.site-nav__social img {
  width: 20px;
  height: 20px;
  opacity: 0.9;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.25rem;
}

main {
  padding-top: var(--header-height);
}

/* Hero */
.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: #111 center/cover no-repeat;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 120px), 50% 100%, 0 calc(100% - 120px));
  margin-bottom: -1px;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.25), rgba(0, 0, 0, 0.45));
}

body.page-home .hero::before {
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.38));
}

.hero__content {
  position: relative;
  z-index: 1;
  padding: 4rem 1.5rem 8rem;
  max-width: 720px;
}

.hero__title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 400;
  line-height: 1.2;
  margin: 0 0 0.75rem;
}

.hero__tagline {
  font-size: 1.65rem;
  font-weight: 300;
  margin: 0 0 4.25rem;
  opacity: 0.95;
  line-height: 1.45;
}

.hero__body {
  font-size: 0.95rem;
  line-height: 1.8;
  margin: 0 0 2rem;
  opacity: 0.92;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.65rem 2rem;
  border-radius: var(--radius-pill);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: background 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.btn--primary {
  background: var(--color-primary);
  color: #fff;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

.btn--primary:hover {
  background: var(--color-primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(107, 112, 59, 0.45);
}

.btn--primary:active {
  background: var(--color-primary-active);
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* Sections */
.section {
  padding: 4rem 0;
}

.section--dark {
  background: var(--color-bg-section);
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 400;
  text-align: center;
  color: var(--color-primary);
  margin: 0 0 2.5rem;
}

.section-title--dark {
  color: var(--color-popup-text);
}

/* About */
.about {
  position: relative;
  min-height: 560px;
  display: flex;
  align-items: center;
  background: #222 center/cover no-repeat;
}

.about::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.65) 0%, rgba(0, 0, 0, 0.35) 60%, transparent 100%);
}

body.page-home .about::before {
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0.28) 60%, transparent 100%);
}

.about__content {
  position: relative;
  z-index: 1;
  padding: 5rem 0;
  max-width: 520px;
}

.about__title {
  font-family: var(--font-serif);
  font-size: 2.25rem;
  margin: 0 0 0.5rem;
}

.about__name {
  font-size: 1rem;
  margin: 0 0 0.25rem;
}

.about__role {
  font-size: 0.9rem;
  opacity: 0.9;
  margin: 0 0 1rem;
}

.about__body {
  font-size: 0.9rem;
  line-height: 1.8;
  margin: 0;
}

/* Cards grid */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.card {
  text-align: center;
}

.card__img-wrap {
  aspect-ratio: 4/3;
  overflow: hidden;
  margin-bottom: 1rem;
}

.card__img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card__title {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  color: var(--color-primary);
  margin: 0 0 0.75rem;
}

.card__text {
  font-size: 0.9rem;
  line-height: 1.7;
  margin: 0;
  opacity: 0.95;
}

.cards-grid .card:nth-child(2) {
  display: flex;
  flex-direction: column;
}

.cards-grid .card:nth-child(2) .btn {
  margin-top: 1.25rem;
}

/* Media logos */
.media-logos {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  padding: 1.5rem 0;
  max-width: 900px;
  margin-inline: auto;
}

.media-logos__row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 2rem 2.5rem;
  width: 100%;
}

.media-logos__item {
  flex: 0 1 160px;
  max-width: 180px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.media-logos__item img {
  max-width: 100%;
  max-height: 48px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.95;
}

@media (max-width: 900px) {
  .media-logos__row {
    gap: 1.5rem 2rem;
  }

  .media-logos__item {
    flex: 0 1 120px;
  }
}

/* Subscribe inline */
.subscribe-inline {
  position: relative;
  background: var(--color-popup-bg) center/cover no-repeat;
  color: var(--color-popup-text);
  text-align: center;
  padding: 5rem 0;
}

.subscribe-inline::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(252, 245, 240, 0.88);
}

.subscribe-inline__inner {
  position: relative;
  z-index: 1;
}

.subscribe-inline__sub {
  margin: 0 0 1.5rem;
  font-size: 0.95rem;
}

.subscribe-form__label {
  display: block;
  text-align: left;
  font-size: 0.8rem;
  margin-bottom: 0.35rem;
}

.subscribe-form__row {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
  max-width: 520px;
  margin-inline: auto;
}

.subscribe-form input[type="email"] {
  flex: 1;
  min-width: 200px;
  padding: 0.75rem 1.25rem;
  border: 1px solid #333;
  border-radius: var(--radius-pill);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  background: #fff;
}

.subscribe-form--inline .btn--primary:hover {
  background: var(--color-primary-hover);
}

.subscribe-form__success {
  margin-top: 1rem;
  color: var(--color-primary);
  font-weight: 500;
}

/* Footer */
.site-footer {
  background: var(--color-bg-section);
  text-align: center;
  padding: 2rem 1rem;
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

/* Chat widget placeholder */
.chat-widget {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 900;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--color-primary);
  color: #fff;
  padding: 0.6rem 1rem;
  border-radius: 8px;
  font-family: var(--font-serif);
  font-size: 0.95rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
  transition: background 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.chat-widget:hover {
  background: var(--color-primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(107, 112, 59, 0.45);
}

.chat-widget__icon {
  font-size: 1.1rem;
}

/* Subscribe modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}

.modal-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.modal {
  display: grid;
  grid-template-columns: 1fr 1fr;
  max-width: 900px;
  width: 100%;
  max-height: 90vh;
  background: var(--color-popup-bg);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.modal__content {
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.modal__title {
  font-family: var(--font-sans);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--color-popup-text);
  margin: 0 0 0.75rem;
  line-height: 1.25;
}

.modal__text {
  font-size: 0.95rem;
  color: #444;
  margin: 0 0 1.5rem;
}

.modal .subscribe-form__label {
  color: #333;
}

.modal .subscribe-form input[type="email"] {
  width: 100%;
  border: none;
  border-bottom: 1px solid #333;
  border-radius: 0;
  padding: 0.5rem 0;
  background: transparent;
  margin-bottom: 1rem;
}

.modal .subscribe-form input::placeholder {
  font-style: italic;
  color: #999;
}

.modal .btn--primary {
  width: 100%;
  padding: 0.85rem;
}

.modal__image {
  position: relative;
  min-height: 280px;
  overflow: hidden;
  background: #2a2a2a;
}

.modal__image-photo {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
  object-position: center;
  filter: contrast(1.08) brightness(0.94) saturate(1.04);
}

.modal__image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.18);
  pointer-events: none;
}

.modal__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.25rem;
  z-index: 2;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

/* Walking pages */
.walking-hero {
  background: var(--color-bg-section);
  text-align: center;
  padding: 2rem 0 2.5rem;
  overflow: hidden;
}

.walking-hero__inner {
  position: relative;
  padding-top: 0.5rem;
}

.walking-hero__brand {
  width: min(100%, 645px);
  margin: 0 auto 1.5rem;
  aspect-ratio: 646 / 554;
  -webkit-mask-image: url("/assets/images/walking-1001-mask.svg");
  mask-image: url("/assets/images/walking-1001-mask.svg");
  mask-size: contain;
  mask-repeat: no-repeat;
  mask-position: center;
  -webkit-mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  animation: walkingBrandIn 1.2s ease-out both;
  background: #1a1a1a;
}

.walking-hero__brand-video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@keyframes walkingBrandIn {
  0% {
    opacity: 0;
    transform: scale(0.92) translateY(12px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.walking-hero__title {
  font-family: var(--font-serif);
  font-size: 2rem;
  margin: 0 0 1rem;
  animation: walkingBrandIn 1s ease-out 0.15s both;
}

.walking-hero__lead {
  max-width: 640px;
  margin: 0 auto 1.5rem;
  font-size: 0.95rem;
  opacity: 0.9;
  animation: walkingBrandIn 1s ease-out 0.3s both;
}

.walking-hero__inner .btn {
  animation: walkingBrandIn 1s ease-out 0.45s both;
}

.stories-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem 2.5rem;
  padding-bottom: 2rem;
}

@media (min-width: 992px) {
  .stories-grid {
    grid-template-columns: repeat(2, 1fr);
    column-gap: 3rem;
    row-gap: 3rem;
    max-width: 920px;
    margin-inline: auto;
  }

  /* Stagger right column for a more organic layout */
  .story-card:nth-child(2n) {
    margin-top: 3rem;
  }
}

@media (min-width: 640px) and (max-width: 991px) {
  .stories-grid {
    grid-template-columns: repeat(2, 1fr);
    column-gap: 2rem;
  }

  .story-card:nth-child(2n) {
    margin-top: 2rem;
  }
}

.story-card__img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  margin-bottom: 1rem;
}

.story-card__title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: var(--color-primary);
  margin: 0 0 0.35rem;
  text-align: center;
}

.story-card__location {
  text-align: center;
  font-size: 0.85rem;
  opacity: 0.85;
  margin: 0 0 0.75rem;
}

.story-card__quote {
  font-size: 0.9rem;
  line-height: 1.7;
  margin: 0;
  padding: 0;
  border: none;
  text-align: center;
  font-style: normal;
}

.story-card__body {
  font-size: 0.85rem;
  opacity: 0.9;
  margin: 0.75rem 0 0;
  text-align: center;
}

.pager {
  text-align: center;
  padding: 2rem 0 3rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.pager__label {
  margin: 0 0 1rem;
  opacity: 0.8;
}

.pager__nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.pager__link {
  font-size: 0.95rem;
}

.pager__link--primary {
  color: var(--color-primary);
}

.pager__link--primary:hover {
  color: var(--color-primary-hover);
}

.pager__note {
  opacity: 0.7;
  font-size: 0.9rem;
}

/* Join page */
.join-hero {
  position: relative;
  min-height: 50vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: #222 center/cover no-repeat;
  padding: 3rem 1rem;
}

.join-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
}

.join-form-section {
  background: var(--color-join-form-bg);
  color: #f0f0f0;
  padding: 3rem 0 4rem;
}

.join-form-section .join-form label,
.join-form-section > .container > p {
  color: #e8e8e8;
}

.join-form-section small {
  color: #b0b0b0;
}

.join-form {
  max-width: 560px;
  margin: 0 auto;
}

.join-form .form-group {
  margin-bottom: 1.25rem;
}

.join-form label {
  display: block;
  font-size: 0.85rem;
  margin-bottom: 0.35rem;
}

.join-form input[type="text"],
.join-form input[type="email"],
.join-form input[type="tel"],
.join-form input[type="file"],
.join-form textarea {
  width: 100%;
  padding: 0.75rem 1.1rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-form);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.join-form input::placeholder,
.join-form textarea::placeholder {
  color: rgba(255, 255, 255, 0.45);
}

.join-form textarea {
  min-height: 120px;
  resize: vertical;
  border-radius: 1.25rem;
}

.join-form input[type="file"] {
  padding: 0.5rem 0.75rem;
  font-size: 0.85rem;
}

.join-form .form-check {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.85rem;
  margin: 1rem 0;
}

.join-form .form-check input {
  margin-top: 0.25rem;
}

.join-form__success {
  text-align: center;
  padding: 2rem;
  color: #c5d4a8;
}

.join-form-section .btn--primary {
  border-radius: var(--radius-pill);
  padding: 0.85rem 2rem;
}

.join-contact {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
  margin-top: 2rem;
  text-align: center;
  font-size: 0.95rem;
  color: #f0f0f0;
}

.join-contact__line {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}

.join-contact__icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  fill: #ffffff;
}

.join-contact a {
  color: #fff;
  text-decoration: none;
}

.join-contact a:hover {
  opacity: 0.85;
}

/* Visually hidden but available to screen readers */
.subscribe-form__label--sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* Chinese page */
html[lang="zh"] .hero__title,
html[lang="zh"] .about__title,
html[lang="zh"] .section-title {
  font-family: var(--font-serif), "Noto Serif SC", serif;
}

/* Responsive */
@media (max-width: 900px) {
  .cards-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin-inline: auto;
  }

  .modal {
    grid-template-columns: 1fr;
    max-height: 95vh;
    overflow-y: auto;
  }

  .modal__image {
    min-height: 200px;
    order: -1;
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--color-header);
    flex-direction: column;
    padding: 1rem;
    gap: 0.75rem;
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.25s, opacity 0.25s;
  }

  .site-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .site-nav__lang-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    background: transparent;
    margin-top: 0.5rem;
  }

  .site-nav__langs:not(.is-open) .site-nav__lang-menu {
    display: none;
  }

  .hero {
    min-height: 70vh;
    clip-path: none;
    padding-bottom: 2rem;
  }

  .about__content {
    max-width: 100%;
  }
}
