:root {
  --brand-green: #2e7d6a;
  --brand-deep: #16403f;
  --soft-green: #ecf1e8;
  --soft-cream: #f8f7f3;
  --footer-green: #2a3e31;
  --card-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
  --radius-lg: 1.25rem;
  --radius-xl: 2rem;
}

.highlight-title {
  color: var(--brand-deep) !important;
}

.mahjong-v3 {
  width: 100%;
  min-height: 100vh;
  display: block;
  overflow-x: clip;
  align-items: stretch;
}

.mahjong-v3>.header,
.mahjong-v3>main,
.mahjong-v3>.footer {
  width: 100%;
  align-self: stretch;
}

.front-page {
  width: 100%;
  overflow-x: clip;
  background: #ffffff;
  color: #151816;
  font-family: Inter, sans-serif;
}

.front-page .container-fluid {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

/* Header and footer overrides so the existing theme wrappers remain responsive
   on the front page without affecting other templates. */
.header .container {
  width: 100%;
  max-width: 1440px;
  height: auto;
  min-height: 63px;
  padding: 0 24px;
  gap: 20px;
  flex-wrap: wrap;
}

.link-parent {
  flex: 1 1 auto;
  min-width: 0;
  gap: clamp(1rem, 4vw, 14rem);
  flex-wrap: wrap;
  justify-content: space-between;
}

.nav {
  flex-wrap: wrap;
  gap: clamp(1rem, 2vw, 1.95rem);
}

.mobile-menu {
  top: 100%;
}

.footer .container38 {
  width: 100%;
  max-width: 1440px;
  height: auto;
  padding: 80px 24px;
}

.container39 {
  flex-wrap: wrap;
  gap: 20px;
}

.container40,
.nav2,
.container43 {
  width: min(100%, 417px);
  padding-bottom: 24px;
}

.container40 {
  width: min(100%, 381px);
}

.container45 {
  flex-wrap: wrap;
}

.section-shell {
  padding-block: clamp(4rem, 7vw, 8rem);
}

.hero-shell {
  background-color: var(--soft-green);
}

.features-shell {
  background-color: var(--soft-cream);
}

.gatherings-shell {
  background-color: var(--soft-green);
}

.sets-shell {
  background-color: #ffffff;
}

.callout-shell {
  background-color: #ffffff;
}

.testimonial-shell {
  background-color: #ffffff;
}

.eyebrow {
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  line-height: 1.75;
  text-transform: uppercase;
  color: var(--brand-deep);
}

.hero-title {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(42px, 10vw, 92px);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 0.92;
  color: #0c1a13;
}

.section-title {
  margin: 0;
  font-family: "Playfair Display", serif;
  font-size: clamp(28px, 4.5vw, 50px);
  font-weight: 500;
  line-height: 60px;
  color: #0c1a13;
}

.callout-title {
  margin: 0;
  font-family: "Playfair Display", serif;
  font-size: clamp(25px, 5vw, 50px);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 0.94;
  color: #0c1a13;
}

.promise-title {
  margin: 0;
  font-family: "Playfair Display", serif;
  font-size: clamp(3rem, 6vw, 4.75rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.05;
  color: #ffffff;
}

.section-copy {
  margin: 0;
  font-size: clamp(1.05rem, 1.2vw, 1.15rem);
  line-height: 1.7;
  color: #151816;
}

.promise-copy {
  color: rgba(255, 255, 255, 0.92);
}

.hero-illustration {
  width: 100%;
  max-width: 720px;
  margin-inline: auto;
  display: block;
  margin: 0 auto;
}

.btn-pill {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.95rem 1.9rem;
  background-color: var(--brand-green);
  color: #ffffff;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.2;
  white-space: nowrap;
  text-decoration: none;
  width: fit-content;
}

.btn-pill:hover {
  color: #ffffff;
}

.text-link {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.95rem 1.9rem;
  background-color: transparent;
  color: var(--brand-green);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.25;
  text-decoration: none;
  transition: color 0.2s ease;
  border: 1px solid #2e7d6a;
}

.text-link .footer-inquiry-arrow {
  transition: transform 0.2s ease;
}

.text-link:hover {
  color: var(--brand-deep);
  border-color: var(--brand-deep);
}

.text-link:hover .footer-inquiry-arrow {
  transform: translateX(4px);
}

.tag-chip-wrapper {
  display: flex;
  gap: 24px;
  align-items: center;
  flex-wrap: wrap;
}

.tag-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  line-height: 1.2;
  color: var(--brand-deep);
}

.feature-card {
  height: 100%;
  border-radius: var(--radius-lg);
  padding: 40px 16px;
  display: flex;
  align-items: center;
  gap: 1rem;
  border: 1px solid #E5E5E0;
  cursor: default;
  transition: all 0.3s ease;
}

.feature-card:hover {
  border-color: transparent;
  background-color: #ffffff;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
}

.feature-card img {
  width: 60px;
  height: 60px;
  object-fit: contain;
  flex-shrink: 0;
}

.feature-card-body {
  display: flex;
  flex-direction: column;
}

.feature-card h3 {
  margin: 0 0 0.5rem;
  font-family: "Playfair Display", serif;
  font-size: 1.625rem;
  font-weight: 500;
  line-height: 1.15;
  color: var(--brand-deep);
}

.feature-card p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.65;
  color: #151816;
}

