/*
Theme Name:  Krezzna
Description: Child theme Astra untuk Kerupuk Krezzna. Halaman didesain dengan Elementor; artikel (Posts) memakai Gutenberg.
Template:    astra
Version:     0.4.5
Text Domain: krezzna
*/

/* Sticky header (fitur sticky Astra hanya ada di versi Pro). */
#masthead {
	position: sticky;
	top: 0;
	z-index: 99;
}

.admin-bar #masthead {
	top: 32px;
}

@media (max-width: 782px) {
	.admin-bar #masthead {
		top: 46px;
	}
}

#masthead .ast-primary-header-bar {
	background: rgba(255, 255, 255, 0.95);
	backdrop-filter: blur(8px);
	border-bottom: 1px solid #F3E6D2;
}

/* Footer: warna teks & link mengikuti index.html. */
.site-footer .footer-widget-area {
	font-size: 13px;
	color: #6E5D50;
}

.site-footer .footer-widget-area h4 {
	font-size: 13px;
	color: #3A281D;
	margin-bottom: 12px;
}

.site-footer .footer-widget-area a {
	color: #6E5D50;
}

.site-footer .footer-widget-area a:hover {
	color: #B5570B;
}

.site-footer .site-below-footer-wrap {
	font-size: 12px;
	color: #6E5D50;
	border-top: 1px solid #F3E6D2;
}

.site-footer .ast-builder-grid-row-container-inner {
	padding-left: 20px;
	padding-right: 20px;
}

.site-footer .wp-block-social-links {
	gap: 12px;
}

.site-footer .footer-widget-area .wp-block-heading:not(:first-child) {
	margin-top: 20px;
}

/* Astra memberi margin bawah 1.75em pada <p>; di Text Editor Elementor itu
   menambah jarak ekstra di bawah paragraf terakhir. Jarak antar widget diatur di panel. */
.elementor-widget-text-editor p:last-child {
	margin-bottom: 0;
}

/* Menu mobile (Astra dropdown): panel turun + fade, item masuk bergantian, ikon silang berputar.
   Astra menampilkan panel & menukar ikon dengan display, jadi dipakai @keyframes
   (berjalan otomatis setiap kali elemen muncul). */
@keyframes kz-menu-in {
	from { opacity: 0; transform: translateY(-10px); }
	to { opacity: 1; transform: none; }
}

@keyframes kz-menu-item-in {
	from { opacity: 0; transform: translateX(-12px); }
	to { opacity: 1; transform: none; }
}

@keyframes kz-icon-in {
	from { opacity: 0; transform: rotate(-90deg) scale(.6); }
	to { opacity: 1; transform: none; }
}

.ast-main-header-nav-open.ast-header-break-point .ast-mobile-header-wrap .ast-mobile-header-content {
	animation: kz-menu-in .28s cubic-bezier(.2, .7, .2, 1) both;
	box-shadow: 0 12px 24px rgba(58, 40, 29, .08);
}

.ast-main-header-nav-open .ast-mobile-header-content .main-header-menu > .menu-item,
.ast-main-header-nav-open .ast-mobile-header-content .ast-builder-button-wrap {
	animation: kz-menu-item-in .32s cubic-bezier(.2, .7, .2, 1) both;
}

.ast-main-header-nav-open .ast-mobile-header-content .main-header-menu > .menu-item:nth-child(1) { animation-delay: .04s; }
.ast-main-header-nav-open .ast-mobile-header-content .main-header-menu > .menu-item:nth-child(2) { animation-delay: .08s; }
.ast-main-header-nav-open .ast-mobile-header-content .main-header-menu > .menu-item:nth-child(3) { animation-delay: .12s; }
.ast-main-header-nav-open .ast-mobile-header-content .main-header-menu > .menu-item:nth-child(4) { animation-delay: .16s; }
.ast-main-header-nav-open .ast-mobile-header-content .main-header-menu > .menu-item:nth-child(5) { animation-delay: .2s; }
.ast-main-header-nav-open .ast-mobile-header-content .main-header-menu > .menu-item:nth-child(n+6) { animation-delay: .24s; }
.ast-main-header-nav-open .ast-mobile-header-content .ast-builder-button-wrap { animation-delay: .28s; }

.menu-toggle.toggled .ast-close-svg {
	animation: kz-icon-in .25s cubic-bezier(.2, .7, .2, 1) both;
}

.menu-toggle:active {
	transform: scale(.92);
}

@media (prefers-reduced-motion: reduce) {
	.ast-main-header-nav-open .ast-mobile-header-content,
	.ast-main-header-nav-open .ast-mobile-header-content .menu-item,
	.ast-main-header-nav-open .ast-mobile-header-content .ast-builder-button-wrap,
	.menu-toggle.toggled .ast-close-svg {
		animation: none;
	}
}
