/* Homepage — kj-templates desktop + mobile design */

.page-home {
  --hp-paper: #fffafa;
  --hp-paper-2: #f9f1f1;
  --hp-ink: #333333;
  --hp-accent: #d80909;
  --hp-star: #f5a623;
  --hp-gut: clamp(20px, 5vw, 64px);
  --hp-wrap: min(1320px, 100%);
  background: var(--hp-paper);
  color: var(--hp-ink);
}

.page-home .hp-wrap {
  max-width: var(--hp-wrap);
  margin-inline: auto;
  padding-inline: var(--hp-gut);
}

/* Hero */
.hp-hero {
  position: relative;
  min-height: clamp(560px, 88vh, 900px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background-color: #2a1f1c;
}

.hp-hero__media {
  position: absolute;
  inset: 0;
}

.hp-hero__media picture,
.hp-hero__media img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  object-fit: cover;
  object-position: center;
  aspect-ratio: unset !important;
}

.hp-hero__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(20, 14, 13, 0.15) 0%,
    rgba(20, 14, 13, 0.1) 40%,
    rgba(20, 14, 13, 0.72) 100%
  );
  pointer-events: none;
}

.hp-hero__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--hp-wrap);
  margin: 0 auto;
  padding: clamp(40px, 7vw, 90px) var(--hp-gut);
}

.hp-hero__title {
  margin: 0;
  font-weight: 700;
  font-size: clamp(40px, 6.5vw, 72px);
  line-height: 0.98;
  letter-spacing: -0.02em;
  color: #fff;
  text-wrap: balance;
  max-width: 15ch;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.35);
}

.hp-hero__lead {
  margin: 22px 0 0;
  font-size: clamp(15px, 1.4vw, 18px);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.92);
  max-width: 54ch;
  text-wrap: pretty;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.35);
}

.hp-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.hp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 600;
  font-size: 15px;
  padding: 15px 30px;
  border-radius: 999px;
  text-decoration: none;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.hp-btn:hover {
  transform: translateY(-1px);
}

.hp-btn--primary {
  background: var(--hp-accent);
  color: #fff;
}

.hp-btn--ghost {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(6px);
  color: #fff;
}

/* Reviews */
.hp-reviews {
  padding: clamp(56px, 8vw, 96px) 0;
  border-bottom: 1px solid rgba(51, 51, 51, 0.08);
}

.hp-reviews__header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: clamp(28px, 4vw, 40px);
}

.hp-reviews__title {
  margin: 0;
  font-weight: 700;
  font-size: clamp(28px, 3.6vw, 42px);
  line-height: 1.08;
  letter-spacing: -0.025em;
  text-wrap: balance;
  max-width: 20ch;
}

.hp-reviews__rating {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.hp-reviews__stars {
  color: var(--hp-star);
  font-size: 18px;
  letter-spacing: 2px;
}

.hp-reviews__rating-label {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.04em;
  color: rgba(51, 51, 51, 0.6);
}

.hp-reviews__embed {
  min-height: 120px;
}

/* Why Kyushu */
.hp-why {
  background: var(--hp-paper-2);
  border-bottom: 1px solid rgba(51, 51, 51, 0.08);
  padding: clamp(56px, 8vw, 96px) 0;
}

.hp-why__intro {
  max-width: 60ch;
}

.hp-why__title {
  margin: 0;
  font-weight: 700;
  font-size: clamp(28px, 3.6vw, 42px);
  line-height: 1.08;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.hp-why__lead {
  margin: 22px 0 0;
  font-size: 16px;
  line-height: 1.7;
  text-wrap: pretty;
}

.hp-why__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 0;
  margin-top: 44px;
  border-top: 1px solid rgba(51, 51, 51, 0.12);
}

.hp-why__item {
  padding: 30px 28px 30px 0;
  border-bottom: 1px solid rgba(51, 51, 51, 0.12);
}

.hp-why__item-title {
  margin: 0 0 10px;
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -0.01em;
}

.hp-why__item-text {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  opacity: 0.85;
  text-wrap: pretty;
}

/* Travel styles intro */
.hp-styles-intro {
  padding: clamp(56px, 8vw, 96px) 0;
  border-bottom: 1px solid rgba(51, 51, 51, 0.08);
}

.hp-styles-intro__title {
  margin: 0;
  font-weight: 700;
  font-size: clamp(28px, 3.6vw, 42px);
  line-height: 1.08;
  letter-spacing: -0.025em;
  max-width: 18ch;
  text-wrap: balance;
}

.hp-styles-intro__text {
  margin: 22px 0 0;
  max-width: 64ch;
  font-size: 16px;
  line-height: 1.7;
  text-wrap: pretty;
}

/* Travel style cards */
.hp-styles-grid {
  counter-reset: hp-style;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr));
  gap: clamp(28px, 3vw, 40px);
  padding: clamp(48px, 6vw, 80px) var(--hp-gut);
  max-width: var(--hp-wrap);
  margin: 0 auto;
}

