:root {
  --gold: #c6a15b;
  --gold-hi: #e4c98a;
  --gold-deep: #8a6a2f;
  --ink: #2a2418;
  --muted: #6b6254;
  --paper: #f6f0e4;
  --cream: #fbf6ea;
  --card: #fffdf8;
  --shadow: 0 10px 28px rgb(90 70 28 / 12%);
  --shadow-hover: 0 16px 36px rgb(90 70 28 / 18%);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Figtree, system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.5;
}

img { max-width: 100%; display: block; }
a { color: var(--gold-deep); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .6rem; }
h2 {
  text-align: center;
  color: var(--gold);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
}
h2.left { text-align: left; }
h2.light { color: #fff; }

.section { max-width: 1120px; margin: 0 auto; padding: 2.5rem 1rem; }
.muted { text-align: center; color: var(--muted); }
.center { text-align: center; }
.text-link { font-weight: 600; }

.hero {
  background-image:
    url("https://reseller.meem.com.my/assets/images/banner/wave-shap.svg"),
    url("https://reseller.meem.com.my/storage/697/Untitled-design.png");
  background-repeat: no-repeat, no-repeat;
  background-size: contain, cover;
  background-position: 50% 101%, center;
  background-color: rgb(32 27 21 / 90%);
  background-blend-mode: normal, multiply;
  color: #fff;
  padding-bottom: 3rem;
}
.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1120px;
  margin: 0 auto;
  padding: 1rem 1.25rem;
}
.logo { height: 40px; width: auto; }
.nav-login { color: #fff; font-weight: 600; text-decoration: none; }

.hero-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 1.5rem 1.25rem 2rem;
  display: grid;
  gap: 1.5rem;
}
.badges { display: flex; gap: .4rem; }
.badges img { width: 64px; height: 64px; object-fit: contain; }
.hero h1 { font-size: clamp(2rem, 5vw, 3rem); font-weight: 800; }
.id-chip {
  display: inline-block;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 999px;
  padding: .2rem .75rem;
  font-size: .85rem;
}
.bio { font-size: 1.1rem; font-weight: 600; max-width: 40rem; }
.cta-row { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; margin-top: 1rem; }
.btn-gold {
  background: linear-gradient(180deg, #d4af67, #b8893a);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  padding: .7rem 1.1rem;
  border-radius: .5rem;
  display: inline-block;
  box-shadow: 0 6px 16px rgb(184 137 58 / 28%);
}
.btn-gold:hover { filter: brightness(1.05); }
.socials { display: flex; gap: .5rem; align-items: center; }
.socials a, .qr-btn {
  width: 42px; height: 42px;
  border-radius: 999px;
  background: #f5f5f4;
  color: var(--gold);
  display: grid; place-items: center;
  text-decoration: none;
  font-weight: 700;
  border: 0;
  cursor: pointer;
}
.socials svg { width: 22px; height: 22px; }
.hero-photo {
  width: 220px; height: 220px;
  object-fit: cover;
  border-radius: 999px;
  border: 3px solid var(--gold);
  box-shadow: 0 0 0 6px rgb(198 161 91 / 22%);
  margin: 0 auto;
}

.scroll-row {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding: .35rem .15rem 1rem;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: var(--gold) transparent;
}
.why-card, .product, .branch {
  flex: 0 0 260px;
  scroll-snap-align: start;
  border-radius: 1rem;
}

.lux,
.why-card,
.price-card,
.product,
blockquote,
.faq details,
.qr-card {
  background: linear-gradient(180deg, #fffdf8 0%, var(--cream) 100%);
  border: 1px solid var(--gold);
  box-shadow: var(--shadow);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.lux:hover,
.why-card:hover,
.price-card:hover,
.product:hover,
blockquote:hover,
.branch:hover,
.qr-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: var(--gold-hi);
}

.why-card {
  color: var(--ink);
  padding: 1.2rem 1.15rem 1.3rem;
  min-height: 210px;
}
.card-no {
  display: grid;
  place-items: center;
  width: 2.1rem;
  height: 2.1rem;
  margin-bottom: .75rem;
  border: 1px solid var(--gold);
  border-radius: 999px;
  color: var(--gold-deep);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .06em;
}
.why-card h3 { font-size: 1.05rem; color: var(--ink); }
.why-card p { margin: 0; font-size: .92rem; color: var(--muted); }

.price-grid {
  display: grid;
  gap: 1rem;
  margin-top: 1rem;
}
.price-card {
  color: var(--ink);
  border-radius: 1rem;
  padding: 1.3rem 1.35rem 1.4rem;
  position: relative;
  overflow: hidden;
}
.price-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, var(--gold-deep), var(--gold-hi), var(--gold-deep));
}
.price-kicker {
  margin: 0 0 .35rem;
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold-deep);
  font-weight: 700;
}
.price-label { margin: 0; font-weight: 700; }
.price-label span { font-weight: 400; font-size: .85rem; color: var(--muted); }
.price-value { font-size: 2.05rem; font-weight: 800; margin: .45rem 0 0; color: var(--gold-deep); }
.price-value small { font-size: 1rem; font-weight: 500; color: var(--muted); }
.price-note { text-align: center; color: var(--gold-deep); min-height: 1.4em; }

