:root {
  --gold: #a69067;
  --gold-dark: #8d7a58;
  --cream: #f2e9dc;
  --text-dark: #333333;
  --red: #cc2222;
  --font-body: "Roboto", Arial, sans-serif;
  --font-heading: "Libre Baskerville", Georgia, serif;
}

* {
  box-sizing: border-box;
}

html {
  background-color: #ffffff;
  /* offset anchor jumps so the sticky top-bar + navbar don't cover the target */
  scroll-padding-top: 118px;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text-dark);
  background-color: #ffffff;
}

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

/* Top promo bar */
.top-bar {
  background-color: var(--cream);
  text-align: center;
  padding: 10px 20px;
  font-size: 14px;
  color: var(--text-dark);
  position: sticky;
  top: 0;
  z-index: 100;
}

.top-bar a {
  color: var(--red);
  font-weight: 700;
}

/* Navbar */
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 40px;
  position: sticky;
  top: 36px;
  background-color: #ffffff;
  z-index: 99;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.logo img {
  height: 50px;
}

.nav-links > ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 32px;
  margin: 0;
  padding: 0;
}

.nav-links > ul > li {
  position: relative;
}

.nav-links > ul > li > a {
  font-size: 16px;
  font-weight: 400;
  color: var(--text-dark);
  padding: 8px 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.nav-links > ul > li > a.active {
  border-bottom: 2px solid var(--text-dark);
}

.arrow {
  font-size: 10px;
  display: inline-block;
  transition: transform 0.15s ease;
}

.has-dropdown.open .arrow {
  transform: rotate(180deg);
}

/* hover/focus styling is desktop-only — on touch it sticks after a tap */
@media (hover: hover) and (pointer: fine) {
  .nav-links > ul > li > a:hover {
    color: var(--gold);
  }

  .has-dropdown:hover .arrow,
  .has-dropdown:focus-within .arrow {
    transform: rotate(180deg);
  }
}

/* Dropdown */
.dropdown,
.submenu {
  display: none;
  list-style: none;
  position: absolute;
  background: #ffffff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 8px;
  padding: 8px 0;
  margin: 0;
  flex-direction: column;
  gap: 0;
}

.dropdown {
  top: 100%;
  left: 0;
  min-width: 240px;
  z-index: 100;
}

.has-dropdown.open .dropdown {
  display: flex;
}

/* hover/focus opening is desktop-only — on touch it sticks open and won't close */
@media (hover: hover) and (pointer: fine) {
  .has-dropdown:hover .dropdown,
  .has-dropdown:focus-within .dropdown {
    display: flex;
  }
}

/* shared dropdown/submenu items */
.dropdown li,
.submenu li {
  margin: 0;
  padding: 0;
}

.dropdown li > a,
.submenu li > a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 18px;
  margin: 0;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.3;
  color: var(--text-dark);
  white-space: nowrap;
  transition: background-color 0.12s ease, color 0.12s ease;
}

.dropdown li > a:hover,
.submenu li > a:hover {
  background-color: var(--cream);
  color: var(--gold-dark);
}

/* Submenu */
.has-submenu {
  position: relative;
}

.has-submenu .arrow-right {
  font-size: 11px;
  color: #999;
}

.has-submenu:hover > a .arrow-right {
  color: var(--gold-dark);
}

.submenu {
  left: calc(100% - 1px);
  top: -9px;
  min-width: 180px;
  z-index: 101;
}

@media (hover: hover) and (pointer: fine) {
  .has-submenu:hover .submenu {
    display: flex;
  }
}

/* flip menus that overflow the right edge */
.dropdown.flip-left {
  left: auto;
  right: 0;
}

.submenu.flip-left {
  left: auto;
  right: calc(100% - 1px);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 26px;
  cursor: pointer;
}

/* Hero */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 58vh;
  padding: 60px var(--page-gutter);
  overflow: hidden;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.55) 0%,
    rgba(0, 0, 0, 0.45) 100%
  );
}

.hero-text {
  position: relative;
  z-index: 2;
  max-width: 720px;
  min-width: 0;
  text-align: center;
}

.hero-sub {
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
}

.hero-text h1 {
  font-family: var(--font-heading);
  font-weight: 400;
  color: #ffffff;
  font-size: 46px;
  margin-bottom: 20px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
}

/* responsive hero breaks: desktop = "Singapore's Premier / Memorial Destination",
   mobile = "Singapore's / Premier Memorial / Destination". Also used to drop the
   proof/reassure separators onto a second line on mobile. */
.hero-br-m {
  display: none;
}

@media (max-width: 600px) {
  .hero-br-d {
    display: none;
  }
  .hero-br-m {
    display: inline;
  }
  /* the ` · ` these breaks replace would dangle at a line edge — hide it */
  .hero-sep-m {
    display: none;
  }
}

/* Headers not bold (site-wide) */
h1,
h2 {
  font-weight: 400;
}

.hero-text p {
  font-size: 16px;
  line-height: 1.7;
  color: #f0ece3;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.6);
}

/* proof line — social proof pulled into the hero */
.hero-proof {
  margin-top: 18px;
  font-size: 15px;
  font-weight: 500;
}

.hero-proof a {
  color: #ffffff;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.6);
}

.hero-proof a:hover {
  border-bottom-color: var(--gold);
}

.hero-proof span {
  margin: 0 6px;
  opacity: 0.6;
}

/* keep each proof phrase intact — only break at the separators, never mid-phrase */
.hero-proof a,
.hero-proof > span[data-zh] {
  white-space: nowrap;
}

/* risk-reduction microcopy under the CTAs */
.hero-reassure {
  margin-top: 16px;
  font-size: 13px;
  letter-spacing: 0.02em;
  color: #d8d2c6;
}

.hero-cta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  max-width: 520px;
  margin: 28px auto 0;
}

/* both hero buttons share one column width so they match */
.hero-cta .btn {
  width: 100%;
  justify-content: center;
}

@media (max-width: 600px) {
  .hero-cta {
    grid-template-columns: 1fr;
    max-width: 320px;
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 30px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  border-radius: 30px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-primary {
  background-color: var(--gold);
  color: #fff;
  border: 2px solid var(--gold);
}

.btn-primary:hover {
  background-color: var(--gold-dark);
  border-color: var(--gold-dark);
}

.btn-secondary {
  background-color: rgba(255, 255, 255, 0.08);
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(2px);
}

.btn-secondary:hover {
  background-color: #fff;
  color: var(--text-dark);
  border-color: #fff;
}

/* Trust ribbon — niche-grid hairline dividers echo the columbarium */
.trust-ribbon {
  background-color: #fff;
  border-bottom: 1px solid #ece3d3;
  padding: 0 var(--page-gutter);
}

.trust-list {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0; /* kill the UA's default 40px ul padding — it skewed the grid left */
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.trust-item {
  min-width: 0;
  text-align: center;
  padding: 26px 16px;
  border-left: 1px solid #ece3d3;
}

.trust-item:first-child {
  border-left: none;
}

.trust-figure {
  display: block;
  font-family: var(--font-heading);
  font-size: 20px;
  color: var(--gold);
  line-height: 1.2;
}

.trust-label {
  display: block;
  margin-top: 8px;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8a8378;
}

/* Start Here — guided entry for the overwhelmed first-timer */
.start-here {
  background-color: var(--cream);
  padding: 70px var(--page-gutter);
  text-align: center;
}

.start-here h2 {
  font-family: var(--font-heading);
  font-size: 30px;
  color: var(--text-dark);
  margin-bottom: 16px;
}

.start-here-lead {
  max-width: 960px;
  margin: 0 auto 40px;
  font-size: 17px;
  line-height: 1.7;
  color: #55504a;
}

.start-here-chips {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 960px;
  margin: 0 auto;
}

.start-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 28px 24px;
  background-color: #fff;
  border: 1px solid #e6dcc7;
  border-radius: 12px;
  text-decoration: none;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.start-chip:hover {
  transform: translateY(-3px);
  border-color: var(--gold);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.08);
}

.start-chip-title {
  font-family: var(--font-heading);
  font-size: 19px;
  color: var(--gold-dark);
}

.start-chip-sub {
  font-size: 14px;
  line-height: 1.55;
  color: #6b655d;
  text-wrap: balance;
}

@media (max-width: 760px) {
  .start-here-chips {
    grid-template-columns: 1fr;
  }

  .start-here h2 {
    font-size: 25px;
  }
}

/* Pricing snapshot */
.pricing-section {
  padding: 70px var(--page-gutter);
  background-color: #ffffff;
  text-align: center;
}

.pricing-section h2 {
  font-family: var(--font-heading);
  font-size: 30px;
  color: var(--text-dark);
  margin-bottom: 12px;
}

.pricing-lead {
  max-width: var(--reading-width);
  margin: 0 auto 40px;
  font-size: 17px;
  line-height: 1.6;
  color: #55504a;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  max-width: 960px;
  margin: 0 auto 40px;
}

.pricing-card {
  border: 1px solid #e6dcc7;
  border-radius: 12px;
  padding: 32px 24px;
  background-color: #f2ebde;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.pricing-card:hover {
  transform: translateY(-3px);
  border-color: var(--gold);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.08);
}

.pricing-card h3 {
  font-family: var(--font-heading);
  font-size: 20px;
  color: var(--text-dark);
  margin: 0 0 14px 0;
}

.pricing-from {
  font-size: 15px;
  color: #8a8378;
  margin: 0 0 6px 0;
}

.pricing-from span {
  display: block;
  font-family: var(--font-heading);
  font-size: 34px;
  color: var(--gold);
  line-height: 1.1;
}

.pricing-detail {
  font-size: 14px;
  color: #6b655d;
  margin: 0 0 20px 0;
}

.pricing-link {
  color: var(--gold-dark);
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid rgba(166, 144, 103, 0.5);
}

.pricing-link:hover {
  border-bottom-color: var(--gold);
}

.pricing-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.pricing-note {
  font-size: 14px;
  line-height: 1.6;
  color: #6b655d;
  margin: 0;
}

/* Why Nirvana */
.why-section {
  background-color: var(--cream);
  padding: 70px var(--page-gutter);
  text-align: center;
}

.why-section h2 {
  font-family: var(--font-heading);
  font-size: 30px;
  color: var(--text-dark);
  margin-bottom: 40px;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
  max-width: var(--content-width);
  margin: 0 auto;
}

.why-item h3 {
  font-family: var(--font-heading);
  font-size: 19px;
  color: var(--gold-dark);
  margin: 0 0 10px 0;
}

.why-item p {
  font-size: 14px;
  line-height: 1.6;
  color: #55504a;
  margin: 0;
  text-wrap: balance;
}

/* How it works */
.how-section {
  padding: 70px var(--page-gutter);
  background-color: var(--cream);
  text-align: center;
}

.how-section h2 {
  font-family: var(--font-heading);
  font-size: 30px;
  color: var(--text-dark);
  margin-bottom: 12px;
}

.how-lead {
  font-size: 17px;
  color: #55504a;
  margin: 0 auto 40px;
}

.how-steps {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  max-width: 960px;
}

.how-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background-color: var(--gold);
  color: #fff;
  font-family: var(--font-heading);
  font-size: 24px;
  margin-bottom: 16px;
}