.hp-style-card {
  --hp-arrow: 0px;
  --hp-accent-dot: #d80909;
  counter-increment: hp-style;
  background: var(--hp-paper);
  border: 1px solid rgba(51, 51, 51, 0.08);
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 6px 22px -14px rgba(120, 60, 50, 0.25);
  transition:
    transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.hp-style-card:hover {
  --hp-arrow: 4px;
  transform: translateY(-5px);
  box-shadow: 0 22px 44px -22px rgba(120, 60, 50, 0.4);
}

.hp-style-card--ocean {
  --hp-accent-dot: #0e7490;
}

.hp-style-card--indigo {
  --hp-accent-dot: #4f46e5;
}

.hp-style-card--forest {
  --hp-accent-dot: #1ea152;
}

.hp-style-card--gold {
  --hp-accent-dot: #b45309;
}

.hp-style-card__media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.hp-style-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.hp-style-card:hover .hp-style-card__media img {
  transform: scale(1.05);
}

.hp-style-card__badge {
  position: absolute;
  top: 14px;
  left: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.hp-style-card__badge-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--hp-accent-dot);
}

.hp-style-card__badge-text {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #fff;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.5);
}

.hp-style-card__badge-text::before {
  content: counter(hp-style, decimal-leading-zero) " / ";
}

.hp-style-card__body {
  padding: clamp(22px, 2.5vw, 32px);
  display: flex;
  flex-direction: column;
  flex: 1;
}

.hp-style-card__title {
  margin: 0 0 16px;
  font-weight: 700;
  font-size: 23px;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.hp-style-card__bullets {
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.hp-style-card__bullets li {
  position: relative;
  padding-left: 18px;
  font-size: 14.5px;
  line-height: 1.5;
}

.hp-style-card__bullets li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--hp-accent-dot);
}

.hp-style-card__text {
  margin: 0 0 22px;
  font-size: 15px;
  line-height: 1.65;
  text-wrap: pretty;
}

.hp-style-card__footer {
  margin-top: auto;
  padding-top: 4px;
}

.hp-style-card__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: -0.01em;
  color: var(--hp-accent);
  text-decoration: none;
}

.hp-style-card__link span {
  transform: translateX(var(--hp-arrow));
  transition: transform 0.3s ease;
}

/* Why us */
.hp-about {
  background: var(--hp-paper-2);
  border-top: 1px solid rgba(51, 51, 51, 0.08);
  padding: clamp(56px, 8vw, 96px) 0;
}

.hp-about__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

.hp-about__grid--with-gallery {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
}

.hp-about__copy {
  min-width: 0;
}

.hp-about__media {
  min-width: 0;
}

.hp-about__logo {
  display: block;
  height: 60px;
  width: auto;
  max-width: 100%;
  margin-bottom: 26px;
}

