@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@600&family=Noto+Sans:ital,wght@0,400;0,600;0,700;1,400;1,700&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Real brand tokens from the live site's --accent-hsl / --darkAccent-hsl / --lightAccent-hsl custom properties */
  --purple:       #524583; /* --safeDarkAccent-hsl / --accent-hsl: 252.58,31%,39.22% */
  --purple-dark:  #1E1736; /* --darkAccent-hsl: 253.55,40.26%,15.1% */
  --purple-mid:   #6B63C4;
  --purple-light: #EEEDFE;
  --orange:       #FF8500; /* --tertiaryButtonBackgroundColor hsla(31.29,100%,50%,1) — used for "Digital Niaga" brand mentions & pillar titles */
  --orange-light: #FEEFE8; /* --lightAccent-hsl: 19.09,91.67%,95.29% */
  --green:        #16A34A;
  --green-light:  #DCFCE7;
  --gray-50:      #F9F8F7;
  --gray-100:     #F0EEE9;
  --gray-200:     #E2DFD8;
  --gray-400:     #A09D94;
  --gray-600:     #6B6860;
  --gray-700:     #333333; /* literal #333333 body-copy override seen throughout the raw HTML */
  --gray-900:     #1A1916;
  --white:        #FFFFFF;
  --radius:       12px;
  --radius-sm:    8px;
  --radius-lg:    16px;
  --shadow-sm:    0 2px 8px rgba(0,0,0,0.06);
  --shadow-md:    0 4px 20px rgba(0,0,0,0.08);
  --shadow-lg:    0 8px 40px rgba(0,0,0,0.12);
}

html { scroll-behavior: smooth; }
body {
  font-family: 'Noto Sans', sans-serif;
  color: var(--gray-700);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, .heading-font {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
}

/* ── NAVIGATION ── */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: var(--white);
  box-shadow: 0px 12px 12px 0px rgba(0,0,0,0.06);
  padding: 0 48px;
  display: flex; align-items: center; gap: 48px;
  height: 65px;
}
/* real header-logo-height tweak from the live site's tweakJSON is 36px */
.nav-brand { display: flex; align-items: center; gap: 14px; text-decoration: none; flex-shrink: 0; }
.nav-brand img { height: 36px; width: auto; }
.nav-logo-text { font-size: 22px; font-weight: 800; letter-spacing: -0.5px; color: var(--purple); line-height: 1; }
.nav-logo-text span { color: var(--orange); }
.nav-powered {
  display: flex; align-items: center; gap: 7px;
  padding-left: 14px; border-left: 1px solid var(--gray-200);
  font-size: 11px; font-weight: 500; color: var(--gray-400);
  letter-spacing: 0.02em;
}
.nav-powered strong { color: var(--purple); font-weight: 700; }
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a {
  text-decoration: none; font-size: 15px; font-weight: 500;
  color: var(--gray-900); padding: 4px 0;
  border-bottom: 1.5px solid transparent;
  transition: all 0.15s;
}
.nav-links a:hover { color: var(--purple); }
.nav-links a.active { color: var(--gray-900); font-weight: 500; border-bottom-color: var(--gray-900); }
.nav-cta {
  background: var(--purple) !important; color: var(--white) !important;
  padding: 12px 24px !important; border-radius: var(--radius-sm) !important;
  font-weight: 700 !important; margin-left: auto; border: none !important;
  box-shadow: none !important; text-decoration: none !important;
  transition: all 0.2s !important;
}
.nav-cta:hover { background: var(--purple-dark) !important; }
.nav-mobile-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-mobile-toggle span { display: block; width: 22px; height: 2px; background: var(--gray-900); margin: 4px 0; border-radius: 2px; transition: all 0.3s; }