.product {
  text-decoration: none;
  color: var(--muted);
  overflow: hidden;
}
.product img { aspect-ratio: 1; object-fit: cover; width: 100%; background: #fff; }
.product span {
  display: block;
  padding: .85rem .9rem 1rem;
  font-weight: 700;
  font-size: .92rem;
  color: var(--ink);
  border-top: 1px solid rgb(198 161 91 / 35%);
}

.about-grid { display: grid; gap: 1.5rem; }
.about p { color: var(--muted); text-align: justify; }
.about-photos { display: grid; gap: .75rem; }
.about-photos img {
  border-radius: 1rem;
  object-fit: cover;
  max-height: 220px;
  width: 100%;
  border: 1px solid var(--gold);
  box-shadow: var(--shadow);
}

.branch {
  min-height: 230px;
  background-size: cover;
  background-position: center;
  color: #fff;
  padding: 1.15rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  border: 1px solid var(--gold);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}
.branch::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 4px;
  background: linear-gradient(90deg, var(--gold-deep), var(--gold-hi), var(--gold-deep));
}
.branch h3 { text-shadow: 0 1px 8px rgb(0 0 0 / 45%); }
.branch p { margin: 0; font-size: .9rem; text-shadow: 0 1px 8px rgb(0 0 0 / 45%); }
/* Kad cawangan tanpa foto rasmi — guna latar emas/coklat gelap (bukan gambar palsu) */
.branch-shahalam { background-image: linear-gradient(rgba(0,0,0,.35), rgba(0,0,0,.35)), url("https://reseller.meem.com.my/storage/1775/00fac10a-95a7-42b3-9b56-6f77ef6f7c42.jpg"); }
.branch-bangi { background-image: linear-gradient(rgba(0,0,0,.35), rgba(0,0,0,.35)), url("https://reseller.meem.com.my/storage/1791/e870ebf1-2a6a-4727-9b62-058dbd03182e.jpeg"); }
.branch-alorsetar { background-image: linear-gradient(rgba(0,0,0,.35), rgba(0,0,0,.35)), url("https://reseller.meem.com.my/storage/1781/273269af-5223-4574-aeac-a1b524536b2f.jpg"); }
.branch-jitra { background-image: linear-gradient(rgba(0,0,0,.35), rgba(0,0,0,.35)), url("https://reseller.meem.com.my/storage/1799/73ae34eb-f390-457a-9e5d-7238eb56831e.jpeg"); }
.branch-jb { background-image: linear-gradient(rgba(0,0,0,.35), rgba(0,0,0,.35)), url("https://reseller.meem.com.my/storage/1922/518477926_10238123522616498_5105495062113261046_n.jpg"); }
.branch-bertam { background-image: linear-gradient(rgba(0,0,0,.35), rgba(0,0,0,.35)), url("https://reseller.meem.com.my/storage/1920/7616aedd-2edb-457d-bac4-32f41f950616.jpg"); }
.branch-kuantan { background-image: linear-gradient(rgba(0,0,0,.35), rgba(0,0,0,.35)), url("https://reseller.meem.com.my/storage/3106/c1810868-eeb2-49e9-a7c6-899000fe5806.jpg"); }
.branch-plain {
  background-image: linear-gradient(150deg, #8a6a2f 0%, #4a3616 45%, #1c1410 100%);
}
.branch-plain::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 80% at 85% 10%, rgba(228, 201, 138, 0.35), transparent 60%);
  pointer-events: none;
}
.branch-plain > * { position: relative; z-index: 1; }
.branch-plain h3::after {
  content: "Baru";
  display: inline-block;
  margin-left: .5rem;
  padding: .1rem .45rem;
  border-radius: 999px;
  background: var(--gold-hi);
  color: #2a2418;
  font-size: .62rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-shadow: none;
  vertical-align: middle;
}