.hp-about__title {
  margin: 0 0 22px;
  font-weight: 700;
  font-size: clamp(28px, 3.6vw, 42px);
  line-height: 1.08;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.hp-about__text {
  margin: 0 0 18px;
  font-size: 16px;
  line-height: 1.7;
  text-wrap: pretty;
}

.hp-about__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 15px;
  color: var(--hp-accent);
  text-decoration: none;
  transition: gap 0.25s ease;
}

.hp-about__link:hover {
  gap: 12px;
}

.hp-gallery {
  position: relative;
  min-width: 0;
}

.hp-gallery__rail {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 14px;
  scrollbar-width: thin;
}

.hp-gallery__item {
  flex: 0 0 auto;
  width: clamp(280px, 32vw, 400px);
  height: clamp(300px, 34vw, 440px);
  border-radius: 16px;
  overflow: hidden;
  scroll-snap-align: start;
  box-shadow: 0 18px 40px -24px rgba(120, 60, 50, 0.4);
}

.hp-gallery__img,
.hp-gallery__item img {
  display: block;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  object-fit: cover;
  aspect-ratio: auto !important;
}

.hp-gallery__nav {
  margin-top: 16px;
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

.hp-gallery__btn {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  cursor: pointer;
  background: var(--hp-paper);
  color: var(--hp-ink);
  border: 1px solid rgba(51, 51, 51, 0.22);
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    border-color 0.25s,
    color 0.25s;
}

.hp-gallery__btn:hover {
  border-color: var(--hp-accent);
  color: var(--hp-accent);
}

/* CTA band */
.hp-cta {
  position: relative;
  overflow: hidden;
  background: var(--hp-paper);
  border-top: 1px solid rgba(51, 51, 51, 0.08);
  border-bottom: 1px solid rgba(51, 51, 51, 0.08);
  padding: clamp(56px, 8vw, 104px) var(--hp-gut);
  text-align: center;
}

.hp-cta__inner {
  max-width: var(--hp-wrap);
  margin: 0 auto;
}

.hp-cta__title {
  margin: 0 auto;
  max-width: 20ch;
  font-weight: 700;
  font-size: clamp(30px, 4.4vw, 52px);
  line-height: 1.04;
  letter-spacing: -0.025em;
  color: var(--hp-ink);
  text-wrap: balance;
}

.hp-cta__intro {
  margin: 22px auto 0;
  max-width: 52ch;
  font-size: 16px;
  line-height: 1.7;
  opacity: 0.82;
  text-wrap: pretty;
}

.hp-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  margin-top: 36px;
}

.hp-cta .hp-btn--primary {
  padding: 16px 36px;
}

@media (max-width: 767px) {
  .hp-hero {
    min-height: 78vh;
  }

  .hp-hero__lead {
    margin-top: 18px;
    font-size: 15px;
  }

  .hp-hero__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hp-hero .hp-btn {
    text-align: center;
    padding: 16px;
  }

  .hp-reviews__header {
    flex-direction: column;
    align-items: flex-start;
  }

  .hp-why__lead,
  .hp-styles-intro__text,
  .hp-about__text,
  .hp-cta__intro {
    font-size: 15px;
  }

  .hp-why__item {
    padding: 24px 0;
  }

  .hp-styles-grid {
    grid-template-columns: 1fr;
  }

  .hp-about__grid--with-gallery {
    grid-template-columns: 1fr;
  }

  .hp-cta {
    background: var(--hp-ink);
    border-color: transparent;
  }

  .hp-cta__title {
    color: var(--hp-paper);
    font-size: 30px;
    line-height: 1.06;
    letter-spacing: -0.02em;
  }

  .hp-cta__intro {
    color: rgba(255, 250, 250, 0.82);
    opacity: 1;
    margin-top: 16px;
  }

  .hp-cta__actions {
    flex-direction: column;
    margin-top: 28px;
    gap: 11px;
  }

  .hp-cta .hp-btn--primary {
    padding: 16px;
  }

  .hp-cta .kj-wa-btn {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.4);
    color: #fff;
    padding: 16px;
  }

  .hp-cta .kj-wa-btn:hover {
    border-color: rgba(255, 255, 255, 0.7);
    color: #fff;
  }
}
