/* Doki effects — motion layer on top of the brand styles in Additional CSS. */
:root { --doki-ease: cubic-bezier(.22, .61, .36, 1); }
html, body { overflow-x: clip; }
.doki-section, .doki-hero, .doki-banner { overflow-x: clip; }

/* ---------- Header: transparent over hero, solid + sticky after scroll ---------- */
.doki-has-hero #masthead { position: fixed; top: var(--wp-admin--admin-bar--height, 0px); left: 0; right: 0; z-index: 999; }
.doki-has-hero .ast-primary-header-bar,
.doki-has-hero .main-header-bar { background: transparent !important; border-bottom-color: transparent !important; box-shadow: none !important; transition: background-color .35s var(--doki-ease), box-shadow .35s, border-color .35s, padding .35s; }
.doki-has-hero:not(.doki-scrolled) .site-title a,
.doki-has-hero:not(.doki-scrolled) .main-header-menu .menu-link { color: #fff !important; }
.doki-has-hero:not(.doki-scrolled) .main-header-menu .current-menu-item > .menu-link,
.doki-has-hero:not(.doki-scrolled) .main-header-menu .menu-item:hover > .menu-link { color: #fff !important; }
.doki-has-hero:not(.doki-scrolled) .custom-logo { filter: brightness(0) invert(1); }
.doki-has-hero:not(.doki-scrolled) .ast-primary-header-bar { background: linear-gradient(rgba(0,0,0,.45), transparent) no-repeat !important; border-bottom-color: transparent !important; }
.doki-has-hero.doki-scrolled .ast-primary-header-bar,
.doki-has-hero.doki-scrolled .main-header-bar { background: rgba(255,255,255,.8) !important; border-bottom: 4px solid var(--doki-red) !important; box-shadow: 0 6px 24px rgba(0,0,0,.08) !important; -webkit-backdrop-filter: blur(16px) saturate(160%); backdrop-filter: blur(16px) saturate(160%); }
.custom-logo { transition: filter .35s, width .35s; }
.doki-scrolled .ast-primary-header-bar .site-branding { transform: scale(.92); transform-origin: left center; }
.ast-primary-header-bar .site-branding { transition: transform .35s var(--doki-ease); }

/* Menu: animated red underline (replaces colour-only hover) */
.main-header-menu > .menu-item > .menu-link { position: relative; }
.main-header-menu > .menu-item > .menu-link::after { content: ''; position: absolute; left: 1em; right: 1em; bottom: 18px; height: 2px; background: var(--doki-red); transform: scaleX(0); transform-origin: right; transition: transform .35s var(--doki-ease); }
.main-header-menu > .menu-item:hover > .menu-link::after,
.main-header-menu > .current-menu-item > .menu-link::after { transform: scaleX(1); transform-origin: left; }
.doki-has-hero:not(.doki-scrolled) .main-header-menu > .menu-item > .menu-link::after { background: #fff; }

/* ---------- Hero / banner: parallax layer + entrance ---------- */
.doki-hero__bg img, .doki-banner__bg img { will-change: transform; transform: scale(1.12); transition: none; }
body .doki-hero { min-height: 100vh; min-height: 100svh; padding-top: 140px; }
body .doki-banner { padding-top: clamp(150px, 16vw, 200px); }
.doki-js .doki-hero__inner > *, .doki-js .doki-banner__inner > * { opacity: 0; transform: translateY(28px); }
.doki-js .doki-hero__inner > *, .doki-js .doki-banner__inner > * { animation: doki-rise .9s var(--doki-ease) forwards; }
.doki-js .doki-hero__inner > :nth-child(2), .doki-js .doki-banner__inner > :nth-child(2) { animation-delay: .15s; }
.doki-js .doki-hero__inner > :nth-child(3), .doki-js .doki-banner__inner > :nth-child(3) { animation-delay: .3s; }
.doki-js .doki-hero__inner > :nth-child(4) { animation-delay: .45s; }
.doki-hero::after, .doki-banner::after { animation: doki-band 1.1s var(--doki-ease) both .2s; transform-origin: left bottom; }
@keyframes doki-rise { to { opacity: 1; transform: none; } }
@keyframes doki-band { from { transform: translateX(-30%) ; opacity: 0; } to { transform: none; opacity: 1; } }

/* ---------- Scroll reveal ---------- */
.doki-js [data-reveal] { transition: opacity .8s var(--doki-ease), transform .8s var(--doki-ease), clip-path 1s var(--doki-ease); transition-delay: var(--doki-delay, 0ms); }
.doki-js [data-reveal="up"]:not(.is-in) { opacity: 0; transform: translateY(36px); }
.doki-js [data-reveal="photo"]:not(.is-in) { opacity: 0; transform: translateX(-40px); }
.doki-js .wp-block-column + .wp-block-column [data-reveal="photo"]:not(.is-in),
.doki-js .wp-block-column + .wp-block-column[data-reveal="photo"]:not(.is-in) { transform: translateX(40px); }
.doki-js [data-reveal="photo"] img { clip-path: inset(0 0 0 0); transition: clip-path 1.2s var(--doki-ease) .1s, transform .8s var(--doki-ease); }
.doki-js [data-reveal="photo"]:not(.is-in) img { clip-path: inset(0 100% 0 0); }
.doki-js [data-reveal="photo"]::before, .doki-js [data-reveal="photo"]::after { transition: transform .9s var(--doki-ease) .45s, opacity .9s .45s; }
.doki-js [data-reveal="photo"]:not(.is-in)::before { transform: translate(-30px, 30px); opacity: 0; }
.doki-js [data-reveal="photo"]:not(.is-in)::after { transform: translate(20px, -20px); opacity: 0; }
/* Title underline draws in */
.doki-js .doki-title::after { transition: transform .9s var(--doki-ease) .25s; transform-origin: left; }
.doki-js .doki-title:not(.is-in)::after { transform: scaleX(0); }
.doki-js [data-reveal]:not(.is-in) .doki-title::after { transform: scaleX(0); }
.doki-js .doki-blog-empty__box .doki-title::after { transform-origin: center; }
.doki-js .doki-blog-empty__box:not(.is-in) .doki-title::after { transform: translateX(-50%) scaleX(0); }

/* ---------- Hover: photos, cards, logos, buttons ---------- */
.doki-photo { overflow: visible; }
.doki-photo img { transition: transform .9s var(--doki-ease), clip-path 1.2s var(--doki-ease) .1s, filter .5s; }
.doki-photo:hover img { transform: scale(1.04); }

.doki-cat__img { overflow: hidden; }
.doki-cat__img img { transition: transform .7s var(--doki-ease); }
.doki-cat:hover .doki-cat__img img { transform: scale(1.08); }
.doki-cat::before { content: ''; position: absolute; left: 0; top: 0; height: 4px; width: 100%; background: var(--doki-red); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--doki-ease); z-index: 2; }
.doki-cat:hover::before { transform: scaleX(1); }
.doki-cat__link a { display: inline-flex; gap: 6px; transition: gap .3s var(--doki-ease); }
.doki-cat:hover .doki-cat__link a { gap: 12px; }

.doki-icon { transition: background-color .35s, transform .45s var(--doki-ease), box-shadow .35s; }
.doki-feature:hover .doki-icon, .doki-team:hover .doki-icon, .doki-legal:hover .doki-icon, .doki-contact-card:hover .doki-icon { background: var(--doki-red); transform: translate(-3px, -3px) rotate(-4deg); box-shadow: 8px 8px 0 var(--doki-black); }
.doki-team, .doki-legal, .doki-contact-card { transition: transform .4s var(--doki-ease), box-shadow .4s; }
.doki-team:hover, .doki-legal:hover, .doki-contact-card:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(0,0,0,.1); }

.doki-client img { filter: grayscale(1); opacity: .9; transition: filter .45s, opacity .45s, transform .45s var(--doki-ease); }
.doki-client:hover img { filter: none; opacity: 1; transform: scale(1.06); }
/* Super Air Jet artwork is pale grey on white: deepen the ink without greying the white (255 - (255-L) x 3). */
.doki-client img[src*="klien-super-air-jet"] { filter: grayscale(1) invert(1) brightness(3) invert(1); }
.doki-client:hover img[src*="klien-super-air-jet"] { filter: invert(1) brightness(3) invert(1); }

/* Product card: zoom + slide-up "Tanya Produk" (WhatsApp) */
.doki-product__img { position: relative; overflow: hidden; }
.doki-product__img img { transition: transform .7s var(--doki-ease); }
.doki-product:hover .doki-product__img img { transform: scale(1.08); }
.doki-product__ask { position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 10px; background: rgba(200, 0, 28, .82); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); color: #fff !important; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; text-decoration: none; transform: translateY(101%); transition: transform .4s var(--doki-ease), background-color .3s; }
.doki-product__ask svg { width: 16px; height: 16px; }
/* Theme rules (.wp-block-image > a, .entry-content a) override display/underline — win back with higher specificity */
.doki-product .wp-block-image > a.doki-product__ask, .doki-product .wp-block-image > a.doki-product__ask:hover { display: flex !important; text-decoration: none !important; line-height: 1.2; }
.doki-product__ask svg { flex: 0 0 auto; display: block; }
.doki-product__ask span { display: block; }
.doki-product:hover .doki-product__ask, .doki-product__ask:focus-visible { transform: none; }
.doki-product__ask:hover { background: #000; }
@media (hover: none) { .doki-product__ask { transform: none; position: static; margin-top: 8px; } }

/* Buttons: sweep fill */
.entry-content .wp-block-button__link, .doki-blog-empty .wp-block-button__link { position: relative; overflow: hidden; z-index: 0; }
.entry-content .wp-block-button__link::before, .doki-blog-empty .wp-block-button__link::before { content: ''; position: absolute; inset: 0; z-index: -1; background: #000; transform: scaleX(0); transform-origin: right; transition: transform .45s var(--doki-ease); }
.entry-content .wp-block-button__link:hover::before, .doki-blog-empty .wp-block-button__link:hover::before { transform: scaleX(1); transform-origin: left; }
.entry-content .is-style-outline .wp-block-button__link::before, .doki-blog-empty .is-style-outline .wp-block-button__link::before { background: var(--doki-red); }
.entry-content .wp-block-button:not(.is-style-outline) > .wp-block-button__link:hover { background: var(--doki-red) !important; }
.entry-content .wp-block-button.is-style-outline > .wp-block-button__link:hover { background: transparent !important; }
.doki-cta .wp-block-button:not(.is-style-outline) > .wp-block-button__link::before { background: #fff; }
.doki-cta .wp-block-button:not(.is-style-outline) > .wp-block-button__link:hover { background: #000 !important; }
.doki-cta .wp-block-button.is-style-outline > .wp-block-button__link::before { background: #000; }

/* Sub-nav pills */
.doki-subnav a { position: relative; overflow: hidden; z-index: 0; }

/* Footer links slide */
.doki-footer a { transition: color .25s, padding-left .25s var(--doki-ease); }
.doki-footer__cols p a:hover { padding-left: 4px; }

/* Mobile drawer sits on a white panel: never inherit the white over-hero link colour. */
body.doki-has-hero .ast-mobile-header-content .main-header-menu .menu-link,
body.doki-has-hero .ast-mobile-popup-drawer .main-header-menu .menu-link { color: var(--doki-ink) !important; }
body.doki-has-hero .ast-mobile-header-content .main-header-menu .current-menu-item > .menu-link,
body.doki-has-hero .ast-mobile-header-content .main-header-menu .menu-item:hover > .menu-link,
body.doki-has-hero .ast-mobile-popup-drawer .main-header-menu .current-menu-item > .menu-link { color: var(--doki-red) !important; }
.ast-mobile-header-content .main-header-menu > .menu-item > .menu-link::after,
.ast-mobile-popup-drawer .main-header-menu > .menu-item > .menu-link::after { display: none; }
.ast-mobile-header-content .main-header-menu .menu-item { border-color: var(--doki-line) !important; }
.ast-mobile-header-content .main-header-menu .current-menu-item > .menu-link { box-shadow: inset 4px 0 0 var(--doki-red); }

/* ---------- Mobile ---------- */
@media (max-width: 921px) {
	.doki-has-hero:not(.doki-scrolled) .ast-mobile-header-wrap .ast-primary-header-bar { background: linear-gradient(rgba(0,0,0,.5), transparent) !important; }
	.doki-has-hero.doki-scrolled .ast-mobile-header-wrap .ast-primary-header-bar { background: rgba(255,255,255,.8) !important; -webkit-backdrop-filter: blur(16px) saturate(160%); backdrop-filter: blur(16px) saturate(160%); }
	body .doki-hero { min-height: 92svh; padding-top: 120px; }
	body .doki-banner { padding-top: 130px; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
	.doki-js .doki-hero__inner > *, .doki-js .doki-banner__inner > * { opacity: 1; transform: none; }
	.doki-hero__bg img, .doki-banner__bg img { transform: none !important; }
}
