/* ============================================================
   style-d2.css — BTM Amman Magelang · Desain D2 "Digital Modern Bank"
   Dimuat SETELAH style.css sehingga menimpa tampilan lama (cascade).
   Versi: 2.0.0 · 2026-08-23
   ============================================================ */

:root {
  --d2-blue: #1A56DB;
  --d2-blue-600: #1E40AF;
  --d2-blue-50: #EFF5FF;
  --d2-blue-100: #DBEAFE;
  --d2-ink: #111827;
  --d2-muted: #6B7280;
  --d2-bg: #FFFFFF;
  --d2-bg-soft: #F8FAFC;
  --d2-line: #E5E7EB;
  --d2-radius: 18px;
  --d2-shadow: 0 8px 30px rgba(17,24,39,.06);
  --d2-shadow-lg: 0 20px 48px rgba(26,86,219,.14);
}

.container { max-width: 1160px; margin: 0 auto; padding: 0 24px; display: block; background: transparent; border: 0; border-radius: 0; box-shadow: none; margin-top: 0; position: static; z-index: auto; overflow: visible; }

/* Netralkan efek .container dari style.css lama (aturan ".footer .wrap, .container"
   dkk membuat .container jadi grid/flex sendiri dan menjepit struktur D2) */
.hero .container { padding-top: 0; padding-bottom: 0; }
.stats .container { display: block; background: transparent; border: 0; box-shadow: none; margin-top: 0; }
.d2-section .container { display: block; }
footer.d2-footer .container { display: block; padding-top: 0; padding-bottom: 0; background: transparent; border: 0; border-radius: 0; box-shadow: none; margin-top: 0; position: static; z-index: auto; overflow: visible; }
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 48px; align-items: start; }
@media (max-width: 960px) { .contact-grid { grid-template-columns: 1fr; } }

/* ============ TOPBAR ============ */
.topbar { background: var(--d2-blue-600); color: rgba(255,255,255,.9); font-size: 13px; padding: 7px 0; }
.topbar .container { display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; background: transparent; border: 0; border-radius: 0; box-shadow: none; margin-top: 0; position: static; z-index: auto; overflow: visible; }
.topbar a { color: #fff; text-decoration: none; }
.topbar a:hover { opacity: .85; }
.topbar span { display: inline-flex; align-items: center; gap: 6px; }

/* ============ HEADER / NAV ============ */
header.site { background: rgba(255,255,255,.94); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--d2-line); position: sticky; top: 0; z-index: 100; }
header.site .container { display: flex; align-items: center; justify-content: space-between; gap: 24px; background: transparent; border: 0; border-radius: 0; box-shadow: none; margin-top: 0; position: static; z-index: auto; overflow: visible; }
.nav { display: flex; align-items: center; justify-content: space-between; padding: 13px 0; }
.logo { display: flex; align-items: center; }
.logo img { height: 44px; width: auto; display: block; }
.menu > ul { display: flex; gap: 22px; list-style: none; align-items: center; margin: 0; padding: 0; }
.menu li { position: relative; }
.menu li > a { text-decoration: none; color: var(--d2-ink); font-weight: 600; font-size: 14.5px; display: block; padding: 6px 0; }
.menu li > a:hover { color: var(--d2-blue); }
.menu .caret { font-size: 10px; margin-left: 3px; }

