: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%; height: auto; 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; }

.topbar {
  background: #2a1407;
  color: #fff;
}
.topbar-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: .85rem 1.25rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .75rem 1rem;
}
.page-nav {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
}
.page-nav a {
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: .92rem;
  padding: .35rem .7rem;
  border-radius: 999px;
}
.page-nav a:hover { background: rgb(255 255 255 / 10%); color: var(--gold-hi); }
.top-actions {
  margin-left: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .6rem;
}
.logo { height: 48px; width: auto; }
.top-avatar {
  width: 52px;
  height: 52px;
  border-radius: 999px;
  object-fit: cover;
  object-position: center top;
  border: 2px solid #d98c1a;
  flex: 0 0 52px;
}
.nav-login {
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  background: #d98c1a;
  border-radius: .4rem;
  padding: .45rem .85rem;
}
.nav-login:hover { filter: brightness(1.06); }

.hero {
  background-image: url("../images/opt/hero-mobile.jpg");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: right center;
  background-color: #fff3dc;
  color: #2a1609;
  min-height: 620px;
  display: flex;
  align-items: center;
}

.hero-inner {
  width: min(1120px, 100%);
  margin: 0 auto;
  padding: 2rem 1.25rem;
}
.hero-copy { max-width: 34rem; }
.badges { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1rem; }
.badge { width: 118px; text-align: center; }
.badge img { width: 48px; height: 48px; object-fit: contain; object-position: center; margin: 0 auto; mix-blend-mode: multiply; }
.badge span { display: block; margin-top: .35rem; font-size: .75rem; font-weight: 800; line-height: 1.25; }
.hero h1 { font-size: clamp(2rem, 5vw, 3rem); font-weight: 800; color: #2a1609; }
.hero h1 span { display: block; color: #d98c1a; }
.kicker {
  display: inline-block;
  margin: 0 auto .4rem;
  border: 1px solid #d98c1a;
  border-radius: 999px;
  padding: .35rem 1rem;
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #8a5a0c;
}
.section > .kicker { display: table; }
.id-chip {
  display: inline-block;
  margin-top: .85rem;
  background: rgb(255 255 255 / 72%);
  border: 1px solid #e9c179;
  border-radius: 999px;
  padding: .25rem .8rem;
  font-size: .85rem;
  font-weight: 700;
  color: #2a1609;
}
.sunnah {
  display: inline-block;
  max-width: 40rem;
  margin: 0 0 .8rem;
  border: 1px solid #e9c179;
  background: rgb(255 255 255 / 70%);
  border-radius: 999px;
  padding: .35rem .85rem;
  font-size: .85rem;
  font-weight: 600;
  color: #8a5a0c;
}
.subhead { margin: .2rem 0 0; font-size: clamp(1.2rem, 2.5vw, 1.7rem); font-weight: 800; }
.lead { font-size: 1.05rem; max-width: 38rem; color: #5b4637; }
.btn-line {
  background: #fff;
  color: #8a5a0c;
  text-decoration: none;
  font-weight: 800;
  padding: .7rem 1.1rem;
  border-radius: .5rem;
  border: 1px solid #d98c1a;
  display: inline-block;
}
.btn-line:hover { background: #fff7ed; }
.partner-tag {
  margin: .55rem 0 0;
  text-align: center;
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #8a5a0c;
}
.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;
  overscroll-behavior-x: contain;
  padding: .35rem .15rem 1rem;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: var(--gold) transparent;
}
.section,
.cta-end {
  content-visibility: auto;
  contain-intrinsic-size: auto 680px;
}
.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: contain;
  object-position: center;
  width: 100%;
  height: auto;
  background: #fffaf4;
  padding: .75rem;
}
.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%); }
/* Foto cawangan dari halaman reseller rasmi */
.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-kotabharu { background-image: linear-gradient(rgba(0,0,0,.35), rgba(0,0,0,.35)), url("https://reseller.meem.com.my/storage/4281/WhatsApp-Image-2026-08-28-at-10.07.08-PM.jpeg"); }

.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;
}

