:root {
  --kssh-forest: #062b21;
  --kssh-forest-deep: #031d17;
  --kssh-cream: #f6f2e9;
  --kssh-gold: #e0b94f;
  --kssh-gold-dark: #9a7422;
  --kssh-white: #fff;
  --kssh-text: #233b33;
  --kssh-header-height: 104px;
}

[hidden] { display: none !important; }

.kssh-header,
.kssh-header *,
.kssh-footer,
.kssh-footer *,
.kssh-mobile-backdrop,
.kssh-back-to-top,
.kssh-whatsapp-float {
  box-sizing: border-box;
}

.kssh-skip-link {
  position: fixed;
  z-index: 1000000;
  top: 8px;
  left: 8px;
  transform: translateY(-180%);
  padding: 10px 14px;
  background: #fff;
  color: #05271e;
  font: 700 13px/1.2 "DM Sans", Arial, sans-serif;
  text-decoration: none;
}
.kssh-skip-link:focus { transform: none; }

/* Hanya halaman internal: singkirkan header/footer lain supaya tidak terjadi duplikasi. */
body.kssh-internal-shell #masthead:not(.kssh-header),
body.kssh-internal-shell header.site-header:not(.kssh-header),
body.kssh-internal-shell header#site-header:not(.kssh-header),
body.kssh-internal-shell .elementor-location-header,
body.kssh-internal-shell .wp-site-blocks > header,
body.kssh-internal-shell .kpt-header,
body.kssh-internal-shell .kspm-shared-header,
body.kssh-internal-shell #colophon:not(.kssh-footer),
body.kssh-internal-shell footer.site-footer:not(.kssh-footer),
body.kssh-internal-shell footer#site-footer:not(.kssh-footer),
body.kssh-internal-shell .elementor-location-footer,
body.kssh-internal-shell .wp-site-blocks > footer,
body.kssh-internal-shell .kpt-footer,
body.kssh-internal-shell .kspm-shared-footer,
body.kssh-internal-shell .kpt-whatsapp-float,
body.kssh-internal-shell .kspm-back-to-top {
  display: none !important;
}

body.kssh-menu-open { overflow: hidden !important; }

.kssh-header {
  z-index: 99990;
  overflow: visible !important;
  left: 0;
  right: 0;
  width: 100%;
  min-height: var(--kssh-header-height);
  color: var(--kssh-white);
  font-family: "DM Sans", Arial, sans-serif;
}
.kssh-header--overlay {
  position: absolute;
  top: 0;
  background: linear-gradient(180deg, rgba(2, 25, 19, .56), rgba(2, 25, 19, .08));
}
.kssh-header--solid {
  position: sticky;
  top: 0;
  background: rgba(4, 42, 32, .985);
  box-shadow: 0 1px 0 rgba(224, 185, 79, .28);
}
body.admin-bar .kssh-header--overlay { top: 32px; }
body.admin-bar .kssh-header--solid { top: 32px; }

.kssh-header-inner {
  position: relative;
  overflow: visible !important;
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr) 220px;
  align-items: center;
  width: min(1320px, calc(100% - 72px));
  min-height: var(--kssh-header-height);
  margin-inline: auto;
  border-bottom: 1px solid rgba(255, 255, 255, .22);
}
.kssh-header--solid .kssh-header-inner { border-bottom-color: rgba(224, 185, 79, .25); }

.kssh-brand {
  display: inline-flex;
  flex: 0 0 198px;
  align-items: center;
  width: 198px !important;
  min-width: 198px !important;
  max-width: 198px !important;
  height: 76px;
  color: #fff;
  text-decoration: none;
}
.kssh-brand .kssh-logo-image--header {
  display: block !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
  height: 100% !important;
  min-height: 0 !important;
  max-height: none !important;
  margin: 0 !important;
  padding: 0 !important;
  object-fit: contain !important;
  object-position: left center !important;
  filter: none;
}