.how-step h3 {
  font-family: var(--font-heading);
  font-size: 19px;
  color: var(--text-dark);
  margin: 0 0 10px 0;
}

.how-step p {
  font-size: 14px;
  line-height: 1.6;
  color: #55504a;
  margin: 0;
}

@media (max-width: 900px) {
  .why-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 1fr; /* equal rows so the divider cross sits dead-center */
    gap: 0;
  }

  /* divider lines between the four items in the 2x2 mobile layout */
  .why-item {
    padding: 24px 18px;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .why-item:nth-child(odd) {
    border-right: 1px solid rgba(166, 144, 103, 0.4);
  }

  .why-item:nth-child(-n + 2) {
    border-bottom: 1px solid rgba(166, 144, 103, 0.4);
  }
}

@media (max-width: 760px) {
  .pricing-grid,
  .how-steps {
    grid-template-columns: 1fr;
  }

  .how-steps {
    gap: 34px;
  }

  .pricing-section h2,
  .why-section h2,
  .how-section h2 {
    font-size: 25px;
  }
}

/* Products Section */
.products-section {
  padding: 70px 40px;
  background-color: #ffffff;
}

.product-card.is-featured {
  position: relative;
}

.product-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  background-color: var(--gold);
  color: #fff;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: 6px 14px;
  border-radius: 20px;
}

.products-section h2 {
  font-family: var(--font-heading);
  font-size: 30px;
  color: var(--text-dark);
  text-align: center;
  margin-bottom: 40px;
  margin-top: 0;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
  max-width: var(--content-width);
  margin: 0 auto;
}

.product-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-align: center;
}

.card-image-link {
  display: block;
}

.product-image {
  width: 100%;
  aspect-ratio: 1 / 1;
  background-color: #d3d3d3;
  background-size: cover;
  background-position: center;
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999;
  font-size: 14px;
  margin-bottom: 24px;
}

.product-card h3 {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 400;
  color: var(--text-dark);
  margin: 0 0 18px 0;
  line-height: 1.4;
}

/* Card hover effects — match quick-link cards */
.product-image,
.funeral-card-image,
.prayer-listing-card-image,
.block-image {
  transition: filter 0.2s ease;
}

.product-card h3,
.funeral-card h3,
.prayer-listing-card h3,
.block-card h3 {
  transition: color 0.2s ease;
}

.product-card:hover .product-image,
.funeral-card:hover .funeral-card-image,
.prayer-listing-card:hover .prayer-listing-card-image,
.block-card:hover .block-image {
  filter: brightness(0.9);
}

.product-card:hover h3,
.funeral-card:hover h3,
.prayer-listing-card:hover h3,
.block-card:hover h3 {
  color: var(--gold);
}

.product-card:hover .view-suites-btn,
.funeral-card:hover .view-suites-btn,
.prayer-listing-card:hover .view-suites-btn,
.block-card:hover .view-suites-btn {
  background-color: var(--gold);
  color: #ffffff;
}

/* quiet text-link CTA, pinned to the bottom so every card's link aligns */
.product-card .view-suites-btn {
  margin-top: auto;
  align-self: center;
}

/* Articles */
.articles-section {
  padding-top: 70px;
  padding-bottom: 70px;
  background-color: #ffffff;
}

.articles-section h2 {
  font-family: var(--font-heading);
  font-size: 30px;
  color: var(--gold);
  text-align: center;
  margin-top: 0;
  margin-bottom: 60px;
}

.articles-track {
  display: flex;
  gap: 40px;
  max-width: var(--content-width);
  margin: 0 auto;
}

.article-card {
  display: block;
  text-align: left;
  color: inherit;
  min-width: 0;
}

.article-card-image.is-placeholder {
  background-color: #ffffff;
  background-image: url('assets/Nirvana-Logo.png');
  background-size: 150px auto;
  background-repeat: no-repeat;
  background-position: center;
}

/* Articles carousel controls */
.articles-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 44px;
}

.articles-arrow {
  width: 42px;
  height: 42px;
  border: 1px solid var(--gold);
  background-color: #ffffff;
  color: var(--gold);
  border-radius: 50%;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.articles-arrow:hover:not(:disabled) {
  background-color: var(--gold);
  color: #ffffff;
}

.articles-arrow:disabled {
  opacity: 0.35;
  cursor: default;
}

.articles-dots {
  display: flex;
  align-items: center;
  gap: 6px;
}

.articles-dot {
  min-width: 30px;
  height: 30px;
  padding: 0 6px;
  border: none;
  background: transparent;
  color: var(--text-dark);
  font-family: var(--font-body);
  font-size: 15px;
  cursor: pointer;
  border-radius: 4px;
}

.articles-dot.active {
  color: var(--gold);
  font-weight: 700;
  text-decoration: underline;
}

/* Customer Reviews */
.reviews-section {
  padding-top: 70px;
  padding-bottom: 70px;
  background-color: #f2ebde;
}

.reviews-section h2 {
  font-family: var(--font-heading);
  font-size: 30px;
  color: var(--gold);
  text-align: center;
  margin: 0 0 10px 0;
}

/* cap the reviews widget to the site content width */
.reviews-widget {
  max-width: var(--content-width);
  margin: 0 auto;
}

.reviews-cta {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 40px;
}

.reviews-stars {
  color: #f5b301;
  letter-spacing: 2px;
}

.reviews-subtitle {
  text-align: center;
  color: #666;
  font-size: 15px;
  margin: 0 0 50px 0;
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
  max-width: var(--content-width);
  margin: 0 auto;
}

.review-card {
  background-color: #f4f6f8;
  padding: 36px 40px;
}

.review-stars {
  color: #f5b301;
  font-size: 18px;
  letter-spacing: 3px;
  margin-bottom: 18px;
}

.review-text {
  color: #555;
  font-size: 15px;
  line-height: 1.7;
  margin: 0 0 28px 0;
}

.review-author {
  display: flex;
  align-items: center;
  gap: 14px;
}

.review-avatar {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 50%;
  background-color: var(--gold);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 600;
}

.review-name {
  font-size: 16px;
  font-weight: 500;
  color: var(--text-dark);
}

.article-card-image {
  width: 100%;
  aspect-ratio: 16 / 10;
  background-color: #d3d3d3;
  background-size: cover;
  background-position: center;
  margin-bottom: 18px;
  transition: filter 0.2s ease;
}

.article-card:hover .article-card-image {
  filter: brightness(0.9);
}

.article-card h3 {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  color: var(--text-dark);
  margin: 0 0 10px 0;
  line-height: 1.4;
  transition: color 0.2s ease;
}

.article-card:hover h3 {
  color: var(--gold);
}

.article-card p {
  font-size: 14px;
  color: #666;
  line-height: 1.6;
  margin: 0;
}

.read-more {
  display: inline-block;
  color: var(--gold);
  font-size: 14px;
  font-weight: 500;
  text-decoration: underline;
  margin-top: 8px;
}

.read-more:hover {
  color: var(--gold-dark);
}

/* Columbarium Page */
.columbarium-hero {
  background-color: #6b6b6b;
  background-image: linear-gradient(rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.45)), url('assets/columbarium/hero.webp');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  padding: 100px 40px;
  text-align: center;
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-banner-content h1 {
  font-family: var(--font-heading);
  color: #ffffff;
  font-size: 30px;
  margin: 0 0 20px 0;
  font-weight: 400;
}

.hero-banner-content p {
  color: #ffffff;
  font-size: 16px;
  margin: 0;
  line-height: 1.6;
}

.columbarium-section {
  padding: 70px 40px;
  background-color: #f2ebde;
}

.columbarium-section h2 {
  font-family: var(--font-heading);
  font-size: 30px;
  color: var(--gold);
  text-align: center;
  margin-bottom: 60px;
  margin-top: 0;
}

.blocks-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
  max-width: var(--content-width);
  margin: 0 auto;
}