.proof-grid, .mistake-grid, .app-grid {
  display: grid;
  gap: 1rem;
  margin-top: 1.25rem;
}
.proof-card, .mistake {
  background: linear-gradient(180deg, #fffdf8 0%, var(--cream) 100%);
  border: 1px solid var(--gold);
  border-radius: 1rem;
  box-shadow: var(--shadow);
  padding: 1.1rem;
}
.proof-card h3 { color: var(--ink); font-size: 1.05rem; }
.proof-card h3 span { color: #8a5a0c; font-size: .95rem; }
.app-copy h2 span { color: #8a5a0c; font-size: inherit; }
.proof-card p, .mistake p { margin: .45rem 0 0; color: var(--muted); font-size: .92rem; }
.cert-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 96px;
  gap: .7rem;
  align-items: start;
}
.cert-copy .text-btn { margin-top: .8rem; }
.cert-fig { margin: 0; text-align: center; }
.cert-fig figcaption {
  margin-top: .35rem;
  font-size: .68rem;
  line-height: 1.25;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.cert-thumb {
  display: block;
  width: 100%;
  max-width: 118px;
  margin: 0 auto;
  padding: .15rem;
  border: 1px solid #ddd6cc;
  border-radius: .35rem;
  background: #fff;
  cursor: pointer;
}
.cert-thumb img {
  width: 100%;
  height: 112px;
  aspect-ratio: auto;
  object-fit: cover;
  object-position: top center;
  padding: 0;
  background: #fff;
}
.cert-copy p {
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-split {
  display: grid;
  gap: .8rem;
  align-items: center;
}
.dinar-shot {
  width: min(180px, 100%);
  margin: 0 auto;
  object-fit: contain;
}
.product-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}
.product-grid .product { flex: none; width: auto; min-width: 0; }
.cert-actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .8rem; }
.cert-actions button, .text-btn {
  font: inherit;
  font-size: .8rem;
  font-weight: 800;
  border-radius: 999px;
  padding: .45rem .8rem;
  cursor: pointer;
  border: 1px solid #d98c1a;
  background: #fff;
  color: #8a5a0c;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}
.cert-actions .btn-gold { border: 0; font-size: .8rem; padding: .45rem .8rem; }
.check-list { margin: .7rem 0 0; padding: 0; list-style: none; }
.check-list li { margin: .35rem 0; color: var(--muted); }
.check-list li::before { content: "✓ "; color: #d98c1a; font-weight: 800; }
.remember {
  margin-top: 1rem;
  border: 1px solid var(--gold);
  border-radius: 1rem;
  padding: 1rem 1.15rem;
  background: linear-gradient(110deg, #fff9ef, #fff 55%, #fff2d8);
  text-align: center;
}
.remember strong { display: block; color: #8a5a0c; font-size: 1.15rem; }
.remember em { color: var(--muted); }
.app-band { overflow: visible; }
.app-phone {
  width: min(220px, 100%);
  height: auto;
  max-height: 420px;
  margin: 0 auto;
  object-fit: contain;
  object-position: center bottom;
  display: block;
}
.app-copy ul { margin: .6rem 0 0; padding-left: 1.1rem; }
.app-copy li { margin: .35rem 0; font-weight: 600; }
.app-store { text-align: center; }
.app-store p { font-weight: 800; font-size: 1.25rem; margin-top: 0; }
.mistake { display: flex; gap: .9rem; align-items: flex-start; }
.mistake img { width: 88px; height: 88px; object-fit: contain; object-position: center; flex: 0 0 88px; }
.mistake h3 { margin: 0; font-size: .95rem; color: var(--ink); }
.quotes-scroll blockquote { flex: 0 0 300px; text-align: center; }
.avatar {
  width: 64px;
  height: 64px;
  border-radius: 999px;
  object-fit: cover;
  margin: 0 auto .55rem;
  border: 2px solid var(--gold);
}
#cert-modal { max-width: min(920px, 96vw); width: 100%; }
#cert-modal img { max-height: 78vh; margin: 0 auto; }
.cert-modal-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  padding: .7rem .9rem;
  background: #17120e;
  color: #fff;
}
.cert-modal-bar button {
  background: transparent;
  color: #fff;
  border: 0;
  font-size: 1.4rem;
  cursor: pointer;
}

@media (max-width: 799px) {
  .topbar-inner {
    padding: .7rem .85rem .8rem;
    gap: .55rem .7rem;
  }
  .logo { height: 40px; }
  .top-avatar { width: 46px; height: 46px; flex-basis: 46px; }
  .page-nav,
  .top-actions { flex: 1 0 100%; margin-left: 0; }
  .page-nav {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .3rem;
  }
  .page-nav a {
    text-align: center;
    font-size: .78rem;
    line-height: 1.2;
    padding: .4rem .2rem;
    background: rgb(255 255 255 / 8%);
  }
  .top-actions { justify-content: space-between; }
  .nav-login { padding: .5rem .85rem; }
  .socials { gap: .35rem; }
  .socials a, .qr-btn { width: 40px; height: 40px; }

  .hero {
    min-height: 0;
    background-image: none;
    background-color: #fff8ee;
    align-items: flex-start;
  }
  .hero-inner { padding: 1.1rem .95rem 1.35rem; }
  .hero-copy { max-width: none; }
  .hero h1 { font-size: 1.85rem; }
  .subhead { font-size: 1.2rem; }
  .sunnah {
    display: block;
    max-width: none;
    border-radius: .85rem;
    line-height: 1.45;
    font-size: .82rem;
    padding: .55rem .75rem;
  }
  .lead { font-size: .98rem; max-width: none; }
  .id-chip {
    display: block;
    width: fit-content;
    max-width: calc(100% - 4.2rem);
    border-radius: .7rem;
    line-height: 1.35;
    font-size: .8rem;
  }
  .badge { width: 96px; }
  .hero-copy::after {
    content: "";
    display: block;
    height: 132px;
    margin-top: 1rem;
    background: url("../images/opt/hero-mobile.jpg") right center / cover no-repeat;
    border-radius: .9rem;
  }
}

@media (prefers-reduced-data: reduce) {
  .hero { background-image: none; }
}

@media (min-width: 800px) {
  .hero {
    background-image: url("../images/opt/hero-desktop.jpg");
    background-position: right center;
  }
  .hero-copy { max-width: 36rem; }
  .price-grid { grid-template-columns: 1fr 1fr; }
  .proof-grid { grid-template-columns: repeat(3, 1fr); }
  .cert-card { grid-template-columns: minmax(0, 1fr) 104px; }
  .product-split { grid-template-columns: minmax(0, 1fr) 160px; }
  .dinar-shot { width: 160px; margin: 0; }
  .app-grid { grid-template-columns: 200px minmax(0, 1fr) 220px; align-items: center; }
  .product-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .mistake-grid { grid-template-columns: 1fr 1fr; }
  .cta-box { grid-template-columns: 1.4fr auto; align-items: center; }
}