/* Dropdown 2 level (desktop) — opacity/visibility di-override dari CSS lama */
.menu .dropdown { display: none; position: absolute; top: 100%; left: 0; background: #fff; border: 1px solid var(--d2-line); border-radius: 14px; box-shadow: var(--d2-shadow-lg); padding: 10px; min-width: 220px; z-index: 200; opacity: 1; visibility: visible; transform: none; }
.menu li:hover > .dropdown, .menu li:focus-within > .dropdown, .menu li.open > .dropdown { display: block; }
.dropdown .has-sub { position: relative; }
.dropdown .has-sub > a { padding: 9px 12px; border-radius: 9px; font-weight: 600; display: block; text-decoration: none; color: var(--d2-ink); }
.dropdown .has-sub > a:hover { background: var(--d2-blue-50); color: var(--d2-blue); }
.dropdown .submenu { display: none; position: absolute; left: 100%; top: 0; background: #fff; border: 1px solid var(--d2-line); border-radius: 12px; box-shadow: var(--d2-shadow-lg); padding: 8px; min-width: 230px; z-index: 210; opacity: 1; visibility: visible; transform: none; }
.dropdown .has-sub:hover > .submenu, .dropdown .has-sub:focus-within > .submenu, .dropdown .has-sub.open > .submenu { display: block; }
.dropdown .submenu a { padding: 8px 12px; border-radius: 8px; font-size: 13.5px; font-weight: 500; display: block; text-decoration: none; color: var(--d2-ink); }
.dropdown .submenu a:hover { background: var(--d2-blue-50); color: var(--d2-blue); }

.nav-cta { display: flex; align-items: center; gap: 12px; }
.cta { background: var(--d2-blue); color: #fff !important; padding: 10px 22px; border-radius: 999px; font-weight: 700; font-size: 14px; box-shadow: 0 6px 18px rgba(26,86,219,.3); transition: .2s; }
.cta:hover { background: var(--d2-blue-600); transform: translateY(-1px); color: #fff !important; }
.hamburger { display: none; width: 44px; height: 44px; border: 1px solid var(--d2-line); border-radius: 10px; background: #fff; flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
.hamburger span { width: 20px; height: 2px; background: var(--d2-ink); border-radius: 2px; display: block; }

/* Mobile nav (<=960px) */
@media (max-width: 960px) {
  .menu { display: none; position: fixed; inset: 0; background: #fff; z-index: 300; overflow-y: auto; }
  body.nav-open .menu { display: block; }
  .menu > ul { flex-direction: column; align-items: stretch; gap: 2px; padding: 90px 28px 30px; }
  .menu li { width: 100%; }
  .menu li > a { padding: 13px 8px; font-size: 17px; border-bottom: 1px solid var(--d2-line); }
  .menu .dropdown { position: static; display: none; box-shadow: none; border: 0; padding: 0 0 0 16px; min-width: 0; background: transparent; }
  .menu li.open > .dropdown { display: block; }
  .dropdown .has-sub > a { padding: 12px 8px; font-size: 16px; }
  .dropdown .submenu { position: static; display: none; box-shadow: none; border: 0; padding: 0 0 0 16px; min-width: 0; background: transparent; }
  .dropdown .has-sub.open > .submenu { display: block; }
  .dropdown .submenu a { padding: 11px 8px; font-size: 15px; }
  body.nav-open { overflow: hidden; }
  body.nav-open .hamburger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  body.nav-open .hamburger span:nth-child(2) { opacity: 0; }
  body.nav-open .hamburger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .hamburger { display: flex; }
}

/* ============ HERO ============ */
.hero { background: linear-gradient(160deg, #EFF5FF 0%, #DBEAFE 55%, #F8FAFC 100%); padding: 84px 0 96px; position: relative; overflow: hidden; }
.hero .container { position: relative; z-index: 2; display: grid; grid-template-columns: 1.1fr .9fr; gap: 44px; align-items: center; background: transparent; border: 0; border-radius: 0; box-shadow: none; margin-top: 0; overflow: visible; }
.badge { display: inline-flex; align-items: center; gap: 7px; background: #fff; border: 1px solid var(--d2-blue-100); color: var(--d2-blue); font-size: 12.5px; font-weight: 700; padding: 7px 14px; border-radius: 999px; margin-bottom: 20px; box-shadow: 0 2px 8px rgba(26,86,219,.08); }
.hero h1 { font-size: 44px; font-weight: 800; line-height: 1.15; letter-spacing: -.5px; margin-bottom: 16px; font-family: inherit; color: var(--d2-ink); }
.hero h1 .grad { background: linear-gradient(90deg, var(--d2-blue), #3B82F6); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hero p.lead { font-size: 16.5px; color: var(--d2-muted); max-width: 500px; margin-bottom: 30px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.btn-primary { display: inline-block; background: var(--d2-blue); color: #fff; font-weight: 700; padding: 14px 26px; border-radius: 999px; text-decoration: none; font-size: 15px; box-shadow: 0 10px 24px rgba(26,86,219,.35); transition: .2s; }
.btn-primary:hover { background: var(--d2-blue-600); transform: translateY(-2px); color: #fff; }
.btn-secondary { display: inline-block; background: #fff; border: 1.5px solid var(--d2-line); color: var(--d2-ink); font-weight: 700; padding: 13px 24px; border-radius: 999px; text-decoration: none; font-size: 15px; transition: .2s; }
.btn-secondary:hover { border-color: var(--d2-blue); color: var(--d2-blue); }

.hero-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.hcard { background: #fff; border-radius: var(--d2-radius); padding: 20px; box-shadow: var(--d2-shadow); border: 1px solid #fff; transition: .2s; }
.hcard:hover { box-shadow: var(--d2-shadow-lg); transform: translateY(-3px); }
.hcard .ic { width: 40px; height: 40px; border-radius: 12px; background: var(--d2-blue-50); display: grid; place-items: center; font-size: 19px; margin-bottom: 12px; }
.hcard b { display: block; font-size: 15.5px; margin-bottom: 3px; color: var(--d2-ink); }
.hcard span { font-size: 12.5px; color: var(--d2-muted); }

/* ============ STATS ============ */
.stats { margin-top: -34px; position: relative; z-index: 5; background: transparent; }
.stats .card { background: #fff; border-radius: 20px; box-shadow: var(--d2-shadow-lg); display: grid; grid-template-columns: repeat(3, 1fr); overflow: hidden; }
.stat { padding: 26px 20px; text-align: center; }
.stat + .stat { border-left: 1px solid var(--d2-line); }
.stat b { display: block; font-size: 34px; font-weight: 800; color: var(--d2-blue); line-height: 1.1; }
.stat b em, .stat b small { font-style: normal; font-size: 20px; }
.stat span { color: var(--d2-muted); font-size: 13px; font-weight: 600; }

/* ============ SECTION ============ */
.d2-section { padding: 84px 0; }
.sec-head { text-align: center; max-width: 620px; margin: 0 auto 48px; }
.sec-head .tag { display: inline-block; background: var(--d2-blue-50); color: var(--d2-blue); font-weight: 700; font-size: 12px; letter-spacing: 1.8px; text-transform: uppercase; padding: 6px 14px; border-radius: 999px; margin-bottom: 14px; }
.sec-head h2 { font-size: 34px; font-weight: 800; letter-spacing: -.5px; line-height: 1.2; margin-bottom: 12px; font-family: inherit; color: var(--d2-ink); }
.sec-head p { color: var(--d2-muted); font-size: 15.5px; }

/* ============ FEATURES ============ */
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.feature { background: var(--d2-bg-soft); border: 1px solid var(--d2-line); border-radius: var(--d2-radius); padding: 26px 22px; transition: .2s; }
.feature:hover { background: #fff; box-shadow: var(--d2-shadow); transform: translateY(-3px); }
.feature .ic { width: 44px; height: 44px; border-radius: 13px; background: #fff; box-shadow: 0 4px 12px rgba(17,24,39,.06); display: grid; place-items: center; font-size: 20px; margin-bottom: 14px; }
.feature h4 { font-size: 16px; font-weight: 700; margin-bottom: 6px; font-family: inherit; color: var(--d2-ink); }
.feature p { color: var(--d2-muted); font-size: 13.5px; }

/* ============ ABOUT ============ */
.about { background: var(--d2-bg-soft); }
.about .grid { display: grid; grid-template-columns: 1fr 1fr; gap: 52px; align-items: center; }
.about .img { background: linear-gradient(135deg, var(--d2-blue), #3B82F6); border-radius: 22px; padding: 34px; color: #fff; box-shadow: var(--d2-shadow-lg); }
.about .img h3 { font-size: 22px; font-weight: 800; margin-bottom: 10px; font-family: inherit; color: #fff; }
.about .img p { color: rgba(255,255,255,.85); font-size: 14.5px; margin-bottom: 18px; }
.about .img .mini { background: rgba(255,255,255,.14); border-radius: 12px; padding: 12px 14px; margin-bottom: 9px; font-size: 14px; display: flex; gap: 9px; align-items: center; }
.about ul.check { list-style: none; margin-top: 20px; }
.about ul.check li { padding: 8px 0 8px 30px; position: relative; font-size: 15px; color: var(--d2-ink); }
.about ul.check li::before { content: '✓'; position: absolute; left: 0; top: 8px; color: var(--d2-blue); font-weight: 800; background: var(--d2-blue-50); width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; }

/* ============ PRODUK ============ */
.produk-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.produk { border: 1px solid var(--d2-line); border-radius: var(--d2-radius); padding: 24px; background: #fff; transition: .2s; display: flex; flex-direction: column; }
.produk:hover { box-shadow: var(--d2-shadow); transform: translateY(-4px); border-color: var(--d2-blue-100); }
.produk .chip { align-self: flex-start; background: var(--d2-blue-50); color: var(--d2-blue); font-size: 11.5px; font-weight: 700; padding: 5px 12px; border-radius: 999px; margin-bottom: 14px; }
.produk h4 { font-size: 18px; font-weight: 800; margin-bottom: 8px; font-family: inherit; color: var(--d2-ink); }
.produk p { color: var(--d2-muted); font-size: 13.8px; flex: 1; margin-bottom: 16px; }
.produk a { color: var(--d2-blue); font-weight: 700; font-size: 14px; text-decoration: none; }
.produk a:hover { text-decoration: underline; }

/* ============ PROMO ============ */
.promo { background: linear-gradient(135deg, var(--d2-blue-600), var(--d2-blue)); border-radius: 24px; padding: 44px; color: #fff; display: grid; grid-template-columns: 1.2fr .8fr; gap: 30px; align-items: center; box-shadow: var(--d2-shadow-lg); }
.promo h3 { font-size: 30px; font-weight: 800; line-height: 1.2; margin-bottom: 12px; font-family: inherit; color: #fff; }
.promo p { color: rgba(255,255,255,.85); font-size: 15px; margin-bottom: 18px; }
.promo .list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 22px; font-size: 14px; }
.promo .btn-white { background: #fff; color: var(--d2-blue); font-weight: 800; padding: 13px 26px; border-radius: 999px; text-decoration: none; display: inline-block; transition: .2s; }
.promo .btn-white:hover { transform: translateY(-2px); }
.promo .pills { display: flex; gap: 14px; }
.pill { background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.25); padding: 16px 22px; border-radius: 16px; text-align: center; }
.pill b { display: block; font-size: 22px; font-weight: 800; color: #fff; }
.pill span { font-size: 12px; color: rgba(255,255,255,.8); }

/* ============ NEWS ============ */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.news-card { border: 1px solid var(--d2-line); border-radius: var(--d2-radius); overflow: hidden; background: #fff; transition: .2s; }
.news-card:hover { box-shadow: var(--d2-shadow); transform: translateY(-4px); }
.news-thumb { background: var(--d2-blue-50); padding: 26px 22px; display: flex; justify-content: space-between; align-items: flex-start; }
.news-date { display: inline-block; background: var(--d2-blue); color: #fff; font-size: 12px; font-weight: 700; padding: 5px 12px; border-radius: 999px; letter-spacing: .5px; }
.news-thumb svg { width: 34px; height: 34px; }
.news-body { padding: 20px 22px; }
.news-body h3 { font-size: 16.5px; font-weight: 800; margin-bottom: 8px; font-family: inherit; }
.news-body h3 a { color: var(--d2-ink); text-decoration: none; }
.news-body h3 a:hover { color: var(--d2-blue); }
.news-body p { color: var(--d2-muted); font-size: 13.5px; margin-bottom: 12px; }
.news-body .prod-link { color: var(--d2-blue); font-weight: 700; font-size: 13.5px; text-decoration: none; }

/* ============ CTA BAND ============ */
.cta-band { background: var(--d2-bg-soft); border: 1px solid var(--d2-line); border-radius: 24px; text-align: center; padding: 46px 24px; }
.cta-band h3 { font-size: 28px; font-weight: 800; margin-bottom: 8px; font-family: inherit; color: var(--d2-ink); }
.cta-band p { color: var(--d2-muted); font-size: 15px; margin-bottom: 22px; }

/* ============ HALAMAN PRODUK DETAIL (single-produk.php) ============ */
.page-hero { background: linear-gradient(160deg, #EFF5FF, #DBEAFE 60%, #F8FAFC); padding: 44px 0 56px; }
.page-hero .breadcrumb { font-size: 13px; color: var(--d2-muted); margin-bottom: 14px; }
.page-hero .breadcrumb a { color: var(--d2-blue); text-decoration: none; }
.page-hero h1 { font-size: 38px; font-weight: 800; letter-spacing: -.5px; margin: 12px 0 10px; font-family: inherit; color: var(--d2-ink); }
.page-hero .sub { color: var(--d2-muted); font-size: 15.5px; max-width: 640px; }
.d2-tag { display: inline-block; background: var(--d2-blue); color: #fff; font-size: 12px; font-weight: 700; padding: 6px 14px; border-radius: 999px; letter-spacing: 1px; text-transform: uppercase; }

.detail { display: grid; grid-template-columns: 1.35fr .65fr; gap: 40px; padding: 52px 0 72px; }
.produk-photo { border-radius: var(--d2-radius); overflow: hidden; margin-bottom: 28px; box-shadow: var(--d2-shadow); }
.produk-photo img { width: 100%; }
.photo-box { border: 2px dashed var(--d2-blue-100); border-radius: var(--d2-radius); background: var(--d2-blue-50); color: var(--d2-blue); display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 260px; margin-bottom: 28px; text-align: center; padding: 24px; }
.photo-box .ic { font-size: 44px; margin-bottom: 10px; }
.photo-box b { font-size: 15.5px; color: var(--d2-ink); }
.photo-box span { font-size: 13px; color: var(--d2-muted); margin-top: 4px; }

.detail h2 { font-size: 22px; font-weight: 800; margin: 26px 0 14px; letter-spacing: -.3px; font-family: inherit; color: var(--d2-ink); }
.detail .desc { color: var(--d2-muted); font-size: 15.5px; }
.detail .desc p { margin-bottom: 12px; }
.check-list { list-style: none; margin: 4px 0 0; padding: 0; }
.check-list li { display: flex; gap: 10px; align-items: flex-start; padding: 7px 0; font-size: 14.5px; color: var(--d2-ink); }
.check-list .cb { flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--d2-blue-50); color: var(--d2-blue); display: grid; place-items: center; font-size: 12px; font-weight: 800; margin-top: 1px; }

.facts { border: 1px solid var(--d2-line); border-radius: var(--d2-radius); padding: 26px; position: sticky; top: 90px; box-shadow: var(--d2-shadow); background: #fff; }
.facts h4 { font-size: 17px; font-weight: 800; margin-bottom: 16px; font-family: inherit; color: var(--d2-ink); }
.fact-row { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--d2-line); font-size: 14px; }
.fact-row:last-of-type { border-bottom: 0; }
.fact-row span:first-child { color: var(--d2-muted); }
.fact-row b { font-weight: 700; text-align: right; color: var(--d2-ink); }
.btn-block { display: block; background: var(--d2-blue); color: #fff; text-align: center; font-weight: 800; padding: 14px; border-radius: 14px; text-decoration: none; margin-top: 18px; box-shadow: 0 10px 24px rgba(26,86,219,.3); transition: .2s; }
.btn-block:hover { background: var(--d2-blue-600); color: #fff; }
.btn-wa { display: block; background: #25D366; color: #fff; text-align: center; font-weight: 700; padding: 13px; border-radius: 14px; text-decoration: none; margin-top: 10px; transition: .2s; }
.btn-wa:hover { filter: brightness(.95); color: #fff; }

@media (max-width: 900px) {
  .detail { grid-template-columns: 1fr; }
  .facts { position: static; }
  .page-hero h1 { font-size: 30px; }
}

/* ============ FOOTER ============ */
footer.d2-footer { background: #0F172A; color: rgba(255,255,255,.72); padding: 52px 0 0; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; padding-bottom: 36px; }
.foot-grid h5 { color: #fff; font-size: 14.5px; margin-bottom: 13px; font-family: inherit; }
.foot-grid a { color: rgba(255,255,255,.72); text-decoration: none; display: block; margin-bottom: 8px; font-size: 13.8px; }
.foot-grid a:hover { color: #93C5FD; }
.foot-grid ul { list-style: none; margin: 0; padding: 0; }
.foot-brand .logo-chip { display: inline-block; background: #fff; border-radius: 12px; padding: 10px 14px; margin-bottom: 14px; }
.foot-brand .logo-chip img { height: 34px; width: auto; display: block; }
.foot-brand p { font-size: 13.5px; max-width: 290px; }
.foot-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 17px 0; font-size: 12.5px; text-align: center; color: rgba(255,255,255,.45); }

/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .produk-grid, .news-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .hero { padding: 60px 0 84px; }
  .hero .container { grid-template-columns: 1fr; gap: 32px; }
  .hero h1 { font-size: 34px; }
  .about .grid { grid-template-columns: 1fr; gap: 32px; }
  .promo { grid-template-columns: 1fr; padding: 32px 24px; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .stats .card { grid-template-columns: 1fr; }
  .stat + .stat { border-left: 0; border-top: 1px solid var(--d2-line); }
}
@media (max-width: 600px) {
  .feature-grid, .produk-grid, .news-grid { grid-template-columns: 1fr; }
  .hero-cards { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn-primary, .hero-actions .btn-secondary { text-align: center; }
  .foot-grid { grid-template-columns: 1fr; }
  .d2-section { padding: 60px 0; }
  .sec-head h2 { font-size: 27px; }
}