.block-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-align: center;
}

.block-card .view-suites-btn {
  margin-top: auto;
  align-self: center;
}

.block-image {
  width: 100%;
  aspect-ratio: 1 / 1;
  background-color: #d3d3d3;
  background-size: cover;
  background-position: center;
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999;
  font-size: 14px;
  border: 1px solid #bbb;
  margin-bottom: 24px;
}

.block-card h3 {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 400;
  color: var(--text-dark);
  margin: 0 0 8px 0;
  line-height: 1.4;
}

.block-subtitle {
  font-size: 14px;
  color: #666;
  margin: 0 0 20px 0;
  line-height: 1.4;
}

/* Columbarium — Lin San Temple feature */
.columbarium-temple {
  padding: 70px 40px;
  background-color: #ffffff;
}

.columbarium-temple-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  max-width: var(--content-width);
  margin: 0 auto;
}

.columbarium-temple-text h2 {
  font-family: var(--font-heading);
  font-size: 30px;
  color: var(--gold);
  margin: 0 0 24px 0;
  font-weight: 400;
}

.columbarium-temple-text p {
  font-size: 15px;
  line-height: 1.8;
  color: #555;
  margin: 0 0 32px 0;
}

.columbarium-temple-img {
  width: 100%;
  height: auto;
  display: block;
}

@media (max-width: 900px) {
  .columbarium-temple-inner {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

.view-suites-btn {
  background-color: transparent;
  border: 2px solid var(--gold);
  color: var(--gold);
  padding: 10px 30px;
  font-size: 14px;
  font-weight: 500;
  border-radius: 25px;
  cursor: pointer;
  font-family: var(--font-body);
  transition: all 0.2s ease;
}

.view-suites-btn:hover {
  background-color: var(--gold);
  color: #ffffff;
}

/* Block Pages */
.block-hero {
  background-color: #6b6b6b;
  background-image: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4));
  padding: 100px 40px;
  text-align: center;
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.blocka-hero {
  background: linear-gradient(rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.45)), url('assets/block-a/dsc_4174-V6tzI31xsatFtPS5.webp');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.blockb-hero {
  background: linear-gradient(rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.45)), url('assets/block-b/dsc_4235-29j0srOZEfgSrtz3.webp');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.blockc-hero {
  background: linear-gradient(rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.45)), url('assets/block-c/dsc_4116-o9onS1D4U8cFWqcS.webp');
  background-size: cover;
  background-position: center 25%;
  background-attachment: fixed;
}

.block-suites-section {
  padding: 70px 40px;
  background-color: #ffffff;
}

.suites-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  max-width: var(--content-width);
  margin: 0 auto;
}

.suite-card {
  text-align: center;
}

.suite-image {
  width: 100%;
  aspect-ratio: 1 / 0.7;
  background-color: #e5e5e5;
  background-size: cover;
  background-position: center;
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999;
  font-size: 14px;
  border: 1px solid #ddd;
  margin-bottom: 16px;
  transition: filter 0.2s ease;
}

.suite-card:hover .suite-image {
  filter: brightness(0.9);
}

.suite-card h3 {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 500;
  color: var(--text-dark);
  margin: 0;
  line-height: 1.4;
  transition: color 0.2s ease;
}

.suite-card:hover h3 {
  color: var(--gold);
}

/* Block A — Refine Search filter sidebar */
.block-a-layout {
  display: grid;
  grid-template-columns: 230px 1fr;
  gap: 50px;
  max-width: var(--content-width);
  margin: 0 auto;
  align-items: start;
}

.block-a-layout .suites-grid {
  max-width: none;
  margin: 0;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}

.filter-panel h2 {
  font-family: var(--font-heading);
  font-size: 22px;
  color: var(--text-dark);
  font-weight: 400;
  margin: 0 0 28px 0;
}

.filter-group {
  margin-bottom: 30px;
}

.filter-group-title {
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #888;
  border-left: 3px solid var(--gold);
  padding-left: 8px;
  margin: 0 0 16px 0;
}

.filter-option {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: #555;
  margin-bottom: 12px;
  cursor: pointer;
}

.filter-option input {
  accent-color: var(--gold);
  width: 15px;
  height: 15px;
  cursor: pointer;
}

.reset-filters-btn {
  margin-top: 6px;
  width: 100%;
  background: transparent;
  border: 1px solid #ccc;
  color: #777;
  padding: 12px;
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  font-family: var(--font-body);
  border-radius: 2px;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.reset-filters-btn:hover {
  border-color: var(--gold);
  color: var(--gold);
}

/* Mobile filter drawer pieces (hidden on desktop) */
.filter-toggle,
.drawer-handle,
.drawer-actions,
.filter-backdrop {
  display: none;
}

@media (max-width: 900px) {
  .block-a-layout {
    grid-template-columns: 1fr;
    gap: 0;
  }

  /* floating trigger button, fixed at bottom-center */
  .filter-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 150;
    min-width: 260px;
    background: var(--gold);
    border: none;
    border-radius: 50px;
    padding: 14px 32px;
    font-size: 15px;
    font-family: var(--font-body);
    color: #ffffff;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.22);
    margin: 0;
  }

  .filter-toggle svg {
    width: 18px;
    height: 18px;
  }

  /* filter panel becomes a bottom sheet */
  .filter-panel {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 200;
    background: #ffffff;
    border-radius: 22px 22px 0 0;
    padding: 14px 24px 28px;
    max-height: 85vh;
    overflow-y: auto;
    transform: translateY(100%);
    transition: transform 0.32s ease;
    box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.18);
  }

  .filter-panel.open {
    transform: translateY(0);
  }

  .drawer-handle {
    display: block;
    width: 44px;
    height: 5px;
    border-radius: 3px;
    background: #d5d5d5;
    margin: 0 auto 18px;
  }

  .filter-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 199;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
  }

  .filter-backdrop.show {
    opacity: 1;
    visibility: visible;
  }

  /* desktop reset button hidden; drawer uses its own action bar */
  .reset-filters-btn {
    display: none;
  }

  .drawer-actions {
    display: flex;
    gap: 14px;
    margin-top: 24px;
  }

  .drawer-actions button {
    flex: 1;
    padding: 14px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 500;
    font-family: var(--font-body);
    cursor: pointer;
    border: none;
  }

  .drawer-reset {
    background: #efece4;
    color: var(--gold-dark);
  }

  .drawer-apply {
    background: var(--gold);
    color: #ffffff;
  }
}

/* Niche Relocation Page */
.niche-hero {
  background: linear-gradient(rgba(40, 36, 30, 0.55), rgba(40, 36, 30, 0.55)), url('assets/prayer-services/Abstract sculpture with flowing ribbons.webp');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.niche-lead {
  padding: 70px 40px;
  background-color: #ffffff;
}

.niche-lead-inner {
  max-width: var(--content-width);
  margin: 0 auto;
  text-align: center;
}

.niche-lead h2 {
  font-family: var(--font-heading);
  font-size: 30px;
  color: var(--gold);
  margin: 0 0 24px 0;
  font-weight: 400;
}

.niche-lead p {
  font-size: 15px;
  line-height: 1.8;
  color: #555;
  margin: 0;
}

.niche-steps {
  padding: 70px 40px;
  background-color: #ffffff;
  text-align: center;
}

.niche-steps h2 {
  font-family: var(--font-heading);
  font-size: 30px;
  color: var(--gold);
  margin: 0 0 12px 0;
  font-weight: 400;
}

.niche-steps h3 {
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 600;
  color: var(--text-dark);
  margin: 0 0 32px 0;
}

.niche-steps img {
  display: block;
  width: 100%;
  max-width: var(--content-width);
  margin: 0 auto 36px;
}

.niche-cta {
  display: inline-block;
  background: var(--gold);
  color: #ffffff;
  padding: 14px 36px;
  border-radius: 50px;
  font-size: 15px;
  font-weight: 500;
  transition: background-color 0.2s ease;
}

.niche-cta:hover {
  background: var(--gold-dark);
}

/* Why the need — reasons grid */
.niche-reasons-section {
  padding: 70px 40px;
  background-color: #f2ebde;
}

.niche-reasons-section > h2 {
  font-family: var(--font-heading);
  font-size: 30px;
  color: var(--gold);
  text-align: center;
  margin: 0 0 20px 0;
  font-weight: 400;
}

.niche-reasons-lead {
  max-width: var(--content-width);
  margin: 0 auto 40px;
  text-align: center;
  font-size: 15px;
  line-height: 1.8;
  color: #555;
}

.niche-reasons-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  max-width: var(--content-width);
  margin: 0 auto;
}

