/* PoomConnect guest landing — inspired by the original dark social landing */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800&family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

.pc-landing {
  --pc-bg: #050510;
  --pc-bg-alt: #0a0a18;
  --pc-purple: #6c35ff;
  --pc-pink: #ff2d8d;
  --pc-gradient: linear-gradient(135deg, #6c35ff, #ff2d8d);
  --pc-text: #ffffff;
  --pc-muted: rgba(255, 255, 255, 0.72);
  --pc-soft: rgba(255, 255, 255, 0.08);
  --pc-radius: 14px;
  --pc-font-display: 'Outfit', 'Plus Jakarta Sans', sans-serif;
  --pc-font-body: 'Plus Jakarta Sans', 'Outfit', sans-serif;
  color: var(--pc-text);
  font-family: var(--pc-font-body);
  background: var(--pc-bg);
  margin: 0;
  overflow-x: hidden;
}

.pc-landing * {
  box-sizing: border-box;
}

.pc-landing a {
  text-decoration: none;
}

/* Keep Sponzy chrome quiet over the dark hero */
body:has(.pc-landing) {
  background: var(--pc-bg, #050510);
}

/* Top of page: transparent over hero */
body:has(.pc-landing) .navbar.scroll:not(.p-nav-scroll) {
  background: transparent !important;
  box-shadow: none !important;
  border-bottom: 1px solid transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  transition:
    background 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease,
    padding 0.25s ease;
}

body:has(.pc-landing) .navbar.scroll:not(.p-nav-scroll) .nav-link:not(.btn),
body:has(.pc-landing) .navbar.scroll:not(.p-nav-scroll) .navbar-toggler {
  color: #fff !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

/* Scrolled: sharp dark bar (overrides admin white navbar_background_color).
   Backdrop blur lives on ::before so the logo/text are not soft-rasterized. */
body:has(.pc-landing) .navbar.scroll.p-nav-scroll,
body:has(.pc-landing) .navbar.scroll.navbar_background_color {
  position: relative;
  isolation: isolate;
  background: transparent !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12) !important;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

body:has(.pc-landing) .navbar.scroll.p-nav-scroll::before,
body:has(.pc-landing) .navbar.scroll.navbar_background_color::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(5, 5, 16, 0.94);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  pointer-events: none;
}

body:has(.pc-landing) .navbar.scroll.p-nav-scroll .nav-link:not(.btn),
body:has(.pc-landing) .navbar.scroll.navbar_background_color .nav-link:not(.btn),
body:has(.pc-landing) .navbar.scroll.p-nav-scroll.link-scroll a.nav-link:not(.btn) {
  color: rgba(255, 255, 255, 0.92) !important;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-shadow: none;
}

body:has(.pc-landing) .navbar.scroll.p-nav-scroll .nav-link:not(.btn):hover,
body:has(.pc-landing) .navbar.scroll.navbar_background_color .nav-link:not(.btn):hover {
  color: #fff !important;
  opacity: 1;
}

body:has(.pc-landing) .navbar.scroll .navbar-brand {
  position: relative;
  z-index: 1;
  transform: translateZ(0);
  -webkit-font-smoothing: antialiased;
}

body:has(.pc-landing) .navbar.scroll .navbar-brand .logo-nav {
  display: block;
  height: 36px;
  width: auto;
  max-width: none;
  /* Avoid soft filters / bad upscaling that blur the mark on scroll */
  filter: none !important;
  image-rendering: auto;
  -ms-interpolation-mode: bicubic;
}

body:has(.pc-landing) .navbar.scroll .search-bar {
  background: rgba(255, 255, 255, 0.1) !important;
  color: #fff !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  box-shadow: none !important;
}

body:has(.pc-landing) .navbar.scroll .search-bar::placeholder {
  color: rgba(255, 255, 255, 0.55);
}

body:has(.pc-landing) .navbar.scroll.p-nav-scroll .search-bar {
  background: rgba(255, 255, 255, 0.08) !important;
  border-color: rgba(255, 255, 255, 0.2) !important;
}

body:has(.pc-landing) .navbar.scroll .button-search {
  color: rgba(255, 255, 255, 0.7) !important;
}

body:has(.pc-landing) .navbar.scroll .btn-register-menu,
body:has(.pc-landing) .navbar.scroll .btn-primary.btn-register-menu {
  background: linear-gradient(135deg, #6c35ff, #ff2d8d) !important;
  border: none !important;
  color: #fff !important;
  font-weight: 700;
  box-shadow: 0 6px 18px rgba(255, 45, 141, 0.35);
}

/* ── Footer: sharp dark chrome (admin footer is white) ── */
body:has(.pc-landing) .footer_background_color,
body:has(.pc-landing) .footer_text_color,
body:has(.pc-landing) footer {
  background: #050510 !important;
  color: rgba(255, 255, 255, 0.72) !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
}

body:has(.pc-landing) > div.footer_background_color.py-5,
body:has(.pc-landing) div.py-5.footer_background_color {
  background: #050510 !important;
  border-top: 1px solid rgba(255, 255, 255, 0.12) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  padding-top: 3.5rem !important;
  padding-bottom: 2.75rem !important;
}

body:has(.pc-landing) footer h6,
body:has(.pc-landing) .footer_background_color h6 {
  color: #fff !important;
  font-family: 'Outfit', 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
  margin-bottom: 1rem;
}

body:has(.pc-landing) .link-footer,
body:has(.pc-landing) .ico-social,
body:has(.pc-landing) .footer-tiny,
body:has(.pc-landing) .footer_text_color a,
body:has(.pc-landing) .footer_background_color a:not(.btn):not(.dropdown-item) {
  color: rgba(255, 255, 255, 0.7) !important;
  font-weight: 500;
  transition: color 0.15s ease;
}

body:has(.pc-landing) .link-footer:hover,
body:has(.pc-landing) .ico-social:hover,
body:has(.pc-landing) .footer-tiny:hover,
body:has(.pc-landing) .footer_background_color a:not(.btn):not(.dropdown-item):hover {
  color: #fff !important;
}

body:has(.pc-landing) .footer_background_color img.max-w-125,
body:has(.pc-landing) footer img.max-w-125 {
  height: 40px;
  width: auto;
  max-width: 160px;
  filter: none !important;
}

body:has(.pc-landing) footer.py-3 {
  background: #03030a !important;
  border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
  color: rgba(255, 255, 255, 0.55) !important;
}

body:has(.pc-landing) .dropdown-toggle.footer-tiny,
body:has(.pc-landing) .btn.dropdown-toggle {
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  color: #fff !important;
  background: rgba(255, 255, 255, 0.06) !important;
}

/* ── Hero ── */
.pc-hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: flex-end;
  padding: 7.5rem 0 3.5rem;
  isolation: isolate;
}

.pc-hero__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-color: #050510;
  background-image:
    linear-gradient(95deg, rgba(5, 5, 16, 0.94) 0%, rgba(5, 5, 16, 0.78) 36%, rgba(5, 5, 16, 0.42) 64%, rgba(108, 53, 255, 0.14) 100%),
    url('../img/landing/bangkok-nightlife.jpg');
  background-size: cover;
  background-position: center 18%;
  background-repeat: no-repeat;
  transform: scale(1.04);
  animation: pc-kenburns 22s ease-in-out infinite alternate;
}

.pc-hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(5, 5, 16, 0.15) 0%, rgba(5, 5, 16, 0.35) 55%, rgba(5, 5, 16, 0.92) 100%),
    radial-gradient(ellipse 90% 45% at 50% 100%, rgba(108, 53, 255, 0.28), transparent 70%);
}