.kssh-desktop-nav {
  position: static;
  overflow: visible !important;
  justify-self: center;
}
.kssh-desktop-nav > ul {
  display: flex;
  overflow: visible !important;
  align-items: center;
  justify-content: center;
  gap: clamp(30px, 3vw, 58px);
  margin: 0;
  padding: 0;
  list-style: none;
}
.kssh-nav-item {
  position: relative;
  display: flex;
  align-items: center;
  min-height: var(--kssh-header-height);
  margin: 0;
  padding: 0;
  list-style: none;
}
.kssh-nav-item::before,
.kssh-nav-item::after,
.kssh-nav-item::marker { content: none !important; }
.kssh-nav-item > a {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: var(--kssh-header-height);
  padding: 0;
  border: 0;
  color: rgba(255, 255, 255, .9);
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: .01em;
  text-decoration: none;
  white-space: nowrap;
}
.kssh-nav-item > a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 29px;
  left: 0;
  height: 2px;
  transform: scaleX(0);
  transform-origin: left;
  background: var(--kssh-gold);
  transition: transform .22s ease;
}
.kssh-nav-item:hover > a,
.kssh-nav-item:focus-within > a,
.kssh-nav-item.is-active > a { color: #fff; }
.kssh-nav-item:hover > a::after,
.kssh-nav-item:focus-within > a::after,
.kssh-nav-item.is-active > a::after { transform: scaleX(1); }

.kssh-package-item { position: static; overflow: visible !important; }
.kssh-package-toggle,
.kssh-mobile-toggle,
.kssh-mobile-package-toggle,
.kssh-mobile-group-toggle,
.kssh-mobile-backdrop {
  appearance: none;
  -webkit-appearance: none;
  margin: 0;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: inherit;
  font: inherit;
  cursor: pointer;
}
.kssh-package-toggle {
  display: inline-grid;
  place-items: center;
  width: 25px;
  height: 38px;
  margin-left: 7px;
  padding: 0;
  color: var(--kssh-gold);
}
.kssh-package-toggle span {
  display: block;
  transform: translateY(-1px);
  font-size: 16px;
  transition: transform .2s ease;
}
.kssh-package-item.is-open .kssh-package-toggle span { transform: rotate(180deg); }

.kssh-header-cta {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  min-width: 178px;
  min-height: 54px;
  padding: 14px 20px;
  border: 1px solid rgba(255, 255, 255, .58);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .09em;
  text-decoration: none;
  text-transform: uppercase;
  transition: background .2s ease, border-color .2s ease, color .2s ease;
}
.kssh-header-cta:hover,
.kssh-header-cta:focus-visible {
  border-color: var(--kssh-gold);
  background: var(--kssh-gold);
  color: var(--kssh-forest);
}

.kssh-mega {
  position: absolute;
  z-index: 99999;
  top: calc(100% + 1px);
  left: 50%;
  width: min(980px, calc(100vw - 72px));
  padding: 34px 34px 28px;
  transform: translate(-50%, -10px);
  visibility: hidden;
  opacity: 0;
  border-top: 2px solid var(--kssh-gold);
  background: #fbfaf6;
  box-shadow: 0 28px 62px rgba(0, 0, 0, .22);
  color: var(--kssh-text);
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
}
.kssh-package-item:hover .kssh-mega,
.kssh-package-item:focus-within .kssh-mega,
.kssh-package-item.is-open .kssh-mega {
  transform: translate(-50%, 0);
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}
.kssh-mega-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
}
.kssh-mega-group { min-width: 0; }
.kssh-mega-heading {
  display: block;
  padding-bottom: 14px;
  border-bottom: 1px solid #dfd5c2;
  color: #9a6e1e;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .06em;
  text-decoration: none;
  text-transform: uppercase;
}
.kssh-mega-group ul {
  display: grid;
  gap: 0;
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
}
.kssh-mega-group li { margin: 0; padding: 0; list-style: none; }
.kssh-mega-group li::marker { content: none; }
.kssh-mega-group li a {
  display: block;
  padding: 9px 0;
  color: #334940;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.35;
  text-decoration: none;
  transition: color .18s ease, transform .18s ease;
}
.kssh-mega-group li a:hover,
.kssh-mega-group li a:focus-visible {
  transform: translateX(3px);
  color: #9a6e1e;
}
.kssh-mega-all {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 24px;
  padding: 16px 18px;
  background: var(--kssh-forest);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .045em;
  text-decoration: none;
  text-transform: uppercase;
}
.kssh-mega-all:hover { background: #0a3b2e; color: #fff; }

.kssh-mobile-toggle,
.kssh-mobile-panel,
.kssh-mobile-backdrop { display: none; }

/* Footer internal memakai bahasa visual yang sama dengan landing page. */
.kssh-footer {
  position: relative;
  z-index: 2;
  padding: 62px 0 0;
  background: var(--kssh-forest-deep);
  color: rgba(255,255,255,.78);
  font-family: "DM Sans", Arial, sans-serif;
}
.kssh-footer-inner {
  display: grid;
  grid-template-columns: 1.45fr repeat(3, minmax(0, .72fr));
  gap: 56px;
  width: min(1180px, calc(100% - 64px));
  margin-inline: auto;
  padding-bottom: 48px;
}
.kssh-footer-brand > a {
  display: flex;
  align-items: center;
  width: 250px;
  height: 100px;
}
.kssh-footer-brand .kssh-logo-image--footer {
  display: block !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
  height: 100% !important;
  min-height: 0 !important;
  max-height: none !important;
  margin: 0 !important;
  padding: 0 !important;
  object-fit: contain !important;
  object-position: left center !important;
  filter: none;
}
.kssh-footer-brand p { margin: 18px 0 0; color: rgba(255,255,255,.58); font-size: 13px; letter-spacing: .08em; }
.kssh-footer-column { display: grid; align-content: start; gap: 11px; }
.kssh-footer-column > span { margin-bottom: 7px; color: var(--kssh-gold); font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.kssh-footer-column a,
.kssh-footer-column p { margin: 0; color: rgba(255,255,255,.75); font-size: 14px; line-height: 1.7; text-decoration: none; }
.kssh-footer-column a:hover { color: #fff; }
.kssh-footer-bottom {
  display: flex;
  justify-content: space-between;
  width: min(1180px, calc(100% - 64px));
  margin-inline: auto;
  padding: 20px 0 26px;
  border-top: 1px solid rgba(255,255,255,.1);
  color: rgba(255,255,255,.48);
  font-size: 12px;
}

.kssh-back-to-top,
.kssh-whatsapp-float {
  position: fixed;
  z-index: 99970;
  right: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  box-shadow: 0 12px 28px rgba(0,0,0,.2);
  font-family: "DM Sans", Arial, sans-serif;
  text-decoration: none;
}
.kssh-back-to-top {
  bottom: 91px;
  width: 46px;
  height: 46px;
  transform: translateY(12px);
  visibility: hidden;
  opacity: 0;
  border: 1px solid rgba(224,185,79,.55);
  border-radius: 50%;
  background: var(--kssh-forest);
  color: #fff;
  cursor: pointer;
  transition: .2s ease;
}
.kssh-back-to-top.is-visible { transform: none; visibility: visible; opacity: 1; }
.kssh-whatsapp-float {
  bottom: 24px;
  gap: 8px;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  background: #19a768;
  color: #fff;
  font-size: 12px;
}
.kssh-whatsapp-float b { font-weight: 600; }

#katalog-paket { scroll-margin-top: 118px; }

@media (max-width: 1120px) {
  .kssh-header-inner { grid-template-columns: 190px minmax(0, 1fr) 180px; width: calc(100% - 48px); }
  .kssh-brand { flex-basis: 180px; min-width: 180px !important; width: 180px !important; max-width: 180px !important; height: 69px; }
  .kssh-footer-brand > a { width: 220px; height: 88px; }
  .kssh-desktop-nav > ul { gap: 27px; }
  .kssh-nav-item > a { font-size: 13px; }
  .kssh-header-cta { min-width: 158px; }
}

@media (max-width: 980px) {
  :root { --kssh-header-height: 82px; }
  body.admin-bar .kssh-header--overlay,
  body.admin-bar .kssh-header--solid { top: 46px; }
  .kssh-header-inner {
    z-index: 5;
    grid-template-columns: minmax(0, 1fr) auto;
    width: calc(100% - 32px);
    min-height: var(--kssh-header-height);
  }
  .kssh-brand { flex-basis: 168px; min-width: 168px !important; width: 168px !important; max-width: 168px !important; height: 64px; }
  .kssh-footer-brand > a { width: 220px; height: 88px; }
  .kssh-desktop-nav,
  .kssh-header-cta { display: none; }
  .kssh-mobile-toggle {
    position: relative;
    z-index: 8;
    display: grid;
    align-content: center;
    justify-items: end;
    gap: 8px;
    width: 48px;
    height: 48px;
    padding: 0 9px;
    border: 1px solid rgba(255,255,255,.45) !important;
  }
  .kssh-mobile-toggle span {
    display: block;
    width: 27px;
    height: 1px;
    background: #fff;
    transition: transform .2s ease, width .2s ease;
  }
  .kssh-mobile-toggle span:last-child { width: 19px; }
  .kssh-header.is-mobile-open .kssh-mobile-toggle span:first-child { width: 25px; transform: translateY(4.5px) rotate(45deg); }
  .kssh-header.is-mobile-open .kssh-mobile-toggle span:last-child { width: 25px; transform: translateY(-4.5px) rotate(-45deg); }

  .kssh-mobile-panel {
    position: fixed;
    z-index: 4;
    top: 0;
    right: 0;
    display: block;
    width: min(390px, 88vw);
    height: 100dvh;
    padding: 102px 28px 32px;
    transform: translateX(102%);
    overflow-y: auto;
    background: var(--kssh-forest-deep);
    box-shadow: -22px 0 55px rgba(0,0,0,.28);
    transition: transform .24s ease;
  }
  body.admin-bar .kssh-mobile-panel { padding-top: 132px; }
  .kssh-header.is-mobile-open .kssh-mobile-panel { transform: none; }
  .kssh-mobile-panel nav > ul { margin: 0; padding: 0; list-style: none; }
  .kssh-mobile-panel nav > ul > li { margin: 0; padding: 0; border-bottom: 1px solid rgba(255,255,255,.11); list-style: none; }
  .kssh-mobile-panel li::marker { content: none; }
  .kssh-mobile-row { display: flex; align-items: center; justify-content: space-between; min-height: 58px; }
  .kssh-mobile-row > a {
    flex: 1 1 auto;
    padding: 20px 3px;
    color: rgba(255,255,255,.92);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .065em;
    text-decoration: none;
    text-transform: uppercase;
  }
  .kssh-mobile-package-toggle {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    color: var(--kssh-gold);
  }
  .kssh-mobile-package-toggle span { transition: transform .2s ease; }
  .kssh-mobile-package-item.is-open .kssh-mobile-package-toggle span { transform: rotate(180deg); }
  .kssh-mobile-package { padding: 0 0 17px; }
  .kssh-mobile-group { border-top: 1px solid rgba(255,255,255,.08); }
  .kssh-mobile-group-head { display: flex; align-items: center; justify-content: space-between; }
  .kssh-mobile-group-head > a {
    flex: 1;
    padding: 15px 3px;
    color: var(--kssh-gold);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .065em;
    text-decoration: none;
    text-transform: uppercase;
  }
  .kssh-mobile-group-toggle {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    color: #fff;
  }
  .kssh-mobile-group-toggle span { font-size: 20px; line-height: 1; transition: transform .2s ease; }
  .kssh-mobile-group.is-open .kssh-mobile-group-toggle span { transform: rotate(45deg); }
  .kssh-mobile-group ul { margin: 0; padding: 0 0 8px 13px; list-style: none; }
  .kssh-mobile-group li a {
    display: block;
    padding: 10px 0;
    color: rgba(255,255,255,.76);
    font-size: 14px;
    text-decoration: none;
  }
  .kssh-mobile-all {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 13px;
    padding: 14px 15px;
    background: var(--kssh-gold);
    color: var(--kssh-forest);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .05em;
    text-decoration: none;
    text-transform: uppercase;
  }
  .kssh-mobile-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 22px;
    padding: 16px;
    border: 1px solid rgba(224,185,79,.75);
    color: var(--kssh-gold);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .055em;
    text-decoration: none;
    text-transform: uppercase;
  }
  .kssh-mobile-backdrop {
    position: fixed;
    z-index: 3;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    background: rgba(1,12,9,.55);
  }

  .kssh-footer-inner { grid-template-columns: 1.2fr repeat(3, 1fr); gap: 30px; width: calc(100% - 40px); }
  .kssh-footer-bottom { width: calc(100% - 40px); }
}

@media (max-width: 720px) {
  html, body { max-width: 100%; overflow-x: clip; }
  .kssh-footer-brand > a { width: 190px; height: 76px; }
  .kssh-footer { padding-top: 46px; }
  .kssh-footer-inner { grid-template-columns: 1fr 1fr; gap: 34px 22px; }
  .kssh-footer-brand { grid-column: 1 / -1; }
  .kssh-footer-column:last-child { grid-column: 1 / -1; }
  .kssh-footer-bottom { flex-direction: column; gap: 8px; }
  .kssh-back-to-top { right: 16px; bottom: 82px; width: 44px; height: 44px; }
  .kssh-whatsapp-float { right: 16px; bottom: 18px; width: 52px; min-width: 52px; height: 52px; padding: 0; }
  .kssh-whatsapp-float b { display: none; }
}

@media (max-width: 420px) {
  .kssh-header-inner { width: calc(100% - 24px); }
  .kssh-brand { flex-basis: 152px; min-width: 152px !important; width: 152px !important; max-width: 152px !important; height: 58px; }
  .kssh-footer-brand > a { width: 190px; height: 76px; }
  .kssh-mobile-panel { width: min(350px, 91vw); padding-inline: 20px; }
  .kssh-footer-inner,
  .kssh-footer-bottom { width: calc(100% - 32px); }
}


/* v1.1: hardening untuk homepage dan tema pihak ketiga. */
body.kalisawah-premium-home > .kssh-header,
body.kalisawah-premium-home .kssh-header,
body.kalisawah-premium-home .kssh-header-inner,
body.kalisawah-premium-home .kssh-desktop-nav,
body.kalisawah-premium-home .kssh-desktop-nav > ul,
body.kalisawah-premium-home .kssh-package-item {
  overflow: visible !important;
}
body.kalisawah-premium-home .kssh-mega {
  clip: auto !important;
  overflow: visible !important;
}
.kssh-header img.kssh-logo-image--header {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  object-position: left center !important;
  margin: 0 !important;
  padding: 0 !important;
}