.niche-reason {
  display: flex;
  gap: 16px;
  background: #ffffff;
  padding: 28px 26px;
}

.niche-reason-icon {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  color: #9aa7b0;
}

.niche-reason-icon svg {
  width: 100%;
  height: 100%;
}

.niche-reason-body h3 {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--text-dark);
  margin: 0 0 14px 0;
  font-weight: 700;
  line-height: 1.5;
}

.niche-reason-body h3 span {
  display: block;
  color: #8a97a5;
  font-weight: 600;
}

.niche-reason-body p {
  font-size: 14px;
  line-height: 1.7;
  color: #555;
  margin: 0 0 14px 0;
}

.niche-reason-body p:last-child {
  margin-bottom: 0;
}

@media (max-width: 900px) {
  .niche-reasons-grid {
    grid-template-columns: 1fr;
  }
}

/* Niche Relocation steps grid */
.steps-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: var(--content-width);
  margin: 0 auto 40px;
  text-align: left;
  counter-reset: step;
}

.step-card {
  position: relative;
  display: flex;
  gap: 24px;
  align-items: flex-start;
  padding: 30px 28px;
  background: #ececec;
  counter-increment: step;
}

.step-card::before {
  content: counter(step);
  position: absolute;
  top: 16px;
  left: 18px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #94a58f;
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step-card:nth-child(4n+1),
.step-card:nth-child(4n) {
  background: #cdd9d9;
}

.step-badge {
  flex-shrink: 0;
  width: 120px;
  text-align: center;
}

.step-arch {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #94a58f;
  color: #ffffff;
  border-radius: 50% 50% 14px 14px;
  padding: 26px 12px 20px;
}

.step-arch svg {
  width: 26px;
  height: 26px;
}

.step-arch span {
  font-family: var(--font-body);
  font-size: 22px;
  font-weight: 700;
}

.step-en {
  margin: 12px 0 0 0;
  font-size: 14px;
  font-weight: 700;
  color: #7a8a86;
  line-height: 1.35;
}

.step-text p {
  font-size: 14px;
  line-height: 1.7;
  color: #444;
  margin: 0 0 16px 0;
}

.step-text p:last-child {
  margin-bottom: 0;
}

@media (max-width: 900px) {
  .steps-grid {
    grid-template-columns: 1fr;
  }
}

/* Blog Page */
.blog-hero {
  background-color: #6b6b6b;
  background-image: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4));
  padding: 100px 40px;
  text-align: center;
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.blog-hero-content h1 {
  font-family: var(--font-heading);
  color: #ffffff;
  font-size: 30px;
  margin: 0 0 20px 0;
  font-weight: 400;
}

.blog-hero-content p {
  color: #ffffff;
  font-size: 16px;
  margin: 0;
  line-height: 1.6;
}

.blog-section {
  padding: 70px 40px;
  background-color: #ffffff;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 40px;
  max-width: var(--content-width);
  margin: 0 auto;
}

.blog-card {
  text-align: center;
  display: block;
  color: inherit;
}
.blog-card:hover h3 {
  color: var(--gold);
}
.blog-card:hover .blog-image {
  border-color: var(--gold);
}


.blog-image {
  width: 100%;
  aspect-ratio: 1 / 0.8;
  background-color: #e5e5e5;
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999;
  font-size: 14px;
  border: 1px solid #ddd;
  margin-bottom: 20px;
}

.blog-card h3 {
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 600;
  color: var(--text-dark);
  margin: 0;
  line-height: 1.4;
}

/* Contact Section */
.contact-section {
  background: linear-gradient(rgba(28, 25, 20, 0.72), rgba(28, 25, 20, 0.8)), url('assets/contact/nirvana-contactbg.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  padding: 80px 40px 0;
}

.contact-container {
  max-width: var(--content-width);
  margin: 0 auto;
  display: flex;
  justify-content: center;
  padding-bottom: 80px;
}

.contact-form-wrapper {
  background-color: rgba(64, 64, 64, 0.36);
  padding: 32px;
  border-radius: 20px;
  width: 100%;
  /* form is deliberately narrower than the content width */
  max-width: 700px;
}

.contact-form-wrapper h2 {
  font-family: var(--font-heading);
  font-size: 30px;
  line-height: 1.3;
  color: #ffffff;
  margin: 0 0 12px 0;
  font-weight: 400;
  text-align: center;
}

.contact-form-wrapper > p {
  text-align: center;
  color: #ddd;
  font-size: 14px;
  margin: 0 0 40px 0;
}

.contact-channels {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  max-width: 520px;
  margin: 0 auto 24px;
}

/* both contact buttons share one column width so they match */
.contact-channels .btn {
  width: 100%;
  justify-content: center;
}

@media (max-width: 600px) {
  .contact-channels {
    grid-template-columns: 1fr;
    max-width: 320px;
  }
}

.contact-or {
  text-align: center;
  color: #cfc8ba;
  font-size: 13px;
  letter-spacing: 0.04em;
  margin: 0 0 24px 0;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.optional {
  font-weight: 400;
  font-size: 12px;
  color: #cfc8ba;
}

.contact-reassure {
  text-align: center;
  font-size: 12.5px;
  line-height: 1.5;
  color: #cfc8ba;
  margin: 14px 0 0 0;
}

/* ajax submit feedback */
.form-status {
  text-align: center;
  font-size: 14px;
  line-height: 1.5;
  color: var(--gold);
  margin: 12px 0 0 0;
}

.form-status.is-error {
  color: #e6a5a5;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  font-size: 14px;
  font-weight: 500;
  color: #ffffff;
  margin-bottom: 8px;
}

.required {
  color: inherit;
}

.form-group input,
.form-group textarea {
  padding: 12px 16px;
  border: 1px solid rgb(184, 192, 204);
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 16px;
  color: #000000;
  background-color: #ffffff;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #999;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #000000;
  box-shadow: none;
}

.submit-btn {
  background-color: var(--gold);
  color: #ffffff;
  border: none;
  padding: 12px 40px;
  font-size: 14px;
  font-weight: 500;
  border-radius: 50px;
  cursor: pointer;
  font-family: var(--font-body);
  transition: background-color 0.2s ease;
  align-self: center;
  margin-top: 10px;
}

.submit-btn:hover {
  background-color: rgb(125, 106, 73);
}

.site-footer {
  background-color: #404040;
  color: #ffffff;
  padding: 60px 40px 24px;
}

.footer-inner {
  max-width: var(--content-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}

.footer-col {
  flex: 0 1 auto;
  min-width: 200px;
}

.footer-brand {
  font-family: var(--font-heading);
  font-size: 32px;
  font-weight: 400;
  line-height: 1.3;
  color: var(--gold);
  margin: 0 0 16px 0;
}

.footer-col p {
  font-size: 14px;
  line-height: 1.6;
  margin: 0 0 8px 0;
}

.footer-services {
  color: #ddd;
  text-wrap: balance;
}

.footer-col a {
  color: #ffffff;
  text-decoration: none;
}

.footer-contact p a:hover {
  text-decoration: underline;
}

.footer-contact {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.footer-directions a {
  color: var(--gold);
  text-decoration: underline;
}

.footer-contact p {
  margin: 0;
}

/* contact-us pill button */
.footer-cta {
  display: inline-block;
  background-color: var(--gold);
  padding: 12px 32px;
  border-radius: 50px;
  font-weight: 500;
  margin-bottom: 8px;
  transition: background-color 0.2s ease;
}

.footer-cta:hover {
  background-color: rgb(125, 106, 73);
}

.footer-copy {
  max-width: var(--content-width);
  margin: 40px auto 0;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 14px;
  color: #ffffff;
}

/* column heading */
.footer-heading {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: #ffffff;
  margin: 0 0 18px 0;
}

/* quick links column */
.footer-links ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  font-size: 14px;
  color: #ddd;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--gold);
}

.footer-address,
.footer-hours {
  color: #ddd;
}

/* social icon */
.footer-social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  margin-top: 16px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  transition: background-color 0.2s ease;
}

.footer-social:hover {
  background-color: var(--gold);
}

/* Mobile footer — compact, fully centered, gold-ruled dividers between columns */
@media (max-width: 760px) {
  .site-footer {
    padding: 36px 20px 18px;
    text-align: center;
  }

  .footer-inner {
    flex-direction: column;
    gap: 0;
  }

  .footer-col {
    min-width: 0;
    width: 100%;
    padding: 20px 0;
  }

  .footer-col:first-child {
    padding-top: 0;
  }

  .footer-col + .footer-col {
    border-top: 1px solid rgba(166, 144, 103, 0.35);
  }

  .footer-brand {
    font-size: 23px;
    margin-bottom: 8px;
  }

  .footer-col p {
    margin: 0 0 6px;
  }

  .footer-heading {
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 13px;
    color: var(--gold);
    margin-bottom: 14px;
  }

  /* Quick Links as a centered wrapping row instead of a tall stacked list */
  .footer-links ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 20px;
  }

  .footer-links li {
    margin-bottom: 0;
  }

  /* center the Get in Touch column (was left-aligned via align-items) */
  .footer-contact {
    align-items: center;
    gap: 5px;
  }

  .footer-cta {
    margin-bottom: 10px;
  }

  .footer-copy {
    margin-top: 12px;
    padding-top: 16px;
    font-size: 13px;
    color: #cfcfcf;
    text-wrap: balance;
  }
}

/* Buddhism Funeral Page */
.buddhism-section {
  padding: 70px 40px;
  background-color: #ffffff;
}

.buddhism-container {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
  max-width: var(--content-width);
  margin: 0 auto;
  align-items: start;
}

.buddhism-text h2 {
  font-family: var(--font-heading);
  font-size: 30px;
  color: var(--gold);
  margin: 0 0 30px 0;
  font-weight: 400;
}

.buddhism-text p {
  font-size: 15px;
  line-height: 1.8;
  color: #555;
  margin: 0 0 20px 0;
  text-align: left;
}

.buddhism-images {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.gallery-link {
  display: block;
  line-height: 0;
}

.image-item {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 0;
  cursor: pointer;
  transition: transform 0.2s ease, filter 0.2s ease;
  display: block;
  font-size: 14px;
  border: 1px solid #ddd;
}

.image-item:hover {
  transform: scale(1.02);
  filter: brightness(0.95);
}

/* Buddhist Funeral Package Section */
.package-section {
  padding: 80px 40px;
  background-color: #f2ebde;
  display: grid;
  grid-template-columns: min(100%, var(--content-width));
  justify-content: center;
  gap: 60px;
  align-items: center;
}

.package-intro {
  /* width matches .buddhism-text */
}

.package-intro h2 {
  font-family: var(--font-heading);
  font-size: 30px;
  color: var(--gold);
  margin: 0 0 24px 0;
  font-weight: 400;
}

.package-intro p {
  font-size: 15px;
  line-height: 1.8;
  color: #555;
  margin: 0 0 16px 0;
  text-align: left;
}

.video-player-section {
  max-width: var(--content-width);
  margin: 0 auto;
}

.main-video {
  max-width: var(--content-width);
  margin: 0 auto;
}

.main-video iframe {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  border-radius: 0;
  display: block;
}

.single-video-container {
  width: 100%;
  max-width: var(--content-width);
  margin: 0 auto;
}

.single-video-container iframe {
  width: 100%;
  height: 500px;
  border-radius: 0;
  display: block;
}

.single-package-grid {
  display: flex;
  justify-content: center;
  max-width: var(--content-width);
  margin: 0 auto;
}

.single-package-grid .package-card {
  max-width: calc((var(--content-width) - 80px) / 3);
}

.main-video {
  width: 100%;
  margin-bottom: 30px;
}

.main-video iframe {
  width: 100%;
  height: 500px;
  border-radius: 0;
  display: block;
}

.video-thumbnails {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.thumbnail {
  position: relative;
  width: 150px;
  height: 84px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color 0.2s ease, transform 0.2s ease;
  border-radius: 0;
  overflow: hidden;
  background-color: #f0f0f0;
}

.thumbnail:hover {
  border-color: var(--gold);
  transform: scale(1.05);
}

.thumbnail-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  text-align: center;
  background-color: #e0e0e0;
  background-size: cover;
  background-position: center;
  color: #fff;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.2;
  padding: 0 4px 5px;
}

.play-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 24px;
  color: #fff;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
  z-index: 10;
}

/* Our Packages Section */
.our-packages-section {
  padding: 70px 40px;
  background-color: #ffffff;
}

.our-packages-section h2 {
  font-family: var(--font-heading);
  font-size: 30px;
  color: var(--gold);
  text-align: center;
  margin: 0 0 60px 0;
  font-weight: 400;
}

.packages-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  max-width: var(--content-width);
  margin: 0 auto;
}