.pc-hero__streaks {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 180px;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 40% 80% at 20% 100%, rgba(108, 53, 255, 0.35), transparent 70%),
    radial-gradient(ellipse 35% 70% at 75% 100%, rgba(255, 45, 141, 0.22), transparent 70%);
}

.pc-hero__inner {
  width: min(1120px, calc(100% - 2.5rem));
  margin: 0 auto;
}

.pc-hero__content {
  max-width: 640px;
  animation: pc-rise 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.pc-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.9rem;
  margin-bottom: 1.35rem;
  border-radius: 999px;
  background: rgba(108, 53, 255, 0.16);
  border: 1px solid rgba(108, 53, 255, 0.5);
  color: #d4c4ff;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
  animation: pc-rise 0.9s 0.08s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.pc-badge svg {
  width: 14px;
  height: 14px;
  color: #e9a8ff;
  flex-shrink: 0;
}

.pc-hero h1 {
  font-family: var(--pc-font-display);
  font-size: clamp(2.75rem, 7vw, 4.75rem);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.035em;
  margin: 0 0 1.25rem;
  color: #fff;
}

.pc-gradient-text {
  background: var(--pc-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.pc-hero__subtitle {
  margin: 0 0 1.75rem;
  max-width: 34rem;
  font-size: clamp(1rem, 2.2vw, 1.2rem);
  line-height: 1.55;
  color: var(--pc-muted);
  font-weight: 500;
}

.pc-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 2.5rem;
}

.pc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 3.15rem;
  padding: 0.85rem 1.55rem;
  border-radius: 12px;
  font-family: var(--pc-font-body);
  font-size: 0.95rem;
  font-weight: 650;
  border: 1.5px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.pc-btn svg {
  width: 18px;
  height: 18px;
}

.pc-btn--primary {
  color: #fff;
  background: var(--pc-gradient);
  box-shadow: 0 10px 34px rgba(255, 45, 141, 0.35);
}

.pc-btn--primary:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 14px 40px rgba(255, 45, 141, 0.45);
}

.pc-btn--ghost {
  color: #fff;
  background: rgba(5, 5, 16, 0.35);
  border-color: rgba(108, 53, 255, 0.55);
  backdrop-filter: blur(8px);
}

.pc-btn--ghost:hover {
  color: #fff;
  background: rgba(108, 53, 255, 0.14);
  border-color: rgba(108, 53, 255, 0.8);
}

.pc-btn--light {
  color: #1a1a2e;
  background: #fff;
}

.pc-btn--light:hover {
  color: #1a1a2e;
  transform: translateY(-2px);
}

.pc-features {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem 1.25rem;
  padding-top: 1.6rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  animation: pc-rise 1s 0.18s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.pc-feature {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.88rem;
  font-weight: 600;
}

.pc-feature__icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  color: #f0b3ff;
  background: rgba(108, 53, 255, 0.18);
  border: 1px solid rgba(108, 53, 255, 0.35);
}

.pc-feature__icon svg {
  width: 16px;
  height: 16px;
}

/* ── Sections ── */
.pc-section {
  padding: 5rem 0;
  position: relative;
}

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

.pc-section--alt {
  background: linear-gradient(180deg, #070712 0%, #0d0a1c 100%);
}

.pc-section--light {
  background: #f7f6fb;
  color: #1a1a2e;
}

.pc-wrap {
  width: min(1120px, calc(100% - 2.5rem));
  margin: 0 auto;
}

.pc-section__head {
  max-width: 40rem;
  margin: 0 auto 2.75rem;
  text-align: center;
}

.pc-section__eyebrow {
  display: inline-block;
  margin-bottom: 0.75rem;
  color: var(--pc-pink);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.pc-section--light .pc-section__eyebrow {
  color: var(--pc-purple);
}

.pc-section__head h2 {
  font-family: var(--pc-font-display);
  font-size: clamp(1.85rem, 4vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin: 0 0 0.85rem;
}

.pc-section__head p {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--pc-muted);
}

.pc-section--light .pc-section__head p {
  color: #5b5b73;
}

/* Photo strip — real Thailand moments */
.pc-moments {
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr;
  grid-template-rows: 220px 220px;
  gap: 0.85rem;
}

.pc-moment {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  background: #121222;
}

.pc-moment:first-child {
  grid-row: 1 / span 2;
}

.pc-moment img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.7s ease;
}

.pc-moment:hover img {
  transform: scale(1.05);
}

.pc-moment__label {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: rgba(5, 5, 16, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  font-size: 0.75rem;
  font-weight: 600;
  color: #fff;
}

/* Loop steps */
.pc-loop {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
  counter-reset: pc-step;
}

.pc-loop__item {
  position: relative;
  padding: 1.5rem 1.25rem 1.4rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  counter-increment: pc-step;
}

.pc-loop__item::before {
  content: counter(pc-step, decimal-leading-zero);
  display: block;
  margin-bottom: 1rem;
  font-family: var(--pc-font-display);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #e9a8ff;
}

.pc-loop__item h3 {
  font-family: var(--pc-font-display);
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
}

.pc-loop__item p {
  margin: 0;
  color: var(--pc-muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

.pc-loop__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.85rem;
  margin-top: 2.5rem;
}

/* Events preview */
.pc-events {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.1rem;
}

.pc-event {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  overflow: hidden;
  border-radius: 18px;
  background: #fff;
  border: 1px solid rgba(26, 26, 46, 0.08);
  box-shadow: 0 12px 40px rgba(26, 26, 46, 0.06);
  color: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.pc-event:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 48px rgba(26, 26, 46, 0.1);
  color: inherit;
}

.pc-event__media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #eceaf5;
}

.pc-event__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pc-event__body {
  padding: 1.15rem 1.2rem 1.3rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  flex: 1;
}

.pc-event__meta {
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--pc-purple);
}

.pc-event__body h3 {
  font-family: var(--pc-font-display);
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0;
  line-height: 1.25;
}

.pc-event__place {
  margin: 0;
  color: #6b6b82;
  font-size: 0.9rem;
}

.pc-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 2.5rem 1rem;
  border-radius: 18px;
  background: rgba(108, 53, 255, 0.05);
  border: 1px dashed rgba(108, 53, 255, 0.25);
}

.pc-empty p {
  margin: 0 0 1rem;
  color: #5b5b73;
}

/* Closing CTA */
.pc-cta {
  position: relative;
  overflow: hidden;
  padding: 5.5rem 0;
  text-align: center;
  background:
    radial-gradient(ellipse 70% 80% at 50% 120%, rgba(108, 53, 255, 0.35), transparent 60%),
    linear-gradient(180deg, #070712, #050510);
}

.pc-cta__photo {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(180deg, rgba(5, 5, 16, 0.82), rgba(5, 5, 16, 0.92)),
    url('../img/landing/bangkok-night-market.jpg');
  background-size: cover;
  background-position: center;
  opacity: 0.55;
  z-index: 0;
}

.pc-cta .pc-wrap {
  position: relative;
  z-index: 1;
}

.pc-cta h2 {
  font-family: var(--pc-font-display);
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 0 0 0.85rem;
}

.pc-cta p {
  margin: 0 auto 1.75rem;
  max-width: 34rem;
  color: var(--pc-muted);
  font-size: 1.05rem;
}

.pc-cta__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.85rem;
}

@keyframes pc-rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pc-kenburns {
  from {
    transform: scale(1.04) translate3d(0, 0, 0);
  }
  to {
    transform: scale(1.1) translate3d(-1.5%, -1%, 0);
  }
}

@media (max-width: 991px) {
  .pc-features {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pc-loop,
  .pc-events {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pc-moments {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 200px 180px 180px;
  }

  .pc-moment:first-child {
    grid-column: 1 / -1;
    grid-row: auto;
    min-height: 220px;
  }
}

@media (max-width: 640px) {
  .pc-hero {
    align-items: center;
    padding: 6.5rem 0 2.75rem;
    min-height: auto;
  }

  .pc-hero__actions {
    flex-direction: column;
  }

  .pc-hero__actions .pc-btn {
    width: 100%;
  }

  .pc-features,
  .pc-loop,
  .pc-events,
  .pc-moments {
    grid-template-columns: 1fr;
  }

  .pc-moments {
    grid-template-rows: none;
  }

  .pc-moment,
  .pc-moment:first-child {
    min-height: 200px;
    grid-column: auto;
  }

  .pc-section {
    padding: 3.5rem 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pc-hero__bg,
  .pc-hero__content,
  .pc-badge,
  .pc-features,
  .pc-moment img {
    animation: none !important;
    transition: none !important;
  }

  .pc-hero__bg {
    transform: none;
  }
}