.shariah {
  background: #1c1917;
  color: #e7e5e4;
  border-radius: 1.25rem;
  padding: 1.5rem;
  display: grid;
  gap: 1.25rem;
  border: 1px solid var(--gold);
  box-shadow: var(--shadow);
}
.shariah figure { margin: 0; text-align: center; }
.shariah figure img { width: 120px; margin: 0 auto .6rem; }
.dr-photo { max-height: 280px; object-fit: contain; margin: 0 auto; }

.partners {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  align-items: center;
  background: linear-gradient(180deg, #fffdf8 0%, var(--cream) 100%);
  border: 1px solid var(--gold);
  border-radius: 1rem;
  box-shadow: var(--shadow);
  padding: 1.2rem .8rem;
}
.partners img { max-height: 42px; margin: 0 auto; object-fit: contain; }

.quotes { display: grid; gap: 1rem; }
blockquote {
  margin: 0;
  padding: 1.15rem 1.2rem 1.25rem;
  border-radius: 1rem;
  position: relative;
}
.quote-mark {
  display: block;
  font-size: 2.4rem;
  line-height: 1;
  color: var(--gold);
  font-weight: 700;
  margin-bottom: .15rem;
}
blockquote p { margin: 0 0 .7rem; color: var(--ink); }
blockquote footer {
  color: var(--gold-deep);
  font-size: .9rem;
  font-weight: 700;
  border-top: 1px solid rgb(198 161 91 / 35%);
  padding-top: .65rem;
}

.faq details {
  padding: .85rem 1rem;
  border-radius: .85rem;
  margin-bottom: .65rem;
}
.faq summary { cursor: pointer; font-weight: 700; color: var(--ink); }
.faq details p { color: var(--muted); }

.cta-end { padding: 1rem 1rem 3rem; }
.cta-box {
  max-width: 1120px;
  margin: 0 auto;
  background: #1c1917;
  color: #e7e5e4;
  border-radius: 1.25rem;
  padding: 1.5rem;
  display: grid;
  gap: 1.25rem;
  border: 1px solid var(--gold);
  box-shadow: var(--shadow);
}
.cta-box .socials a { width: auto; padding: 0 .8rem; height: 42px; }
.qr-card {
  color: var(--ink);
  text-decoration: none;
  border-radius: 1rem;
  padding: .7rem;
  text-align: center;
  justify-self: center;
  font-weight: 700;
}
.qr-card img { margin: 0 auto .4rem; }

.site-footer {
  max-width: 1120px;
  margin: 0 auto;
  padding: 1.5rem 1rem 3rem;
  color: var(--muted);
  text-align: center;
  border-top: 1px solid rgb(198 161 91 / 35%);
}
.foot-social {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.15rem;
  margin-bottom: 1.1rem;
}
.foot-social a {
  color: var(--gold-deep);
  width: 2.4rem;
  height: 2.4rem;
  border: 1px solid var(--gold);
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, #fffdf8, var(--cream));
  box-shadow: var(--shadow);
  transition: transform .2s ease, color .2s ease, border-color .2s ease;
}
.foot-social a:hover {
  transform: translateY(-3px);
  color: var(--gold);
  border-color: var(--gold-hi);
}
.foot-social svg { width: 1.2rem; height: 1.2rem; }
.tiny { font-size: .8rem; }

dialog {
  border: 1px solid var(--gold);
  border-radius: 1rem;
  padding: 0;
  background: var(--card);
}
dialog::backdrop { background: rgb(0 0 0 / 55%); }
.qr-modal-inner { padding: 1.2rem; text-align: center; }
.qr-modal-inner img { margin: 0 auto; }
.qr-modal-inner button {
  margin-top: .5rem;
  background: #fff;
  border: 1px solid #d6d3d1;
  border-radius: .5rem;
  padding: .5rem 1rem;
  font-weight: 600;
  cursor: pointer;
}

@media (min-width: 800px) {
  .hero-inner { grid-template-columns: 1.4fr .8fr; align-items: center; }
  .hero-photo { width: 260px; height: 260px; margin-left: auto; }
  .price-grid { grid-template-columns: 1fr 1fr; }
  .about-grid { grid-template-columns: 1fr 1fr; align-items: start; }
  .about-photos { grid-template-columns: 1fr 1fr; }
  .shariah { grid-template-columns: 1.2fr .8fr 1fr; align-items: center; }
  .partners { grid-template-columns: repeat(7, 1fr); }
  .quotes { grid-template-columns: 1fr 1fr; }
  .cta-box { grid-template-columns: 1.4fr auto; align-items: center; }
}