.package-card {
  text-align: center;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.package-card:hover {
  transform: scale(1.02);
}

.package-image {
  width: 100%;
  height: auto;
  border-radius: 0;
  display: block;
}

/* Funeral Service Package Highlight Section */
.highlight-section {
  padding: 70px 40px;
  background-color: #f2ebde;
}

.highlight-section h2 {
  font-family: var(--font-heading);
  font-size: 30px;
  color: var(--gold);
  text-align: center;
  margin: 0 0 60px 0;
  font-weight: 400;
}

.highlight-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  max-width: var(--content-width);
  margin: 0 auto;
}

.highlight-card {
  background-color: transparent;
  padding: 0;
  text-align: center;
}

.highlight-image {
  width: 100%;
  height: 280px;
  background-size: cover;
  background-position: center;
  margin-bottom: 24px;
  border-radius: 0;
}

.highlight-card h3 {
  font-family: var(--font-heading);
  font-size: 18px;
  color: var(--text-dark);
  margin: 0 0 16px 0;
  font-weight: 400;
  padding: 0 20px;
}

.highlight-card p {
  font-size: 14px;
  line-height: 1.6;
  color: #555;
  margin: 0;
  padding: 0 20px 24px 20px;
  text-align: left;
}

/* Why Choose Us Section */
.why-choose-section {
  padding: 70px 40px;
  background-color: #ffffff;
}

.why-choose-section h2 {
  font-family: var(--font-heading);
  font-size: 30px;
  color: var(--text-dark);
  text-align: center;
  margin: 0 0 50px 0;
  font-weight: 400;
}

.why-choose-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  max-width: var(--content-width);
  margin: 0 auto;
}

.why-choose-card {
  text-align: center;
}

.why-choose-icon {
  width: 54px;
  height: 54px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.why-choose-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.why-choose-card h3 {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--text-dark);
  margin: 0 0 12px 0;
  font-weight: 700;
}

.why-choose-card p {
  font-size: 14px;
  line-height: 1.7;
  color: #555;
  margin: 0;
}

/* Prayer Services Pages Layout */
.prayer-main {
  background-color: #ffffff;
  max-width: calc(var(--content-width) + 2 * var(--page-gutter));
  margin: 0 auto;
  padding: 40px;
}

/* Top: title, image, then intro stacked vertically */
.prayer-top {
  margin-bottom: 40px;
}

.prayer-top-image {
  width: 100%;
  height: auto;
  border-radius: 0;
  display: block;
  margin: 0 0 30px 0;
}

.prayer-top-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 40px;
}

.prayer-top-images img {
  width: 100%;
  height: auto;
  border-radius: 0;
  display: block;
}

.prayer-top h2 {
  font-family: var(--font-heading);
  font-size: 30px;
  color: var(--gold);
  margin: 0 0 30px 0;
  font-weight: 400;
}

.prayer-top p {
  font-size: 15px;
  line-height: 1.8;
  color: #555;
  margin: 0;
  text-align: left;
}

/* Body: full width below the top row */
.prayer-body h2 {
  font-family: var(--font-heading);
  font-size: 30px;
  color: var(--gold);
  margin: 30px 0 20px 0;
  font-weight: 400;
}

.prayer-body h3 {
  font-family: var(--font-body);
  font-size: 17px;
  color: var(--text-dark);
  font-weight: 700;
  text-decoration: underline;
  margin: 34px 0 14px 0;
}

.prayer-body > *:first-child {
  margin-top: 0;
}

.prayer-body p {
  font-size: 15px;
  line-height: 1.8;
  color: #555;
  margin: 0 0 20px 0;
  text-align: left;
}

.pricing-list,
.services-list {
  margin: 0 0 30px 0;
  padding-left: 20px;
}

.pricing-list li,
.services-list li {
  font-size: 15px;
  line-height: 1.8;
  color: #555;
  margin-bottom: 12px;
}