/* ── BUTTONS ── */
/* Real site: --primary-button-font-font-family: "Noto Sans", weight 600, border-radius 7.2px */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 26px; border-radius: 8px;
  font-size: 15px; font-weight: 600; text-decoration: none;
  transition: all 0.2s; cursor: pointer; border: none;
  font-family: 'Noto Sans', sans-serif;
}
.btn-primary { background: var(--purple); color: var(--white); box-shadow: 0 4px 20px rgba(74,63,165,0.25); }
.btn-primary:hover { background: var(--purple-dark); transform: translateY(-1px); box-shadow: 0 6px 24px rgba(74,63,165,0.35); }
.btn-secondary { background: var(--white); color: var(--gray-900); border: 1.5px solid var(--gray-200); }
.btn-secondary:hover { border-color: var(--purple); color: var(--purple); transform: translateY(-1px); }
.btn-white { background: var(--white); color: var(--gray-900); }
.btn-white:hover { background: var(--gray-100); transform: translateY(-1px); }
.btn-wa { background: var(--white); color: var(--purple); border: 1.5px solid var(--purple); }
.btn-wa:hover { background: var(--purple-light); transform: translateY(-1px); }
.btn-outline-white { background: transparent; color: var(--white); border: 1.5px solid rgba(255,255,255,0.4); }
.btn-outline-white:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.7); }
.btn-lg { padding: 16px 32px; font-size: 16px; }
.btn-sm { padding: 9px 18px; font-size: 13px; }

/* ── TYPOGRAPHY ── */
/* Real site highlights headings/phrases with the plain accent-purple color (sqsrte-text-color--accent),
   not an italic serif face — kept the .serif classname for template compatibility but restyled it. */
.serif { font-family: 'Poppins', sans-serif; font-style: normal; font-weight: 600; color: var(--purple); }
.label-tag {
  font-size: 11px; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--orange); margin-bottom: 12px; display: block;
}
.section-title {
  font-size: clamp(28px, 3.5vw, 42px); font-weight: 600;
  letter-spacing: -1px; line-height: 1.12; color: var(--gray-900);
  margin-bottom: 14px;
}
.section-title .serif { color: var(--purple); }
.section-sub {
  font-size: 17px; color: var(--gray-600); max-width: 560px;
  margin-bottom: 48px; line-height: 1.7;
}

/* ── LAYOUT ── */
.container { max-width: 960px; margin: 0 auto; }
section { padding: 88px 48px; }
.section-bg-gray { background: var(--gray-50); }
/* Real site's "light-bold" section-theme sections (4 pillars, financing options) use the
   --lightAccent-hsl tint (#FEEFE8), not plain gray. */
.section-bg-tint { background: var(--orange-light); }
.section-bg-purple { background: var(--purple); }
.section-bg-dark { background: var(--purple-dark); }

/* ── BADGES ── */
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11px; font-weight: 700; padding: 4px 11px;
  border-radius: 100px; text-transform: uppercase; letter-spacing: 0.06em;
  width: fit-content;
}
.badge-orange { background: var(--orange-light); color: var(--orange); }
.badge-purple { background: var(--purple-light); color: var(--purple); }
.badge-green  { background: var(--green-light); color: var(--green); }
.badge-gray   { background: var(--gray-100); color: var(--gray-600); }

/* ── CARDS ── */
.card {
  background: var(--white); border: 1.5px solid var(--gray-200);
  border-radius: var(--radius); padding: 28px 24px;
  transition: all 0.2s;
}
.card:hover { border-color: var(--purple); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.card-dark {
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.14);
  border-radius: var(--radius); padding: 28px 24px;
}

/* ── TRUST BAR ── */
.trust-bar {
  background: var(--white); border-top: 1px solid var(--gray-200);
  border-bottom: 1px solid var(--gray-200); padding: 18px 48px;
}
.trust-bar-inner { max-width: 960px; margin: 0 auto; display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.trust-bar-label { font-size: 11px; font-weight: 700; color: var(--gray-400); text-transform: uppercase; letter-spacing: 0.08em; white-space: nowrap; }
.trust-pills { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.trust-pill {
  display: flex; align-items: center; gap: 6px;
  background: var(--gray-50); border: 1px solid var(--gray-200);
  padding: 5px 13px; border-radius: 100px;
  font-size: 12px; font-weight: 600; color: var(--gray-600);
}
.trust-pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--purple); flex-shrink: 0; }
.trust-pill .dot-orange { background: var(--orange); }
.trust-pill .dot-green  { background: var(--green); }