.gallery-image,
.table-awaits-image {
  width: 100%;
  border-radius: 1.25rem;
  object-fit: cover;
}

.gatherings-shell .image-wrapper {
  height: stretch;
}

.gallery-image {
  min-height: 320px;
  height: 100%;
  object-fit: cover;
  margin-left: -50px;
}

.table-awaits-image {
  aspect-ratio: 1/1;
  height: 100%;
  min-height: 500px;
}

.gradient-card {
  min-height: 310px;
  max-height: 314px;
  border-radius: var(--radius-lg);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.gradient-card h3 {
  margin: 0 0 0.35rem;
  font-family: "Playfair Display", serif;
  font-size: 1.5rem;
  font-weight: 500;
  line-height: 1.1;
  color: #0c1a13;
}

.gradient-card p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.6;
  color: #2d4a3e;
}

.gradient-birthday {
  background: linear-gradient(0deg, #d4e9e5, #b4e4db);
}

.gradient-club {
  background: linear-gradient(0deg, #d1f3db, #a8d5bd);
}

.gradient-corporate {
  background: linear-gradient(0deg, #d3e8e5, #bbdbc4);
}

.gradient-community {
  background: linear-gradient(0deg, #f8fff1, #b8e1c9);
}

.tile-card {
  position: relative;
  overflow: hidden;
  border-radius: 1.25rem;
  box-shadow: var(--card-shadow);
  aspect-ratio: 3 / 4;
  background: #ffffff;
  cursor: pointer;
}

.tile-card:hover {
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
}

.tile-card:hover .tile-card-image {
  transform: scale(1.06);
}

.tile-card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.tile-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top,
      rgba(0, 0, 0, 0.72) 0%,
      rgba(0, 0, 0, 0.25) 40%,
      transparent 65%);
  pointer-events: none;
}

.tile-card-name {
  position: absolute;
  bottom: 1.15rem;
  left: 1.15rem;
  z-index: 1;
  font-family: "Playfair Display", serif;
  font-size: 1.5rem;
  font-weight: 500;
  line-height: 1.2;
  color: #ffffff;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

.badge-popular-wrapper {
  position: absolute;
  top: -16px;
  left: 50%;
  transform: translateX(-50%);
}

.badge-popular {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.5rem 1rem;
  background-color: var(--brand-green);
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.2;
}

.package-card {
  height: 100%;
  border-radius: var(--radius-lg);
  background: #fbfffd;
  border: 1px solid #f5f5f5;
  padding: 80px 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  position: relative;
  cursor: default;
}

.package-card .btn-pill {
  margin-top: auto;
}

.package-card.featured {
  background: #dcefe6;
  border-color: var(--brand-green);
}

/* Non-featured button: light green background by default, full green on hover */
.package-card:not(.featured) .btn-pill {
  background-color: #dcefe6;
  color: var(--brand-deep);
  border: 1px solid #c8d8d2;
}

.package-card:not(.featured) .btn-pill:hover {
  background-color: var(--brand-green);
  color: #ffffff;
  border-color: var(--brand-green);
}

.package-title {
  margin: 0 0 0.35rem;
  font-family: "Playfair Display", serif;
  font-size: 1.75rem;
  font-weight: 500;
  line-height: 1.15;
  color: #2d4a3e;
}

.package-subtitle {
  margin: 0;
  font-size: 0.95rem;
  font-style: italic;
  font-weight: 400;
  line-height: 1.4;
  color: #8a8a82;
}

.package-price {
  margin: 0 0 1rem;
  font-size: 2.25rem;
  font-weight: 600;
  line-height: 1;
  color: #2d4a3e;
}

.package-meta {
  margin-top: 0.25rem;
  font-size: 0.9rem;
  font-weight: 400;
  line-height: 1.45;
  color: #8a8a82;
}

.package-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.75rem;
}

.package-list li {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #8a8a82;
}

.promise-shell {
  position: relative;
  overflow: hidden;
  /* background: linear-gradient(0deg, #296858, #214136); */
  color: #ffffff;
  background: url("../rentmymahjong/assets/stats-vector-bg.png") center/cover no-repeat;
}

.promise-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  /* opacity: 0.15; */
  pointer-events: none;
  mix-blend-mode: screen;
}

.promise-shell>.container-fluid {
  position: relative;
  z-index: 1;
}

.stat-item {
  display: grid;
  gap: 0.75rem;
  justify-items: center;
}

.stat-number {
  margin: 0;
  font-size: clamp(3.5rem, 7vw, 5.5rem);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1;
  color: #ffffff;
}

.stat-label {
  margin: 0;
  font-size: 1.125rem;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.92);
  text-transform: capitalize;
}