/* Prayer Services Hero Banner */
.prayer-service-hero {
  background: linear-gradient(rgba(28, 25, 20, 0.72), rgba(28, 25, 20, 0.8)), url('assets/prayer-services/Abstract sculpture with flowing ribbons.webp');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

/* Ancestral Tablets Page */
.ancestral-hero {
  background: linear-gradient(rgba(28, 25, 20, 0.72), rgba(28, 25, 20, 0.8)), url('assets/ancestral-tablets/Abstract sculpture with flowing ribbons.webp');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.ancestral-intro {
  max-width: calc(var(--content-width) + 2 * var(--page-gutter));
  margin: 0 auto;
  padding: 80px 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.ancestral-intro-text h2 {
  font-family: var(--font-heading);
  font-size: 30px;
  line-height: 1.2;
  color: var(--gold);
  margin: 0 0 30px 0;
  font-weight: 400;
}

.ancestral-intro-text p {
  font-size: 16px;
  line-height: 1.8;
  color: #555;
  margin: 0 0 24px 0;
}

.ancestral-buttons {
  display: flex;
  gap: 20px;
  margin-top: 36px;
}

.ancestral-intro-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 0;
}

@media (max-width: 900px) {
  .ancestral-intro {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 50px 24px;
  }
}

/* Why Choose Memorial Hall — comparison */
.ancestral-compare {
  background-color: #f2ebde;
  padding: 70px 40px;
}

.ancestral-compare h2 {
  font-family: var(--font-heading);
  font-size: 30px;
  color: var(--gold);
  text-align: center;
  margin: 0 0 50px 0;
  font-weight: 400;
}

.ancestral-compare-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  max-width: var(--content-width);
  margin: 0 auto;
}

.compare-card {
  text-align: center;
}

.compare-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  margin-bottom: 24px;
}

.compare-card h3 {
  font-size: 22px;
  color: var(--text-dark);
  margin: 0 0 14px 0;
  font-weight: 700;
}

.compare-card p {
  font-size: 15px;
  line-height: 1.8;
  color: #555;
  margin: 0;
}

/* Suites gallery section wrapper */
.ancestral-suites {
  padding: 70px 40px;
  background-color: #ffffff;
}

.ancestral-suites h2 {
  font-family: var(--font-heading);
  font-size: 30px;
  color: var(--gold);
  text-align: center;
  margin: 0 0 50px 0;
  font-weight: 400;
}

/* Pricing table */
.ancestral-pricing {
  padding: 0 40px 70px;
  background-color: #ffffff;
}

.ancestral-pricing-inner {
  max-width: var(--content-width);
  margin: 0 auto;
}

.ancestral-pricing h2 {
  font-family: var(--font-heading);
  font-size: 30px;
  color: var(--gold);
  text-align: center;
  margin: 0 0 40px 0;
  font-weight: 400;
}

.pricing-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}

.pricing-table th,
.pricing-table td {
  text-align: left;
  padding: 14px 18px;
  border-bottom: 1px solid #e5e0d5;
  color: #555;
}

.pricing-table thead th {
  background-color: var(--gold);
  color: #ffffff;
  font-weight: 500;
}

.pricing-table tbody tr:nth-child(even) {
  background-color: #faf7f0;
}

.pricing-note {
  font-size: 13px;
  color: #888;
  margin: 16px 0 0 0;
  text-align: center;
}

/* Info text sections (customisation / engraving / installation) */
.ancestral-info {
  background-color: #f2ebde;
  padding: 70px 40px;
}

.ancestral-info-inner {
  max-width: var(--content-width);
  margin: 0 auto;
}

.ancestral-info h2 {
  font-family: var(--font-heading);
  font-size: 24px;
  color: var(--gold);
  margin: 40px 0 20px 0;
  font-weight: 400;
}

.ancestral-info h2:first-child {
  margin-top: 0;
}

.ancestral-info h3 {
  font-family: var(--font-body);
  font-size: 17px;
  color: var(--text-dark);
  font-weight: 700;
  text-decoration: underline;
  margin: 34px 0 14px 0;
}

.ancestral-info p {
  font-size: 15px;
  line-height: 1.8;
  color: #555;
  margin: 0 0 20px 0;
}

.ancestral-info .services-list {
  margin-bottom: 24px;
}

@media (max-width: 900px) {
  .ancestral-compare-grid {
    grid-template-columns: 1fr;
  }
}

/* Funeral Services Main Page */
.funeral-hero {
  background: linear-gradient(rgba(28, 25, 20, 0.72), rgba(28, 25, 20, 0.8)), url('assets/buddhist-funeral/Abstract sculpture with flowing ribbons.webp');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.funeral-services-section {
  padding: 70px 40px;
  background-color: #f2ebde;
}

.funeral-services-section h2 {
  font-family: var(--font-heading);
  font-size: 30px;
  color: var(--gold);
  text-align: center;
  margin: 0 0 20px 0;
  font-weight: 400;
}

.funeral-intro {
  max-width: var(--content-width);
  margin: 0 auto 40px;
  text-align: center;
  font-size: 15px;
  line-height: 1.8;
  color: #555;
}

.funeral-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
  max-width: var(--content-width);
  margin: 0 auto;
}

.funeral-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-align: center;
}

.funeral-card .view-suites-btn {
  margin-top: auto;
  align-self: center;
}

.funeral-card-image {
  width: 100%;
  aspect-ratio: 1 / 1;
  background-size: cover;
  background-position: center;
  border-radius: 0;
  margin-bottom: 24px;
}

.funeral-card h3 {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 400;
  color: var(--text-dark);
  margin: 0 0 18px 0;
  line-height: 1.4;
}

/* Funeral service pages — mobile stacking */
@media (max-width: 900px) {
  .buddhism-container,
  .package-section {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .highlight-grid,
  .packages-grid,
  .why-choose-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .highlight-grid,
  .packages-grid {
    grid-template-columns: 1fr;
  }

  .why-choose-grid,
  .buddhism-images {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Prayer Services Main Page */
.prayer-listing-section {
  padding: 70px 40px;
  background-color: #f2ebde;
}

.prayer-listing-section h2 {
  font-family: var(--font-heading);
  font-size: 30px;
  color: var(--gold);
  text-align: center;
  margin: 0 0 60px 0;
  font-weight: 400;
}

.prayer-listing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
  max-width: var(--content-width);
  margin: 0 auto;
}

/* blog category hubs — fixed 3-column tiles */
.prayer-listing-grid.blog-tiles {
  grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 900px) {
  .prayer-listing-grid.blog-tiles {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .prayer-listing-grid.blog-tiles {
    grid-template-columns: 1fr;
  }
}

.prayer-listing-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-align: center;
}

.prayer-listing-card .view-suites-btn {
  margin-top: auto;
  align-self: center;
}

.prayer-listing-card-image {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  background-size: cover;
  background-position: center;
  border-radius: 0;
  margin-bottom: 24px;
}

.coming-soon {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(0, 0, 0, 0.75);
  color: #ffffff;
  font-family: var(--font-heading);
  font-size: 24px;
  letter-spacing: 0.02em;
}

.prayer-listing-card h3 {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 400;
  color: var(--text-dark);
  margin: 0 0 18px 0;
  line-height: 1.4;
}

/* featured (latest) post on category hubs */
.blog-featured {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  max-width: var(--content-width);
  margin: 0 auto 48px;
  background-color: #ffffff;
  text-decoration: none;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  overflow: hidden;
}

.blog-featured-image {
  min-height: 340px;
  background-size: cover;
  background-position: center;
}

.blog-featured-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 44px;
  text-align: left;
}

.blog-featured-tag {
  align-self: flex-start;
  font-family: var(--font-body);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid var(--gold);
  padding: 5px 12px;
  margin-bottom: 18px;
}

.prayer-listing-section .blog-featured-body h2 {
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 400;
  color: var(--text-dark);
  text-align: left;
  margin: 0 0 16px 0;
  line-height: 1.35;
}

.blog-featured-body p {
  color: #555;
  line-height: 1.7;
  margin: 0 0 26px 0;
}

.blog-featured .view-suites-btn {
  align-self: flex-start;
  margin-top: 0;
}

.blog-featured:hover .blog-featured-body h2 {
  color: var(--gold);
}

@media (max-width: 768px) {
  .blog-featured {
    grid-template-columns: 1fr;
  }

  .blog-featured-image {
    min-height: 220px;
  }

  .blog-featured-body {
    padding: 32px 24px;
  }
}

/* Urns Page */
.urn-selection-section {
  padding: 70px 40px;
  background-color: #ffffff;
}

.urn-selection-section h2 {
  font-family: var(--font-heading);
  font-size: 30px;
  color: var(--gold);
  text-align: center;
  margin: 0 0 20px 0;
  font-weight: 400;
}

.urn-intro {
  max-width: var(--content-width);
  margin: 0 auto 40px;
  text-align: center;
  font-size: 15px;
  line-height: 1.8;
  color: #555;
}

.urn-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
  max-width: var(--content-width);
  margin: 0 auto;
}

.urn-card {
  text-align: center;
}

.urn-card-image {
  width: 100%;
  aspect-ratio: 1 / 1;
  background-size: cover;
  background-position: center;
  border-radius: 0;
  margin-bottom: 20px;
}

.urn-card h3 {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 400;
  color: var(--text-dark);
  margin: 0 0 14px 0;
  line-height: 1.4;
}

.urn-card p {
  font-size: 15px;
  line-height: 1.8;
  color: #555;
  margin: 0;
  text-align: center;
}

.urn-text-section {
  padding: 70px 40px;
  background-color: #ffffff;
}

.urn-text-section.beige {
  background-color: #f2ebde;
}

.urn-text-section h2 {
  font-family: var(--font-heading);
  font-size: 30px;
  color: var(--gold);
  text-align: center;
  margin: 0 0 30px 0;
  font-weight: 400;
}