/* ── FOOTER (real site: white background, purple/black text) ── */
.footer {
  background: var(--white); padding: 56px 48px 32px; border-top: 1px solid var(--gray-200);
}
.footer-top {
  display: grid; grid-template-columns: 1fr 1fr auto; gap: 48px;
  margin-bottom: 40px; max-width: 1100px; margin-left: auto; margin-right: auto;
}
.footer-col-title { font-size: 15px; font-weight: 700; color: var(--purple); margin-bottom: 16px; }
.footer-col a { display: block; font-size: 14px; color: var(--gray-900); text-decoration: none; margin-bottom: 12px; transition: color 0.15s; }
.footer-col a:hover { color: var(--purple); }
.footer-social { text-align: right; }
.footer-social-label { display: block; font-size: 14px; font-weight: 700; color: var(--gray-900); margin-bottom: 14px; }
.footer-social-icons { display: flex; gap: 10px; justify-content: flex-end; }
.footer-social-icons a {
  width: 32px; height: 32px; border-radius: 50%; background: var(--gray-900); color: var(--white);
  display: flex; align-items: center; justify-content: center; transition: background 0.15s;
}
.footer-social-icons a:hover { background: var(--purple); }
.footer-bottom {
  max-width: 1100px; margin: 0 auto;
  border-top: 1px solid var(--gray-200); padding-top: 24px;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px;
}
.footer-logo img { height: 40px; width: auto; display: block; }
.footer-address { font-size: 13px; color: var(--gray-600); line-height: 1.7; text-align: right; }
.footer-address strong { color: var(--gray-900); }
@media(max-width:700px){
  .footer-top { grid-template-columns: 1fr; }
  .footer-social { text-align: left; }
  .footer-social-icons { justify-content: flex-start; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .footer-address { text-align: left; }
}
.footer-legal a:hover { color: rgba(255,255,255,0.6); }

/* ── PAGE HERO (inner pages) ── */
/* Shared height standard for every inner-page hero (bank pages, about, contact, faq,
   registration, english variants) so nav-to-content spacing is consistent site-wide.
   The homepage hero is taller (560px, set locally in index.njk) since it's the only
   full first-impression banner; every other page hero uses this shorter standard. */
.hero-standard {
  min-height: 427px;
  display: flex; align-items: center; justify-content: center;
  padding: 64px 24px;
}
@media(max-width:900px){
  .hero-standard { padding: 48px 24px; }
}

/* ── UTILITIES ── */
.text-purple { color: var(--purple); }
.text-orange { color: var(--orange); }
.text-white  { color: var(--white); }
.text-muted  { color: var(--gray-600); }
.fw-800 { font-weight: 800; }
.mt-4  { margin-top: 16px; }
.mt-6  { margin-top: 24px; }
.mt-8  { margin-top: 32px; }
.mb-4  { margin-bottom: 16px; }
.mb-6  { margin-bottom: 24px; }
.divider { height: 1px; background: var(--gray-200); }

/* ── GRID HELPERS ── */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.grid-auto { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .nav { padding: 0 24px; }
  .nav-links { display: none; }
  .nav-links.open { display: flex; flex-direction: column; position: fixed; top: 76px; left: 0; right: 0; background: var(--white); border-bottom: 1px solid var(--gray-200); padding: 16px 24px; gap: 4px; box-shadow: var(--shadow-md); }
  .nav-mobile-toggle { display: block; }
  section { padding: 60px 24px; }
  .page-hero { padding: 52px 24px 48px; }
  .trust-bar { padding: 16px 24px; }
  .footer { padding: 40px 24px 24px; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 32px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 580px) {
  .grid-2, .grid-3, .grid-4, .grid-auto { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .btn-lg { padding: 14px 24px; font-size: 15px; }
}

/* ── BANK LOGO LOCKUP (hero) ── */
.bank-logo-lockup {
  display: flex; align-items: center; gap: 18px; margin-bottom: 28px; flex-wrap: wrap;
}
.bank-logo-lockup img { height: 48px; width: auto; }
.bank-logo-lockup .lockup-x { font-size: 20px; color: var(--gray-400); font-weight: 300; }

/* ── SCHEME DETAILS / SPEC LIST ── */
.spec-list {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 0;
  border: 1.5px solid var(--gray-200); border-radius: var(--radius); overflow: hidden;
}
.spec-item {
  padding: 20px 24px; border-bottom: 1px solid var(--gray-200); border-right: 1px solid var(--gray-200);
}
.spec-item:nth-child(2n) { border-right: none; }
.spec-label { font-size: 11px; font-weight: 700; color: var(--gray-400); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 6px; }
.spec-value { font-size: 16px; font-weight: 700; color: var(--gray-900); }

/* ── PRODUCT SCHEME CARD (bank product listings) ── */
.scheme-card { display: flex; flex-direction: column; }
.scheme-name { font-size: 17px; font-weight: 700; margin-bottom: 10px; color: var(--gray-900); }
.scheme-desc { font-size: 14px; color: var(--gray-600); line-height: 1.65; flex: 1; margin-bottom: 18px; }
.scheme-apply { font-size: 14px; font-weight: 700; color: var(--purple); text-decoration: none; display: inline-flex; align-items: center; gap: 4px; }
.scheme-apply:hover { gap: 8px; }

/* ── ACCORDION (real site uses collapsible accordion blocks for spec/eligibility lists) ── */
.accordion { border-top: 1px solid var(--gray-200); }
.accordion-row { border-bottom: 1px solid var(--gray-200); }
.accordion-row summary {
  padding: 18px 4px; font-size: 15px; font-weight: 700; color: var(--gray-900);
  cursor: pointer; list-style: none; display: flex; justify-content: space-between;
  align-items: center; gap: 16px;
}
.accordion-row summary::-webkit-details-marker { display: none; }
.accordion-row summary::after {
  content: '+'; font-size: 20px; font-weight: 400; color: var(--gray-400); flex-shrink: 0;
  transition: transform 0.2s;
}
.accordion-row[open] summary::after { content: '−'; }
.accordion-row .accordion-body {
  padding: 0 4px 20px; font-size: 14px; color: var(--gray-600); line-height: 1.75;
}
.accordion-row .accordion-body ul { padding-left: 20px; margin-top: 8px; }
.accordion-row .accordion-body p + p { margin-top: 10px; }

/* ── ELIGIBILITY LIST ── */
.elig-list { list-style: none; }
.elig-list li {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 14px; color: var(--gray-600); line-height: 1.65; margin-bottom: 12px;
}
.elig-list li::before { content: '✓'; color: var(--green); font-weight: 700; flex-shrink: 0; }

@media (max-width: 580px) {
  .spec-list { grid-template-columns: 1fr; }
  .spec-item { border-right: none !important; }
}

/* ── NAV DROPDOWN (Rakan Niaga) ── */
.nav-dropdown { position: relative; display: flex; align-items: center; }
.nav-dropdown-menu {
  display: none; position: absolute; top: 100%; left: 0;
  background: var(--white); border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm); box-shadow: var(--shadow-md);
  padding: 8px; min-width: 200px; z-index: 200;
}
.nav-dropdown:hover .nav-dropdown-menu { display: flex; flex-direction: column; }
.nav-dropdown-menu a {
  padding: 9px 12px; border-radius: 6px; font-size: 14px; font-weight: 500;
  color: var(--gray-600); text-decoration: none; white-space: nowrap;
}
.nav-dropdown-menu a:hover { background: var(--purple-light); color: var(--purple); }
@media (max-width: 900px) {
  .nav-dropdown { flex-direction: column; align-items: flex-start; width: 100%; }
  .nav-dropdown-menu {
    display: flex; flex-direction: column; position: static;
    border: none; box-shadow: none; padding: 0 0 0 16px; background: transparent;
  }
}