.callout-card-wrapper {
  background: url("../rentmymahjong/assets/await_section.png");
  background-size: cover;
  border-radius: var(--radius-xl);
  padding: 32px 32px 32px 95px;
}

.callout-highlight {
  color: var(--brand-green);
  font-size: clamp(42px, 5vw, 90px);
  margin-right: 0.18em;
}

.callout-rest {
  color: #0c1a13;
}

.quote-mark {
  width: 161px;
  height: auto;
  margin: 0 auto 1.5rem;
}

.testimonial-quote {
  margin: 0 0 32px;
  font-family: Inter, sans-serif;
  font-weight: 400;
  font-style: normal;
  font-size: clamp(18px, 3vw, 32px);
  line-height: 39.2px;
  letter-spacing: 3%;
  text-align: center;
  color: #1f1f1f;
}

.testimonial-attribution {
  font-family: Inter, sans-serif;
  font-weight: 400;
  font-style: normal;
  margin: 0;
  font-size: 1.125rem;
  line-height: 1.35;
  color: #16403f;
}

.social-card {
  border-radius: 0.5rem;
  overflow: hidden;
  background: #ffffff;
  box-shadow: var(--card-shadow);
}

.social-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.social-card-caption {
  margin: 0;
  font-family: Inter, sans-serif;
  font-weight: 400;
  font-size: 18px;
  line-height: 26.4px;
  letter-spacing: 0;
  color: #16403F;
  text-align: left;
}

/* ── Scroll reveal animations ── */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s cubic-bezier(0.2, 0.7, 0.2, 1),
    transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.reveal.in {
  opacity: 1;
  transform: none;
}

.reveal[data-d="1"] {
  transition-delay: 0.08s;
}

.reveal[data-d="2"] {
  transition-delay: 0.16s;
}

.reveal[data-d="3"] {
  transition-delay: 0.24s;
}

.reveal[data-d="4"] {
  transition-delay: 0.32s;
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

@media (max-width: 1350px) {
  .nav {
    display: none;
  }

  .mobile-menu-toggle {
    display: flex;
  }
}

@media (max-width: 1199.98px) {
  .gallery-image {
    margin-left: 0;
  }

  .gallery-image.gatherings-shell {
    max-height: 350px;
    object-fit: contain;
  }
}

@media (max-width: 991.98px) {
  .header .container {
    padding-inline: 16px;
  }

  .footer .container38 {
    padding-inline: 16px;
  }

  .container40,
  .nav2,
  .container43 {
    width: 100%;
    padding-bottom: 0;
  }

  .container40 {
    padding-bottom: 1rem;
  }

  .package-card,
  .callout-card {
    padding: 1.5rem;
  }

  .gallery-image {
    margin-left: 0;
  }

  .callout-card-wrapper {
    padding: 32px;
  }
}

@media (max-width: 575.98px) {
  .front-page .container-fluid {
    padding-left: 16px;
    padding-right: 16px;
  }

  .section-shell {
    padding-block: 3rem;
  }

  .hero-title,
  .promise-title {
    font-size: clamp(2.6rem, 15vw, 4rem);
  }

  .section-title,
  .callout-title {
    font-size: clamp(2rem, 10vw, 2.75rem);
  }

  .package-card {
    padding: 1.25rem;
  }

  .tile-card-name {
    font-size: 1.15rem;
  }

  .callout-card-wrapper {
    padding: 24px 12px;
  }

  .callout-card {
    padding: 0.75rem
  }
}

@media (max-width: 439.98px) {
  .link8 {
    display: none;
  }

  .gradient-card {
    min-height: 200px;
    padding: 24px 16px;
  }
}

.footer-inquiry-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.footer-inquiry-arrow {
  flex-shrink: 0;
}