.urn-text-inner {
  max-width: var(--content-width);
  margin: 0 auto;
}

.urn-text-inner p {
  font-size: 15px;
  line-height: 1.8;
  color: #555;
  margin: 0 0 20px 0;
}

.urn-images-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  max-width: var(--content-width);
  margin: 0 auto 40px;
}

.urn-images-grid--photos img {
  width: 100%;
  height: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.urn-images-grid--niche {
  align-items: start;
}

.urn-images-grid--niche img {
  width: 100%;
  aspect-ratio: 1.9; /* shared ratio so both niche banners render the same height */
  object-fit: cover; /* crops only the outer margin, keeping both equal height */
  display: block;
  border-radius: 8px;
}

.urn-images-grid img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 0;
}

@media (max-width: 900px) {
  .urn-images-grid {
    grid-template-columns: 1fr;
  }
}

/* Lin San Temple Page */
.lst-hero {
  background: linear-gradient(rgba(40, 36, 30, 0.55), rgba(40, 36, 30, 0.55)), url('assets/prayer-services/Abstract sculpture with flowing ribbons.webp');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.lst-hero .hero-banner-content {
  max-width: var(--content-width);
}

/* Full-width banner image under hero */
.lst-banner-section {
  padding: 50px 40px 0;
  background-color: #ffffff;
}

.lst-banner-section img {
  display: block;
  width: 100%;
  max-width: var(--content-width);
  margin: 0 auto;
}

/* About / Rebuild / Floorplan — text panel left, image right */
.lst-feature-section {
  padding: 50px 40px;
  background-color: #ffffff;
}

.lst-feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  max-width: var(--content-width);
  margin: 0 auto;
}

.lst-feature-text {
  background-color: #f6f5f2;
  padding: 48px;
}

.lst-feature-text h2 {
  font-family: var(--font-heading);
  font-size: 28px;
  color: var(--gold);
  margin: 0 0 20px 0;
  font-weight: 400;
}

.lst-feature-text p {
  font-size: 15px;
  line-height: 1.8;
  color: #555;
  margin: 0 0 16px 0;
}

.lst-feature-text p:last-child {
  margin-bottom: 0;
}

.lst-feature-list {
  margin: 0;
  padding-left: 20px;
}

.lst-feature-list li {
  font-size: 15px;
  line-height: 1.8;
  color: #555;
  margin-bottom: 8px;
}

.lst-feature-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Suites */
.lst-suite-section {
  padding: 70px 40px;
  background-color: #ffffff;
}

.lst-suite-section.beige {
  background-color: #f2ebde;
}

.lst-suite {
  max-width: var(--content-width);
  margin: 0 auto;
}

.lst-suite h3 {
  font-family: var(--font-heading);
  font-size: 30px;
  color: var(--text-dark);
  text-align: center;
  margin: 0 0 6px 0;
  font-weight: 400;
}

.lst-suite h3.gold {
  color: var(--gold);
}

.lst-suite-subtitle {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--text-dark);
  text-align: center;
  font-weight: 600;
  margin: 0 0 28px 0;
}

.lst-suite-details {
  list-style: none;
  max-width: var(--content-width);
  margin: 0 auto 32px;
  padding: 20px 0;
  text-align: center;
}

.lst-suite-details li {
  font-size: 15px;
  line-height: 1.9;
  color: #555;
}

.lst-suite-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  max-width: var(--content-width);
  margin: 0 auto;
}

.lst-suite-gallery figure {
  margin: 0;
}

.lst-suite-gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  border-radius: 0;
}

.lst-suite-gallery figcaption {
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-dark);
  margin-top: 12px;
}

/* Why Choose */
.lst-why-section {
  padding: 70px 40px;
  background-color: #f2ebde;
}

.lst-why-section h2 {
  font-family: var(--font-heading);
  font-size: 30px;
  color: var(--text-dark);
  text-align: center;
  max-width: var(--content-width);
  margin: 0 auto 50px;
  font-weight: 400;
}

.lst-why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  max-width: var(--content-width);
  margin: 0 auto;
}

.lst-why-card {
  text-align: center;
}

.lst-why-icon {
  width: 54px;
  height: 54px;
  margin: 0 auto 20px;
}

.lst-why-icon svg,
.lst-why-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.lst-why-card h3 {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--text-dark);
  margin: 0 0 12px 0;
  font-weight: 700;
}

.lst-why-card p {
  font-size: 14px;
  line-height: 1.7;
  color: #555;
  margin: 0;
}

@media (max-width: 900px) {
  .lst-why-grid {
    grid-template-columns: 1fr 1fr;
  }
  .lst-feature {
    grid-template-columns: 1fr;
  }
  .lst-feature-text {
    padding: 32px 24px;
  }
  .lst-feature-img {
    height: auto;
  }
}

/* Responsive */
@media (max-width: 900px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.16);
    /* drawer: never taller than the screen below the navbar — scroll inside */
    max-height: calc(100vh - 96px);
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  .nav-links.open {
    display: block;
  }

  .nav-links > ul {
    flex-direction: column;
    align-items: stretch; /* override desktop centering so rows fill the drawer */
    gap: 0;
    padding: 4px 0 8px;
  }

  /* top-level rows: label left, chevron parked right, hairline divider between */
  .nav-links > ul > li {
    border-bottom: 1px solid #f0eee9;
  }

  .nav-links > ul > li:last-child {
    border-bottom: none;
  }

  .nav-links > ul > li > a {
    width: 100%;
    justify-content: space-between;
    padding: 16px 24px;
    font-size: 16px;
    font-weight: 500;
  }

  /* chevron sits at the far right with a comfortable tap area */
  .has-dropdown > a .arrow {
    margin-left: auto;
    padding: 6px 2px 6px 16px;
    color: var(--gold);
  }

  /* expanded section: grouped links on a subtle grey inset */
  .dropdown,
  .submenu {
    display: none;
    position: static;
    box-shadow: none;
    border: none;
    border-radius: 0;
    margin: 0;
    min-width: 0;
    text-align: left;
  }

  .dropdown {
    padding: 4px 0 10px;
    background: #f7f6f3;
  }

  .has-dropdown.open .dropdown {
    display: flex;
  }

  /* nested groups (Columbarium / Funeral / Prayer) are shown expanded whenever
     the parent section is open — no second accordion; their label is a header */
  .has-dropdown.open .submenu {
    display: flex;
  }

  .submenu {
    background: transparent;
    padding: 0 0 4px;
  }

  /* submenu parent -> uppercase category header */
  .has-submenu > a {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 14px 24px 6px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--gold-dark);
  }

  /* the nested ▸ arrow is redundant now that groups are always expanded */
  .has-submenu > a .arrow-right {
    display: none;
  }

  /* leaf links: left-aligned; standalone dropdown items sit at section indent,
     grouped submenu items indent one level deeper under their header */
  .dropdown > li:not(.has-submenu) > a,
  .submenu li > a {
    justify-content: flex-start;
    font-size: 15px;
    font-weight: 400;
    color: #4a4640;
  }

  .dropdown > li:not(.has-submenu) > a {
    padding: 12px 24px;
  }

  .submenu li > a {
    padding: 10px 24px 10px 38px;
  }

  .nav-links > ul > li > a.active {
    border-bottom: none;
    color: var(--gold);
  }

  .menu-toggle {
    display: block;
  }

  .hero {
    min-height: 62vh;
  }

  .hero-text h1 {
    font-size: 34px;
  }

  .trust-list {
    /* minmax(0, 1fr) forces truly equal columns so the divider is centered and
       the left/right padding matches — plain 1fr lets the long "COLUMBARIUM,"
       token widen the left column */
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 1fr;
  }

  .trust-figure {
    font-size: 18px;
  }

  .trust-item {
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .trust-item:nth-child(-n + 2) {
    border-bottom: 1px solid #ece3d3;
  }

  .trust-item:nth-child(odd) {
    border-left: none;
  }

  .submit-btn {
    align-self: stretch;
    text-align: center;
  }
}

/* Columbarium quick links (bottom of block / temple pages) */
.quick-links-section {
  padding: 70px 40px;
  background-color: #f2ebde;
}

.quick-links-section h2 {
  font-family: var(--font-heading);
  font-size: 30px;
  color: var(--gold);
  text-align: center;
  margin: 0 0 46px 0;
  font-weight: 400;
}

.quick-links-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
  max-width: var(--content-width);
  margin: 0 auto;
}

.quick-link-card {
  display: flex;
  flex-direction: column;
  text-align: center;
  color: inherit;
  width: calc((var(--content-width) - 80px) / 3);
  max-width: 100%;
}

.quick-link-image {
  width: 100%;
  aspect-ratio: 1 / 1;
  background-color: #d3d3d3;
  background-size: cover;
  background-position: center;
  margin-bottom: 24px;
  transition: filter 0.2s ease;
}

.quick-link-card:hover .quick-link-image {
  filter: brightness(0.9);
}

.quick-link-card h3 {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 400;
  color: var(--text-dark);
  margin: 0;
  line-height: 1.4;
  transition: color 0.2s ease;
}

