/* MUI SUBANG PRD — v0.4.7 Revisi 1. Staging-only enhancement, no automatic FSE edits.
   Conservative progressive enhancement; keep genuine WP links, icons and original chat. */
:root {
  --mui-r-accent:#dfbe73;
  --mui-r-moss:#0d4330;
  --mui-r-leaf:#176447;
  --mui-r-glass:rgba(255,255,255,.78);
  --mui-r-ring:#b68324;
}
/* Body and FSE shell. No 100vw on child grids (prevents mobile clipping). */
body:not(.wp-admin) {overflow-wrap:break-word;}
body :is(.muisubang-prd-v3,.muisubang-prd-v3 *,.mui-footer-v2,.mui-footer-v2 *) {box-sizing:border-box;}
body .muisubang-prd-v3--active { isolation:isolate; overflow:clip; }
/* Gentle header polish; retain the theme-controlled navigation and logo. */
body header.wp-block-template-part {
  /* Do not override the original FSE sticky/fixed positioning. */
  z-index:30;
  box-shadow:0 1px 0 rgba(18,80,53,.1),0 8px 28px rgba(9,44,29,.045);
}
body header.wp-block-template-part .wp-block-site-logo img {max-height:64px;width:auto;object-fit:contain;}
body header.wp-block-template-part :is(a,button):focus-visible {
  outline:3px solid var(--mui-r-ring);outline-offset:3px;border-radius:6px;
}
/* HERO — layered translucent gradients, but high contrast text and fixed borders. */
body .muisubang-prd-v3--active .muisubang-prd-v3__hero {
  background:radial-gradient(ellipse 60% 85% at 103% -7%,rgba(224,194,122,.22),transparent 71%),
     radial-gradient(ellipse 70% 80% at -14% 100%,rgba(91,191,131,.22),transparent 70%),
     linear-gradient(128deg,#092e24 0%,#0e4934 49%,#16613e 100%);
  border-radius:0 0 22px 22px;
  gap:clamp(24px,4.1vw,55px);
  padding-block:clamp(38px,5vw,72px);
}
body .muisubang-prd-v3--active .muisubang-prd-v3__hero::after {
  background:linear-gradient(135deg,rgba(240,220,164,.11),transparent 75%);
  filter:blur(1px);pointer-events:none;
}
body .muisubang-prd-v3--active .muisubang-prd-v3__hero-side {
  background:rgba(252,255,251,.91);border:1px solid rgba(255,255,255,.62);
  box-shadow:0 21px 55px rgba(4,39,24,.19), inset 0 1px 0 rgba(255,255,255,.75);
  -webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);
}
body .muisubang-prd-v3--active .muisubang-prd-v3__button,
body .muisubang-prd-v3--active .muisubang-prd-v3__contact-btn {
  border-radius:12px;box-shadow:0 5px 14px rgba(12,35,24,.1);
  transition:transform .2s ease,box-shadow .2s ease,background-color .2s ease;
}
body .muisubang-prd-v3--active .muisubang-prd-v3__button:hover,
body .muisubang-prd-v3--active .muisubang-prd-v3__contact-btn:hover {
  transform:translateY(-2px);box-shadow:0 12px 28px rgba(12,35,24,.18);
}
/* SERVICES: softer surfaces and compact but comfortable mobile cards. */
body .muisubang-prd-v3--active .muisubang-prd-v3__service {
  border:1px solid rgba(64,123,83,.2);
  background:linear-gradient(154deg,rgba(255,255,255,.95),rgba(237,248,239,.82));
  box-shadow:0 5px 20px rgba(12,64,36,.055);
  border-radius:18px;
}
body .muisubang-prd-v3--active .muisubang-prd-v3__service--disabled {
  background:linear-gradient(150deg,rgba(238,247,239,.84),rgba(227,237,229,.7));
  box-shadow:none;
}
body .muisubang-prd-v3--active .muisubang-prd-v3__service-num {
  background:rgba(19,93,57,.1);border:1px solid rgba(16,97,57,.1);border-radius:11px;
}
body .muisubang-prd-v3--active .muisubang-prd__article,
body .muisubang-prd-v3--active .muisubang-prd-v3__article-card,
body .muisubang-prd-v3--active .muisubang-prd-v3__paper {
  border:1px solid rgba(36,104,64,.13);
  box-shadow:0 10px 26px rgba(10,50,29,.055);
  border-radius:18px;
}
body .muisubang-prd-v3--active .muisubang-prd__media {
  overflow:hidden;
  aspect-ratio:16/9;
  display:block;
}
body .muisubang-prd-v3--active .muisubang-prd__media img {
  width:100%;height:100%;object-fit:cover;
  transition:transform .35s ease;
}
body .muisubang-prd-v3--active .muisubang-prd__article:hover .muisubang-prd__media img {transform:scale(1.025);}
body .muisubang-prd-v3--active .muisubang-prd-v3__section,
body .muisubang-prd-v3--active .muisubang-prd-news,
body .muisubang-prd-v3--active .muisubang-prd-services {scroll-margin-top:24px;}
body .muisubang-prd-v3--active .muisubang-prd-v3__contact {
  background:radial-gradient(ellipse 65% 110% at 100% 0%,rgba(232,200,129,.17),transparent 70%),
   linear-gradient(115deg,#0c3729,#16593f);border-radius:18px;
  margin:12px clamp(16px,3vw,35px) 24px;
  box-shadow:0 12px 28px rgba(9,48,28,.11);
}
/* Approved FSE footer pattern — one set of destinations, no repeated 'Beranda'. */
body footer.wp-block-template-part .mui-footer-v2 {
  --mf-r-text:#f5fcf6;
  --mf-r-muted:#deeee3;
  background:radial-gradient(ellipse 58% 100% at 97% 0%,rgba(211,185,107,.16),transparent 70%),
       linear-gradient(137deg,#082c23 0%,#0b4330 60%,#0c4e38 100%) !important;
  color:var(--mf-r-text) !important;
  max-width:none!important;width:100%;margin:0!important;
  padding:clamp(36px,5vw,67px) max(20px,calc((100% - 1200px)/2));
  border-top:3px solid rgba(228,192,106,.7);
}
body footer.wp-block-template-part .mui-footer-v2 .mui-footer-v2__grid {
  display:grid!important;grid-template-columns:minmax(0,1.55fr) repeat(3,minmax(0,1fr));
  gap:clamp(18px,3vw,38px);margin:0 0 29px!important;align-items:start;
}
body footer.wp-block-template-part .mui-footer-v2 .wp-block-column {min-width:0;margin:0!important;}
body footer.wp-block-template-part .mui-footer-v2 :is(h2,h3,p) {color:var(--mf-r-text)!important;overflow-wrap:anywhere;}
body footer.wp-block-template-part .mui-footer-v2 .mui-footer-v2__brand-kicker {
  color:#efd595!important;font-size:11px!important;font-weight:800;letter-spacing:.11em;margin:0 0 12px!important;
}
body footer.wp-block-template-part .mui-footer-v2 .mui-footer-v2__title {
  font-size:clamp(20px,2vw,26px)!important;line-height:1.32!important;margin:0 0 15px!important;
  font-weight:760!important;letter-spacing:-.015em;
}
body footer.wp-block-template-part .mui-footer-v2 .mui-footer-v2__heading {
  font-size:16px!important;line-height:1.4!important;font-weight:750!important;margin:2px 0 14px!important;
  border-bottom:1px solid rgba(220,244,224,.2);padding:0 0 12px;
}
body footer.wp-block-template-part .mui-footer-v2 :is(.mui-footer-v2__description,.mui-footer-v2__muted,.mui-footer-v2__legal) {
  color:var(--mf-r-muted)!important;line-height:1.7!important;font-size:14px!important;
}
body footer.wp-block-template-part .mui-footer-v2 .mui-footer-v2__link {margin:0!important;padding:0!important;}
body footer.wp-block-template-part .mui-footer-v2 .mui-footer-v2__link a {
  display:inline-flex;align-items:center;min-height:44px;padding:9px 0;
  color:#f3fff5!important;font-size:15px;text-decoration:none!important;
  border-bottom:1px solid transparent;line-height:1.45;
}
body footer.wp-block-template-part .mui-footer-v2 .mui-footer-v2__link a:is(:hover,:focus-visible) {
  color:#ffe0a0!important;border-color:currentColor;
}
body footer.wp-block-template-part .mui-footer-v2 a:focus-visible {
  outline:3px solid #ffe09e!important;outline-offset:3px;border-radius:4px;
}
body footer.wp-block-template-part .mui-footer-v2 .mui-footer-v2__bottom {
  display:flex!important;justify-content:space-between;gap:8px 20px;flex-wrap:wrap;
  border-top:1px solid rgba(221,245,231,.24);padding-top:19px;margin:0!important;
}
body footer.wp-block-template-part .mui-footer-v2__bottom .mui-footer-v2__legal {margin:0!important;font-size:12px!important;}
/* The older valid footer block also gains visually consistent graduated background. */
body footer.wp-block-template-part .mui-footer-v1 {
  background:radial-gradient(ellipse at 100% 0%,rgba(211,185,107,.14),transparent 66%),
      linear-gradient(137deg,#082c23,#0c4935) !important;
}
/* Mobile navigation drawer layout is handled by theme.css */
/* Dark-mode matching the actual theme (html.mode-dark, html[data-theme=dark]). */
html:is(.mode-dark,.theme-dark,[data-theme="dark"],[data-color-scheme="dark"]) body .muisubang-prd-v3--active .muisubang-prd-v3__service {
  background:linear-gradient(155deg,rgba(29,59,43,.96),rgba(19,48,34,.94));
  border-color:#3e6650;box-shadow:0 8px 20px rgba(0,0,0,.13);
}
html:is(.mode-dark,.theme-dark,[data-theme="dark"],[data-color-scheme="dark"]) body .muisubang-prd-v3--active .muisubang-prd-v3__service--disabled {opacity:.85;}
html:is(.mode-dark,.theme-dark,[data-theme="dark"],[data-color-scheme="dark"]) body .muisubang-prd-v3--active .muisubang-prd-v3__hero-side {
  background:rgba(27,57,40,.94);border-color:#41664f;color:#eef7ed;
}
html:is(.mode-dark,.theme-dark,[data-theme="dark"],[data-color-scheme="dark"]) body .muisubang-prd-v3--active .muisubang-prd-v3__hero-side :is(h3,p,label) {color:#e8f3ea!important;}
html:is(.mode-dark,.theme-dark,[data-theme="dark"],[data-color-scheme="dark"]) body .muisubang-prd-v3--active .muisubang-prd-v3__paper {
  background:linear-gradient(155deg,rgba(28,59,42,.94),rgba(19,45,34,.94));border-color:#45664f;
}
/* Keep actual cards readable; no blanket inversion of page-builder markup. */
@media(max-width:960px) {
  body footer.wp-block-template-part .mui-footer-v2 .mui-footer-v2__grid {grid-template-columns:repeat(2,minmax(0,1fr));}
}
@media(max-width:620px) {
  body .muisubang-prd-v3--active .muisubang-prd-v3__hero {padding:36px 21px;border-radius:0 0 16px 16px;}
  body .muisubang-prd-v3--active .muisubang-prd-v3__service {border-radius:15px;}
  body .muisubang-prd-v3--active .muisubang-prd-v3__contact {margin:12px 10px 18px;}
  body footer.wp-block-template-part .mui-footer-v2 {padding:38px 20px calc(95px + env(safe-area-inset-bottom,0px));}
  body footer.wp-block-template-part .mui-footer-v2 .mui-footer-v2__grid {grid-template-columns:1fr;gap:24px;margin-bottom:30px!important;}
  body footer.wp-block-template-part .mui-footer-v2 .mui-footer-v2__heading {margin-bottom:6px!important;}
  body footer.wp-block-template-part .mui-footer-v2 .mui-footer-v2__bottom {display:grid!important;gap:8px;}
}
@media(prefers-reduced-motion:reduce) {
  body .muisubang-prd-v3--active :is(a,button,img),
  body footer.wp-block-template-part .mui-footer-v2 * {transition:none!important;animation:none!important;scroll-behavior:auto!important;}
}