.quick-link-card:hover h3 {
  color: var(--gold);
}

.quick-link-btn {
  margin-top: 18px;
  align-self: center;
  background-color: transparent;
  border: 2px solid var(--gold);
  color: var(--gold);
  padding: 10px 30px;
  font-size: 14px;
  font-weight: 500;
  border-radius: 25px;
  font-family: var(--font-body);
  transition: all 0.2s ease;
}

.quick-link-card:hover .quick-link-btn {
  background-color: var(--gold);
  color: #ffffff;
}

.quick-link-card p {
  font-size: 14px;
  color: #666;
  margin: 6px 0 0 0;
  line-height: 1.4;
}

/* Funeral Guide page hero */
.funeral-guide-hero {
  background: linear-gradient(rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.45)), url('assets/Blog/Funeral Guide/generated-iHynolKxkGEpLRCU.webp');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.our-stories-hero {
  background: linear-gradient(rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.45)), url('assets/home/lvl 9 lounge.webp');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.latest-news-hero {
  background: linear-gradient(rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.45)), url('assets/home/nirvana building.webp');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.events-hero {
  background: linear-gradient(rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.45)), url('assets/lin-san-temple/dmain-hall.webp');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

/* Mobile: hero banners scroll (not fixed). `fixed` sizes the image to the tall
   viewport and shows a heavily zoomed slice on phones; `scroll` sizes it to the
   banner so more of the visual is visible. */
@media (max-width: 900px) {
  .columbarium-hero,
  .blocka-hero,
  .blockb-hero,
  .blockc-hero,
  .niche-hero,
  .blog-hero,
  .prayer-service-hero,
  .ancestral-hero,
  .funeral-hero,
  .lst-hero,
  .funeral-guide-hero,
  .our-stories-hero,
  .latest-news-hero,
  .events-hero {
    background-attachment: scroll;
    background-size: cover;
  }
}

/* blog category listing intro */
.listing-intro {
  max-width: var(--reading-width);
  margin: 0 auto 40px;
  text-align: center;
  color: #555;
  font-size: 1.05rem;
  line-height: 1.7;
}

/* Blog article page */
.article-section {
  padding: 70px 40px;
  background-color: #ffffff;
}

.article-body {
  max-width: var(--content-width);
  margin: 0 auto;
}

.article-body h2 {
  font-family: var(--font-heading);
  font-size: 24px;
  color: var(--gold);
  margin: 40px 0 18px 0;
  font-weight: 400;
}

.article-body h2:first-child {
  margin-top: 0;
}

.article-body h3 {
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 700;
  color: var(--text-dark);
  margin: 26px 0 12px 0;
}

.article-body p {
  font-size: 15px;
  line-height: 1.9;
  color: #555;
  margin: 0 0 18px 0;
}

.article-body ul {
  margin: 0 0 18px 0;
  padding-left: 22px;
}

.article-body li {
  font-size: 15px;
  line-height: 1.8;
  color: #555;
  margin-bottom: 8px;
}

.article-feature-img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 0;
  margin: 12px 0 30px 0;
}

/* Site-wide 100px side gutters (responsive) */
:root {
  --page-gutter: 100px;
  /* single shared max-width for all content containers */
  --content-width: 1200px;
}

@media (max-width: 1000px) {
  :root {
    --page-gutter: 40px;
  }
}

@media (max-width: 600px) {
  :root {
    --page-gutter: 20px;
  }
}

.navbar,
.hero,
.products-section,
.columbarium-hero,
.block-hero,
.blog-hero,
.columbarium-section,
.columbarium-temple,
.block-suites-section,
.lst-banner-section,
.lst-feature-section,
.lst-suite-section,
.lst-why-section,
.funeral-services-section,
.buddhism-section,
.package-section,
.our-packages-section,
.highlight-section,
.why-choose-section,
.prayer-listing-section,
.prayer-main,
.ancestral-intro,
.ancestral-compare,
.ancestral-suites,
.ancestral-pricing,
.ancestral-info,
.urn-selection-section,
.urn-text-section,
.niche-lead,
.niche-reasons-section,
.niche-steps,
.blog-section,
.article-section,
.articles-section,
.reviews-section,
.quick-links-section,
.contact-section,
.site-footer {
  padding-left: var(--page-gutter);
  padding-right: var(--page-gutter);
}

/* Columbarium pages — quick links fill the row as 3 columns (like the main columbarium grid) */
body.columbarium-page .quick-links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

body.columbarium-page .quick-link-card {
  width: auto;
  max-width: none;
}

/* Floating WhatsApp button */
.whatsapp-float {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 1000;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background-color: #25d366;
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.whatsapp-float:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
}

/* floating call button — for the phone-first (elderly) segment */
.call-float {
  position: fixed;
  right: 24px;
  bottom: 90px;
  z-index: 1000;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background-color: var(--gold);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.call-float:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
}

@media (max-width: 600px) {
  .whatsapp-float {
    right: 16px;
    bottom: 16px;
    width: 50px;
    height: 50px;
  }

  .call-float {
    right: 16px;
    bottom: 74px;
    width: 50px;
    height: 50px;
  }
}

/* ===== Section headers: beige bg -> #404040, white bg -> #A69067; margin-top:0 for equal top/bottom spacing ===== */
.start-here h2,
.why-section h2,
.how-section h2,
.columbarium-section h2,
.niche-reasons-section h2,
.package-section h2,
.highlight-section h2,
.ancestral-compare h2,
.ancestral-info h2,
.funeral-services-section h2,
.prayer-listing-section h2,
.lst-why-section h2,
.quick-links-section h2,
.reviews-section h2 {
  color: #404040;
  margin-top: 0;
  margin-bottom: 36px;
}

.pricing-section h2,
.products-section h2,
.columbarium-temple h2,
.block-suites-section h2,
.niche-lead h2,
.blog-section h2,
.buddhism-section h2,
.our-packages-section h2,
.why-choose-section h2,
.ancestral-suites h2,
.urn-selection-section h2,
.urn-text-section h2,
.lst-suite-section h2,
.articles-section h2,
.ancestral-intro h2 {
  color: #a69067;
  margin-top: 0;
  margin-bottom: 36px;
}

/* Beige-modifier sections override to dark header */
.urn-text-section.beige h2 {
  color: #404040;
}

/* Breadcrumbs (background matches the first section) */
.breadcrumb {
  padding: 16px var(--page-gutter) 0;
  font-size: 13px;
  color: #888;
}

.breadcrumb a {
  color: var(--gold);
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--gold-dark);
  text-decoration: underline;
}

.breadcrumb .sep {
  margin: 0 8px;
  color: #bbb;
}

.breadcrumb .current {
  color: #888;
}

.breadcrumb-beige {
  background-color: #f2ebde;
}

.breadcrumb-white {
  background-color: #ffffff;
}

/* Language dropdown (nav) — hover to open, flag + label options */
.lang-item > .lang-current {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 16px;
  color: var(--text-dark);
}

.lang-flag {
  font-size: 16px;
  line-height: 1;
}

.lang-dropdown {
  left: auto;
  right: 0;
  min-width: 130px;
}

.lang-dropdown .lang-option {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
}

.lang-dropdown .lang-option.active {
  color: var(--gold-dark);
  background-color: var(--cream);
}

/* ===== Balanced multi-line text: no widows, even line widths (applies in EN and 中文) ===== */
.hero-sub,
.hero-reassure,
.start-here-lead,
.pricing-lead,
.pricing-note,
.pricing-detail,
.how-lead,
.how-step p,
.why-item h3,
.trust-figure,
.trust-label,
.product-card h3,
.article-card h3,
.quick-link-card h3,
.quick-link-card p,
.prayer-listing-card h3,
.funeral-card h3,
.block-card h3,
.block-subtitle,
.urn-card h3,
.highlight-card h3,
.why-choose-card h3,
.why-choose-card p,
.lst-why-card h3,
.lst-why-card p,
.niche-reasons-lead,
.funeral-intro,
.urn-intro,
.package-intro p,
.contact-form-wrapper > p,
.contact-reassure,
.footer-brand,
.breadcrumb {
  text-wrap: balance;
}

/* ===== Site-wide: balanced text everywhere — even line widths, no widows (EN and 中文) ===== */
h1, h2, h3, h4, h5, h6,
p, li, figcaption, blockquote, td, th, dt, dd, label,
.hero-banner-content p,
.start-chip-title,
.start-chip-sub,
.trust-figure,
.trust-label,
.product-badge,
.coming-soon,
.pricing-from,
.footer-heading,
.footer-address,
.footer-hours,
.footer-copy {
  text-wrap: balance;
}

/* long-form prose: balance is skipped by browsers past ~6 lines; keep widow-avoidance there */
.article-body p,
.article-body li,
.prayer-body p,
.buddhism-text p {
  text-wrap: pretty;
}

/* Scroll reveal — elements fade + rise into view as they scroll in (home page).
   JS (script.js) adds .reveal to targets and toggles .is-visible via IntersectionObserver. */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
  will-change: opacity, transform;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

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